:root {
  --bg-main: #050816;
  --bg-card: #101826;
  --bg-card-alt: #111827;
  --accent: #2563eb;
  --accent-alt: #06b6d4;
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --danger: #ef4444;
  --success: #22c55e;
  --border-subtle: #1f2933;
  --radius-lg: 16px;
}

*,
*::before,
*::after { box-sizing: border-box; }

body.dark {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at top, #111827 0, #020617 55%);
  color: var(--text-main);
}

a { color: var(--accent-alt); text-decoration: none; }
a:hover { text-decoration: underline; }

.app {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */

.sidebar {
  width: 250px;
  background: #020617;
  border-right: 1px solid var(--border-subtle);
  padding: 1.25rem 1rem;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
}

.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 2rem;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #facc15, #f97316);
}

.brand-text {
  font-weight: 700;
  font-size: 1.1rem;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.nav-item {
  padding: .65rem .8rem;
  border-radius: .6rem;
  color: var(--text-muted);
  font-size: .95rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}

.nav-item i { font-size: .95rem; }

.nav-item:hover,
.nav-item.active {
  background: rgba(37,99,235,.24);
  color: var(--text-main);
}

/* Main area */

.main {
  margin-left: 250px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
  background: rgba(15,23,42,.9);
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 8px rgba(34,197,94,.8);
}

.status-text { font-size: .8rem; text-transform: uppercase; color: var(--text-muted); }

.ticker { font-size: .85rem; color: var(--text-muted); }
.text-green { color: var(--success); }

.user-chip {
  background: linear-gradient(135deg, #1d4ed8, #06b6d4);
  padding: .45rem .9rem;
  border-radius: 999px;
  font-size: .85rem;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--text-main);
  font-size: 1.1rem;
}

/* Content */

.content {
  padding: 1.75rem 1.75rem 1.5rem;
  flex: 1;
}

.page-title {
  margin: 0 0 .25rem;
  font-size: 1.35rem;
  font-weight: 600;
}

.page-subtitle {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: .95rem;
}

/* Cards & layout */

.grid-4,
.grid-2,
.plans-grid {
  display: grid;
  gap: 1rem;
}

.grid-4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.plans-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.m-top-lg { margin-top: 1.75rem; }
.gap-lg { gap: 1.25rem; }

.card {
  background: radial-gradient(circle at top left, #1f2937 0, #020617 55%);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.4rem;
  border: 1px solid rgba(148,163,184,.25);
  box-shadow: 0 10px 40px rgba(15,23,42,.9);
}

.card.primary {
  background: radial-gradient(circle at top, rgba(37,99,235,.5) 0, #020617 55%);
}

.card.tall { min-height: 180px; }

.card h3 {
  margin: 0 0 .4rem;
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
}

.card-main-amount {
  margin: .2rem 0 .8rem;
  font-size: 1.8rem;
  font-weight: 700;
}

.card-actions {
  display: flex;
  gap: .6rem;
  margin-top: .7rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: .2rem .55rem;
  border-radius: 999px;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-right: .25rem;
}

.badge-outline {
  border: 1px solid rgba(148,163,184,.4);
  color: var(--text-muted);
}

.badge-danger {
  background: rgba(239,68,68,.14);
  color: #fecaca;
}

.badge-completed { background: rgba(34,197,94,.12); color: #bbf7d0; }

.badge-pending { background: rgba(234,179,8,.12); color: #facc15; }

.badge-failed { background: rgba(239,68,68,.12); color: #fecaca; }

.text-muted { color: var(--text-muted); }

/* Buttons */

.btn-primary,
.btn-outline {
  border-radius: .8rem;
  border: 0;
  font-size: .9rem;
  padding: .55rem .95rem;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  cursor: pointer;
  justify-content: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-alt));
  color: white;
  box-shadow: 0 10px 30px rgba(37,99,235,.55);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(148,163,184,.5);
  color: var(--text-main);
}

.btn-full { width: 100%; }

.chip {
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.4);
  padding: .4rem .9rem;
  background: rgba(15,23,42,.9);
  color: var(--text-main);
  font-size: .85rem;
  margin-right: .4rem;
}

/* Forms */

.auth-wrapper {
  display: flex;
  justify-content: center;
  padding: 3rem 1rem;
}

.auth-card {
  max-width: 460px;
  width: 100%;
  background: radial-gradient(circle at top, rgba(37,99,235,.45) 0, #020617 60%);
  border-radius: 24px;
  padding: 2.25rem 2rem 1.75rem;
  box-shadow: 0 20px 60px rgba(15,23,42,.9);
  border: 1px solid rgba(148,163,184,.35);
}

.auth-title {
  margin: 0 0 .35rem;
  text-align: center;
  font-size: 1.4rem;
}

.auth-subtitle {
  margin: 0 0 1.75rem;
  text-align: center;
  color: var(--text-muted);
  font-size: .95rem;
}

.auth-form label {
  display: block;
  font-size: .8rem;
  font-weight: 500;
  margin-bottom: .35rem;
}

.input-group {
  display: flex;
  align-items: center;
  background: rgba(15,23,42,.9);
  border-radius: .8rem;
  border: 1px solid rgba(148,163,184,.5);
  padding: .15rem .55rem;
  margin-bottom: 1rem;
}

.input-icon {
  width: 32px;
  text-align: center;
  color: var(--text-muted);
}

.input-group input {
  border: 0;
  outline: none;
  background: transparent;
  padding: .5rem .3rem;
  color: var(--text-main);
  font-size: .9rem;
  width: 100%;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
}

.checkbox input { margin-right: .4rem; }

.auth-footer {
  margin-top: 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: .85rem;
}

/* Tables */

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
}

.table th,
.table td {
  padding: .6rem .7rem;
  border-bottom: 1px solid rgba(31,41,55,.9);
}

.table th {
  text-align: left;
  text-transform: uppercase;
  font-size: .75rem;
  color: var(--text-muted);
}

/* Grid helpers */

.grid-2 .input-group { margin-bottom: .9rem; }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: .8rem;
}

/* Tabs */

.tabs {
  display: flex;
  gap: .5rem;
  margin-bottom: .9rem;
}

.tab {
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.4);
  background: transparent;
  padding: .35rem .9rem;
  color: var(--text-muted);
  font-size: .8rem;
  cursor: pointer;
}

.tab.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-alt));
  color: white;
}

