/* ============================================================
   CRYPTOYIELD — styles.css
   Light, institutional crypto investment platform
   ============================================================ */

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* Core palette — light, professional */
  --bg-base: #f5f6f8;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f0f2f6;
  --bg-input: #ffffff;
  --bg-sidebar: #ffffff;

  /* Dark accent surface, used sparingly (hero, footer) */
  --bg-ink: #0e1c33;
  --bg-ink-raised: #142a4a;

  /* Brand accents */
  --accent-primary: #1e3a5f;
  --accent-primary-hover: #16304f;
  --accent-secondary: #3d6ea5;
  --accent-gold: #a8823f;
  --accent-green: #167a4d;
  --accent-red: #b3372b;

  /* Text */
  --text-primary: #14171f;
  --text-secondary: #5b6270;
  --text-muted: #8b90a0;
  --text-on-ink: #f2f4f8;
  --text-on-ink-secondary: #a9b4c9;

  /* Borders */
  --border-subtle: rgba(20, 23, 31, 0.07);
  --border-card: rgba(20, 23, 31, 0.11);
  --border-input: rgba(20, 23, 31, 0.16);
  --border-focus: rgba(30, 58, 95, 0.45);
  --border-on-ink: rgba(255, 255, 255, 0.12);

  /* Shadows — soft, not neon */
  --shadow-sm: 0 1px 2px rgba(20, 23, 31, 0.06);
  --shadow-md: 0 6px 20px rgba(20, 23, 31, 0.08);
  --shadow-lg: 0 20px 48px rgba(20, 23, 31, 0.1);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 220ms ease;
  --transition-slow: 380ms ease;

  /* Layout */
  --max-width: 1200px;
  --sidebar-width: 260px;
  --topbar-height: 64px;

  /* Type */
  --font-display: "Newsreader", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}
ul,
ol {
  list-style: none;
}
img,
svg {
  display: block;
  max-width: 100%;
}
button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}
input,
select,
textarea {
  font-family: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
  background: rgba(30, 58, 95, 0.25);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

/* ============================================================
   PAGE VISIBILITY SYSTEM
   ============================================================ */
.page {
  display: none;
}
.page.active {
  display: block;
}
.hidden {
  display: none !important;
}

/* ============================================================
   TYPOGRAPHY UTILITIES
   ============================================================ */
.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent-secondary);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 580px;
  line-height: 1.7;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header--left {
  text-align: left;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition-base);
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--accent-primary-hover);
  border-color: var(--accent-primary-hover);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-input);
}

.btn-outline:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.btn-ghost {
  background: rgba(20, 23, 31, 0.04);
  color: white;
  border-color: var(--border-subtle);
}

.btn-ghost:hover {
  background: rgba(20, 23, 31, 0.08);
  color: var(--text-primary);
}

.btn-lg {
  padding: 0.85rem 2rem;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}
.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.82rem;
  color: black;
}
.btn-xs {
  padding: 0.3rem 0.7rem;
  font-size: 0.75rem;
}
.btn-full {
  width: 100%;
}

/*SITE HEADER / NAVIGATION */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: var(--bg-ink);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.logo-icon {
  font-size: 1.4rem;
  color: var(--accent-primary);
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: white;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.nav-link {
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: white;
  transition: all var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: rgba(20, 23, 31, 0.05);
}

.nav-links-header {
  display: none;
}

.nav-mobile-auth {
  display: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0.5rem;
  margin-left: auto;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all var(--transition-base);
}

/* ============================================================
   HERO SECTION — the one deliberately dark surface on the page
   ============================================================ */
.hero-section {
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 130px 2rem 80px;
  max-width: 100%;
  margin: 0 auto;
  gap: 4rem;
  position: relative;
  background: var(--bg-ink);
}

.hero-section > * {
  max-width: var(--max-width);
}

.hero-section {
  justify-content: center;
}

.hero-content {
  flex: 1;
  max-width: 560px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-on-ink);
  font-size: 0.8rem;
  color: var(--text-on-ink-secondary);
  font-weight: 500;
  margin-bottom: 1.75rem;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4caf82;
  animation: pulse 2.4s ease infinite;
}

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

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text-on-ink);
  margin-bottom: 1.5rem;
}

.headline-accent {
  color: #a9c3e8;
}

.hero-subtext {
  font-size: 1.05rem;
  color: var(--text-on-ink-secondary);
  line-height: 1.75;
  margin-bottom: 2.25rem;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-section .btn-outline {
  color: var(--text-on-ink);
  border-color: var(--border-on-ink);
}
.hero-section .btn-outline:hover {
  color: #a9c3e8;
  border-color: #a9c3e8;
}

.hero-trust {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--text-on-ink-secondary);
}

/* ============================================================
   HERO VISUAL — YIELD CARD
   ============================================================ */
.hero-visual {
  flex-shrink: 0;
}

.yield-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  width: 340px;
  max-width: 100%;
  box-shadow: var(--shadow-lg);
}

.yield-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.yc-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.yc-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.yc-chart {
  margin-bottom: 1.25rem;
  height: 60px;
}
.yc-chart svg {
  width: 100%;
  height: 100%;
}

