:root {
  --bg: #070d18;
  --bg-white: #ffffff;
  --surface: #0f1a2e;
  --border: rgba(212, 175, 55, 0.22);
  --border-light: rgba(255, 255, 255, 0.08);
  --text: #1a1d26;
  --text-secondary: #4a5568;
  --muted: #718096;
  --text-on-dark: #e8edf5;
  --text-dim: #94a3b8;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --accent-soft: rgba(59, 130, 246, 0.15);
  --gold: #d4af37;
  --gold-light: #f5df8c;
  --gold-dark: #9a7b1a;
  --cta: #ff8a00;
  --cta-hover: #e67a00;
  --profit: #4ade80;
  --profit-dark: #16a34a;
  --loss: #f87171;
  --wait: #fbbf24;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.35);
  --radius: 12px;
  --radius-lg: 16px;
  --header-h: 64px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC", "Microsoft JhengHei", sans-serif;
  background: var(--bg);
  color: var(--text-on-dark);
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.text-gold {
  background: linear-gradient(135deg, #f5df8c 0%, #d4af37 45%, #f5df8c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-profit { color: var(--profit) !important; }
.text-dim { color: var(--text-dim); }

.page-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 全站背景：黑金 + K 線 + 上升趨勢 */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(59, 130, 246, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 30%, rgba(212, 175, 55, 0.12) 0%, transparent 50%),
    linear-gradient(180deg, #050a14 0%, #0a1224 40%, #070d18 100%);
}
.page-bg__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.7;
}
.page-bg__orb--1 {
  width: min(560px, 75vw);
  height: min(560px, 75vw);
  top: -15%;
  right: -12%;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.2) 0%, transparent 70%);
}
.page-bg__orb--2 {
  width: min(480px, 65vw);
  height: min(480px, 65vw);
  bottom: 0;
  left: -15%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.22) 0%, transparent 70%);
}
.page-bg__orb--3 {
  width: min(360px, 50vw);
  height: min(360px, 50vw);
  top: 35%;
  left: 42%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.25) 0%, transparent 70%);
}
.page-bg__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(212, 175, 55, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, #000 0%, #000 50%, transparent 100%);
}
.page-bg__market {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 55%;
  opacity: 0.85;
}
.page-bg__market svg {
  width: 100%;
  height: 100%;
}
.page-bg__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(245, 223, 140, 0.04) 48%,
    transparent 56%
  );
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .page-bg__orb--1 { animation: orbFloat 20s ease-in-out infinite; }
  .page-bg__orb--2 { animation: orbFloat 24s ease-in-out infinite reverse; }
  .page-bg__orb--3 { animation: orbFloat 28s ease-in-out infinite; }
  .page-bg__trend {
    stroke-dasharray: 1200;
    stroke-dashoffset: 0;
  }
  .hero-chart--live { animation: chartPulse 6s ease-in-out infinite; }
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(8px, -10px); }
}
@keyframes chartPulse {
  0%, 100% { opacity: 0.88; }
  50% { opacity: 1; }
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

.container { width: min(1120px, 92%); margin: 0 auto; }
.container-wide { width: min(1200px, 94%); margin: 0 auto; }
.main { flex: 1; padding: 0 0 4rem; }
.main-inner {
  padding: 2rem 0 3rem;
  position: relative;
  color: var(--text-on-dark);
}
.main-inner .muted {
  color: var(--text-dim);
}
.main-inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 100%);
  height: 220px;
  background: radial-gradient(ellipse at center top, rgba(212, 175, 55, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.main-inner .page-title {
  color: #f8fafc;
}
.main-inner .page-subtitle {
  color: #b8c5d6;
  line-height: 1.7;
}
.main-inner form label {
  color: #cbd5e1;
}

/* Header — 深色玻璃 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 13, 24, 0.82);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.35);
}
.site-header .logo-wordmark-qt {
  color: #f8fafc;
}
.site-header .logo-wordmark-en {
  color: #64748b;
}
.site-header .nav a {
  color: #cbd5e1;
}
.site-header .nav a:hover {
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.1);
}
.site-header .nav-user {
  color: #94a3b8;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1.5rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none !important;
  flex-shrink: 0;
}
.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.logo-icon svg {
  display: block;
  width: 44px;
  height: 44px;
}
.logo-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.logo-wordmark-main {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.1em;
  transition: opacity 0.15s;
}
.logo-wordmark-qt {
  color: #f1f5f9;
}
.logo-wordmark-cf {
  background: linear-gradient(135deg, #fff7d6 0%, #f5df8c 40%, #d4af37 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.logo-wordmark-single {
  color: #f1f5f9;
}
.logo:hover .logo-wordmark-cf {
  background: linear-gradient(135deg, #fffef0 0%, #ffeaa0 50%, #e8c547 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.logo-wordmark-en {
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: #64748b;
  margin-top: 3px;
}
.logo--footer .logo-icon svg {
  width: 38px;
  height: 38px;
}
.logo--footer .logo-wordmark-main {
  font-size: 1rem;
}
@media (max-width: 520px) {
  .logo-wordmark-en { display: none; }
  .logo-wordmark-main { font-size: 1rem; }
}
.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}
.nav a {
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  font-size: 0.9375rem;
  text-decoration: none !important;
}
.nav-user {
  color: var(--muted);
  font-size: 0.875rem;
  padding: 0 0.5rem;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Footer */
.site-footer {
  background: linear-gradient(180deg, rgba(10, 18, 36, 0.9) 0%, rgba(5, 10, 20, 0.98) 100%);
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  backdrop-filter: blur(12px);
  padding: 2.5rem 0 2rem;
  margin-top: auto;
  color: var(--text-dim);
}
.site-footer .logo-wordmark-qt { color: #f1f5f9; }
.site-footer .footer-links h4 { color: #e2e8f0; }
.site-footer .footer-links a { color: #94a3b8; }
.site-footer .footer-links a:hover { color: var(--gold-light); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand .logo { margin-bottom: 0.75rem; }
.footer-brand__tagline {
  margin: 0;
  max-width: 22rem;
  font-size: 0.875rem;
  line-height: 1.75;
  color: #94a3b8;
}
.footer-links h4 {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #e2e8f0;
}
.footer-links a {
  display: block;
  color: var(--muted);
  font-size: 0.875rem;
  padding: 0.25rem 0;
  text-decoration: none;
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  padding-top: 1.75rem;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
  text-align: center;
}
.footer-legal {
  width: 100%;
  max-width: 40rem;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-lg);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-legal__title {
  margin: 0 0 0.55rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 223, 140, 0.85);
}
.footer-legal__text {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.75;
  color: #94a3b8;
}
.footer-legal__text strong {
  color: #cbd5e1;
  font-weight: 600;
}
.footer-copy {
  margin: 0;
  font-size: 0.75rem;
  color: #64748b;
  letter-spacing: 0.02em;
}

/* Hero — 財富感主視覺 */
.hero-block--wealth {
  position: relative;
  overflow: hidden;
  padding: 4rem 0 4.5rem;
  text-align: center;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(212, 175, 55, 0.15) 0%, transparent 55%),
    linear-gradient(180deg, rgba(10, 18, 36, 0.95) 0%, transparent 100%);
}
.hero-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
.hero-glow--gold {
  width: 320px;
  height: 320px;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(212, 175, 55, 0.25);
}
.hero-glow--green {
  width: 400px;
  height: 280px;
  bottom: 0;
  right: 5%;
  background: rgba(34, 197, 94, 0.15);
}
.hero-chart {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  opacity: 0.95;
}
.hero-content {
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.35rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold-light);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.08);
}
.hero-block h1 {
  font-size: clamp(1.875rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 1rem;
  color: #f8fafc;
}
.hero-block .hero-lead {
  color: #cbd5e1;
  font-size: 1.0625rem;
  max-width: 640px;
  margin: 0 auto 1.5rem;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 720px;
  margin: 0 auto 0.75rem;
}
@media (max-width: 600px) {
  .hero-stats { grid-template-columns: 1fr; }
}
.hero-stat {
  padding: 1rem 0.75rem;
  border-radius: var(--radius);
  background: rgba(15, 26, 46, 0.75);
  border: 1px solid rgba(212, 175, 55, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}
.hero-stat__value {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: #f8fafc;
}
.hero-stat__meta {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: rgba(203, 213, 225, 0.75);
  line-height: 1.3;
}
.hero-stat__value--muted {
  color: #64748b !important;
}
.hero-stat__label {
  font-size: 0.75rem;
  color: #94a3b8;
}
.hero-disclaimer {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0 0 1.5rem;
}
.hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-tags {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.hero-tag {
  background: rgba(15, 26, 46, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  color: #cbd5e1;
}
.hero-tag--up {
  border-color: rgba(74, 222, 128, 0.35);
  color: var(--profit);
}

.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}
.page-subtitle {
  color: var(--muted);
  margin: 0 0 1.5rem;
  font-size: 0.9375rem;
}

/* Feature sections */
.section {
  padding: 3rem 0;
  position: relative;
}
.section--wealth {
  position: relative;
}
.section-alt--wealth {
  background: rgba(10, 18, 36, 0.65);
  border-top: 1px solid rgba(212, 175, 55, 0.12);
  border-bottom: 1px solid rgba(212, 175, 55, 0.12);
}
.section-head--light h2 {
  color: #f1f5f9;
  font-size: 1.625rem;
}
.section-head--light p {
  color: #94a3b8;
}
.section-title-light {
  color: #f8fafc;
  font-size: 1.375rem;
  margin-top: 0;
}
.wealth-list {
  color: #94a3b8;
  font-size: 0.9375rem;
  padding-left: 1.2rem;
}
.wealth-list li { margin-bottom: 0.35rem; }

.feature-card--wealth {
  background: linear-gradient(145deg, rgba(18, 30, 52, 0.92) 0%, rgba(10, 18, 36, 0.88) 100%);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  height: 100%;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.feature-card--wealth:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 223, 140, 0.5);
  box-shadow: 0 16px 48px rgba(212, 175, 55, 0.15);
}
.feature-icon--gold {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.35) 0%, rgba(154, 123, 26, 0.2) 100%);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  font-weight: 800;
  border: 1px solid rgba(245, 223, 140, 0.35);
}
.feature-card--wealth h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  color: #f1f5f9;
}
.feature-card--wealth p {
  margin: 0 0 1rem;
  color: #94a3b8;
  font-size: 0.9375rem;
}
.feature-link--gold {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gold-light) !important;
}

