:root {
  color-scheme: dark;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0f172a;
  color: #e2e8f0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.18), transparent 30%),
    linear-gradient(180deg, #020617 0%, #080c1f 100%);
}

.page-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

.hero-header {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 28px;
  padding: 24px;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(18px);
}

.header-top {
    display:flex;
    align-items:center;
    gap:10px;
    width:100%;
}


.avatar {
    display:none;
}


.search-box {
    flex:1;
    height:42px;
    display:flex;
    align-items:center;
    gap:8px;
    padding:8px 14px;
    border-radius:16px;
    box-sizing:border-box;
}


.search-icon {
    flex-shrink:0;
}


.search-box input {
    flex:1;
    width:100%;
    height:100%;
    border:0;
    outline:none;
    background:transparent;
}


.header-actions {
    display:flex;
    gap:8px;
    flex-shrink:0;
}


.icon-button {
    width:40px;
    height:40px;
    padding:0;
    border-radius:14px;
}


/* mobile */
@media(max-width:600px){

    .header-top {
        gap:8px;
    }

    .search-box {
        height:38px;
        padding:6px 10px;
    }


    .icon-button {
        width:34px;
        height:34px;
        font-size:14px;
    }

}


.icon-button {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 14px;
  background: rgba(148, 163, 184, 0.06);
  color: #e2e8f0;
  font-size: 1.1rem;
  cursor: pointer;
}

.hero-banner {
  margin-top: 14px;
  padding: 20px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(14, 45, 91, 0.95), rgba(8, 14, 31, 0.95));
}


.hero-copy .eyebrow {
  margin: 0 0 6px;
  color: #38bdf8;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}


.hero-copy h1 {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  line-height: 1.05;
}


.hero-description {
  margin: 12px 0 0;
  max-width: 500px;
  color: #cbd5e1;
  line-height: 1.5;
  font-size: 0.9rem;
}


.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, #38bdf8, #7c3aed);
  box-shadow: 0 10px 24px rgba(56, 189, 248, 0.2);
  text-shadow: 0 1px 1px rgba(2, 6, 23, 0.45);
}

.hero-button:hover,
.hero-button:focus-visible {
  background: linear-gradient(135deg, #0ea5e9, #6d28d9);
  color: #ffffff;
  outline: 2px solid rgba(255, 255, 255, 0.72);
  outline-offset: 3px;
}


/* FEATURE CARD SMALLER */

.feature-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(8, 14, 31, 0.95));
}


.feature-tag {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  margin-bottom: 10px;
}


.feature-copy h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}


.feature-copy p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.5;
  font-size: 0.9rem;
}


.feature-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  font-size: 1.3rem;
  flex-shrink:0;
}

.rates-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.rate-card {
  padding: 22px;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.rate-label {
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94a3b8;
}

.rate-value {
  margin-top: 14px;
  font-size: 2rem;
  font-weight: 700;
}

.rate-sub {
  margin-top: 6px;
  color: #94a3b8;
}

.rate-change {
  margin-top: 18px;
  font-weight: 700;
}

.rate-change.positive {
  color: #22c55e;
}

.rate-change.negative {
  color: #f97316;
}

.market-tab {
  margin-top: 24px;
  padding: 24px;
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.market-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.market-selection,
.market-toggle {
  display: inline-flex;
  gap: 10px;
}

.market-tab-item,
.market-filter-item {
  border: none;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.08);
  color: #cbd5e1;
  cursor: pointer;
}

.market-tab-item.active,
.market-filter-item.active {
  background: rgba(56, 189, 248, 0.16);
  color: #ffffff;
}

.market-list-card {
  border-radius: 24px;
  background: rgba(8, 14, 31, 0.94);
  padding: 18px;
}

.market-list-header {
  display: grid;
  grid-template-columns: 1.6fr 1fr 0.8fr;
  gap: 12px;
  padding: 14px 10px;
  color: #94a3b8;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.market-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 0.8fr;
  gap: 12px;
  align-items: center;
  padding: 18px 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.market-row:last-child {
  border-bottom: none;
}

.market-pair {
  display: flex;
  align-items: center;
  gap: 12px;
}

.market-price {
  color: #e2e8f0;
}

.market-change {
  font-weight: 700;
  text-align: right;
}

.market-change.positive {
  color: #22c55e;
}

.market-change.negative {
  color: #f97316;
}

.market-table {
  width: 100%;
  border-collapse: collapse;
  overflow-x:auto;
}

.market-table th,
.market-table td {
  padding: 16px 12px;
  text-align: left;
}

.market-table thead th {
  color: #94a3b8;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.market-table tbody tr {
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.market-table tbody tr:last-child {
  border-bottom: none;
}

.market-header h3 {
  margin: 8px 0 0;
  font-size: 1.5rem;
}

.market-tabs {
  display: inline-flex;
  gap: 12px;
}

.tab {
  border: none;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.08);
  color: #cbd5e1;
  padding: 10px 18px;
  cursor: pointer;
}

.tab.active {
  background: rgba(56, 189, 248, 0.18);
  color: #ffffff;
}

.market-table {
  width: 100%;
  border-collapse: collapse;
}

.pair {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pair-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(56, 189, 248, 0.12);
}

.pair-name {
  font-weight: 700;
}

.pair-sub {
  margin-top: 4px;
  color: #94a3b8;
  font-size: 0.9rem;
}
/* ===== EXTRA SMALL RATE CARDS MOBILE ===== */

@media(max-width:600px){

    .rates-grid {
        grid-template-columns:repeat(2, 1fr);
        gap:8px;
        margin-top:10px;
    }


    .rate-card {
        padding:12px;
        border-radius:16px;
        min-height:auto;
    }


    .rate-label {
        font-size:0.65rem;
        letter-spacing:0.06em;
    }


    .rate-value {
        margin-top:6px;
        font-size:1.25rem;
    }


    .rate-sub {
        margin-top:3px;
        font-size:0.75rem;
    }


    .rate-change {
        margin-top:8px;
        font-size:0.75rem;
    }

}


@media(max-width:400px){

    .rates-grid {
        grid-template-columns:1fr;
    }

    .rate-card {
        padding:10px;
    }

}

/* Admin table responsive tweaks: allow readable content and horizontal scrolling inside the table area. */
.account-table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.account-table {
  table-layout: auto;
  width: 100%;
  min-width: 900px;
  color:#020617;
}

.account-table th,
.account-table td {
  padding: 8px 10px;
  vertical-align: middle;
}

.account-table th {
  white-space: nowrap;
  word-break: normal;
}

.account-table td {
  white-space: normal;
  word-break: break-word;
}

.account-table th:first-child,
.account-table td:first-child { width: 36px; }

.currency-account-table {
  min-width: 820px;
}

.currency-account-table th:first-child,
.currency-account-table td:first-child {
  width: auto;
}

@media (max-width: 1100px) {
  .account-table th,
  .account-table td { padding: 6px 8px; font-size: 0.92rem; }

/* hide less important columns to keep table on screen */
  .account-table th:nth-child(7), .account-table td:nth-child(7), /* Organization */
  .account-table th:nth-child(11), .account-table td:nth-child(11), /* Role */
  .account-table th:nth-child(12), .account-table td:nth-child(12)  /* Creator */
  { display: none; }

}

@media (max-width: 780px) {
  .account-table th:nth-child(6), .account-table td:nth-child(6), /* Home Menu */
  .account-table th:nth-child(8), .account-table td:nth-child(8)  /* Post */
  { display: none; }

}

@media (max-width: 1100px) {
  .currency-account-table th,
  .currency-account-table td {
    display: table-cell !important;
  }
}

.main-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
  padding: 10px;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.18);
  backdrop-filter: blur(20px);
}

.main-nav a {
  text-decoration: none;
  color: inherit;
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
  transition: color 0.3s ease;
}

/* Hover */
.main-nav a:hover {
  color: #2563eb; /* Change to your theme color */
}

/* Underline animation */
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #2563eb;
  transition: width 0.3s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

/* Active Page */
.main-nav a.active {
  color: #2563eb;
  font-weight: 600;
}

.main-nav a.active::after {
  width: 100%;
}

.program-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(56, 189, 248, 0.14);
  font-size: 1.4rem;
}

.program-copy h2 {
  margin: 0;
  font-size: 1.15rem;
}

.program-copy p {
  margin: 4px 0 0;
  color: #94a3b8;
}

.program-chevron {
  margin-left: auto;
  color: #94a3b8;
  font-size: 1.75rem;
}

.nav-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;

    gap: 4px;

    padding: 10px 5px !important;

    background: transparent;
    border-radius: 16px;

    text-align:center;
}

@media (max-width: 780px) {
    body {
        padding-bottom: 92px;
    }

    .main-nav {
        position: fixed;
        left: 50%;
        bottom: 12px;
        right: auto;
        width: min(750px, calc(100vw - 32px));
        transform: translateX(-50%);
        z-index: 9999;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 5px;
        margin-top: 0;
        padding: 8px;
    }
}


.nav-item span:first-child {
    font-size: 20px;
}


.nav-item span:last-child {
    font-size: 12px;
}


@media(max-width:600px){

    .main-nav {
        bottom: 8px;
        left: 50%;
        right: auto;
        width: min(560px, calc(100vw - 16px));
        transform: translateX(-50%);
    }

}

.content-section {
  margin-top: 24px;
}

.info-card {
  padding: 24px;
  border-radius: 26px;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.info-card h3 {
  margin: 0 0 12px;
  font-size: 1.35rem;
}

.info-card p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.7;
}

@media (max-width: 780px) {
  .page-shell {
    padding: 18px;
  }

.rates-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

.market-header {
    flex-direction: column;
    align-items: flex-start;
  }

}

@media (max-width: 520px) {
  .header-top,
  .hero-banner,
  .feature-card,
  .market-section {
    padding: 18px;
  }

.rates-grid,
  .main-nav {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .main-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

.hero-copy h1 {
    font-size: 2rem;
  }

}

.demo-account-panel {
  margin-top: 14px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid rgba(56, 189, 248, 0.22);
  display: grid;
  gap: 12px;
}

.demo-copy {
  display: grid;
  gap: 4px;
}

.demo-copy strong {
  color: #f8fafc;
  font-size: 1rem;
}

.demo-copy span,
.demo-message,
.demo-balances span,
.ledger-header span,
.transaction-row span {
  color: #94a3b8;
  font-size: 0.86rem;
}

.auth-form,
.demo-actions,
.demo-balances {
  display: grid;
  gap: 10px;
}

.auth-form {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.auth-form.compact {
  grid-template-columns: 1fr 1fr auto;
}

.auth-form input {
  min-width: 0;
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(8, 14, 31, 0.92);
  color: #e2e8f0;
}

.auth-form button,
.demo-actions button {
  border: none;
  border-radius: 14px;
  padding: 12px 16px;
  background: #2563eb;
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
}

.demo-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.demo-actions button:first-child {
  background: rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
}

.demo-balances {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.demo-balances span {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(148, 163, 184, 0.08);
}

.profile-menu-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 20px;
  background: rgba(8, 14, 31, 0.78);
  border: 1px solid rgba(56, 189, 248, 0.16);
}

.profile-menu-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 8px 10px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #f8fafc;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.support-button {
  position: relative;
}

.support-button::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 10px;
  height: 5px;
  border-right: 2px solid #facc15;
  border-bottom: 2px solid #facc15;
  border-radius: 0 0 8px 0;
  pointer-events: none;
}

.profile-menu-item:hover,
.profile-menu-item:focus-visible {
  background: rgba(56, 189, 248, 0.12);
  outline: none;
}

.profile-menu-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(20, 184, 166, 0.16);
  color: #86efac;
  font-size: 0.72rem;
  font-weight: 900;
}

.profile-menu-item > span:nth-child(2) {
  min-width: 0;
  color: #f8fafc;
  font-weight: 800;
}

.profile-menu-item strong {
  color: #67e8f9;
  font-size: 0.78rem;
  white-space: nowrap;
}

.identity-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(8, 14, 31, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.user-settings-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid rgba(56, 189, 248, 0.16);
}

.settings-card-top {
  display: grid;
  gap: 4px;
}

.settings-card-top strong,
.settings-list strong {
  color: #f8fafc;
}

.settings-card-top span,
.settings-list span {
  color: #94a3b8;
  font-size: 0.86rem;
}

.settings-list {
  display: grid;
  gap: 8px;
}

.settings-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(148, 163, 184, 0.08);
}

.identity-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.identity-card-top div {
  display: grid;
  gap: 4px;
}

.identity-card-top strong,
.identity-approved {
  color: #f8fafc;
}

.identity-card-top span,
.identity-review-note {
  color: #94a3b8;
  font-size: 0.86rem;
}

.identity-status {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 800;
}

.identity-approved {
  color: #86efac;
}

.identity-status.identity-approved {
  background: rgba(34, 197, 94, 0.14);
  color: #86efac;
}

.identity-pending {
  background: rgba(250, 204, 21, 0.14);
  color: #fde68a;
}

.identity-rejected {
  background: rgba(248, 113, 113, 0.14);
  color: #fca5a5;
}

.identity-form {
  display: grid;
  gap: 10px;
}

.bank-binding-card {
  border-color: rgba(20, 184, 166, 0.2);
}

.identity-form label {
  display: grid;
  gap: 7px;
  color: #94a3b8;
  font-size: 0.88rem;
}

.identity-form input,
.identity-form select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 14px;
  background: #111827;
  color: #f8fafc;
  outline: none;
}

.identity-form .identity-upload {
  position: relative;
}

.identity-form .identity-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.identity-file-picker {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.82);
  color: #e2e8f0;
  cursor: pointer;
}

.identity-file-name {
  color: #94a3b8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.identity-form button {
  min-height: 46px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #14b8a6, #2563eb);
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

.identity-form button:disabled {
  cursor: progress;
  opacity: 0.72;
}

.identity-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.identity-preview-grid[hidden],
.identity-preview[hidden] {
  display: none !important;
}

.identity-preview {
  display: grid;
  gap: 6px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.14);
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.82rem;
}

.identity-preview img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 10px;
  background: #020617;
}

.identity-preview span {
  color: #cbd5e1;
}

.withdrawal-modal[hidden],
.deposit-modal[hidden] {
  display: none !important;
}

.withdrawal-modal,
.deposit-modal {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(10px);
}

.withdrawal-modal.open,
.deposit-modal.open {
  display: flex;
}

body.withdrawal-modal-open,
body.deposit-modal-open {
  overflow: hidden;
}

.withdrawal-panel,
.deposit-panel {
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: 22px;
  background: #0f172a;
  border: 1px solid rgba(56, 189, 248, 0.2);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.46);
  color: #e2e8f0;
}

