:root {
  --bg: #050816;
  --bg2: rgba(9, 14, 29, 0.86);
  --bg3: rgba(14, 21, 40, 0.92);
  --bg4: #25345c;
  --surface: linear-gradient(180deg, rgba(10, 16, 34, 0.9), rgba(9, 13, 28, 0.78));
  --surface-soft: linear-gradient(180deg, rgba(17, 25, 47, 0.82), rgba(10, 15, 29, 0.86));
  --border: rgba(164, 189, 255, 0.13);
  --border2: rgba(194, 214, 255, 0.2);
  --text: #edf3ff;
  --muted: #93a0c3;
  --muted2: #62729b;
  --green: #8ceec7;
  --green-dim: rgba(140, 238, 199, 0.12);
  --red: #ff7d90;
  --red-dim: rgba(255, 125, 144, 0.1);
  --amber: #f2c36c;
  --amber-dim: rgba(242, 195, 108, 0.12);
  --blue: #89a9ff;
  --blue-dim: rgba(137, 169, 255, 0.12);
  --violet: #baa5ff;
  --radius: 22px;
  --radius-sm: 12px;
  --sidebar-width: 252px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", sans-serif;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 12%, rgba(137, 169, 255, 0.16), transparent 22%),
    radial-gradient(circle at 82% 10%, rgba(186, 165, 255, 0.14), transparent 22%),
    radial-gradient(circle at 50% 120%, rgba(140, 238, 199, 0.08), transparent 28%),
    linear-gradient(180deg, #03050d 0%, #08101f 45%, #040712 100%);
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

body::before {
  background-image:
    radial-gradient(2px 2px at 8% 18%, rgba(255,255,255,0.85) 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 26% 62%, rgba(215,226,255,0.7) 50%, transparent 52%),
    radial-gradient(2px 2px at 74% 28%, rgba(255,255,255,0.8) 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 88% 66%, rgba(210,221,255,0.66) 50%, transparent 52%),
    radial-gradient(2px 2px at 60% 82%, rgba(255,255,255,0.74) 50%, transparent 52%),
    radial-gradient(1px 1px at 44% 15%, rgba(255,255,255,0.62) 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 17% 85%, rgba(220,228,255,0.68) 50%, transparent 52%);
  background-size: 420px 420px;
  opacity: 0.85;
  animation: driftStars 95s linear infinite;
}

body::after {
  background-image:
    radial-gradient(1px 1px at 14% 12%, rgba(255,255,255,0.46) 50%, transparent 52%),
    radial-gradient(1px 1px at 72% 20%, rgba(255,255,255,0.42) 50%, transparent 52%),
    radial-gradient(1px 1px at 36% 48%, rgba(255,255,255,0.5) 50%, transparent 52%),
    radial-gradient(1px 1px at 86% 82%, rgba(255,255,255,0.44) 50%, transparent 52%),
    radial-gradient(1px 1px at 28% 78%, rgba(255,255,255,0.4) 50%, transparent 52%);
  background-size: 280px 280px;
  opacity: 0.5;
  animation: driftStarsReverse 140s linear infinite;
}

@keyframes driftStars {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-130px, 84px, 0); }
}

@keyframes driftStarsReverse {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(100px, -70px, 0); }
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.auth-body {
  display: grid;
  place-items: center;
  padding: 32px;
}

.auth-body-public {
  align-content: start;
  padding-bottom: 170px;
}

.auth-body-compact {
  padding: 48px 24px;
}

.auth-shell {
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: 1.15fr 0.9fr;
  gap: 28px;
}

.auth-shell-public {
  align-items: start;
}

.auth-shell-single {
  width: min(520px, 100%);
  grid-template-columns: 1fr;
}

.auth-hero,
.auth-card,
.card,
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(22px);
  box-shadow: 0 24px 70px rgba(1, 5, 16, 0.42);
}

.auth-hero {
  border-radius: 34px;
  padding: 52px;
  min-height: 680px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}

.auth-hero-public {
  min-height: 860px;
}

.eyebrow,
.logo-sub,
.nav-section,
.tiny-label,
.wallet-item-label,
.stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
}

.auth-hero h1 {
  font-family: "Syne", sans-serif;
  font-size: clamp(2.9rem, 5vw, 4.6rem);
  line-height: 0.93;
  max-width: 10ch;
}

.auth-hero p {
  color: #cad4ee;
  max-width: 52ch;
  font-size: 1rem;
  line-height: 1.7;
}