.profit-card {
  margin: 0;
  padding: 1.35rem 1.5rem 1.25rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, rgba(14, 24, 42, 0.98) 0%, rgba(8, 14, 28, 0.98) 100%);
  border: 1px solid rgba(74, 222, 128, 0.32);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 32px rgba(34, 197, 94, 0.08);
}
.profit-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.profit-card__symbol {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-align: left;
}
.profit-card__code {
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--gold-light);
}
.profit-card__name {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #f1f5f9;
}
.profit-card__badge {
  flex-shrink: 0;
  background: rgba(74, 222, 128, 0.2) !important;
  color: #4ade80 !important;
  border: 1px solid rgba(74, 222, 128, 0.45);
}
.profit-card__hero {
  text-align: center;
  margin-bottom: 1.15rem;
}
.profit-card__gain {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  margin: 0;
  line-height: 1.05;
  text-shadow: 0 0 28px rgba(74, 222, 128, 0.4);
  font-variant-numeric: tabular-nums;
}
.profit-card__sub {
  margin: 0.45rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #94a3b8 !important;
}
.profit-card__prices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0;
}
.profit-card__price {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.75rem 0.5rem;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.07);
  text-align: center;
}
.profit-card__price--buy { border-color: rgba(245, 223, 140, 0.28); }
.profit-card__price--sl { border-color: rgba(248, 113, 113, 0.28); }
.profit-card__price--tp { border-color: rgba(74, 222, 128, 0.32); }
.profit-card__price dt {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}
.profit-card__price dd {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #f1f5f9;
}
.profit-card__price--sl dd { color: #fca5a5; }
.profit-card__price--tp dd { color: #86efac; }
.profit-card__note {
  margin: 1rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.75rem;
  line-height: 1.5;
  color: #64748b;
  text-align: center;
}
@media (max-width: 480px) {
  .profit-card__prices {
    grid-template-columns: 1fr;
  }
  .profit-card__price {
    flex-direction: row;
    justify-content: space-between;
    padding: 0.65rem 0.85rem;
  }
}
.badge-glow {
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.5);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2rem;
}
.section-head h2 {
  font-size: 1.5rem;
  margin: 0 0 0.75rem;
  font-weight: 700;
}
.section-head p {
  margin: 0;
  font-size: 0.9375rem;
}

.cta-band--wealth {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1508 0%, #2d2410 30%, #0f1a2e 100%);
  color: #fff;
  text-align: center;
  padding: 3rem 1.5rem;
  border-radius: var(--radius-lg);
  margin: 2rem 0;
  border: 1px solid rgba(212, 175, 55, 0.45);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(245, 223, 140, 0.2);
}
.cta-band--wealth::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 50%, rgba(212, 175, 55, 0.25) 0%, transparent 45%),
    radial-gradient(circle at 85% 30%, rgba(34, 197, 94, 0.12) 0%, transparent 40%);
  pointer-events: none;
}
.cta-band__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  color: var(--gold-light);
  text-transform: uppercase;
}
.cta-band h2,
.cta-band p,
.cta-band .btn {
  position: relative;
  z-index: 1;
}
.cta-band h2 {
  margin: 0 0 0.5rem;
  font-size: 1.375rem;
}
.cta-band p {
  margin: 0 0 1.25rem;
  opacity: 0.92;
  font-size: 0.9375rem;
}
.btn-gold {
  background: linear-gradient(135deg, #f5df8c 0%, #d4af37 50%, #c9a227 100%) !important;
  color: #1a1508 !important;
  box-shadow: 0 8px 28px rgba(212, 175, 55, 0.45) !important;
  font-weight: 700 !important;
}
.btn-gold:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}
.btn-lg {
  padding: 0.85rem 1.75rem !important;
  font-size: 1rem !important;
}
.btn-outline-light {
  background: transparent !important;
  border: 1px solid rgba(245, 223, 140, 0.5) !important;
  color: var(--gold-light) !important;
  box-shadow: none !important;
}
.btn-outline-light:hover {
  background: rgba(212, 175, 55, 0.12) !important;
  color: #fff !important;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
  color: var(--text);
}
.card h2, .card h3 { margin-top: 0; color: var(--text); }

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  text-align: center;
  padding: 2rem 1.5rem;
  overflow: visible;
}
.plan-card__foot {
  margin-top: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}
