:root{
    --bg:#ffffff;
    --bg2:#f7f8fb;
    --card:#ffffff;
    --text:#0f172a;      /* slate-900 */
    --muted:#475569;     /* slate-600 */
    --line:rgba(15,23,42,.12);
    --shadow:0 18px 45px rgba(15,23,42,.10);
    --radius:16px;
    --radius2:22px;
  
    --primary1:#2563eb;  /* blue-600 */
    --primary2:#7c3aed;  /* violet-600 */
    --good:#16a34a;      /* green-600 */
  }
  
  *{box-sizing:border-box}
  html,body{height:100%}
  
  body{
    margin:0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
    background:
      radial-gradient(1200px 600px at 10% 0%, rgba(37,99,235,.10), transparent 60%),
      radial-gradient(900px 520px at 85% 10%, rgba(124,58,237,.10), transparent 60%),
      linear-gradient(180deg, #ffffff, var(--bg2) 55%, #ffffff);
    color:var(--text);
  }
  
  a{color:inherit; text-decoration:none}
  .container{max-width:1120px; margin:0 auto; padding:0 20px}
  
  .site-header{
    position:sticky; top:0; z-index:9999;
    background:rgba(255,255,255,.82);
    backdrop-filter:saturate(160%) blur(10px);
    border-bottom:1px solid var(--line);
  }
  .header-inner{
    height:72px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
  }
  
  .logo{display:flex; align-items:center; gap:10px}
  .logo-mark{
    width:18px; height:18px; border-radius:6px;
    background:linear-gradient(135deg, var(--primary1), var(--primary2));
    box-shadow:0 0 0 6px rgba(124,58,237,.10);
  }
  .logo-text{font-weight:900; letter-spacing:.2px}
  
  .nav{display:none; gap:18px; color:var(--muted); font-weight:700}
  .nav a:hover{color:var(--text)}
  .header-cta{display:flex; gap:10px}
  
  .btn{
    display:inline-flex; align-items:center; justify-content:center;
    padding:10px 14px;
    border-radius:12px;
    border:1px solid var(--line);
    background:rgba(255,255,255,.75);
    color:var(--text);
    font-weight:800;
    transition:transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease, opacity .15s ease;
  }
  .btn:hover{transform:translateY(-1px); border-color:rgba(15,23,42,.18); box-shadow:0 10px 26px rgba(15,23,42,.08)}
  .btn:active{transform:translateY(0)}
  .btn-lg{padding:12px 16px; border-radius:14px}
  
  .btn-primary{
    border-color:transparent;
    color:#fff;
    background:linear-gradient(135deg, var(--primary1), var(--primary2));
    box-shadow:0 14px 30px rgba(37,99,235,.18);
  }
  .btn-primary:hover{opacity:.96}
  
  .btn-ghost{
    background:rgba(255,255,255,.55);
  }
  
  .hero{padding:62px 0 24px}
  .hero-grid{
    display:grid;
    grid-template-columns: 1.15fr .85fr;
    gap:22px;
    align-items:start;
  }
  
  .pill{
    display:inline-flex;
    padding:7px 10px;
    border-radius:999px;
    border:1px solid var(--line);
    color:var(--muted);
    font-weight:800;
    background:rgba(255,255,255,.70);
    margin-bottom:14px;
  }
  
  .hero h1{font-size:44px; line-height:1.05; margin:0 0 12px}
  .subhead{font-size:16.5px; line-height:1.65; color:var(--muted); margin:0 0 18px}
  
  .hero-actions{display:flex; gap:12px; flex-wrap:wrap; margin:18px 0 14px}
  
  .trust-row{display:flex; flex-wrap:wrap; gap:10px; margin-top:10px}
  .trust-item{
    padding:8px 10px;
    border:1px solid var(--line);
    border-radius:999px;
    background:rgba(255,255,255,.70);
    color:var(--muted);
    font-weight:800;
    font-size:13px;
  }
  
  .hero-card .card{
    border-radius:var(--radius2);
    border:1px solid rgba(15,23,42,.10);
    background:rgba(255,255,255,.85);
    box-shadow:var(--shadow);
    padding:18px 18px 16px;
  }
  .card-title{font-weight:950; margin-bottom:10px}
  
  .steps{margin:0; padding:0; list-style:none; display:grid; gap:10px}
  .steps li{display:grid; grid-template-columns:18px 1fr; gap:10px; align-items:start; color:var(--muted)}
  .step-dot{
    width:10px; height:10px; margin-top:5px;
    border-radius:999px;
    background:rgba(15,23,42,.22);
    box-shadow:0 0 0 6px rgba(22,163,74,.10);
  }
  .card-note{
    margin-top:12px;
    padding:10px 12px;
    border-radius:14px;
    border:1px solid rgba(22,163,74,.20);
    background:rgba(22,163,74,.07);
    color:rgba(15,23,42,.92);
  }
  .card-actions{display:flex; gap:10px; flex-wrap:wrap; margin-top:12px}
  
  .metrics{padding:14px 0 34px}
  .metrics-grid{
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    gap:12px;
  }
  .metric{
    padding:14px 14px;
    border:1px solid var(--line);
    border-radius:var(--radius);
    background:rgba(255,255,255,.75);
    box-shadow:0 10px 24px rgba(15,23,42,.06);
  }
  .metric-num{font-weight:950; font-size:18px}
  .metric-label{color:var(--muted); margin-top:3px; font-weight:750}
  
  .section{padding:54px 0}
  .section.alt{
    background:linear-gradient(180deg, rgba(247,248,251,.95), rgba(247,248,251,.65));
    border-top:1px solid var(--line);
    border-bottom:1px solid var(--line);
  }
  
  .section-head{margin-bottom:18px}
  .section-head h2{margin:0 0 6px; font-size:28px}
  .muted{color:var(--muted)}
  
  .grid-3{display:grid; grid-template-columns: repeat(3, 1fr); gap:12px}
  .grid-2{display:grid; grid-template-columns: repeat(2, 1fr); gap:12px}
  
  .panel{
    border:1px solid var(--line);
    border-radius:var(--radius);
    background:rgba(255,255,255,.75);
    box-shadow:0 10px 24px rgba(15,23,42,.06);
    padding:16px;
  }
  .panel-title{font-weight:950; margin-bottom:8px}
  .panel-actions{display:flex; gap:10px; flex-wrap:wrap; margin-top:14px}
  
  .bullets{margin:0; padding-left:18px; color:var(--muted); display:grid; gap:8px}
  .bullets b{color:var(--text)}
  
  .callout{
    margin-top:14px;
    padding:16px;
    border-radius:var(--radius);
    border:1px solid rgba(37,99,235,.20);
    background:rgba(37,99,235,.06);
  }
  .callout-title{font-weight:950; margin-bottom:6px}
  .callout-text{color:var(--muted); line-height:1.6}
  
  .chips{display:flex; flex-wrap:wrap; gap:10px}
  .chip{
    padding:8px 10px;
    border-radius:999px;
    border:1px solid var(--line);
    background:rgba(255,255,255,.80);
    color:var(--muted);
    font-weight:850;
    font-size:13px;
  }
  .divider{height:1px; background:var(--line); margin:14px 0}
  
  .faq{display:grid; gap:10px}
  details{
    border:1px solid var(--line);
    border-radius:var(--radius);
    background:rgba(255,255,255,.80);
    box-shadow:0 10px 24px rgba(15,23,42,.06);
    padding:12px 14px;
  }
  summary{
    cursor:pointer;
    font-weight:950;
    outline:none;
  }
  .faq-body{color:var(--muted); margin-top:8px; line-height:1.6}
  
  .bottom-cta{
    margin-top:18px;
    border:1px solid rgba(124,58,237,.18);
    background:rgba(124,58,237,.06);
    border-radius:var(--radius);
    padding:16px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
  }
  .bottom-cta-title{font-weight:950; font-size:18px}
  
  .footer{padding:26px 0 34px}
  .footer-inner{
    display:flex;
    justify-content:space-between;
    gap:16px;
    align-items:flex-start;
    border-top:1px solid var(--line);
    padding-top:18px;
  }
  .footer-brand{font-weight:950}
  .footer-links{display:flex; gap:14px; color:var(--muted); font-weight:850}
  .footer-links a:hover{color:var(--text)}
  
  /* Responsive */
  @media (max-width: 980px){
    .hero-grid{grid-template-columns:1fr}
    .metrics-grid{grid-template-columns:1fr}
    .grid-3{grid-template-columns:1fr}
    .grid-2{grid-template-columns:1fr}
    .bottom-cta{flex-direction:column; align-items:flex-start}
  }
  @media (min-width: 980px){
    .nav{display:flex}
  }

  /* ===== Driver page (ConfirmReady) ===== */

.page{min-height:60vh}
.page-grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:12px;
  align-items:start;
}
.page-panel{padding:18px}
.page-top{margin-bottom:12px}
.page-title{margin:0 0 6px; font-size:34px; line-height:1.1}
.page-sub{margin:0 0 10px; line-height:1.6}