.withdrawal-panel-top,
.deposit-panel-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.withdrawal-panel-top div,
.deposit-panel-top div {
  display: grid;
  gap: 4px;
}

.withdrawal-panel-top strong,
.deposit-panel-top strong {
  color: #f8fafc;
}

.withdrawal-panel-top span,
.withdrawal-form label,
.deposit-panel-top span,
.deposit-form label,
.deposit-message,
.withdrawal-message {
  color: #94a3b8;
  font-size: 0.9rem;
}

.withdrawal-close,
.deposit-close {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: rgba(148, 163, 184, 0.16);
  color: #f8fafc;
  cursor: pointer;
}

.withdrawal-form,
.deposit-form {
  display: grid;
  gap: 10px;
}

.withdrawal-form label,
.deposit-form label {
  display: grid;
  gap: 7px;
}

.withdrawal-form input,
.deposit-form input,
.deposit-form select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 14px;
  background: #111827;
  color: #f8fafc;
  outline: none;
}

.withdrawal-form input::placeholder,
.deposit-form input::placeholder {
  color: #64748b;
  opacity: 1;
}

.withdrawal-form button,
.deposit-form button {
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #14b8a6, #2563eb);
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

.withdrawal-form button:disabled,
.deposit-form button:disabled {
  cursor: progress;
  opacity: 0.72;
}

.withdrawal-message,
.deposit-message {
  min-height: 20px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(148, 163, 184, 0.08);
  color: #cbd5e1;
}

.withdrawal-message.success,
.deposit-message.success {
  background: rgba(34, 197, 94, 0.14);
  color: #86efac;
}

.withdrawal-message.error,
.deposit-message.error {
  background: rgba(248, 113, 113, 0.14);
  color: #fca5a5;
}

.public-toast {
  position: fixed;
  left: 50%;
  top: 18px;
  z-index: 11000;
  width: min(460px, calc(100vw - 28px));
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: #f8fafc;
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.42);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  font-weight: 800;
  text-align: center;
}

.public-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.public-toast.success {
  background: #065f46;
  border-color: rgba(134, 239, 172, 0.32);
}

.public-toast.error {
  background: #991b1b;
  border-color: rgba(252, 165, 165, 0.32);
}

.public-toast.info {
  background: #1e3a8a;
  border-color: rgba(147, 197, 253, 0.32);
}

.support-modal[hidden],
.support-message-modal[hidden] {
  display: none !important;
}

.support-modal,
.support-message-modal {
  position: fixed;
  inset: 0;
  z-index: 10040;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(2, 6, 23, 0.72);
}

.support-modal.open,
.support-message-modal.open {
  display: flex;
}

body.support-modal-open,
body.support-message-open {
  overflow: hidden;
}

.support-panel {
  width: min(560px, calc(100vw - 28px));
  height: min(760px, calc(100vh - 28px));
  display: grid;
  grid-template-rows: 68px minmax(0, 1fr) auto;
  overflow: hidden;
  border-radius: 20px;
  background: #eef2f7;
  color: #111827;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.42);
}

.support-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 20px;
  background: #1267f2;
  color: #ffffff;
}

.support-close,
.support-message-close {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  color: inherit;
  font-size: 1.2rem;
  cursor: pointer;
}

.support-thread {
  overflow-y: auto;
  padding: 22px 18px;
}

.support-more {
  display: block;
  margin: 0 auto 16px;
  border: 0;
  background: transparent;
  color: #475569;
  font: inherit;
  cursor: pointer;
}

.support-message-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.support-avatar {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #dbeafe;
  color: #2563eb;
}

.support-headset {
  position: relative;
  font-size: 1.35rem;
}

.support-headset::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 9px;
  width: 12px;
  height: 6px;
  border-right: 3px solid #2563eb;
  border-bottom: 3px solid #2563eb;
  border-radius: 0 0 8px 0;
}

.support-message-body {
  display: grid;
  gap: 8px;
}

.support-agent-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #64748b;
}

.support-agent-line strong {
  color: #475569;
  font-weight: 700;
}

.support-bubble {
  max-width: 420px;
  padding: 14px 18px;
  border-radius: 0 18px 18px 18px;
  background: #ffffff;
  color: #020617;
  line-height: 1.45;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.support-ended {
  display: grid;
  gap: 18px;
  padding: 18px;
  background: #ffffff;
  color: #9ca3af;
  text-align: center;
}

.support-ended p {
  margin: 0;
}

.support-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.support-actions button {
  display: grid;
  justify-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: #9ca3af;
  font: inherit;
  cursor: pointer;
}

.support-actions span {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #647dee;
  color: #ffffff;
  font-size: 1.4rem;
}

.support-actions button:last-child span {
  background: #22c1d6;
}

body.support-page {
  min-height: 100vh;
  padding-bottom: 116px;
  background: #eef2f7;
}

.support-page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 18px;
}

.support-page .support-page-panel {
  width: min(680px, 100%);
  height: min(820px, calc(100vh - 150px));
  min-height: 620px;
  border-radius: 18px;
}

.support-page .support-close {
  text-decoration: none;
}

.support-message-panel {
  width: min(530px, calc(100vw - 40px));
  min-height: min(560px, calc(100vh - 40px));
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 12px;
  padding: 20px;
  border-radius: 8px;
  background: #ffffff;
  color: #111827;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.46);
}

.support-message-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.support-message-top strong {
  font-size: 1.25rem;
}

.support-message-close {
  background: transparent;
  color: #c4c4c4;
  font-size: 1.75rem;
}

.support-message-panel p {
  margin: 0;
  color: #6b7280;
  line-height: 1.45;
}

.support-message-form {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 12px;
}

.support-message-form label {
  display: grid;
  gap: 8px;
  color: #6b7280;
}

.support-message-form b {
  color: #ef4444;
}

.support-message-form textarea,
.support-message-form input {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 3px;
  background: #ffffff;
  color: #111827;
  font: inherit;
  outline: none;
}

.support-message-form textarea {
  min-height: 74px;
  resize: vertical;
  padding: 10px;
}

.support-message-form input {
  min-height: 42px;
  padding: 0 10px;
}

.support-message-form button {
  align-self: end;
  min-height: 42px;
  border: 0;
  border-radius: 4px;
  background: #1267f2;
  color: #ffffff;
  font: inherit;
  cursor: pointer;
}

@media (max-width: 620px) {
  .support-modal,
  .support-message-modal {
    padding: 0;
  }

  .support-panel {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
  }

  body.support-page {
    padding-bottom: 86px;
  }

  .support-page-shell {
    display: block;
    padding: 0;
  }

  .support-page .support-page-panel {
    width: 100vw;
    height: calc(100vh - 86px);
    min-height: 0;
    border-radius: 0;
  }

  .support-message-panel {
    width: calc(100vw - 40px);
    min-height: min(620px, calc(100vh - 60px));
  }
}




.transaction-list,
.account-ledger {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.account-ledger {
  padding-top: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.ledger-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.transaction-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(8, 14, 31, 0.94);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.transaction-row div {
  display: grid;
  gap: 4px;
}

.transaction-row div:last-child {
  text-align: right;
}

.empty-state {
  padding: 16px;
  border-radius: 16px;
  background: rgba(148, 163, 184, 0.08);
  color: #94a3b8;
  text-align: center;
}

@media (max-width: 780px) {
  .auth-form,
  .auth-form.compact,
  
  .transaction-row div:last-child {
    text-align: left;
  }
}

.admin-page-header {
  padding: 24px 28px 0;
}

.admin-page-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: #111827;
}

.admin-breadcrumb {
  margin-top: 8px;
  color: #6b7280;
  font-size: 0.95rem;
}

.admin-menu-management {
  padding: 24px 28px 28px;
}

.admin-layout-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 20px;
}

.admin-panel {
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid #e5e7eb;
  padding: 20px;
  overflow: visible;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  font-weight: 700;
  color: #111827;
}

.panel-actions {
  display: flex;
  gap: 10px;
}

.tree-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  margin-bottom: 16px;
}

.menu-tree {
  padding-left: 10px;
}

.tree-node {
  padding: 8px 0;
  color: #374151;
}

.tree-node.level-0 {
  font-weight: 700;
}

.tree-node.level-1 {
  padding-left: 16px;
}

.tree-node.level-2 {
  padding-left: 32px;
  color: #6b7280;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.95rem;
  color: #374151;
}

label span {
  color: #6b7280;
}

input[type="text"],
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #d1d5db;
  background: #f8fafc;
  color: #111827;
  outline: none;
}

.status-badge {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}

.status-active {
  background: #dcfce7;
  color: #166534;
}

.status-frozen {
  background: #fee2e2;
  color: #991b1b;
}

.message-box {
  border-radius: 18px;
  padding: 14px 16px;
  margin-bottom: 18px;
  font-size: 0.95rem;
}

.message-box.success {
  background: #ecfdf5;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.message-box.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.full-width-label {
  grid-column: span 2;
}

.account-operations-panel {
  padding: 14px;
}

.account-operations-panel .panel-header {
  margin-bottom: 10px;
}

.account-operations-panel .message-box {
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 12px;
}

.account-op-block,
.account-operations-panel .account-op-grid {
  margin-bottom: 10px;
}

.account-op-title {
  margin-bottom: 6px;
  color: #64748b;
  font-size: 0.88rem;
}

.account-op-row,
.account-operations-panel .account-op-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(140px, 0.75fr) minmax(150px, 0.45fr);
  gap: 10px;
  align-items: end;
}

.account-operations-panel .account-transfer-grid {
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) minmax(120px, 0.5fr) minmax(150px, 0.45fr);
}

.account-operations-panel label {
  gap: 5px;
  font-size: 0.86rem;
}

.account-operations-panel label span {
  line-height: 1.2;
}

.account-operations-panel input[type="text"],
.account-operations-panel select {
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 12px;
}

.account-operations-panel .primary-button {
  min-height: 40px;
  padding: 0 14px;
  margin-top: 0;
  border-radius: 12px;
  font-size: 0.92rem;
}

#refresh-users-btn {
  width: auto;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 0.86rem;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 800;
}

.account-table .row-action,
#refresh-users-btn {
  white-space: nowrap;
}

.account-table .account-action-edit {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.account-table .account-action-freeze {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #c2410c;
}

.account-table .account-action-enable {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #15803d;
}

.account-table .account-action-delete {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.verification-admin-grid {
  grid-template-columns: minmax(0, 1fr);
}

.verification-review-panel .panel-actions {
  align-items: center;
}

.verification-review-panel .panel-actions select {
  min-width: 150px;
  min-height: 36px;
  padding: 6px 10px;
  border-radius: 10px;
}

.verification-table {
  min-width: 1220px;
}

.verification-thumb {
  display: inline-flex;
  width: 86px;
  height: 56px;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid #dbeafe;
  background: #eff6ff;
}

.verification-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.verification-status-approved {
  background: #dcfce7;
  color: #166534;
}

.verification-status-pending {
  background: #fef3c7;
  color: #92400e;
}

.verification-status-rejected {
  background: #fee2e2;
  color: #991b1b;
}

.user-config-layout {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.user-config-panel,
.user-detail-panel {
  width: 100%;
  max-width: none;
}

.user-config-tools {
  gap: 8px;
  margin-bottom: 12px;
}

.user-config-tools .primary-button,
.user-config-tools .secondary-button,
.user-detail-actions .primary-button,
.user-detail-actions .secondary-button {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  font-weight: 800;
}

.user-config-search {
  margin-bottom: 12px;
}

.user-config-search input {
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  background: #f8fafc;
  color: #111827;
  outline: none;
}

.user-config-card {
  display: grid;
  gap: 14px;
  min-height: 500px;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #ffffff;
}

.user-filter-grid,
.user-detail-grid {
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 0;
}

.user-detail-grid {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
}

.user-filter-grid label,
.user-detail-grid label {
  gap: 6px;
  font-size: 0.88rem;
}

.user-filter-grid input,
.user-filter-grid select,
.user-detail-grid input,
.user-detail-grid select {
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 12px;
}

.user-config-table {
  width: 100%;
  border-collapse: collapse;
}

.user-config-table .user-actions {
  white-space: nowrap;
}

.user-detail-panel {
  min-height: 360px;
}

.user-detail-body {
  padding: 4px 0 0;
}

.user-detail-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.empty-table-cell {
  padding: 18px;
  color: #64748b;
  text-align: center;
}

@media (max-width: 1100px) {
  .user-filter-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}

@media (max-width: 700px) {
  .user-filter-grid,
  .user-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .admin-layout-grid {
    grid-template-columns: 1fr;
  }

.form-grid {
    grid-template-columns: 1fr;
  }

  .account-op-row,
  .account-operations-panel .account-op-grid,
  .account-operations-panel .account-transfer-grid {
    grid-template-columns: 1fr;
  }

}

.admin-shell {
  display: flex;
  min-height: 100vh;
  background: #f3f4f6;
}

/* ===== ADMIN SIDEBAR SMALLER ===== */

.admin-sidebar {
    width: 260px;
    min-width: 260px;
    height: 100vh;
    padding: 16px 14px;
    overflow-y: auto;
    background:#fff;
}


/* logo + title */
.admin-brand {
    gap:8px;
    margin-bottom:18px;
}

.admin-logo {
    width:34px;
    height:34px;
    border-radius:10px;
}


.admin-title {
    font-size:14px;
}


/* menu spacing */
.admin-menu {
    gap:6px;
}


.admin-menu-item,
.admin-menu-group summary {
    padding:8px 10px;
    min-height:38px;
    font-size:14px;
    border-radius:10px;
}


/* arrow smaller */
.menu-arrow {
    width:8px !important;
    height:8px !important;
}


/* ===== ADMIN MOBILE GRID MENU ===== */

@media(max-width:760px){

    .admin-header {
        display:flex;
        flex-direction:column;
        padding:10px !important;
    }


    /* Search full width */
    .admin-search {
        width:100%;
        height:40px;
    }


    /* Buttons 2 columns */
    .admin-header-actions {
        width:100%;
        display:grid !important;
        grid-template-columns:repeat(2, 1fr) !important;
        gap:8px !important;
    }


    .admin-pill {
        width:100%;
        height:38px !important;
        padding:6px !important;

        border-radius:999px !important;
        font-size:13px !important;
    }


    .admin-profile {
        width:100%;
        justify-content:flex-start;
    }

}


/* mobile */
@media(max-width:760px){

    .admin-shell {
        flex-direction:column;
    }

    .admin-sidebar {
        width:100%;
        min-width:100%;
        height:auto;
        max-height:250px;
    }

}   

.admin-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}

.admin-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #111827;
  color: #ffffff;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.admin-title {
  font-size: 0.95rem;
  line-height: 1.3;
  font-weight: 700;
  color: #111827;
}

.admin-menu {
  display: grid;
  gap: 10px;
}

.admin-menu-item {
  border: none;
  width: 100%;
  text-align: left;
  padding: 10px 10px;
  border-radius: 14px;
  background: #f8fafc;
  color: #111827;
  font-weight: 600;
  cursor: pointer;
  display: block;
  text-decoration: none;
}

.admin-menu-item:hover,
.admin-submenu-item:hover {
  background: #e2e8f0;
}

.admin-menu-item.active {
  background: #e2e8f0;
}

.admin-menu-group {
  display: grid;
  gap: 6px;
}

.admin-menu-group summary {
  all: unset;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 10px;
  border-radius: 14px;
  background: #f8fafc;
  color: #111827;
  font-weight: 600;
  cursor: pointer;
}

.admin-menu-group summary::-webkit-details-marker {
  display: none;
}

.admin-menu-group summary .menu-arrow {
  width: 10px;
  height: 10px;
  border-right: 2px solid #475569;
  border-bottom: 2px solid #475569;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-left: 12px;
}

.admin-menu-group[open] summary .menu-arrow {
  transform: rotate(225deg);
}

.admin-menu-item {
  border: none;
  width: 100%;
  text-align: left;
  padding: 0;
  border-radius: 14px;
  background: transparent;
  color: inherit;
  font-weight: 600;
  cursor: pointer;
  display: block;
  text-decoration: none;
}

.admin-menu-item a {
  display: block;
  width: 100%;
  color: inherit;
  text-decoration: none;
}

.admin-menu-item:hover,
.admin-submenu-item:hover,
.admin-menu-group summary:hover {
  background: #e2e8f0;
}

.admin-submenu {
  display: none;
  gap: 6px;
  margin-left: 10px;
  padding-left: 10px;
  border-left: 1px solid #e5e7eb;
}

.admin-menu-group[open] .admin-submenu {
  display: grid;
}

.admin-submenu-item {
  border: none;
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  border-radius: 12px;
  background: #f8fafc;
  color: #475569;
  font-weight: 500;
  cursor: pointer;
  display: block;
  text-decoration: none;
}

.admin-submenu-item.active {
  background: #dbeafe;
  color: #1d4ed8;
}

.admin-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 28px;
  background: #1d4ed8;
  color: #ffffff;
}

