/* Lagran Partner Portal ------------------------------------------------- */
:root {
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-2: #f1f5f9;
  --bg: #f6f7fb;
  --card: #ffffff;
  /* Lagran brand: navy #244568 + phoenix orange #E67A09 */
  --brand: #244568;
  --brand-2: #2f5a87;
  --brand-soft: #e9eff6;
  --accent: #e67a09;
  --accent-2: #f59a3c;
  --accent-light: #fab772;
  --accent-soft: #fdf0e2;
  --accent-ink: #a85400;
  --money: #0b8a6a;
  --money-soft: #e3f6ef;
  --warn: #b45309;
  --warn-soft: #fef3e2;
  --info: #0369a1;
  --info-soft: #e5f3fb;
  --danger: #be123c;
  --danger-soft: #fdecef;
  --side: #13253b;
  --side-2: #1c3350;
  --side-text: #c3cfdd;
  --side-muted: #8ea3bb;
  --side-line: #24405f;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 16px rgba(15, 23, 42, .04);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.5;
       -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.01em; }
h1 { font-size: 1.6rem; font-weight: 700; }
h2 { font-size: 1.1rem; font-weight: 700; }
h3 { font-size: 1rem; font-weight: 650; }
p { margin: 0; }
.num, td.num, .amount { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.mt { margin-top: 1.25rem; }
.mt-s { margin-top: .5rem; }
.stack > * + * { margin-top: 1.25rem; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; }

/* ---------- App shell ---------- */
.app { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.sidebar { background: var(--side); color: var(--side-text); padding: 22px 14px; position: sticky; top: 0; height: 100vh;
           display: flex; flex-direction: column; }
.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 4px 10px 24px;
         color: #fff; font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand img { display: block; width: 172px; height: auto; }
.brand small { display: block; font-weight: 650; font-size: .7rem; color: var(--accent-light); letter-spacing: .12em;
               text-transform: uppercase; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 12px; color: var(--side-text); padding: 10px 12px; border-radius: 10px;
         font-weight: 550; font-size: .93rem; }
.nav a:hover { background: var(--side-2); color: #fff; text-decoration: none; }
.nav a.active { background: rgba(230, 122, 9, .16); color: #fff; box-shadow: inset 3px 0 0 var(--accent); }
.nav a.active svg { color: var(--accent-light); }
.nav svg { width: 18px; height: 18px; flex: none; opacity: .9; }
.side-foot { margin-top: auto; padding: 14px 10px 0; border-top: 1px solid var(--side-line); font-size: .85rem; }
.side-foot .who { color: #fff; font-weight: 600; }
.side-foot a { color: var(--side-muted); }
.side-foot .code { color: var(--side-muted); }
.side-foot .btn.ghost { color: var(--side-text); border-color: var(--side-line); }
.side-foot .btn.ghost:hover { background: var(--side-2); color: #fff; }

.main { min-width: 0; }
.topbar { display: none; }
.content { padding: 32px 36px 60px; max-width: 1240px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px;
             flex-wrap: wrap; }
.page-head p { color: var(--muted); margin-top: 4px; }

/* ---------- Cards & grids ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
        padding: 22px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.card-head a { font-size: .88rem; font-weight: 600; }
.card.flush { padding: 0; overflow: hidden; }
.card.flush .card-head { padding: 18px 22px 0; }
.grid { display: grid; gap: 18px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-main { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
.grid.top { align-items: start; }
.grid-side { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); align-items: start; }

.stat { position: relative; }
.stat .label { color: var(--muted); font-size: .85rem; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.stat .value { font-size: 1.75rem; font-weight: 750; margin-top: 6px; letter-spacing: -.02em;
               font-variant-numeric: tabular-nums; }
.stat .sub { color: var(--muted); font-size: .82rem; margin-top: 2px; }
.stat .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.stat.money .value { color: var(--money); }
.stat.highlight { background: linear-gradient(135deg, #1b3655, #2f5a87); color: #fff; border: 0;
                  box-shadow: inset 0 -3px 0 var(--accent), var(--shadow); }
.stat.highlight .label, .stat.highlight .sub { color: #cfdbe8; }
.stat.highlight .value { color: #fff; }
.stat.highlight a { color: #fff; font-weight: 650; text-decoration: underline; }

/* ---------- Welcome / referral banner ---------- */
.hero { background: radial-gradient(900px 280px at 100% 0%, rgba(230, 122, 9, .18) 0%, transparent 60%),
                    linear-gradient(120deg, #13253b, #244568); color: #fff; border-radius: 18px;
        padding: 28px 30px; display: flex; justify-content: space-between; align-items: center; gap: 24px;
        flex-wrap: wrap; margin-bottom: 22px; }
.hero h1 { color: #fff; }
.hero p { color: #c9d6e4; margin-top: 6px; }
.codebox { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 14px;
           padding: 14px 16px; min-width: 320px; max-width: 100%; }
.codebox .k { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-light); }
.codebox .code { font-size: 1.5rem; font-weight: 800; letter-spacing: .08em; }
.copyrow { display: flex; gap: 8px; margin-top: 10px; }
.copyrow input { flex: 1; min-width: 0; background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.15);
                 color: #fff; border-radius: 10px; padding: 9px 12px; font: inherit; font-size: .85rem; }
.copyrow.light input { background: var(--line-2); border-color: var(--line); color: var(--ink-2); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent;
       background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 10px; font: inherit; font-weight: 650;
       font-size: .9rem; cursor: pointer; white-space: nowrap; transition: background .15s, transform .05s; }
.btn:hover { background: var(--brand-2); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--ink-2); border-color: var(--line); }
.btn.ghost:hover { background: var(--line-2); }
.btn.light { background: #fff; color: var(--brand); }
.btn.light:hover { background: #eef3f8; }
.btn.accent { background: var(--accent); color: #fff; }
.btn.accent:hover { background: #cc6a05; }
.btn.wa { background: #1fa855; }
.btn.wa:hover { background: #189447; }
.btn.sm { padding: 7px 12px; font-size: .82rem; border-radius: 8px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th { text-align: left; font-weight: 600; color: var(--muted); font-size: .78rem; text-transform: uppercase;
     letter-spacing: .05em; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fafbfd;
     white-space: nowrap; }
td { padding: 13px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td .primary { font-weight: 600; color: var(--ink); }
td .secondary { color: var(--muted); font-size: .82rem; }
th.right, td.right { text-align: right; }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.empty strong { display: block; color: var(--ink); margin-bottom: 4px; }

/* ---------- Badges ---------- */
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 650;
         white-space: nowrap; }
.badge.ok { background: var(--money-soft); color: var(--money); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.info { background: var(--info-soft); color: var(--info); }
.badge.danger { background: var(--danger-soft); color: var(--danger); }
.badge.muted { background: var(--line-2); color: var(--muted); }
.badge.brand { background: var(--brand-soft); color: var(--brand); }

/* ---------- Chart ---------- */
.chart { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; align-items: end; height: 200px;
         padding-top: 10px; border-bottom: 1px solid var(--line); }
.bar { display: flex; flex-direction: column-reverse; height: 100%; position: relative; cursor: default; }
.bar span { display: block; border-radius: 4px 4px 0 0; min-height: 0; }
.bar .ref { background: var(--brand); }
.bar .rec { background: var(--accent-2); border-radius: 4px 4px 0 0; }
.bar .ref + .rec { border-radius: 4px 4px 0 0; }
.bar .tip { display: none; position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
            background: var(--ink); color: #fff; font-size: .75rem; padding: 6px 8px; border-radius: 6px;
            white-space: nowrap; z-index: 2; }
.bar:hover .tip { display: block; }
.bar:hover span { filter: brightness(1.08); }
.chart-x { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; margin-top: 6px; }
.chart-x span { text-align: center; font-size: .72rem; color: var(--muted); }
.legend { display: flex; gap: 16px; font-size: .8rem; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* ---------- Funnel ---------- */
.funnel .row { display: grid; grid-template-columns: 90px 1fr 40px; gap: 12px; align-items: center; padding: 8px 0; }
.funnel .track { height: 10px; background: var(--line-2); border-radius: 999px; overflow: hidden; }
.funnel .fill { height: 100%; border-radius: 999px; background: var(--brand); }
.funnel .fill.converted { background: var(--money); }
.funnel .fill.lost { background: #cbd5e1; }
.funnel .fill.contacted { background: #f59e0b; }
.funnel .fill.lead { background: #38bdf8; }
.big-rate { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.big-rate b { font-size: 2.2rem; letter-spacing: -.03em; }

/* ---------- Product cards ---------- */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 18px; }
.product { display: flex; flex-direction: column; }
.product .top { display: flex; gap: 14px; align-items: flex-start; }
.logo { width: 48px; height: 48px; border-radius: 12px; flex: none; display: grid; place-items: center;
        font-weight: 800; color: var(--brand); background: var(--brand-soft); overflow: hidden; }
.logo img { width: 100%; height: 100%; object-fit: cover; }
.product .desc { color: var(--muted); font-size: .9rem; margin-top: 4px; }
.earn { margin: 18px 0 14px; padding: 14px 16px; border-radius: 12px; background: var(--money-soft); }
.earn .big { font-size: 1.15rem; font-weight: 750; color: var(--money); }
.earn .small { color: #2f6b5a; }
.plans { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 16px; }
.plans .p { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 11px 14px; font-size: .88rem; }
.plans .p + .p { border-top: 1px solid var(--line-2); }
.plans .p b { font-weight: 650; }
.plans .p .c { color: var(--money); font-weight: 600; text-align: right; }
.product .actions { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-weight: 600; font-size: .86rem; margin-bottom: 6px; color: var(--ink-2); }
.field input[type=text], .field input[type=email], .field input[type=password], .field input[type=number],
.field input[type=tel], .field input[type=date], .field select, .field textarea, .search input, .search select {
  width: 100%; border: 1px solid #d5dbe5; border-radius: 10px; padding: 10px 12px; font: inherit; font-size: .93rem;
  background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .search input:focus, .search select:focus {
  outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(36, 69, 104, .16); }
.field .help { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.field .err { font-size: .82rem; color: var(--danger); margin-top: 4px; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field.check { display: flex; gap: 10px; align-items: flex-start; }
.field.check label { margin: 0; font-weight: 500; }
.field.check input { margin-top: 4px; }
.radio-cards { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-cards label { flex: 1; min-width: 140px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
                     display: flex; gap: 8px; align-items: center; cursor: pointer; font-weight: 600; margin: 0; }
.radio-cards label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.form-errors { background: var(--danger-soft); color: var(--danger); padding: 10px 14px; border-radius: 10px;
               font-size: .9rem; }
.section-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted);
                 font-weight: 700; margin: 8px 0 -4px; }

/* ---------- Filters ---------- */
.toolbar { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center;
           padding: 16px 22px; border-bottom: 1px solid var(--line); }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tabs a { padding: 7px 12px; border-radius: 8px; color: var(--ink-2); font-weight: 600; font-size: .86rem; }
.tabs a:hover { background: var(--line-2); text-decoration: none; }
.tabs a.on { background: var(--brand-soft); color: var(--brand); }
.tabs a .n { color: var(--muted); font-weight: 500; margin-left: 4px; }
.search { display: flex; gap: 8px; }
.search input { width: 240px; padding: 8px 12px; }
.search select { width: auto; padding: 8px 12px; }

.pager { display: flex; justify-content: space-between; align-items: center; padding: 14px 22px;
         border-top: 1px solid var(--line); font-size: .86rem; color: var(--muted); }
.pager .links { display: flex; gap: 6px; }

/* ---------- Messages ---------- */
.messages { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.messages li { padding: 12px 16px; border-radius: 12px; font-weight: 550; font-size: .92rem; background: var(--info-soft);
               color: var(--info); }
.messages li.success { background: var(--money-soft); color: var(--money); }
.messages li.error { background: var(--danger-soft); color: var(--danger); }
.messages li.warning { background: var(--warn-soft); color: var(--warn); }
.notice { padding: 14px 16px; border-radius: 12px; background: var(--warn-soft); color: var(--warn); font-size: .9rem; }
.notice.info { background: var(--info-soft); color: var(--info); }

/* ---------- List rows ---------- */
.list .item { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 0;
              border-bottom: 1px solid var(--line-2); }
.list .item:last-child { border-bottom: 0; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: .9rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; text-align: right; }

/* ---------- Public pages ---------- */
.public-top { background: #fff; border-bottom: 1px solid var(--line); box-shadow: inset 0 3px 0 var(--accent); }
.public-top .inner { max-width: 1160px; margin: 0 auto; padding: 14px 24px; display: flex; justify-content: space-between;
                     align-items: center; gap: 16px; }
.public-top .brand { color: var(--ink); padding: 0; flex-direction: row; align-items: center; gap: 14px; }
.public-top .brand img { width: 150px; }
.public-top .brand small { color: var(--muted); border-left: 1px solid var(--line); padding-left: 14px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 36px 24px 70px; }
.recommend { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line);
             border-left: 4px solid var(--money); padding: 14px 18px; border-radius: 12px; margin-bottom: 26px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--money-soft);
          color: var(--money); font-weight: 800; flex: none; }
.landing-hero { padding: 64px 0 40px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.landing-hero h1 { font-size: 2.7rem; line-height: 1.12; letter-spacing: -.03em; }
.landing-hero h1 em { font-style: normal; color: var(--accent); }
.landing-hero p.lead { font-size: 1.1rem; color: var(--ink-2); margin: 18px 0 26px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 30px 0 50px; }
.steps .s b { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px;
              background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 10px; }
.calc .row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.calc .total { font-size: 1.6rem; font-weight: 800; color: var(--money); }
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth .side { background: radial-gradient(700px 320px at 0% 100%, rgba(230, 122, 9, .14) 0%, transparent 65%),
                          linear-gradient(150deg, #13253b, #244568); color: #fff; padding: 56px; display: flex;
              flex-direction: column; justify-content: space-between; }
.auth .side .brand { padding: 0; }
.auth .side .brand img { width: 210px; }
.auth .side .foot { color: var(--side-muted); }
.auth .side h2 { font-size: 2rem; line-height: 1.2; color: #fff; max-width: 420px; }
.auth .side p { color: #c9d6e4; margin-top: 14px; max-width: 420px; }
.auth .side ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; color: #e4ebf3; }
.auth .side li::before { content: "✓"; color: var(--accent-light); font-weight: 800; margin-right: 10px; }
.auth .panel { display: grid; place-items: center; padding: 40px 24px; background: #fff; }
.auth .box { width: 100%; max-width: 420px; }
.auth .box h1 { margin-bottom: 6px; }
.auth .box > p { color: var(--muted); margin-bottom: 26px; }
footer.site { text-align: center; color: var(--muted); font-size: .82rem; padding: 26px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-main, .grid-side { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 50; inset: 0 auto 0 0; width: 260px; transform: translateX(-100%);
             transition: transform .2s; }
  body.nav-open .sidebar { transform: none; box-shadow: 0 0 0 100vmax rgba(15, 23, 42, .45); }
  .topbar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: #fff;
            border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
  .topbar .brand { color: var(--ink); padding: 0; }
  .topbar .brand img { width: 120px; }
  .topbar button { background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px;
                   font: inherit; cursor: pointer; }
  .content { padding: 20px 16px 50px; }
  .grid-3, .grid-2, .form-2, .landing-hero, .steps, .auth { grid-template-columns: 1fr; }
  .auth .side { padding: 32px 24px; }
  .codebox { min-width: 0; width: 100%; }
  .hero { padding: 22px; }
  .search, .search input { width: 100%; }
  .hero .copyrow { flex-wrap: wrap; }
  .hero .copyrow input { flex-basis: 100%; }
  .hero .copyrow .btn { flex: 1; }
  .landing-hero { padding-top: 32px; }
  .landing-hero h1 { font-size: 2rem; }
}
@media (max-width: 520px) {
  .grid-4 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat .value { font-size: 1.3rem; }
  .card { padding: 16px; }
  .products { grid-template-columns: 1fr; }
  .chart { gap: 4px; } .chart-x { gap: 4px; }
}


/* =====================================================================
   Lagran bright theme — vivid phoenix orange + royal navy
   (overrides the base palette above)
   ===================================================================== */
:root {
  --brand: #1557b0;          /* royal blue (links, focus) */
  --brand-2: #1d6fe0;
  --brand-soft: #e6f0ff;
  --navy: #0e2f57;
  --navy-2: #174a8b;
  --accent: #ff7a00;         /* phoenix orange */
  --accent-2: #ff9a1f;
  --accent-light: #ffc078;
  --accent-soft: #fff1e0;
  --accent-ink: #c25400;
  --grad-accent: linear-gradient(135deg, #ff9a1f 0%, #ff6a00 100%);
  --grad-navy: linear-gradient(135deg, #0e2f57 0%, #1557b0 100%);
  --side: #0e2f57;
  --side-2: #17457e;
  --side-text: #dbe7f6;
  --side-muted: #a9c1de;
  --side-line: #24558f;
  --money: #059669;
  --money-soft: #dcfce7;
  --bg: #f4f7fc;
}

/* Elevated logo card */
.logo-card { display: inline-flex; align-items: center; background: #fff; border-radius: 14px; padding: 12px 16px;
             box-shadow: 0 10px 28px rgba(0, 0, 0, .28), 0 0 0 1px rgba(255, 255, 255, .6);
             transition: transform .2s, box-shadow .2s; }
.brand:hover .logo-card { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(0, 0, 0, .32), 0 0 0 1px #fff; }
.brand .logo-card img { width: 178px; }
.brand small { color: var(--accent-light); padding-left: 4px; }

/* Sidebar */
.sidebar { background: linear-gradient(180deg, #0e2f57 0%, #123e72 60%, #17457e 100%); }
.nav a.active { background: var(--grad-accent); color: #fff; box-shadow: 0 6px 16px rgba(255, 106, 0, .35); }
.nav a.active svg { color: #fff; }

/* Primary buttons = bright orange */
.btn { background: var(--grad-accent); box-shadow: 0 4px 12px rgba(255, 106, 0, .28); }
.btn:hover { background: linear-gradient(135deg, #ff8a00 0%, #f25c00 100%); }
.btn.ghost, .btn.light, .btn.wa { box-shadow: none; }
.btn.ghost:hover { background: var(--line-2); }
.btn.light { color: var(--accent-ink); }
.side-foot .btn.ghost { background: transparent; }

/* Hero + highlight cards */
.hero { background: radial-gradient(700px 260px at 100% 0%, rgba(255, 122, 0, .45) 0%, transparent 60%),
                    linear-gradient(120deg, #0e2f57 0%, #1557b0 100%); box-shadow: 0 14px 34px rgba(21, 87, 176, .25); }
.hero p { color: #e1ecfa; }
.codebox { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .25); }
.stat.highlight { background: var(--grad-accent); box-shadow: 0 12px 28px rgba(255, 106, 0, .30); }
.stat.highlight .label, .stat.highlight .sub { color: #fff3e6; }
.stat .dot { background: var(--brand-2); }
.card { border-color: #e3eaf5; box-shadow: 0 1px 2px rgba(14, 47, 87, .05), 0 8px 24px rgba(14, 47, 87, .06); }

/* Chart + funnel */
.bar .ref { background: linear-gradient(180deg, #1d6fe0, #1557b0); }
.bar .rec { background: linear-gradient(180deg, #ffb04d, #ff7a00); }
.funnel .fill { background: var(--brand-2); }
.funnel .fill.contacted { background: var(--accent); }

/* Tabs / badges */
.tabs a.on { background: var(--accent-soft); color: var(--accent-ink); }
.badge.brand { background: var(--accent-soft); color: var(--accent-ink); }

/* Public pages */
.public-top { box-shadow: inset 0 4px 0 var(--accent), 0 2px 12px rgba(14, 47, 87, .06); }
.public-top .inner { padding: 16px 24px; }
.public-top .brand img { width: 196px; }
.landing-hero h1 em { background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; color: transparent; }
.steps .s b { background: var(--grad-accent); color: #fff; }

/* Auth */
.auth .side { background: radial-gradient(600px 320px at 0% 100%, rgba(255, 122, 0, .40) 0%, transparent 65%),
                          linear-gradient(150deg, #0e2f57 0%, #1557b0 100%); }
.auth .side .brand .logo-card { padding: 16px 22px; }
.auth .side .brand .logo-card img { width: 250px; }
.auth .side p { color: #e1ecfa; }

@media (max-width: 860px) {
  .topbar { box-shadow: inset 0 3px 0 var(--accent); }
  .topbar .brand img { width: 140px; }
}

/* =====================================================================
   Showcase: banners, covers, demo videos, galleries, plan (scheme) cards
   ===================================================================== */
.banners { position: relative; margin-bottom: 22px; border-radius: 18px; overflow: hidden;
           box-shadow: 0 12px 30px rgba(14, 47, 87, .16); }
.banner-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.banner-track::-webkit-scrollbar { display: none; }
.banner { position: relative; flex: 0 0 100%; scroll-snap-align: start; display: block; aspect-ratio: 4 / 1;
          min-height: 150px; color: #fff; background: var(--grad-navy); }
.banner:hover { text-decoration: none; }
.banner picture, .banner img { display: block; width: 100%; height: 100%; object-fit: cover; }
.banner-text { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
               align-items: flex-start; gap: 6px; padding: 18px 34px; max-width: 70%;
               background: linear-gradient(90deg, rgba(14, 47, 87, .85) 0%, rgba(14, 47, 87, .35) 70%, transparent 100%); }
.banner-text strong { font-size: clamp(1.1rem, 2.2vw, 1.7rem); line-height: 1.2; letter-spacing: -.01em; }
.banner-text > span:not(.btn) { color: #e1ecfa; font-size: .95rem; }
.banner-text .btn { margin-top: 6px; }
.banner-dots { position: absolute; bottom: 10px; right: 14px; display: flex; gap: 6px; }
.banner-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
                      background: rgba(255, 255, 255, .55); }
.banner-dots button.on { background: var(--accent); width: 22px; border-radius: 6px; }

.cover { border-radius: 16px; overflow: hidden; margin-bottom: 18px; box-shadow: 0 10px 26px rgba(14, 47, 87, .12); }
.cover img { display: block; width: 100%; max-height: 380px; object-fit: cover; }
.product-cover { position: relative; display: block; margin: -22px -22px 16px; border-radius: 14px 14px 0 0;
                 overflow: hidden; aspect-ratio: 16 / 7; background: var(--brand-soft); }
.product-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.product-cover:hover img { transform: scale(1.03); }
.product-cover .play { position: absolute; left: 12px; bottom: 12px; background: var(--grad-accent); color: #fff;
                       font-weight: 700; font-size: .8rem; padding: 6px 12px; border-radius: 999px;
                       box-shadow: 0 4px 12px rgba(0, 0, 0, .25); }

.video { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #0b1b30; }
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.g-item { margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.g-item img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .25s; }
.g-item a:hover img { transform: scale(1.04); }
.g-item .video { border-radius: 0; }
.g-item figcaption { padding: 8px 12px; font-size: .84rem; color: var(--ink-2); font-weight: 600; }

.schemes { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.scheme { position: relative; border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: #fff;
          display: flex; flex-direction: column; gap: 8px; }
.scheme.featured { border-color: var(--accent); box-shadow: 0 10px 26px rgba(255, 122, 0, .16); }
.scheme .ribbon { position: absolute; top: 12px; right: 12px; background: var(--grad-accent); color: #fff;
                  font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.scheme-img { width: calc(100% + 36px); margin: -18px -18px 6px; aspect-ratio: 16 / 9; object-fit: cover;
              border-radius: 14px 14px 0 0; }
.scheme .price { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; }
.scheme .price span { font-size: .85rem; color: var(--muted); font-weight: 600; }
.scheme .offer { background: var(--accent-soft); color: var(--accent-ink); font-size: .8rem; font-weight: 700;
                 padding: 5px 10px; border-radius: 8px; align-self: flex-start; }
.scheme .earn-line { background: var(--money-soft); color: var(--money); font-size: .82rem; font-weight: 700;
                     padding: 6px 10px; border-radius: 8px; }
.scheme .features { list-style: none; padding: 0; margin: 4px 0 8px; display: grid; gap: 6px; font-size: .88rem;
                    color: var(--ink-2); flex: 1; align-content: start; }
.scheme .features li::before { content: "✓"; color: var(--accent); font-weight: 800; margin-right: 8px; }
.scheme .btn { margin-top: auto; }
.share-kit { position: sticky; top: 20px; }
.showcase .cover { margin: -22px -22px 20px; border-radius: 14px 14px 0 0; box-shadow: none; }

@media (max-width: 640px) {
  .banner { aspect-ratio: 8 / 5; }
  .banner-text { max-width: 100%; padding: 16px 18px;
                 background: linear-gradient(0deg, rgba(14, 47, 87, .9) 0%, rgba(14, 47, 87, .2) 100%);
                 justify-content: flex-end; }
  .product-cover { margin: -16px -16px 14px; }
  .showcase .cover { margin: -16px -16px 16px; }
}
