/* =========================================================
   HTMLSiteHost.com — shared stylesheet
   Two themes live in this one file:
   - Marketing theme (dark navy) — header, hero, trust strip, footer
   - App theme (light) — dashboard shell, sidebar, cards
   ========================================================= */

:root {
  --navy-950: #070f1f;
  --navy-900: #0a1628;
  --navy-800: #0d2140;
  --navy-700: #122a4d;
  --navy-600: #17335c;
  --navy-border: #1c3252;

  --teal-300: #5eead4;
  --teal-400: #2dd4bf;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --teal-soft: rgba(45, 212, 191, 0.12);
  --teal-soft-border: rgba(45, 212, 191, 0.35);

  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;

  --app-bg: #f6f8fb;
  --app-card: #ffffff;
  --app-border: #e5e9f0;
  --app-text: #1e293b;
  --app-muted: #64748b;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.10);

  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.page-home,
body.page-home {
  min-height: 100vh;
  background: #0a192f;
}
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  color: var(--app-text);
  background: var(--app-bg);
  -webkit-font-smoothing: antialiased;
}
body.page-home {
  color: #e2e8f0;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
.icon { width: 1em; height: 1em; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 13.5px; }

.btn-primary {
  background: linear-gradient(135deg, var(--teal-400), var(--teal-600));
  color: #04211d;
}
.btn-primary:hover { filter: brightness(1.06); }

.btn-outline-dark {
  background: transparent;
  border-color: var(--navy-600);
  color: #fff;
}
.btn-outline-dark:hover { border-color: var(--teal-400); background: rgba(45, 212, 191, 0.08); }

.btn-outline-light {
  background: #fff;
  border-color: var(--app-border);
  color: var(--app-text);
}
.btn-outline-light:hover { border-color: var(--teal-500); color: var(--teal-600); }

.btn-ghost-light {
  background: transparent;
  color: var(--app-muted);
  border-color: transparent;
}
.btn-ghost-light:hover { color: var(--app-text); }

.btn-teal-soft {
  background: var(--teal-soft);
  color: var(--teal-600);
  border-color: var(--teal-soft-border);
}
.btn-teal-soft:hover { background: rgba(45, 212, 191, 0.2); }

/* ---------- Marketing header ---------- */
.site-header {
  background: var(--navy-900);
  border-bottom: 1px solid var(--navy-border);
  position: sticky;
  top: 0;
  z-index: 40;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 18px; }
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--teal-300), var(--teal-600));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #04211d;
  flex-shrink: 0;
}
.brand-mark .icon { width: 18px; height: 18px; stroke-width: 2.4; }
.brand-name { color: #fff; font-weight: 700; }
.brand-tld { color: var(--teal-400); font-weight: 500; }

.nav-primary {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  color: var(--gray-300);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-actions { display: flex; align-items: center; gap: 18px; }
.nav-actions .login-link { color: var(--gray-300); font-size: 14.5px; font-weight: 500; }
.nav-actions .login-link:hover { color: #fff; }
.nav-toggle { display: none; }

/* ---------- Hero (used on marketing pages) ---------- */
.hero {
  background: radial-gradient(circle at 15% 0%, #0f2c4d 0%, var(--navy-900) 45%), var(--navy-900);
  padding: 76px 0 0;
  overflow: hidden;
}
body.page-home .hero {
  min-height: calc(100vh - 72px);
  background: radial-gradient(circle at 15% 0%, #0f2c4d 0%, #0a192f 45%), #0a192f;
}
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding-bottom: 64px; }
.hero.hero-narrow .container { grid-template-columns: 1fr; max-width: 780px; text-align: center; padding-bottom: 56px; }
.hero.hero-narrow .hero-stats { justify-content: center; }
.hero.hero-narrow .hero-actions { justify-content: center; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--teal-soft);
  border: 1px solid var(--teal-soft-border);
  color: var(--teal-300);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero h1 {
  color: #fff;
  font-size: 48px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}
.hero h1 .grad {
  background: linear-gradient(90deg, var(--teal-300), var(--teal-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
}
.hero p.lead {
  color: var(--gray-400);
  font-size: 17px;
  line-height: 1.6;
  max-width: 480px;
  margin-bottom: 28px;
}
.hero-stats { display: flex; flex-wrap: wrap; gap: 24px; margin-bottom: 30px; }
.hero-stats .stat { display: flex; align-items: center; gap: 8px; color: var(--gray-400); font-size: 14px; font-weight: 500; }
.hero-stats .stat .icon { color: var(--teal-400); width: 16px; height: 16px; }
.hero-actions { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.hero-fineprint { color: var(--gray-500); font-size: 13px; }

/* ---------- Drop zone card ---------- */
.dropzone-card {
  background: var(--navy-800);
  border: 1.5px dashed var(--navy-border);
  border-radius: var(--radius-xl);
  padding: 44px 32px;
  text-align: center;
  transition: border-color 0.2s ease;
}
.dropzone-card:hover, .dropzone-card.drag-over { border-color: var(--teal-400); background: #0e2745; }
.dropzone-icon {
  width: 60px; height: 60px;
  margin: 0 auto 20px;
  border-radius: var(--radius-md);
  background: #12294a;
  border: 1px solid var(--navy-border);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.dropzone-icon .icon { width: 26px; height: 26px; color: var(--gray-300); }
.dropzone-icon .tag {
  position: absolute; top: -8px; right: -14px;
  background: var(--teal-500); color: #04211d;
  font-size: 9.5px; font-weight: 800; letter-spacing: 0.03em;
  padding: 2px 6px; border-radius: 4px;
}
.dropzone-card h3 { color: #fff; font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.dropzone-card .browse-link { color: var(--teal-400); font-weight: 600; cursor: pointer; }
.dropzone-card .browse-link:hover { text-decoration: underline; }
.dropzone-card .hint { color: var(--gray-500); font-size: 13.5px; margin-top: 6px; }
.dropzone-card input[type="file"],
[data-dropzone] input[type="file"] { display: none; }

.dropzone-footer {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--navy-border);
  margin-top: 30px; padding-top: 18px;
  font-size: 13px; color: var(--gray-400);
}
.dropzone-footer .left { display: flex; align-items: center; gap: 8px; }
.dropzone-footer .left .icon { width: 15px; height: 15px; color: var(--teal-400); }
.dropzone-footer a { color: var(--gray-200); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.dropzone-footer a:hover { color: var(--teal-400); }

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--navy-950); border-top: 1px solid var(--navy-border); padding: 40px 0 44px; }
.trust-strip .caption { text-align: center; color: var(--gray-500); font-size: 13px; font-weight: 600; letter-spacing: 0.03em; margin-bottom: 30px; }
.trust-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; }
.trust-item { padding: 0 20px; border-left: 1px solid var(--navy-border); }
.trust-item:first-child { border-left: none; }
.trust-item .icon { width: 19px; height: 19px; color: var(--gray-400); margin-bottom: 12px; }
.trust-item h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.trust-item p { color: var(--gray-500); font-size: 12.5px; line-height: 1.5; }
.badge-soon {
  font-size: 9.5px; font-weight: 800; letter-spacing: 0.03em;
  color: var(--teal-300); background: var(--teal-soft); border: 1px solid var(--teal-soft-border);
  padding: 2px 6px; border-radius: 999px;
}

/* ---------- Generic dark section (for inner marketing pages) ---------- */
.page-hero { background: var(--navy-900); padding: 56px 0 48px; border-bottom: 1px solid var(--navy-border); }
.page-hero .eyebrow { color: var(--teal-400); font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 14px; }
.page-hero h1 { color: #fff; font-size: 38px; font-weight: 800; line-height: 1.15; margin-bottom: 14px; max-width: 680px; }
.page-hero p { color: var(--gray-400); font-size: 16px; line-height: 1.6; max-width: 620px; }

.section { padding: 64px 0; }
.section-light { background: #fff; }
.section-tint { background: var(--gray-100); }
.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section-head h2 { font-size: 30px; font-weight: 800; margin-bottom: 12px; color: var(--app-text); }
.section-head p { color: var(--app-muted); font-size: 16px; line-height: 1.6; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.feature-card {
  background: #fff; border: 1px solid var(--app-border); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow-sm);
}
.feature-card .icon-wrap {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--teal-soft); color: var(--teal-600);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.feature-card .icon-wrap .icon { width: 20px; height: 20px; }
.feature-card h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--app-muted); font-size: 14px; line-height: 1.6; }

.dark-card {
  background: var(--navy-800); border: 1px solid var(--navy-border); border-radius: var(--radius-lg);
  padding: 26px;
}
.dark-card .icon-wrap { width: 42px; height: 42px; border-radius: 10px; background: var(--teal-soft); color: var(--teal-300); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.dark-card .icon-wrap .icon { width: 20px; height: 20px; }
.dark-card h3 { color: #fff; font-size: 16.5px; font-weight: 700; margin-bottom: 8px; }
.dark-card p { color: var(--gray-400); font-size: 14px; line-height: 1.6; }

/* ---------- Pricing ---------- */
.price-card {
  background: #fff; border: 1px solid var(--app-border); border-radius: var(--radius-lg);
  padding: 30px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
}
.price-card.featured { border: 2px solid var(--teal-500); box-shadow: var(--shadow-lg); position: relative; }
.price-card .plan-badge {
  position: absolute; top: -13px; left: 24px;
  background: var(--teal-500); color: #04211d; font-size: 11px; font-weight: 800;
  padding: 4px 10px; border-radius: 999px;
}
.price-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.price-card .price { font-size: 36px; font-weight: 800; margin: 10px 0 4px; }
.price-card .price span { font-size: 14px; font-weight: 500; color: var(--app-muted); }
.price-card .price-sub { color: var(--app-muted); font-size: 13.5px; margin-bottom: 22px; }
.price-card ul { display: flex; flex-direction: column; gap: 11px; margin-bottom: 26px; flex: 1; }
.price-card li { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; color: var(--app-text); }
.price-card li .icon { width: 16px; height: 16px; color: var(--teal-600); margin-top: 2px; }

/* ---------- Docs ---------- */
.docs-layout { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; }
.docs-nav { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 2px; }
.docs-nav .group-label { color: var(--app-muted); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin: 16px 0 6px; }
.docs-nav .group-label:first-child { margin-top: 0; }
.docs-nav a { padding: 7px 10px; border-radius: 7px; font-size: 14px; color: var(--app-muted); }
.docs-nav a:hover { background: var(--gray-100); color: var(--app-text); }
.docs-nav a.active { background: var(--teal-soft); color: var(--teal-600); font-weight: 600; }
.docs-content h2 { font-size: 22px; font-weight: 800; margin: 30px 0 12px; }
.docs-content h2:first-child { margin-top: 0; }
.docs-content p { color: var(--app-text); font-size: 15px; line-height: 1.7; margin-bottom: 14px; }
.docs-content code { background: var(--gray-100); border: 1px solid var(--app-border); padding: 2px 6px; border-radius: 5px; font-size: 13px; font-family: "SF Mono", Menlo, Consolas, monospace; }
.code-block {
  background: var(--navy-900); color: #dbeafe; border-radius: var(--radius-md);
  padding: 18px 20px; font-family: "SF Mono", Menlo, Consolas, monospace; font-size: 13px;
  line-height: 1.7; overflow-x: auto; margin-bottom: 18px;
}
.code-block .c1 { color: var(--gray-500); }
.code-block .c2 { color: var(--teal-300); }

/* ---------- Auth pages (login/signup) ---------- */
.auth-wrap { min-height: calc(100vh - 73px); display: flex; align-items: center; justify-content: center; background: var(--navy-900); padding: 60px 24px; }
.auth-card { width: 100%; max-width: 400px; background: var(--navy-800); border: 1px solid var(--navy-border); border-radius: var(--radius-xl); padding: 36px; }
.auth-card .brand { justify-content: center; margin-bottom: 22px; }
.auth-card h1 { color: #fff; font-size: 22px; font-weight: 800; text-align: center; margin-bottom: 6px; }
.auth-card .sub { color: var(--gray-400); font-size: 14px; text-align: center; margin-bottom: 26px; }
.field { margin-bottom: 16px; }
.field label { display: block; color: var(--gray-300); font-size: 13px; font-weight: 600; margin-bottom: 7px; }
.field input {
  width: 100%; background: var(--navy-900); border: 1px solid var(--navy-border); color: #fff;
  padding: 11px 13px; border-radius: var(--radius-sm); font-size: 14.5px; outline: none;
}
.field input:focus { border-color: var(--teal-400); }
.auth-card .btn-block { margin-top: 6px; margin-bottom: 18px; }
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--gray-500); font-size: 12.5px; margin: 18px 0; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--navy-border); }
.auth-foot { text-align: center; color: var(--gray-400); font-size: 13.5px; margin-top: 6px; }
.auth-foot a { color: var(--teal-400); font-weight: 600; }

/* ---------- Marketing footer ---------- */
.site-footer { background: var(--navy-950); border-top: 1px solid var(--navy-border); padding: 52px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; margin-bottom: 40px; }
.footer-grid .brand { margin-bottom: 12px; }
.footer-grid .about { color: var(--gray-500); font-size: 13.5px; line-height: 1.6; max-width: 260px; }
.footer-col h5 { color: #fff; font-size: 13px; font-weight: 700; margin-bottom: 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--gray-400); font-size: 13.5px; }
.footer-col a:hover { color: var(--teal-400); }
.footer-bottom {
  border-top: 1px solid var(--navy-border); padding-top: 22px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  color: var(--gray-500); font-size: 13px;
}
.footer-bottom .legal-links { display: flex; gap: 20px; }
.footer-bottom a:hover { color: var(--gray-200); }

/* =========================================================
   APP / DASHBOARD THEME
   ========================================================= */
.app-shell { display: flex; min-height: 100vh; background: var(--app-bg); }

.app-sidebar {
  width: 240px; flex-shrink: 0; background: #fff; border-right: 1px solid var(--app-border);
  display: flex; flex-direction: column; padding: 20px 16px; position: sticky; top: 0; height: 100vh;
}
.app-sidebar .brand { padding: 4px 6px 22px; font-size: 15px; border-bottom: 1px solid var(--app-border); margin-bottom: 14px; }
.app-sidebar .brand-name, .app-sidebar .brand-tld { color: var(--app-text); }
.app-sidebar .brand-tld { color: var(--teal-600); }
.app-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.app-nav a {
  display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 9px;
  color: var(--app-muted); font-size: 14px; font-weight: 500; position: relative;
}
.app-nav a .icon { width: 17px; height: 17px; }
.app-nav a:hover { background: var(--gray-100); color: var(--app-text); }
.app-nav a.active { background: var(--teal-soft); color: var(--teal-700, var(--teal-600)); font-weight: 700; }
.app-nav a .soon {
  margin-left: auto; font-size: 9px; font-weight: 800; letter-spacing: 0.03em;
  background: var(--gray-100); color: var(--app-muted); border: 1px solid var(--app-border);
  padding: 2px 6px; border-radius: 999px;
}
.app-nav a.active .soon { background: rgba(255,255,255,0.6); }

.sidebar-upgrade {
  margin-top: 16px; padding: 16px; border-radius: var(--radius-md);
  background: var(--gray-100); border: 1px solid var(--app-border);
}
.sidebar-upgrade h5 { font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.sidebar-upgrade p { font-size: 12.5px; color: var(--app-muted); line-height: 1.5; margin-bottom: 12px; }

.app-main { flex: 1; min-width: 0; padding: 32px 40px 60px; }
.app-topbar { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 26px; gap: 20px; flex-wrap: wrap; }
.app-topbar h1 { font-size: 22px; font-weight: 800; margin-bottom: 5px; }
.app-topbar p { color: var(--app-muted); font-size: 14px; }

.app-card {
  background: var(--app-card); border: 1px solid var(--app-border); border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--shadow-sm);
}

.success-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.success-left { display: flex; align-items: center; gap: 18px; }
.success-check {
  width: 52px; height: 52px; border-radius: 50%; background: var(--teal-soft);
  display: flex; align-items: center; justify-content: center; color: var(--teal-600); flex-shrink: 0;
  position: relative;
}
.success-check .icon { width: 24px; height: 24px; }
.success-check .dot { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--teal-400); }
.success-check .dot.d1 { top: -2px; left: 4px; } .success-check .dot.d2 { bottom: 2px; right: -4px; } .success-check .dot.d3 { top: 10px; right: -8px; }
.success-left h2 { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.success-left .url-row { display: flex; align-items: center; gap: 8px; }
.success-left .url-row a { color: var(--teal-600); font-weight: 600; font-size: 14.5px; }
.copy-btn {
  display: inline-flex; align-items: center; gap: 6px; background: var(--gray-100);
  border: 1px solid var(--app-border); border-radius: 7px; padding: 5px 10px; font-size: 12.5px; font-weight: 600; color: var(--app-muted);
}
.copy-btn .icon { width: 13px; height: 13px; }
.copy-btn:hover { color: var(--app-text); }
.success-links { display: flex; gap: 16px; margin-top: 8px; }
.success-links a { font-size: 13.5px; color: var(--app-muted); display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.success-links a:hover { color: var(--teal-600); }
.success-links .icon { width: 14px; height: 14px; }
.expiry-box { text-align: right; }
.expiry-box .label { display: flex; align-items: center; justify-content: flex-end; gap: 6px; color: var(--app-muted); font-size: 12.5px; margin-bottom: 4px; }
.expiry-box .countdown { font-size: 26px; font-weight: 800; color: var(--app-text); }
.expiry-box .date { font-size: 12px; color: var(--app-muted); margin-top: 2px; }
.expiry-box .default-note { font-size: 12px; color: var(--app-muted); margin-top: 6px; }

.settings-heading { font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.settings-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 30px; }
.setting-card { background: #fff; border: 1px solid var(--app-border); border-radius: var(--radius-md); padding: 18px; }
.setting-card .icon-wrap { width: 34px; height: 34px; border-radius: 8px; background: var(--gray-100); color: var(--app-muted); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.setting-card .icon-wrap .icon { width: 16px; height: 16px; }
.setting-card h4 { font-size: 14px; font-weight: 700; margin-bottom: 5px; }
.setting-card p { font-size: 12.5px; color: var(--app-muted); line-height: 1.5; margin-bottom: 14px; min-height: 36px; }

.app-content-grid { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }
.side-card { margin-bottom: 20px; }
.side-card .card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.side-card h4 { font-size: 14px; font-weight: 700; }
.side-card p.desc { font-size: 12.5px; color: var(--app-muted); line-height: 1.5; margin-bottom: 14px; }
.sparkline { height: 46px; margin-bottom: 14px; }
.upload-row { display: flex; align-items: center; gap: 12px; }
.upload-row .file-icon {
  width: 38px; height: 38px; border-radius: 8px; background: var(--teal-soft); color: var(--teal-600);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.upload-row .file-icon .icon { width: 17px; height: 17px; }
.upload-row .meta { flex: 1; min-width: 0; }
.upload-row .meta .name { font-size: 13.5px; font-weight: 700; }
.upload-row .meta .sub { font-size: 12px; color: var(--app-muted); }
.status-live { font-size: 10.5px; font-weight: 800; color: var(--teal-600); background: var(--teal-soft); padding: 3px 8px; border-radius: 999px; }
.view-all-link { display: block; margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--teal-600); }

.app-footer { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--app-border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: var(--app-muted); font-size: 12.5px; }
.app-footer .legal-links { display: flex; gap: 18px; }
.app-footer a:hover { color: var(--app-text); }

/* generic app page bits */
.table-card { overflow: hidden; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--app-muted); padding: 10px 14px; border-bottom: 1px solid var(--app-border); }
.data-table td { padding: 13px 14px; border-bottom: 1px solid var(--app-border); font-size: 14px; }
.data-table tr:last-child td { border-bottom: none; }
.badge { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.badge-live { background: var(--teal-soft); color: var(--teal-700, var(--teal-600)); }
.badge-expired { background: #fee2e2; color: #b91c1c; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.stat-tile { background: #fff; border: 1px solid var(--app-border); border-radius: var(--radius-md); padding: 18px; }
.stat-tile .label { font-size: 12.5px; color: var(--app-muted); margin-bottom: 8px; }
.stat-tile .value { font-size: 24px; font-weight: 800; }
.stat-tile .delta { font-size: 12px; color: var(--teal-600); font-weight: 600; margin-top: 4px; }

.soon-panel {
  text-align: center; padding: 60px 24px; background: #fff; border: 1px dashed var(--app-border);
  border-radius: var(--radius-lg);
}
.soon-panel .icon-wrap { width: 54px; height: 54px; border-radius: 14px; background: var(--teal-soft); color: var(--teal-600); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.soon-panel .icon-wrap .icon { width: 26px; height: 26px; }
.soon-panel h2 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.soon-panel p { color: var(--app-muted); font-size: 14.5px; max-width: 420px; margin: 0 auto 20px; line-height: 1.6; }

.settings-section { margin-bottom: 28px; }
.settings-section h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.settings-section .section-sub { font-size: 13px; color: var(--app-muted); margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 14px; }
.form-row .field label { color: var(--app-muted); }
.form-row .field input {
  background: #fff; border: 1px solid var(--app-border); color: var(--app-text);
}
.form-row .field input:focus { border-color: var(--teal-500); }
.danger-zone { border: 1px solid #fecaca; background: #fef2f2; border-radius: var(--radius-md); padding: 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.danger-zone h4 { color: #991b1b; font-size: 14px; margin-bottom: 4px; }
.danger-zone p { color: #b91c1c; font-size: 12.5px; }
.btn-danger { background: #fff; border: 1px solid #fca5a5; color: #b91c1c; }
.btn-danger:hover { background: #fee2e2; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(3, 1fr); }
  .trust-item:nth-child(4) { border-left: none; }
  .trust-item { margin-bottom: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .settings-grid { grid-template-columns: repeat(2, 1fr); }
  .app-content-grid { grid-template-columns: 1fr; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-nav { position: static; flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .app-sidebar { display: none; }
  .app-main { padding: 24px 18px 40px; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 34px; }
  .footer-grid { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .success-card { flex-direction: column; align-items: flex-start; }
  .expiry-box { text-align: left; }
  .expiry-box .label { justify-content: flex-start; }
  .form-row { grid-template-columns: 1fr; }
}
