@import 'base.css';

.stub.maintenance {
  height: 100vh;
  width: 100vw;
}

.checkmark {
  height: 20px;
  width: auto;
  aspect-ratio: 1;
  cursor: pointer;
  user-select: none;

  input {
    width: 100%;
    height: 100%;
    display: none;
  }

  .check-symbol {
    height: 100%;
    width: auto;
    background-color: var(--bg-secondary);
    border-radius: 4px;
    transition: all 0.25s;
  }

  .check-symbol:after {
    content: "";
    position: absolute;
    height: 100%;
    width: auto;
    aspect-ratio: 1;
  }

  input:checked~.check-symbol {
    background-color: var(--accent-primary);
  }

  input:checked~.check-symbol:after {
    left: 50%;
    top: 40%;
    width: 25%;
    height: 50%;
    border: 0.16px solid white;
    border-width: 0 0.15em 0.15em 0;
    transform: translate(-50%, -50%) rotate(45deg);
  }
}

.toast {
  position: fixed;
  bottom: -5%;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.75em 16px;
  border-radius: 100vmax;
  background: var(--bg-secondary);
  z-index: 100;
  transition: all 0.5s ease;
  max-width: 90%;
  width: max-content;
}

.stub {
  align-self: center;
  justify-self: center;
  height: 100%;
  width: 100%;

  .content {
    max-width: 300px;
  }

  img,
  video {
    height: 128px;
    width: 128px;
  }

  .title {
    margin-top: 8px;
    font-size: 16px;
  }

  button {
    margin-top: 16px;
    width: 75%;
  }
}

.deal-card {
  border: 1px solid var(--border);
  width: 100%;
  cursor: pointer;
  transition: all 0.3s ease;

  &[data-status="opened"] .badge {
    background: rgba(0, 209, 255, 0.15);
    color: var(--accent-primary);
  }

  &[data-status="started"] .status,
  &[data-status="verifying"] .status {
    background: rgba(255, 152, 0, 0.15);
    color: #FF9800;
  }

  &[data-status="completed"] .status {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-success);
  }

  &[data-status="disputed"] .status {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-danger);
  }

  &[data-status="cancelled"] .status {
    background: rgba(148, 163, 184, 0.15);
    color: var(--text-muted);
  }

  .description {
    max-height: 100px;
    overflow-y: auto;
    scrollbar-width: none;
  }

  .description::-webkit-scrollbar {
    display: none;
  }

  .footer {
    padding-top: 8px;
    border-top: 1px solid var(--border);
  }

  .footer .meta,
  .footer .timer,
  .footer .amount {
    width: calc(100% / 3);
  }

  .footer .meta svg {
    width: 16px;
    height: 16px;
  }

  .footer .meta .counterparty {
    text-wrap: nowrap;
  }

  .footer .timer {
    display: none;
    color: var(--accent-secondary);
  }

  .footer .timer.default {
    color: var(--text-primary);
  }

  .footer .timer.warning {
    color: var(--accent-warning);
  }

  .footer .timer.danger {
    color: var(--accent-danger);
  }

  .footer .timer svg {
    height: 17px;
    width: 17px;
  }

  .footer .amount {
    font-size: 16px;
    color: var(--accent-primary);
  }

  .footer .amount svg {
    height: 21px;
    width: 21px;
  }

  &:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-primary);
  }
}

.dispute-card {
  background: var(--bg-card);
  border-radius: 18px;
  padding: 24px 12px;
  border: 1px solid #334155;

  .header {
    padding: 10px 24px;
    border-bottom: 1px solid var(--border);
  }

  .details {
    padding: 12px;
    margin-bottom: 12px;
  }

  .details .item {
    min-width: calc(50% - 0.25em);
  }
}