.admin-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.18);
  padding: 10px 14px;
  border-radius: 999px;
}

.admin-search input {
  border: none;
  background: transparent;
  color: #ffffff;
  outline: none;
}

.admin-header-actions {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, auto));
  gap: 10px;
  flex: 1;
}

.admin-pill {
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 0.85rem;
  cursor: pointer;
}

.admin-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
  display: grid;
  place-items: center;
  font-weight: 700;
}

.admin-dashboard {
  padding: 28px;
}

.admin-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.admin-card {
  padding: 24px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.card-title {
  color: #6b7280;
  margin-bottom: 18px;
}

.card-value {
  font-size: 2rem;
  font-weight: 700;
  color: #111827;
}

@media (max-width: 1080px) {
  .admin-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 760px) {
  .admin-shell {
    flex-direction: column;
  }

.admin-sidebar {
    width: 100%;
    order: 2;
  }

.admin-main {
    order: 1;
  }

.admin-header {
    flex-direction: column;
    align-items: stretch;
  }

.admin-header-actions {
    grid-template-columns: 1fr;
  }

.admin-cards {
    grid-template-columns: 1fr;
  }

}

.account-header {
  margin-top: 24px;
  border-radius: 28px;
  padding: 24px;
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
  color: #111827;
}

.account-balance {
  margin-bottom: 22px;
}

.account-title {
  font-size: 0.95rem;
  opacity: 0.9;
}

.account-amount {
  margin-top: 14px;
  font-size: 3rem;
  font-weight: 700;
}

.account-usd {
  margin-top: 6px;
  opacity: 0.85;
}

.account-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.account-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 8px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #111827;
  font-weight: 700;
  cursor: pointer;
}

.account-action span {
  font-size: 0.82rem;
}

.account-panel {
  margin-top: 20px;
  padding: 24px;
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.account-tabs {
  display: inline-flex;
  gap: 10px;
  margin-bottom: 22px;
}

.account-tab {
  border: none;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.08);
  color: #cbd5e1;
  cursor: pointer;
}

.account-tab.active {
  background: rgba(248, 179, 28, 0.18);
  color: #ffffff;
}

.account-summary {
  padding: 20px;
  border-radius: 24px;
  background: rgba(8, 14, 31, 0.94);
  border: 1px solid rgba(148, 163, 184, 0.12);
  margin-bottom: 20px;
}

.account-summary-title {
  color: #94a3b8;
  font-size: 0.85rem;
}

.account-summary-value {
  margin-top: 14px;
  font-size: 2.6rem;
  font-weight: 700;
}

.account-summary-usd {
  margin-top: 8px;
  color: #cbd5e1;
}

.account-status {
  padding: 22px;
  margin-bottom: 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  text-align: center;
}

.account-status-message {
  font-weight: 700;
}

.exchange-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  margin-bottom: 20px;
  border-radius: 20px;
  background: rgba(8, 14, 31, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.exchange-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(120px, 0.8fr) auto;
  gap: 12px;
  align-items: end;
}

.exchange-grid label {
  display: grid;
  gap: 6px;
  color: #94a3b8;
  font-size: 0.88rem;
}

.exchange-grid select,
.exchange-grid input {
  min-width: 0;
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.92);
  color: #e2e8f0;
  outline: none;
}

.exchange-grid button {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #14b8a6, #2563eb);
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

.exchange-quote {
  min-height: 22px;
  color: #bae6fd;
  font-size: 0.9rem;
}

.account-controls {
  display: grid;
  gap: 16px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e2e8f0;
  font-size: 0.95rem;
}

.checkbox-row input {
  accent-color: #38bdf8;
}

.search-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(148, 163, 184, 0.08);
}

.search-row input {
  width: 100%;
  border: none;
  background: transparent;
  color: #e2e8f0;
  outline: none;
}

.table-tools{
display:flex;
gap:15px;
margin-bottom:20px;
overflow-x:auto;
 color:#020617;
}

.table-btn{
background:white;
border:1px solid #ddd;
padding:10px 18px;
border-radius:5px;
color:#1677ff;
}

.filter-row{
display:flex;
align-items:center;
gap:15px;
background:#fff;
padding:15px;
border-bottom:1px solid #eee;
}

.filter-row input,
.filter-row select{
height:32px;
width:180px;
border:1px solid #ddd;
border-radius:4px;
}

.withdraw-table{
overflow:auto;
}

table{
width:100%;
border-collapse:collapse;
background:white;
font-size:14px;
overflow-x:auto;
}

th{
background:#fafafa;
font-weight:600;
}

th,td{
border:1px solid #eee;
padding:14px 10px;
text-align:left;
white-space:nowrap;
}

tbody tr:hover{
background:#fafafa;
}

.pagination{
padding:20px;
text-align:center;
color:#555;
}

.pagination button{
margin-left:10px;
padding:6px 12px;
border:1px solid #ddd;
background:white;
}

/* Withdrawal records page fix */

.admin-menu-management .admin-layout-grid {
    display: block;
}

.admin-menu-management .admin-panel {
    width: 1200px;
   max-width: 1400px;
    box-sizing: border-box;
     color:#020617;

}

.table-tools {
    display: flex;
    gap: 18px;
    margin-bottom: 30px;
    overflow-x:auto;
    color:#020617;
}

.table-btn {
    background: #fff;
    border: 1px solid #d9d9d9;
    padding: 12px 25px;
    border-radius: 6px;
    color: #1677ff;
    font-size: 15px;
}

.filter-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 25px;
    flex-wrap: nowrap;
}

.filter-row label {
    color:#344054;
}

.filter-row input,
.filter-row select {
    height:38px;
    width:220px;
    border:1px solid #d9d9d9;
    border-radius:5px;
    padding:0 10px;
}

.withdraw-table {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    display: block;
    overflow-x:auto;
}

.withdraw-table table {
    min-width: 1500px;
    width: max-content;
    border-collapse: collapse;
    overflow-x:auto;
}

.withdraw-table th,
.withdraw-table td {
    padding:14px;
    border:1px solid #eee;
    white-space:nowrap;
}

.withdraw-table th {
    background:#fafafa;
    font-weight:600;
    color:#344054;
}

.pagination {
    margin-top:25px;
    text-align:center;
}

.empty{
    height:160px;
    text-align:center !important;
}

.empty-box{
    color:#cbd5e1;
    font-size:40px;
}

.empty-box p{
    font-size:14px;
    margin-top:10px;
    color:#94a3b8;
}

.topup-img{
    width:75px;
    height:70px;
    object-fit:cover;
}

.withdraw-table td{
    max-width:250px;
    overflow:hidden;
    text-overflow:ellipsis;
}

.withdraw-table th:nth-child(5),
.withdraw-table td:nth-child(5){
    width:300px;
    white-space:normal;
}

.withdraw-table th:nth-child(6),
.withdraw-table td:nth-child(6){
    width:300px;
    word-break:break-all;
}

/* ===== FINAL MOBILE TABLE + ADMIN FIX ===== */

html, body {
    width:100%;
    overflow-x:hidden;
}

@media (max-width:600px){

    .admin-shell,
    .admin-main,
    .admin-menu-management,
    .admin-panel {
        width:100%;
        max-width:100%;
        box-sizing:border-box;
    }

    .admin-layout-grid {
        display:block;
    }

    .admin-panel {
        padding:14px;
        overflow:hidden;
    }

    .filter-row {
        flex-direction:column;
        align-items:stretch;
        gap:10px;
    }

    .filter-row input,
    .filter-row select {
        width:100%;
    }

    .table-tools {
        flex-wrap:wrap;
    }

    .table-btn {
        width:100%;
    }

    /* only the table scrolls */
    .withdraw-table,
    .account-table-wrapper,
    .market-table-wrapper,
    .table-wrapper {
        width:100%;
        overflow-x:auto;
        display:block;
        -webkit-overflow-scrolling:touch;
    }

    .withdraw-table table,
    .account-table,
    .market-table,
    .table-wrapper table {
        min-width:900px;
        width:max-content;
    }

    th, td {
        white-space:nowrap;
    }
}
/* FIX ADMIN DASHBOARD MOBILE */
@media (max-width:600px){

    .admin-dashboard,
    .admin-menu-management {
        width:100% !important;
        max-width:100% !important;
        padding:12px !important;
        margin:0 !important;
        overflow:hidden;
    }


    .admin-layout-grid {
        display:block !important;
        width:100% !important;
    }


    .admin-panel {
        width:100% !important;
        max-width:100% !important;
        padding:16px !important;
        margin:0 !important;
        overflow:hidden !important;
        box-sizing:border-box;
    }


    .panel-header {
        width:100%;
        font-size:16px;
    }


    .admin-dashboard p {
        word-wrap:break-word;
        overflow-wrap:break-word;
    }

}

/* ===== COMPACT UI OVERRIDE ===== */

.page-shell {
    padding: 12px;
}

.hero-header,
.hero-banner,
.feature-card,
.market-tab,
.account-panel,
.status-card {
    padding: 14px;
    border-radius: 18px;
}

.content-section,
.market-tab,
.account-header {
    margin-top: 14px;
}


/* ADMIN COMPACT */
.admin-dashboard,
.admin-menu-management {
    padding: 16px !important;
}

.admin-page-header {
    padding: 16px 16px 0;
}

.admin-layout-grid {
    gap: 12px;
}

.admin-panel {
    padding: 14px;
    border-radius: 16px;
}


.admin-sidebar {
    width: 220px;
    padding: 16px;
}

.admin-brand {
    margin-bottom: 18px;
    gap: 10px;
}

.admin-menu {
    gap: 6px;
}

.admin-menu-item,
.admin-menu-group summary {
    padding: 8px;
    border-radius: 10px;
    font-size: 14px;
}


.admin-header {
    padding: 12px 16px;
}

.admin-dashboard {
    padding: 16px;
}


.admin-cards {
    gap: 12px;
}

.admin-card {
    padding: 16px;
    border-radius: 16px;
}


/* TABLE SMALLER */
.table-tools {
    margin-bottom: 12px;
    gap: 10px;
}

.table-btn {
    padding: 8px 14px;
    font-size: 13px;
}

.filter-row {
    padding: 10px;
    margin-bottom: 15px;
    gap: 8px;
}

.filter-row input,
.filter-row select {
    height: 34px;
    width: 160px;
}


.withdraw-table th,
.withdraw-table td,
th,
td {
    padding: 8px;
    font-size: 13px;
}


/* MOBILE */
@media(max-width:600px){

    .page-shell {
        padding: 8px;
    }

    .admin-dashboard,
    .admin-menu-management {
        padding: 8px !important;
    }


    .admin-panel {
        padding: 10px !important;
        border-radius: 14px;
    }


    .admin-header {
        padding: 10px;
    }


    .admin-cards {
        gap: 10px;
    }


    .admin-card {
        padding: 12px;
    }


    .panel-header {
        margin-bottom: 10px;
    }


    .table-tools {
        flex-direction:column;
    }


    .table-btn {
        width:100%;
    }


    .withdraw-table table {
        min-width:850px;
    }


    .hero-banner h1,
    .hero-copy h1 {
        font-size:1.8rem;
    }


    .account-amount {
        font-size:2rem;
    }

}

#google_translate_element {
    display:none;
}

.goog-te-banner-frame {
    display:none !important;
}

body {
    top:0 !important;
}

/* Demo account modal */
.demo-account-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(10px);
}

.demo-account-modal.open {
    display: flex;
}

.demo-account-modal .demo-account-panel {
    width: min(560px, 100%);
    max-height: calc(100vh - 36px);
    overflow-y: auto;
    margin: 0;
    padding: 20px;
    border-radius: 22px;
    background: #0f172a;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.demo-panel-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.demo-panel-top div {
    display: grid;
    gap: 4px;
}

.demo-panel-top strong {
    color: #f8fafc;
    font-size: 1.15rem;
}

.demo-panel-top span {
    color: #94a3b8;
    font-size: 0.9rem;
}

.demo-close {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 12px;
    background: rgba(148, 163, 184, 0.12);
    color: #e2e8f0;
    cursor: pointer;
    font-size: 1rem;
}

.demo-account-modal .auth-form,
.demo-account-modal .auth-form.compact {
    grid-template-columns: 1fr;
}

