:root {
  --bg: #0b1220;
  --bg2: #101a2e;
  --card: #131f36;
  --border: #22314f;
  --text: #e8eefb;
  --muted: #9db0cf;
  --accent: #2dd4bf;
  --accent2: #22c55e;
  --danger: #f87171;
  --radius: 14px;
  font-size: 16px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
img { max-width: 100%; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Nav */
nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 18, 32, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; gap: 28px;
  padding: 14px 20px; max-width: 1080px; margin: 0 auto;
}
.logo { font-weight: 800; font-size: 1.25rem; color: var(--text); letter-spacing: -0.02em; display: inline-flex; align-items: center; gap: 9px; }
.logo svg { flex-shrink: 0; }
.logo .logo-text { display: inline-flex; }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--muted); font-size: 0.95rem; }
.nav-links a:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-block; padding: 10px 20px; border-radius: 10px;
  font-weight: 600; font-size: 0.95rem; cursor: pointer; border: 1px solid transparent;
  transition: transform 0.1s ease, opacity 0.1s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #04201c; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-lg { padding: 14px 28px; font-size: 1.05rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Hero */
.hero { padding: 90px 0 70px; text-align: center; }
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.15; max-width: 780px; margin: 0 auto 18px;
}
.hero h1 em { color: var(--accent); font-style: normal; }
.hero p.sub { color: var(--muted); font-size: 1.15rem; max-width: 640px; margin: 0 auto 32px; }
.hero .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.pill {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: rgba(45, 212, 191, 0.12); color: var(--accent);
  font-size: 0.85rem; font-weight: 600; margin-bottom: 20px; border: 1px solid rgba(45, 212, 191, 0.3);
}

/* Sections */
section { padding: 64px 0; }
.section-title { text-align: center; font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 10px; }
.section-sub { text-align: center; color: var(--muted); margin-bottom: 44px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px;
}
.card h3 { margin-bottom: 8px; font-size: 1.1rem; }
.card p { color: var(--muted); font-size: 0.95rem; }
.card .icon { font-size: 1.6rem; margin-bottom: 12px; display: block; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(45, 212, 191, 0.15); color: var(--accent); font-weight: 700; margin-bottom: 12px;
}

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg2); }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 640px; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
tr:last-child td { border-bottom: none; }
.up { color: var(--accent2); font-weight: 600; }
.down { color: var(--danger); font-weight: 600; }
.tag { padding: 3px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; background: rgba(45, 212, 191, 0.12); color: var(--accent); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; max-width: 800px; margin: 0 auto; }
.plan { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--accent); position: relative; }
.plan.featured::before {
  content: "Most popular"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #04201c; font-size: 0.75rem; font-weight: 700;
  padding: 3px 12px; border-radius: 999px;
}
.plan .price { font-size: 2rem; font-weight: 800; margin: 8px 0 2px; }
.plan .per { color: var(--muted); font-size: 0.9rem; margin-bottom: 18px; }
.plan ul { list-style: none; margin: 0 0 24px; flex: 1; }
.plan li { padding: 6px 0; color: var(--muted); font-size: 0.94rem; }
.plan li::before { content: "✓ "; color: var(--accent2); font-weight: 700; }
.cycle-toggle { display: flex; gap: 8px; justify-content: center; margin-bottom: 28px; }
.cycle-toggle button {
  padding: 8px 18px; border-radius: 999px; border: 1px solid var(--border);
  background: transparent; color: var(--muted); cursor: pointer; font-weight: 600;
}
.cycle-toggle button.active { background: rgba(45, 212, 191, 0.15); color: var(--accent); border-color: var(--accent); }