.deal-offer {
  .name {
    font-size: 15px;
    margin-right: 2px;
  }

  .basic svg {
    height: 17px;
    width: 17px;
    color: gold;
    fill: gold;
  }

  .stats svg {
    height: 16px;
    width: 16px;
  }

  .stat .value {
    font-size: 13px;
  }

  .acts button {
    padding: 7px 16px;
  }

  .acts .accept {
    background: var(--accent-success);
  }

  .acts .reject {
    background: var(--accent-danger);
  }
}

.review-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 8px;
  height: 150px;
  min-width: min(350px, 100%);

  .name {
    font-size: 15px;
  }

  .name:hover {
    color: var(--accent-primary);
  }

  svg {
    height: 18px;
    width: 18px;
  }

  svg.active {
    color: gold;
    fill: gold;
  }

  .text {
    font-size: 13px;
    max-height: 100px;
    overflow-y: auto;
    scrollbar-width: none;
  }
}

.tag {
  padding: 2px 8px;
  border-radius: 8px;
  background: var(--bg-secondary);
  font-weight: 600;
  font-size: 0.75em;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: white;
}

.tc-button,
.tlw {
  svg {
    height: 18px;
    width: 18px;
  }

  img {
    height: 24px;
    width: 24px;
    border-radius: 50%;
  }
}

.tlw {
  .name {
    max-width: 150px;
    text-overflow: ellipsis;
    overflow: hidden;
  }

  &[logged=true] {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 6px 12px;
  }

  &[logged=true] svg {
    display: none;
  }

  &[logged=false] img {
    display: none;
  }
}

.tc-button {
  &[connected="true"] {
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-primary);
  }

  &[connected="true"] .i-wallet {
    display: none;
  }

  &[connected="false"] .i-logout {
    display: none;
  }
}

.card-primary {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 16px;
}

.badge.deal-status {
  &.opened {
    background: rgba(0, 209, 255, 0.15);
    color: var(--accent-primary);
  }

  &.started,
  &.verifying {
    background: rgba(255, 152, 0, 0.15);
    color: #FF9800;
  }

  &.completed {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-success);
  }

  &.disputed {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-danger);
  }

  &.cancelled {
    background: rgba(148, 163, 184, 0.15);
    color: var(--text-muted);
  }
}

section.deals {
  .panel {
    background: var(--bg-card);
    padding: 8px;
    border-radius: 12px;
  }

  .panel .item {
    padding: 8px 12px;
    border: none;
    background: transparent;
    border-radius: 8px;
    white-space: nowrap;
    box-shadow: none;
    cursor: pointer;
    transition: all 0.3s;
  }

  .panel .item.active {
    background: var(--accent-primary);
    box-shadow: var(--shadow-sm);
  }

  .panel .item:not(.active):hover {
    background: var(--bg-secondary);
  }

  .wrapper:has(.deal-card)>.stub {
    display: none;
  }
}

section.create {
  .form .label svg {
    width: 18px;
    height: 18px;
    color: var(--accent-primary);
  }

  .form .label .text {
    font-size: 15px;
  }

  .sides .choices {
    background: var(--bg-card);
    border-radius: 10px;
    padding: 8px 0;
  }

  .sides .choices .item {
    font-size: 15px;
    padding: 2px 8px;
  }

  .sides .choices .glider {
    position: absolute;
    top: 0;
    bottom: 0;
    width: calc(50% - 8px);
    border-radius: 10px;
    transition: transform 0.3s ease-in-out, background 0.3s ease-in-out
  }

  .sides .choices #seller:checked~.glider {
    transform: translateX(0%);
    background: var(--accent-seller);
  }

  .sides .choices #buyer:checked~.glider {
    transform: translateX(calc(100% + 16px));
    background: var(--accent-buyer);
  }

  .amount input {
    flex: 1;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
  }

  .amount .area-input {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 8px;
  }

  .amount .area-input svg {
    height: 19px;
    width: 19px;
    color: var(--accent-primary);
  }

  .timer input {
    field-sizing: content;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
  }

  .timer .area-input {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 8px;
  }

  .note {
    color: var(--text-secondary);
    font-size: 11px;
  }

  .market .text span {
    cursor: pointer;
    color: var(--accent-primary);
    font-weight: 500;
  }

  button.tlw[logged="false"]~.confirm {
    display: none;
  }

  button.tlw[logged="true"] {
    display: none;
  }
}