.plan-card__foot .badge {
  align-self: center;
}
.plan-card__pct {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  padding: 0.35rem 0.65rem;
  font-size: 0.9375rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fff;
  background: linear-gradient(145deg, #dc2626 0%, #ef4444 45%, #f87171 100%);
  border-radius: 8px;
  box-shadow:
    0 4px 14px rgba(220, 38, 38, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  pointer-events: none;
}
.plan-card__pct::before {
  content: "";
  position: absolute;
  top: 100%;
  right: 0.65rem;
  border: 4px solid transparent;
  border-top-color: #b91c1c;
  border-right-color: #b91c1c;
}
.plan-card__type {
  margin: 0 0 0.35rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}
.plan-card--partner .plan-card__type {
  color: rgba(245, 223, 140, 0.85);
}
.plan-card .price {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #d4af37, #f5df8c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0.5rem 0;
}
.plan-card .price--inquiry {
  font-size: 1.35rem;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  color: var(--gold-light);
}
.plan-price-block {
  margin: 0.5rem 0;
}
.plan-price__was {
  margin: 0 0 0.2rem;
  font-size: 0.9375rem;
  color: #64748b;
}
.plan-price__was s {
  text-decoration: line-through;
  text-decoration-color: rgba(248, 113, 113, 0.55);
}
.plan-price__save {
  margin: 0.45rem 0 0;
  display: inline-block;
  padding: 0.25rem 0.65rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.35);
  border-radius: 999px;
}
.plan-card .plan-meta {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}
.plan-card__desc-wrap {
  text-align: left;
  margin: 0 0 0.65rem;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.plan-card__desc-wrap--teaser {
  margin-bottom: 0.35rem;
}
.plan-card__desc {
  font-size: 0.8125rem;
  line-height: 1.65;
  color: #475569;
  margin: 0;
}
.plan-card__desc-link {
  display: block;
  width: 100%;
  margin: 0 0 1rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #7c5e10;
  background: rgba(212, 175, 55, 0.1);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.plan-card__desc-link:hover {
  background: rgba(212, 175, 55, 0.16);
  border-color: rgba(212, 175, 55, 0.55);
  color: #5c4508;
}
.plan-card__desc-link::after {
  content: " →";
  font-weight: 600;
}

.plan-desc-modal {
  z-index: 190;
}
.plan-desc-modal__backdrop {
  background: rgba(2, 6, 14, 0.72);
  backdrop-filter: blur(10px);
}
.plan-desc-modal__panel {
  position: relative;
  width: min(680px, calc(100% - 1.5rem));
  max-width: none;
  max-height: min(88vh, 720px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 0;
  border: 1px solid rgba(212, 175, 55, 0.42);
  background:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(34, 197, 94, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(212, 175, 55, 0.1), transparent 50%),
    linear-gradient(165deg, #152238 0%, #0c1424 42%, #060b14 100%);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 0 48px rgba(212, 175, 55, 0.12);
}
.plan-desc-modal__bar {
  flex-shrink: 0;
  height: 3px;
  background: linear-gradient(90deg, #15803d, #4ade80 35%, #d4af37 70%, #f5df8c);
}
.plan-desc-modal__glow {
  pointer-events: none;
  position: absolute;
  top: -40%;
  right: -20%;
  width: 55%;
  height: 55%;
  background: radial-gradient(circle, rgba(74, 222, 128, 0.12), transparent 70%);
  opacity: 0.9;
}
.plan-desc-modal__chart {
  pointer-events: none;
  position: absolute;
  top: 2.75rem;
  right: 3rem;
  width: min(140px, 28vw);
  height: auto;
  opacity: 0.55;
}
.plan-desc-modal__close {
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.plan-desc-modal__header {
  flex-shrink: 0;
  padding: 1.35rem 1.5rem 0.85rem;
  padding-right: 3.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.plan-desc-modal__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.65rem;
  padding: 0.28rem 0.65rem 0.28rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #86efac;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.35);
  border-radius: 999px;
}
.plan-desc-modal__badge-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55);
  animation: planDescPulse 2s ease-out infinite;
}
@keyframes planDescPulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}
.plan-desc-modal__title {
  margin: 0;
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: #f8fafc;
  text-shadow: 0 1px 24px rgba(212, 175, 55, 0.15);
}
.plan-desc-modal__subtitle {
  margin: 0.45rem 0 0;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.45;
  color: #f5df8c;
}
.plan-desc-modal__scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 1rem 1.5rem 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 175, 55, 0.45) rgba(255, 255, 255, 0.06);
}
.plan-desc-modal__scroll::-webkit-scrollbar {
  width: 8px;
}
.plan-desc-modal__scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
}
.plan-desc-modal__scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.55), rgba(74, 222, 128, 0.35));
  border-radius: 8px;
}
.plan-desc-modal__body {
  margin: 0;
  padding: 0 0.15rem 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.8;
  color: #cbd5e1;
  word-break: break-word;
}
.plan-desc-modal__body p {
  margin: 0 0 0.75rem;
}
.plan-desc-modal__kicker {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #94a3b8 !important;
}
.plan-desc-modal__lead {
  font-size: 0.875rem;
  font-weight: 600;
  color: #e2e8f0 !important;
}
.plan-desc-modal__sep {
  margin: 0 0.35rem;
  color: rgba(212, 175, 55, 0.75);
  font-weight: 400;
}
.plan-desc-modal__para {
  color: #b6c2d1;
}
.plan-desc-modal__section-head {
  margin-top: 0.35rem !important;
  padding: 0.45rem 0 0.45rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #f5df8c !important;
  border-left: 3px solid #d4af37;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.12), transparent 85%);
  border-radius: 0 8px 8px 0;
}
.plan-desc-modal__item {
  position: relative;
  padding-left: 1.05rem;
  color: #d1dbe8 !important;
}
.plan-desc-modal__item--cn::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4ade80, #22c55e);
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.45);
}
.plan-desc-modal__item--num {
  padding-left: 0;
  padding: 0.55rem 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
}
.plan-desc-modal__foot {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0;
  padding: 0.75rem 1.25rem 1rem;
  font-size: 0.6875rem;
  line-height: 1.55;
  color: #64748b;
  background: rgba(0, 0, 0, 0.22);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.plan-desc-modal__foot-icon {
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: rgba(212, 175, 55, 0.65);
  font-size: 0.75rem;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  border: none;
  padding: 0.625rem 1.35rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: background 0.15s, transform 0.15s;
  box-shadow: 0 2px 8px rgba(0, 102, 255, 0.25);
}
.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}
.btn-sm {
  padding: 0.4rem 1rem;
  font-size: 0.8125rem;
  box-shadow: none;
}
.btn-outline {
  background: var(--bg-white);
  border: 1px solid var(--border);
  color: var(--text-secondary) !important;
  box-shadow: var(--shadow-sm);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent) !important;
  background: var(--accent-soft);
}
.btn-nav-cta {
  background: var(--cta);
  box-shadow: 0 2px 8px rgba(255, 138, 0, 0.35);
}
.btn-nav-cta:hover {
  background: var(--cta-hover);
}