.demo-account-modal .auth-form {
    padding: 14px;
    border-radius: 18px;
    background: rgba(8, 14, 31, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.demo-account-modal .auth-form input,
.demo-account-modal 
.demo-account-modal .auth-form input::placeholder {
    color: #94a3b8;
}

.demo-account-modal .auth-form button,
.demo-account-modal .demo-actions button {
    min-height: 46px;
    border-radius: 14px;
}

.demo-account-modal .demo-copy {
    padding: 4px 2px;
}

.demo-account-modal .demo-message {
    min-height: 20px;
    color: #38bdf8;
}

@media (max-width: 600px) {
    .demo-account-modal {
        align-items: flex-end;
        padding: 10px;
    }

    .demo-account-modal .demo-account-panel {
        border-radius: 20px;
        padding: 16px;
    }
}

/* User interface polish */
.search-box,
.search-row {
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(8, 14, 31, 0.72);
}

.icon-button {
    display: inline-grid;
    place-items: center;
    line-height: 1;
}

.icon-button:hover,
.account-action:hover,
.nav-item:hover {
    border-color: rgba(56, 189, 248, 0.32);
    background: rgba(56, 189, 248, 0.12);
}

.hero-button,
.primary-button,
.secondary-button {
    text-decoration: none;
}

.feature-icon {
    display: grid;
    place-items: center;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.18);
}

.nav-item.active {
    background: rgba(56, 189, 248, 0.16);
    color: #ffffff;
}

.account-action > span:first-child {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.22);
    font-size: 1.1rem;
}


.transaction-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.transaction-row > div {
    display: grid;
    gap: 4px;
}

@media(max-width:600px) {
    .hero-header,
    .account-header {
        border-radius: 18px;
        padding: 12px;
    }

    .header-actions {
        gap: 6px;
    }

    .icon-button {
        width: 38px;
        height: 38px;
        border-radius: 13px;
    }

    .market-list-card {
        padding: 10px;
    }

    .market-list-header,
    .market-row {
        grid-template-columns: minmax(128px, 1.4fr) minmax(72px, 0.8fr) minmax(70px, 0.7fr);
        gap: 8px;
        padding-left: 0;
        padding-right: 0;
    }

    .market-list-header {
        font-size: 0.68rem;
        letter-spacing: 0.03em;
    }

    .market-row {
        font-size: 0.88rem;
    }

    .pair-icon {
        width: 32px;
        height: 32px;
        border-radius: 11px;
    }

    .pair-sub {
        font-size: 0.72rem;
    }

    .account-actions {
        gap: 8px;
    }

    .account-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .account-action {
        min-height: 82px;
        padding: 10px 6px;
        border-radius: 16px;
    }

    .account-action span {
        font-size: 0.75rem;
    }

    .transaction-row {
        grid-template-columns: 1fr;
    }
}

/* Account modal hardening */
body.demo-modal-open {
    overflow: hidden;
}

.demo-account-modal[hidden] {
    display: none !important;
}

.demo-account-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 10000 !important;
    align-items: center !important;
    justify-content: center !important;
}

.demo-account-modal.open {
    display: flex !important;
}

.demo-account-modal.open ~ .main-nav,
body.demo-modal-open .main-nav {
    pointer-events: none;
}

.demo-account-panel {
    width: min(560px, calc(100vw - 32px)) !important;
    max-height: calc(100vh - 32px);
    margin: 0 auto !important;
    padding: 20px !important;
    border-radius: 22px !important;
    background: #0f172a !important;
    border: 1px solid rgba(56, 189, 248, 0.22) !important;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
    color: #e2e8f0;
    overflow-y: auto;
}

.demo-account-panel .demo-panel-top {
    display: flex !important;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.demo-account-panel .demo-panel-top > div,
.demo-account-panel .demo-copy,
.demo-account-panel .transaction-row > div {
    display: grid !important;
    gap: 4px;
}

.demo-account-panel .demo-close {
    flex: 0 0 auto;
    width: 36px !important;
    height: 36px !important;
    display: grid !important;
    place-items: center;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: rgba(148, 163, 184, 0.14) !important;
    color: #f8fafc !important;
    font-size: 1rem !important;
    line-height: 1 !important;
}

.demo-account-panel .auth-form,
.demo-account-panel .auth-form.compact {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    width: 100%;
    padding: 14px !important;
    border-radius: 18px !important;
    background: rgba(8, 14, 31, 0.78) !important;
    border: 1px solid rgba(148, 163, 184, 0.12) !important;
}

.demo-account-panel .auth-switch {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    padding: 6px !important;
    margin-bottom: 12px !important;
    border-radius: 16px !important;
    background: rgba(148, 163, 184, 0.08) !important;
}

.demo-account-panel .auth-switch-button {
    min-height: 42px !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: transparent !important;
    color: #94a3b8 !important;
    font-weight: 800 !important;
    cursor: pointer;
}

.demo-account-panel .auth-switch-button.active {
    background: rgba(56, 189, 248, 0.22) !important;
    color: #ffffff !important;
}

.demo-account-panel input {
    box-sizing: border-box !important;
}

.demo-account-panel .auth-form input,
.demo-account-panel .auth-form input[type="text"],
.demo-account-panel .auth-form input[type="tel"],
.demo-account-panel .auth-form input[type="password"] {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 46px !important;
    padding: 0 14px !important;
    border-radius: 14px !important;
    border: 1px solid rgba(148, 163, 184, 0.24) !important;
    background: #111827 !important;
    color: #f8fafc !important;
    outline: none !important;
}

.demo-account-panel .auth-form input::placeholder {
    color: #94a3b8 !important;
    opacity: 1;
}

.demo-account-panel .auth-form button,
.demo-account-panel .demo-actions button {
    width: 100%;
    min-height: 46px !important;
    padding: 0 16px !important;
    border: 0 !important;
    border-radius: 14px !important;
    background: #2563eb !important;
    color: #ffffff !important;
    font-weight: 700;
}

.demo-account-panel .auth-form > * {
    min-width: 0 !important;
}

.demo-account-panel .demo-message {
    min-height: 20px;
    color: #38bdf8 !important;
}

@media (max-width: 600px) {
    .demo-account-modal.open {
        align-items: flex-end !important;
        justify-content: center !important;
        padding: 8px !important;
    }

    .demo-account-panel {
        width: 100% !important;
        max-height: min(92vh, calc(100vh - 16px)) !important;
        border-radius: 20px !important;
        padding: 14px !important;
        overscroll-behavior: contain;
    }

    .demo-account-panel .demo-panel-top {
        position: sticky;
        top: 0;
        z-index: 2;
        padding-bottom: 10px;
        background: #0f172a;
    }

    .demo-balances,
    .settings-list,
    .demo-actions,
    .identity-preview-grid {
        grid-template-columns: 1fr !important;
    }

    .identity-card-top,
    .settings-list div {
        flex-direction: column;
        align-items: stretch;
    }

    .identity-status {
        align-self: flex-start;
    }

    .identity-form input,
    .identity-form select,
    .identity-form button {
        min-height: 48px;
    }

    .withdrawal-modal.open,
    .deposit-modal.open {
        align-items: flex-end;
        padding: 8px;
    }

    .withdrawal-panel,
    .deposit-panel {
        width: 100%;
        max-height: min(92vh, calc(100vh - 16px));
        padding: 14px;
        border-radius: 20px;
    }
}

/* account final layout */
.account-header {
    display: grid !important;
    gap: 18px !important;
    margin-top: 24px !important;
    padding: 22px !important;
    border-radius: 26px !important;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(14, 116, 144, 0.72)) !important;
    border: 1px solid rgba(56, 189, 248, 0.2) !important;
    color: #f8fafc !important;
    box-shadow: 0 18px 50px rgba(2, 6, 23, 0.28) !important;
}

.account-balance {
    margin: 0 !important;
}

.account-title {
    color: #bae6fd !important;
    font-size: 0.95rem !important;
    line-height: 1.35 !important;
    opacity: 1 !important;
}

.account-amount {
    margin-top: 8px !important;
    font-size: clamp(2.2rem, 5vw, 3.25rem) !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
}

.account-usd {
    margin-top: 8px !important;
    color: #cbd5e1 !important;
    opacity: 1 !important;
}

.account-actions {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 12px !important;
}

.account-action {
    display: grid !important;
    place-items: center !important;
    gap: 7px !important;
    min-width: 0 !important;
    min-height: 76px !important;
    padding: 12px 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 18px !important;
    background: rgba(255, 255, 255, 0.11) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    cursor: pointer;
    box-shadow: none !important;
}

.account-action > span:first-child {
    display: grid !important;
    place-items: center !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 12px !important;
    background: rgba(56, 189, 248, 0.16) !important;
}

.account-action:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.16) !important;
}

.account-panel {
    display: grid !important;
    gap: 18px !important;
    padding: 18px !important;
}

.account-summary {
    margin: 0 !important;
    padding: 22px !important;
    border-radius: 22px !important;
    background: rgba(8, 14, 31, 0.82) !important;
}

.account-status {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin: 0 !important;
    padding: 16px 18px !important;
    border-radius: 18px !important;
    background: rgba(56, 189, 248, 0.1) !important;
    border: 1px solid rgba(56, 189, 248, 0.16) !important;
    text-align: left !important;
}

.exchange-panel {
    display: grid !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 16px !important;
    border-radius: 20px !important;
    background: rgba(8, 14, 31, 0.72) !important;
    border: 1px solid rgba(148, 163, 184, 0.14) !important;
}

.exchange-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(160px, 0.7fr) auto !important;
    gap: 12px !important;
    align-items: end !important;
}

.exchange-grid label {
    display: grid !important;
    gap: 6px !important;
    min-width: 0 !important;
    color: #94a3b8 !important;
    font-size: 0.88rem !important;
}

.exchange-grid select,
.exchange-grid input {
    appearance: none;
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 46px !important;
    min-height: 46px !important;
    padding: 0 14px !important;
    border: 1px solid rgba(148, 163, 184, 0.24) !important;
    border-radius: 14px !important;
    background: #111827 !important;
    color: #f8fafc !important;
    outline: none !important;
}

.exchange-grid select {
    padding-right: 38px !important;
    background-color: #111827 !important;
    background-image: linear-gradient(45deg, transparent 50%, #94a3b8 50%), linear-gradient(135deg, #94a3b8 50%, transparent 50%) !important;
    background-position: calc(100% - 18px) 19px, calc(100% - 12px) 19px !important;
    background-repeat: no-repeat !important;
    background-size: 6px 6px, 6px 6px !important;
}

.exchange-grid input::placeholder {
    color: #94a3b8 !important;
    opacity: 1;
}

.exchange-grid button {
    height: 46px !important;
    min-height: 46px !important;
    padding: 0 18px !important;
    border: 0 !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, #14b8a6, #2563eb) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    cursor: pointer;
}

.exchange-quote {
    min-height: 22px !important;
    color: #bae6fd !important;
    font-size: 0.92rem !important;
}

.account-controls {
    display: grid !important;
    grid-template-columns: auto minmax(220px, 1fr) !important;
    align-items: center !important;
    gap: 14px !important;
}

.checkbox-row {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    min-height: 48px !important;
    padding: 0 14px !important;
    border-radius: 16px !important;
    background: rgba(148, 163, 184, 0.08) !important;
    color: #e2e8f0 !important;
}

.search-row {
    min-height: 48px !important;
    padding: 0 16px !important;
    border-radius: 16px !important;
}

.account-ledger {
    margin-top: 0 !important;
    padding-top: 18px !important;
}

.ledger-header {
    padding-bottom: 4px !important;
}

#accountTransactions {
    display: grid !important;
    gap: 10px !important;
}

#accountTransactions .transaction-row {
    grid-template-columns: minmax(0, 1.3fr) minmax(150px, 0.7fr) !important;
    align-items: center !important;
    padding: 14px !important;
    border: 1px solid rgba(148, 163, 184, 0.12) !important;
    border-radius: 16px !important;
    background: rgba(8, 14, 31, 0.72) !important;
}

#accountTransactions .transaction-row strong {
    color: #f8fafc !important;
}

@media (max-width: 700px) {
    .account-header {
        padding: 18px !important;
        border-radius: 22px !important;
    }

    .account-actions {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    .account-action {
        min-height: 64px !important;
        padding: 10px 6px !important;
        font-size: 0.86rem !important;
    }

    .exchange-grid {
        grid-template-columns: 1fr !important;
    }

    .account-controls {
        grid-template-columns: 1fr !important;
    }

    #accountTransactions .transaction-row {
        grid-template-columns: 1fr !important;
    }

    #accountTransactions .transaction-row div:last-child {
        text-align: left !important;
    }
}

/* User tab controls */
.market-selection,
.market-toggle {
    align-items: center !important;
}

.market-selection,
.market-toggle {
    display: inline-flex !important;
    gap: 6px !important;
    padding: 6px !important;
    border-radius: 18px !important;
    background: rgba(148, 163, 184, 0.07) !important;
    border: 1px solid rgba(148, 163, 184, 0.08) !important;
}

.market-tab-item,
.market-filter-item {
    min-height: 42px !important;
    border: 0 !important;
    border-radius: 13px !important;
    padding: 0 16px !important;
    background: transparent !important;
    color: #94a3b8 !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.market-tab-item:hover,
.market-filter-item:hover:hover:hover {
    background: rgba(148, 163, 184, 0.1) !important;
    color: #e2e8f0 !important;
}

.market-tab-item.active,
.market-filter-item.active.active.active {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.24), rgba(34, 197, 94, 0.18)) !important;
    color: #ffffff !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 8px 20px rgba(2, 6, 23, 0.18);
}

.market-tab-item:focus-visible,
.market-filter-item:focus-visible:focus-visible:focus-visible {
    outline: 2px solid rgba(56, 189, 248, 0.7) !important;
    outline-offset: 3px !important;
}

@media (max-width: 700px) {
    .market-top {
        align-items: stretch !important;
    }

    .market-selection,
    .market-toggle {
        width: 100% !important;
        overflow-x: auto !important;
        scrollbar-width: none;
    }

    .market-selection::-webkit-scrollbar,
    .market-toggle::-webkit-scrollbar {
        display: none;
    }

    .market-tab-item,
    .market-filter-item {
        flex: 1 0 auto !important;
        white-space: nowrap !important;
    }

}

/* Functional user states */
.market-row[hidden] {
    display: none !important;
}


.account-assets {
    display: grid;
    gap: 10px;
}

.asset-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border-radius: 16px;
    background: rgba(8, 14, 31, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.asset-row > div {
    display: grid;
    gap: 4px;
}

.asset-row > div:last-child {
    text-align: right;
}

.asset-row strong {
    color: #f8fafc;
}

.asset-row span {
    color: #94a3b8;
    font-size: 0.86rem;
}

@media (max-width: 700px) {
    .asset-row {
        grid-template-columns: 1fr;
    }

    .asset-row > div:last-child {
        text-align: left;
    }
}

/* Admin functionality polish */
.admin-toast {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 20000;
    max-width: min(360px, calc(100vw - 36px));
    padding: 12px 16px;
    border-radius: 14px;
    background: #111827;
    color: #ffffff;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.28);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.admin-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.admin-toast.error {
    background: #991b1b;
}

.admin-pill.active,
.pagination button.active {
    background: #ffffff !important;
    color: #1d4ed8 !important;
    font-weight: 800;
}

.column-picker {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px 14px;
    padding: 12px;
    margin-bottom: 14px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    color: #111827;
}

.column-picker label {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
}

.row-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    margin-right: 6px;
    padding: 0 10px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 700;
    cursor: pointer;
}

