/* ============================================================================
   RedminePRO Billing — design system. One file, no build step, no runtime CDN.
   Light + dark via :root[data-theme]. Brand: #294bfd / #00f4c4 / #151516.
   ============================================================================ */

/* ---- self-hosted fonts ---- */
@font-face { font-family:"Inter"; font-weight:400; font-display:swap; src:url("../fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family:"Inter"; font-weight:500; font-display:swap; src:url("../fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family:"Inter"; font-weight:600; font-display:swap; src:url("../fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family:"Archivo"; font-weight:600; font-display:swap; src:url("../fonts/archivo-600.woff2") format("woff2"); }
@font-face { font-family:"Archivo"; font-weight:700; font-display:swap; src:url("../fonts/archivo-700.woff2") format("woff2"); }
@font-face { font-family:"Archivo"; font-weight:800; font-display:swap; src:url("../fonts/archivo-800.woff2") format("woff2"); }

/* ---- tokens ---- */
:root{
  --brand:#294bfd; --brand-600:#1e3ce0; --brand-050:#eef1ff;
  --mint:#00f4c4; --mint-ink:#036b56;
  --ink:#151516;

  --bg:#f5f6fb; --bg-2:#eef0f7; --surface:#ffffff; --surface-2:#fafbff;
  --text:#151516; --muted:#5b6472; --faint:#8a92a3;
  --border:#e6e8ef; --border-2:#d7dae4;
  --success:#0f9d6e; --success-bg:#e5fbf3;
  --warn:#b7791f; --warn-bg:#fff4e0;
  --danger:#d64545; --danger-bg:#ffecec;
  --ring:rgba(41,75,253,.35);
  --shadow-sm:0 1px 2px rgba(16,24,40,.06),0 1px 3px rgba(16,24,40,.05);
  --shadow:0 4px 12px rgba(16,24,40,.08),0 2px 4px rgba(16,24,40,.04);
  --shadow-lg:0 20px 40px -12px rgba(16,24,40,.22);
  /* Soft resting elevation for pricing/marketing cards so white cards lift off
     the light-grey page instead of sitting flat (light theme). */
  --card-rest:0 1px 2px rgba(16,24,40,.04),0 14px 30px -12px rgba(16,24,40,.14);
  --card-rest-lg:0 2px 6px rgba(16,24,40,.05),0 30px 55px -16px rgba(41,75,253,.24);
  --radius:14px; --radius-sm:10px; --radius-lg:22px;
  --step:8px; --maxw:1120px;
  --sans:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  --display:"Archivo","Inter",sans-serif;
  --grad:linear-gradient(135deg,#294bfd 0%,#5b6bff 55%,#00f4c4 140%);
  --grad-ink:linear-gradient(160deg,#1b1c22 0%,#151516 60%,#0c1740 130%);
}
:root[data-theme="dark"]{
  --brand:#5d78ff; --brand-600:#7288ff; --brand-050:#1a1f36;
  --mint:#00f4c4; --mint-ink:#5ff5da; --ink:#f4f5f7;
  --bg:#0d0e12; --bg-2:#121319; --surface:#17181f; --surface-2:#1c1e27;
  --text:#eceef4; --muted:#9aa2b2; --faint:#6b7180;
  --border:#262832; --border-2:#333644;
  --success:#34d399; --success-bg:#0f2b23;
  --warn:#f0b429; --warn-bg:#2c2410;
  --danger:#f77; --danger-bg:#2c1616;
  --ring:rgba(93,120,255,.45);
  --shadow-sm:0 1px 2px rgba(0,0,0,.4);
  --shadow:0 8px 24px rgba(0,0,0,.45);
  --shadow-lg:0 24px 48px -12px rgba(0,0,0,.6);
  /* On dark, the border does most of the separation — keep card shadows subtle. */
  --card-rest:0 2px 10px rgba(0,0,0,.4);
  --card-rest-lg:0 16px 40px -8px rgba(0,0,0,.55);
  --surface-2:#1c1e27;
  --grad-ink:linear-gradient(160deg,#15161c 0%,#0f1016 60%,#0a1230 130%);
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0; font-family:var(--sans); color:var(--text); background:var(--bg);
  font-size:15px; line-height:1.55; -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
/* Public marketing pages: a soft brand glow behind the hero so the top of the
   page reads as a designed surface, not a flat grey slab. Fixed so it stays put
   on scroll; subtle in both themes (tint follows --brand). */
.pub-page{
  background:
    radial-gradient(1100px 460px at 50% -6%, color-mix(in srgb,var(--brand) 12%,transparent), transparent 68%),
    radial-gradient(760px 380px at 100% 0%, color-mix(in srgb,var(--mint) 8%,transparent), transparent 60%),
    var(--bg);
  background-attachment:fixed;
}
h1,h2,h3,h4{font-family:var(--display); line-height:1.15; letter-spacing:-.02em; margin:0 0 .5em; font-weight:700; color:var(--text)}
h1{font-size:clamp(2rem,4vw,3.15rem); font-weight:800}
h2{font-size:clamp(1.5rem,2.6vw,2.1rem)}
h3{font-size:1.2rem}
a{color:var(--brand); text-decoration:none}
a:hover{text-decoration:underline}
p{margin:0 0 1em}
img{max-width:100%}
.muted{color:var(--muted)} .faint{color:var(--faint); font-size:.85rem}
.center{text-align:center}
.wrap{max-width:var(--maxw); margin:0 auto; padding:0 24px}
.mono{font-variant-numeric:tabular-nums}

/* ---- buttons ---- */
.btn{
  --bg:var(--brand); --fg:#fff;
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font:inherit; font-weight:600; font-size:.95rem; line-height:1;
  padding:12px 20px; border-radius:var(--radius-sm); border:1px solid transparent;
  background:var(--bg); color:var(--fg); cursor:pointer; white-space:nowrap;
  transition:transform .12s ease, box-shadow .12s ease, background .12s ease, filter .12s ease;
  box-shadow:var(--shadow-sm); text-decoration:none;
}
.btn:hover{transform:translateY(-1px); box-shadow:var(--shadow); text-decoration:none; filter:brightness(1.04)}
.btn:active{transform:translateY(0)}
.btn:focus-visible{outline:none; box-shadow:0 0 0 4px var(--ring)}
.btn.lg{padding:15px 28px; font-size:1.05rem}
.btn.block{width:100%}
.btn.secondary{--bg:transparent; --fg:var(--text); border-color:var(--border-2)}
.btn.secondary:hover{background:var(--bg-2)}
.btn.ghost{--bg:transparent; --fg:var(--brand); box-shadow:none}
.btn.ghost:hover{background:var(--brand-050); box-shadow:none}
.btn.danger{--bg:var(--danger)}
.btn.mint{--bg:var(--mint); --fg:#053b30}
.btn[disabled]{opacity:.5; pointer-events:none}

/* ---- cards & surfaces ---- */
.card{background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow-sm)}
.card.pad{padding:24px}
.card.pad-lg{padding:32px}
.stack>*+*{margin-top:16px}
.row{display:flex; gap:16px; flex-wrap:wrap}
.between{display:flex; align-items:center; justify-content:space-between; gap:12px}
.grid{display:grid; gap:20px}
.divider{height:1px; background:var(--border); margin:20px 0; border:0}

/* ---- pills / badges ---- */
.pill{display:inline-flex; align-items:center; gap:6px; padding:4px 11px; border-radius:999px; font-size:.78rem; font-weight:600; line-height:1.4}
.pill::before{content:""; width:7px; height:7px; border-radius:50%; background:currentColor; opacity:.9}
.pill.ok{color:var(--success); background:var(--success-bg)}
.pill.warn{color:var(--warn); background:var(--warn-bg)}
.pill.bad{color:var(--danger); background:var(--danger-bg)}
.pill.neutral{color:var(--muted); background:var(--bg-2)}
.pill.brand{color:var(--brand); background:var(--brand-050)}
.tag{display:inline-block; padding:3px 9px; border-radius:8px; font-size:.72rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase; background:var(--mint); color:#053b30}

/* ---- alerts / toasts ---- */
.alert{display:flex; gap:12px; padding:14px 16px; border-radius:var(--radius-sm); border:1px solid var(--border); background:var(--surface-2); font-size:.92rem}
.alert.warn{border-color:color-mix(in srgb,var(--warn) 40%,transparent); background:var(--warn-bg); color:var(--warn)}
.alert.bad{border-color:color-mix(in srgb,var(--danger) 40%,transparent); background:var(--danger-bg); color:var(--danger)}
.alert.ok{border-color:color-mix(in srgb,var(--success) 40%,transparent); background:var(--success-bg); color:var(--success)}
.toasts{position:fixed; top:18px; right:18px; z-index:60; display:flex; flex-direction:column; gap:10px; max-width:360px}
.toast{background:var(--surface); border:1px solid var(--border); border-left:4px solid var(--brand); border-radius:var(--radius-sm); padding:12px 16px; box-shadow:var(--shadow-lg); animation:slideIn .3s ease}
@keyframes slideIn{from{opacity:0; transform:translateX(20px)}to{opacity:1; transform:none}}

/* ---- forms ---- */
.field{margin-bottom:16px}
.field label,.lbl{display:block; font-size:.82rem; font-weight:600; color:var(--muted); margin-bottom:6px}
input[type=text],input[type=email],input[type=password],input[type=number],select,textarea{
  width:100%; font:inherit; font-size:.95rem; color:var(--text); background:var(--surface);
  border:1px solid var(--border-2); border-radius:var(--radius-sm); padding:11px 13px;
  transition:border .12s, box-shadow .12s;
}
input:focus,select:focus,textarea:focus{outline:none; border-color:var(--brand); box-shadow:0 0 0 4px var(--ring)}
.errorlist{list-style:none; margin:6px 0 0; padding:0; color:var(--danger); font-size:.85rem}
.help{font-size:.8rem; color:var(--faint); margin-top:5px}

/* ---- tables ---- */
.table-wrap{overflow-x:auto; border:1px solid var(--border); border-radius:var(--radius)}
table.data{width:100%; border-collapse:collapse; font-size:.92rem}
table.data th{text-align:left; font-size:.72rem; text-transform:uppercase; letter-spacing:.05em; color:var(--faint); font-weight:700; padding:12px 16px; background:var(--surface-2); border-bottom:1px solid var(--border)}
table.data td{padding:14px 16px; border-bottom:1px solid var(--border); vertical-align:middle}
table.data tr:last-child td{border-bottom:0}
table.data tbody tr{transition:background .12s}
table.data tbody tr:hover{background:var(--surface-2)}

/* ---- public shell ---- */
.pub-header{position:sticky; top:0; z-index:40; backdrop-filter:saturate(1.4) blur(10px); background:color-mix(in srgb,var(--bg) 82%,transparent); border-bottom:1px solid var(--border)}
.pub-header .wrap{display:flex; align-items:center; justify-content:space-between; height:66px}
.pub-nav{display:flex; align-items:center; gap:26px}
.pub-nav a{color:var(--muted); font-weight:500; font-size:.92rem}
.pub-nav a:hover{color:var(--text); text-decoration:none}
.pub-nav a.btn{color:var(--fg)}  /* button keeps its own (white) text, not the muted nav link colour */
.pub-nav a.btn:hover{color:var(--fg)}
.brand-logo{font-family:var(--display); font-weight:800; font-size:1.25rem; letter-spacing:-.03em; color:var(--text); display:inline-flex; align-items:center; gap:2px}
.brand-logo b{color:var(--brand)}
/* Logo-image brand mark (top-left header + bottom-left footer). The wordmark is
   dark ink, so on dark surfaces (dark theme) render it as a clean white lockup. */
.brand-logo--img{gap:0}
.brand-logo--img img{height:28px; width:auto; display:block}
.pub-footer .brand-logo--img img{height:24px}
:root[data-theme="dark"] .brand-logo--img img{filter:brightness(0) invert(1)}
/* The ops hero is dark in BOTH themes, so it already serves the light-on-dark
   asset. Exempt it from the invert above — that would flip white → black and
   make the logo vanish on the dark band. */
:root[data-theme="dark"] .ops-hero .brand-logo--img img{filter:none}
.pub-footer{border-top:1px solid var(--border); margin-top:80px; padding:44px 0; color:var(--muted); font-size:.9rem}
.pub-footer .wrap{display:flex; gap:24px; justify-content:space-between; flex-wrap:wrap}

/* theme toggle */
.theme-btn{background:transparent; border:1px solid var(--border-2); color:var(--muted); width:38px; height:38px; border-radius:10px; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; font-size:16px}
.theme-btn:hover{background:var(--bg-2); color:var(--text)}

/* ---- hero / marketing ---- */
.hero{padding:70px 0 40px; position:relative; overflow:hidden}
.hero .lead{font-size:1.15rem; color:var(--muted); max-width:34ch}
.eyebrow{display:inline-flex; align-items:center; gap:8px; font-size:.8rem; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color:var(--brand); background:var(--brand-050); padding:6px 12px; border-radius:999px; margin-bottom:18px}
.section{padding:56px 0}
.feature-grid{display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:20px}
.feature{padding:22px}
.feature .ic{width:44px; height:44px; border-radius:12px; background:var(--brand-050); color:var(--brand); display:flex; align-items:center; justify-content:center; font-size:20px; margin-bottom:14px}

/* ---- plan cards ---- */
.plans{display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:20px; align-items:stretch}
.plan{position:relative; display:flex; flex-direction:column; padding:28px; border:1px solid var(--border); border-radius:var(--radius-lg); background:var(--surface); box-shadow:var(--card-rest); transition:transform .16s, box-shadow .16s, border-color .16s; container-type:inline-size}
.plan:hover{transform:translateY(-4px); box-shadow:var(--shadow-lg)}
/* Featured card sits a step higher at rest and carries a soft brand wash at the
   top so it reads as the recommended plan without shouting. */
.plan.featured{box-shadow:var(--card-rest-lg); background:linear-gradient(180deg,var(--brand-050),var(--surface) 132px) padding-box,var(--grad) border-box; border:2px solid transparent}
/* Price scales to the card width so long amounts (e.g. annual $1,690.00 or INR
   ₹40,000.00) never overflow the card. Static font-size is the fallback for
   engines without container-query units. */
.plan .price{font-family:var(--display); font-weight:800; letter-spacing:-.03em; margin:8px 0 2px; line-height:1.05; font-size:2rem; font-size:clamp(1.4rem,12cqi,2.4rem)}
/* Period suffix is em-sized so "$140.83/month" scales as one unit with the
   container-query price and never overflows the card. */
.plan .price small{font-size:.44em; font-weight:600; color:var(--muted); font-family:var(--sans); letter-spacing:0}
.plan .price-note{font-size:.8rem; color:var(--muted); margin:0 0 6px; min-height:1.15em}
.plan ul.feat{list-style:none; padding:0; margin:16px 0 24px; display:flex; flex-direction:column; gap:10px; flex:1}
.plan ul.feat li{display:flex; gap:9px; font-size:.92rem; color:var(--muted)}
.plan ul.feat li::before{content:"✓"; color:var(--mint-ink); font-weight:800}
.most-popular{position:absolute; top:-13px; left:50%; transform:translateX(-50%)}

/* segmented toggle */
.seg{display:inline-flex; background:var(--bg-2); border:1px solid var(--border); border-radius:999px; padding:4px}
.seg a{padding:7px 16px; border-radius:999px; font-size:.88rem; font-weight:600; color:var(--muted)}
.seg a.on{background:var(--surface); color:var(--text); box-shadow:var(--shadow-sm)}
.seg a:hover{text-decoration:none; color:var(--text)}

/* ---- checkout ---- */
.checkout{display:grid; grid-template-columns:1fr 380px; gap:28px; align-items:start}
.summary{position:sticky; top:90px}
.summary .line{display:flex; justify-content:space-between; padding:8px 0; font-size:.92rem; color:var(--muted)}
.summary .total{display:flex; justify-content:space-between; font-family:var(--display); font-weight:800; font-size:1.5rem; padding-top:14px; margin-top:8px; border-top:2px solid var(--border)}
.region-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:10px}
.region{cursor:pointer; border:1.5px solid var(--border-2); border-radius:var(--radius-sm); padding:14px 12px; text-align:center; transition:.12s; background:var(--surface)}
.region:hover{border-color:var(--brand)}
.region input{position:absolute; opacity:0}
.region.on{border-color:var(--brand); background:var(--brand-050); box-shadow:0 0 0 3px var(--ring)}
.region .flag{font-size:24px}
.region .rc{font-weight:700; margin-top:4px}
.region .rn{font-size:.75rem; color:var(--muted)}

/* subdomain preview */
.subdomain{display:flex; align-items:stretch}
.subdomain input{border-top-right-radius:0; border-bottom-right-radius:0}
.subdomain .suffix{display:flex; align-items:center; padding:0 12px; background:var(--bg-2); border:1px solid var(--border-2); border-left:0; border-radius:0 var(--radius-sm) var(--radius-sm) 0; color:var(--muted); font-size:.9rem; white-space:nowrap}
.sub-ok{margin-top:6px; font-size:.82rem; font-weight:600; color:var(--success)}
.sub-bad{margin-top:6px; font-size:.82rem; font-weight:600; color:var(--danger)}
/* checkout plan picker */
.plan-picker{display:flex; flex-direction:column; gap:10px}
.planopt{display:flex; align-items:center; justify-content:space-between; gap:12px; cursor:pointer; border:1.5px solid var(--border-2); border-radius:var(--radius-sm); padding:14px 16px; transition:.12s; background:var(--surface)}
.planopt:hover{border-color:var(--brand)}
.planopt.on{border-color:var(--brand); background:var(--brand-050); box-shadow:0 0 0 3px var(--ring)}
.planopt input{position:absolute; opacity:0; pointer-events:none}
.planopt .pp-name{font-weight:700}
.planopt .pp-blurb{font-size:.8rem}
.planopt .pp-price{font-family:var(--display); font-weight:800; font-size:1.15rem; white-space:nowrap}
.trial-opt{display:flex; gap:10px; align-items:flex-start; padding:12px 14px; border:1.5px dashed var(--border-2); border-radius:var(--radius-sm); cursor:pointer; margin:6px 0 4px; font-size:.9rem}
.trial-opt:hover{border-color:var(--mint-ink)}
.trial-opt input{margin-top:3px}

/* ---- provisioning timeline ---- */
.timeline{list-style:none; padding:0; margin:24px 0; max-width:440px}
.timeline li{display:flex; gap:14px; padding-bottom:22px; position:relative}
.timeline li:not(:last-child)::after{content:""; position:absolute; left:15px; top:32px; bottom:0; width:2px; background:var(--border)}
.timeline .dot{width:32px; height:32px; border-radius:50%; flex:none; display:flex; align-items:center; justify-content:center; font-size:15px; background:var(--bg-2); color:var(--faint); border:2px solid var(--border); z-index:1}
.timeline li.done .dot{background:var(--success-bg); color:var(--success); border-color:var(--success)}
.timeline li.active .dot{background:var(--brand); color:#fff; border-color:var(--brand); animation:pulse 1.5s infinite}
.timeline li.done:not(:last-child)::after{background:var(--success)}
.timeline .t{font-weight:600} .timeline .s{font-size:.85rem; color:var(--muted)}
@keyframes pulse{0%,100%{box-shadow:0 0 0 0 var(--ring)}50%{box-shadow:0 0 0 8px transparent}}
.spinner{width:18px; height:18px; border:2.5px solid rgba(255,255,255,.4); border-top-color:#fff; border-radius:50%; display:inline-block; animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.progress{height:8px; background:var(--bg-2); border-radius:999px; overflow:hidden}
.progress>i{display:block; height:100%; background:var(--grad); border-radius:999px; transition:width .6s ease}

/* ---- app shell (portal) ---- */
.app{display:grid; grid-template-columns:248px 1fr; min-height:100vh}
.sidebar{background:var(--surface); border-right:1px solid var(--border); padding:20px 16px; position:sticky; top:0; height:100vh; display:flex; flex-direction:column}
.sidebar .brand-logo{padding:6px 10px 22px}
.side-nav{display:flex; flex-direction:column; gap:3px; flex:1}
.side-nav a{display:flex; align-items:center; gap:11px; padding:10px 12px; border-radius:10px; color:var(--muted); font-weight:500; font-size:.93rem}
.side-nav a .ic{width:20px; text-align:center; opacity:.8}
.side-nav a:hover{background:var(--bg-2); color:var(--text); text-decoration:none}
.side-nav a.on{background:var(--brand-050); color:var(--brand); font-weight:600}
/* top-right account dropdown */
.usermenu{position:relative}
.usermenu-btn{display:flex; align-items:center; gap:9px; background:transparent; border:1px solid transparent; border-radius:10px; padding:5px 8px 5px 6px; cursor:pointer; color:var(--text); font:inherit}
.usermenu-btn:hover{background:var(--bg-2); border-color:var(--border)}
.usermenu-name{font-size:.9rem; font-weight:600; max-width:160px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.usermenu-caret{color:var(--faint); font-size:.7rem}
.usermenu-drop{position:absolute; right:0; top:calc(100% + 8px); min-width:220px; background:var(--surface); border:1px solid var(--border); border-radius:12px; box-shadow:var(--shadow-lg); padding:6px; opacity:0; visibility:hidden; transform:translateY(-6px); transition:.14s; z-index:50}
.usermenu-drop.open{opacity:1; visibility:visible; transform:none}
.usermenu-head{padding:10px 12px 12px; border-bottom:1px solid var(--border); margin-bottom:6px; font-weight:600; font-size:.9rem}
.usermenu-drop a,.usermenu-drop button{display:flex; align-items:center; gap:10px; width:100%; text-align:left; padding:9px 12px; border-radius:8px; background:transparent; border:0; color:var(--text); font:inherit; font-size:.9rem; font-weight:500; cursor:pointer; text-decoration:none}
.usermenu-drop a:hover{background:var(--bg-2); text-decoration:none}
.usermenu-drop form{margin:0}
.usermenu-drop button:hover{background:var(--danger-bg); color:var(--danger)}
.usermenu-drop .ic{width:16px; text-align:center; opacity:.8}
.app-main{min-width:0; display:flex; flex-direction:column}
.topbar{height:64px; border-bottom:1px solid var(--border); background:color-mix(in srgb,var(--bg) 80%,transparent); backdrop-filter:blur(8px); position:sticky; top:0; z-index:30; display:flex; align-items:center; justify-content:space-between; padding:0 28px}
.app-body{padding:28px; max-width:960px; width:100%}
.avatar{width:34px; height:34px; border-radius:50%; background:var(--grad); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:.85rem}

/* dashboard hero */
.hero-card{background:var(--grad-ink); color:#fff; border-radius:var(--radius-lg); padding:30px; position:relative; overflow:hidden}
.hero-card::after{content:""; position:absolute; right:-60px; top:-60px; width:220px; height:220px; background:radial-gradient(circle,rgba(0,244,196,.25),transparent 70%)}
.hero-card h2,.hero-card h1{color:#fff}
.hero-card .big{font-family:var(--display); font-weight:800; font-size:2.2rem}
.stat-grid{display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:16px}
.stat{padding:18px 20px}
.stat .n{font-family:var(--display); font-weight:800; font-size:1.7rem; letter-spacing:-.02em}
.stat .l{font-size:.8rem; color:var(--muted); margin-top:2px}
.qa{display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:12px}
.qa a{display:flex; flex-direction:column; gap:8px; padding:18px; border:1px solid var(--border); border-radius:var(--radius); background:var(--surface); color:var(--text); font-weight:600; transition:.14s}
.qa a:hover{border-color:var(--brand); transform:translateY(-2px); box-shadow:var(--shadow); text-decoration:none}
.qa a .ic,.qa-tile .ic{font-size:20px}
.qa-tile{display:flex; flex-direction:column; gap:8px; padding:18px; border:1px solid var(--border); border-radius:var(--radius); background:var(--surface); color:var(--text); font:inherit; font-weight:600; text-align:left; cursor:pointer; transition:.14s}
.qa-tile:hover{border-color:var(--brand); transform:translateY(-2px); box-shadow:var(--shadow)}

/* card-brand tile */
.pm{display:flex; align-items:center; gap:14px; padding:16px 18px}
.pm .brandmark{width:46px; height:32px; border-radius:6px; background:linear-gradient(135deg,#1a1f36,#2a3564); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:800; font-size:.7rem; letter-spacing:.05em}

/* auth split */
.auth{min-height:100vh; display:grid; grid-template-columns:1fr 1fr}
.auth .brandside{background:var(--grad-ink); color:#fff; padding:56px; display:flex; flex-direction:column; justify-content:space-between; position:relative; overflow:hidden}
.auth .brandside::after{content:""; position:absolute; right:-80px; bottom:-80px; width:320px; height:320px; background:radial-gradient(circle,rgba(0,244,196,.22),transparent 70%)}
.auth .brandside h1{color:#fff; max-width:14ch}
.auth .formside{display:flex; align-items:center; justify-content:center; padding:40px; background:var(--bg)}
.auth .formcard{width:100%; max-width:400px}
.auth-quote{font-size:1.05rem; opacity:.9; line-height:1.6}

@media(max-width:900px){
  .checkout{grid-template-columns:1fr} .summary{position:static}
  .app{grid-template-columns:1fr} .sidebar{position:static; height:auto; flex-direction:row; align-items:center; overflow-x:auto} .side-nav{flex-direction:row}
  .auth{grid-template-columns:1fr} .auth .brandside{display:none}
}