form label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
}
form input, form select, form textarea {
  width: 100%;
  max-width: 480px;
  padding: 0.625rem 0.85rem;
  margin-bottom: 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-white);
  color: var(--text);
  font-size: 0.9375rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
form input:focus, form select:focus, form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.12);
}
form textarea { min-height: 120px; max-width: 100%; }

.table-wrap {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 61, 143, 0.07);
  backdrop-filter: blur(8px);
}
table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
th, td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--border-light); text-align: left; }
th {
  background: #f8fafc;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.8125rem;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: #fafbfd; }

.badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-profit { background: #e6f7ed; color: var(--profit); }
.badge-long { background: rgba(74, 222, 128, 0.18); color: #86efac; border: 1px solid rgba(74, 222, 128, 0.35); }
.badge-short { background: rgba(248, 113, 113, 0.15); color: #fca5a5; border: 1px solid rgba(248, 113, 113, 0.35); }
.badge-direction-pending { background: rgba(148, 163, 184, 0.15); color: #cbd5e1; border: 1px solid rgba(148, 163, 184, 0.35); font-weight: 700; }
.badge-lg { font-size: 1.05rem; padding: 0.35rem 0.85rem; }
.rec-view-direction {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
  padding: 1rem 1.15rem;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.2);
}
.rec-view-direction__label {
  font-size: 0.875rem;
  color: var(--muted, #94a3b8);
}
.badge-loss { background: #fff1f0; color: var(--loss); }
.badge-wait { background: #fffbe6; color: #d48806; }

/* 歷史推薦頁 — 深色可讀版型 */
.history-page__header {
  margin-bottom: 1.5rem;
}
.history-page__header .page-title {
  margin-bottom: 0.5rem;
}
.history-page__lead {
  max-width: 40rem;
  margin: 0;
  line-height: 1.65;
}
.history-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}
.history-win-banner {
  flex: 1 1 280px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  padding: 1.15rem 1.35rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(22, 32, 56, 0.95) 0%, rgba(12, 20, 38, 0.92) 100%);
  border: 1px solid rgba(245, 223, 140, 0.32);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.32);
}
.history-win-banner__aside {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 5.5rem;
}
.history-win-banner__eyebrow {
  font-size: 0.75rem;
  color: #94a3b8;
  letter-spacing: 0.04em;
}
.history-win-banner__label {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #f1f5f9;
}
.history-win-banner__main {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}
.history-win-banner__value {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
  color: var(--gold-light);
  font-variant-numeric: tabular-nums;
}
.history-win-banner__value small {
  font-size: 1.125rem;
  font-weight: 700;
  margin-left: 0.1rem;
}
.history-win-banner__value--empty {
  color: #64748b;
  font-size: 1.75rem;
}
.history-win-banner__meta {
  font-size: 0.8125rem;
  color: #94a3b8;
  line-height: 1.45;
}
.history-filter--toolbar {
  flex: 0 1 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin: 0;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-lg);
  background: rgba(15, 26, 46, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.history-filter--toolbar label {
  margin-bottom: 0.45rem;
  font-size: 0.8125rem;
  color: #cbd5e1;
}
.history-filter--toolbar select {
  width: 100%;
  max-width: none;
  margin-bottom: 0;
  background: rgba(10, 18, 36, 0.95);
  border: 1px solid rgba(212, 175, 55, 0.28);
  color: #f1f5f9;
}
.history-filter select:focus {
  border-color: rgba(245, 223, 140, 0.55);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}
.history-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.history-stats--single {
  grid-template-columns: minmax(180px, 280px);
}
.history-stat {
  text-align: center;
  padding: 1.25rem 1rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(18, 30, 52, 0.92) 0%, rgba(10, 18, 36, 0.9) 100%);
  border: 1px solid rgba(212, 175, 55, 0.22);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
}
.history-stat--profit { border-color: rgba(74, 222, 128, 0.35); }
.history-stat--loss { border-color: rgba(248, 113, 113, 0.35); }
.history-stat--wait { border-color: rgba(251, 191, 36, 0.3); }
.history-stat--rate { border-color: rgba(245, 223, 140, 0.35); }
.history-stat__label {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #cbd5e1;
  letter-spacing: 0.02em;
}
.history-stat__value {
  margin: 0.4rem 0 0;
  font-size: 1.875rem;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.1;
}
.history-stat__value--loss { color: var(--loss); }
.history-stat__meta {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  color: #94a3b8;
  line-height: 1.4;
}
.history-panel {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(212, 175, 55, 0.28);
  background: linear-gradient(180deg, #141e34 0%, #0b1120 100%);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.history-pl-sheet {
  margin-bottom: 1.25rem;
  border-color: rgba(74, 222, 128, 0.22);
}
.history-pl-sheet__lead {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  color: #94a3b8;
  font-weight: 400;
}
.history-pl-sheet__params {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.85rem 1rem;
  align-items: end;
  padding: 1rem 1.25rem;
  background: rgba(0, 0, 0, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.history-pl-sheet__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0;
}
.history-pl-sheet__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #94a3b8;
}
.history-pl-sheet__input-wrap {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0a101c;
}
.history-pl-sheet__prefix,
.history-pl-sheet__suffix {
  font-size: 0.8125rem;
  color: #64748b;
  white-space: nowrap;
}
.history-pl-sheet__input {
  width: 100%;
  min-width: 0;
  border: none;
  background: transparent;
  color: #f1f5f9;
  font-size: 0.9375rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  outline: none;
}
.history-pl-sheet__fixed {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 1px dashed rgba(212, 175, 55, 0.35);
  background: rgba(212, 175, 55, 0.06);
}
.history-pl-sheet__fixed-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #f5df8c;
}
.history-pl-sheet__fixed-value {
  font-size: 0.8125rem;
  color: #cbd5e1;
  line-height: 1.4;
}
.history-pl-sheet__total {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(212, 175, 55, 0.08));
  border: 1px solid rgba(74, 222, 128, 0.25);
}
.history-pl-sheet__total-label {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #86efac;
  letter-spacing: 0.06em;
}
.history-pl-sheet__total-value {
  font-size: 1.125rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #f1f5f9;
}
.history-pl-sheet__net {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.history-pl-sheet__note {
  margin: 0;
  padding: 0.65rem 1.25rem 0.85rem;
  font-size: 0.6875rem;
  color: #64748b;
  line-height: 1.5;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.history-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #0a101c;
}
.history-panel__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #f1f5f9;
}
.history-panel__hint {
  margin: 0;
  font-size: 0.8125rem;
  color: #64748b;
}
.history-table-wrap {
  background: #0e1526;
  border: none;
  border-radius: 0;
  overflow-x: auto;
  box-shadow: none;
  -webkit-overflow-scrolling: touch;
}
.history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.history-table th,
.history-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.history-table th {
  background: #161f33;
  color: #e2e8f0;
  font-weight: 600;
  font-size: 0.8125rem;
  white-space: nowrap;
}
.history-table td {
  color: #dbe4f0;
  background: #0e1526;
}
.history-table tbody tr:hover td {
  background: #121b2e;
}
.history-table tbody tr:last-child td {
  border-bottom: none;
}
.history-table td strong {
  color: #f8fafc;
  font-weight: 700;
}
.history-table__name {
  display: block;
  margin-top: 0.15rem;
  color: #94a3b8;
  font-size: 0.8125rem;
}
.history-table__pct {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.history-table__date {
  white-space: nowrap;
  font-size: 0.8125rem;
  color: #cbd5e1;
}
.history-table__plan {
  font-size: 0.8125rem;
  color: #94a3b8;
  max-width: 8rem;
}
.history-table__symbol strong {
  font-size: 0.9375rem;
}
.history-table__col-action {
  white-space: nowrap;
}
.history-table__col-action .btn {
  min-width: 4.5rem;
  padding: 0.35rem 0.75rem !important;
  font-size: 0.75rem !important;
}
.history-table__btn-viewed {
  min-width: 6.5rem !important;
  border-color: rgba(148, 163, 184, 0.45) !important;
  color: #cbd5e1 !important;
}
.history-table__btn-viewed:hover {
  border-color: rgba(245, 223, 140, 0.5) !important;
  color: var(--gold-light) !important;
}
.history-table__masked {
  color: #64748b;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.history-table__row--guest .history-table__symbol strong {
  color: var(--gold-light);
}
.history-table__symbol-pending {
  font-size: 0.875rem;
  min-width: 1.75rem;
  justify-content: center;
}
.history-guest-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 1.25rem;
  padding: 1.15rem 1.35rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.12) 0%, rgba(15, 23, 42, 0.6) 100%);
  border: 1px solid rgba(212, 175, 55, 0.28);
}
.history-guest-cta__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 600;
}
.history-guest-cta__title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #f8fafc;
}
.history-guest-cta__text {
  margin: 0;
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.55;
  max-width: 36rem;
}
.history-guest-cta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
}
.history-guest-cta__plans {
  opacity: 0.9;
}
@media (max-width: 640px) {
  .history-guest-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .history-guest-cta__actions .btn {
    width: 100%;
    justify-content: center;
  }
}
.history-notice {
  margin-top: 1.25rem;
  padding: 0.9rem 1.15rem;
  border-radius: var(--radius-lg);
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.2);
  font-size: 0.875rem;
  color: #cbd5e1;
  line-height: 1.65;
  text-align: center;
}
.history-notice--subtle {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}
.history-notice a {
  color: var(--gold-light) !important;
  font-weight: 600;
}
@media (max-width: 768px) {
  .history-table__col-price {
    display: none;
  }
  .history-table th.history-table__col-price {
    display: none;
  }
  .history-win-banner__value {
    font-size: 1.875rem;
  }
  .history-filter--toolbar {
    flex: 1 1 100%;
  }
  .rec-view-prices {
    grid-template-columns: 1fr;
  }
  .form-actions-row .btn {
    flex: 1 1 calc(50% - 0.35rem);
    min-width: 0;
    justify-content: center;
  }
}
@media (max-width: 640px) {
  .rec-card {
    flex-direction: column;
    align-items: stretch;
  }
  .rec-card__action {
    width: 100%;
  }
  .rec-card__action .btn,
  .rec-card__action .btn-gold {
    display: block;
    width: 100%;
    min-width: 0;
  }
  .history-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
  }
}
.history-table__locked {
  display: inline-block;
  font-size: 0.75rem;
  color: #64748b;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.history-table .badge-profit {
  background: rgba(74, 222, 128, 0.18);
  color: #4ade80;
}
.history-table .badge-loss {
  background: rgba(248, 113, 113, 0.18);
  color: #fca5a5;
}
.history-table .badge-wait {
  background: rgba(251, 191, 36, 0.18);
  color: #fcd34d;
}
.history-empty {
  text-align: center;
  padding: 2.5rem 1rem !important;
  color: #94a3b8 !important;
  font-size: 0.9375rem;
}
.history-cta {
  margin: 1.5rem 0 0;
  text-align: center;
  font-size: 0.9375rem;
  color: #cbd5e1;
  line-height: 1.7;
}
.history-cta a {
  color: var(--gold-light) !important;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.history-cta a:hover {
  color: #fff !important;
}
.history-disclaimer {
  margin: 1.25rem 0 0;
  font-size: 0.8125rem;
  color: #94a3b8;
  line-height: 1.6;
  text-align: center;
}

/* 我的會員中心 */
.my-page,
.history-page {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}
.history-page--narrow {
  max-width: 560px;
}
.history-page__back {
  margin-top: 1.5rem;
  text-align: left;
}
.page-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-bottom: 1.25rem;
  font-size: 0.8125rem;
  color: #64748b;
}
.page-breadcrumb a {
  color: #94a3b8 !important;
  text-decoration: none !important;
}
.page-breadcrumb a:hover {
  color: var(--gold-light) !important;
}
.page-breadcrumb__sep {
  color: #475569;
  user-select: none;
}
.page-breadcrumb__current {
  color: #cbd5e1;
  font-weight: 600;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 分析內頁 — 確認觀看 */
.rec-view-confirm {
  padding: 1.5rem 1.5rem 1.65rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(18, 30, 52, 0.96) 0%, rgba(10, 18, 36, 0.94) 100%);
  border: 1px solid rgba(212, 175, 55, 0.28);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.35);
}
.rec-view-confirm__badge {
  display: inline-block;
  margin: 0 0 0.85rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1a1508;
  background: linear-gradient(135deg, #d4af37 0%, #f5df8c 100%);
  border-radius: 999px;
}
.rec-view-confirm__title {
  margin: 0 0 0.65rem;
  font-size: 1.375rem;
  font-weight: 800;
  line-height: 1.35;
  color: #f8fafc;
}
.rec-view-confirm__symbol {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.04em;
}
.rec-view-confirm__body {
  margin: 1.15rem 0 1.35rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.rec-view-confirm__body p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #cbd5e1;
}
.form-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0;
}
.form-actions-row .btn-gold {
  min-width: 9rem;
}