.yc-assets {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.yc-asset {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.asset-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  flex-shrink: 0;
}

.asset-icon.btc {
  background: rgba(247, 147, 26, 0.12);
  color: #b5691a;
}
.asset-icon.eth {
  background: rgba(98, 126, 234, 0.12);
  color: #4a5fc7;
}
.asset-icon.usdt {
  background: rgba(38, 161, 123, 0.12);
  color: #1f8567;
}

.asset-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.asset-name {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-primary);
}
.asset-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}
.asset-val {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

/* ============================================================
   STATISTICS SECTION (principles, not fabricated counters)
   ============================================================ */
.stats-section {
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: 3rem 2rem;
}

.stats-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat-item {
  text-align: center;
  min-width: 0;
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: 0.35rem;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ============================================================
   HOW IT WORKS SECTION
   ============================================================ */
.how-section {
  padding: 6rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.steps-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  position: relative;
}

.step-connector {
  position: absolute;
  top: 28px;
  left: calc(12.5% + 16px);
  right: calc(12.5% + 16px);
  height: 1px;
  background: var(--border-card);
  z-index: 0;
}

.step-connector--5 {
  left: calc(10% + 16px);
  right: calc(10% + 16px);
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
  min-width: 0;
}

.step-icon-wrap {
  margin-bottom: 1.25rem;
}

.step-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-primary);
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.step-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================================
   SERVICES SECTION
   ============================================================ */
.services-section {
  padding: 4rem 2rem 6rem;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.services-section .section-header {
  max-width: var(--max-width);
  margin: 0 auto 3.5rem;
}

.services-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color var(--transition-base);
}

.service-card:hover {
  border-color: var(--accent-secondary);
}

.service-card--featured {
  background: #f7f9fc;
  border-color: rgba(30, 58, 95, 0.25);
}

.service-icon {
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  color: var(--accent-primary);
}

.service-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.service-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.service-features li {
  font-size: 0.83rem;
  color: var(--text-secondary);
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-features li::before {
  content: "✓";
  color: var(--accent-green);
  font-weight: 700;
  font-size: 0.75rem;
}

/* ============================================================
   WHY CHOOSE SECTION
   ============================================================ */
.why-section {
  padding: 6rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.why-content .section-desc {
  margin-bottom: 2rem;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.why-item {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.why-item h4 {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.why-item p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================================
   INVESTMENT PLANS PREVIEW
   ============================================================ */
.plans-preview-section {
  padding: 4rem 2rem 6rem;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
}

.plans-preview-section .section-header {
  max-width: var(--max-width);
  margin: 0 auto 3.5rem;
}

.plans-preview-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  position: relative;
  transition: border-color var(--transition-base);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.plan-card:hover {
  border-color: var(--accent-secondary);
}

.plan-card--featured {
  background: #f7f9fc;
  border-color: rgba(30, 58, 95, 0.3);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.9rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.plan-tier {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.plan-apy {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--accent-primary);
  line-height: 1;
}

.plan-apy span {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
}

.plan-range {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.75rem;
}

.plan-perks {
  flex: 1;
}

.plan-perks li {
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding: 0.35rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.plan-perks li::before {
  content: "✓";
  color: var(--accent-green);
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ============================================================
   FAQ SECTIONS
   ============================================================ */
.faq-preview-section {
  padding: 4rem 2rem 6rem;
}

.faq-preview-section .section-header,
.faq-preview-list,
.faq-preview-cta {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.faq-preview-list {
  margin-bottom: 2rem;
}

.faq-item {
  border-bottom: 1px solid var(--border-subtle);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: color var(--transition-fast);
  gap: 0.75rem;
}

.faq-question:hover {
  color: var(--accent-primary);
}

.faq-chevron {
  font-size: 1.2rem;
  transition: transform var(--transition-base);
  color: var(--text-muted);
  flex-shrink: 0;
}

.faq-question[aria-expanded="true"] .faq-chevron {
  transform: rotate(90deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.faq-question[aria-expanded="true"] + .faq-answer {
  max-height: 260px;
}

.faq-answer p {
  padding: 0 0 1.25rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-preview-cta {
  text-align: center;
  padding-top: 1rem;
}

/* ============================================================
   FINAL CTA SECTION
   ============================================================ */
.cta-section {
  position: relative;
  padding: 6rem 2rem;
  text-align: center;
  background: var(--bg-ink);
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
}

.cta-headline {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-on-ink);
  margin-bottom: 1rem;
}

.cta-sub {
  font-size: 1rem;
  color: var(--text-on-ink-secondary);
  margin-bottom: 2rem;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-section .btn-ghost {
  color: var(--text-on-ink);
  border-color: var(--border-on-ink);
  background: transparent;
}
.cta-section .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.inner-page-header {
  padding: 7rem 2rem 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 4rem;
}

.inner-page-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.inner-page-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 620px;
  line-height: 1.7;
}

.about-body {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem 6rem;
}

.about-mission {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 5rem;
  align-items: start;
}

.about-mission-text h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.about-mission-text p {
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.about-mission-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.about-stat {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
}

.about-stat-val {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: 0.3rem;
}

.about-stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.team-section h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
}

.team-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #eef1f6;
  border: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin: 0 auto 1rem;
}

.team-card h4 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.team-card span {
  display: block;
  font-size: 0.78rem;
  color: var(--accent-secondary);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.team-card p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================================
   PLANS FULL PAGE
   ============================================================ */
.full-plans-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.full-plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color var(--transition-base);
}

.full-plan-card:hover {
  border-color: var(--accent-secondary);
}

.full-plan-card--featured {
  background: #f7f9fc;
  border-color: rgba(30, 58, 95, 0.3);
}

.fplan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.9rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.fplan-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.fplan-tier {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.fplan-apy {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--accent-primary);
}

.fplan-apy span {
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.fplan-range {
  font-size: 0.82rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.75rem;
}

.fplan-features {
  flex: 1;
}

.fplan-features li {
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.fplan-features li::before {
  content: "✓";
  color: var(--accent-green);
  font-weight: 700;
  font-size: 0.72rem;
}

.plans-note {
  max-width: var(--max-width);
  margin: 0 auto 4rem;
  padding: 1rem 1.5rem;
  background: #fbf6ec;
  border: 1px solid rgba(168, 130, 63, 0.3);
  border-radius: var(--radius-md);
}

.plans-note p {
  font-size: 0.82rem;
  color: #6b5730;
  text-align: center;
}

/* ============================================================
   FAQ FULL PAGE
   ============================================================ */
.full-faq-list {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem 6rem;
}

.faq-category {
  margin-bottom: 3rem;
}

.faq-cat-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: 1rem;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-body {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem 6rem;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-channel {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.cc-icon {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.contact-channel h4 {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.contact-channel p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
  word-break: break-word;
}

.contact-channel span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ============================================================
   FORMS
   ============================================================ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-row--between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-optional {
  color: var(--text-muted);
  font-weight: 400;
}

.form-input {
  background: var(--bg-input);
  border: 1px solid var(--border-input);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-size: 16px; /* prevents iOS Safari auto-zoom on focus */
  color: var(--text-primary);
  transition: border-color var(--transition-fast);
  width: 100%;
  outline: none;
}

.form-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}
.form-input::placeholder {
  color: var(--text-muted);
}

select.form-input option {
  background: var(--bg-card);
  color: var(--text-primary);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.form-note {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.form-error {
  color: var(--accent-red);
  font-size: 0.82rem;
  min-height: 1.2em;
}

.form-success {
  color: var(--accent-green);
  font-size: 0.82rem;
}

.form-link {
  color: var(--accent-primary);
  font-size: 0.82rem;
  transition: color var(--transition-fast);
}

.form-link:hover {
  color: var(--accent-secondary);
}

.form-section-title {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.input-with-toggle {
  position: relative;
}
.input-with-toggle .form-input {
  padding-right: 5rem;
}

.input-toggle-btn {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.input-toggle-btn:hover {
  color: var(--accent-primary);
}

.input-with-max {
  position: relative;
}
.input-with-max .form-input {
  padding-right: 4rem;
}

.input-max-btn {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.83rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  accent-color: var(--accent-primary);
  flex-shrink: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
}

/* ============================================================
   FILE UPLOAD
   ============================================================ */
.file-upload-area {
  position: relative;
  border: 2px dashed var(--border-input);
  border-radius: var(--radius-md);
  padding: 2rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
}

.file-upload-area:hover {
  border-color: var(--accent-primary);
  background: rgba(30, 58, 95, 0.03);
}

.file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.file-upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  pointer-events: none;
}

.file-upload-placeholder span:first-child {
  font-size: 1.5rem;
}
.file-note {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ============================================================
   AUTH PAGES
   ============================================================ */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 3rem;
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-lg);
}

.auth-card--wide {
  max-width: 600px;
}

.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}

.auth-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 0.4rem;
}

.auth-sub {
  font-size: 0.84rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 2rem;
}

.auth-sub a {
  color: var(--accent-primary);
}

.auth-form {
  display: flex;
  flex-direction: column;
}

/* ============================================================
   SITE FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-ink);
  border-top: 1px solid var(--border-on-ink);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.footer-logo .logo-icon,
.footer-logo .logo-text {
  color: var(--text-on-ink);
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-on-ink-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-on-ink);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-on-ink-secondary);
  transition: all var(--transition-fast);
}

.social-link:hover {
  border-color: #a9c3e8;
  color: #a9c3e8;
}

.footer-links-group h5 {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-on-ink);
  margin-bottom: 1.25rem;
}

.footer-links-group ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links-group li a {
  font-size: 0.84rem;
  color: var(--text-on-ink-secondary);
  transition: color var(--transition-fast);
}

.footer-links-group li a:hover {
  color: var(--text-on-ink);
}

.footer-bottom {
  border-top: 1px solid var(--border-on-ink);
  padding: 1.5rem 2rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: var(--text-on-ink-secondary);
  max-width: 700px;
  margin: 0 auto;
}

/* ============================================================
   DASHBOARD WRAPPER
   ============================================================ */
.dashboard-wrapper {
  display: flex;
  min-height: 100vh;
  background: var(--bg-base);
}

/* ============================================================
   DASHBOARD SIDEBAR
   ============================================================ */

.dash-sidebar {
  width: 30%;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  left: 0;
  bottom: 0;
  height: 100vh;
  z-index: 800;
  overflow-y: auto;
  transition: transform var(--transition-base);
}

.dash-sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(14, 28, 51, 0.4);
  z-index: 799;
}

.dash-sidebar-backdrop.visible {
  display: block;
}

.dash-sidebar--admin {
  border-right-color: rgba(168, 130, 63, 0.2);
}

.dash-logo {
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--bg-sidebar);
}

.admin-text {
  color: var(--accent-gold);
}

.dash-nav {
  flex: 1;
  padding: 1rem 0;
}

.dash-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.dash-nav-section {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 1.25rem 1.5rem 0.4rem;
}

.dash-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1.5rem;
  font-size: 0.84rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  border-left: 2px solid transparent;
}

.dash-nav-link:hover {
  color: var(--text-primary);
  background: rgba(20, 23, 31, 0.04);
}

.dash-nav-link.active {
  color: var(--accent-primary);
  background: rgba(30, 58, 95, 0.06);
  border-left-color: var(--accent-primary);
}

.dnl-icon {
  width: 18px;
  text-align: center;
  font-size: 0.9rem;
}

.dash-sidebar-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

/* ============================================================
   DASHBOARD MAIN
   ============================================================ */
.dash-main {
  width: 70%;
  min-height: 100vh;
  min-width: 0;
}

/* ============================================================
   DASHBOARD TOPBAR
   ============================================================ */
.dash-topbar {
  height: var(--topbar-height);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 700;
}

.dash-topbar--admin {
  border-bottom-color: rgba(168, 130, 63, 0.2);
}

.dash-hamburger {
  font-size: 1.2rem;
  color: var(--text-muted);
  display: none;
  padding: 0.4rem;
  transition: color var(--transition-fast);
}

.dash-hamburger:hover {
  color: var(--text-primary);
}

.dash-topbar-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-topbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.dash-user-chip {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.4rem 0.75rem;
  background: var(--bg-base);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.dash-user-chip:hover {
  border-color: var(--accent-secondary);
}

.duc-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.duc-avatar--admin {
  background: var(--accent-gold);
}

.duc-name {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* ============================================================
   DASHBOARD PANELS
   ============================================================ */
.dash-panels {
  flex: 1;
  padding: 2rem;
  min-width: 0;
}

.dash-panel {
  display: none;
}
.dash-panel.active {
  display: block;
  padding: 20px;
}

.dash-panel-header {
  text-align: center;
  margin-bottom: 2rem;
}

.dash-panel-header h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2rem;
}

/* ============================================================
   BALANCE CARDS
   ============================================================ */
.balance-cards {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.balance-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.balance-card--main {
  background: #f7f9fc;
  border-color: rgba(30, 58, 95, 0.2);
}

.bc-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.bc-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  overflow-wrap: break-word;
}

.balance-card--main .bc-value {
  font-size: 2rem;
}

.bc-change {
  font-size: 0.78rem;
}
.bc-change.positive {
  color: var(--accent-green);
}
.bc-change.negative {
  color: var(--accent-red);
}

/* ============================================================
   QUICK ACTIONS
   ============================================================ */
.quick-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.qa-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-base);
  flex: 1;
}

.qa-btn:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: rgba(30, 58, 95, 0.04);
}

.qa-icon {
  font-size: 1.25rem;
}

/* ============================================================
   DASHBOARD TABLES
   ============================================================ */
.dash-table-section {
  margin-bottom: 2rem;
}

.dash-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.dash-table-header h3 {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-primary);
}

.dash-table-link {
  font-size: 0.8rem;
  color: var(--accent-primary);
  transition: color var(--transition-fast);
}

.dash-table-link:hover {
  color: var(--accent-secondary);
}

.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  -webkit-overflow-scrolling: touch;
  background: var(--bg-card);
}

.dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  min-width: 600px;
}

.dash-table thead tr {
  background: var(--bg-base);
  border-bottom: 1px solid var(--border-subtle);
}

.dash-table th {
  padding: 0.85rem 1rem;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.dash-table td {
  padding: 0.9rem 1rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.dash-table tbody tr:last-child td {
  border-bottom: none;
}

.dash-table tbody tr:hover {
  background: var(--bg-base);
}

.table-empty-row td {
  text-align: center;
  color: var(--text-muted);
  padding: 2.5rem 1rem;
}

.table-empty-row td a {
  color: var(--accent-primary);
}

/* ============================================================
   STATUS BADGES
   ============================================================ */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
}

.status-active,
.status-confirmed,
.status-approved,
.status-completed {
  background: rgba(22, 122, 77, 0.1);
  color: var(--accent-green);
  border: 1px solid rgba(22, 122, 77, 0.2);
}

.status-pending {
  background: rgba(168, 130, 63, 0.12);
  color: var(--accent-gold);
  border: 1px solid rgba(168, 130, 63, 0.22);
}

.status-rejected,
.status-failed,
.status-suspended {
  background: rgba(179, 55, 43, 0.1);
  color: var(--accent-red);
  border: 1px solid rgba(179, 55, 43, 0.2);
}

.status-processing {
  background: rgba(30, 58, 95, 0.1);
  color: var(--accent-primary);
  border: 1px solid rgba(30, 58, 95, 0.2);
}

/* ============================================================
   KYC PANEL
   ============================================================ */
.kyc-status-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-full);
  background: rgba(168, 130, 63, 0.12);
  color: var(--accent-gold);
  border: 1px solid rgba(168, 130, 63, 0.22);
}

.dash-kyc-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(168, 130, 63, 0.12);
  color: var(--accent-gold);
  border: 1px solid rgba(168, 130, 63, 0.22);
}

.kyc-info-banner {
  background: #f7f9fc;
  border: 1px solid rgba(30, 58, 95, 0.15);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
}

.kyc-info-banner p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.kyc-form {
  max-width: 640px;
}

/* ============================================================
   DEPOSIT PANEL
   ============================================================ */
.deposit-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 900px;
}

.deposit-instructions h3,
.deposit-confirm-form h3 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.asset-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.asset-btn {
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  border: 1px solid var(--border-input);
  background: var(--bg-input);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.asset-btn:hover,
.asset-btn.active {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: rgba(30, 58, 95, 0.05);
}

.wallet-address-display {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.wallet-address-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.5rem 0 1rem;
  flex-wrap: wrap;
}

.wallet-addr {
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 0.75rem;
  color: var(--text-secondary);
  background: var(--bg-base);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-btn {
  padding: 0.4rem 0.9rem;
  background: rgba(30, 58, 95, 0.08);
  border: 1px solid rgba(30, 58, 95, 0.2);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.copy-btn:hover {
  background: rgba(30, 58, 95, 0.14);
}

.wallet-qr {
  display: flex;
  justify-content: center;
  margin: 0.75rem 0;
}
.wallet-qr img,
.wallet-qr canvas {
  max-width: 100%;
  height: auto;
}

.deposit-warnings {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.deposit-warnings p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ============================================================
   WITHDRAW PANEL
   ============================================================ */
.withdraw-balance-display {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.75rem;
}

.wbd-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.wbd-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-primary);
}

.withdraw-form {
  max-width: 540px;
}

/* ============================================================
   INVESTMENT PLANS PANEL
   ============================================================ */
.invest-plans-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.invest-plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  transition: border-color var(--transition-base);
}

.invest-plan-card:hover {
  border-color: var(--accent-secondary);
}

.invest-plan-card--featured {
  background: #f7f9fc;
  border-color: rgba(30, 58, 95, 0.3);
}

.ipc-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-primary);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.2rem 0.8rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.ipc-tier {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.ipc-apy {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--accent-primary);
  line-height: 1;
}

.ipc-apy span {
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.ipc-range {
  font-size: 0.8rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.75rem;
}

.ipc-features {
  flex: 1;
}

.ipc-features li {
  font-size: 0.8rem;
  color: var(--text-secondary);
  padding: 0.3rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ipc-features li::before {
  content: "✓";
  color: var(--accent-green);
  font-size: 0.7rem;
  font-weight: 700;
}

/* ============================================================
   REFERRAL PANEL
   ============================================================ */
.referral-stats-row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.ref-stat {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  min-width: 0;
}

.ref-stat-val {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: 0.25rem;
}

.ref-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.referral-link-section {
  margin-bottom: 2rem;
}

.referral-link-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.ref-link-text {
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 0.78rem;
  color: var(--text-secondary);
  background: var(--bg-base);
  border: 1px solid var(--border-input);
  padding: 0.65rem 1rem;
  border-radius: var(--radius-md);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.referral-info {
  background: #f7f9fc;
  border: 1px solid rgba(30, 58, 95, 0.15);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 2rem;
}

.referral-info h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.referral-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================================
   PROFILE PANEL
   ============================================================ */
.profile-sections {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 640px;
}

.profile-section-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.profile-section-card h3 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

/* ============================================================
   ADMIN PANELS
   ============================================================ */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.admin-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 10px;
  min-width: 0;
}

.asc-icon {
  font-size: 1.4rem;
}

.asc-val {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
}

.asc-label {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.panel-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.form-input--sm {
  padding: 0.45rem 0.75rem;
  font-size: 0.8rem;
  max-width: 200px;
}

.panel-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* ============================================================
   MODALS (overlay + investment modal)
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(14, 28, 51, 0.55);
  backdrop-filter: blur(4px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 1.5rem;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  width: 100%;
  max-width: 450px;
  max-height: 90vh;
  overflow-y: auto;

  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;

  padding: 1.8rem;

  box-shadow: var(--shadow-lg);

  animation: modalFade 0.2s ease;
}

.modal-header {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.modal-header h2 {
  font-family: var(--font-display);
  margin: 0;
  font-size: 1.3rem;
}

.modal-body {
  padding: 0;
}

.modal-body p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

@keyframes modalFade {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.create-plan-modal {
  width: 100%;
  max-width: 450px;
  max-height: 90vh;
  overflow-y: auto;

  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;

  padding: 1.8rem;

  box-shadow: var(--shadow-lg);

  animation: modalFade 0.2s ease;
}

.create-plan-modal #plan-features {
  resize: vertical;
}

/* investment modal */
#investment-modal {
  display: none;
  align-items: center;
  justify-content: center;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(14, 28, 51, 0.55);
  padding: 1.25rem;
}
#investment-modal.active {
  display: flex;
}
#investment-modal .modal-content {
  width: 100%;
  max-width: 450px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-card);
  border-radius: 12px;
  padding: 24px;
  position: relative;
  box-shadow: var(--shadow-lg);
}
#investment-modal .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
#investment-modal .modal-header h3 {
  font-family: var(--font-display);
  margin: 0;
}
#close-investment-modal {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
}
#investment-modal .form-group {
  margin-bottom: 20px;
}
#investment-modal .form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
#investment-modal .form-group input {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--border-input);
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 16px;
  box-sizing: border-box;
}
#investment-error {
  color: var(--accent-red);
  margin-bottom: 16px;
}
#investment-modal .modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.positive {
  color: var(--accent-green);
}
.negative {
  color: var(--accent-red);
}
.text-accent {
  color: var(--accent-primary);
}
.text-muted {
  color: var(--text-muted);
}

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 1100px) {
  .admin-stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .balance-cards {
    grid-template-columns: 1fr 1fr;
  }
  .plans-preview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .full-plans-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .invest-plans-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 960px) {
  .hero-section {
    flex-direction: column;
    padding-top: 100px;
    gap: 3rem;
    text-align: center;
  }
  .hero-content {
    max-width: 100%;
  }
  .hero-subtext {
    max-width: 100%;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-trust {
    justify-content: center;
  }
  .yield-card {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps-track {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
  .step-connector {
    display: none;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .why-section {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .about-mission {
    grid-template-columns: 1fr;
  }
  .team-grid {
    grid-template-columns: 1fr 1fr;
  }
  .contact-body {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-ink);
    padding: 0 1.5rem 2rem;
    gap: 0.35rem;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform var(--transition-base);
    z-index: 950;
  }
  .nav-links.open {
    transform: translateX(0);
  }
  .nav-links-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-on-ink);
  }
  .nav-links-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
  }
  .nav-links-logo .logo-icon,
  .nav-links-logo .logo-text {
    color: var(--text-on-ink);
  }
  .nav-links-close {
    font-size: 1.7rem;
    line-height: 1;
    color: var(--text-on-ink-secondary);
    padding: 0.25rem 0.5rem;
    transition: color var(--transition-fast);
  }
  .nav-links-close:hover {
    color: var(--text-on-ink);
  }
  .nav-link {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.9rem 1rem;
    font-size: 1.05rem;
    color: var(--text-on-ink-secondary);
    border-radius: var(--radius-md);
    border-left: 2px solid transparent;
  }
  .nav-link:hover,
  .nav-link.active {
    color: var(--text-on-ink);
    background: rgba(255, 255, 255, 0.06);
    border-left-color: #a9c3e8;
  }
  .nav-mobile-auth {
    display: block;
    margin-top: 0.5rem;
  }
  .nav-mobile-auth .nav-link {
    color: var(--text-on-ink);
    background: rgba(255, 255, 255, 0.05);
  }
  .nav-actions {
    display: none;
  }
  .hamburger {
    display: flex;
    position: relative;
    z-index: 960;
  }
  .nav-mobile-auth {
    display: block;
  }

  /* Sidebar becomes a fixed off-canvas drawer instead of a 30%-width
     flex column, so it no longer eats layout space once hidden. */
  .dash-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    max-width: 82vw;
    height: 100vh;
    transform: translateX(-100%);
  }
  .dash-sidebar.open {
    transform: translateX(0);
  }
  /* Main content now fills the full width — previously stuck at a
     hardcoded 70% on every screen size, including phones. */
  .dash-main {
    width: 100%;
  }
  .dash-hamburger {
    display: block;
  }

  .dash-panels {
    padding: 1.25rem;
  }
  .balance-cards {
    grid-template-columns: 1fr;
  }
  .quick-actions {
    flex-wrap: wrap;
  }
  .qa-btn {
    flex: 1 1 calc(50% - 0.5rem);
  }

  .deposit-body {
    grid-template-columns: 1fr;
  }
  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .invest-plans-grid {
    grid-template-columns: 1fr;
  }
  .plans-preview-grid {
    grid-template-columns: 1fr;
  }
  .full-plans-grid {
    grid-template-columns: 1fr;
  }

  .auth-card {
    padding: 2rem 1.5rem;
  }
  .form-row {
    grid-template-columns: 1fr;
  }

  .nav-container {
    padding: 0 1.25rem;
  }
  .hero-section,
  .how-section,
  .services-section,
  .why-section,
  .plans-preview-section,
  .faq-preview-section,
  .cta-section,
  .inner-page-header,
  .about-body,
  .full-plans-grid,
  .plans-note,
  .full-faq-list,
  .contact-body,
  .footer-inner {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  .dash-topbar {
    padding: 0 1.25rem;
  }
  .duc-name {
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .steps-track {
    grid-template-columns: 1fr 1fr;
  }
  .why-grid {
    grid-template-columns: 1fr;
  }
  .team-grid {
    grid-template-columns: 1fr;
  }
  .about-mission-stats {
    grid-template-columns: 1fr 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .referral-stats-row {
    flex-direction: column;
  }
  .admin-stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .cta-actions {
    flex-direction: column;
    align-items: center;
  }

  .yield-card {
    width: 100%;
    max-width: 100%;
    padding: 1.25rem;
  }
  .hero-headline {
    font-size: clamp(1.9rem, 8vw, 2.4rem);
  }
  .btn-lg {
    padding: 0.8rem 1.5rem;
    font-size: 0.92rem;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .cta-actions .btn {
    width: 100%;
  }

  .service-card,
  .why-item,
  .plan-card,
  .invest-plan-card,
  .full-plan-card,
  .team-card,
  .contact-channel,
  .profile-section-card {
    padding: 1.25rem;
  }

  .auth-wrapper {
    padding: 5.5rem 1rem 2.5rem;
  }
  .auth-card {
    padding: 1.5rem 1.25rem;
  }

  .dash-panels {
    padding: 1rem;
  }
  .dash-panel.active {
    padding: 12px;
  }
  .quick-actions {
    gap: 0.6rem;
  }
  .qa-btn {
    padding: 0.75rem 0.5rem;
    font-size: 0.72rem;
  }
  .balance-card {
    padding: 1.1rem;
  }
  .balance-card--main .bc-value {
    font-size: 1.6rem;
  }

  .wallet-address-box {
    flex-wrap: wrap;
  }
  .wallet-addr {
    width: 100%;
  }
  .referral-link-box {
    flex-wrap: wrap;
  }
  .ref-link-text {
    width: 100%;
  }

  .modal-overlay,
  #investment-modal {
    padding: 0.75rem;
  }
  .modal,
  #investment-modal .modal-content,
  .create-plan-modal {
    padding: 1.25rem;
  }

  .dash-sidebar {
    width: 84vw;
  }
}

.dash-nav-link.nav-locked {
  opacity: 0.4;
  pointer-events: none;
  cursor: not-allowed;
}
.dash-nav-link.nav-locked::after {
  content: "🔒";
  margin-left: auto;
  font-size: 0.75rem;
}
/* ============================================================
   ANIMATIONS
   ============================================================ */
/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

.form-section-title--spaced {
  margin-top: 2rem;
}
.cell-docs-label {
  font-size: 0.78rem;
}

.ipg-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}
.ipg-val {
  font-weight: 600;
  color: var(--accent-green);
}

.dash-sidebar .logo-text {
  color: black;
}

/* ============================================================
   SIMPLE DEPOSIT FLOW
   ============================================================ */
.deposit-simple {
  max-width: 480px;
  margin: 0 auto;
}

.deposit-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.deposit-big-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.deposit-summary {
  background: #f7f9fc;
  border: 1px solid rgba(30, 58, 95, 0.15);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}

.deposit-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.deposit-summary-row strong {
  color: var(--text-primary);
}

.deposit-send-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  line-height: 1.35;
}

.deposit-status {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.deposit-warn {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

@media (max-width: 480px) {
  .deposit-card {
    padding: 1.25rem;
  }
}

/* ============================================================
   COPY TRADING
   ============================================================ */
.dash-panel-header.ct-header h2 {
  margin-bottom: 0.5rem;
}
.ct-subtitle {
  font-size: 0.88rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 0.75rem;
  line-height: 1.65;
}

.ct-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.ct-stats .bc-value {
  font-size: 1.35rem;
}
.ct-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.ct-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
  min-width: 0;
}
.ct-card > h3,
.ct-card-head h3 {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-primary);
}
.ct-card > h3 {
  margin-bottom: 1rem;
}
.ct-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.ct-chart-change {
  font-size: 0.82rem;
  font-weight: 600;
}

.ct-range {
  display: inline-flex;
  border: 1px solid var(--border-input);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.ct-range button {
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-input);
}
.ct-range button + button {
  border-left: 1px solid var(--border-input);
}
.ct-range button.active {
  background: var(--accent-primary);
  color: #fff;
}

/* Charts (inline SVG) */
.ct-chart {
  position: relative;
}
.ct-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}
.ct-svg text {
  font-family: var(--font-body);
  font-size: 10px;
  fill: var(--text-muted);
}
.ct-svg .ct-grid-line {
  stroke: var(--border-subtle);
  stroke-width: 1;
}
.ct-svg .ct-line {
  fill: none;
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.ct-svg .ct-area {
  stroke: none;
  opacity: 0.08;
}
.ct-svg.is-up .ct-line {
  stroke: var(--accent-green);
}
.ct-svg.is-up .ct-area {
  fill: var(--accent-green);
}
.ct-svg.is-down .ct-line {
  stroke: var(--accent-red);
}
.ct-svg.is-down .ct-area {
  fill: var(--accent-red);
}
.ct-svg .ct-hover-line {
  stroke: var(--text-muted);
  stroke-dasharray: 3 3;
}
.ct-svg .ct-hover-dot {
  fill: var(--bg-surface);
  stroke-width: 2;
}
.ct-svg.is-up .ct-hover-dot {
  stroke: var(--accent-green);
}
.ct-svg.is-down .ct-hover-dot {
  stroke: var(--accent-red);
}
.ct-tooltip {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  background: var(--bg-ink);
  color: var(--text-on-ink);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  white-space: nowrap;
}
.ct-tooltip span {
  color: var(--text-on-ink-secondary);
  font-size: 0.68rem;
}
.ct-spark {
  width: 120px;
  height: 36px;
  flex-shrink: 0;
}
.ct-spark path {
  fill: none;
  stroke-width: 1.75;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.ct-spark.is-up path {
  stroke: var(--accent-green);
}
.ct-spark.is-down path {
  stroke: var(--accent-red);
}

/* Tabs */
.ct-tabs {
  display: flex;
  gap: 0.25rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.5rem;
  overflow-x: auto;
}
.ct-tab {
  padding: 0.75rem 1.1rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: color var(--transition-fast);
}
.ct-tab:hover {
  color: var(--text-primary);
}
.ct-tab.active {
  color: var(--accent-primary);
  border-bottom-color: var(--accent-primary);
}
.ct-tab-count {
  display: inline-block;
  min-width: 1.35rem;
  padding: 0 0.4rem;
  margin-left: 0.3rem;
  border-radius: var(--radius-full);
  background: rgba(30, 58, 95, 0.08);
  color: var(--accent-primary);
  font-size: 0.7rem;
  text-align: center;
}

/* Toolbar */
.ct-toolbar {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* Trader cards */
.ct-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.25rem;
}
.ct-trader {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
  transition: border-color var(--transition-base);
}
.ct-trader:hover {
  border-color: var(--accent-secondary);
}
.ct-trader-top {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
}
.ct-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #eef1f6;
  border: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-primary);
  flex-shrink: 0;
}
.ct-avatar--sm {
  width: 30px;
  height: 30px;
  font-size: 0.7rem;
}
.ct-avatar--lg {
  width: 64px;
  height: 64px;
  font-size: 1.15rem;
}
.ct-trader-id {
  flex: 1;
  min-width: 0;
}
.ct-trader-id h4 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ct-trader-id span {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.ct-risk {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.ct-risk--low {
  background: rgba(22, 122, 77, 0.1);
  color: var(--accent-green);
  border: 1px solid rgba(22, 122, 77, 0.2);
}
.ct-risk--medium {
  background: rgba(168, 130, 63, 0.12);
  color: var(--accent-gold);
  border: 1px solid rgba(168, 130, 63, 0.22);
}
.ct-risk--high {
  background: rgba(179, 55, 43, 0.1);
  color: var(--accent-red);
  border: 1px solid rgba(179, 55, 43, 0.2);
}
.ct-roi-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}
.ct-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}
.ct-roi {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.15;
}
.ct-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.ct-metric strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
}
.ct-pairs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.ct-pair {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}
.ct-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: auto;
}
.ct-actions .btn {
  flex: 1;
  padding: 0.6rem 0.8rem;
  font-size: 0.82rem;
}

