: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;
  margin-top: 14px;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.9rem;
  background: linear-gradient(135deg, #38bdf8, #7c3aed);
}


/* 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; }

@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; }

}

.main-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.main-nav a {
    text-decoration: none;
    color: inherit;
}

.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;
}

/* ===== MOBILE BOTTOM NAV FIX ===== */

.main-nav {
    position: fixed;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);

    width: calc(100% - 24px);
    max-width: 600px;

    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    grid-template-rows: 1fr;

    gap: 5px;
    padding: 8px;

    background: rgba(15,23,42,.92);
    backdrop-filter: blur(20px);

    border: 1px solid rgba(148,163,184,.18);
    border-radius: 24px;

    z-index: 9999;
}


.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;
}


.nav-item span:first-child {
    font-size: 20px;
}


.nav-item span:last-child {
    font-size: 12px;
}


/* stop content covering nav */
body {
    padding-bottom: 90px !important;
}


@media(max-width:600px){

    .main-nav {
        bottom: 8px;
        width: calc(100% - 16px);
    }

}

.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;
  }

.main-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@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));
  }

.hero-copy h1 {
    font-size: 2rem;
  }

}

.options-card {
  margin-top: 24px;
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.12);
  padding: 24px;
}

.options-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.options-tabs {
  display: inline-flex;
  gap: 10px;
}

.options-tab {
  border: none;
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.08);
  color: #cbd5e1;
  cursor: pointer;
}

.options-tab.active {
  background: rgba(22, 163, 74, 0.18);
  color: #ffffff;
}

.options-actions {
  display: inline-flex;
  gap: 10px;
}

.options-icon {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 16px;
  background: rgba(148, 163, 184, 0.08);
  color: #cbd5e1;
  cursor: pointer;
}

.options-panel {
  display: grid;
  gap: 20px;
}

.trade-mode-card {
  display: inline-flex;
  gap: 10px;
  background: rgba(148, 163, 184, 0.08);
  border-radius: 999px;
  padding: 8px;
}

.trade-mode {
  border: none;
  padding: 12px 24px;
  border-radius: 999px;
  background: transparent;
  color: #cbd5e1;
  cursor: pointer;
}

.trade-mode.active {
  background: rgba(56, 189, 248, 0.16);
  color: #ffffff;
}