/* 分析內頁 — 已解鎖 */
.rec-view-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rec-view-chips li {
  padding: 0.3rem 0.65rem;
  font-size: 0.8125rem;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}
.rec-view-hero {
  margin-bottom: 1.35rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.rec-view-hero__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.5rem;
}
.rec-view-hero__symbol {
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--gold-light);
}
.rec-view-hero__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 800;
  line-height: 1.25;
  color: #f8fafc;
}
.rec-view-prices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.rec-view-prices__item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-lg);
  background: rgba(15, 26, 46, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.rec-view-prices__item--buy { border-color: rgba(245, 223, 140, 0.35); }
.rec-view-prices__item--sl { border-color: rgba(248, 113, 113, 0.35); }
.rec-view-prices__item--tp { border-color: rgba(74, 222, 128, 0.35); }
.rec-view-prices__label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}
.rec-view-prices__value {
  font-size: 1.25rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #f1f5f9;
  line-height: 1.2;
}
.rec-view-prices__item--sl .rec-view-prices__value { color: #fca5a5; }
.rec-view-prices__item--tp .rec-view-prices__value { color: #86efac; }
.rec-view-report__body {
  padding: 1.15rem 1.35rem 1.5rem;
}
.rec-view-footer .history-page__back {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
}
.rec-view-footer__sep {
  color: #475569;
}
.rec-view-footer .history-disclaimer {
  margin-top: 0.75rem;
}
.history-empty-box {
  padding: 2.5rem 1.25rem;
  text-align: center;
  color: #94a3b8;
  font-size: 0.9375rem;
}
.my-page__stats {
  margin-bottom: 1.75rem;
}
.my-account-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding: 1.15rem 1.35rem;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(18, 30, 52, 0.92) 0%, rgba(10, 18, 36, 0.88) 100%);
  border: 1px solid rgba(212, 175, 55, 0.25);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}