section.profile {
  .account .info {
    width: 100%;
  }

  .account .avatar {
    background: var(--gradient-primary);
    border-radius: 50%;
    padding: 10px;
  }

  .account .name {
    font-size: 16px;
    margin-right: 4px;
  }

  .account .badge {
    padding: 2px 8px;
  }

  .account .online svg {
    height: 16px;
    width: 16px;
  }

  .account .online .text {
    font-size: 13px;
  }

  .account .online.active {
    .text {
      color: var(--accent-success);
    }

    svg {
      display: none;
    }
  }

  .account .rating svg {
    height: 16px;
    width: 16px;
    fill: gold;
    color: gold;
    margin-right: 2px;
  }

  .account .level[data-value="newbie"] {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  }

  .account .level[data-value="trader"] {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
  }

  .account .level[data-value="pro"] {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
  }

  .account .level[data-value="expert"] {
    background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%);
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.4);
  }

  .account .level[data-value="master"] {
    background: linear-gradient(135deg, #F97316 0%, #DC2626 100%);
    box-shadow: 0 0 16px rgba(249, 115, 22, 0.5);
  }

  .account .level[data-value="legend"] {
    background: linear-gradient(135deg, #00D1FF 0%, #8B5CF6 50%, #FF69B4 100%);
    box-shadow: 0 0 20px rgba(0, 209, 255, 0.6);
    animation: LegendGlow 2s ease-in-out infinite alternate;
  }

  .account .regdate {
    background: var(--border);
  }

  .levels .labels .label,
  .levels .progress .value,
  .levels .privilege .text {
    font-size: 12px;
  }

  .levels .privilege {
    font-size: 16px;
  }

  .levels .progress svg {
    width: 12px;
    height: 12px;
    color: var(--text-secondary);
  }

  .levels .progress .bar {
    --progress: 75%;
    height: 6px;
    background: var(--border);
    border-radius: 100vmax;
    overflow: hidden;
  }

  .levels .progress .bar::after {
    content: "";
    position: absolute;
    height: 100%;
    background: var(--accent-primary);
    border-radius: 100vmax;
    width: var(--progress);
  }

  .stats .item {
    padding: 8px 0px;
    width: calc(33% - 10px);
  }

  .stats .item svg {
    width: 24px;
    height: 24px;
    color: var(--accent-primary);
  }

  .stats .item .value {
    font-size: 20px;
  }

  .stats .item .text {
    color: var(--text-muted);
    font-size: 12px;
  }

  .wallet .balance {
    color: var(--accent-primary);
    font-size: 24px;
  }

  .wallet .balance svg {
    height: 28px;
    width: 28px;
  }

  .wallet .tc-button {
    width: 100%;
  }

  .wallet .tc-button[connected="true"]~.deposit,
  .wallet .tc-button[connected="true"]~.withdraw {
    display: flex;
  }

  .wallet .tc-button[connected="false"]~.deposit,
  .wallet .tc-button[connected="false"]~.withdraw {
    display: none;
  }

  .wallet .deposit {
    background: var(--accent-success);
  }

  .wallet .withdraw {
    background: var(--accent-danger);
  }

  .settings {
    padding: 0;
  }

  .settings .item {
    padding: 16px;
    border-bottom: 1px solid var(--border);
  }

  .settings .item:last-child {
    border-bottom: none;
  }

  .settings .item .icon {
    height: 38px;
    width: 38px;
    background: var(--border);
    border-radius: 10px;
    padding: 8px;
  }

  .settings .item .title {
    font-size: 15px;
  }

  .settings .item .subtitle {
    font-size: 13px;
  }

  .reviews {
    overflow: hidden;
  }

  .reviews .label .text {
    font-size: 17px;
  }

  .reviews .wrapper {
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    will-change: scroll-position;
    transform: translateZ(0);
    backface-visibility: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none
  }

  .reviews .wrapper:has(.review-card) .stub {
    display: none;
  }
}

section.deal {
  opacity: 0;

  &.mode-column {
    .group {
      height: 100%;
      width: 100%;
    }

    .right {
      display: none;
    }
  }

  .group {
    width: calc(50% - 32px);
  }

  .header .step {
    flex: 1;
    opacity: 0.5;
  }

  .header .step::before {
    content: '';
    position: absolute;
    top: 24px;
    height: 4px;
    width: 100%;
    background: var(--border);
  }

  .header .step:first-child::before {
    left: 10%;
    width: 90%;
  }

  .header .step:last-child::before {
    right: 10%;
    width: 90%;
  }

  .header .step .icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-secondary);
    transition: all 0.3s ease;
  }

  .header .step[active],
  .header .step[completed] {
    opacity: 1;
  }

  .header .step[active] .icon {
    background: var(--gradient-primary);
    box-shadow: 0 0 20px rgba(0, 209, 255, 0.3);
    animation: Pulse 2s ease-in-out infinite;
  }

  .header .step[completed] .icon {
    background: var(--accent-success);
  }

  .header .step[completed]::before {
    background: var(--accent-success);
  }

  .header .step[active]::before {
    background: linear-gradient(90deg, var(--accent-success) 50%, var(--accent-primary) 50%);
  }

  &[status="disputed"] .header .step .icon {
    background: var(--accent-warning);
  }

  &[status="disputed"] .header .step::before {
    background: var(--accent-warning);
  }

  .header .table .timer .bar {
    --progress: 75%;
    height: 6px;
    background: var(--border);
    border-radius: 100vmax;
    overflow: hidden;
  }

  .header .table .bar::after {
    content: "";
    position: absolute;
    height: 100%;
    background: var(--accent-primary);
    border-radius: 100vmax;
    width: var(--progress);
  }

  .header .table .timer.warning .bar::after {
    background: var(--accent-warning);
  }

  .header .table .timer.danger .bar::after {
    background: var(--accent-danger);
  }

  .header .table .note {
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: 12px;
    color: var(--text-secondary);
  }

  .header .actions button {
    text-wrap: nowrap;
  }

  .header .actions .seller-confirmation {
    background: var(--accent-primary);
  }

  .header .actions .buyer-confirmation {
    background: var(--accent-success);
  }

  .header .actions .dispute,
  .header .actions .delete {
    background: var(--accent-danger);
  }

  .actions:not(:has(> button:not([style*="display: none"]))) {
    display: none;
  }

  .header .admin button {
    width: calc(50% - 4px);
  }

  .header .admin .backup {
    background: var(--accent-warning);
  }

  .header .admin .seller {
    background: var(--accent-seller);
  }

  .header .admin .buyer {
    background: var(--accent-buyer);
  }

  .header .admin .cancel {
    background: var(--accent-danger);
  }

  .panel .heading,
  .panel .items {
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
  }

  .panel .heading svg {
    height: 36px;
    width: 36px;
  }

  .panel .heading .amount {
    font-size: 15px;
  }

  .panel .heading .id {
    font-size: 13px;
  }

  .panel .item svg {
    height: 16px;
    width: 16px;
  }

  .panel .item .text {
    font-size: 13px;
  }

  .panel .item .value {
    font-size: 15px;
  }

  .panel .item:hover .text,
  .panel .item:hover svg {
    color: var(--text-primary);
  }

  .panel .item:hover .value {
    color: var(--accent-primary);
  }

  .panel span {
    color: var(--accent-success);
  }

  .panel .deal-amount {
    font-size: 16px;
  }

  .panel .deal-id {
    font-size: 13px;
  }

  .panel .about {
    max-height: 150px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .panel .about ::-webkit-scrollbar {
    display: none;
  }

  .review .label {
    font-size: 16px;
  }

  .review svg {
    width: 20px;
    height: 20px;
  }

  .review svg.active {
    color: gold;
    fill: gold;
  }

  .review textarea {
    padding: 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    height: 100px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    resize: none;
  }

  .viewer .cancel-offer {
    background: var(--accent-danger);
  }

  .offers {
    height: 100%;
    padding: 0;
  }

  .offers .item {
    padding: 16px;
    border-bottom: 1px solid var(--border);
  }

  .offers .deal-offer:last-child {
    border-bottom: none;
  }

  .offers:has(.deal-offer) .stub {
    display: none;
  }

  .frame.chat {
    height: 100%;
    padding: 0;
  }

  .chat .heading {
    padding: 16px;
  }

  .chat .heading .counterparty {
    font-size: 15px;
  }

  .chat .heading .online {
    font-size: 12px;
  }

  .chat .heading .online.active {
    color: var(--accent-success);
  }

  .chat .messages {
    background: var(--bg-secondary);
    min-height: 370px;
    padding: 16px;
    overflow-y: auto;
  }

  .chat .message {
    background: var(--bg-card);
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 14px;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
  }

  .chat .message .text {
    overflow-wrap: break-word;
  }

  .chat .message.seller .name {
    color: var(--accent-seller);
  }

  .chat .message.buyer .name {
    color: var(--accent-buyer);
  }

  .chat .message.admin .name {
    color: var(--accent-admin);
  }

  .chat .message.system {
    align-self: center;
    background: transparent;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.75em;
  }

  .message.self {
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    border-bottom-left-radius: 18px;
  }

  .chat .message .date {
    margin-top: 2px;
    color: var(--text-muted);
    font-size: 10px;
  }

  .chat .writter {
    padding: 16px;
  }

  .chat .writter input {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 12px;
    flex: 1;
  }

  .chat .writter .send {
    color: white;
    background: var(--accent-primary);
    border-radius: 16px;
    width: 40px;
    height: 40px;
  }

  .chat .writter .send svg {
    height: 24px;
    width: 24px;
    aspect-ratio: 1;
  }
}