/* Footer */

.footer {
  padding: 1rem 1.75rem 1.3rem;
  border-top: 1px solid var(--border-subtle);
  font-size: .8rem;
  color: var(--text-muted);
}

/* Alerts */

.alert {
  padding: .6rem .75rem;
  border-radius: .75rem;
  font-size: .8rem;
  margin-bottom: .9rem;
}

.alert-danger {
  background: rgba(239,68,68,.16);
  color: #fecaca;
}

/* Responsive */

@media (max-width: 960px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform .25s ease-out;
  }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; }
  .topbar { padding-inline: 1rem; }
  .menu-toggle { display: inline-flex; }
}

@media (max-width: 640px) {
  .auth-card { padding: 1.5rem 1.25rem 1.3rem; }
  .grid-2 { grid-template-columns: 1fr; }
}
.m-bottom-lg { margin-bottom: 1.8rem; }
.m-bottom-sm { margin-bottom: .7rem; }
.m-bottom-md { margin-bottom: 1.1rem; }
.m-top-sm { margin-top: .7rem; }
.m-top-xs { margin-top: .3rem; }

.align-center { align-items: center; }

.card-header-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
  color: var(--text-muted);
}

.card-label {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
}

.badge-xs {
  font-size: .65rem;
  padding-inline: .4rem;
}

.tiny {
  font-size: .78rem;
}

.btn-xs {
  padding: .35rem .75rem;
  font-size: .78rem;
}

.btn-sm {
  padding: .45rem .95rem;
  font-size: .82rem;
}

.btn-light {
  border-color: rgba(226,232,240,.9);
  color: #e5e7eb;
}

.gradient-banner {
  background: linear-gradient(135deg, #1d4ed8, #0f766e);
}

/* Market layout */

.grid-market {
  display: grid;
  grid-template-columns: 2fr 1.1fr;
}

.chart-placeholder {
  height: 260px;
  border-radius: 14px;
  background: repeating-linear-gradient(
      -45deg,
      rgba(15,23,42,1),
      rgba(15,23,42,1) 6px,
      rgba(30,64,175,.7) 6px,
      rgba(30,64,175,.7) 7px
  );
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Pills */

.pill-switch {
  display: inline-flex;
  background: rgba(15,23,42,.9);
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.4);
  overflow: hidden;
}

.pill {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: .75rem;
  padding: .35rem .7rem;
  cursor: pointer;
}

.pill.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-alt));
  color: white;
}

/* Trade form */

.trade-form select,
.trade-form input[type="number"] {
  border: 0;
  background: transparent;
  color: var(--text-main);
  width: 100%;
  font-size: .9rem;
}

.trade-form select:focus,
.trade-form input:focus { outline: none; }