.my-account-bar__hello {
  margin: 0;
  font-size: 1.0625rem;
  color: #f1f5f9;
}
.my-account-bar__hello strong {
  color: var(--gold-light);
  font-weight: 700;
}
.my-account-bar__email {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  color: #94a3b8;
}
.my-account-bar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.my-section-title {
  margin: 0 0 1rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #f1f5f9;
}
.my-active-section {
  margin-bottom: 1.75rem;
}
.my-active-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.my-active-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(22, 40, 32, 0.85) 0%, rgba(10, 18, 36, 0.92) 100%);
  border: 1px solid rgba(74, 222, 128, 0.35);
  text-decoration: none !important;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.my-active-card:hover {
  transform: translateY(-2px);
  border-color: rgba(74, 222, 128, 0.55);
  box-shadow: 0 12px 32px rgba(34, 197, 94, 0.12);
}
.my-active-card__name {
  font-size: 1rem;
  font-weight: 700;
  color: #f8fafc;
}
.my-active-card__meta {
  font-size: 0.8125rem;
  color: #94a3b8;
}
.my-active-card__cta {
  margin-top: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gold-light);
}
.my-table-link {
  color: var(--gold-light) !important;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
}
.my-table-link:hover {
  color: #fff !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}
.history-empty .my-table-link {
  margin-left: 0.25rem;
}

/* 方案推薦列表（會員） */
.rec-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.rec-list--in-panel {
  padding: 1rem 1.15rem 1.25rem;
}

/* 實戰分享 */
.share-list {
  list-style: none;
  margin: 0;
  padding: 0.75rem 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.share-card {
  border-radius: var(--radius-lg);
  background: #0e1526;
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: border-color 0.15s, transform 0.15s;
}
.share-card:hover {
  border-color: rgba(212, 175, 55, 0.35);
  transform: translateY(-1px);
}
.share-card__link {
  display: block;
  padding: 1.1rem 1.25rem;
  text-decoration: none !important;
  color: inherit;
}
.share-card__date {
  display: block;
  font-size: 0.8125rem;
  color: #64748b;
  margin-bottom: 0.35rem;
}
.share-card__title {
  margin: 0 0 0.45rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.4;
}
.share-card__summary {
  margin: 0 0 0.65rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: #94a3b8;
}
.share-card__more {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gold-light);
}
.live-share-article__head {
  margin-bottom: 1.35rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.live-share-article__date {
  display: block;
  font-size: 0.8125rem;
  color: #64748b;
  margin-bottom: 0.5rem;
}
.live-share-article__title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 800;
  line-height: 1.3;
  color: #f8fafc;
}
.live-share-article__lead {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #94a3b8;
}
.live-share-article__draft {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  color: #fcd34d;
}

/* 條款 / 免責頁 */
.legal-page .legal-doc__body {
  padding: 1.25rem 1.35rem 1.5rem;
}
.legal-doc__section {
  margin-bottom: 1.35rem;
}
.legal-doc__section:last-child {
  margin-bottom: 0;
}
.legal-doc__section h2 {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  font-weight: 700;
  color: #f1f5f9;
}
.legal-doc__section p {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: #cbd5e1;
}
.legal-doc__section p:last-child {
  margin-bottom: 0;
}
.legal-doc__section ul {
  margin: 0 0 0.75rem;
  padding-left: 1.25rem;
  color: #cbd5e1;
  font-size: 0.9375rem;
  line-height: 1.75;
}
.legal-doc__section li {
  margin-bottom: 0.35rem;
}
.legal-doc__section a {
  color: var(--gold-light) !important;
  font-weight: 600;
}
.legal-doc__section strong {
  color: #e2e8f0;
  font-weight: 600;
}
.legal-doc__updated {
  margin-top: 0.85rem !important;
  font-size: 0.8125rem !important;
  color: #64748b !important;
}
.footer-legal__text a {
  color: var(--gold-light) !important;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-page .history-page__back {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
}
.text-gold {
  color: var(--gold-light);
}
.rec-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(18, 30, 52, 0.95) 0%, rgba(10, 18, 36, 0.92) 100%);
  border: 1px solid rgba(212, 175, 55, 0.22);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}