/* Trader detail */
.ct-back {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: 1.25rem;
}
.ct-back:hover {
  color: var(--accent-secondary);
}
.ct-profile-head {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.ct-profile-main {
  flex: 1;
  min-width: 240px;
}
.ct-profile-main h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.ct-profile-main p {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-top: 0.6rem;
}
.ct-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.ct-tag {
  font-size: 0.72rem;
  color: var(--text-muted);
}
.ct-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.ct-metric-box {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  min-width: 0;
}
.ct-metric-box strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
}
.ct-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.ct-bar-row {
  margin-bottom: 0.9rem;
}
.ct-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 0.3rem;
}
.ct-bar {
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--bg-base);
  overflow: hidden;
}
.ct-bar span {
  display: block;
  height: 100%;
  background: var(--accent-secondary);
  border-radius: var(--radius-full);
}
.ct-term-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.ct-term-row:last-child {
  border-bottom: none;
}
.ct-term-row strong {
  color: var(--text-primary);
  text-align: right;
}
.ct-risk-note {
  font-size: 0.78rem;
  color: #6b5730;
  background: #fbf6ec;
  border: 1px solid rgba(168, 130, 63, 0.3);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  text-align: center;
}

/* Tables */
.ct-cell-trader {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-primary);
  font-weight: 500;
  white-space: nowrap;
}
.ct-row-actions {
  display: flex;
  gap: 0.5rem;
  white-space: nowrap;
}
.btn.ct-btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.78rem;
}
.btn.ct-btn-danger {
  color: var(--accent-red);
  border-color: rgba(179, 55, 43, 0.35);
}
.btn.ct-btn-danger:hover {
  color: var(--accent-red);
  border-color: var(--accent-red);
  background: rgba(179, 55, 43, 0.05);
}