/* Auth card */
.auth-wrap { min-height: calc(100vh - 64px); display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 420px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; }
.auth-card h2 { margin-bottom: 6px; }
.auth-card .hint { color: var(--muted); font-size: 0.92rem; margin-bottom: 24px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.field input, .field select {
  width: 100%; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg2); color: var(--text); font-size: 0.95rem; outline: none;
}
.field input:focus { border-color: var(--accent); }
.form-msg { padding: 10px 14px; border-radius: 10px; font-size: 0.9rem; margin-bottom: 16px; display: none; }
.form-msg.error { display: block; background: rgba(248, 113, 113, 0.12); color: var(--danger); }
.form-msg.ok { display: block; background: rgba(34, 197, 94, 0.12); color: var(--accent2); }
.auth-alt { text-align: center; margin-top: 18px; color: var(--muted); font-size: 0.92rem; }
.btn-google {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: #ffffff; color: #1f2937; border: 1px solid #dadce0; font-weight: 600;
}
.btn-google:hover { background: #f8f9fa; }

/* ===== Profile menu (avatar + plan details) ===== */
.profile-wrap { position: relative; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #2563eb);
  color: #04201c; font-weight: 800; font-size: 0.85rem;
  border: 2px solid rgba(45, 212, 191, 0.4);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  overflow: hidden; padding: 0; flex-shrink: 0;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-dropdown {
  position: absolute; right: 0; top: 48px; width: 300px;
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 18px; z-index: 100; text-align: left;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}
.pd-head { display: flex; gap: 12px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.pd-avatar { width: 46px; height: 46px; cursor: default; font-size: 1rem; }
.pd-head > span:last-child { min-width: 0; }
.pd-name { display: block; font-weight: 700; font-size: 0.95rem; }
.pd-email { display: block; color: var(--muted); font-size: 0.78rem; word-break: break-all; }
.pd-plan { background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; }
.pd-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; color: var(--muted); }
.pd-days { font-size: 0.85rem; margin-top: 8px; color: var(--text); }
.pd-bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); margin-top: 8px; overflow: hidden; }
.pd-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); border-radius: 3px; }
.pd-item {
  display: flex; gap: 10px; align-items: center; width: 100%;
  padding: 10px 12px; border-radius: 8px; color: var(--text);
  font-size: 0.9rem; background: none; border: none; cursor: pointer; text-align: left;
}
.pd-item:hover { background: rgba(45, 212, 191, 0.08); }
.pd-logout { color: var(--danger); }

