/* ============================================================
   Copy KJ — Dark Financial Terminal v4
   Fixes: visibility, responsiveness, PWA-ready
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&family=Outfit:wght@400;600;700;800&display=swap');

:root {
  --primary:       #00d4aa;
  --primary-dim:   rgba(0,212,170,.12);
  --primary-glow:  rgba(0,212,170,.35);
  --accent:        #60a5fa;
  --success:       #00d4aa;
  --danger:        #ff4d6d;
  --warning:       #fbbf24;

  /* Backgrounds */
  --bg:            #080c16;
  --bg-2:          #0d1220;
  --bg-3:          #111827;
  --card-bg:       #0f1726;
  --card-border:   rgba(255,255,255,.09);
  --card-border-h: rgba(0,212,170,.35);

  /* Text — high contrast */
  --text:          #f0f4ff;
  --text-2:        #cbd5e1;
  --text-muted:    #8898aa;
  --text-dim:      #64748b;

  --radius:    12px;
  --radius-sm: 8px;
  --mono:      'JetBrains Mono', monospace;
  --display:   'Outfit', sans-serif;
  --body:      'Space Grotesk', sans-serif;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: rgba(0,212,170,.25); border-radius: 3px; }
::selection { background: var(--primary-dim); color: var(--primary); }

/* ============================================================
   NAVBAR
   ============================================================ */
.ct-navbar {
  background: rgba(8,12,22,.96);
  border-bottom: 1px solid rgba(0,212,170,.1);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1030;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.ct-navbar .container { padding-top: 10px; padding-bottom: 10px; }

.ct-navbar .navbar-brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff !important;
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  letter-spacing: -.01em;
}

.brand-logo {
  width: 32px; height: 32px;
  background: var(--primary);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem;
  color: #080c16;
  font-weight: 900;
  box-shadow: 0 0 14px var(--primary-glow);
  flex-shrink: 0;
  font-family: var(--mono);
}

.brand-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(0,212,170,.08);
  border: 1px solid rgba(0,212,170,.22);
  color: var(--primary);
  font-size: .65rem;
  font-weight: 700;
  font-family: var(--mono);
  padding: 2px 8px;
  border-radius: 99px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.brand-dot {
  width: 6px; height: 6px;
  background: var(--primary);
  border-radius: 50%;
  display: inline-block;
  animation: pulse-dot 2s infinite;
  box-shadow: 0 0 6px var(--primary);
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.4; transform:scale(1.5); }
}

.ct-navbar .nav-link {
  font-weight: 600;
  font-size: .87rem;
  color: var(--text-muted) !important;
  transition: color .2s;
  padding: .55rem 1rem !important;
  position: relative;
}
.ct-navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 1rem; right: 1rem;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform .2s;
  border-radius: 1px;
}
.ct-navbar .nav-link:hover { color: var(--text) !important; }
.ct-navbar .nav-link.active { color: var(--primary) !important; }
.ct-navbar .nav-link.active::after,
.ct-navbar .nav-link:hover::after { transform: scaleX(1); }

/* mobile hamburger */
.navbar-toggler { padding: 4px 8px; }
.navbar-toggler-icon { filter: invert(1); }

/* ============================================================
   HERO
   ============================================================ */
.ct-hero {
  background:
    radial-gradient(ellipse 80% 60% at 60% 0%, rgba(0,212,170,.07) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 90% 80%, rgba(96,165,250,.05) 0%, transparent 60%),
    var(--bg-2);
  color: #fff;
  padding: 72px 0 80px;
  position: relative;
  overflow: hidden;
}

.ct-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,170,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,170,.035) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, black 20%, transparent 75%);
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(0,212,170,.08);
  border: 1px solid rgba(0,212,170,.2);
  color: var(--primary);
  font-size: .72rem;
  font-weight: 700;
  font-family: var(--mono);
  padding: 4px 14px;
  border-radius: 99px;
  margin-bottom: 20px;
  letter-spacing: .1em;
  text-transform: uppercase;
  position: relative; z-index: 2;
}

.ct-hero h1 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  color: #fff;
  letter-spacing: -.02em;
  position: relative; z-index: 2;
}

.ct-hero p.lead {
  font-size: .98rem;
  color: rgba(255,255,255,.6);
  max-width: 520px;
  margin-bottom: 32px;
  line-height: 1.7;
  position: relative; z-index: 2;
}

.btn-cta {
  background: var(--primary);
  color: #080c16 !important;
  font-family: var(--display);
  font-weight: 700;
  padding: 13px 28px;
  border-radius: 8px;
  font-size: .95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .25s;
  letter-spacing: -.01em;
  position: relative; z-index: 2;
}
.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px var(--primary-glow);
  color: #080c16 !important;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 40px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,.03);
  backdrop-filter: blur(10px);
  position: relative; z-index: 2;
  width: fit-content;
  max-width: 100%;
}