.trade-settings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.trade-settings div {
  padding: 18px;
  background: rgba(15, 23, 42, 0.95);
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.trade-settings label {
  display: block;
  color: #94a3b8;
  margin-bottom: 8px;
  font-size: 0.85rem;
}

.trade-settings span {
  font-weight: 700;
  color: #e2e8f0;
}

.trade-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.trade-info-item {
  padding: 18px;
  background: rgba(15, 23, 42, 0.95);
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.trade-info-item div {
  font-size: 1.6rem;
  font-weight: 700;
}

.trade-info-item span {
  display: block;
  margin-top: 6px;
  color: #94a3b8;
  font-size: 0.95rem;
}

.risk-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.risk-row div {
  flex: 1;
  padding: 16px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
}

.risk-buttons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.risk-buttons button {
  border: none;
  border-radius: 999px;
  padding: 12px 0;
  background: rgba(148, 163, 184, 0.08);
  color: #cbd5e1;
  cursor: pointer;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.summary-grid div {
  padding: 18px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.summary-label {
  margin: 0 0 8px;
  color: #94a3b8;
  font-size: 0.85rem;
}

.primary-button,
.secondary-button {
  width: 100%;
  border: none;
  border-radius: 18px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.primary-button {
  padding: 18px 0;
  margin-top: 8px;
  background: linear-gradient(135deg, #22c55e, #10b981);
  color: #ffffff;
}

.secondary-button {
  padding: 10px 18px;
  background: rgba(148, 163, 184, 0.08);
  color: #cbd5e1;
}

.order-summary {
  margin-top: 24px;
  padding: 20px;
  background: rgba(15, 23, 42, 0.92);
  border-radius: 26px;
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.order-card {
  padding: 20px;
  border-radius: 20px;
  background: rgba(8, 14, 31, 0.94);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

@media (max-width: 780px) {
  .trade-settings,
  .trade-info-grid,
  .risk-row,
  .summary-grid {
    grid-template-columns: 1fr;
  }

}

.trade-banner {
  margin-top: 24px;
  padding: 22px 20px;
  border-radius: 24px;
  background: rgba(8, 14, 31, 0.94);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.trade-price-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.trade-price {
  font-size: 2.8rem;
  font-weight: 700;
}

.trade-change {
  font-size: 1rem;
  color: #f97316;
}

.trade-meta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 10px;
  color: #94a3b8;
}

.hero-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.title-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(148, 163, 184, 0.08);
}

.symbol-label {
  font-weight: 700;
  font-size: 1rem;
}

.symbol-sub {
  color: #94a3b8;
  font-size: 0.9rem;
}

.chart-card {
  margin-top: 24px;
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.12);
  padding: 18px;
}

.chart-toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.chart-tab {
  border: none;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.08);
  color: #cbd5e1;
  cursor: pointer;
}

.chart-tab.active {
  background: rgba(56, 189, 248, 0.16);
  color: #ffffff;
}

.chart-placeholder {
  min-height: 260px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(8, 14, 31, 0.95));
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
}

.chart-line {
  width: 6px;
  height: 140px;
  background: linear-gradient(to top, #22c55e, #38bdf8);
  border-radius: 999px;
}

.chart-placeholder span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  color: #38bdf8;
  font-weight: 700;
}

.trade-actions {
  display: flex;
  gap: 14px;
  margin-top: 24px;
}

.trade-button {
  flex: 1;
  border: none;
  padding: 18px 0;
  border-radius: 18px;
  font-weight: 700;
  cursor: pointer;
}

.trade-button.buy {
  background: #14b8a6;
  color: #ffffff;
}

.trade-button.sell {
  background: #ef4444;
  color: #ffffff;
}

.trade-tab-row {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.trade-tab-row .trade-tab {
  flex: 1;
  border: none;
  padding: 14px 0;
  border-radius: 16px;
  background: rgba(148, 163, 184, 0.08);
  color: #cbd5e1;
  cursor: pointer;
}

.trade-tab-row .trade-tab.active {
  background: rgba(56, 189, 248, 0.16);
  color: #ffffff;
}

.status-card {
  margin-top: 20px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(8, 14, 31, 0.94);
  border: 1px solid rgba(148, 163, 184, 0.12);
  color: #94a3b8;
}

.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;
}

@media (max-width: 980px) {
  .admin-layout-grid {
    grid-template-columns: 1fr;
  }

.form-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;
  }

}

.wallet-header {
  margin-top: 24px;
  border-radius: 28px;
  padding: 24px;
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
  color: #111827;
}

.wallet-balance {
  margin-bottom: 22px;
}

.wallet-title {
  font-size: 0.95rem;
  opacity: 0.9;
}

.wallet-amount {
  margin-top: 14px;
  font-size: 3rem;
  font-weight: 700;
}

.wallet-usd {
  margin-top: 6px;
  opacity: 0.85;
}

.wallet-actions {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.wallet-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;
}

.wallet-action span {
  font-size: 0.82rem;
}

.wallet-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);
}

.wallet-tabs {
  display: inline-flex;
  gap: 10px;
  margin-bottom: 22px;
}

.wallet-tab {
  border: none;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.08);
  color: #cbd5e1;
  cursor: pointer;
}

.wallet-tab.active {
  background: rgba(248, 179, 28, 0.18);
  color: #ffffff;
}

.wallet-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;
}

.wallet-summary-title {
  color: #94a3b8;
  font-size: 0.85rem;
}

.wallet-summary-value {
  margin-top: 14px;
  font-size: 2.6rem;
  font-weight: 700;
}

.wallet-summary-usd {
  margin-top: 8px;
  color: #cbd5e1;
}

.wallet-status {
  padding: 22px;
  margin-bottom: 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  text-align: center;
}

.wallet-status-message {
  font-weight: 700;
}

.wallet-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,
.options-card,
.chart-card,
.wallet-panel,
.status-card {
    padding: 14px;
    border-radius: 18px;
}

.content-section,
.options-card,
.chart-card,
.market-tab,
.wallet-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;
    }


    .wallet-amount {
        font-size:2rem;
    }

}

#google_translate_element {
    display:none;
}

.goog-te-banner-frame {
    display:none !important;
}

body {
    top:0 !important;
}