.buy-btn { background: linear-gradient(135deg,#22c55e,#4ade80); }

.btn-sell {
  border-radius: .8rem;
  border: 0;
  background: linear-gradient(135deg,#b91c1c,#ef4444);
  color: white;
  font-size: .9rem;
  padding: .55rem .95rem;
  cursor: pointer;
}

/* Latest trades badges */

.badge-buy {
  background: rgba(34,197,94,.18);
  color: #bbf7d0;
}

.badge-sell {
  background: rgba(239,68,68,.18);
  color: #fecaca;
}

.table.compact th,
.table.compact td {
  padding: .45rem .55rem;
  font-size: .8rem;
}

/* Mobile */

@media (max-width: 1024px) {
  .grid-market { grid-template-columns: 1fr; }
}
.balance-row {
  display: grid;
  grid-template-columns: 2fr 1.6fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.card-balance {
  padding: 1.5rem 1.6rem;
}

.card-title-line {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-bottom: 1rem;
}

.icon-circle {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(15,23,42,.9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-alt);
}

.card-title-line h3 {
  margin: 0;
  font-size: .95rem;
}

.balance-amount {
  margin: 0 0 .75rem;
  font-size: 2.1rem;
  font-weight: 700;
}

.balance-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: .5rem;
}

.balance-actions {
  margin-top: 1.1rem;
  display: flex;
  gap: .6rem;
}

.btn-md {
  padding: .55rem 1.1rem;
  font-size: .85rem;
}

.balance-grid-small {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1rem;
}

.card.mini {
  padding: 1.05rem 1.1rem;
}

.mini-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: .35rem;
}

.mini-icon {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(15,23,42,.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
}

.mini-amount {
  margin: 0 0 .25rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.rotate-180 { transform: rotate(180deg); }

.mini-icon.gift { color: #facc15; }

/* Mobile: stack big card on top, small cards below */
@media (max-width: 960px) {
  .balance-row {
    grid-template-columns: 1fr;
  }
}
.highlight {
  display: block;
  padding: .75rem .8rem;
  color: #60a5fa;
  font-weight: 600;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .4rem;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  overflow-y: auto;
  max-height: calc(100vh - 160px); /* Sidebar header + padding */
  scrollbar-width: thin;
  scrollbar-color: #475569 transparent;
}

.nav::-webkit-scrollbar {
  width: 4px;
}

.nav::-webkit-scrollbar-track {
  background: transparent;
}

.nav::-webkit-scrollbar-thumb {
  background: #475569;
  border-radius: 2px;
}

/* Mobile sidebar overlay & close */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  opacity: 0;
  visibility: hidden;
  z-index: 15;
  transition: all .25s ease-out;
}

.sidebar.open ~ .sidebar-overlay {
  opacity: 1;
  visibility: visible;
}

.sidebar-overlay.clickable {
  cursor: pointer;
}
.plans-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.plan-card {
  background: radial-gradient(circle at top left, #1f2937 0, #020617 55%);
  border: 1px solid rgba(148,163,184,.25);
  border-radius: 20px;
  padding: 1.5rem 1.4rem 1.6rem;
  position: relative;
  transition: all .2s ease;
  box-shadow: 0 8px 32px rgba(15,23,42,.7);
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(37,99,235,.3);
}

.plan-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: .8rem;
}

.plan-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.plan-roi {
  background: linear-gradient(135deg, #22c55e, #4ade80);
  color: white;
  padding: .2rem .6rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
}

.plan-amount {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.plan-details {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-bottom: 1.2rem;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  font-size: .82rem;
  color: var(--text-muted);
}

.plan-potential {
  background: rgba(37,99,235,.15);
  border-radius: 12px;
  padding: .9rem 1rem;
  margin-bottom: 1.3rem;
  border: 1px solid rgba(37,99,235,.3);
}

.potential-title {
  font-size: .78rem;
  color: var(--text-muted);
  margin-bottom: .3rem;
}

.potential-amount {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-alt);
}

.wallet-info {
  text-align: center;
  padding: 1rem;
  background: rgba(15,23,42,.7);
  border-radius: 12px;
  color: var(--text-muted);
  font-size: .9rem;
}

.wallet-info i {
  color: var(--accent);
  margin-right: .5rem;
}

.wallet-info strong {
  color: var(--text-main);
}

@media (max-width: 640px) {
  .plans-container {
    grid-template-columns: 1fr;
  }
}
.deposit-section {
  max-width: 520px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.deposit-container {
  background: radial-gradient(circle at top, #1f2937 0, #020617 60%);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  border: 1px solid rgba(148,163,184,.25);
  box-shadow: 0 20px 60px rgba(15,23,42,.9);
}

.step-header {
  text-align: center;
  margin-bottom: 2rem;
}

.step-icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: .75rem;
  display: block;
}

.step-header.success .step-icon {
  color: #22c55e;
}

.step-header h2 {
  margin: 0 0 .5rem;
  font-size: 1.6rem;
}

.step-subtitle {
  color: var(--text-muted);
  margin: 0;
  font-size: .95rem;
}

.current-balance {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  background: rgba(37,99,235,.15);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.8rem;
  font-size: .95rem;
}

.deposit-form .input-group {
  margin-bottom: 1.5rem;
}

.quick-amounts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .6rem;
  margin-bottom: 1.8rem;
}

.quick-btn {
  border: 1px solid rgba(148,163,184,.4);
  background: transparent;
  color: var(--text-main);
  padding: .7rem;
  border-radius: 10px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
}

.quick-btn:hover,
.quick-btn.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.payment-info {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.payment-card {
  background: rgba(15,23,42,.9);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid rgba(148,163,184,.3);
}

.payment-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .8rem 0;
  border-bottom: 1px solid rgba(148,163,184,.1);
}

.payment-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.wallet-address {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: rgba(0,0,0,.3);
  padding: .5rem .75rem;
  border-radius: 8px;
  flex: 1;
}

.wallet-address code {
  font-family: 'Courier New', monospace;
  font-size: .85rem;
  color: var(--text-muted);
  letter-spacing: -0.02em;
  font-weight: 500;
  word-break: break-all;
}

.copy-btn {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 6px;
  padding: .4rem .6rem;
  cursor: pointer;
  font-size: .8rem;
}

.countdown-section {
  text-align: center;
  background: linear-gradient(135deg, #1e3a8a, #1e40af);
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid rgba(59,130,246,.3);
}

.countdown-label {
  color: var(--text-muted);
  font-size: .85rem;
  margin-bottom: .5rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.countdown {
  font-size: 2.2rem;
  font-weight: 700;
  font-family: 'Courier New', monospace;
  background: linear-gradient(135deg, #60a5fa, #93c5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: .4rem;
}

.countdown-note {
  margin: 0;
  font-size: .82rem;
  color: var(--text-muted);
}

.confirm-form label {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .9rem;
  margin-bottom: 1.2rem;
  padding: 1rem;
  background: rgba(15,23,42,.5);
  border-radius: 10px;
  border: 1px solid rgba(148,163,184,.2);
}

.confirm-form input[type="checkbox"] {
  margin-top: .2rem;
  flex-shrink: 0;
}

.btn-success {
  background: linear-gradient(135deg, #22c55e, #4ade80) !important;
  box-shadow: 0 8px 25px rgba(34,197,94,.4);
}

.cancel-section {
  margin-top: 1.5rem;
}

@media (max-width: 480px) {
  .quick-amounts {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .payment-row {
    flex-direction: column;
    align-items: flex-start;
    gap: .4rem;
  }
}

.flash-message {
  position: relative;
  background: linear-gradient(135deg, rgba(59,130,246,.18), rgba(99,102,241,.18));
  border: 1px solid rgba(59,130,246,.4);
  border-radius: 12px;
  padding: 1.1rem 1.5rem 1.1rem 1.5rem;
  margin-bottom: 1.5rem;
  color: #60a5fa;
  font-size: .95rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  animation: slideDown 0.3s ease-out;
  box-shadow: 0 8px 25px rgba(59,130,246,.15);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.flash-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.4rem;
  font-weight: bold;
  cursor: pointer;
  padding: 0 .4rem;
  margin-top: -0.2rem;
  line-height: 1;
}

.flash-close:hover {
  color: #60a5fa;
}

.alert-info {
  background: linear-gradient(135deg, rgba(59,130,246,.18), rgba(99,102,241,.18));
  border: 1px solid rgba(59,130,246,.4);
  color: #60a5fa;
}
/* Success Page Styles */
.success-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 2rem;
}

.success-card {
    background: radial-gradient(circle at top, rgba(37, 99, 235, 0.2) 0, rgba(2, 6, 23, 0.95) 60%);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    max-width: 600px;
    width: 100%;
    text-align: center;
    border: 1px solid rgba(37, 99, 235, 0.3);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.9);
}

.success-icon {
    font-size: 4rem;
    color: #22c55e;
    margin-bottom: 1.5rem;
    animation: success-bounce 1s ease;
}

@keyframes success-bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-20px);}
    60% {transform: translateY(-10px);}
}

.success-card h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #22c55e, #4ade80);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: #9ca3af;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.investment-details {
    background: rgba(15, 23, 42, 0.8);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.05);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item .label {
    color: #9ca3af;
    font-size: 0.9rem;
}

.detail-item .value {
    color: #f9fafb;
    font-weight: 600;
    font-size: 1rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.action-buttons .btn-primary,
.action-buttons .btn-outline {
    flex: 1;
    padding: 0.9rem 1.5rem;
}

.success-note {
    background: rgba(34, 197, 94, 0.1);
    border-radius: 12px;
    padding: 1rem;
    color: #bbf7d0;
    font-size: 0.9rem;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.success-note i {
    margin-right: 0.5rem;
}

@media (max-width: 640px) {
    .success-card {
        padding: 2rem 1.5rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }
}

.withdraw-section {
  max-width: 520px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.withdraw-container {
  background: radial-gradient(circle at top, #1f2937 0, #020617 60%);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  border: 1px solid rgba(148,163,184,.25);
  box-shadow: 0 20px 60px rgba(15,23,42,.9);
}

.withdraw-balance {
  justify-content: center;
  margin-bottom: 2rem;
}

.alert-success {
  background: linear-gradient(135deg, rgba(34,197,94,.18), rgba(74,222,128,.18));
  border: 1px solid rgba(34,197,94,.4);
  color: #22c55e;
  padding: 1.5rem;
  border-radius: 16px;
  margin-bottom: 2rem;
}

.success-details {
  font-size: .88rem;
  margin-top: .8rem;
  padding-top: .8rem;
  border-top: 1px solid rgba(148,163,184,.2);
}

.mt-sm {
  margin-top: .8rem;
}

.input-group .input-limit {
  font-size: .75rem;
  color: var(--text-muted);
  margin-top: .3rem;
  display: block;
}

.withdraw-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.info-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .85rem;
  color: var(--text-muted);
}

.info-item i {
  color: var(--accent);
  font-size: .9rem;
}

.confirm-label {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .9rem;
  margin: 1.5rem 0;
  padding: 1.1rem;
  background: rgba(15,23,42,.5);
  border-radius: 12px;
  border: 1px solid rgba(148,163,184,.2);
}

.confirm-label input[type="checkbox"] {
  margin-top: .25rem;
  flex-shrink: 0;
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444, #f87171) !important;
  box-shadow: 0 8px 25px rgba(239,68,68,.4);
  border: none;
}

.withdraw-limits {
  text-align: center;
  padding: 1.2rem;
  background: rgba(239,68,68,.1);
  border-radius: 12px;
  border: 1px solid rgba(239,68,68,.3);
  font-size: .85rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
}

.quick-amounts.withdraw-quick {
  grid-template-columns: repeat(4, 1fr);
  gap: .75rem;
}

@media (max-width: 480px) {
  .withdraw-info-grid {
    grid-template-columns: 1fr;
  }
}
.no-wallet-warning {
  text-align: center;
  padding: 2.5rem 2rem;
  background: linear-gradient(135deg, rgba(239,68,68,.15), rgba(248,113,113,.15));
  border: 2px solid rgba(239,68,68,.4);
  border-radius: 20px;
  color: #fecaca;
}

.no-wallet-warning i {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.no-wallet-warning h3 {
  color: #ef4444;
  margin-bottom: .5rem;
}

.wallet-section {
  max-width: 500px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.wallet-container {
  background: radial-gradient(circle at top, #1f2937 0, #020617 60%);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  border: 1px solid rgba(148,163,184,.25);
}

.select-group select {
  width: 100%;
  padding: .75rem 1rem;
  background: rgba(15,23,42,.9);
  border: 1px solid rgba(148,163,184,.5);
  border-radius: 12px;
  color: var(--text-main);
  font-size: .95rem;
}

.wallet-selector {
  margin: 1.5rem 0;
}

.wallet-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(15,23,42,.7);
  border-radius: 12px;
  border: 2px solid transparent;
  cursor: pointer;
  margin-bottom: .75rem;
  transition: all .2s;
}

.wallet-option:hover,
.wallet-option.active {
  border-color: var(--accent);
  background: rgba(37,99,235,.15);
}

.wallet-option input[type="radio"] {
  margin: 0;
  flex-shrink: 0;
}

.wallet-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .2rem;
}

.wallet-coin {
  font-weight: 600;
  color: var(--accent);
  font-size: .9rem;
}

.wallet-addr {
  font-family: 'Courier New', monospace;
  font-size: .82rem;
  color: var(--text-muted);
}

.wallet-net {
  font-size: .78rem;
  color: #94a3b8;
}

.add-new-wallet {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--accent-alt);
  font-size: .9rem;
  padding: .8rem;
  border: 2px dashed rgba(37,99,235,.5);
  border-radius: 12px;
  text-decoration: none;
  margin-top: 1rem;
}

.add-new-wallet:hover {
  background: rgba(37,99,235,.1);
}

.wallet-preview {
  background: rgba(15,23,42,.7);
  padding: .8rem 1rem;
  border-radius: 8px;
  margin: .8rem 0 1.5rem;
  font-size: .85rem;
}

.wallet-preview code {
  background: rgba(0,0,0,.4);
  padding: .3rem .6rem;
  border-radius: 6px;
  font-family: 'Courier New', monospace;
}

.validate-btn {
  background: var(--accent);
  border: none;
  color: white;
  padding: .5rem .8rem;
  border-radius: 8px;
  font-size: .85rem;
  cursor: pointer;
  margin-left: .5rem;
}

.wallet-tips {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(148,163,184,.2);
}

.tip-item {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin-bottom: .8rem;
  font-size: .85rem;
  color: var(--text-muted);
}

.tip-item i {
  margin-top: .15rem;
  color: var(--accent-alt);
  flex-shrink: 0;
}

.text-success { color: #22c55e !important; }
.text-danger { color: #ef4444 !important; }
.wallets-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.wallets-container {
  background: radial-gradient(circle at top left, #1f2937 0%, #020617 80%);
  border-radius: 24px;
  padding: 2.5rem;
  border: 1px solid rgba(148,163,184,.25);
  box-shadow: 0 20px 60px rgba(15,23,42,.9);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(148,163,184,.2);
}

.section-header .page-subtitle {
  margin: 0;
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}

.empty-icon {
  font-size: 4.5rem;
  color: #6b7280;
  margin-bottom: 1.5rem;
}

.wallets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.wallet-card {
  background: rgba(15,23,42,.8);
  border: 1px solid rgba(148,163,184,.3);
  border-radius: 20px;
  padding: 1.8rem;
  transition: all .25s ease;
  position: relative;
  overflow: hidden;
}

.wallet-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-alt));
  opacity: 0;
  transition: opacity .25s;
}

.wallet-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(37,99,235,.25);
}

.wallet-card:hover::before {
  opacity: 1;
}

.wallet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.wallet-coin-badge {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  padding: .6rem 1rem;
  background: linear-gradient(135deg, rgba(37,99,235,.2), rgba(6,182,212,.2));
  border-radius: 12px;
  border: 1px solid rgba(37,99,235,.3);
}

.coin-symbol {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent);
}

.coin-network {
  font-size: .78rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.wallet-actions {
  display: flex;
  align-items: center;
  gap: .4rem;
}

.btn-sm-primary,
.btn-danger-sm {
  padding: .4rem .7rem;
  font-size: .78rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .3rem;
}

.btn-sm-primary {
  background: rgba(37,99,235,.3);
  color: var(--accent);
}

.btn-danger-sm {
  background: rgba(239,68,68,.3);
  color: #ef4444;
}

.btn-sm-primary:hover { background: rgba(37,99,235,.5); }
.btn-danger-sm:hover { background: rgba(239,68,68,.5); }

.wallet-address {
  display: flex;
  align-items: center;
  gap: .8rem;
  background: rgba(0,0,0,.4);
  padding: .8rem 1.2rem;
  border-radius: 12px;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(148,163,184,.2);
}

.wallet-address code {
  font-family: 'Courier New', monospace;
  font-size: .88rem;
  color: #a1a1aa;
  flex: 1;
  word-break: break-all;
  font-weight: 500;
}

.copy-btn {
  background: var(--accent);
  color: white;
  border: none;
  padding: .5rem .8rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: .82rem;
  white-space: nowrap;
}

.wallet-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-bottom: 1rem;
  font-size: .85rem;
  color: var(--text-muted);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: .3rem;
}

.default-tag {
  color: #22c55e;
  background: rgba(34,197,94,.15);
  padding: .25rem .6rem;
  border-radius: 999px;
  font-size: .78rem;
}

.wallet-status {
  text-align: center;
  padding: .8rem;
  background: rgba(34,197,94,.15);
  border-radius: 12px;
  border: 1px solid rgba(34,197,94,.3);
}

.status.verified {
  color: #22c55e;
  font-weight: 500;
}

.status.verified i {
  margin-right: .3rem;
}

.wallets-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.info-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(15,23,42,.7);
  border-radius: 16px;
  border-left: 4px solid var(--accent);
}

.info-card i {
  font-size: 1.4rem;
  color: var(--accent);
  margin-top: .2rem;
  flex-shrink: 0;
}

.info-card strong {
  color: var(--text-main);
}

@media (max-width: 768px) {
  .wallets-grid {
    grid-template-columns: 1fr;
  }
  
  .section-header {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
}
.copy-trade-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.balance-display {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: linear-gradient(135deg, rgba(34,197,94,.2), rgba(74,222,128,.2));
  padding: 1rem 1.5rem;
  border-radius: 16px;
  border: 1px solid rgba(34,197,94,.3);
}

.balance-display i {
  color: #22c55e;
}

.balance-display strong {
  color: var(--text-main);
  font-size: 1.1rem;
}

.traders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.75rem;
  margin-bottom: 3rem;
}

.trader-card {
  background: radial-gradient(circle at top left, #1f2937 0%, #020617 80%);
  border: 1px solid rgba(148,163,184,.3);
  border-radius: 24px;
  padding: 2.2rem 2rem 2rem;
  position: relative;
  transition: all .3s ease;
  box-shadow: 0 10px 40px rgba(15,23,42,.6);
}

.trader-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 60px rgba(37,99,235,.3);
}

.trader-avatar {
  position: absolute;
  top: -20px;
  left: 2rem;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #facc15, #f97316);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 8px 20px rgba(0,0,0,.4);
  border: 3px solid #1f2937;
}

.trader-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.8rem;
  margin-top: .5rem;
}

.trader-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.risk-badge {
  padding: .3rem .8rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
}

.risk-low { background: rgba(34,197,94,.2); color: #22c55e; }
.risk-medium { background: rgba(251,191,36,.2); color: #f59e0b; }
.risk-high { background: rgba(239,68,68,.2); color: #ef4444; }

.trader-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: .2rem;
}

.stat-label {
  font-size: .8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.trader-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(148,163,184,.2);
  font-size: .88rem;
  color: var(--text-muted);
}

.meta {
  display: flex;
  align-items: center;
  gap: .4rem;
}

.trade-amount-section {
  margin-bottom: 1.8rem;
}

.trade-amount-section label {
  display: block;
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: .6rem;
  font-weight: 500;
}

.trade-amount-section .input-group {
  margin-bottom: 1rem;
}

.quick-amounts {
  display: flex;
  gap: .6rem;
}

.quick-btn {
  flex: 1;
  padding: .7rem;
  border: 1px solid rgba(148,163,184,.4);
  background: transparent;
  border-radius: 10px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .2s;
}

.quick-btn:hover,
.quick-btn.active {
  border-color: var(--accent);
  background: rgba(37,99,235,.15);
  color: var(--accent);
}

.copy-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-alt)) !important;
  font-weight: 500;
}

.copy-trading-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .traders-grid {
    grid-template-columns: 1fr;
  }
  
  .section-header {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
}


.ai-bots-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.bots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.bot-card {
  background: linear-gradient(145deg, #1f2937, #111827);
  border: 1px solid rgba(148,163,184,.25);
  border-radius: 24px;
  padding: 2.5rem 2.2rem;
  position: relative;
  overflow: hidden;
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 40px rgba(15,23,42,.6);
}

.bot-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #06b6d4, #10b981);
}

.bot-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 30px 80px rgba(37,99,235,.35);
}

.bot-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(148,163,184,.15);
}