.hero-stat {
  padding: 16px 28px;
  border-right: 1px solid rgba(255,255,255,.07);
  text-align: center;
  flex: 1;
  min-width: 100px;
}
.hero-stat:last-child { border-right: none; }

.hero-stat .value {
  font-family: var(--mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 5px;
}
.hero-stat .label {
  font-size: .68rem;
  color: rgba(255,255,255,.45);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 600;
}

/* ============================================================
   CARDS
   ============================================================ */
.ct-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  transition: border-color .25s, box-shadow .25s;
}
.ct-card:hover {
  border-color: rgba(0,212,170,.2);
  box-shadow: 0 0 24px rgba(0,212,170,.05);
}

/* Stat cards */
.stat-card {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: opacity .3s;
}
.stat-card:hover::before { opacity: 1; }

.stat-card .stat-icon {
  width: 36px; height: 36px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem;
  margin-bottom: 10px;
}
.stat-card .stat-label {
  font-size: .68rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .09em;
  font-family: var(--mono);
}
.stat-card .stat-value {
  font-family: var(--mono);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
}
.stat-card.negative .stat-value { color: var(--danger); }
.stat-card .stat-sub {
  font-size: .76rem;
  color: var(--text-muted);
}

/* ============================================================
   SECTION TITLES
   ============================================================ */
.ct-section-title {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.ct-section-title::before {
  content: '';
  width: 3px; height: 18px;
  background: var(--primary);
  border-radius: 2px;
  display: inline-block;
  box-shadow: 0 0 8px rgba(0,212,170,.5);
  flex-shrink: 0;
}

/* ============================================================
   FILTER BAR
   ============================================================ */
.ct-filter-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.ct-filter-btn {
  padding: 5px 13px;
  border-radius: 6px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text-2);
  font-size: .78rem;
  font-weight: 600;
  font-family: var(--mono);
  cursor: pointer;
  transition: all .18s;
  text-decoration: none;
  letter-spacing: .02em;
  white-space: nowrap;
}
.ct-filter-btn:hover {
  border-color: rgba(0,212,170,.3);
  color: var(--primary);
  background: rgba(0,212,170,.05);
}
.ct-filter-btn.active {
  background: rgba(0,212,170,.12);
  color: var(--primary);
  border-color: rgba(0,212,170,.4);
}
button.ct-filter-btn { cursor: pointer; }

/* ============================================================
   TABLES
   ============================================================ */
