:root {
  --bg: #07111f;
  --panel: #0f1d31;
  --panel-2: #132642;
  --text: #edf6ff;
  --muted: #95a8bd;
  --gold: #f4c95d;
  --green: #22c55e;
  --red: #ef4444;
  --blue: #37a2ff;
  font-family: Inter, Segoe UI, Arial, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(55, 162, 255, .18), transparent 28%),
    radial-gradient(circle at 80% 0%, rgba(34, 197, 94, .12), transparent 24%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: var(--gold); text-decoration: none; }
input, select, textarea, button {
  border: 0;
  border-radius: 12px;
  font: inherit;
}
input, select, textarea {
  background: #081526;
  border: 1px solid #29405f;
  color: var(--text);
  padding: 12px 14px;
  width: 100%;
}
textarea { min-height: 92px; resize: vertical; }
button { cursor: pointer; }
code {
  background: #07111f;
  border: 1px solid #29405f;
  border-radius: 12px;
  display: block;
  overflow-wrap: anywhere;
  padding: 12px;
}

.site-header {
  align-items: center;
  background: rgba(7, 17, 31, .88);
  border-bottom: 1px solid #203755;
  display: flex;
  justify-content: space-between;
  padding: 16px 5vw;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
}
.guest-mode .site-header {
  position: relative;
}
section[id] {
  scroll-margin-top: 110px;
}
.brand {
  align-items: center;
  color: var(--text);
  display: flex;
  gap: 10px;
}
.brand img {
  background: linear-gradient(135deg, rgba(244, 201, 93, .18), rgba(34, 197, 94, .08));
  border: 1px solid rgba(244, 201, 93, .32);
  border-radius: 22px;
  height: 50px;
  object-fit: contain;
  padding: 8px;
  width: 50px;
}
.brand strong {
  font-size: 1.05rem;
  letter-spacing: .01em;
}
nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
nav a, nav button {
  background: transparent;
  color: var(--muted);
}
.guest-actions {
  flex-wrap: nowrap;
  gap: 12px;
}
.guest-actions a {
  border-radius: 999px;
  font-weight: 800;
  padding: 12px 22px;
}
.guest-actions .guest-login {
  border: 2px solid var(--green);
  box-shadow: inset 0 0 0 3px rgba(34, 197, 94, .16);
  color: var(--text);
}
.guest-actions .guest-register {
  background: var(--gold);
  color: #07111f;
}
.menu-toggle {
  align-items: center;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 5px;
  justify-content: center;
  min-height: 46px;
  padding: 9px;
  width: 46px;
}
.menu-toggle span {
  background: var(--text);
  border-radius: 99px;
  display: block;
  height: 3px;
  transition: transform .2s ease;
  width: 27px;
}
.drawer-overlay {
  background: rgba(0, 0, 0, .62);
  border-radius: 0;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity .25s ease;
  width: 100%;
  z-index: 1090;
}
.guest-drawer {
  background:
    radial-gradient(circle at 10% 0, rgba(55, 162, 255, .12), transparent 32%),
    #07111f;
  border-right: 1px solid #203755;
  bottom: 0;
  box-shadow: 24px 0 60px rgba(0, 0, 0, .4);
  left: 0;
  max-width: 390px;
  overflow-y: auto;
  padding: 20px;
  position: fixed;
  top: 0;
  transform: translateX(-105%);
  transition: transform .28s ease;
  width: min(84vw, 390px);
  z-index: 1100;
}
.drawer-open {
  overflow: hidden;
}
.drawer-open .drawer-overlay {
  opacity: 1;
  pointer-events: auto;
}
.drawer-open .guest-drawer {
  transform: translateX(0);
}
.drawer-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 34px;
}
.drawer-brand img {
  height: 72px;
  width: 72px;
}
.drawer-close {
  background: transparent;
  color: var(--text);
  font-size: 2rem;
  line-height: 1;
  padding: 8px;
}
.drawer-links {
  align-items: stretch;
  display: grid;
  gap: 5px;
}
.drawer-links a {
  border-bottom: 1px solid rgba(149, 168, 189, .14);
  color: var(--text);
  font-size: 1.08rem;
  padding: 14px 8px;
  transition: background-color .2s ease, color .2s ease, padding-left .2s ease;
}
.drawer-links a:hover {
  background: rgba(244, 201, 93, .08);
  color: var(--gold);
  padding-left: 14px;
}
.app-nav i {
  display: none;
  font-style: normal;
}
.app-nav a, .app-nav button {
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.app-nav a.active {
  background: rgba(200, 255, 0, .12);
  color: var(--gold);
}
.container {
  margin: 0 auto;
  max-width: 1180px;
  padding: 28px 20px 56px;
}
.hero {
  align-items: center;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr);
  min-height: 470px;
}
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 5rem);
  line-height: .96;
  margin: 0 0 18px;
}
.hero p {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 680px;
}
.eyebrow {
  color: var(--gold) !important;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.trade-card, .panel, .auth-card, .stat, .package {
  background: linear-gradient(180deg, rgba(19, 38, 66, .96), rgba(15, 29, 49, .96));
  border: 1px solid #284361;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .22);
  padding: 24px;
}
.trade-card strong {
  color: var(--green);
  display: block;
  font-size: 4rem;
  line-height: 1;
}
.grid {
  display: grid;
  gap: 18px;
  margin-bottom: 22px;
}
.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.stat span, .package span, .muted {
  color: var(--muted);
}
.stat strong, .package strong {
  display: block;
  font-size: 1.8rem;
  margin-top: 8px;
}
.stat-link {
  color: var(--text);
  min-width: 0;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.stat-link:hover,
.stat-link:focus {
  border-color: rgba(244, 201, 93, .68);
  box-shadow: 0 22px 60px rgba(0, 0, 0, .3), inset 0 0 0 1px rgba(244, 201, 93, .16);
  transform: translateY(-4px);
}
.stat-link small {
  color: var(--muted);
  display: block;
  font-size: .72rem;
  line-height: 1.4;
  margin-top: 10px;
}
.panel { margin-bottom: 22px; }
.panel h2, .auth-card h1 {
  margin-top: 0;
}
.btn {
  align-items: center;
  border-radius: 12px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  margin: 6px 8px 6px 0;
  min-height: 44px;
  padding: 11px 18px;
}
.primary {
  background: linear-gradient(135deg, var(--gold), #ffd985);
  color: #06101d;
}
.ghost {
  background: #132642;
  color: var(--text);
}
.danger {
  background: var(--red);
  color: white;
}
.form-grid {
  display: grid;
  gap: 14px;
}
label {
  color: var(--muted);
  display: grid;
  gap: 8px;
}
.auth-card {
  margin: 56px auto;
  max-width: 520px;
}
.auth-body {
  display: grid;
  place-items: center;
}
.alert {
  border-radius: 14px;
  margin: 18px auto 0;
  max-width: 1180px;
  padding: 14px 18px;
}
.alert.success { background: rgba(34, 197, 94, .14); border: 1px solid rgba(34, 197, 94, .35); }
.alert.error { background: rgba(239, 68, 68, .14); border: 1px solid rgba(239, 68, 68, .35); }
.table {
  display: grid;
  gap: 10px;
  max-width: 100%;
  overflow-x: auto;
}
.row {
  align-items: center;
  background: rgba(8, 21, 38, .72);
  border: 1px solid #243b58;
  border-radius: 14px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 12px;
}
.table-head {
  align-items: center;
  background: linear-gradient(135deg, rgba(244, 201, 93, .2), rgba(55, 162, 255, .1));
  border: 1px solid rgba(244, 201, 93, .35);
  border-radius: 12px;
  color: var(--gold);
  display: grid;
  font-size: .76rem;
  font-weight: 900;
  gap: 12px;
  letter-spacing: .06em;
  padding: 11px 12px;
  text-transform: uppercase;
}
.report-row {
  grid-template-columns: repeat(var(--cols), minmax(140px, 1fr));
  min-width: max(100%, calc(var(--cols) * 150px));
}
.report-row span,
.report-row b {
  overflow-wrap: anywhere;
}
.admin-row {
  grid-template-columns: 1fr 1fr .6fr .6fr 2fr;
}
.admin-user-row {
  grid-template-columns: 1.4fr .9fr .8fr auto;
}
.inline {
  align-items: center;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}
.inline input {
  min-width: 180px;
  width: auto;
}
.dash-head {
  align-items: end;
  display: flex;
  justify-content: space-between;
  margin-bottom: 22px;
}
.dash-head h1 { margin: 0; }
.admin-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.admin-mode {
  background:
    radial-gradient(circle at 90% 5%, rgba(244, 201, 93, .13), transparent 24%),
    radial-gradient(circle at 10% 20%, rgba(55, 162, 255, .12), transparent 28%),
    #050d18;
}
.admin-header {
  background: rgba(5, 13, 24, .96);
  border-bottom-color: rgba(244, 201, 93, .25);
}
.admin-header nav a {
  border-radius: 9px;
  padding: 8px 10px;
  transition: background .18s ease, color .18s ease;
}
.admin-header nav a:hover {
  background: rgba(244, 201, 93, .12);
  color: var(--gold);
}
.admin-page-title {
  align-items: end;
  display: flex;
  justify-content: space-between;
  margin: 14px 0 24px;
}
.admin-page-title h1 {
  font-size: clamp(2rem, 5vw, 3.8rem);
  letter-spacing: -.05em;
  line-height: 1;
  margin: 0;
}
.admin-page-title span {
  color: var(--muted);
}
.admin-stat-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.admin-stat-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.admin-mode .stat,
.admin-mode .panel {
  border-color: #263e5b;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .2);
}
.note {
  background: #081526;
  border: 1px solid #29405f;
  border-radius: 16px;
  margin-bottom: 12px;
  padding: 16px;
}
.password-field {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr auto;
}
.password-field button {
  background: var(--panel-2);
  color: var(--text);
  padding: 0 14px;
}

.home-hero {
  align-items: center;
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  min-height: 620px;
  overflow: hidden;
  position: relative;
}
.home-hero h1 {
  font-size: clamp(2.45rem, 6.8vw, 5.9rem);
  letter-spacing: -0.07em;
  line-height: .9;
  margin: 0 0 20px;
}
.home-hero h1 span {
  color: var(--gold);
  display: block;
  text-shadow: 0 0 28px rgba(244, 201, 93, .28);
}
.home-hero p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 650px;
}
.ai-trading-section {
  align-items: center;
  background:
    radial-gradient(circle at 76% 44%, rgba(34, 197, 94, .2), transparent 28%),
    radial-gradient(circle at 12% 86%, rgba(55, 162, 255, .13), transparent 25%),
    linear-gradient(145deg, #06101c, #0a1928 55%, #07131f);
  border-bottom: 1px solid #25445f;
  border-top: 1px solid #25445f;
  display: grid;
  gap: clamp(34px, 6vw, 86px);
  grid-template-columns: minmax(0, .85fr) minmax(520px, 1.15fr);
  margin-left: calc(50% - 50vw);
  min-height: 100vh;
  overflow: hidden;
  padding: clamp(70px, 8vw, 130px) max(24px, calc((100vw - 1500px) / 2));
  position: relative;
  width: 100vw;
}
.ai-trading-section::before {
  background-image:
    linear-gradient(rgba(55, 162, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(55, 162, 255, .04) 1px, transparent 1px);
  background-size: 54px 54px;
  content: "";
  inset: 0;
  mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
  pointer-events: none;
  position: absolute;
}
.ai-copy, .ai-console {
  position: relative;
  z-index: 1;
}
.ai-copy h2 {
  font-size: clamp(2.4rem, 5vw, 5.2rem);
  letter-spacing: -.06em;
  line-height: .94;
  margin: 0 0 24px;
  max-width: 720px;
}
.ai-lead {
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.75;
  max-width: 670px;
}
.ai-points {
  display: grid;
  gap: 12px;
  margin: 30px 0;
}
.ai-points article {
  align-items: center;
  background: rgba(15, 29, 49, .72);
  border: 1px solid rgba(55, 162, 255, .18);
  border-radius: 18px;
  display: grid;
  gap: 16px;
  grid-template-columns: 48px 1fr;
  padding: 15px;
}
.ai-points i {
  align-items: center;
  background: linear-gradient(145deg, rgba(34, 197, 94, .2), rgba(55, 162, 255, .15));
  border: 1px solid rgba(34, 197, 94, .35);
  border-radius: 14px;
  color: var(--green);
  display: flex;
  font-style: normal;
  font-weight: 900;
  height: 48px;
  justify-content: center;
}
.ai-points strong, .ai-points span {
  display: block;
}
.ai-points span {
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.45;
  margin-top: 4px;
}
.ai-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.ai-console {
  background: rgba(5, 14, 25, .9);
  border: 1px solid rgba(55, 162, 255, .35);
  border-radius: 30px;
  box-shadow: 0 35px 100px rgba(0, 0, 0, .45), 0 0 70px rgba(34, 197, 94, .08);
  min-height: 580px;
  overflow: hidden;
  padding: 18px;
}
.console-top, .console-bottom {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}
.console-top {
  border-bottom: 1px solid rgba(149, 168, 189, .14);
  color: var(--muted);
  font-size: .82rem;
  padding: 5px 5px 18px;
}
.console-top b {
  background: var(--green);
  border-radius: 99px;
  box-shadow: 0 0 16px var(--green);
  display: inline-block;
  height: 8px;
  margin-right: 7px;
  width: 8px;
}
.console-top em {
  color: var(--green);
  font-size: .72rem;
  font-style: normal;
  letter-spacing: .12em;
}
.console-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: .72fr 1.28fr;
  min-height: 470px;
  padding: 18px 0;
}
.robot-core, .analysis-panel {
  background: linear-gradient(160deg, rgba(19, 38, 66, .88), rgba(7, 17, 31, .9));
  border: 1px solid rgba(55, 162, 255, .18);
  border-radius: 22px;
  overflow: hidden;
  position: relative;
}
.robot-core {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.robot-core::before {
  background: radial-gradient(circle, rgba(34, 197, 94, .18), transparent 62%);
  content: "";
  inset: 0;
  position: absolute;
}
.robot-head {
  background: linear-gradient(150deg, #dcecff, #6684a4 45%, #18334d);
  border: 3px solid rgba(237, 246, 255, .7);
  border-radius: 45% 45% 38% 38%;
  box-shadow: 0 0 45px rgba(55, 162, 255, .42);
  height: 150px;
  position: relative;
  width: 170px;
  z-index: 2;
}
.robot-antenna {
  background: var(--blue);
  border-radius: 99px;
  height: 34px;
  left: 50%;
  position: absolute;
  top: -31px;
  transform: translateX(-50%);
  width: 5px;
}
.robot-antenna::before {
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--green);
  content: "";
  height: 14px;
  left: -5px;
  position: absolute;
  top: -8px;
  width: 14px;
}
.robot-face {
  align-items: center;
  background: #06111d;
  border: 2px solid rgba(55, 162, 255, .6);
  border-radius: 24px;
  display: flex;
  gap: 34px;
  height: 72px;
  justify-content: center;
  left: 15px;
  position: absolute;
  right: 15px;
  top: 36px;
}
.robot-face span {
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 18px var(--green);
  height: 13px;
  width: 13px;
}
.robot-head small {
  bottom: 8px;
  color: #06111d;
  font-size: .68rem;
  font-weight: 900;
  left: 0;
  letter-spacing: .18em;
  position: absolute;
  right: 0;
  text-align: center;
}
.robot-ring {
  border: 1px solid rgba(34, 197, 94, .36);
  border-radius: 50%;
  height: 260px;
  position: absolute;
  width: 260px;
}
.ring-one {
  animation: robotPulse 2.4s ease-in-out infinite;
}
.ring-two {
  animation: robotPulse 2.4s .8s ease-in-out infinite;
}
.scan-line {
  animation: scan 2.8s linear infinite;
  background: linear-gradient(90deg, transparent, rgba(34, 197, 94, .8), transparent);
  height: 2px;
  left: 10%;
  position: absolute;
  right: 10%;
  top: 22%;
  z-index: 3;
}
.robot-core p {
  bottom: 24px;
  color: var(--muted);
  font-size: .78rem;
  letter-spacing: .08em;
  position: absolute;
  text-transform: uppercase;
}
.analysis-panel {
  padding: 18px;
}
.signal-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
}
.signal-head span {
  font-weight: 900;
}
.signal-head strong {
  color: var(--green);
  font-size: .76rem;
}
.trade-chart {
  height: 300px;
  margin-top: 20px;
  overflow: hidden;
  position: relative;
}
.chart-grid {
  background-image:
    linear-gradient(rgba(149, 168, 189, .1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(149, 168, 189, .1) 1px, transparent 1px);
  background-size: 20% 25%;
  inset: 0;
  position: absolute;
}
.trade-chart svg {
  height: 100%;
  inset: 0;
  overflow: visible;
  position: absolute;
  width: 100%;
}
.chart-area {
  fill: url(#chartFill);
}
.chart-line {
  animation: chartDraw 3s ease-in-out infinite alternate;
  fill: none;
  filter: drop-shadow(0 0 6px rgba(34, 197, 94, .8));
  stroke: var(--green);
  stroke-dasharray: 900;
  stroke-dashoffset: 0;
  stroke-width: 4;
}
.chart-pulse {
  animation: chartDot 3s ease-in-out infinite alternate;
  background: var(--green);
  border: 4px solid rgba(34, 197, 94, .25);
  border-radius: 50%;
  box-shadow: 0 0 22px var(--green);
  height: 16px;
  position: absolute;
  right: 1%;
  top: 12%;
  width: 16px;
}
.signal-stats {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, 1fr);
}
.signal-stats span {
  background: #081526;
  border-radius: 12px;
  padding: 12px;
}
.signal-stats small, .signal-stats b {
  display: block;
}
.signal-stats small {
  color: var(--muted);
  font-size: .68rem;
  margin-bottom: 4px;
}
.signal-stats b {
  font-size: .78rem;
}
.signal-stats .positive {
  color: var(--green);
}
.console-bottom {
  border-top: 1px solid rgba(149, 168, 189, .14);
  color: var(--muted);
  font-size: .7rem;
  padding: 16px 5px 3px;
}
.console-bottom i {
  background: var(--green);
  border-radius: 50%;
  display: inline-block;
  height: 6px;
  margin-right: 5px;
  width: 6px;
}
.hero-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0;
}
.hero-metrics {
  background:
    linear-gradient(90deg, rgba(55, 162, 255, .12), rgba(7, 17, 31, .96) 38%, rgba(34, 197, 94, .12)),
    #081526;
  border-bottom: 1px solid rgba(55, 162, 255, .2);
  border-top: 1px solid rgba(149, 168, 189, .18);
  margin-left: calc(50% - 50vw);
  padding: 0 max(20px, calc((100vw - 1500px) / 2));
  position: relative;
  width: 100vw;
}
.hero-metrics-inner {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1500px;
  min-height: 180px;
}
.hero-metrics-inner div {
  align-items: center;
  border-right: 1px solid rgba(149, 168, 189, .14);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px 18px;
  position: relative;
  text-align: center;
}
.hero-metrics-inner div:first-child {
  border-left: 1px solid rgba(149, 168, 189, .14);
}
.hero-metrics-inner div::before {
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  bottom: 0;
  content: "";
  height: 2px;
  left: 18%;
  opacity: .6;
  position: absolute;
  right: 18%;
}
.hero-metrics strong {
  color: var(--text);
  display: block;
  font-size: clamp(1.8rem, 3vw, 3.2rem);
  line-height: 1;
  text-shadow: 0 0 24px rgba(55, 162, 255, .25);
}
.hero-metrics span {
  color: var(--muted);
  font-size: .88rem;
  letter-spacing: .08em;
  margin-top: 12px;
  text-transform: uppercase;
}
.glow-orb {
  border-radius: 999px;
  filter: blur(2px);
  opacity: .75;
  pointer-events: none;
  position: absolute;
}
.orb-a {
  animation: drift 8s ease-in-out infinite;
  background: radial-gradient(circle, rgba(244, 201, 93, .72), rgba(104, 190, 16, .16), transparent 70%);
  height: 330px;
  left: -160px;
  top: 40px;
  width: 330px;
}
.orb-b {
  animation: drift 10s ease-in-out infinite reverse;
  background: radial-gradient(circle, rgba(110, 231, 183, .72), rgba(55, 162, 255, .18), transparent 70%);
  height: 92px;
  right: 6%;
  top: 36px;
  width: 92px;
}
.hero-visual {
  min-height: 420px;
  position: relative;
}
.phone-card {
  background:
    linear-gradient(145deg, rgba(55, 162, 255, .95), rgba(22, 79, 194, .92)),
    linear-gradient(90deg, transparent, rgba(255,255,255,.18));
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 34px;
  box-shadow: 0 36px 80px rgba(0, 0, 0, .38), 0 0 60px rgba(95, 255, 38, .2);
  height: 230px;
  left: 50px;
  position: absolute;
  top: 80px;
  transform: rotate(7deg);
  width: 320px;
}
.card-chip {
  background: linear-gradient(135deg, #d99b23, #ffd773);
  border-radius: 8px;
  height: 42px;
  left: 34px;
  position: absolute;
  top: 52px;
  width: 56px;
}
.coin {
  align-items: center;
  background: radial-gradient(circle at 35% 30%, #ffe6a7, #f59e0b 58%, #b45309);
  border-radius: 50%;
  box-shadow: 0 18px 35px rgba(245, 158, 11, .36);
  color: white;
  display: grid;
  font-weight: 900;
  place-items: center;
  position: absolute;
}
.coin-main {
  bottom: -28px;
  font-size: 3rem;
  height: 116px;
  right: 24px;
  width: 116px;
}
.coin-small {
  font-size: 1.2rem;
  height: 48px;
  right: -18px;
  top: 34px;
  width: 48px;
}
.mini-line {
  background: rgba(255,255,255,.22);
  border-radius: 999px;
  height: 14px;
  left: 120px;
  position: absolute;
  top: 82px;
  width: 120px;
}
.mini-line.short {
  top: 118px;
  width: 84px;
}
.rate-badge, .market-badge {
  animation: float 4s ease-in-out infinite;
  background: rgba(15, 29, 49, .86);
  border: 1px solid rgba(244, 201, 93, .32);
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(0,0,0,.28);
  padding: 14px 16px;
  position: absolute;
}
.rate-badge {
  left: 0;
  top: 290px;
}
.market-badge {
  animation-delay: .8s;
  right: 0;
  top: 170px;
}
.intro-band, .start-band, .home-footer {
  align-items: center;
  background:
    linear-gradient(90deg, rgba(16, 83, 34, .5), rgba(7, 17, 31, .88) 42%, rgba(163, 230, 53, .18)),
    var(--panel);
  border: 1px solid #25445f;
  border-radius: 30px;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  margin: 30px 0;
  overflow: hidden;
  padding: 34px;
  position: relative;
}
.intro-band h2, .start-band h2, .section-head h2 {
  font-size: clamp(1.75rem, 3.8vw, 3rem);
  line-height: 1;
  margin: 0 0 14px;
}
.growth-graph {
  align-items: end;
  display: flex;
  gap: 14px;
  height: 260px;
  justify-content: center;
  position: relative;
}
.growth-graph span {
  animation: bars 2.8s ease-in-out infinite;
  background: linear-gradient(180deg, var(--gold), #6ee718);
  border-radius: 999px 999px 0 0;
  box-shadow: 0 0 28px rgba(163, 230, 53, .45);
  width: 20px;
}
.growth-graph span:nth-child(1) { height: 80px; }
.growth-graph span:nth-child(2) { animation-delay: .15s; height: 132px; }
.growth-graph span:nth-child(3) { animation-delay: .3s; height: 180px; }
.growth-graph span:nth-child(4) { animation-delay: .45s; height: 230px; }
.mc-coin {
  align-items: center;
  background: radial-gradient(circle, #ffeab0, #f4c95d 56%, #786100);
  border: 6px double #31520f;
  border-radius: 50%;
  bottom: 36px;
  color: #31520f;
  display: grid;
  font-size: 2rem;
  font-weight: 1000;
  height: 116px;
  place-items: center;
  position: absolute;
  right: 18%;
  width: 116px;
}
.section-head {
  margin: 50px 0 22px;
}
.center {
  text-align: center;
}
.feature-card, .step-card {
  background: linear-gradient(180deg, rgba(16, 31, 51, .96), rgba(8, 21, 38, .98));
  border: 1px solid #284361;
  border-radius: 22px;
  padding: 24px;
  position: relative;
  transition: transform .25s ease, border-color .25s ease;
}
.feature-card:hover, .step-card:hover, .package:hover {
  border-color: rgba(244, 201, 93, .65);
  transform: translateY(-6px);
}
.feature-card i, .step-card b {
  align-items: center;
  background: rgba(107, 255, 35, .13);
  border: 1px solid rgba(163, 230, 53, .42);
  border-radius: 14px;
  color: var(--gold);
  display: grid;
  font-style: normal;
  height: 42px;
  place-items: center;
  width: 42px;
}
.market-panel, .package-zone, .learn-section {
  background: linear-gradient(180deg, rgba(7, 17, 31, .96), rgba(5, 12, 22, .96));
  border: 1px solid #203755;
  border-radius: 30px;
  margin: 46px 0;
  padding: 28px;
}
.panel-title {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}
.market-list {
  display: grid;
  gap: 9px;
}
.market-row {
  align-items: center;
  background: #081526;
  border: 1px solid #1d344f;
  border-radius: 14px;
  display: grid;
  gap: 12px;
  grid-template-columns: 44px 80px 1fr 110px 80px;
  padding: 10px 14px;
}
.asset-icon {
  align-items: center;
  background: linear-gradient(135deg, #193756, #0d2137);
  border: 1px solid #315277;
  border-radius: 50%;
  color: var(--gold);
  display: grid;
  font-weight: 900;
  height: 34px;
  place-items: center;
  width: 34px;
}
.market-row small { color: var(--muted); }
.market-row em {
  font-style: normal;
  text-align: right;
}
.up { color: var(--green); }
.down { color: #ff6b6b; }
.double-card, .package-list-card {
  background: linear-gradient(160deg, #0f1d31, #081526 70%);
  border: 1px solid #284361;
  border-radius: 24px;
  padding: 24px;
}
.big-2x {
  background: radial-gradient(circle at right, rgba(163,230,53,.34), transparent 62%);
  border: 1px solid rgba(163, 230, 53, .4);
  border-radius: 20px;
  color: #94ff37;
  font-size: 4rem;
  font-weight: 1000;
  margin: 18px 0;
  padding: 24px;
}
.double-card ul {
  color: var(--muted);
  list-style: none;
  padding: 0;
}
.double-card li {
  margin: 10px 0;
}
.double-card li::before {
  color: var(--green);
  content: "● ";
}
.package-list {
  display: grid;
  gap: 10px;
}
.package-list div {
  align-items: center;
  background: #081526;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  padding: 12px 14px;
}
.package-list div:first-child {
  background: linear-gradient(90deg, var(--gold), #fff0a6);
  color: #06101d;
}
.wallet-illustration {
  min-height: 310px;
  position: relative;
}
.wallet-phone {
  background: linear-gradient(160deg, #77ffe0, #2dd4bf);
  border-radius: 34px;
  height: 250px;
  left: 28%;
  position: absolute;
  top: 16px;
  transform: rotate(-8deg);
  width: 170px;
}
.coin-ring {
  align-items: center;
  background: radial-gradient(circle, #ffe6a7, #f59e0b);
  border-radius: 50%;
  color: white;
  display: grid;
  font-weight: 900;
  height: 58px;
  place-items: center;
  position: absolute;
  width: 58px;
}
.c1 { left: 12%; top: 36px; }
.c2 { left: 52%; top: 108px; }
.c3 { left: 22%; top: 204px; }
.mini-stats {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 20px 0;
}
.mini-stats span {
  background: rgba(8, 21, 38, .8);
  border-radius: 12px;
  color: var(--muted);
  padding: 12px;
}
.mini-stats b {
  color: var(--text);
  display: block;
}
.question-card {
  background: linear-gradient(135deg, rgba(15, 29, 49, .96), rgba(77, 122, 11, .35));
}
.faq-card details {
  background: #081526;
  border: 1px solid #243b58;
  border-radius: 14px;
  margin-bottom: 10px;
  padding: 15px;
}
.faq-card summary {
  cursor: pointer;
  font-weight: 800;
}
.learn-card {
  background: #0f1d31;
  border: 1px solid #284361;
  border-radius: 22px;
  min-height: 260px;
  overflow: hidden;
  padding: 18px;
}
.learn-card div {
  background:
    linear-gradient(135deg, rgba(244, 201, 93, .22), transparent),
    repeating-linear-gradient(135deg, #17324c 0 10px, #0b1a2b 10px 20px);
  border-radius: 18px;
  height: 140px;
  margin-bottom: 16px;
}
.learn-card.large {
  grid-column: span 1;
}
.learn-card span {
  color: var(--gold);
  font-size: .78rem;
  text-transform: uppercase;
}
.home-footer {
  grid-template-columns: 1.3fr .7fr 1fr;
}
.home-footer a {
  display: block;
  margin: 9px 0;
}
.footer-logo {
  background: linear-gradient(135deg, rgba(244, 201, 93, .18), rgba(34, 197, 94, .08));
  border: 1px solid rgba(244, 201, 93, .32);
  border-radius: 20px;
  height: 72px;
  margin-bottom: 14px;
  object-fit: contain;
  padding: 8px;
  width: 72px;
}
.reveal {
  animation: reveal .72s ease both;
}
.delay-1 { animation-delay: .12s; }
.delay-2 { animation-delay: .24s; }
.delay-3 { animation-delay: .36s; }
.floating {
  animation: float 4.5s ease-in-out infinite;
}
.pulse-btn {
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(7deg); }
  50% { transform: translateY(-18px) rotate(4deg); }
}
@keyframes drift {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(24px, -18px, 0) scale(1.08); }
}
@keyframes bars {
  0%, 100% { transform: scaleY(.78); }
  50% { transform: scaleY(1); }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 rgba(244, 201, 93, 0); }
  50% { box-shadow: 0 0 34px rgba(244, 201, 93, .28); }
}
@keyframes robotPulse {
  0%, 100% { opacity: .15; transform: scale(.72); }
  50% { opacity: .7; transform: scale(1.12); }
}
@keyframes scan {
  0% { opacity: 0; transform: translateY(-90px); }
  20%, 80% { opacity: 1; }
  100% { opacity: 0; transform: translateY(220px); }
}
@keyframes chartDraw {
  from { stroke-dashoffset: 900; }
  to { stroke-dashoffset: 0; }
}
@keyframes chartDot {
  from { opacity: .3; transform: scale(.7); }
  to { opacity: 1; transform: scale(1.1); }
}

@media (max-width: 900px) {
  .hero, .home-hero, .intro-band, .start-band, .home-footer, .two, .three, .four {
    grid-template-columns: 1fr;
  }
  .ai-trading-section {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 70px 20px;
  }
  .ai-console {
    min-height: 540px;
  }
  .hero-visual {
    min-height: 360px;
  }
  .phone-card {
    left: 7%;
    width: min(320px, 78vw);
  }
  .hero-metrics-inner, .mini-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-metrics-inner div {
    border-bottom: 1px solid rgba(149, 168, 189, .14);
    min-height: 150px;
  }
  .market-row {
    grid-template-columns: 36px 70px 1fr;
  }
  .market-row strong, .market-row em {
    text-align: left;
  }
  .row, .admin-row {
    grid-template-columns: 1fr;
  }
  .admin-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .site-header, .dash-head, .admin-page-title {
    align-items: flex-start;
    display: grid;
    gap: 12px;
  }
  .guest-mode .site-header {
    align-items: center;
    display: flex;
    gap: 10px;
    padding: 10px 14px;
  }
  .guest-mode .site-header .brand {
    min-width: 0;
  }
  .guest-mode .site-header .brand img {
    border-radius: 16px;
    height: 64px;
    padding: 5px;
    width: 64px;
  }
  .guest-mode .site-header .brand strong {
    font-size: 1rem;
  }
  .guest-actions {
    gap: 7px;
  }
  .guest-actions a {
    font-size: .86rem;
    padding: 10px 13px;
  }
  .menu-toggle {
    min-height: 42px;
    padding: 6px;
    width: 42px;
  }
  .logged-in {
    padding-bottom: 92px;
  }
  .logged-in .site-header {
    align-items: center;
    display: flex;
    min-height: 68px;
    padding: 8px 14px;
  }
  .logged-in .brand {
    gap: 9px;
  }
  .logged-in .brand img {
    height: 50px;
    width: 50px;
  }
  .logged-in .brand strong {
    font-size: 1rem;
  }
  .logged-in .app-nav {
    align-items: stretch;
    background: rgba(4, 13, 20, .96);
    border-top: 1px solid rgba(200, 255, 0, .2);
    bottom: 0;
    box-shadow: 0 -12px 35px rgba(0, 0, 0, .38);
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    left: 0;
    max-width: none;
    overflow-x: auto;
    padding: 7px max(8px, env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    position: fixed;
    right: 0;
    scrollbar-width: none;
    z-index: 1000;
  }
  .logged-in .app-nav::-webkit-scrollbar {
    display: none;
  }
  .logged-in .app-nav a,
  .logged-in .app-nav button {
    align-items: center;
    border: 0;
    border-radius: 12px;
    display: flex;
    flex: 0 0 72px;
    flex-direction: column;
    font-size: .68rem;
    gap: 3px;
    justify-content: center;
    line-height: 1.15;
    min-height: 58px;
    padding: 6px 4px;
    text-align: center;
    white-space: nowrap;
  }
  .logged-in .app-nav i {
    display: block;
    font-size: 1.22rem;
    line-height: 1;
  }
  .logged-in .app-nav a.active {
    background: linear-gradient(145deg, rgba(200, 255, 0, .2), rgba(200, 255, 0, .06));
    box-shadow: inset 0 0 0 1px rgba(200, 255, 0, .24);
    color: var(--gold);
  }
  .logged-in .app-nav .logout-form {
    display: flex;
    flex: 0 0 72px;
    margin: 0;
  }
  .logged-in .app-nav .logout-form button {
    color: #ff8585;
    cursor: pointer;
    width: 100%;
  }
}

@media (max-width: 560px) {
  .hero-metrics {
    padding: 0;
  }
  .hero-metrics-inner {
    min-height: auto;
  }
  .hero-metrics-inner div {
    min-height: 125px;
    padding: 24px 8px;
  }
  .hero-metrics strong {
    font-size: 1.8rem;
  }
  .hero-metrics span {
    font-size: .66rem;
  }
  .ai-trading-section {
    gap: 34px;
    padding: 58px 16px;
  }
  .ai-copy h2 {
    font-size: 2.55rem;
  }
  .ai-console {
    border-radius: 22px;
    min-height: auto;
    padding: 12px;
  }
  .console-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .robot-core {
    min-height: 330px;
  }
  .analysis-panel {
    padding: 14px;
  }
  .trade-chart {
    height: 230px;
  }
  .signal-stats {
    grid-template-columns: 1fr;
  }
  .console-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
  .guest-mode .site-header .brand strong {
    display: none;
  }
  .guest-mode .site-header .brand img {
    height: 58px;
    width: 58px;
  }
  .guest-actions {
    margin-left: auto;
  }
  .guest-actions a {
    font-size: .76rem;
    padding: 9px 10px;
  }
  .guest-actions .guest-login {
    border-width: 1px;
  }
  .menu-toggle {
    width: 36px;
  }
  .menu-toggle span {
    height: 2px;
    width: 23px;
  }
  .admin-stat-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .guest-actions .guest-login {
    display: none;
  }
}

/* Admin/member feature additions */
.impersonation-bar {
  align-items: center;
  background: #f4c95d;
  color: #06101d;
  display: flex;
  gap: 16px;
  justify-content: center;
  padding: 10px 18px;
  position: sticky;
  top: 0;
  z-index: 1001;
}
.impersonation-bar form {
  margin: 0;
}
.filter-bar {
  align-items: end;
  background: rgba(8, 21, 38, .72);
  border: 1px solid #243b58;
  border-radius: 16px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin: 16px 0;
  padding: 12px;
}
.filter-bar input,
.filter-bar select {
  min-width: 0;
}
.filter-bar .btn {
  margin: 0;
  width: 100%;
}
.panel {
  min-width: 0;
}
.dashboard-stats .stat {
  min-height: 168px;
}
.release-layout {
  align-items: start;
}
.status-pill {
  border: 1px solid rgba(149, 168, 189, .3);
  border-radius: 999px;
  display: inline-flex;
  font-size: .76rem;
  font-weight: 900;
  justify-content: center;
  padding: 7px 10px;
  width: fit-content;
}
.status-pill.active,
.status-pill.approved {
  background: rgba(34, 197, 94, .14);
  border-color: rgba(34, 197, 94, .42);
  color: #79ee9e;
}
.status-pill.pending {
  background: rgba(244, 201, 93, .12);
  border-color: rgba(244, 201, 93, .35);
  color: var(--gold);
}
.status-pill.rejected,
.status-pill.blocked {
  background: rgba(239, 68, 68, .12);
  border-color: rgba(239, 68, 68, .35);
  color: #ff9292;
}
.level-progress-row {
  grid-template-columns: repeat(5, minmax(160px, 1fr));
  min-width: 850px;
}
.admin-release-row {
  grid-template-columns: minmax(180px, 1fr) 130px 110px 170px minmax(300px, 2fr);
  min-width: 1050px;
}
.member-admin-row {
  grid-template-columns: 1fr 1.35fr 1fr .55fr 2.4fr;
  min-width: 1050px;
}
.admin-row {
  min-width: 1000px;
}
.referral-panel {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(230px, 1fr) minmax(280px, 1.5fr);
  margin-top: 22px;
}
.referral-panel .share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  grid-column: 1 / -1;
}
.contact-form {
  display: grid;
  gap: 30px;
  grid-template-columns: .8fr 1.2fr;
  margin-top: 40px;
}
.contact-note {
  display: grid;
  gap: 10px;
}
.tree-panel {
  overflow: auto;
  padding: 42px 30px 60px;
}
.tree-root {
  display: flex;
  justify-content: center;
  padding-bottom: 52px;
  position: relative;
}
.tree-root::after {
  background: rgba(244, 201, 93, .48);
  bottom: 0;
  content: "";
  height: 44px;
  left: 50%;
  position: absolute;
  width: 2px;
}
.network-tree {
  display: flex;
  gap: 28px;
  justify-content: center;
  list-style: none;
  margin: 0;
  min-width: max-content;
  padding: 34px 20px 0;
  position: relative;
}
.tree-panel > .network-tree::before {
  background: rgba(244, 201, 93, .48);
  content: "";
  height: 2px;
  left: 50%;
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  width: calc(100% - 160px);
}
.network-tree .network-tree {
  gap: 18px;
  margin-top: 34px;
  padding: 32px 8px 0;
}
.network-tree .network-tree::before {
  background: rgba(55, 162, 255, .38);
  content: "";
  height: 2px;
  left: 50%;
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  width: calc(100% - 100px);
}
.network-tree li {
  list-style: none;
  position: relative;
}
.network-tree li::before {
  background: rgba(55, 162, 255, .38);
  content: "";
  height: 34px;
  left: 50%;
  position: absolute;
  top: -34px;
  width: 2px;
}
.tree-panel > .network-tree > li::before {
  background: rgba(244, 201, 93, .48);
}
.tree-member {
  background: linear-gradient(145deg, rgba(55, 162, 255, .18), rgba(34, 197, 94, .12));
  border: 1px solid rgba(55, 162, 255, .38);
  border-radius: 20px;
  box-shadow: 0 16px 35px rgba(0, 0, 0, .25);
  color: var(--text);
  cursor: help;
  display: inline-grid;
  gap: 5px;
  font-weight: 900;
  min-width: 150px;
  padding: 14px 16px;
  position: relative;
  text-align: center;
  transition: border-color .2s ease, transform .2s ease;
}
.tree-member:hover,
.tree-member:focus {
  border-color: var(--gold);
  outline: none;
  transform: translateY(-4px);
}
.tree-member em {
  color: var(--gold);
  font-size: .62rem;
  font-style: normal;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.tree-member b {
  font-size: 1rem;
}
.tree-member i {
  color: var(--muted);
  font-size: .7rem;
  font-style: normal;
  font-weight: 600;
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tree-member.status-pending {
  border-color: rgba(244, 201, 93, .45);
}
.tree-member.status-blocked {
  border-color: rgba(239, 68, 68, .52);
}
.tree-owner {
  background: linear-gradient(145deg, rgba(244, 201, 93, .22), rgba(34, 197, 94, .14));
  border-color: rgba(244, 201, 93, .7);
  min-width: 180px;
}
.tree-member small {
  background: #06101d;
  border: 1px solid #29405f;
  border-radius: 12px;
  bottom: calc(100% + 8px);
  box-shadow: 0 18px 45px rgba(0,0,0,.45);
  color: var(--muted);
  display: none;
  font-size: .76rem;
  font-weight: 500;
  left: 50%;
  min-width: 260px;
  padding: 12px;
  position: absolute;
  transform: translateX(-50%);
  z-index: 20;
}
.tree-member:hover small,
.tree-member:focus small {
  display: block;
}

@media (max-width: 900px) {
  .member-admin-row,
  .filter-bar,
  .referral-panel,
  .contact-form {
    grid-template-columns: 1fr;
  }
  .referral-panel .share-actions {
    grid-column: auto;
  }
  .impersonation-bar {
    align-items: stretch;
    flex-direction: column;
  }
  .five {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-stats .stat {
    min-height: 145px;
  }
  .report-row,
  .table-head {
    grid-template-columns: repeat(var(--cols), minmax(140px, 1fr));
  }
  .admin-row {
    grid-template-columns: 1fr 1fr .6fr .6fr 2fr;
  }
  .member-admin-row {
    grid-template-columns: 1fr 1.35fr 1fr .55fr 2.4fr;
  }
  .tree-panel {
    padding-left: 18px;
    padding-right: 18px;
  }
}

@media (max-width: 560px) {
  .five {
    grid-template-columns: 1fr;
  }
  .dashboard-stats .stat {
    min-height: auto;
  }
}