.bot-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 10px 25px rgba(59,130,246,.4);
}

.bot-title h3 {
  margin: 0 0 .3rem;
  font-size: 1.4rem;
  font-weight: 700;
}

.bot-strategy {
  color: #94a3b8;
  font-size: .95rem;
  margin: 0;
}

.risk-badge {
  padding: .4rem 1rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.risk-low { background: rgba(34,197,94,.2); color: #22c55e; border: 1px solid rgba(34,197,94,.4); }
.risk-medium { background: rgba(251,191,36,.2); color: #f59e0b; border: 1px solid rgba(251,191,36,.4); }
.risk-high { background: rgba(239,68,68,.2); color: #ef4444; border: 1px solid rgba(239,68,68,.4); }

.bot-performance {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.perf-item {
  text-align: center;
  padding: 1rem .8rem;
  background: rgba(15,23,42,.6);
  border-radius: 16px;
}

.perf-value {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--text-main), #a1a1aa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: .3rem;
}

.perf-label {
  font-size: .82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.bot-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2.2rem;
  padding: 1rem;
  background: rgba(37,99,235,.1);
  border-radius: 12px;
  border: 1px solid rgba(37,99,235,.25);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .88rem;
  color: var(--accent);
}

.allocation-section label {
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: .6rem;
  display: block;
  font-weight: 500;
}

.quick-allocations {
  display: flex;
  gap: .75rem;
  margin-top: .8rem;
}

.alloc-btn {
  flex: 1;
  padding: .75rem;
  background: rgba(15,23,42,.7);
  border: 1px solid rgba(148,163,184,.4);
  border-radius: 12px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .2s;
  font-weight: 500;
}

.alloc-btn:hover,
.alloc-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.bot-toggle {
  margin: 1.5rem 0;
  text-align: center;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #cbd5e1;
  border-radius: 34px;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background: white;
  border-radius: 50%;
  transition: .4s;
}

input:checked + .slider {
  background: #10b981;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.btn-gradient {
  background: linear-gradient(135deg, #3b82f6, #06b6d4, #10b981) !important;
  box-shadow: 0 10px 30px rgba(59,130,246,.4);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.ai-info {
  margin-top: 4rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .bots-grid {
    grid-template-columns: 1fr;
  }
}

.profile-section {
  max-width: 680px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.profile-container {
  background: radial-gradient(circle at top left, #1f2937 0%, #020617 80%);
  border-radius: 24px;
  padding: 2.5rem;
  border: 1px solid rgba(148,163,184,.25);
  box-shadow: 0 20px 60px rgba(15,23,42,.9);
}

.profile-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(148,163,184,.2);
}

.tab {
  padding: 1rem 1.8rem;
  background: transparent;
  border: none;
  border-radius: 16px 16px 0 0;
  color: var(--text-muted);
  font-weight: 500;
  cursor: pointer;
  transition: all .25s;
  position: relative;
}

.tab.active {
  color: var(--accent);
  background: rgba(37,99,235,.15);
}

.tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-alt));
  border-radius: 2px;
}

.profile-form {
  display: none;
}

.profile-form.active {
  display: block;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(148,163,184,.2);
}

.profile-avatar {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: white;
  box-shadow: 0 10px 30px rgba(59,130,246,.4);
}

.profile-header h2 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
}

.profile-id {
  color: var(--text-muted);
  margin: 0;
  font-size: .95rem;
}

.form-section {
  margin-bottom: 3rem;
}

.form-section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-main);
  padding-bottom: .5rem;
  border-bottom: 1px solid rgba(148,163,184,.15);
}
.profile-form {
  display: none !important;
}

.profile-form.active {
  display: block !important;
  animation: fadeIn 0.3s ease-out;
}

.profile-form .input-group {
  margin-bottom: 2rem;
}

.profile-form .input-group:last-child {
  margin-bottom: 1rem;
}

.verified-status {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(15,23,42,.7);
  border-radius: 16px;
  border: 2px solid transparent;
  margin-bottom: 2rem;
  font-weight: 500;
}

.verified-status.verified {
  border-color: #22c55e;
  background: rgba(34,197,94,.1);
  color: #22c55e;
}

.verified-status.pending {
  border-color: #f59e0b;
  background: rgba(251,191,36,.1);
  color: #d97706;
}

.verified-status i {
  font-size: 1.4rem;
}

.verify-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  padding: .4rem .8rem;
  background: rgba(37,99,235,.2);
  border-radius: 8px;
  font-size: .88rem;
}