.auth-feature-list {
  display: grid;
  gap: 14px;
  margin-top: 10px;
}

.auth-feature-card {
  background: linear-gradient(135deg, rgba(137, 169, 255, 0.1), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px 20px;
}

.auth-feature-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
}

.auth-feature-card span {
  color: var(--muted);
  line-height: 1.5;
}

.auth-panel {
  display: flex;
  align-items: center;
}

.auth-panel-public {
  align-items: flex-start;
}

.auth-stack {
  display: grid;
  gap: 18px;
  width: 100%;
}

.auth-card {
  width: 100%;
  border-radius: 30px;
  padding: 32px;
}

.auth-card-section {
  padding: 28px;
}

.auth-form-spaced {
  margin-top: 28px;
}

.auth-card-head,
.card-header,
.topbar,
.topbar-right,
.wallet-row,
.user-pill,
.history-row,
.risk-row,
.notif,
.trader-card,
.admin-user-head,
.admin-user-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.role-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 28px 0 20px;
}

.role-switch-btn,
.btn,
.deposit-btn,
.withdraw-btn,
.mobile-nav-toggle {
  border: none;
  cursor: pointer;
  transition: 0.18s ease;
}

.role-switch-btn {
  padding: 13px 14px;
  border-radius: 14px;
  background: rgba(20, 30, 57, 0.74);
  color: var(--muted);
  border: 1px solid transparent;
}

.role-switch-btn.active {
  background: linear-gradient(90deg, rgba(137,169,255,0.18), rgba(186,165,255,0.12));
  color: var(--text);
  border-color: rgba(180, 198, 255, 0.18);
}

.auth-form,
.compact-form {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 10px;
}

.password-field {
  position: relative;
}

.field span {
  color: #dbe3f8;
  font-size: 0.95rem;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border2);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  outline: none;
}

.password-field input {
  padding-right: 54px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  color: rgba(237, 243, 255, 0.82);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.password-toggle:hover {
  color: #ffffff;
}

.eye-icon {
  width: 22px;
  height: 22px;
}

.eye-off {
  display: none;
}

.password-toggle.is-visible .eye-open {
  display: none;
}

.password-toggle.is-visible .eye-off {
  display: block;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: rgba(137, 169, 255, 0.42);
  box-shadow: 0 0 0 3px rgba(137, 169, 255, 0.08);
}

.auth-submit {
  width: 100%;
}

.google-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #f0efe8;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.google-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.25);
}

.google-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.auth-helper,
.auth-error,
.auth-success,
.terms-copy,
.card-sub,
.history-meta,
.risk-sub,
.notif-body,
.notif-time,
.trader-stats,
.page-sub {
  color: var(--muted);
}

.auth-error {
  color: #ff98a7;
}

.auth-success {
  color: var(--green);
}