/* Modals */
.ct-modal .modal-close {
  font-size: 1.6rem;
  line-height: 1;
  color: var(--text-muted);
}
.ct-modal .modal-close:hover {
  color: var(--text-primary);
}
.ct-modal--wide {
  max-width: 680px;
}
.ct-modal-trader {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  margin-bottom: 1.25rem;
  background: #f7f9fc;
  border: 1px solid rgba(30, 58, 95, 0.15);
  border-radius: var(--radius-md);
}
.ct-modal-trader h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}
.ct-modal-trader span {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.ct-quick {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.4rem;
}
.ct-quick button {
  flex: 1;
  padding: 0.35rem 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-primary);
  border: 1px solid var(--border-input);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
}
.ct-quick button:hover {
  border-color: var(--accent-primary);
  background: rgba(30, 58, 95, 0.05);
}
.ct-modal .deposit-summary {
  margin-top: 0.25rem;
}
.ct-modal .checkbox-label {
  align-items: flex-start;
  line-height: 1.5;
}
.ct-modal .checkbox-label input {
  margin-top: 0.2rem;
}
.ct-copy-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.ct-copy-stats .ct-metric-box {
  padding: 0.8rem 1rem;
}
.ct-copy-stats .ct-metric-box strong {
  font-size: 1.05rem;
}
.ct-modal h4.ct-subhead {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 1.25rem 0 0.6rem;
}