.status-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:10px;
}
.status-chip{
  padding:8px 10px;
  border-radius:999px;
  font-weight:850;
  font-size:13px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.75);
}
.status-chip-blue{border-color:rgba(37,99,235,.18); background:rgba(37,99,235,.06); color:#1d4ed8}
.status-chip-purple{border-color:rgba(124,58,237,.18); background:rgba(124,58,237,.06); color:#6d28d9}
.status-chip-green{border-color:rgba(22,163,74,.18); background:rgba(22,163,74,.06); color:#15803d}

/* colored pills */
.pill-blue{border-color:rgba(37,99,235,.18); background:rgba(37,99,235,.06)}
.pill-purple{border-color:rgba(124,58,237,.18); background:rgba(124,58,237,.06)}

/* event card with accent */
.event-card{
  border:1px solid var(--line);
  background:rgba(255,255,255,.80);
  border-radius:var(--radius);
  box-shadow:0 10px 24px rgba(15,23,42,.06);
  padding:14px;
  margin:14px 0 14px;
  position:relative;
  overflow:hidden;
}
.event-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:8px;
}
.event-badge{
  display:inline-flex;
  align-items:center;
  padding:7px 10px;
  border-radius:999px;
  font-weight:900;
  font-size:12px;
  border:1px solid rgba(124,58,237,.18);
  background:rgba(124,58,237,.06);
  color:#6d28d9;
}
.event-accent{
  width:92px;
  height:10px;
  border-radius:999px;
  background:linear-gradient(90deg, rgba(37,99,235,.45), rgba(124,58,237,.45));
}

.event-row{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:9px 0;
  border-bottom:1px solid rgba(15,23,42,.08);
}
.event-row:last-child{border-bottom:none}
.event-label{color:var(--muted); font-weight:850}
.event-value{font-weight:900}

/* tags */
.tag{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  font-weight:900;
  font-size:12px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.80);
}
.tag-purple{border-color:rgba(124,58,237,.18); background:rgba(124,58,237,.06); color:#6d28d9}
.tag-green{border-color:rgba(22,163,74,.18); background:rgba(22,163,74,.06); color:#15803d}

/* form */
.form{margin-top:6px}
.form-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:12px;
}
.field{display:flex; flex-direction:column; gap:7px}
.label{font-weight:900; color:rgba(15,23,42,.95)}
.input{
  border:1px solid rgba(15,23,42,.14);
  background:rgba(255,255,255,.92);
  color:var(--text);
  border-radius:14px;
  padding:12px 12px;
  outline:none;
  font-weight:750;
}
.input:focus{
  border-color:rgba(37,99,235,.35);
  box-shadow:0 0 0 6px rgba(37,99,235,.12);
}
.form-grid .field:nth-child(3){grid-column:1 / -1}

/* policy box + colored tiles */
.policy-box{
  margin-top:14px;
  border:1px solid rgba(37,99,235,.18);
  background:
    radial-gradient(520px 200px at 20% 0%, rgba(37,99,235,.10), transparent 65%),
    radial-gradient(520px 200px at 80% 10%, rgba(124,58,237,.10), transparent 65%),
    rgba(255,255,255,.85);
  border-radius:var(--radius);
  padding:14px;
  box-shadow:0 10px 24px rgba(15,23,42,.06);
}
.policy-title{
  font-weight:950;
  margin-bottom:10px;
  display:flex;
  align-items:center;
  gap:10px;
}

.policy-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:10px;
}
.policy-item{
  border:1px solid rgba(15,23,42,.10);
  background:rgba(255,255,255,.92);
  border-radius:14px;
  padding:10px;
  box-shadow:0 8px 18px rgba(15,23,42,.05);
}
.policy-item-blue{border-color:rgba(37,99,235,.18); background:rgba(37,99,235,.04)}
.policy-item-purple{border-color:rgba(124,58,237,.18); background:rgba(124,58,237,.04)}
.policy-item-green{border-color:rgba(22,163,74,.18); background:rgba(22,163,74,.04)}

.policy-k{color:var(--muted); font-weight:900; font-size:13px}
.policy-v{font-weight:950; margin-top:3px}

.policy-note{margin-top:10px; line-height:1.55}
.policy-check{margin-top:10px}

.check{
  display:flex;
  gap:10px;
  align-items:flex-start;
  color:rgba(15,23,42,.95);
  font-weight:800;
}
.check input{margin-top:4px}
.link{text-decoration:underline; text-underline-offset:3px}

.actions{display:flex; gap:10px; flex-wrap:wrap; margin-top:14px}
.fineprint{margin-top:10px; font-weight:700}

/* right panel */
.side-top{margin-bottom:10px}
.side-title{font-weight:950; margin:8px 0 0}
.side-steps{margin:0; padding:0; list-style:none; display:grid; gap:10px}
.side-steps li{display:grid; grid-template-columns:18px 1fr; gap:10px; align-items:start; color:var(--muted)}
.side-dot{
  width:10px; height:10px; margin-top:5px;
  border-radius:999px;
  background:rgba(15,23,42,.22);
  box-shadow:0 0 0 6px rgba(37,99,235,.10);
}
.side-dot-blue{box-shadow:0 0 0 6px rgba(37,99,235,.12)}
.side-dot-purple{box-shadow:0 0 0 6px rgba(124,58,237,.12)}
.side-dot-green{box-shadow:0 0 0 6px rgba(22,163,74,.12)}

.mini-callout{
  margin-top:12px;
  border:1px solid rgba(15,23,42,.12);
  background:rgba(255,255,255,.82);
  border-radius:var(--radius);
  padding:12px;
}
.mini-callout-warn{
  border-color:rgba(245,158,11,.25);
  background:rgba(245,158,11,.08);
}
.mini-title{font-weight:950; margin-bottom:6px}

.small{font-size:13px; line-height:1.5}
.sticky{position:sticky; top:86px}

@media (max-width: 980px){
  .page-grid{grid-template-columns:1fr}
  .form-grid{grid-template-columns:1fr}
  .policy-grid{grid-template-columns:1fr}
  .sticky{position:static}
}

/* ===== Extra color accents (index) ===== */
.pill-blue{border-color:rgba(37,99,235,.18); background:rgba(37,99,235,.06)}
.pill-purple{border-color:rgba(124,58,237,.18); background:rgba(124,58,237,.06)}
.pill-green{border-color:rgba(22,163,74,.18); background:rgba(22,163,74,.06)}

.trust-blue{border-color:rgba(37,99,235,.18); background:rgba(37,99,235,.06); color:#1d4ed8}
.trust-purple{border-color:rgba(124,58,237,.18); background:rgba(124,58,237,.06); color:#6d28d9}
.trust-green{border-color:rgba(22,163,74,.18); background:rgba(22,163,74,.06); color:#15803d}

.mini-badges{display:flex; flex-wrap:wrap; gap:10px; margin-top:12px}
.mini-badge{
  display:inline-flex;
  padding:8px 10px;
  border-radius:999px;
  font-weight:900;
  font-size:12px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.80);
}
.mini-badge-blue{border-color:rgba(37,99,235,.18); background:rgba(37,99,235,.06); color:#1d4ed8}
.mini-badge-purple{border-color:rgba(124,58,237,.18); background:rgba(124,58,237,.06); color:#6d28d9}
.mini-badge-amber{border-color:rgba(245,158,11,.22); background:rgba(245,158,11,.10); color:#b45309}

/* Card + dots */
.card-gradient{
  background:
    radial-gradient(520px 220px at 20% 0%, rgba(37,99,235,.12), transparent 65%),
    radial-gradient(520px 220px at 80% 10%, rgba(124,58,237,.12), transparent 65%),
    rgba(255,255,255,.90);
}
.dot-blue{box-shadow:0 0 0 6px rgba(37,99,235,.12)}
.dot-purple{box-shadow:0 0 0 6px rgba(124,58,237,.12)}
.dot-green{box-shadow:0 0 0 6px rgba(22,163,74,.12)}

.note-green{
  border-color:rgba(22,163,74,.22);
  background:rgba(22,163,74,.07);
}

/* Metrics color variants */
.metric-blue{border-color:rgba(37,99,235,.18); background:rgba(37,99,235,.04)}
.metric-purple{border-color:rgba(124,58,237,.18); background:rgba(124,58,237,.04)}
.metric-green{border-color:rgba(22,163,74,.18); background:rgba(22,163,74,.04)}

/* Panel color variants */
.panel-blue{border-color:rgba(37,99,235,.16); background:rgba(37,99,235,.035)}
.panel-purple{border-color:rgba(124,58,237,.16); background:rgba(124,58,237,.035)}
.panel-green{border-color:rgba(22,163,74,.16); background:rgba(22,163,74,.035)}
.panel-amber{border-color:rgba(245,158,11,.18); background:rgba(245,158,11,.06)}

/* Callout variant */
.callout-purple{
  border-color:rgba(124,58,237,.18);
  background:rgba(124,58,237,.06);
}

/* Chips colors */
.chip-blue{border-color:rgba(37,99,235,.18); background:rgba(37,99,235,.06); color:#1d4ed8}
.chip-purple{border-color:rgba(124,58,237,.18); background:rgba(124,58,237,.06); color:#6d28d9}
.chip-green{border-color:rgba(22,163,74,.18); background:rgba(22,163,74,.06); color:#15803d}
.chip-amber{border-color:rgba(245,158,11,.22); background:rgba(245,158,11,.10); color:#b45309}

/* CTA gradient */
.bottom-cta-gradient{
  border-color:rgba(37,99,235,.18);
  background:
    radial-gradient(520px 220px at 20% 0%, rgba(37,99,235,.10), transparent 65%),
    radial-gradient(520px 220px at 80% 10%, rgba(124,58,237,.10), transparent 65%),
    rgba(255,255,255,.85);
}

/* Footer buttons as links */
.footer-link{
  appearance:none;
  border:none;
  background:transparent;
  padding:0;
  cursor:pointer;
  color:inherit;
  font:inherit;
  font-weight:850;
}
.footer-link:hover{color:var(--text)}

/* ===== Pricing section ===== */
.pricing-grid{
  display:grid;
  grid-template-columns: 1fr .9fr;
  gap:12px;
  align-items:start;
}

.pricing-card{
  border:1px solid rgba(124,58,237,.18);
  background:
    radial-gradient(520px 220px at 20% 0%, rgba(37,99,235,.10), transparent 65%),
    radial-gradient(520px 220px at 80% 10%, rgba(124,58,237,.10), transparent 65%),
    rgba(255,255,255,.90);
  border-radius:var(--radius2);
  box-shadow:var(--shadow);
  padding:18px;
}

.pricing-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.pricing-badge{
  display:inline-flex;
  padding:7px 10px;
  border-radius:999px;
  font-weight:950;
  font-size:12px;
  border:1px solid rgba(22,163,74,.18);
  background:rgba(22,163,74,.06);
  color:#15803d;
}

.pricing-pill{
  display:inline-flex;
  padding:7px 10px;
  border-radius:999px;
  font-weight:950;
  font-size:12px;
  border:1px solid rgba(37,99,235,.18);
  background:rgba(37,99,235,.06);
  color:#1d4ed8;
}

.pricing-name{margin-top:10px; font-weight:950; font-size:18px}
.pricing-price{margin-top:8px; display:flex; align-items:baseline; gap:8px}
.pricing-amount{font-weight:1000; font-size:46px; line-height:1}
.pricing-term{font-weight:900; color:var(--muted)}

.pricing-list{
  margin:12px 0 0;
  padding-left:18px;
  color:var(--muted);
  display:grid;
  gap:8px;
  font-weight:780;
}

.pricing-actions{
  margin-top:14px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.pricing-footnote{margin-top:10px; font-weight:700}

@media (max-width: 980px){
  .pricing-grid{grid-template-columns:1fr}
}

/* ===== Modals ===== */
body.modal-open{overflow:hidden}

.modal-backdrop{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,.45);
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
  z-index:999;
}

.modal-backdrop.open{display:flex}

.modal{
  width:min(720px, 100%);
  border-radius:22px;
  border:1px solid rgba(15,23,42,.12);
  background:
    radial-gradient(520px 220px at 20% 0%, rgba(37,99,235,.10), transparent 65%),
    radial-gradient(520px 220px at 80% 10%, rgba(124,58,237,.10), transparent 65%),
    rgba(255,255,255,.96);
  box-shadow:0 30px 80px rgba(15,23,42,.22);
  overflow:hidden;
}

.modal-lg{width:min(880px, 100%)}

.modal-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 16px;
  border-bottom:1px solid rgba(15,23,42,.10);
  background:rgba(255,255,255,.70);
}

.modal-title{font-weight:1000; letter-spacing:.2px}

.modal-close{
  width:42px; height:42px;
  border-radius:12px;
  border:1px solid rgba(15,23,42,.12);
  background:rgba(255,255,255,.85);
  cursor:pointer;
  font-size:22px;
  line-height:1;
}
.modal-close:hover{box-shadow:0 10px 26px rgba(15,23,42,.10)}

.modal-body{padding:16px}

.modal-form .modal-grid{grid-template-columns: repeat(2, 1fr)}
.modal-form textarea.input{resize:vertical}

.modal-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:14px;
}

/* tabs */
.tabbar{
  display:flex;
  gap:10px;
  padding:10px;
  border:1px solid rgba(15,23,42,.10);
  border-radius:16px;
  background:rgba(255,255,255,.75);
  margin-bottom:12px;
}

.tab{
  border:1px solid rgba(15,23,42,.10);
  background:rgba(255,255,255,.85);
  border-radius:14px;
  padding:10px 12px;
  font-weight:950;
  cursor:pointer;
}
.tab:hover{box-shadow:0 10px 24px rgba(15,23,42,.08)}
.tab-active{
  border-color:rgba(124,58,237,.20);
  background:rgba(124,58,237,.08);
  color:#6d28d9;
}

.tabpanel{display:none}
.tabpanel-active{display:block}

.legal-h{margin:6px 0 8px}
.legal-list{
  margin:0;
  padding-left:18px;
  color:var(--muted);
  display:grid;
  gap:8px;
  font-weight:750;
}
.legal-note{
  margin-top:12px;
  border:1px solid rgba(245,158,11,.22);
  background:rgba(245,158,11,.10);
  border-radius:14px;
  padding:10px 12px;
  font-weight:850;
  color:#92400e;
}

@media (max-width: 720px){
  .modal-form .modal-grid{grid-template-columns:1fr}
}

/* carrier new-link extras */
.section-mini{margin:10px 0 10px}
.section-mini-title{font-weight:1000}
.section-mini-sub{margin-top:4px}

.input-inline{
  width:110px;
  display:inline-flex;
  padding:10px 10px;
}

.currency{font-weight:1000; margin-right:6px}

.result-box{
  margin-top:14px;
  border:1px solid rgba(22,163,74,.20);
  background:rgba(22,163,74,.06);
  border-radius:var(--radius);
  padding:14px;
}
.result-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
}
.url-row{
  display:flex;
  gap:10px;
  margin-top:8px;
}
.url-row .input{flex:1}
.result-actions{display:flex; gap:10px; flex-wrap:wrap; margin-top:12px}

.risk-box{
  border:1px solid rgba(15,23,42,.12);
  border-radius:16px;
  background:rgba(255,255,255,.80);
  padding:12px;
}
.risk-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:8px 0;
  border-bottom:1px solid rgba(15,23,42,.08);
}
.risk-row:last-child{border-bottom:none}
.risk-label{font-weight:900; color:var(--muted)}
.risk-pill{
  padding:7px 10px;
  border-radius:999px;
  font-weight:950;
  font-size:12px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.80);
}
.risk-high{border-color:rgba(239,68,68,.22); background:rgba(239,68,68,.08); color:#b91c1c}
.risk-low{border-color:rgba(22,163,74,.20); background:rgba(22,163,74,.08); color:#15803d}

/* auth layout */
.auth-grid{
    display:grid;
    grid-template-columns: 1.05fr .95fr;
    gap:12px;
    align-items:start;
  }
  .auth-panel{padding:18px}
  .auth-form-grid{grid-template-columns: repeat(2, 1fr)}
  @media (max-width: 980px){
    .auth-grid{grid-template-columns:1fr}
    .auth-form-grid{grid-template-columns:1fr}
  }

  /* ===== Dashboard skeleton ===== */
.dash-top{
    display:grid;
    grid-template-columns: 1fr;
    gap:12px;
    margin-bottom:12px;
  }
  .dash-title{margin:6px 0 0; font-size:34px; line-height:1.1}
  .dash-sub{margin:6px 0 0; line-height:1.6}
  
  .dash-kpis{
    display:grid;
    grid-template-columns: repeat(4, 1fr);
    gap:12px;
  }
  .kpi{
    border:1px solid rgba(15,23,42,.12);
    background:rgba(255,255,255,.85);
    border-radius:18px;
    padding:14px;
    box-shadow:0 10px 24px rgba(15,23,42,.06);
  }
  .kpi-label{font-weight:900; color:var(--muted)}
  .kpi-value{font-weight:1000; font-size:34px; margin-top:6px}
  .kpi-sub{margin-top:6px; font-weight:750}
  
  .kpi-blue{border-color:rgba(37,99,235,.18); background:rgba(37,99,235,.04)}
  .kpi-purple{border-color:rgba(124,58,237,.18); background:rgba(124,58,237,.04)}
  .kpi-green{border-color:rgba(22,163,74,.18); background:rgba(22,163,74,.04)}
  .kpi-amber{border-color:rgba(245,158,11,.22); background:rgba(245,158,11,.08)}
  
  .plan-banner{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    border:1px solid rgba(37,99,235,.18);
    background:
      radial-gradient(520px 220px at 20% 0%, rgba(37,99,235,.10), transparent 65%),
      radial-gradient(520px 220px at 80% 10%, rgba(124,58,237,.10), transparent 65%),
      rgba(255,255,255,.88);
    border-radius:18px;
    padding:14px;
    box-shadow:0 10px 24px rgba(15,23,42,.06);
    margin:12px 0;
  }
  .plan-title{font-weight:950}
  .plan-sub{margin-top:2px}
  .plan-actions{display:flex; gap:10px; flex-wrap:wrap}
  
  .dash-grid{
    display:grid;
    grid-template-columns: 1.25fr .75fr;
    gap:12px;
    align-items:start;
  }
  .dash-panel{padding:16px}
  .panel-head{
    display:flex;
    justify-content:space-between;
    gap:12px;
    align-items:flex-start;
    margin-bottom:10px;
  }
  .panel-badges{display:flex; gap:8px; flex-wrap:wrap}
  .panel-gradient{
    background:
      radial-gradient(520px 220px at 20% 0%, rgba(37,99,235,.10), transparent 65%),
      radial-gradient(520px 220px at 80% 10%, rgba(124,58,237,.10), transparent 65%),
      rgba(255,255,255,.88);
  }
  
  .quick-actions{
    display:flex;
    flex-direction:column;
    gap:10px;
    margin-top:10px;
  }
  
  .table-wrap{
    border:1px solid rgba(15,23,42,.10);
    border-radius:16px;
    overflow:hidden;
    background:rgba(255,255,255,.92);
  }
  .table{
    width:100%;
    border-collapse:collapse;
    font-size:14px;
  }
  .table thead th{
    text-align:left;
    padding:12px 12px;
    color:var(--muted);
    font-weight:950;
    background:rgba(255,255,255,.75);
    border-bottom:1px solid rgba(15,23,42,.08);
  }
  .table tbody td{
    padding:12px 12px;
    border-bottom:1px solid rgba(15,23,42,.06);
    vertical-align:top;
  }
  .table tbody tr:hover{background:rgba(37,99,235,.03)}
  .cell-strong{font-weight:950}
  .actions-cell{white-space:nowrap}
  .btn-sm{padding:8px 10px; border-radius:12px; font-weight:900}
  
  .status-pill{
    display:inline-flex;
    padding:7px 10px;
    border-radius:999px;
    font-weight:950;
    font-size:12px;
    border:1px solid var(--line);
    background:rgba(255,255,255,.80);
  }
  .status-pill-blue{border-color:rgba(37,99,235,.18); background:rgba(37,99,235,.06); color:#1d4ed8}
  .status-pill-purple{border-color:rgba(124,58,237,.18); background:rgba(124,58,237,.06); color:#6d28d9}
  .status-pill-green{border-color:rgba(22,163,74,.18); background:rgba(22,163,74,.06); color:#15803d}
  .status-pill-amber{border-color:rgba(245,158,11,.22); background:rgba(245,158,11,.10); color:#b45309}
  
  .table-footer{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:10px 4px 0;
  }
  .pager{display:flex; gap:8px; flex-wrap:wrap}
  
  .table-filters{display:flex; gap:8px; flex-wrap:wrap}
  .chip-btn{cursor:pointer}
  .chip-btn.is-active{
    box-shadow:0 10px 22px rgba(15,23,42,.10);
    transform:translateY(-1px);
  }
  
  .link-list{margin-top:10px; display:grid; gap:10px}
  .link-item{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:10px;
    border:1px solid rgba(15,23,42,.10);
    background:rgba(255,255,255,.85);
    border-radius:16px;
    padding:12px;
  }
  .link-right{display:flex; gap:8px; flex-wrap:wrap}
  
  .notify-box{margin-top:10px; display:grid; gap:10px}
  .notify-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:10px;
    border:1px solid rgba(15,23,42,.10);
    background:rgba(255,255,255,.85);
    border-radius:16px;
    padding:12px;
  }
  
  .details-grid{
    display:grid;
    grid-template-columns: repeat(2, 1fr);
    gap:12px;
  }
  
  @media (max-width: 980px){
    .dash-kpis{grid-template-columns: repeat(2, 1fr)}
    .dash-grid{grid-template-columns:1fr}
    .details-grid{grid-template-columns:1fr}
  }
  @media (max-width: 520px){
    .dash-kpis{grid-template-columns:1fr}
    .plan-banner{flex-direction:column; align-items:flex-start}
  }

  /* ===== Settings page ===== */
.settings-top{
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
    gap:12px;
    margin-bottom:12px;
    flex-wrap:wrap;
  }
  .save-bar{
    display:flex;
    align-items:center;
    gap:10px;
    border:1px solid rgba(15,23,42,.10);
    background:rgba(255,255,255,.85);
    border-radius:16px;
    padding:10px 12px;
    box-shadow:0 10px 24px rgba(15,23,42,.06);
  }
  
  .settings-grid{
    display:grid;
    grid-template-columns: 1.15fr .85fr;
    gap:12px;
    align-items:start;
  }
  .settings-panel{padding:16px}
  
  .notify-card{
    border:1px solid rgba(15,23,42,.10);
    background:rgba(255,255,255,.85);
    border-radius:16px;
    padding:12px;
    margin-top:10px;
  }
  .notify-row{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:10px;
  }
  
  .extra-emails{display:grid; gap:10px; margin-top:12px}
  .extra-email-row{
    display:grid;
    grid-template-columns: 1fr auto;
    gap:10px;
    align-items:center;
  }
  
  .toggle-list{display:grid; gap:10px; margin-top:10px}
  .toggle{
    display:flex;
    gap:10px;
    align-items:flex-start;
    padding:12px;
    border:1px solid rgba(15,23,42,.10);
    background:rgba(255,255,255,.85);
    border-radius:16px;
  }
  .toggle input{margin-top:4px}
  .toggle b{display:block; font-weight:950}
  
  .danger-zone{
    border:1px solid rgba(239,68,68,.18);
    background:rgba(239,68,68,.05);
    border-radius:16px;
    padding:12px;
  }
  .danger-actions{display:flex; gap:10px; flex-wrap:wrap; margin-top:10px}
  
  @media (max-width: 980px){
    .settings-grid{grid-template-columns:1fr}
  }

  /* ===== Billing page ===== */
.billing-top{
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
    gap:12px;
    flex-wrap:wrap;
    margin-bottom:12px;
  }
  .billing-actions-top{display:flex; gap:10px; flex-wrap:wrap}
  
  .billing-grid{
    display:grid;
    grid-template-columns: 1.15fr .85fr;
    gap:12px;
    align-items:start;
  }
  .billing-panel{padding:16px}
  
  .plan-card{
    border:1px solid rgba(15,23,42,.10);
    border-radius:18px;
    background:rgba(255,255,255,.88);
    padding:14px;
    display:grid;
    grid-template-columns: 1.2fr .8fr;
    gap:12px;
    box-shadow:0 10px 24px rgba(15,23,42,.06);
  }
  .plan-card-gradient{
    background:
      radial-gradient(520px 220px at 20% 0%, rgba(37,99,235,.10), transparent 65%),
      radial-gradient(520px 220px at 80% 10%, rgba(124,58,237,.10), transparent 65%),
      rgba(255,255,255,.90);
  }
  .plan-name{font-weight:1000; font-size:26px}
  .plan-desc{margin-top:6px; line-height:1.6}
  .plan-meta{
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    gap:10px;
    margin-top:12px;
  }
  .meta-strong{font-weight:950; margin-top:4px}
  .plan-features{display:flex; gap:8px; flex-wrap:wrap; margin-top:10px}
  .feature-pill{
    display:inline-flex;
    padding:7px 10px;
    border-radius:999px;
    font-weight:950;
    font-size:12px;
    border:1px solid rgba(15,23,42,.10);
    background:rgba(255,255,255,.80);
  }
  .feature-blue{border-color:rgba(37,99,235,.18); background:rgba(37,99,235,.06); color:#1d4ed8}
  .feature-purple{border-color:rgba(124,58,237,.18); background:rgba(124,58,237,.06); color:#6d28d9}
  .feature-green{border-color:rgba(22,163,74,.18); background:rgba(22,163,74,.06); color:#15803d}
  .feature-amber{border-color:rgba(245,158,11,.22); background:rgba(245,158,11,.10); color:#b45309}
  
  .plan-card-right{text-align:left}
  .price-big{font-weight:1000; font-size:36px; margin-bottom:4px}
  .plans-grid{
    display:grid;
    grid-template-columns: repeat(2, 1fr);
    gap:12px;
    margin-top:10px;
  }
  .plan-option{
    border:1px solid rgba(15,23,42,.10);
    border-radius:18px;
    background:rgba(255,255,255,.88);
    padding:14px;
    box-shadow:0 10px 24px rgba(15,23,42,.06);
  }
  .plan-option-top{
    display:flex;
    justify-content:space-between;
    align-items:baseline;
    gap:10px;
    margin-bottom:10px;
  }
  .plan-option-name{font-weight:1000; font-size:18px}
  .plan-option-price{font-weight:1000}
  .plan-option-blue{border-color:rgba(37,99,235,.18); background:rgba(37,99,235,.04)}
  .plan-option-purple{border-color:rgba(124,58,237,.18); background:rgba(124,58,237,.04)}
  
  .invoice-list{margin-top:10px; display:grid; gap:10px}
  .invoice-item{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:10px;
    border:1px solid rgba(15,23,42,.10);
    background:rgba(255,255,255,.88);
    border-radius:16px;
    padding:12px;
  }
  .invoice-right{display:flex; gap:8px; align-items:center; flex-wrap:wrap}
  
  .mini-badge-red{
    display:inline-flex;
    padding:6px 10px;
    border-radius:999px;
    font-weight:950;
    font-size:12px;
    border:1px solid rgba(239,68,68,.22);
    background:rgba(239,68,68,.08);
    color:#b91c1c;
  }
  
  .cancel-card{
    border:1px solid rgba(239,68,68,.18);
    background:rgba(239,68,68,.05);
    border-radius:16px;
    padding:12px;
  }
  .cancel-actions{margin-top:10px}
  
  @media (max-width: 980px){
    .billing-grid{grid-template-columns:1fr}
    .plan-card{grid-template-columns:1fr}
    .plan-meta{grid-template-columns:1fr}
    .plans-grid{grid-template-columns:1fr}
  }

  .is-logged-in .auth-gated { display: none !important; }

  .app-footer{
    margin-top:40px;
    padding:16px 24px;
    border-top:1px solid #e5e7eb;
    background:#fff;
    font-size:13px;
    color:#6b7280;
  }
  
  .footer-inner{
    display:flex;
    justify-content:space-between;
    align-items:center;
    max-width:1200px;
    margin:0 auto;
  }
  
  .footer-left{
    display:flex;
    gap:10px;
    align-items:center;
  }
  
  .footer-tag{
    color:#9ca3af;
  }
  
  .footer-links{
    display:flex;
    gap:18px;
  }
  
  .footer-links a{
    color:#374151;
    text-decoration:none;
  }
  
  .footer-links a:hover{
    text-decoration:underline;
  }