.terms-copy {
  margin-top: 18px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.legal-link {
  color: var(--green);
  font-weight: 600;
}

.legal-link:hover {
  color: #baf6da;
}

.landing-footer {
  position: fixed;
  left: 32px;
  right: 32px;
  bottom: 28px;
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.8fr;
  gap: 20px;
  align-items: center;
  background: rgba(19, 24, 39, 0.94);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 28px 30px;
  backdrop-filter: blur(20px);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}

.footer-brand-block,
.footer-legal-block,
.footer-support-block {
  display: grid;
  gap: 14px;
}

.footer-logo {
  font-size: 18px;
}

.trustpilot-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.trustpilot-label,
.trustpilot-brand {
  font-size: 0.95rem;
  font-weight: 600;
}

.trustpilot-stars {
  display: flex;
  gap: 3px;
}

.star {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: rgba(255,255,255,0.14);
  color: #fff;
  font-size: 0.95rem;
}

.star.filled {
  background: #3ad27f;
  color: #08101f;
}

.star.half {
  background: linear-gradient(90deg, #3ad27f 50%, rgba(255,255,255,0.16) 50%);
  color: #08101f;
}

.footer-links {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-copy {
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-support-label {
  font-family: "Syne", sans-serif;
  font-size: 1.05rem;
}

.footer-support-text {
  color: var(--muted);
  line-height: 1.5;
}

.support-launcher {
  position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: 45;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #3ad27f, #8ceec7);
  color: #08101f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.support-launcher svg {
  width: 28px;
  height: 28px;
}

.support-launcher.hidden {
  display: none;
}

.support-widget {
  position: fixed;
  right: 30px;
  bottom: 110px;
  width: min(360px, calc(100vw - 40px));
  z-index: 46;
  background: rgba(15, 21, 38, 0.96);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 18px;
  backdrop-filter: blur(18px);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}

.support-widget-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.support-conversation {
  max-height: 220px;
  overflow-y: auto;
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
  padding-right: 4px;
}

.support-empty {
  color: var(--muted);
  font-size: 0.95rem;
}

.support-close {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.support-message-card {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  margin-top: 12px;
}

.support-message-body {
  margin-top: 12px;
  color: #dfe6fb;
  line-height: 1.6;
  white-space: pre-wrap;
}

.support-thread {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.dashboard-support-shell {
  display: grid;
  gap: 16px;
}

.dashboard-support-thread {
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 4px;
}

.dashboard-support-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.dashboard-support-time {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--muted);
}

.support-bubble {
  padding: 12px 14px;
  border-radius: 14px;
  line-height: 1.5;
}

.support-bubble-user {
  background: rgba(137, 169, 255, 0.12);
  border: 1px solid rgba(137, 169, 255, 0.12);
}

.support-bubble-admin {
  background: rgba(140, 238, 199, 0.12);
  border: 1px solid rgba(140, 238, 199, 0.12);
}

.support-bubble-role {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.support-reply-form {
  margin-top: 14px;
}

.auth-body-public {
  min-height: 100vh;
  align-content: center;
  padding: 34px 42px 210px;
  background: url('copy trading.png') no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
}

.auth-body-public::before {
  z-index: -3;
  opacity: 1;
  animation: none;
  background:
    linear-gradient(90deg, rgba(3, 6, 19, 0.96) 0%, rgba(5, 8, 23, 0.82) 32%, rgba(5, 8, 23, 0.2) 58%, rgba(4, 7, 21, 0.34) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 1000'%3E%3Crect width='1600' height='1000' fill='%23030613'/%3E%3Cg opacity='0.14' stroke='%23334d9f' stroke-width='1'%3E%3Cpath d='M0 150H1600M0 250H1600M0 350H1600M0 450H1600M0 550H1600M0 650H1600M0 750H1600M0 850H1600'/%3E%3Cpath d='M180 0V1000M320 0V1000M460 0V1000M600 0V1000M740 0V1000M880 0V1000M1020 0V1000M1160 0V1000M1300 0V1000M1440 0V1000'/%3E%3C/g%3E%3Cg opacity='0.95'%3E%3Cpath d='M60 770C180 736 234 702 300 660C370 614 424 640 474 592C530 538 574 548 620 492C674 426 710 438 750 366C804 270 838 286 876 218C926 126 960 108 1006 114C1056 120 1100 176 1142 174C1188 170 1228 128 1262 136' stroke='%232749ff' stroke-width='5' fill='none' stroke-linecap='round'/%3E%3Cg fill='%233f7cff'%3E%3Crect x='748' y='334' width='18' height='80' rx='4'/%3E%3Crect x='784' y='278' width='18' height='102' rx='4'/%3E%3Crect x='820' y='242' width='18' height='86' rx='4'/%3E%3Crect x='856' y='196' width='18' height='104' rx='4'/%3E%3Crect x='892' y='154' width='18' height='88' rx='4'/%3E%3Crect x='928' y='126' width='18' height='82' rx='4'/%3E%3Crect x='964' y='88' width='18' height='96' rx='4'/%3E%3C/g%3E%3Cg fill='%235c41ff'%3E%3Crect x='765' y='308' width='18' height='64' rx='4'/%3E%3Crect x='801' y='255' width='18' height='76' rx='4'/%3E%3Crect x='837' y='220' width='18' height='70' rx='4'/%3E%3Crect x='873' y='178' width='18' height='86' rx='4'/%3E%3Crect x='909' y='139' width='18' height='72' rx='4'/%3E%3Crect x='945' y='112' width='18' height='68' rx='4'/%3E%3Crect x='981' y='80' width='18' height='78' rx='4'/%3E%3C/g%3E%3Cg fill='%233ea7ff'%3E%3Ccircle cx='1010' cy='126' r='5'/%3E%3Ccircle cx='1088' cy='196' r='4'/%3E%3Ccircle cx='1160' cy='144' r='4.5'/%3E%3Ccircle cx='1228' cy='106' r='3.8'/%3E%3C/g%3E%3Cg opacity='0.85'%3E%3Cpath d='M610 815C756 738 844 760 962 824C1074 884 1168 898 1268 810C1366 724 1454 716 1560 804' stroke='%2338a6ff' stroke-width='3' fill='none'/%3E%3Cpath d='M550 856C662 806 752 820 860 876C972 934 1080 942 1196 860C1300 784 1404 780 1532 860' stroke='%23715cff' stroke-width='3' fill='none'/%3E%3Cpath d='M492 894C620 850 736 866 856 924C960 974 1076 972 1188 920C1316 860 1440 862 1578 936' stroke='%23c568ff' stroke-width='3' fill='none'/%3E%3C/g%3E%3Cg opacity='0.5' fill='%234f7cff'%3E%3Ccircle cx='1148' cy='420' r='3'/%3E%3Ccircle cx='1202' cy='456' r='3'/%3E%3Ccircle cx='1256' cy='492' r='3'/%3E%3Ccircle cx='1310' cy='528' r='3'/%3E%3Ccircle cx='1364' cy='564' r='3'/%3E%3Ccircle cx='1418' cy='600' r='3'/%3E%3Ccircle cx='1472' cy='636' r='3'/%3E%3Ccircle cx='1148' cy='462' r='3'/%3E%3Ccircle cx='1202' cy='498' r='3'/%3E%3Ccircle cx='1256' cy='534' r='3'/%3E%3Ccircle cx='1310' cy='570' r='3'/%3E%3Ccircle cx='1364' cy='606' r='3'/%3E%3Ccircle cx='1418' cy='642' r='3'/%3E%3Ccircle cx='1472' cy='678' r='3'/%3E%3C/g%3E%3Cg fill='%234d74ff' opacity='0.8'%3E%3Ccircle cx='920' cy='154' r='4.5'/%3E%3Ccircle cx='1094' cy='90' r='3.2'/%3E%3Ccircle cx='1398' cy='88' r='3.1'/%3E%3Ccircle cx='1458' cy='188' r='2.8'/%3E%3Ccircle cx='1268' cy='704' r='2.7'/%3E%3Ccircle cx='1370' cy='760' r='3.4'/%3E%3Ccircle cx='1518' cy='592' r='2.9'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
}

.auth-body-public::after {
  z-index: -2;
  opacity: 1;
  animation: none;
  background:
    radial-gradient(circle at 76% 76%, rgba(143, 76, 255, 0.36), transparent 14%),
    radial-gradient(circle at 61% 68%, rgba(53, 159, 255, 0.2), transparent 16%),
    radial-gradient(circle at 88% 30%, rgba(91, 52, 255, 0.18), transparent 14%),
    linear-gradient(180deg, rgba(6, 10, 26, 0.16), rgba(4, 8, 22, 0.2));
  filter: blur(8px);
}

.auth-body-public::before,
.auth-body-public::after {
  display: none;
}

.auth-shell-public {
  width: min(1320px, 100%);
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 46px;
  align-items: stretch;
}

.auth-hero-public,
.auth-body-public .auth-card-section {
  backdrop-filter: blur(0);
}

.auth-hero-public {
  min-height: 760px;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 72px 20px 80px 36px;
  justify-content: center;
  gap: 26px;
}

.auth-body-public .eyebrow {
  color: #78a5ff;
  letter-spacing: 5px;
  font-size: 0.95rem;
}

.auth-body-public .auth-hero h1 {
  max-width: 7.2ch;
  font-size: clamp(4.5rem, 8vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: -0.08em;
  color: #ffffff;
  text-shadow: 0 10px 40px rgba(27, 53, 145, 0.22);
}

.hero-accent {
  display: inline-block;
  background: linear-gradient(180deg, #80bbff 0%, #6b72ff 48%, #9c59ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}

.auth-body-public .auth-hero p {
  max-width: 30ch;
  color: rgba(232, 240, 255, 0.88);
  font-size: 1.15rem;
  line-height: 1.65;
}

.auth-body-public .auth-feature-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 760px;
  margin-top: 28px;
}

.auth-body-public .auth-feature-card {
  min-height: 158px;
  background: linear-gradient(180deg, rgba(8, 14, 35, 0.54), rgba(6, 10, 24, 0.36));
  border: 1px solid rgba(116, 148, 255, 0.2);
  border-radius: 24px;
  padding: 22px 18px 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.auth-body-public .auth-feature-card strong {
  font-size: 1rem;
  color: #f3f7ff;
}

.auth-body-public .auth-feature-card span {
  color: rgba(202, 214, 245, 0.86);
  line-height: 1.6;
}

.auth-panel-public {
  align-items: center;
  justify-content: flex-end;
}

.auth-body-public .auth-stack {
  width: min(100%, 416px);
  gap: 22px;
}

.auth-body-public .auth-card-section {
  background: linear-gradient(180deg, rgba(9, 12, 30, 0.92), rgba(7, 10, 25, 0.9));
  border: 1px solid rgba(123, 145, 255, 0.4);
  border-radius: 34px;
  padding: 34px 34px 28px;
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.44),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.auth-body-public .auth-card-section:first-child {
  min-height: 612px;
}

.auth-body-public .auth-card-section:nth-child(2) {
  background: linear-gradient(180deg, rgba(8, 11, 26, 0.92), rgba(5, 8, 20, 0.9));
  border-color: rgba(101, 126, 225, 0.24);
  opacity: 1;

}

.auth-body-public .auth-card-head {
  align-items: flex-start;
}

.auth-body-public .auth-card-section .logo-text {
  font-size: 1.55rem;
  letter-spacing: -0.04em;
  color: #ffffff;
}

.auth-body-public .auth-card-section .logo-sub {
  margin-top: 8px;
  font-size: 0.82rem;
  color: #67a3ff;
  letter-spacing: 3px;
}

.auth-body-public .live-badge {
  background: rgba(11, 16, 35, 0.54);
  border: 1px solid rgba(123, 145, 255, 0.2);
  color: rgba(233, 241, 255, 0.86);
}

.auth-body-public .field input,
.auth-body-public .field textarea {
  border-radius: 16px;
  padding: 16px 18px;
  background: rgba(6, 10, 28, 0.64);
  border: 1px solid rgba(124, 144, 255, 0.28);
}

.auth-body-public .password-field input {
  padding-right: 56px;
}

.auth-body-public .btn-primary.auth-submit {
  margin-top: 8px;
  border-radius: 18px;
  padding: 16px 18px;
  background: linear-gradient(90deg, #57a7ff 0%, #4c7cff 45%, #6d49ff 100%);
  color: #fff;
  box-shadow: 0 14px 36px rgba(79, 106, 255, 0.34);
}

.auth-body-public .btn-primary.auth-submit:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.auth-body-public .terms-copy,
.auth-body-public .auth-helper,
.auth-body-public .auth-success,
.auth-body-public .auth-error {
  color: rgba(202, 214, 245, 0.84);
}

.google-auth-slot {
  display: flex;
  justify-content: center;
  width: 100%;
}

.google-auth-slot > div {
  width: 100%;
}

.auth-body-public .landing-footer {
  left: 42px;
  right: 42px;
  bottom: 28px;
  background: rgba(12, 15, 31, 0.9);
  border-color: rgba(114, 140, 255, 0.14);
  border-radius: 28px;
}

.auth-body-auth-only {
  min-height: 100vh;
  align-content: center;
  padding: 34px 42px 210px;
}

.auth-shell-auth-only {
  width: min(1320px, 100%);
  grid-template-columns: 1fr;
  justify-items: center;
}

.auth-panel-centered {
  width: 100%;
  justify-content: center;
}

.auth-stack-centered {
  width: min(100%, 430px);
}

.auth-card-single {
  min-height: auto;
}

.auth-switch-copy {
  margin-top: 18px;
  text-align: center;
}

.admin-link {
  display: inline-flex;
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.95rem;
}

.admin-link:hover {
  color: var(--text);
}

.sidebar {
  width: var(--sidebar-width);
  min-height: 100vh;
  background: linear-gradient(180deg, rgba(7, 11, 24, 0.96), rgba(9, 14, 30, 0.9));
  border-right: 1px solid var(--border);
  position: fixed;
  inset: 0 auto 0 0;
  padding: 28px 0;
  display: flex;
  flex-direction: column;
  z-index: 20;
}

.logo {
  padding: 0 24px 28px;
  border-bottom: 1px solid var(--border);
}

.logo-text,
.page-title,
.stat-value,
.wallet-main,
.card-title,
.risk-val,
.history-pair,
.trader-roi-val {
  font-family: "Syne", sans-serif;
}

.logo-text {
  font-size: 20px;
  font-weight: 800;
}

.logo-text span,
.card-action,
.green-text {
  color: #dbe2ff;
}

.nav {
  padding: 18px 12px;
  flex: 1;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-bottom: 2px;
  padding: 11px 12px;
  border-radius: 12px;
  color: var(--muted);
  background: transparent;
  text-align: left;
}

.nav-button {
  appearance: none;
}

.nav-item:hover,
.nav-item.active {
  background: rgba(142, 166, 255, 0.08);
  color: var(--text);
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(137,169,255,0.18), rgba(186,165,255,0.08));
  color: #e6eeff;
}

.dot,
.live-dot,
.status-dot {
  border-radius: 50%;
  background: currentColor;
}

.dot {
  width: 7px;
  height: 7px;
  opacity: 0.68;
}

.nav-badge {
  margin-left: auto;
  background: linear-gradient(135deg, #f08aa8, #b78aff);
  color: #0d1020;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
}

.sidebar-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
}

.avatar,
.trader-avatar,
.notif-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #9db8ff, #baa5ff);
  color: #09101d;
  font-family: "Syne", sans-serif;
  font-weight: 800;
}

.main {
  margin-left: var(--sidebar-width);
  padding: 32px 36px 44px;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
}

.topbar {
  gap: 18px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.topbar-right {
  gap: 12px;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(137, 169, 255, 0.12);
  border: 1px solid rgba(137, 169, 255, 0.16);
  color: #dce5ff;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 7px 12px;
  border-radius: 999px;
}

.live-dot,
.status-dot {
  width: 7px;
  height: 7px;
  animation: pulse 1.4s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.76); }
}

.btn {
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 0.95rem;
}

.btn-primary,
.deposit-btn {
  background: linear-gradient(135deg, #9cb7ff, #bba7ff);
  color: #09101e;
  font-weight: 700;
}

.btn-primary:hover,
.deposit-btn:hover {
  background: linear-gradient(135deg, #afc4ff, #c8b8ff);
  transform: translateY(-1px);
}

.btn-ghost,
.withdraw-btn {
  background: rgba(15, 23, 43, 0.78);
  color: var(--text);
  border: 1px solid var(--border2);
}

.stats-row,
.grid-2,
.grid-3,
.admin-balance-grid,
.market-grid {
  display: grid;
  gap: 18px;
}

.stats-row {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 24px;
}

.market-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: 1fr 1fr;
  margin-bottom: 20px;
}

.grid-3 {
  grid-template-columns: 2fr 1fr;
  margin-bottom: 20px;
}

.stat-card,
.card {
  border-radius: var(--radius);
}

.stat-card {
  padding: 22px;
}

.stat-value {
  font-size: 30px;
  letter-spacing: -1px;
  margin-top: 10px;
}

.stat-change {
  display: inline-flex;
  margin-top: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
}

.stat-change.up {
  color: var(--green);
  background: var(--green-dim);
}

.stat-change.neutral {
  color: var(--muted);
  background: rgba(18, 25, 46, 0.7);
}

.card {
  padding: 24px;
}

.card-header {
  margin-bottom: 20px;
}

.card-title {
  font-size: 15px;
}

.time-tabs {
  display: flex;
  gap: 8px;
}

.active-chip {
  background: rgba(137, 169, 255, 0.14);
  color: #dfe8ff;
}

.chart-area {
  height: 160px;
}

.chart-svg {
  width: 100%;
  height: 100%;
}

.chart-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 11px;
  color: var(--muted2);
}

.wallet-main {
  font-size: 42px;
  letter-spacing: -2px;
  margin: 10px 0 6px;
}

.wallet-trend {
  color: var(--green);
  font-size: 0.95rem;
}

.wallet-row,
.admin-user-actions {
  gap: 12px;
  margin-top: 18px;
}

.desk-hero,
.desk-meta,
.allocation-actions,
.switch-row,
.payment-wallet-card {
  display: flex;
  align-items: center;
  gap: 14px;
}

.desk-hero {
  padding: 6px 0;
}

.desk-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #9cb7ff, #8ceec7);
  color: #08101f;
  font-family: "Syne", sans-serif;
  font-weight: 800;
}

.desk-meta {
  margin-left: auto;
  text-align: right;
}

.desk-meta-value {
  font-family: "Syne", sans-serif;
  font-size: 1.5rem;
}

.wallet-item,
.update-card,
.admin-user-card,
.admin-registration-card,
.market-card {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.wallet-item {
  flex: 1;
  padding: 14px;
}

.market-card {
  padding: 18px;
}

.market-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.market-symbol,
.market-price {
  font-family: "Syne", sans-serif;
}

.market-symbol {
  font-size: 1rem;
}

.market-symbol-sub,
.market-source {
  color: var(--muted);
  font-size: 0.9rem;
}

.market-price {
  margin-top: 18px;
  font-size: 1.8rem;
  letter-spacing: -0.04em;
}

.market-source {
  margin-top: 8px;
}

.market-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.market-chip.up {
  color: var(--green);
  background: var(--green-dim);
}

.market-chip.down {
  color: var(--red);
  background: var(--red-dim);
}

.market-chip.flat {
  color: var(--muted);
  background: rgba(18, 25, 46, 0.7);
}

.risk-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.allocation-actions {
  flex-wrap: wrap;
}

.switch-row {
  flex-direction: column;
  align-items: stretch;
}

.toggle-field {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(17, 25, 47, 0.5);
}

.toggle-field input {
  width: 18px;
  height: 18px;
}

.table-empty {
  padding: 18px 0;
  color: var(--muted);
}

.payment-reveal,
.payment-history-card {
  margin-top: 18px;
}

.payment-reveal {
  display: grid;
  gap: 16px;
}

.payment-wallet-card {
  justify-content: space-between;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(11, 18, 37, 0.68);
}

.wallet-address {
  margin-top: 8px;
  font-size: 0.95rem;
  color: #edf3ff;
  word-break: break-all;
}

.wallet-address.compact {
  margin-top: 10px;
}

.payment-qr,
.admin-proof-image {
  width: 132px;
  height: 132px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.admin-proof-image {
  width: 100%;
  height: auto;
  margin-top: 14px;
}

.payment-warning {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(242, 195, 108, 0.08);
  border: 1px solid rgba(242, 195, 108, 0.18);
  color: #f6ddb0;
  line-height: 1.55;
}

.payment-checklist {
  display: grid;
  gap: 12px;
}

.payment-check-item {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(17, 25, 47, 0.5);
  border: 1px solid var(--border);
  color: #dfe6fb;
  line-height: 1.55;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.status-pill.green {
  color: var(--green);
  background: var(--green-dim);
}

.status-pill.red {
  color: var(--red);
  background: var(--red-dim);
}

.status-pill.amber {
  color: var(--amber);
  background: var(--amber-dim);
}

.status-pill.blue {
  color: var(--blue);
  background: var(--blue-dim);
}

.wallet-item-val,
.history-pnl,
.risk-val {
  font-size: 16px;
  font-weight: 700;
}

.deposit-btn,
.withdraw-btn {
  width: 100%;
  padding: 13px;
  border-radius: 12px;
  margin-top: 16px;
}

.withdraw-btn {
  margin-top: 8px;
}

.positions-table {
  width: 100%;
  border-collapse: collapse;
}

.positions-table th,
.positions-table td {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.positions-table th {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.pair-badge {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 8px;
  background: rgba(18, 26, 49, 0.84);
  font-family: "Syne", sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.side-buy,
.pnl-pos {
  color: var(--green);
}

.side-sell,
.pnl-neg {
  color: var(--red);
}

.trader-card,
.notif,
.risk-row,
.history-row {
  gap: 14px;
}

.trader-card,
.notif {
  padding: 14px 0;
}

.trader-card {
  background: linear-gradient(135deg, rgba(19, 27, 52, 0.82), rgba(11, 17, 33, 0.82));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
}

.trader-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-family: "Syne", sans-serif;
  font-weight: 800;
}

.notif-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.grow {
  flex: 1;
  min-width: 0;
}

.align-right {
  text-align: right;
}

.alloc-bar {
  height: 4px;
  border-radius: 999px;
  background: var(--border);
  margin-top: 10px;
}

.alloc-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.history-row,
.risk-row,
.notif {
  border-bottom: 1px solid var(--border);
}

.history-row:last-child,
.risk-row:last-child,
.notif:last-child {
  border-bottom: none;
}

.stack-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.toggle {
  width: 38px;
  height: 20px;
  border-radius: 999px;
  background: var(--green);
  position: relative;
}

.toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #07101e;
}

.toggle.off {
  background: var(--muted2);
}

.toggle.off::after {
  right: 21px;
}

.update-card {
  padding: 18px;
  margin-bottom: 12px;
}

.update-title {
  font-weight: 700;
  margin-bottom: 6px;
}

.admin-stats {
  margin-bottom: 24px;
}

.admin-user-card {
  padding: 20px;
  margin-top: 14px;
}

.admin-registration-card {
  padding: 18px;
  margin-top: 12px;
}

.admin-registration-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.registration-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.registration-meta-item {
  background: rgba(17, 25, 47, 0.66);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
}

.registration-meta-item span {
  display: block;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.empty-state {
  padding: 18px;
  border: 1px dashed var(--border2);
  border-radius: 14px;
  color: var(--muted);
}

.admin-balance-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 18px;
}

.green-tone {
  background: rgba(140, 238, 199, 0.15);
  color: var(--green);
}

.blue-tone {
  background: rgba(137, 169, 255, 0.15);
  color: var(--blue);
}

.amber-tone {
  background: rgba(242, 195, 108, 0.15);
  color: var(--amber);
}

.red-tone {
  background: rgba(255, 125, 144, 0.15);
  color: var(--red);
}

.muted-tone {
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.blue-bg {
  background: var(--blue);
}

.amber-bg {
  background: var(--amber);
}

.mobile-nav-toggle {
  display: none;
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 40;
  background: rgba(9, 14, 29, 0.95);
  color: var(--text);
  border: 1px solid var(--border2);
  border-radius: 12px;
  padding: 10px 14px;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-thumb {
  background: var(--bg4);
  border-radius: 999px;
}

@media (max-width: 1100px) {
  .auth-shell,
  .stats-row,
  .market-grid,
  .grid-2,
  .grid-3,
  .admin-balance-grid,
  .registration-meta-grid,
  .risk-grid {
    grid-template-columns: 1fr;
  }

  .landing-footer {
    position: static;
    margin-top: 26px;
    grid-template-columns: 1fr;
  }

  .auth-body-public {
    padding: 22px 18px 32px;
  }

  .auth-shell-public {
    gap: 18px;
  }

  .auth-body-public .auth-hero-public {
    min-height: auto;
    padding: 28px 8px 18px;
  }

  .auth-body-public .auth-feature-list {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .auth-body-public .landing-footer {
    left: auto;
    right: auto;
  }

  .auth-body-auth-only {
    padding: 22px 18px 32px;
  }
}

@media (max-width: 900px) {
  .mobile-nav-toggle {
    display: inline-flex;
  }

  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main {
    margin-left: 0;
    padding: 86px 18px 32px;
  }

  .auth-body {
    padding: 18px;
  }

  .auth-hero,
  .auth-card,
  .card,
  .stat-card {
    padding: 22px;
    border-radius: 22px;
  }

  .positions-table {
    display: block;
    overflow-x: auto;
  }

  .support-widget {
    right: 18px;
    bottom: 96px;
  }

  .support-launcher {
    right: 18px;
    bottom: 18px;
  }
}

@media (max-width: 900px) {
  /* Force dark background on mobile */
  body {
    background:
      radial-gradient(circle at 18% 12%, rgba(137, 169, 255, 0.16), transparent 22%),
      radial-gradient(circle at 82% 10%, rgba(186, 165, 255, 0.14), transparent 22%),
      linear-gradient(180deg, #03050d 0%, #08101f 45%, #040712 100%) !important;
    background-attachment: fixed !important;
  }

  /* Dashboard layout */
  .stats-row {
    grid-template-columns: 1fr 1fr !important;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr !important;
  }

  /* Topbar */
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .topbar-right {
    width: 100%;
    justify-content: space-between;
  }

  /* Wallet */
  .wallet-main {
    font-size: 30px;
  }

  .wallet-row {
    flex-direction: column;
  }

  .wallet-item {
    width: 100%;
  }

  /* Cards */
  .card {
    padding: 18px;
    border-radius: 18px;
  }

  /* Positions table */
  .positions-table {
    font-size: 12px;
  }

  /* Market grid */
  .market-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  /* Hide stars animation on mobile for performance */
  body::before,
  body::after {
    display: none;
  }

  /* Auth page mobile */
  .auth-body-public {
    background-attachment: scroll !important;
  }

  .auth-shell-public {
    grid-template-columns: 1fr !important;
  }

  .auth-hero-public {
    display: none !important;
  }

  .auth-panel-public {
    justify-content: center;
  }

  .auth-body-public .auth-stack {
    width: 100%;
  }

  /* Footer on mobile */
  .landing-footer {
    display: none !important;
  }

  /* Risk grid */
  .risk-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {
  .stats-row {
    grid-template-columns: 1fr !important;
  }

  .market-grid {
    grid-template-columns: 1fr !important;
  }

  .page-title {
    font-size: 20px;
  }

  .wallet-main {
    font-size: 26px;
  }

  .main {
    padding: 80px 14px 28px;
  }
}