body:has(.admin-shell) input:not([type="checkbox"]):not([type="radio"]),
body:has(.admin-shell) select,
body:has(.admin-shell) textarea,
.admin-shell input:not([type="checkbox"]):not([type="radio"]),
.admin-shell select,
.admin-shell textarea {
    appearance: auto;
    background-color: #ffffff !important;
    color: #111827 !important;
    border: 1px solid #d1d5db !important;
    border-radius: 5px !important;
    caret-color: #111827;
    box-shadow: none !important;
}

body:has(.admin-shell) input:not([type="checkbox"]):not([type="radio"])::placeholder,
.admin-shell input:not([type="checkbox"]):not([type="radio"])::placeholder,
body:has(.admin-shell) textarea::placeholder,
.admin-shell textarea::placeholder {
    color: #9ca3af !important;
    opacity: 1;
}

.admin-search input {
    background: transparent !important;
    border: 0 !important;
    color: #ffffff !important;
}

.admin-search input::placeholder {
    color: rgba(255, 255, 255, 0.72) !important;
}

.admin-row-edited {
    background: #ecfdf5 !important;
}

.admin-menu a.active,
.admin-submenu-item.active {
    color: #1d4ed8 !important;
    font-weight: 800;
}

.admin-search .search-icon {
    display: inline-grid;
    place-items: center;
}

tr[style*="display: none"] {
    pointer-events: none;
}

/* Account page hard override */
body.account-page .page-shell {
    width: min(100%, 1240px);
    padding: 24px;
}

body.account-page .account-header {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px) !important;
    align-items: center !important;
    gap: 20px !important;
    margin: 0 0 18px !important;
    padding: 24px !important;
    border-radius: 26px !important;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(14, 116, 144, 0.72)) !important;
    border: 1px solid rgba(56, 189, 248, 0.2) !important;
    color: #f8fafc !important;
    box-shadow: 0 18px 50px rgba(2, 6, 23, 0.28) !important;
}

body.account-page .account-balance {
    display: grid !important;
    gap: 8px !important;
    margin: 0 !important;
}

body.account-page .account-title,
body.account-page .account-summary-title {
    color: #bae6fd !important;
    font-size: 0.95rem !important;
    line-height: 1.35 !important;
}

body.account-page .account-amount,
body.account-page .account-summary-value {
    margin: 0 !important;
    color: #ffffff !important;
    font-size: clamp(2.15rem, 4.4vw, 3.3rem) !important;
    font-weight: 800 !important;
    line-height: 1 !important;
}

body.account-page .account-usd,
body.account-page .account-summary-usd {
    margin: 0 !important;
    color: #cbd5e1 !important;
}

body.account-page .account-actions {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 10px !important;
}

body.account-page .account-action,
body.account-page .account-profile-button {
    display: grid !important;
    place-items: center !important;
    gap: 7px !important;
    min-width: 0 !important;
    min-height: 76px !important;
    padding: 12px 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 18px !important;
    background: rgba(255, 255, 255, 0.11) !important;
    color: #ffffff !important;
    font: inherit !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    cursor: pointer !important;
}

body.account-page .account-action > span:first-child,
body.account-page .account-profile-button > span:first-child {
    display: grid !important;
    place-items: center !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 12px !important;
    background: rgba(56, 189, 248, 0.16) !important;
}

body.account-page .account-panel {
    display: grid !important;
    gap: 18px !important;
    padding: 18px !important;
    border-radius: 24px !important;
    background: rgba(15, 23, 42, 0.56) !important;
    border: 1px solid rgba(148, 163, 184, 0.12) !important;
}

body.account-page .account-auth-gate {
    display: none;
}

body.account-page.account-auth-required .account-header,
body.account-page.account-auth-required .account-panel {
    display: none !important;
}

body.account-page.account-auth-required .account-auth-gate {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    margin: 18px 0;
    padding: 24px;
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.84);
    border: 1px solid rgba(56, 189, 248, 0.2);
    box-shadow: 0 22px 60px rgba(2, 6, 23, 0.32);
}

body.account-page .account-auth-gate div:first-child {
    display: grid;
    gap: 7px;
}

body.account-page .account-auth-gate strong {
    color: #ffffff;
    font-size: 1.25rem;
}

body.account-page .account-auth-gate span {
    color: #bae6fd;
    line-height: 1.5;
}

body.account-page .account-auth-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

body.account-page .account-auth-actions button {
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 14px;
    background: #14b8a6;
    color: #ffffff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

body.account-page .account-auth-actions button:first-child {
    background: #2563eb;
}

body.account-page .account-summary {
    display: grid !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 20px !important;
    border-radius: 20px !important;
    background: rgba(8, 14, 31, 0.76) !important;
}

body.account-page .account-status {
    margin: 0 !important;
    padding: 16px 18px !important;
    border-radius: 18px !important;
    background: rgba(56, 189, 248, 0.1) !important;
    border: 1px solid rgba(56, 189, 248, 0.18) !important;
    color: #f8fafc !important;
}

body.account-page .exchange-panel {
    display: grid !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 16px !important;
    border-radius: 20px !important;
    background: rgba(8, 14, 31, 0.78) !important;
    border: 1px solid rgba(148, 163, 184, 0.14) !important;
}

body.account-page .exchange-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(150px, 0.62fr) auto !important;
    gap: 12px !important;
    align-items: end !important;
}

body.account-page .exchange-grid label {
    display: grid !important;
    gap: 7px !important;
    min-width: 0 !important;
    color: #94a3b8 !important;
    font-size: 0.88rem !important;
}

body.account-page .exchange-grid select,
body.account-page .exchange-grid input {
    appearance: none !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 46px !important;
    min-height: 46px !important;
    padding: 0 14px !important;
    border: 1px solid rgba(148, 163, 184, 0.24) !important;
    border-radius: 14px !important;
    background-color: #111827 !important;
    color: #f8fafc !important;
    font: inherit !important;
    outline: none !important;
}