section.admin {

  .panel {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 16px;
  }

  .stats .item {
    padding: 8px 0px;
    width: calc(33% - 8px);
  }

  .stats .item svg {
    width: 24px;
    height: 24px;
    color: var(--accent-primary);
  }

  .stats .item .value {
    font-size: 20px;
  }

  .stats .item .text {
    color: var(--text-muted);
    font-size: 12px;
  }

  .panel .buttons .refresh {
    width: 100%;
    background: var(--accent-success);
  }

  .panel .buttons .restart {
    width: calc(50% - 8px);
    background: var(--accent-warning);
  }

  .panel .buttons .stop {
    width: calc(50% - 8px);
    background: var(--accent-danger);
  }

  .disputes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  }

  .disputes:has(.stub) {
    display: flex;
  }

  .disputes:has(.deal-card) .stub {
    display: none;
  }

  .disputes .deal-card {
    height: min-content;
  }
}

#modal.deposit,
#modal.withdraw {

  .max:hover {
    color: var(--accent-primary);
  }

  .form.address {
    margin-top: 8px;
  }

  .form .title {
    font-size: 15px;
  }

  .note {
    font-size: 13px;
  }

  input {
    background: var(--bg-card);
  }

  button {
    margin-top: 24px;
    width: 100%;
  }
}

