/* =========================================================
   Shadcn-style override for 菁英交易學院
   Loaded AFTER tokens.css to override topbar / footer / partner badge
   to match the new shadcn landing style.
   ========================================================= */
:root {
  --bg: #0A0A0A;
  --bg-2: #101012;
  --bg-3: #16161A;
  --bg-4: #1A1A1E;
  --ink: #FAFAFA;
  --ink-2: #A1A1AA;
  --ink-3: #71717A;
  --ink-4: #3F3F46;
  --border: #1F1F23;
  --border-strong: #2A2A30;
  --hair: #1F1F23;
  --hair-strong: #2A2A30;
  --accent: #FAFAFA;
  --accent-2: #E4E4E7;
  --accent-cold: #7FA3BF;
  --accent-warm: #FF9F5A;
  --glow: rgba(255, 165, 90, 0.18);
  --glow-2: rgba(255, 200, 120, 0.08);
}

html, body { background: var(--bg); color: var(--ink); }
body {
  font-family: "Inter", "Noto Sans TC", system-ui, -apple-system, sans-serif;
  font-weight: 400; font-size: 15px; line-height: 1.7; letter-spacing: -0.005em;
}

/* Hide legacy decorations globally (newsletter popup 保留隱藏 fab 客服要留) */
.ticker { display: none !important; }
.newsletter-backdrop, .newsletter-modal { display: none !important; }
.footer-partners, .fp-row, .fp-label { display: none !important; }

/* LINE customer service FAB — shadcn style */
.fab-line {
  position: fixed !important; bottom: 24px !important; right: 24px !important;
  z-index: 50 !important;
  width: 52px !important; height: 52px !important;
  border-radius: 50% !important;
  background: #06C755 !important;
  color: #FFFFFF !important;
  display: inline-flex !important; align-items: center !important; justify-content: center !important;
  box-shadow: 0 6px 24px -6px rgba(6,199,85,0.6), 0 0 0 1px rgba(255,255,255,0.08) inset !important;
  transition: transform .2s ease, box-shadow .2s ease !important;
  text-decoration: none !important;
}
.fab-line:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 30px -6px rgba(6,199,85,0.7), 0 0 0 1px rgba(255,255,255,0.12) inset !important;
}
.fab-line svg { width: 26px; height: 26px; }

/* Topbar */
.topbar {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  background: rgba(10, 10, 10, 0.72);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  height: 64px; max-width: 1440px; margin: 0 auto; padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
}

/* Shared shell override — wider + more breathing room */
.shell { max-width: 1240px !important; padding: 0 40px !important; }

/* Global typography bump for shadcn pages */
body { font-size: 15.5px; }
.topbar .logo, .topbar .brand {
  font-family: "Inter", "Noto Sans TC", sans-serif;
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  color: var(--ink); text-decoration: none;
  white-space: nowrap; flex-shrink: 0;
}
.topbar .nav-links {
  display: flex; gap: 24px;
  flex-shrink: 0;
}
.topbar .nav-links a {
  font-size: 14px; font-weight: 400; color: var(--ink-2);
  text-decoration: none; padding: 4px 0;
  white-space: nowrap;
  transition: color .2s ease;
}
.topbar .nav-links a:hover { color: var(--ink); }
.topbar .nav-links a[aria-current="page"] { color: var(--ink); }
.topbar .nav-links a[aria-current="page"]::after { display: none; }

/* Partner badge (OKX) shadcn pill style */
.partner-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 10px 4px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(24, 24, 28, 0.6);
  backdrop-filter: blur(4px);
  height: 28px;
  margin: 0;
  flex-shrink: 0;
  transition: border-color .2s ease;
}
.partner-badge:hover { border-color: var(--ink-3); }
.partner-badge::before, .partner-badge::after { display: none !important; }
.partner-label {
  font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-3); font-family: "Inter", sans-serif; font-weight: 500;
  white-space: nowrap;
}
.partner-divider { width: 1px; height: 10px; background: var(--border-strong); }
.partner-logo-img {
  height: 18px; width: 18px; display: block;
  object-fit: contain;
}
@media (max-width: 1280px) {
  .partner-badge .partner-label, .partner-badge .partner-divider { display: none; }
}
@media (max-width: 980px) {
  .partner-badge { display: none; }
  .topbar .nav-links { gap: 16px; }
  .topbar .nav-links a { font-size: 13px; }
}
@media (max-width: 780px) {
  .topbar .nav-links { display: none; }
}