body.account-page .exchange-grid select {
    padding-right: 38px !important;
    background-image: linear-gradient(45deg, transparent 50%, #94a3b8 50%), linear-gradient(135deg, #94a3b8 50%, transparent 50%) !important;
    background-position: calc(100% - 18px) 19px, calc(100% - 12px) 19px !important;
    background-repeat: no-repeat !important;
    background-size: 6px 6px, 6px 6px !important;
}

body.account-page .exchange-grid button {
    height: 46px !important;
    min-height: 46px !important;
    padding: 0 18px !important;
    border: 0 !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, #14b8a6, #2563eb) !important;
    color: #ffffff !important;
    font: inherit !important;
    font-weight: 800 !important;
    cursor: pointer !important;
}

body.account-page .exchange-quote {
    min-height: 22px !important;
    color: #bae6fd !important;
}

body.account-page .account-controls {
    display: grid !important;
    grid-template-columns: minmax(190px, auto) minmax(260px, 1fr) !important;
    gap: 14px !important;
    align-items: center !important;
}

body.account-page .checkbox-row,
body.account-page .search-row {
    min-height: 48px !important;
    border-radius: 16px !important;
    background: rgba(148, 163, 184, 0.08) !important;
    border: 1px solid rgba(148, 163, 184, 0.08) !important;
}

body.account-page .search-row input {
    height: 46px !important;
    color: #f8fafc !important;
    font: inherit !important;
}

@media (max-width: 820px) {
    body.account-page .page-shell {
        padding: 14px;
    }

    body.account-page .account-header {
        grid-template-columns: 1fr !important;
        padding: 18px !important;
    }

    body.account-page .account-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    body.account-page .exchange-grid,
    body.account-page .account-controls {
        grid-template-columns: 1fr !important;
    }

    body.account-page.account-auth-required .account-auth-gate {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    body.account-page .account-auth-actions {
        justify-content: stretch;
    }

    body.account-page .account-auth-actions button {
        flex: 1 1 130px;
    }
}

/* Floating public navigation */
body:not(.admin-body) .main-nav {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    bottom: 24px !important;
    width: min(720px, calc(100vw - 40px)) !important;
    max-width: calc(100vw - 40px) !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 10px !important;
    transform: translateX(-50%) !important;
    z-index: 9999 !important;
    border-radius: 26px !important;
    background: rgba(15, 23, 42, 0.92) !important;
    border: 1px solid rgba(148, 163, 184, 0.18) !important;
    box-shadow: 0 22px 60px rgba(2, 6, 23, 0.42) !important;
    backdrop-filter: blur(20px);
}

body:not(.admin-body) {
    padding-bottom: 118px;
}

@media (max-width: 520px) {
    body:not(.admin-body) .main-nav {
        bottom: 16px !important;
        width: min(430px, calc(100vw - 24px)) !important;
        max-width: calc(100vw - 24px) !important;
        gap: 6px !important;
        padding: 8px !important;
    }
}

/* Currency trading page */
.trade-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
    gap: 18px;
    margin-top: 24px;
}

.trade-market-panel,
.trade-ticket,
.trade-positions {
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 20px 60px rgba(2, 6, 23, 0.26);
}

.trade-market-panel {
    overflow: hidden;
}

.trade-panel-top {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 18px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.trade-panel-top div,
.ticket-title {
    display: grid;
    gap: 6px;
}

.trade-panel-top span,
.ticket-title span,
.trade-ticket label span,
.trade-position-row span {
    color: #94a3b8;
    font-size: 0.86rem;
}

.trade-panel-top strong,
.ticket-title strong {
    color: #f8fafc;
    font-size: 1.25rem;
}

.trade-chart {
    position: relative;
    min-height: 340px;
    background: linear-gradient(180deg, rgba(8, 14, 31, 0.9), rgba(15, 23, 42, 0.62));
}

.trade-chart svg,
.chart-grid {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.chart-grid {
    background-image: linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
    background-size: 100% 25%, 12.5% 100%;
}

.chart-line {
    fill: none;
    stroke: #22c55e;
    stroke-width: 5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.25s ease;
}

.chart-area {
    fill: rgba(34, 197, 94, 0.16);
    transition: fill 0.25s ease;
}

.trade-chart.chart-negative .chart-line {
    stroke: #fb7185;
}

.trade-chart.chart-negative .chart-area {
    fill: rgba(251, 113, 133, 0.14);
}

.trade-ticket {
    display: grid;
    gap: 14px;
    padding: 18px;
    align-self: start;
}

.trade-ticket label {
    display: grid;
    gap: 7px;
}

.trade-ticket select,
.trade-ticket input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 14px;
    background: #111827;
    color: #f8fafc;
    outline: none;
}

.trade-side-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.trade-side,
.trade-submit {
    min-height: 46px;
    border: 0;
    border-radius: 14px;
    color: #ffffff;
    font-weight: 800;
    cursor: pointer;
}

.trade-side {
    background: rgba(148, 163, 184, 0.12);
}

.trade-side.active[data-side="Buy"] {
    background: linear-gradient(135deg, #16a34a, #22c55e);
}

.trade-side.active[data-side="Sell"] {
    background: linear-gradient(135deg, #dc2626, #f97316);
}

.trade-submit {
    background: linear-gradient(135deg, #14b8a6, #2563eb);
}

.trade-quote {
    min-height: 42px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(56, 189, 248, 0.1);
    color: #bae6fd;
}

.trade-positions {
    display: grid;
    gap: 12px;
    margin-top: 18px;
    padding: 18px;
}

#tradePositions {
    display: grid;
    gap: 10px;
}

.trade-position-row {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(160px, 0.8fr);
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 16px;
    background: rgba(8, 14, 31, 0.72);
}

.trade-position-row div {
    display: grid;
    gap: 4px;
}

.trade-position-row div:last-child {
    text-align: right;
}

@media (max-width: 860px) {
    .trade-layout,
    .trade-panel-top,
    .trade-position-row {
        grid-template-columns: 1fr;
    }

    .trade-position-row div:last-child {
        text-align: left;
    }
}

.currency-rates-tab {
    padding: 28px 32px 110px !important;
    border: 1px solid rgba(148, 163, 184, 0.16) !important;
    border-radius: 24px !important;
    background: rgba(15, 23, 42, 0.78) !important;
    color: #e5edf8 !important;
    box-shadow: 0 22px 70px rgba(2, 6, 23, 0.32);
}

.currency-rate-title {
    margin: 0 0 28px;
    color: #f8fafc;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
}

.currency-rate-list {
    display: grid;
    gap: 14px;
    padding: 18px !important;
    border: 1px solid rgba(148, 163, 184, 0.14) !important;
    border-radius: 22px !important;
    background: rgba(8, 14, 31, 0.62) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

.currency-rate-header,
.currency-rate-row {
    display: grid !important;
    grid-template-columns: minmax(250px, 1.45fr) minmax(120px, 0.7fr) minmax(150px, 0.75fr) minmax(170px, 0.85fr) minmax(120px, 0.55fr);
    align-items: center;
    gap: 18px;
}

.currency-rate-header {
    padding: 0 20px 14px !important;
    border: 0 !important;
    color: #c7d2e3 !important;
    font-size: 1rem !important;
    font-weight: 800;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

.currency-rate-header button {
    justify-self: end;
    min-height: 58px;
    padding: 0 30px;
    border: 0;
    border-radius: 10px;
    background: rgba(56, 189, 248, 0.1);
    color: #7dd3fc;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.inverse-control {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.inverse-control input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.inverse-control i {
    position: relative;
    display: inline-block;
    width: 62px;
    height: 32px;
    border-radius: 999px;
    background: #334155;
    cursor: pointer;
}

.inverse-control i::before {
    content: "";
    position: absolute;
    top: 5px;
    left: 5px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffffff;
    transition: transform 0.2s ease;
}

.inverse-control input:checked + i::before {
    transform: translateX(30px);
}

.inverse-control input:checked + i {
    background: linear-gradient(135deg, #14b8a6, #2563eb);
}

.currency-rate-row {
    min-height: 80px;
    padding: 18px 20px !important;
    border: 0 !important;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.92) !important;
    color: #e5edf8 !important;
}

.currency-rate-row:nth-child(even):not(.base-rate-row) {
    background: rgba(30, 41, 59, 0.72) !important;
}

.currency-rate-row.base-rate-row {
    background: linear-gradient(135deg, rgba(20, 83, 145, 0.98), rgba(8, 24, 67, 0.98)) !important;
    color: #ffffff !important;
    box-shadow: 0 18px 34px rgba(6, 24, 67, 0.14);
}

.currency-rate-row .market-pair {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
}

.currency-rate-row .pair-icon.flag-icon {
    display: inline-grid;
    width: 32px;
    height: 32px;
    min-width: 32px;
    place-items: center;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.12);
    color: #7dd3fc;
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.currency-rate-row.base-rate-row .pair-icon.flag-icon {
    background: #ffffff;
}

.currency-rate-row .pair-name {
    color: #f8fafc;
    font-size: 1.04rem;
    font-weight: 800;
}

.currency-rate-row.base-rate-row .pair-name,
.currency-rate-row.base-rate-row .market-price {
    color: #ffffff;
}

.currency-rate-row .pair-sub {
    display: block;
    margin-top: 4px;
    color: #94a3b8;
    font-size: 0.82rem;
    font-weight: 700;
}

.currency-rate-row.base-rate-row .pair-sub {
    color: rgba(255, 255, 255, 0.72);
}

.currency-rate-row .market-price {
    color: #e0f2fe;
    font-size: 1.05rem;
    font-weight: 800;
}

.currency-rate-row .market-change {
    justify-self: start;
    min-width: 102px;
    padding: 12px 11px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 800;
    text-align: center;
}

.currency-rate-row.base-rate-row .market-change {
    min-width: 0;
    padding: 0;
    background: transparent;
}

.currency-rate-row .market-change.positive {
    background: rgba(34, 197, 94, 0.16);
    color: #4ade80;
}

.currency-rate-row .market-change.negative {
    background: rgba(248, 113, 113, 0.16);
    color: #fb7185;
}

.market-chart svg {
    display: block;
    width: 150px;
    height: 56px;
}

.market-chart path {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
    transition: stroke 0.25s ease;
}

.currency-rate-row .market-chart {
    color: #13933a;
}

.currency-rate-row .market-change.negative ~ .market-chart {
    color: #d31336;
}

.send-rate-button {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    min-width: 150px;
    padding: 0 22px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, #14b8a6, #2563eb);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
}

@media (max-width: 900px) {
    .currency-rates-tab {
        padding: 18px 14px 112px !important;
        border-radius: 20px !important;
    }

    .currency-rate-title {
        margin-bottom: 18px;
        font-size: 1.55rem;
        text-align: left;
    }

    .currency-rate-list {
        gap: 12px;
        padding: 12px !important;
        border-radius: 18px !important;
        overflow: hidden;
    }

    .currency-rate-header {
        display: grid !important;
        grid-template-columns: 1fr auto;
        gap: 10px 12px;
        padding: 4px 4px 8px !important;
    }

    .currency-rate-header .inverse-control {
        grid-column: 1 / -1;
        justify-content: space-between;
        min-height: 44px;
        padding: 0 6px;
        border-radius: 14px;
        background: rgba(15, 23, 42, 0.72);
    }

    .currency-rate-header span:nth-child(2),
    .currency-rate-header span:nth-child(3),
    .currency-rate-header span:nth-child(4) {
        display: none;
    }

    .currency-rate-header button {
        display: none;
    }

    .currency-rate-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px;
        align-items: center;
        min-height: 0;
        padding: 14px !important;
        border-radius: 16px;
    }

    .currency-rate-row .market-pair {
        gap: 12px;
        min-width: 0;
    }

    .currency-rate-row .pair-name,
    .currency-rate-row .pair-sub {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .currency-rate-row .market-price {
        justify-self: end;
        text-align: right;
        font-size: 1rem;
    }

    .currency-rate-row .market-change {
        justify-self: start;
        min-width: 92px;
        padding: 9px 10px;
        font-size: 0.92rem;
    }

    .currency-rate-row .market-chart {
        grid-column: 2;
        grid-row: 2;
        justify-self: end;
        max-width: 38vw;
        overflow: hidden;
    }

    .market-chart svg {
        width: min(140px, 38vw);
        height: 44px;
    }

    .send-rate-button {
        grid-column: 1 / -1;
        justify-self: stretch;
        min-width: 0;
        min-height: 44px;
    }

    .currency-rate-row.base-rate-row .market-change,
    .currency-rate-row.base-rate-row .market-chart,
    .currency-rate-row.base-rate-row > div:last-child {
        display: none;
    }
}

@media (max-width: 520px) {
    body:not(.admin-body) {
        padding-bottom: 118px !important;
    }

    .page-shell {
        width: 100%;
        padding-inline: 10px !important;
    }

    .hero-header {
        padding: 12px !important;
        border-radius: 20px;
    }

    .hero-banner {
        padding: 18px !important;
        border-radius: 18px;
    }

    .hero-copy h1 {
        font-size: 2rem;
        line-height: 1.1;
    }

    .currency-rates-tab {
        margin-top: 18px;
        padding-inline: 10px !important;
    }

    .currency-rate-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .currency-rate-row .market-price,
    .currency-rate-row .market-chart {
        grid-column: 1;
        justify-self: start;
        text-align: left;
    }

    .currency-rate-row .market-chart {
        grid-row: auto;
        width: 100%;
        max-width: 100%;
    }

    .market-chart svg {
        width: 100%;
        max-width: 260px;
    }

    .currency-rate-row .market-change {
        grid-column: 1;
    }

    body:not(.admin-body) .main-nav {
        width: calc(100vw - 16px) !important;
        bottom: 8px !important;
        padding: 8px !important;
        border-radius: 18px !important;
    }

    body:not(.admin-body) .main-nav .nav-item {
        min-width: 0;
        padding: 8px 2px !important;
    }

    body:not(.admin-body) .main-nav .nav-item span:last-child {
        font-size: 11px;
    }
}

/* Admin contrast guardrails */
body:has(.admin-shell) {
    background: #f3f4f6 !important;
    color: #111827 !important;
}

.admin-shell,
.admin-main,
.admin-dashboard,
.admin-menu-management,
.admin-panel,
.admin-card,
.table-wrapper,
.account-table-wrapper {
    color: #111827 !important;
}

.admin-panel,
.admin-card {
    background: #ffffff !important;
}

.admin-panel p,
.admin-panel div,
.admin-panel span,
.admin-panel strong,
.admin-panel label,
.admin-panel th,
.admin-panel td,
.admin-card p,
.admin-card div,
.admin-card span,
.filter-row label,
.table-tools,
.column-picker,
.pagination {
    color: #111827;
}

.admin-page-title,
.panel-header,
.admin-panel h1,
.admin-panel h2,
.admin-panel h3,
.admin-panel h4,
.admin-card h1,
.admin-card h2,
.admin-card h3,
.card-value {
    color: #0f172a !important;
}

.admin-breadcrumb,
.admin-panel label span,
.filter-row span,
.empty-box p,
.empty-table-cell,
.panel-header span,
.account-op-title {
    color: #475569 !important;
}

.admin-sidebar,
.admin-brand,
.admin-menu,
.admin-menu-group,
.admin-submenu {
    color: #111827 !important;
}

.admin-title,
.admin-menu a,
.admin-menu-item,
.admin-menu-group summary,
.admin-submenu-item {
    color: #111827 !important;
}

.admin-submenu-item {
    color: #334155 !important;
}

.admin-menu-item.active,
.admin-menu-item.active a,
.admin-submenu-item.active,
.admin-menu a.active {
    color: #1d4ed8 !important;
}

.admin-header,
.admin-header span,
.admin-profile,
.admin-profile span,
.admin-header .icon-button,
.admin-pill {
    color: #ffffff !important;
}

.admin-search input,
.admin-search input::placeholder {
    color: #ffffff !important;
}

.admin-shell input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.admin-shell select,
.admin-shell textarea {
    background: #ffffff !important;
    color: #111827 !important;
    border-color: #cbd5e1 !important;
}

.admin-shell input[type="file"] {
    color: #111827 !important;
}

.admin-shell input::placeholder,
.admin-shell textarea::placeholder {
    color: #64748b !important;
    opacity: 1 !important;
}

.admin-shell option {
    background: #ffffff;
    color: #111827;
}

.admin-shell table,
.admin-shell thead,
.admin-shell tbody,
.admin-shell tr,
.admin-shell th,
.admin-shell td,
.account-table,
.withdraw-table,
.market-table,
.user-config-table {
    color: #111827 !important;
}

.admin-shell thead th,
.account-table thead th,
.withdraw-table thead th,
.user-config-table thead th {
    color: #1f2937 !important;
    background: #f8fafc;
}

.admin-shell tbody td {
    color: #111827 !important;
}

.admin-shell a:not(.admin-title):not(.admin-submenu-item):not(.admin-menu-item a) {
    color: #1d4ed8;
}

.admin-shell .row-action,
.admin-shell .table-btn,
.admin-shell .secondary-button,
.admin-shell #refresh-users-btn,
.admin-shell #refresh-verifications-btn {
    color: #1d4ed8 !important;
}

.admin-shell .row-action-danger {
    color: #b91c1c !important;
}

.admin-shell .primary-button,
.admin-shell button[type="submit"] {
    color: #ffffff !important;
}

.admin-shell .status-badge,
.admin-shell .message-box,
.admin-shell .admin-toast {
    color: inherit;
}

.admin-shell .status-active,
.admin-shell .verification-status-approved,
.admin-shell .message-box.success {
    color: #166534 !important;
}

.admin-shell .status-frozen,
.admin-shell .verification-status-rejected,
.admin-shell .message-box.error {
    color: #991b1b !important;
}

.admin-shell .verification-status-pending {
    color: #92400e !important;
}

/* Home page visual refresh */
body:not(.account-page):not(.admin-body) .hero-header {
    position: relative;
    overflow: hidden;
    border-color: rgba(56, 189, 248, 0.24);
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(8, 14, 31, 0.92)),
        radial-gradient(circle at 82% 12%, rgba(20, 184, 166, 0.2), transparent 34%);
}

body:not(.account-page):not(.admin-body) .hero-header::before {
    content: "";
    position: absolute;
    inset: 64px -80px auto auto;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.12);
    filter: blur(26px);
    pointer-events: none;
}

body:not(.account-page):not(.admin-body) .hero-banner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
    gap: 22px;
    align-items: stretch;
    min-height: 330px;
    padding: 28px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background:
        linear-gradient(135deg, rgba(8, 14, 31, 0.94), rgba(14, 116, 144, 0.36)),
        repeating-linear-gradient(90deg, rgba(148, 163, 184, 0.05) 0 1px, transparent 1px 76px);
}

body:not(.account-page):not(.admin-body) .hero-copy {
    position: relative;
    z-index: 1;
    display: grid;
    align-content: center;
    justify-items: start;
}

body:not(.account-page):not(.admin-body) .hero-copy h1 {
    max-width: 760px;
    font-size: clamp(2.15rem, 5vw, 4.65rem);
    line-height: 0.96;
}

body:not(.account-page):not(.admin-body) .hero-description {
    max-width: 620px;
    font-size: 1rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.hero-button {
    margin-top: 0;
    text-decoration: none;
}

.hero-button-secondary {
    background: rgba(15, 23, 42, 0.76);
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: none;
}

.hero-button-secondary:hover,
.hero-button-secondary:focus-visible {
    background: rgba(56, 189, 248, 0.16);
}

.hero-market-visual {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 16px;
    min-height: 270px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(2, 6, 23, 0.64);
    border: 1px solid rgba(56, 189, 248, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 24px 70px rgba(2, 6, 23, 0.28);
}

.visual-topline,
.visual-orders {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    gap: 10px;
}

.visual-topline span,
.visual-orders span {
    color: #94a3b8;
    font-size: 0.82rem;
}

.visual-topline strong,
.visual-orders strong {
    color: #f8fafc;
}

.visual-topline em {
    justify-self: end;
    font-style: normal;
    color: #86efac;
    font-weight: 900;
}

.visual-chart {
    display: flex;
    align-items: end;
    gap: 8px;
    min-height: 150px;
    padding: 16px;
    border-radius: 18px;
    background:
        linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
    background-size: 100% 34px, 42px 100%;
}

.visual-chart span {
    flex: 1;
    min-width: 12px;
    border-radius: 999px 999px 4px 4px;
    background: linear-gradient(180deg, #86efac, #14b8a6 52%, #2563eb);
    box-shadow: 0 8px 24px rgba(20, 184, 166, 0.2);
}

.visual-orders {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.visual-orders div {
    display: grid;
    gap: 5px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(148, 163, 184, 0.08);
}

.home-stat-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.home-stat-strip div,
.home-action-tile {
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(15, 23, 42, 0.76);
    box-shadow: 0 18px 50px rgba(2, 6, 23, 0.18);
}

.home-stat-strip div {
    display: grid;
    gap: 6px;
    padding: 16px;
    border-radius: 20px;
}

.home-stat-strip span,
.home-action-tile small {
    color: #94a3b8;
}

.home-stat-strip strong {
    color: #f8fafc;
    font-size: 1.25rem;
}

.home-action-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.home-action-tile {
    display: grid;
    gap: 8px;
    min-height: 132px;
    padding: 18px;
    border-radius: 22px;
    color: #f8fafc;
    text-decoration: none;
}

.home-action-tile:hover,
.home-action-tile:focus-visible {
    border-color: rgba(56, 189, 248, 0.34);
    background: rgba(56, 189, 248, 0.12);
    outline: none;
}

.tile-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: rgba(20, 184, 166, 0.16);
    color: #86efac;
    font-size: 0.78rem;
    font-weight: 900;
}

.home-action-tile strong {
    font-size: 1rem;
}

body:not(.account-page):not(.admin-body) .feature-card,
body:not(.account-page):not(.admin-body) .rate-card,
body:not(.account-page):not(.admin-body) .market-list-card {
    border-color: rgba(56, 189, 248, 0.14);
    box-shadow: 0 18px 50px rgba(2, 6, 23, 0.18);
}

@media (max-width: 820px) {
    body:not(.account-page):not(.admin-body) .hero-banner {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .hero-market-visual {
        min-height: 230px;
    }

    .home-stat-strip,
    .home-action-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    body:not(.account-page):not(.admin-body) .hero-copy h1 {
        font-size: 2rem;
    }

    .hero-actions {
        width: 100%;
    }

    .hero-actions .hero-button {
        flex: 1 1 100%;
    }

    .visual-chart {
        min-height: 120px;
        gap: 6px;
    }
}

/* Mobile trading-dashboard home treatment */
body:not(.account-page):not(.admin-body) {
    background: #171b26;
}

body:not(.account-page):not(.admin-body) .page-shell {
    max-width: 720px;
    padding: 12px 10px 118px;
}

body:not(.account-page):not(.admin-body) .hero-header {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body:not(.account-page):not(.admin-body) .hero-header::before {
    display: none;
}

body:not(.account-page):not(.admin-body) .header-top {
    min-height: 52px;
    gap: 12px;
    padding: 0 2px 10px;
}

body:not(.account-page):not(.admin-body) .avatar {
    display: grid !important;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background:
        radial-gradient(circle at 50% 36%, #9ca3af 0 7px, transparent 8px),
        radial-gradient(circle at 50% 82%, #9ca3af 0 13px, transparent 14px),
        #374151;
    cursor: pointer;
}

body:not(.account-page):not(.admin-body) .search-box {
    height: 44px;
    padding: 0 4px;
    border: 0;
    background: transparent;
    color: #9ca3af;
}

body:not(.account-page):not(.admin-body) .search-icon {
    color: #9ca3af;
    font-size: 1.25rem;
}

body:not(.account-page):not(.admin-body) .search-box input {
    color: #cbd5e1;
    font-size: 1.35rem;
}

body:not(.account-page):not(.admin-body) .search-box input::placeholder {
    color: #9ca3af;
    opacity: 1;
}

body:not(.account-page):not(.admin-body) .header-actions {
    gap: 10px;
}

body:not(.account-page):not(.admin-body) .icon-button {
    width: 38px;
    height: 38px;
    border: 0;
    background: transparent;
    color: #e5e7eb;
    font-size: 1.55rem;
}

body:not(.account-page):not(.admin-body) .hero-banner {
    min-height: 200px;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 0.74fr);
    gap: 10px;
    margin-top: 8px;
    padding: 28px 28px 18px;
    overflow: hidden;
    border: 0;
    border-radius: 12px;
    background:
        linear-gradient(120deg, rgba(61, 44, 166, 0.98), rgba(74, 49, 184, 0.94)),
        radial-gradient(circle at 82% 40%, rgba(56, 189, 248, 0.34), transparent 34%);
}

body:not(.account-page):not(.admin-body) .hero-copy h1 {
    max-width: 330px;
    font-size: clamp(1.65rem, 7vw, 2.45rem);
    line-height: 1.18;
    letter-spacing: 0;
}

body:not(.account-page):not(.admin-body) .hero-description {
    max-width: 300px;
    color: #eef2ff;
    font-size: 0.98rem;
}

body:not(.account-page):not(.admin-body) .hero-copy .eyebrow {
    color: #ffffff;
    font-size: 0.98rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: none;
}

.hero-actions {
    margin-top: 16px;
}

body:not(.account-page):not(.admin-body) .hero-button {
    min-height: 38px;
    padding: 0 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: none;
}

body:not(.account-page):not(.admin-body) .hero-button-secondary {
    display: none;
}

body:not(.account-page):not(.admin-body) .hero-market-visual {
    align-self: stretch;
    min-height: 144px;
    padding: 12px;
    border: 0;
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(125, 211, 252, 0.18), rgba(37, 99, 235, 0.1)),
        rgba(15, 23, 42, 0.24);
}

body:not(.account-page):not(.admin-body) .visual-topline,
body:not(.account-page):not(.admin-body) .visual-orders {
    display: none;
}

body:not(.account-page):not(.admin-body) .visual-chart {
    min-height: 128px;
    padding: 12px;
    gap: 7px;
    background: linear-gradient(180deg, rgba(191, 219, 254, 0.16), rgba(30, 41, 59, 0.08));
}

body:not(.account-page):not(.admin-body) .visual-chart span {
    min-width: 10px;
    border-radius: 8px 8px 2px 2px;
    background: linear-gradient(180deg, #67e8f9, #3b82f6 54%, #111827);
}

.home-notice-strip {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 0 4px;
    color: #d1d5db;
    font-size: 1.25rem;
}

.home-notice-strip span {
    color: #9ca3af;
}

.home-notice-strip strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1.28rem;
    font-weight: 700;
}

.home-notice-strip a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 2.2rem;
    line-height: 1;
}

.home-currency-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 0;
}

.home-currency-card {
    display: grid;
    justify-items: center;
    min-height: 222px;
    padding: 24px 12px 18px;
    border-radius: 14px;
    background: #202432;
    border: 1px solid rgba(148, 163, 184, 0.36);
}

.currency-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 900;
}

.currency-usd {
    background: #fb923c;
}

.currency-eur {
    background: #647dee;
}

.currency-jpy {
    background: #ef4444;
}

.home-currency-card .rate-label {
    margin-top: 8px;
    color: #dbeafe;
    font-size: 1.75rem;
    font-weight: 900;
    letter-spacing: 0;
}

.home-currency-card .rate-sub {
    margin-top: 0;
    color: #dbeafe;
    font-size: 1rem;
    font-weight: 800;
}

.home-currency-card .rate-value {
    margin-top: 18px;
    color: #14f1c8;
    font-size: 1.08rem;
}

.home-currency-card .rate-change {
    margin-top: 4px;
    color: #14f1c8;
    font-size: 1.02rem;
}

.home-currency-card small {
    margin-top: 8px;
    color: #94a3b8;
}

.home-mining-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(160px, 0.55fr);
    align-items: center;
    min-height: 130px;
    margin-top: 12px;
    padding: 16px 20px;
    border: 0;
    border-radius: 0;
    background: #202432;
}

.home-mining-panel h2 {
    color: #dbeafe;
    font-size: 1.8rem;
}

.home-mining-panel p {
    color: #dbeafe;
    font-size: 1.2rem;
}

.home-mining-art {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 34px);
    align-items: end;
    gap: 8px;
    min-width: 180px;
    min-height: 94px;
}

.home-mining-art span {
    display: block;
    border-radius: 8px 8px 2px 2px;
    background: linear-gradient(180deg, #67e8f9, #2563eb);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25);
}

.home-mining-art span:nth-child(1) { height: 38px; }
.home-mining-art span:nth-child(2) { height: 68px; }
.home-mining-art span:nth-child(3) { height: 54px; }
.home-mining-art span:nth-child(4) { height: 82px; }

body:not(.account-page):not(.admin-body) .market-tab {
    margin-top: 10px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

body:not(.account-page):not(.admin-body) .market-toggle {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 0;
    border-radius: 0;
    background: #202432;
}

body:not(.account-page):not(.admin-body) .market-filter-item {
    min-height: 72px;
    border-radius: 0;
    color: #9ca3af;
    font-size: 1.25rem;
}

body:not(.account-page):not(.admin-body) .market-filter-item.active {
    position: relative;
    color: #facc15;
    background: transparent;
}

body:not(.account-page):not(.admin-body) .market-filter-item.active::after {
    content: "";
    position: absolute;
    left: 30%;
    right: 30%;
    bottom: 0;
    height: 2px;
    background: #facc15;
}

body:not(.account-page):not(.admin-body) .market-list-card {
    margin-top: 0;
    border: 0;
    border-radius: 0;
    background: #171b26;
}

@media (max-width: 620px) {
    body:not(.account-page):not(.admin-body) .hero-banner {
        grid-template-columns: minmax(0, 1fr) minmax(128px, 0.7fr);
        padding: 22px 18px 16px;
    }

    body:not(.account-page):not(.admin-body) .hero-copy h1 {
        font-size: 1.55rem;
    }

    body:not(.account-page):not(.admin-body) .hero-description {
        font-size: 0.88rem;
    }

    .home-currency-grid {
        gap: 8px;
    }

    .home-currency-card {
        min-height: 190px;
        padding: 18px 8px 14px;
    }

    .home-currency-card .rate-label {
        font-size: 1.35rem;
    }

    .home-currency-card .rate-value,
    .home-currency-card .rate-change {
        font-size: 0.95rem;
    }

    .home-currency-card small {
        font-size: 0.7rem;
    }

    .home-mining-panel {
        grid-template-columns: minmax(0, 1fr) minmax(110px, 0.7fr);
        gap: 10px;
    }

    .home-mining-panel h2 {
        font-size: 1.45rem;
    }

    .home-mining-panel p {
        font-size: 1rem;
    }

    .home-mining-art {
        grid-template-columns: repeat(4, 22px);
        min-width: 112px;
    }
}

/* Responsive home/dashboard guardrails */
body:not(:has(.home-currency-grid)):not(.account-page):not(.admin-body) .page-shell {
    max-width: 1200px;
    padding: 24px 24px 118px;
}

body:has(.home-currency-grid):not(.account-page):not(.admin-body) .page-shell {
    width: min(100%, 1180px);
    max-width: 1180px;
    padding: 24px 24px 118px;
}

body:has(.home-currency-grid):not(.account-page):not(.admin-body) .header-top {
    padding-bottom: 18px;
}

body:has(.home-currency-grid):not(.account-page):not(.admin-body) .search-box {
    max-width: 620px;
    padding: 0 16px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.68);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

body:has(.home-currency-grid):not(.account-page):not(.admin-body) .search-box input {
    font-size: 1rem;
}

body:has(.home-currency-grid):not(.account-page):not(.admin-body) .hero-banner {
    grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
    min-height: 340px;
    padding: 36px;
    border-radius: 28px;
}

body:has(.home-currency-grid):not(.account-page):not(.admin-body) .hero-copy h1 {
    max-width: 680px;
    font-size: clamp(2.65rem, 5vw, 4.75rem);
    line-height: 1;
}

body:has(.home-currency-grid):not(.account-page):not(.admin-body) .hero-description {
    max-width: 600px;
    font-size: 1.05rem;
}

body:has(.home-currency-grid):not(.account-page):not(.admin-body) .hero-button-secondary {
    display: inline-flex;
}

body:has(.home-currency-grid):not(.account-page):not(.admin-body) .hero-market-visual {
    min-height: 260px;
    padding: 18px;
    border: 1px solid rgba(125, 211, 252, 0.2);
    background: rgba(2, 6, 23, 0.48);
}

body:has(.home-currency-grid):not(.account-page):not(.admin-body) .visual-topline,
body:has(.home-currency-grid):not(.account-page):not(.admin-body) .visual-orders {
    display: grid;
}

body:has(.home-currency-grid):not(.account-page):not(.admin-body) .visual-chart {
    min-height: 150px;
}

body:has(.home-currency-grid):not(.account-page):not(.admin-body) .home-notice-strip,
body:has(.home-currency-grid):not(.account-page):not(.admin-body) .home-mining-panel,
body:has(.home-currency-grid):not(.account-page):not(.admin-body) .market-tab,
body:has(.home-currency-grid):not(.account-page):not(.admin-body) .market-list-card {
    border-radius: 24px;
}

body:has(.home-currency-grid):not(.account-page):not(.admin-body) .home-notice-strip {
    min-height: 64px;
    margin-top: 18px;
    padding: 0 20px;
    background: rgba(15, 23, 42, 0.76);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

body:has(.home-currency-grid):not(.account-page):not(.admin-body) .home-currency-grid {
    gap: 18px;
    margin-top: 18px;
}

body:has(.home-currency-grid):not(.account-page):not(.admin-body) .home-currency-card {
    min-height: 210px;
    padding: 24px 18px;
}

body:has(.home-currency-grid):not(.account-page):not(.admin-body) .home-mining-panel {
    min-height: 164px;
    margin-top: 18px;
    padding: 24px;
    border: 1px solid rgba(148, 163, 184, 0.12);
}

body:has(.home-currency-grid):not(.account-page):not(.admin-body) .market-tab {
    margin-top: 18px;
    overflow: hidden;
    background: #202432;
}

body:has(.home-currency-grid):not(.account-page):not(.admin-body) .market-list-card {
    overflow: hidden;
}

body:has(.home-currency-grid):not(.account-page):not(.admin-body) .home-deal-list .market-list-header,
body:has(.home-currency-grid):not(.account-page):not(.admin-body) .home-deal-list .market-row {
    grid-template-columns: minmax(150px, 1fr) minmax(110px, 0.58fr) minmax(140px, 0.72fr);
}

body:has(.home-currency-grid):not(.account-page):not(.admin-body) .home-deal-list .market-list-header {
    color: #9ca3af;
    font-size: 1rem;
}

body:has(.home-currency-grid):not(.account-page):not(.admin-body) .home-deal-row {
    min-height: 74px;
}

.account-view-hidden {
    display: none !important;
}

.settings-back-button {
    justify-self: start;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: 10px;
    background: rgba(14, 45, 91, 0.84);
    color: #dbeafe;
    font-weight: 800;
    cursor: pointer;
}

.settings-back-button:hover,
.settings-back-button:focus-visible {
    background: rgba(37, 99, 235, 0.4);
    outline: none;
}

body:not(.admin-body) {
    background:
        radial-gradient(circle at 18% 0%, rgba(56, 189, 248, 0.16), transparent 28%),
        linear-gradient(180deg, #071323 0%, #07111f 48%, #050b17 100%) !important;
}

body:not(.account-page):not(.admin-body),
body:not(.account-page):not(.admin-body) .market-list-card {
    background-color: #07111f;
}

body:not(.account-page):not(.admin-body) .hero-banner,
body:has(.home-currency-grid):not(.account-page):not(.admin-body) .hero-banner {
    background:
        linear-gradient(135deg, rgba(14, 45, 91, 0.98), rgba(9, 24, 46, 0.98)),
        radial-gradient(circle at 82% 40%, rgba(56, 189, 248, 0.3), transparent 34%) !important;
}

body:not(.account-page):not(.admin-body) .home-currency-card,
body:not(.account-page):not(.admin-body) .home-mining-panel,
body:has(.home-currency-grid):not(.account-page):not(.admin-body) .market-tab {
    background: #0b1b31;
    border-color: rgba(56, 189, 248, 0.14);
}

body.account-page .account-header,
body.account-page .account-panel,
.demo-account-panel,
.withdrawal-panel,
.deposit-panel {
    background: #071323 !important;
    border-color: rgba(56, 189, 248, 0.18) !important;
}

body.account-page .account-status,
.identity-card,
.user-settings-card,
.profile-menu-card {
    background: rgba(8, 25, 46, 0.86) !important;
    border-color: rgba(56, 189, 248, 0.16) !important;
}

body.account-page .account-header {
    grid-template-columns: minmax(0, 1fr) auto !important;
}

body.account-page .account-actions {
    display: grid !important;
    grid-template-columns: repeat(4, 76px) !important;
    justify-content: end !important;
    gap: 10px !important;
}

body.account-page .account-action,
body.account-page .account-profile-button {
    width: 76px !important;
    min-height: 76px !important;
    padding: 9px 6px !important;
    border-radius: 14px !important;
    background: rgba(14, 45, 91, 0.72) !important;
    border-color: rgba(56, 189, 248, 0.18) !important;
    color: #f8fafc !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

body.account-page .account-action > span:first-child,
body.account-page .account-profile-button > span:first-child {
    width: 34px !important;
    height: 34px !important;
    border-radius: 12px !important;
    background: rgba(56, 189, 248, 0.18) !important;
}

body.account-page .account-action > span:last-child,
body.account-page .account-profile-button > span:last-child {
    color: inherit !important;
    font-size: 0.82rem !important;
    line-height: 1.1 !important;
    text-decoration: none !important;
}

body.account-page .support-button::after {
    display: none !important;
}

@media (max-width: 680px) {
    body.account-page .account-header {
        grid-template-columns: 1fr !important;
    }

    body.account-page .account-actions {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        justify-content: stretch !important;
    }

    body.account-page .account-action,
    body.account-page .account-profile-button {
        width: auto !important;
    }

    body.account-page .account-top-header .header-top {
        grid-template-columns: 44px minmax(0, 1fr) auto !important;
        gap: 10px !important;
        padding-bottom: 10px !important;
    }

    body.account-page .account-top-header .avatar {
        width: 42px !important;
        height: 42px !important;
    }

    body.account-page .account-top-header .search-box {
        height: 46px !important;
        grid-template-columns: 24px minmax(0, 1fr) !important;
        gap: 8px !important;
    }

    body.account-page .account-top-header .search-icon {
        font-size: 1.1rem !important;
        text-shadow: none !important;
    }

    body.account-page .account-top-header .search-box input {
        height: 46px !important;
        font-size: 1rem !important;
        padding: 0 12px !important;
    }

    body.account-page .account-top-header .header-actions {
        gap: 8px !important;
    }

    body.account-page .account-top-header .icon-button {
        width: 34px !important;
        height: 34px !important;
        font-size: 1.35rem !important;
    }
}

.currency-pair-icon {
    background: linear-gradient(135deg, #facc15, #a16207) !important;
    color: #ffffff !important;
    font-weight: 900;
}

.market-volume {
    justify-self: end;
    color: #22c55e;
    font-weight: 800;
}

.home-deal-row.positive .market-price,
.home-deal-row.positive .market-volume {
    color: #22c55e;
}

.home-deal-row.negative .market-price,
.home-deal-row.negative .market-volume,
.market-volume.negative {
    color: #f87171;
}

@media (max-width: 760px) {
    body:has(.home-currency-grid):not(.account-page):not(.admin-body) .page-shell {
        max-width: 720px;
        padding: 12px 10px 118px;
    }

    body:has(.home-currency-grid):not(.account-page):not(.admin-body) .header-top {
        padding-bottom: 10px;
    }

    body:has(.home-currency-grid):not(.account-page):not(.admin-body) .search-box {
        max-width: none;
        padding: 0 4px;
        border: 0;
        background: transparent;
    }

    body:has(.home-currency-grid):not(.account-page):not(.admin-body) .search-box input {
        font-size: 1.08rem;
    }

    body:has(.home-currency-grid):not(.account-page):not(.admin-body) .hero-banner {
        grid-template-columns: minmax(0, 1fr) minmax(128px, 0.7fr);
        min-height: 200px;
        padding: 22px 18px 16px;
        border-radius: 12px;
    }

    body:has(.home-currency-grid):not(.account-page):not(.admin-body) .hero-copy h1 {
        font-size: 1.55rem;
        line-height: 1.18;
    }

    body:has(.home-currency-grid):not(.account-page):not(.admin-body) .hero-description {
        font-size: 0.88rem;
    }

    body:has(.home-currency-grid):not(.account-page):not(.admin-body) .hero-button-secondary,
    body:has(.home-currency-grid):not(.account-page):not(.admin-body) .visual-topline,
    body:has(.home-currency-grid):not(.account-page):not(.admin-body) .visual-orders {
        display: none;
    }

    body:has(.home-currency-grid):not(.account-page):not(.admin-body) .hero-market-visual {
        min-height: 144px;
        padding: 12px;
        border: 0;
    }

    body:has(.home-currency-grid):not(.account-page):not(.admin-body) .visual-chart {
        min-height: 128px;
    }

    body:has(.home-currency-grid):not(.account-page):not(.admin-body) .home-notice-strip,
    body:has(.home-currency-grid):not(.account-page):not(.admin-body) .home-mining-panel,
    body:has(.home-currency-grid):not(.account-page):not(.admin-body) .market-tab,
    body:has(.home-currency-grid):not(.account-page):not(.admin-body) .market-list-card {
        border-radius: 0;
    }

    body:has(.home-currency-grid):not(.account-page):not(.admin-body) .home-notice-strip {
        margin-top: 0;
        padding: 0 4px;
        background: transparent;
        border: 0;
    }

    body:has(.home-currency-grid):not(.account-page):not(.admin-body) .home-currency-grid {
        gap: 8px;
        margin-top: 0;
    }

    body:has(.home-currency-grid):not(.account-page):not(.admin-body) .home-currency-card {
        min-height: 190px;
        padding: 18px 8px 14px;
    }

    body:has(.home-currency-grid):not(.account-page):not(.admin-body) .home-mining-panel {
        min-height: 130px;
        margin-top: 12px;
        padding: 16px 20px;
        border: 0;
    }

    body:has(.home-currency-grid):not(.account-page):not(.admin-body) .home-deal-list .market-list-header,
    body:has(.home-currency-grid):not(.account-page):not(.admin-body) .home-deal-list .market-row {
        grid-template-columns: minmax(132px, 1.15fr) minmax(90px, 0.7fr) minmax(104px, 0.78fr);
    }

    body:has(.home-currency-grid):not(.account-page):not(.admin-body) .home-deal-list .market-list-header {
        font-size: 0.95rem;
    }

    .market-volume {
        font-size: 0.95rem;
    }
}

@media (max-width: 420px) {
    body:has(.home-currency-grid):not(.account-page):not(.admin-body) .hero-banner {
        grid-template-columns: 1fr;
    }

    body:has(.home-currency-grid):not(.account-page):not(.admin-body) .hero-market-visual {
        display: none;
    }

    body:has(.home-currency-grid):not(.account-page):not(.admin-body) .home-currency-card .rate-label {
        font-size: 1.1rem;
    }

    body:has(.home-currency-grid):not(.account-page):not(.admin-body) .home-currency-card small {
        display: none;
    }
}

/* User header consistency overrides */
body.account-page .page-shell {
    width: min(100%, 1180px) !important;
    max-width: 1180px !important;
    padding: 24px 24px 118px !important;
}

body.account-page .account-header {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 18px !important;
    margin: 0 0 18px !important;
    padding: 24px !important;
    border-radius: 24px !important;
    background: #071323 !important;
    border: 1px solid rgba(56, 189, 248, 0.18) !important;
    box-shadow: 0 18px 50px rgba(2, 6, 23, 0.18) !important;
}

body.account-page .account-actions {
    display: grid !important;
    grid-template-columns: repeat(4, 72px) !important;
    justify-content: end !important;
    gap: 10px !important;
}

body.account-page .account-action,
body.account-page .account-profile-button {
    width: 72px !important;
    min-height: 72px !important;
    padding: 8px 6px !important;
    border-radius: 14px !important;
    background: rgba(14, 45, 91, 0.72) !important;
    border: 1px solid rgba(56, 189, 248, 0.18) !important;
    color: #f8fafc !important;
    text-decoration: none !important;
}

body.account-page .account-action > span:first-child,
body.account-page .account-profile-button > span:first-child {
    width: 32px !important;
    height: 32px !important;
}

body.account-page .account-action > span:last-child,
body.account-page .account-profile-button > span:last-child {
    font-size: 0.78rem !important;
    text-decoration: none !important;
}

body.account-page .support-button::after {
    display: none !important;
}

body.account-page .account-top-header {
    margin: 0 0 14px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

body.account-page .account-top-header .header-top {
    min-height: 48px !important;
    display: grid !important;
    grid-template-columns: 40px minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 0 0 12px !important;
}

body.account-page .account-top-header .avatar {
    display: grid !important;
    width: 38px !important;
    height: 38px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background:
        radial-gradient(circle at 50% 35%, #d1d5db 0 8px, transparent 9px),
        radial-gradient(circle at 50% 82%, #d1d5db 0 15px, transparent 16px),
        #4b5563 !important;
    cursor: pointer !important;
}

body.account-page .account-top-header .search-box {
    max-width: none !important;
    height: 42px !important;
    display: grid !important;
    grid-template-columns: 24px minmax(0, 1fr) !important;
    gap: 8px !important;
    align-items: center !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
}

body.account-page .account-top-header .search-icon {
    color: #67e8f9 !important;
    font-size: 1.15rem !important;
    line-height: 1 !important;
    text-shadow: none !important;
}

body.account-page .account-top-header .search-box input {
    height: 42px !important;
    padding: 0 14px !important;
    border-radius: 16px !important;
    background: rgba(15, 23, 42, 0.68) !important;
    border: 1px solid rgba(148, 163, 184, 0.14) !important;
    color: #cbd5e1 !important;
    font-size: 1rem !important;
    box-shadow: none !important;
}

body.account-page .account-top-header .search-box input::placeholder {
    color: #9ca3af !important;
}

body.account-page .account-top-header .header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

body.account-page .account-top-header .icon-button {
    width: 38px !important;
    height: 38px !important;
    border: 0 !important;
    background: transparent !important;
    color: #67e8f9 !important;
    font-size: 1.45rem !important;
}

body.account-page .account-top-header .support-button {
    color: #e5e7eb !important;
}

@media (max-width: 760px) {
    body.account-page .account-top-header .header-top {
        grid-template-columns: 44px minmax(0, 1fr) auto !important;
        gap: 10px !important;
        padding-bottom: 10px !important;
    }

    body.account-page .account-top-header .avatar {
        width: 42px !important;
        height: 42px !important;
    }

    body.account-page .account-top-header .search-box {
        height: 46px !important;
        grid-template-columns: 24px minmax(0, 1fr) !important;
        gap: 8px !important;
    }

    body.account-page .account-top-header .search-icon {
        font-size: 1.1rem !important;
        text-shadow: none !important;
    }

    body.account-page .account-top-header .search-box input {
        height: 46px !important;
        font-size: 1rem !important;
        padding: 0 12px !important;
    }

    body.account-page .account-top-header .header-actions {
        gap: 8px !important;
    }

    body.account-page .account-top-header .icon-button {
        width: 34px !important;
        height: 34px !important;
        font-size: 1.35rem !important;
    }
}

body.account-page .search-row {
    min-height: 42px !important;
    display: grid !important;
    grid-template-columns: 24px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 0 14px !important;
    border-radius: 16px !important;
    background: rgba(15, 23, 42, 0.68) !important;
    border: 1px solid rgba(148, 163, 184, 0.14) !important;
}

body.account-page .search-row .search-icon {
    color: #67e8f9 !important;
    font-size: 1.25rem !important;
}

body.account-page .search-row input {
    min-width: 0 !important;
    height: 40px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #cbd5e1 !important;
    font-size: 1rem !important;
}

body.account-page .search-row input::placeholder {
    color: #9ca3af !important;
}

@media (max-width: 760px) {
    body.account-page .page-shell {
        max-width: 720px !important;
        padding: 12px 10px 118px !important;
    }

    body.account-page .account-header {
        grid-template-columns: 1fr !important;
        padding: 18px !important;
        border-radius: 12px !important;
    }

    body.account-page .account-actions {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        justify-content: stretch !important;
    }

    body.account-page .account-action,
    body.account-page .account-profile-button {
        width: auto !important;
    }
}

/* User search/header consistency */
body:not(.account-page):not(.admin-body) .header-top {
    min-height: 48px !important;
    display: grid !important;
    grid-template-columns: 40px minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 0 0 12px !important;
}

body:not(.account-page):not(.admin-body) .avatar {
    width: 38px !important;
    height: 38px !important;
    flex: 0 0 38px !important;
    background:
        radial-gradient(circle at 50% 35%, #d1d5db 0 8px, transparent 9px),
        radial-gradient(circle at 50% 82%, #d1d5db 0 15px, transparent 16px),
        #4b5563 !important;
}

body:not(.account-page):not(.admin-body) .search-box {
    max-width: none !important;
    height: 42px !important;
    display: grid !important;
    grid-template-columns: 24px minmax(0, 1fr) !important;
    gap: 8px !important;
    align-items: center !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
}

body:not(.account-page):not(.admin-body) .search-icon {
    color: #67e8f9 !important;
    font-size: 1.15rem !important;
    line-height: 1 !important;
    text-shadow: none !important;
}

body:not(.account-page):not(.admin-body) .search-box input {
    height: 42px !important;
    padding: 0 14px !important;
    border-radius: 16px !important;
    background: rgba(15, 23, 42, 0.68) !important;
    border: 1px solid rgba(148, 163, 184, 0.14) !important;
    color: #cbd5e1 !important;
    font-size: 1rem !important;
    box-shadow: none !important;
}

body:not(.account-page):not(.admin-body) .search-box input::placeholder {
    color: #9ca3af !important;
}

body:not(.account-page):not(.admin-body) .header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

body:not(.account-page):not(.admin-body) .icon-button {
    width: 38px !important;
    height: 38px !important;
    border: 0 !important;
    background: transparent !important;
    color: #67e8f9 !important;
    font-size: 1.45rem !important;
}

body:not(.account-page):not(.admin-body) .support-button {
    color: #e5e7eb !important;
}

@media (max-width: 760px) {
    body:not(.account-page):not(.admin-body) .header-top {
        grid-template-columns: 44px minmax(0, 1fr) auto !important;
        gap: 10px !important;
        padding-bottom: 10px !important;
    }

    body:not(.account-page):not(.admin-body) .avatar {
        width: 42px !important;
        height: 42px !important;
    }

    body:not(.account-page):not(.admin-body) .search-box {
        height: 46px !important;
        grid-template-columns: 24px minmax(0, 1fr) !important;
        gap: 8px !important;
    }

    body:not(.account-page):not(.admin-body) .search-icon {
        font-size: 1.1rem !important;
        text-shadow: none !important;
    }

    body:not(.account-page):not(.admin-body) .search-box input {
        height: 46px !important;
        font-size: 1rem !important;
        padding: 0 12px !important;
    }

    body:not(.account-page):not(.admin-body) .header-actions {
        gap: 8px !important;
    }

    body:not(.account-page):not(.admin-body) .icon-button {
        width: 34px !important;
        height: 34px !important;
        font-size: 1.35rem !important;
    }
}

/* iOS Safari automatically zooms focused controls whose computed font size is
   below 16px. Keep this final rule after all component/mobile overrides. The
   repeated :root raises priority over legacy !important form declarations. */
@media screen and (max-width: 768px) {
    :root:root:root:root input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
    :root:root:root:root select,
    :root:root:root:root textarea {
        font-size: 16px !important;
    }
}