.input-hint {
  font-size: .82rem;
  color: var(--text-muted);
  margin-top: .4rem;
  display: block;
}

.select-group select {
  width: 100%;
  padding: 1rem 1.2rem;
  background: rgba(15,23,42,.9);
  border: 1px solid rgba(148,163,184,.5);
  border-radius: 16px;
  color: var(--text-main);
  font-size: .95rem;
}

.form-footer {
  padding-top: 2rem;
  border-top: 1px solid rgba(148,163,184,.2);
  margin-top: 2rem;
}

.btn-lg {
  padding: 1.2rem 2rem;
  font-size: 1rem;
  font-weight: 600;
}

/* Security Tab */
.security-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  background: rgba(15,23,42,.7);
  border-radius: 16px;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--accent);
}

.security-item.disabled .setup-link {
  color: var(--accent);
  padding: .5rem 1rem;
  background: rgba(37,99,235,.2);
  border-radius: 8px;
  text-decoration: none;
}

.strength-meter {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.strength-bar {
  width: 80px;
  height: 8px;
  border-radius: 4px;
  background: #374151;
}

.strength-bar.low { background: linear-gradient(to right, #ef4444, #f87171); }
.strength-bar.medium { background: linear-gradient(to right, #f59e0b, #fbbf24); }
.strength-bar.high { background: linear-gradient(to right, #10b981, #34d399); }

.sessions-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.session-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem;
  background: rgba(15,23,42,.7);
  border-radius: 12px;
  border-left: 4px solid var(--accent);
}

.logout-session {
  background: #ef4444;
  color: white;
  border: none;
  padding: .5rem 1rem;
  border-radius: 8px;
  font-size: .85rem;
  cursor: pointer;
}

@media (max-width: 640px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}

.verification-section {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.verification-container {
  background: radial-gradient(circle at top left, #1f2937 0%, #020617 80%);
  border-radius: 24px;
  padding: 2.8rem;
  border: 1px solid rgba(148,163,184,.25);
  box-shadow: 0 25px 70px rgba(15,23,42,.95);
}

.verification-header {
  text-align: center;
  margin-bottom: 3rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: 1.5rem;
}

.status-pending { background: rgba(251,191,36,.2); color: #f59e0b; }
.status-pending_review { background: rgba(59,130,246,.2); color: #3b82f6; }
.status-approved { background: rgba(34,197,94,.2); color: #22c55e; }
.status-rejected { background: rgba(239,68,68,.2); color: #ef4444; }

.verified-state,
.pending-state {
  text-align: center;
  padding: 3.5rem 2rem;
  border-radius: 24px;
  margin-bottom: 2.5rem;
}

.verified-icon,
.pending-icon {
  font-size: 5rem;
  margin-bottom: 1.5rem;
}

.verified-icon { color: #22c55e; }
.pending-icon { color: #f59e0b; }

.verified-state h3 { color: #22c55e; }
.pending-state h3 { color: #f59e0b; }

.verified-benefits,
.pending-details {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.benefit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: var(--text-muted);
}

.benefit i { font-size: 1.8rem; color: var(--accent); }

.warning-note {
  background: linear-gradient(135deg, rgba(239,68,68,.15), rgba(248,113,113,.15));
  border: 1px solid rgba(239,68,68,.3);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 2.5rem;
}

.warning-note i {
  color: #ef4444;
  margin-right: .8rem;
  font-size: 1.2rem;
}

.name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.required {
  color: #ef4444;
}

.file-upload-section {
  margin: 2rem 0;
}

.file-drop {
  border: 3px dashed rgba(148,163,184,.5);
  border-radius: 20px;
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all .3s;
  background: rgba(15,23,42,.5);
}

.file-drop:hover,
.file-drop.drag-highlight {
  border-color: var(--accent);
  background: rgba(37,99,235,.1);
}

.file-drop i {
  font-size: 3.5rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: block;
}

.file-drop p {
  color: var(--text-muted);
  margin: .5rem 0;
}

.file-hint {
  font-size: .85rem;
  opacity: .8;
}

.file-preview {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: rgba(37,99,235,.15);
  border-radius: 16px;
  border: 2px solid rgba(37,99,235,.3);
}

.preview-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.preview-content img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
}

.pdf-icon {
  font-size: 3rem;
  color: #dc2626;
}

.preview-info {
  flex: 1;
}

.preview-info strong {
  display: block;
  color: var(--text-main);
}

.remove-file {
  background: #ef4444;
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
}

.verify-terms {
  margin: 2.5rem 0;
}

.verify-terms label {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(15,23,42,.7);
  border-radius: 16px;
  border-left: 4px solid var(--accent);
  font-size: .95rem;
}

.verify-terms input[type="checkbox"] {
  margin-top: .3rem;
  flex-shrink: 0;
}

.btn-gradient {
  background: linear-gradient(135deg, #3b82f6, #06b6d4) !important;
  box-shadow: 0 12px 35px rgba(59,130,246,.4);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.verification-benefits {
  margin-top: 4rem;
}

.verification-benefits h4 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text-main);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.benefit-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  padding: 1.5rem;
  background: rgba(15,23,42,.7);
  border-radius: 16px;
  text-align: center;
  border-top: 4px solid var(--accent);
}

.benefit-item i {
  font-size: 2rem;
  color: var(--accent);
}

.reupload-btn {
  background: var(--accent);
  color: white;
  padding: .6rem 1.2rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 500;
}

@media (max-width: 640px) {
  .name-row {
    grid-template-columns: 1fr;
  }
}



.support-section {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.support-container {
  background: radial-gradient(circle at top left, #1f2937 0%, #020617 80%);
  border-radius: 24px;
  padding: 2.8rem;
  border: 1px solid rgba(148,163,184,.25);
  box-shadow: 0 25px 70px rgba(15,23,42,.95);
}

.support-header {
  text-align: center;
  margin-bottom: 3rem;
}

.support-email {
  text-align: center;
  margin-bottom: 3.5rem;
}

.email-highlight {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, rgba(59,130,246,.2), rgba(6,182,212,.2));
  padding: 1.5rem 2.5rem;
  border-radius: 20px;
  border: 2px solid rgba(59,130,246,.4);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
  box-shadow: 0 10px 30px rgba(59,130,246,.25);
}

.email-highlight i {
  font-size: 2rem;
}

.support-form h3 {
  font-size: 1.3rem;
  margin-bottom: .8rem;
  color: var(--text-main);
}

.form-subtitle {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.input-group.full {
  grid-column: 1 / -1;
}

.input-group.full textarea {
  resize: vertical;
  min-height: 140px;
  font-family: inherit;
}

.char-count {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  font-size: .82rem;
  color: var(--text-muted);
}

.submit-section {
  margin-top: 3rem;
}

.support-links {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(148,163,184,.2);
  text-align: center;
}

.support-links h4 {
  margin-bottom: 1.8rem;
  color: var(--text-main);
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.2rem;
}

.support-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  padding: 1.5rem 1rem;
  background: rgba(15,23,42,.7);
  border-radius: 16px;
  color: var(--text-muted);
  text-decoration: none;
  transition: all .25s;
  border: 1px solid transparent;
}

.support-link:hover {
  background: rgba(37,99,235,.2);
  border-color: rgba(37,99,235,.4);
  color: var(--accent);
  transform: translateY(-2px);
}

.support-link i {
  font-size: 1.8rem;
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
    .grid-md-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-sm-2 { grid-template-columns: repeat(2, 1fr); }
    .fs-md { font-size:11px !important; }
    .card-main-amount { font-size: 11 !important; }
}

.table-responsive { overflow-x: auto; }
.table-mobile-scroll { min-width: 500px; } /* Ensures horizontal scroll on mobile */