/* Nav CTA */
.topbar .nav-cta { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.topbar .nav-cta a, .topbar .nav-cta .nav-login {
  font-size: 13px; color: var(--ink-2); text-decoration: none;
  padding: 6px 12px; border-radius: 8px;
  transition: background .2s ease, color .2s ease;
  white-space: nowrap;
}
.topbar .nav-cta .nav-login:hover { color: var(--ink); background: var(--bg-3); }
.topbar .nav-cta .auth-username { font-size: 13px; max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .nav-cta .btn, .topbar .nav-cta .btn-sm, .topbar .nav-cta .btn-primary {
  background: var(--ink) !important; color: #0A0A0A !important;
  padding: 6px 12px !important; border-radius: 8px !important;
  border: 0 !important; font-weight: 500 !important; font-size: 13px !important;
  text-transform: none !important; letter-spacing: 0 !important;
  white-space: nowrap;
}
.topbar .nav-cta .btn:hover { background: #E4E4E7 !important; }
/* Override admin red button */
.topbar .nav-cta .admin-btn, .topbar .nav-cta a[href*="admin"] {
  background: transparent !important; color: #A1A1AA !important;
  border: 1px solid #2A2A30 !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  position: relative; z-index: 51;
  display: inline-flex !important; align-items: center; justify-content: center;
}
.topbar .nav-cta .admin-btn:hover, .topbar .nav-cta a[href*="admin"]:hover {
  color: #FAFAFA !important; border-color: #71717A !important;
}
.topbar .nav-cta .auth-tier-tag {
  background: transparent !important; color: var(--ink-3) !important;
  padding: 2px 7px !important; border: 1px solid var(--border-strong) !important;
  border-radius: 999px !important; font-size: 10px !important; letter-spacing: 0.08em !important;
  font-weight: 500 !important;
}
@media (max-width: 1100px) {
  .topbar .nav-cta .auth-username { display: none; }
}
@media (max-width: 900px) {
  .topbar .nav-cta .auth-tier-tag { display: none; }
  .topbar .nav-cta a[href*="admin"] { padding: 6px 10px !important; font-size: 12px !important; }
}

/* Footer */
.footer {
  background: var(--bg) !important;
  border-top: 1px solid var(--border) !important;
  padding: 60px 0 40px !important;
  color: var(--ink-3) !important;
}
.footer .container { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px !important; padding-bottom: 40px !important;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 {
  font-size: 13px !important; font-weight: 600 !important;
  color: var(--ink) !important; margin-bottom: 16px !important;
  letter-spacing: -0.005em;
}
.footer ul li { margin-bottom: 10px; }
.footer a {
  color: var(--ink-3) !important; font-size: 13px !important;
  text-decoration: none; transition: color .2s ease;
}
.footer a:hover { color: var(--ink) !important; }
.footer-brand p { font-size: 13px; color: var(--ink-3); line-height: 1.7; max-width: 40ch; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; font-size: 12px; color: var(--ink-4); flex-wrap: wrap; gap: 10px;
}
.footer-bottom a { color: var(--ink-3) !important; font-size: 12px !important; }
.footer-risk {
  padding: 24px 0; color: var(--ink-4);
  font-size: 12px; line-height: 1.7;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}
.logo-mark, .logo-stack, .logo-cn, .logo-en, .logo svg { display: none !important; }
.footer .logo::before {
  content: "菁英交易學院";
  font-family: "Inter", "Noto Sans TC", sans-serif;
  font-size: 15px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em;
}
.footer .socials {
  display: flex; gap: 10px; margin-top: 20px !important;
}
.footer .socials a {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-strong); border-radius: 8px;
  color: var(--ink-3) !important;
  transition: color .2s ease, border-color .2s ease;
}
.footer .socials a:hover { color: var(--ink) !important; border-color: var(--ink-3); }