.rec-card__body {
  flex: 1;
  min-width: min(100%, 280px);
}
.rec-card__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.35rem;
}
.rec-card__date {
  font-size: 0.8125rem;
  color: #94a3b8;
}
.rec-card__title {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: #f8fafc;
}
.rec-card__symbol {
  color: var(--gold-light);
  margin-right: 0.35rem;
}
.rec-card__prices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem 1rem;
  margin: 0;
  max-width: 360px;
}
.rec-card__prices dt {
  margin: 0;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}
.rec-card__prices dd {
  margin: 0.15rem 0 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #e2e8f0;
}
.rec-card__hint {
  margin: 0.65rem 0 0;
  font-size: 0.8125rem;
  color: #94a3b8;
}
.rec-card__action {
  flex-shrink: 0;
}
.rec-card__action .btn-gold {
  min-width: 8.5rem;
  text-align: center;
  padding: 0.65rem 1.25rem !important;
}
.history-table td .btn-gold {
  white-space: nowrap;
}

.alert {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}
.alert-success { background: #e6f7ed; border: 1px solid #b7eb8f; color: #135200; }
.alert-error { background: #fff1f0; border: 1px solid #ffa39e; color: #a8071a; }
.alert-info { background: var(--accent-soft); border: 1px solid #91caff; color: #003a8c; }

.muted { color: var(--muted); }
.price { font-size: 1.5rem; font-weight: 700; color: var(--accent); }

.report-box {
  margin-top: 1rem;
  padding: 1.25rem;
  background: #f8fafc;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
}
.report-box--dark {
  margin-top: 0;
  background: transparent;
  border: none;
  color: #dbe4f0;
  line-height: 1.75;
  font-size: 0.9375rem;
}
.report-box--dark a {
  color: var(--gold-light);
}
.report-box--dark p {
  margin: 0 0 1rem;
}
.report-box--dark p:last-child {
  margin-bottom: 0;
}
.report-box--dark h2,
.report-box--dark h3,
.report-box--dark h4 {
  margin: 1.35rem 0 0.65rem;
  color: #f1f5f9;
  line-height: 1.35;
}
.report-box--dark h2:first-child,
.report-box--dark h3:first-child {
  margin-top: 0;
}
.report-box--dark h2 { font-size: 1.125rem; }
.report-box--dark h3 { font-size: 1rem; }
.report-box--dark ul,
.report-box--dark ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}
.report-box--dark li {
  margin-bottom: 0.35rem;
}
.report-box--dark table {
  width: 100%;
  margin: 0.75rem 0 1rem;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.report-box--dark th,
.report-box--dark td {
  padding: 0.5rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
}
.report-box--dark th {
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
}

.auth-card {
  max-width: 440px;
  margin: 2rem auto;
}

.main-content-page {
  padding-top: 2rem;
}

/* 聯繫客服飄浮按鈕 */
.fab-support {
  position: fixed;
  right: max(1.25rem, env(safe-area-inset-right));
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem 0.65rem 0.75rem;
  background: linear-gradient(135deg, #d4af37 0%, #f5df8c 100%);
  color: #1a1508 !important;
  text-decoration: none !important;
  border-radius: 999px;
  box-shadow: 0 8px 28px rgba(212, 175, 55, 0.45);
  font-size: 0.9375rem;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
  max-width: calc(100vw - 2rem);
}
.fab-support:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(212, 175, 55, 0.55);
  color: #1a1508 !important;
}
.fab-support__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  flex-shrink: 0;
}
.fab-support__text {
  white-space: nowrap;
  padding-right: 0.15rem;
}
@media (max-width: 480px) {
  .fab-support__text {
    font-size: 0.8125rem;
  }
}

/* ========== 加入會員彈出層 ========== */
body.modal-open {
  overflow: hidden;
}

.auth-page-main {
  min-height: calc(100vh - var(--header-h));
  padding: 0;
}

.auth-page-flash {
  position: fixed;
  top: calc(var(--header-h) + 0.75rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 220;
  width: min(520px, 92vw);
}

.membership-modal {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  padding-top: calc(var(--header-h) + 0.5rem);
}
.membership-modal.is-open {
  display: flex;
}
.membership-modal--page {
  position: relative;
  inset: auto;
  z-index: 1;
  min-height: calc(100vh - var(--header-h) - 2rem);
  display: flex;
  padding: 1.5rem 1rem 2rem;
}

.membership-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 14, 0.72);
  backdrop-filter: blur(8px);
}
.membership-modal__backdrop--page {
  position: fixed;
  inset: 0;
  top: var(--header-h);
  z-index: -1;
}

.membership-modal__panel {
  position: relative;
  width: min(920px, 100%);
  max-height: calc(100vh - var(--header-h) - 2rem);
  overflow: auto;
  border-radius: 20px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: linear-gradient(155deg, #121f38 0%, #0a1224 55%, #060b14 100%);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  animation: modalIn 0.35s ease-out;
}
.membership-modal__panel--narrow {
  width: min(440px, 100%);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.membership-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.85rem;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  text-decoration: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.membership-modal__close:hover {
  background: rgba(212, 175, 55, 0.2);
  color: var(--gold-light);
}

.membership-modal__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
}
@media (max-width: 768px) {
  .membership-modal__grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }
}

.membership-modal__promo {
  padding: 2rem 1.75rem;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(212, 175, 55, 0.18) 0%, transparent 55%),
    linear-gradient(180deg, rgba(15, 26, 46, 0.5) 0%, transparent 100%);
  border-right: 1px solid rgba(212, 175, 55, 0.12);
}
@media (max-width: 768px) {
  .membership-modal__promo {
    border-right: none;
    border-bottom: 1px solid rgba(212, 175, 55, 0.12);
    padding-bottom: 1.25rem;
  }
}