.ct-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  -webkit-overflow-scrolling: touch;
}
.ct-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .84rem;
  min-width: 520px;
}
.ct-table thead th {
  background: rgba(255,255,255,.03);
  padding: 11px 14px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: .67rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--card-border);
  white-space: nowrap;
}
.ct-table tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  vertical-align: middle;
  color: var(--text-2);
}
.ct-table tbody td strong { color: var(--text); font-weight: 600; }
.ct-table tbody tr:last-child td { border-bottom: none; }
.ct-table tbody tr:hover { background: rgba(255,255,255,.025); }
.ct-table code {
  background: rgba(96,165,250,.12);
  color: var(--accent);
  padding: 2px 7px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: .78rem;
}

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  font-size: .7rem;
  font-weight: 700;
  font-family: var(--mono);
  padding: 3px 8px;
  border-radius: 5px;
  letter-spacing: .03em;
}
.bg-success  { background: rgba(0,212,170,.15)   !important; color: #00d4aa !important; }
.bg-danger   { background: rgba(255,77,109,.15)   !important; color: #ff6b84 !important; }
.bg-warning  { background: rgba(251,191,36,.15)   !important; color: #fbbf24 !important; }
.bg-secondary{ background: rgba(100,116,139,.15)  !important; color: #94a3b8 !important; }
.bg-info     { background: rgba(96,165,250,.15)   !important; color: #60a5fa !important; }
.text-dark   { color: #080c16 !important; }

/* ============================================================
   TEXT UTILITIES
   ============================================================ */
.text-success { color: var(--success) !important; }
.text-danger  { color: var(--danger)  !important; }
.text-warning { color: var(--warning) !important; }
.text-muted   { color: var(--text-muted) !important; }
.fw-bold      { font-weight: 700 !important; }

/* ============================================================
   CHART WRAPPER
   ============================================================ */
.chart-container { position: relative; width: 100%; }

/* ============================================================
   CTA
   ============================================================ */
.ct-cta-section {
  background:
    radial-gradient(ellipse 60% 80% at 50% 100%, rgba(0,212,170,.07) 0%, transparent 70%),
    var(--bg-2);
  border-top: 1px solid rgba(0,212,170,.08);
  color: #fff;
  padding: 72px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ct-cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,212,170,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,170,.025) 1px, transparent 1px);
  background-size: 40px 40px;
}
.ct-cta-section h2 {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
  position: relative; z-index: 2;
  color: #fff;
}
.ct-cta-section p { color: rgba(255,255,255,.55); margin-bottom: 28px; position: relative; z-index: 2; }

/* ============================================================
   FOOTER
   ============================================================ */
.ct-footer {
  background: #04080e;
  border-top: 1px solid rgba(255,255,255,.05);
  color: rgba(255,255,255,.35);
  padding: 28px 0;
  font-size: .82rem;
  text-align: center;
}
.ct-footer a { color: rgba(255,255,255,.4); text-decoration: none; transition: color .2s; }
.ct-footer a:hover { color: var(--primary); }
.footer-brand {
  font-family: var(--mono);
  font-weight: 700;
  color: rgba(255,255,255,.65);
  letter-spacing: .06em;
  font-size: .88rem;
}

/* ============================================================
   SECTION BACKGROUNDS (override inline styles)
   ============================================================ */
section { background: var(--bg) !important; }
section.ct-hero { background: none !important; }
section.ct-cta-section { background: none !important; }

/* Card inner sections */
.bg-light, [style*="background:#f"], [style*="background: #f"], [style*="background:white"] {
  background: var(--card-bg) !important;
}
[style*="background:#f8fafc"], [style*="background: #f8fafc"] { background: var(--bg-2) !important; }
[style*="background:#f0f4f8"], [style*="background: #f0f4f8"] { background: var(--bg-2) !important; }

/* Divs inside cards */
[style*="background:#f8fafc;border-radius"] { background: rgba(255,255,255,.04) !important; }

/* ============================================================
   FORMS
   ============================================================ */
.ct-form .form-label {
  font-size: .7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .09em;
  margin-bottom: 5px;
  font-family: var(--mono);
}
.form-label {
  color: var(--text-2);
  font-size: .87rem;
}
.form-control, .form-select {
  background: rgba(255,255,255,.05) !important;
  border: 1px solid var(--card-border) !important;
  color: var(--text) !important;
  border-radius: var(--radius-sm) !important;
}
.form-control:focus, .form-select:focus {
  background: rgba(0,212,170,.04) !important;
  border-color: rgba(0,212,170,.45) !important;
  box-shadow: 0 0 0 3px rgba(0,212,170,.08) !important;
  color: var(--text) !important;
  outline: none !important;
}
.form-control::placeholder { color: var(--text-dim) !important; }
.form-select option { background: var(--bg-3); color: var(--text); }

.ct-form .btn-save,
.btn-save {
  background: var(--primary);
  color: #080c16;
  font-family: var(--display);
  font-weight: 700;
  padding: 10px 26px;
  border-radius: var(--radius-sm);
  border: none;
  transition: all .2s;
  font-size: .9rem;
}
.ct-form .btn-save:hover, .btn-save:hover {
  box-shadow: 0 0 20px var(--primary-glow);
  transform: translateY(-1px);
  color: #080c16;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #080c16 !important;
  font-weight: 700;
}
.btn-primary:hover, .btn-primary:focus {
  background: #00b896 !important;
  border-color: #00b896 !important;
  box-shadow: 0 0 16px var(--primary-glow) !important;
  color: #080c16 !important;
}
.btn-danger {
  background: rgba(255,77,109,.12) !important;
  border-color: rgba(255,77,109,.3) !important;
  color: var(--danger) !important;
}
.btn-danger:hover {
  background: var(--danger) !important;
  border-color: var(--danger) !important;
  color: #fff !important;
}
.btn-secondary {
  background: rgba(255,255,255,.06) !important;
  border-color: var(--card-border) !important;
  color: var(--text-2) !important;
}
.btn-outline-secondary {
  border-color: var(--card-border) !important;
  color: var(--text-muted) !important;
}
.btn-outline-secondary:hover {
  background: rgba(255,255,255,.06) !important;
  color: var(--text) !important;
}
.btn-sm { font-size: .79rem !important; padding: 5px 12px !important; }
.btn-warning { color: #080c16 !important; font-weight: 700 !important; }

/* ============================================================
   ALERTS
   ============================================================ */
.alert { border-radius: 8px !important; }
.alert-info    { background: rgba(96,165,250,.06) !important; border-color: rgba(96,165,250,.15) !important; color: #93c5fd !important; }
.alert-success { background: rgba(0,212,170,.06) !important; border-color: rgba(0,212,170,.2) !important; color: var(--primary) !important; }
.alert-danger  { background: rgba(255,77,109,.06) !important; border-color: rgba(255,77,109,.2) !important; color: #fda4af !important; }
.alert-warning { background: rgba(251,191,36,.06) !important; border-color: rgba(251,191,36,.2) !important; color: var(--warning) !important; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination .page-link {
  background: var(--card-bg) !important;
  border-color: var(--card-border) !important;
  color: var(--text-2) !important;
  font-family: var(--mono);
  font-size: .82rem;
}
.pagination .page-link:hover {
  background: rgba(0,212,170,.1) !important;
  border-color: rgba(0,212,170,.3) !important;
  color: var(--primary) !important;
}
.pagination .page-item.active .page-link {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #080c16 !important;
}

/* ============================================================
   ADMIN SIDEBAR
   ============================================================ */
.admin-sidebar {
  background: #04080e;
  border-right: 1px solid rgba(255,255,255,.05);
  min-height: 100vh;
  width: 240px;
  position: fixed;
  left: 0; top: 0;
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: width .25s;
}
.admin-sidebar .sidebar-logo {
  padding: 16px 20px;
  font-family: var(--display);
  font-weight: 800;
  font-size: .92rem;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.05);
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin-sidebar .nav-item .nav-link {
  color: rgba(255,255,255,.45);
  padding: 9px 20px;
  font-size: .83rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all .18s;
  border-left: 2px solid transparent;
  text-decoration: none;
}
.admin-sidebar .nav-item .nav-link:hover,
.admin-sidebar .nav-item .nav-link.active {
  color: var(--primary);
  background: rgba(0,212,170,.05);
  border-left-color: var(--primary);
}
.admin-sidebar .sidebar-section {
  padding: 14px 20px 4px;
  font-size: .63rem;
  font-weight: 700;
  font-family: var(--mono);
  color: rgba(255,255,255,.2);
  text-transform: uppercase;
  letter-spacing: .12em;
}

.admin-main { margin-left: 240px; min-height: 100vh; background: var(--bg); }

.admin-topbar {
  background: var(--card-bg);
  border-bottom: 1px solid var(--card-border);
  padding: 13px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}
.admin-topbar .page-title {
  font-family: var(--display);
  font-size: .92rem;
  font-weight: 700;
  color: var(--text);
}
.admin-content { padding: 24px; }

/* Admin stat cards */
.admin-stat-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.admin-stat-card .asc-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.admin-stat-card .asc-label {
  font-size: .68rem;
  font-weight: 700;
  font-family: var(--mono);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.admin-stat-card .asc-value {
  font-family: var(--mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
}

/* ============================================================
   RESPONSIVE — MOBILE FIRST
   ============================================================ */
@media (max-width: 1024px) {
  .admin-sidebar { width: 58px; }
  .admin-sidebar .sidebar-logo span,
  .admin-sidebar .nav-link span,
  .admin-sidebar .sidebar-section { display: none; }
  .admin-sidebar .nav-item .nav-link { justify-content: center; padding: 12px; }
  .admin-main { margin-left: 58px; }
}

@media (max-width: 768px) {
  /* Hide sidebar on mobile, show topbar hamburger */
  .admin-sidebar { display: none; }
  .admin-main { margin-left: 0; }
  .admin-content { padding: 16px; }

  .ct-hero { padding: 48px 0 56px; }
  .hero-stats { width: 100%; }
  .hero-stat { padding: 12px 14px; min-width: 0; }
  .hero-stat .value { font-size: 1.25rem; }

  .ct-section-title { font-size: .95rem; }
  .stat-card .stat-value { font-size: 1.2rem; }

  /* Tables scroll */
  .ct-table-wrapper { border-radius: 8px; }
  .ct-table { font-size: .8rem; }
  .ct-table thead th,
  .ct-table tbody td { padding: 8px 10px; }

  /* Filter bar */
  .ct-filter-bar { gap: 5px; }
  .ct-filter-btn { font-size: .72rem; padding: 4px 10px; }

  /* Date range on mobile */
  .ct-filter-bar .d-flex.gap-2 { flex-wrap: wrap; width: 100%; margin-top: 6px; }
  .ct-filter-bar input[type="date"] { width: 100% !important; flex: 1; }

  .ct-cta-section { padding: 52px 0; }
  .ct-cta-section h2 { font-size: 1.5rem; }

  /* Hide brand name text on very small */
  .navbar-brand > span:first-of-type { display: none; }
}

@media (max-width: 480px) {
  .hero-stat .value { font-size: 1.1rem; }
  .hero-stat .label { font-size: .6rem; }
  .ct-hero h1 { font-size: 1.65rem; }

  /* Stack assertivity donuts in 2 col */
  .col-6.col-lg-3 { flex: 0 0 50%; max-width: 50%; }
}

/* ============================================================
   PWA SAFE AREAS (notch / home indicator)
   ============================================================ */
@supports (padding: env(safe-area-inset-bottom)) {
  .ct-footer { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
  .ct-navbar  { padding-top: env(safe-area-inset-top); }
}

/* Standalone PWA mode adjustments */
@media (display-mode: standalone) {
  .ct-navbar { padding-top: env(safe-area-inset-top); }
}