/* Animations */
@keyframes Pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

@keyframes LegendGlow {
  0% {
    box-shadow: 0 0 20px rgba(0, 209, 255, 0.6);
  }

  100% {
    box-shadow: 0 0 30px rgba(255, 105, 180, 0.8);
  }
}

/* Tablet Portrait */
@media (min-width: 768px) and (max-width: 991px) {}

/* Mobile Landscape / Small Tablet */
@media (min-width: 640px) and (max-width: 767px) {}

/* Mobile Portrait */
@media (max-width: 639px) {

  :root {
    --section-height: calc(100vh - 53px);
  }

  body {
    font-size: 13px;
  }

  #root {
    padding-top: 53px;
  }

  #modal .body {
    padding: 12px;
  }

  #modal .header .title {
    font-size: 18px;
  }

  #modal .header svg {
    height: 20px;
    width: 20px;
  }

  #loader .image {
    height: 96px;
    width: 96px;
  }

  #loader .bar {
    width: 100px;
  }

  nav .left,
  nav .right {
    display: none;
  }

  nav .center {
    width: 100%;
  }

  nav .center .item {
    padding: 6px 12px;
  }

  section {
    padding: 8px;
    display: flex;
    flex-direction: column;
  }

  button,
  input {
    padding: 8px 12px;
    font-size: 14px;
  }

  button svg {
    height: 17px;
    width: 17px;
  }

  .badge {
    padding: 4px 8px;
    font-size: 11px;
  }

  .card-primary {
    padding: 8px;
  }

  .stub {
    img {
      width: 96px;
      height: 96px;
    }

    .title {
      font-size: 14px;
    }
  }

  section.deals .panel {
    justify-content: space-between;
  }

  section.deals .panel .item {
    padding: 6px 10px;
  }

  section.create .form .label svg {
    width: 16px;
    height: 16px;
  }

  section.create .form .label .text {
    font-size: 14px;
  }

  section.create .form.sides .choices {
    padding: 6px 0;
  }

  section.create .form.sides .item {
    font-size: 14px;
  }

  section.profile .account .name {
    font-size: 15px;
  }

  section.profile .account .online {
    font-size: 12px;
  }

  section.profile .levels .privilege {
    font-size: 15px;
  }

  section.profile .stats {
    gap: 16px;
  }

  section.profile .stats .item svg {
    height: 20px;
    width: 20px;
  }

  section.profile .stats .item .value {
    font-size: 16px;
  }

  section.profile .stats .item .text {
    font-size: 11px;
  }

  section.profile .wallet {
    gap: 8px;
  }

  section.profile .wallet .balance {
    font-size: 20px;
  }

  section.profile .wallet .balance svg {
    height: 24px;
    width: 24px;
  }

  section.profile .settings .item {
    padding: 14px;
  }

  section.profile .settings .item .icon {
    height: 32px;
    width: 32px;
  }

  section.profile .settings .item .title {
    font-size: 14px;
  }

  section.profile .settings .item .subtitle {
    font-size: 12px;
  }

  section.profile .reviews .label .text {
    font-size: 16px;
  }

  section.profile .reviews .review .name {
    font-size: 14px;
  }

  section.profile .reviews .review .text {
    font-size: 12px;
  }

  section.profile .reviews .review svg {
    height: 16px;
    width: 16px;
  }

  section.admin .stats .item {
    padding: 4px 0;
  }

  section.admin .stats .item svg {
    height: 20px;
    width: 20px;
  }

  section.admin .stats .item .value {
    font-size: 18px;
  }

  section.admin .stats .item .text {
    font-size: 11px;
  }

  section.deal {
    flex-direction: column;
    gap: 16px;
  }

  section.deal:not(.mode-column) {
    height: auto;
  }

  section.deal .group {
    width: 100%;
  }

  section.deal .header .step .icon {
    height: 40px;
    width: 40px;
  }

  section.deal .header .step::before {
    transform: translateY(-100%);
  }

  section.deal .panel {
    gap: 8px;
  }

  section.deal .panel .heading,
  section.deal .panel .items {
    padding-bottom: 8px;
  }

  #modal.deposit,
  #modal.withdraw {

    .form .title {
      font-size: 14px;
    }

    .note {
      font-size: 12px;
    }
  }
}