.membership-modal__badge {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold-light);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.08);
}
.membership-modal__promo h2 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  color: #f8fafc;
  line-height: 1.3;
}
.membership-modal__lead {
  margin: 0 0 1.25rem;
  color: #94a3b8;
  font-size: 0.9375rem;
  line-height: 1.6;
}
.membership-modal__lead--compact {
  margin-bottom: 1rem;
}
.membership-modal__perks {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}
.membership-modal__perks li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.5rem;
  color: #cbd5e1;
  font-size: 0.9rem;
}
.membership-modal__perks li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.75rem;
  top: 0.55rem;
}
.membership-modal__note {
  margin: 0;
  font-size: 0.75rem;
  color: #64748b;
}

.membership-modal__form-wrap {
  padding: 2rem 1.75rem 1.75rem;
}
.membership-modal__form-wrap--solo {
  padding: 2rem 1.75rem 1.5rem;
}
.membership-modal__form-title {
  margin: 0 0 1.25rem;
  font-size: 1.125rem;
  color: #f1f5f9;
  font-weight: 700;
}
.membership-modal__form-title--lg {
  font-size: 1.375rem;
  margin-bottom: 0.35rem;
}

.membership-form label {
  color: #94a3b8;
  font-size: 0.8125rem;
  margin-bottom: 0.35rem;
}
.membership-form input[type="email"],
.membership-form input[type="password"],
.membership-form input[type="text"],
.membership-form input[type="tel"] {
  width: 100%;
  max-width: none;
  margin-bottom: 1rem;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(5, 10, 20, 0.65);
  color: #f1f5f9;
  font-size: 0.9375rem;
}
.membership-form input::placeholder {
  color: #64748b;
}
.membership-form input:focus {
  outline: none;
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
}
.membership-form__hint {
  margin: -0.35rem 0 1rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: rgba(226, 232, 240, 0.75);
}
.membership-form__hint--otp {
  margin-top: 0.35rem;
}
.membership-form__otp-row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
  margin-bottom: 0.35rem;
}
.membership-form__otp-input {
  flex: 1 1 auto;
  min-width: 0;
  margin-bottom: 0 !important;
}
.membership-form__otp-send {
  flex: 0 0 auto;
  white-space: nowrap;
  padding-left: 0.85rem;
  padding-right: 0.85rem;
  margin-bottom: 0;
  align-self: stretch;
}
.membership-form__otp-send.is-countdown {
  opacity: 0.85;
  cursor: wait;
}
.membership-form__otp-status {
  margin: 0 0 0.65rem;
  font-size: 0.8125rem;
  line-height: 1.5;
}
.membership-form__otp-status.is-success {
  color: #86efac;
}
.membership-form__otp-status.is-error {
  color: #fca5a5;
}
.membership-form__check {
  display: flex !important;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1.25rem !important;
  font-size: 0.8125rem !important;
  color: #94a3b8 !important;
  font-weight: 400 !important;
  line-height: 1.5;
}
.membership-form__check input {
  width: auto;
  margin: 0.2rem 0 0;
}
.membership-form__check a {
  color: var(--gold-light);
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

.membership-modal__switch {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: 0.875rem;
  color: #94a3b8;
}
.membership-modal__switch a {
  color: var(--gold-light);
  font-weight: 600;
}