/* Misc */
.ct-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
  padding: 2.5rem 1rem;
}
.ct-empty a {
  color: var(--accent-primary);
}
.ct-toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translate(-50%, 20px);
  background: var(--bg-ink);
  color: var(--text-on-ink);
  font-size: 0.85rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-base);
  z-index: 1100;
  max-width: 90vw;
}
.ct-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 900px) {
  .ct-two-col {
    grid-template-columns: 1fr;
  }
  .ct-toolbar {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .ct-card {
    padding: 1.1rem;
  }
  .ct-copy-stats {
    grid-template-columns: 1fr 1fr;
  }
  .ct-actions {
    flex-direction: column;
  }
}

.ct-trader-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
  transition: border-color var(--transition-base);
}
.ct-trader-card:hover {
  border-color: var(--accent-secondary);
}
.ct-trader-card-head h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ct-trader-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.ct-trader-stats span {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
}
.ct-trader-stats strong {
  font-size: 0.95rem;
  color: var(--text-primary);
}
.ct-trader-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: auto;
}
.ct-trader-actions .btn {
  flex: 1;
  padding: 0.6rem 0.8rem;
  font-size: 0.82rem;
}
.ct-toast.active {
  opacity: 1;
  transform: translate(-50%, 0);
} /* JS adds "active", CSS expected "show" */

.ct-tv { height: 420px; }
.ct-tv-select { width: auto; max-width: 220px; padding: 0.4rem 0.75rem; font-size: 0.85rem; }
.ct-load-more-wrap { text-align: center; margin-top: 1.5rem; }
.dnl-icon svg { width: 18px; height: 18px; }
.service-icon svg { width: 28px; height: 28px; }

.dnl-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dnl-icon svg {
  width: 18px;
  height: 18px;
}