/* ===== Landing page ===== */
.live-strip {
  display: flex; justify-content: center; gap: 14px; flex-wrap: wrap;
  margin-top: 44px;
}
.ls-item {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 18px 26px; min-width: 170px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.ls-num { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
.ls-label { color: var(--muted); font-size: 0.8rem; }
.ls-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-bottom: 4px; }

/* browser mock */
.browser-mock {
  max-width: 940px; margin: 0 auto;
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.bm-bar {
  display: flex; align-items: center; gap: 7px;
  background: #0d1524; padding: 11px 16px; border-bottom: 1px solid var(--border);
}
.bm-dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.bm-url {
  margin-left: 14px; background: var(--bg2); color: var(--muted);
  font-size: 0.75rem; padding: 4px 14px; border-radius: 7px; flex: 1; text-align: center;
}
.bm-body { padding: 24px 28px 28px; }
.bm-title { font-weight: 700; font-size: 1rem; margin-bottom: 18px; }
.bm-scope-head { font-weight: 700; font-size: 0.95rem; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.bm-chart { display: flex; gap: 10px; height: 130px; position: relative; margin-bottom: 44px; }
.bm-zero { position: absolute; left: 0; right: 0; top: 52%; height: 1px; background: rgba(157, 176, 207, 0.35); }
.bm-col { flex: 1; position: relative; height: 100%; }
.bm-pill { position: absolute; left: 33%; width: 34%; border-radius: 999px; }
.bm-pill.up { background: linear-gradient(180deg, #4ade80, #16a34a); box-shadow: 0 0 8px rgba(34, 197, 94, 0.35); }
.bm-pill.down { background: linear-gradient(180deg, #e97b87, #d94f5e); box-shadow: 0 0 8px rgba(226, 96, 110, 0.3); }
.bm-lab {
  position: absolute; top: calc(100% + 10px); left: 50%;
  font-size: 0.55rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em;
  transform: translateX(-50%) rotate(-45deg); transform-origin: center top;
}
.bm-tables { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bm-tbl { background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; }
.bm-th { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.bm-th b { margin-left: auto; background: rgba(34, 197, 94, 0.15); color: var(--accent2); padding: 1px 8px; border-radius: 999px; font-size: 0.68rem; }
.bm-tbl:last-child .bm-th b { background: rgba(248, 113, 113, 0.15); color: var(--danger); }
.bm-tr { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; font-size: 0.82rem; border-bottom: 1px solid rgba(34, 49, 79, 0.5); }
.bm-tr:last-child { border-bottom: none; }
.bm-tr b { font-weight: 700; color: var(--text); }
.bm-tr .ltp { color: var(--muted); font-variant-numeric: tabular-nums; }

/* ===== Premium 3D depth ===== */
.hero { position: relative; }
.hero::before {
  content: ""; position: absolute; inset: -12% -25% -5%;
  background:
    radial-gradient(620px 320px at 50% 0%, rgba(45, 212, 191, 0.13), transparent 70%),
    radial-gradient(520px 280px at 78% 32%, rgba(37, 99, 235, 0.10), transparent 70%);
  pointer-events: none; z-index: 0;
}
.hero > * { position: relative; z-index: 1; }
.hero h1 em {
  background: linear-gradient(92deg, var(--accent) 10%, #60a5fa 90%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.btn-primary { box-shadow: 0 10px 28px rgba(45, 212, 191, 0.30); }
.btn-primary:hover { box-shadow: 0 14px 36px rgba(45, 212, 191, 0.45); }

.browser-mock {
  transform: perspective(1400px) rotateX(5deg) scale(0.985);
  transform-style: preserve-3d;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  will-change: transform;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.browser-mock:hover {
  transform: perspective(1400px) rotateX(0deg) scale(1);
  box-shadow: 0 44px 110px rgba(0, 0, 0, 0.6), 0 0 70px rgba(45, 212, 191, 0.10);
}
.grid-3 > .card { transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; }
.grid-3 > .card:hover {
  transform: translateY(-5px);
  border-color: rgba(45, 212, 191, 0.45);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(45, 212, 191, 0.14);
}
.plan.featured { box-shadow: 0 26px 70px rgba(45, 212, 191, 0.14); transform: scale(1.015); }

@media (max-width: 700px) {
  .bm-tables { grid-template-columns: 1fr; }
  .ls-item { min-width: 130px; padding: 14px 18px; }
  .browser-mock { transform: none; }
}

/* Dashboard */
.dash-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin: 34px 0 8px; }
.banner {
  background: rgba(45, 212, 191, 0.1); border: 1px solid rgba(45, 212, 191, 0.35);
  border-radius: var(--radius); padding: 16px 20px; margin: 18px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 22px 0 16px; }
.tabs button {
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--border);
  background: transparent; color: var(--muted); cursor: pointer; font-weight: 600; font-size: 0.9rem;
}
.tabs button.active { background: rgba(45, 212, 191, 0.15); color: var(--accent); border-color: var(--accent); }
.empty { text-align: center; color: var(--muted); padding: 48px 20px; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 18px 22px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: var(--muted); margin-top: 10px; font-size: 0.95rem; }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 34px 0; margin-top: 40px; }
footer p { color: var(--muted); font-size: 0.82rem; max-width: 900px; }
.foot-links { display: flex; gap: 18px; margin-bottom: 16px; flex-wrap: wrap; }
.foot-links a { color: var(--muted); font-size: 0.9rem; }

@media (max-width: 640px) {
  .nav-links a.hide-sm { display: none; }
  .hero { padding: 60px 0 40px; }
}

/* ===== Dashboard: sector graph + side-by-side panels ===== */
.sector-card { margin: 18px 0 0; }
.sector-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.sector-head h3 { font-size: 1.05rem; }
.sector-legend { color: var(--muted); font-size: 0.82rem; display: inline-flex; align-items: center; gap: 8px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; vertical-align: middle; }
.dot-bull { background: var(--accent2); box-shadow: 0 0 6px rgba(34, 197, 94, 0.6); }
.dot-bear { background: var(--danger); box-shadow: 0 0 6px rgba(248, 113, 113, 0.6); }

.srow { display: flex; align-items: center; gap: 12px; padding: 4px 0; }
.slabel { width: 170px; flex-shrink: 0; font-size: 0.85rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: right; }
.sbar { flex: 1; position: relative; height: 18px; border-radius: 6px; background: rgba(255, 255, 255, 0.04); }
.sbar-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; transition: width 0.4s ease; }
.sbar-fill.bull { background: linear-gradient(90deg, rgba(34, 197, 94, 0.4), rgba(34, 197, 94, 0.95)); }
.sbar-fill.bear { background: linear-gradient(90deg, rgba(248, 113, 113, 0.4), rgba(248, 113, 113, 0.95)); }
.scount { width: 64px; flex-shrink: 0; font-size: 0.85rem; text-align: left; font-weight: 600; }
.zero { color: var(--muted); opacity: 0.6; }

/* ===== Vertical capsule sector chart (Sector-Scope style) ===== */
.vchart-scroll { overflow-x: auto; padding-bottom: 4px; }
.vchart { position: relative; margin: 6px 34px 64px 52px; }
.vbar { position: absolute; border-radius: 999px; transition: height 0.4s ease, top 0.4s ease; }
.vb-bull { background: linear-gradient(180deg, #4ade80, #16a34a); box-shadow: 0 0 10px rgba(34, 197, 94, 0.4); }
.vb-bear { background: linear-gradient(180deg, #e97b87, #d94f5e); box-shadow: 0 0 10px rgba(226, 96, 110, 0.3); }
.vzero { position: absolute; left: 0; right: 0; height: 1px; background: rgba(157, 176, 207, 0.45); }
.vgrid { position: absolute; left: 0; right: 0; height: 1px; background: rgba(157, 176, 207, 0.12); }
.vy { position: absolute; left: -50px; width: 42px; text-align: right; font-size: 0.68rem; color: var(--muted); transform: translateY(-50%); }
.vxlab { position: absolute; top: 100%; margin-top: 12px; font-size: 0.66rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; white-space: nowrap; transform: translateX(-50%) rotate(-45deg); transform-origin: center top; }

.cards-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.cards-row > .panel { min-width: 0; }
.panel { padding: 20px 18px; display: flex; flex-direction: column; }
.panel-head { margin-bottom: 14px; }
.panel-head h3 { font-size: 1.05rem; display: flex; align-items: center; gap: 4px; }
.count-badge { margin-left: 8px; padding: 2px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; }
.up-badge { background: rgba(34, 197, 94, 0.15); color: var(--accent2); }
.down-badge { background: rgba(248, 113, 113, 0.15); color: var(--danger); }
.panel .table-wrap, .panel .panel-scroll { border: none; background: transparent; }
.panel table { min-width: 0; font-size: 0.9rem; }
.panel th, .panel td { padding: 10px 10px; }
.panel thead th:first-child, .panel tbody td:first-child { padding-left: 6px; }
.stock-name { max-width: 150px; }

.panel-scroll { max-height: 430px; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.panel-scroll::-webkit-scrollbar { width: 8px; }
.panel-scroll::-webkit-scrollbar-track { background: transparent; }
.panel-scroll::-webkit-scrollbar-thumb { background: rgba(157, 176, 207, 0.25); border-radius: 4px; }
.panel-scroll::-webkit-scrollbar-thumb:hover { background: rgba(157, 176, 207, 0.45); }
.panel-scroll thead th {
  position: sticky; top: 0; z-index: 2;
  background: var(--card);
}
.panel thead th { white-space: nowrap; }
.panel td { vertical-align: middle; }
.panel th.num, .panel td.num { text-align: right; }
.panel td.num { font-variant-numeric: tabular-nums; }
th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover { color: var(--text); }

.stock-link { display: flex; flex-direction: column; line-height: 1.3; }
.stock-link:hover strong { color: var(--accent); }
.stock-name { color: var(--muted); font-size: 0.78rem; max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 900px) {
  .cards-row { grid-template-columns: 1fr; }
  .slabel { width: 110px; }
}
