/* ================================================================
   TurboSender Web App — Global CSS
   Royal Blue Glassmorphism Theme · ViViD App Studio · 2026
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Poppins:wght@600;700;800;900&family=Fira+Code:wght@400;500&display=swap');

/* ─── RESET & ROOT ─────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Royal Blue Palette */
  --bg:          #030b1a;
  --bg2:         #060f22;
  --bg3:         #091529;
  --card-bg:     rgba(10, 25, 60, 0.55);
  --card-border: rgba(59, 130, 246, 0.18);

  /* Brand Colors */
  --royal:       #2563eb;
  --royal-light: #3b82f6;
  --royal-pale:  #60a5fa;
  --royal-glow:  rgba(37, 99, 235, 0.35);

  /* Accents */
  --cyan:        #22d3ee;
  --purple:      #7c3aed;
  --pink:        #ec4899;
  --green:       #10b981;
  --gold:        #f59e0b;
  --orange:      #f97316;
  --red:         #ef4444;

  /* Text */
  --heading:     #ffffff;
  --text:        #cbd5e1;
  --muted:       #64748b;
  --border:      rgba(59, 130, 246, 0.15);

  /* Glass */
  --glass-bg:    rgba(10, 25, 60, 0.45);
  --glass-blur:  blur(22px);
  --glass-border:rgba(99, 155, 255, 0.2);

  /* Shadows */
  --shadow-blue: 0 8px 40px rgba(37, 99, 235, 0.25);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);

  /* Typography */
  --font-body:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-head:   'Poppins', 'Inter', sans-serif;
  --font-code:   'Fira Code', 'Courier New', monospace;

  /* Radius */
  --r-sm:  10px;
  --r-md:  16px;
  --r-lg:  24px;
  --r-xl:  32px;

  /* Sidebar width */
  --sidebar-w: 260px;
  --sidebar-collapsed: 68px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ─── ANIMATED BG TEXTURE ──────────────────────────────────── */
.bg-emojis {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  font-size: 1.8rem; line-height: 1; overflow: hidden; opacity: 0.04;
  user-select: none;
}
.bg-emojis::before {
  content: '💬 📧 📱 ✉️ 📨 📩 🔔 📲 💌 📞 💬 📧 📱 ✉️ 📨 📩 🔔 📲 💌 📞 💬 📧 📱 ✉️ 📨 📩 🔔 📲 💌 📞 💬 📧 📱 ✉️ 📨 📩 🔔 📲 💌 📞 💬 📧 📱 ✉️ 📨 📩 🔔 📲 💌 📞 💬 📧 📱 ✉️ 📨 📩 🔔 📲 💌 📞 💬 📧 📱 ✉️ 📨 📩 🔔 📲 💌 📞 💬 📧 📱 ✉️ 📨 📩 🔔 📲 💌 📞 💬 📧 📱 ✉️ 📨 📩 🔔 📲 💌 📞 💬 📧 📱 ✉️ 📨 📩 🔔 📲 💌 📞 ';
  position: absolute; inset: 0;
  word-break: break-all; white-space: pre-wrap;
  font-size: 2rem; letter-spacing: 1.4rem; line-height: 3.4rem;
}

/* Orbs */
.orb {
  position: fixed; border-radius: 50%; filter: blur(120px); z-index: 0; pointer-events: none;
  animation: orbDrift 20s ease-in-out infinite alternate;
}
.orb-1 { width: 600px; height: 600px; top: -150px; left: -100px; background: rgba(37,99,235,0.12); }
.orb-2 { width: 500px; height: 500px; bottom: -100px; right: -60px; background: rgba(124,58,237,0.10); animation-delay: -8s; }
.orb-3 { width: 400px; height: 400px; top: 40%; left: 50%; background: rgba(34,211,238,0.07); animation-delay: -4s; }
.orb-4 { width: 350px; height: 350px; top: 70%; left: 20%; background: rgba(16,185,129,0.06); animation-delay: -12s; }

@keyframes orbDrift {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(30px, -20px) scale(1.05); }
  66%  { transform: translate(-15px, 30px) scale(0.97); }
  100% { transform: translate(20px, -10px) scale(1.08); }
}

/* Grid overlay */
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(37,99,235,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* ─── GLASS CARD ───────────────────────────────────────────── */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.glass-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 48px rgba(37,99,235,0.22);
  border-color: rgba(99,155,255,0.32);
}

/* ─── NAVBAR ───────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 5vw;
  height: 68px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(3, 11, 26, 0.72);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--glass-border);
  transition: background 0.3s;
}
.navbar.scrolled { background: rgba(3, 11, 26, 0.95); }

.nav-brand {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
}
.nav-brand img {
  width: 38px; height: 38px; border-radius: 10px;
  box-shadow: 0 0 16px var(--royal-glow);
}
.nav-brand span {
  font-family: var(--font-head); font-size: 1.25rem; font-weight: 800;
  background: linear-gradient(135deg, #60a5fa, #2563eb, #7c3aed);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex; align-items: center; gap: 4px; list-style: none;
}
.nav-links a {
  color: var(--text); text-decoration: none; font-size: 0.88rem; font-weight: 500;
  padding: 7px 14px; border-radius: var(--r-sm);
  transition: background 0.2s, color 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  background: rgba(59,130,246,0.15); color: var(--royal-pale);
}

.nav-cta {
  display: flex; align-items: center; gap: 10px;
}

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 6px;
}
.hamburger span {
  display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none; position: fixed; top: 68px; left: 0; right: 0; z-index: 999;
  background: rgba(3,11,26,0.97); backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--glass-border);
  padding: 20px 5vw 28px;
  flex-direction: column; gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--text); text-decoration: none; font-size: 0.96rem; font-weight: 500;
  padding: 11px 14px; border-radius: var(--r-sm); display: block;
  transition: background 0.2s, color 0.2s;
}
.mobile-menu a:hover { background: rgba(59,130,246,0.12); color: var(--royal-pale); }

/* ─── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--r-md);
  font-family: var(--font-body); font-size: 0.92rem; font-weight: 700;
  text-decoration: none; border: none; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, opacity 0.2s;
  white-space: nowrap; position: relative; overflow: hidden;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-primary {
  background: linear-gradient(135deg, var(--royal), #1d4ed8);
  color: #fff;
  box-shadow: 0 4px 20px rgba(37,99,235,0.45);
}
.btn-primary:hover { box-shadow: 0 8px 32px rgba(37,99,235,0.6); }

.btn-glow {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  box-shadow: 0 4px 24px rgba(37,99,235,0.5), 0 0 60px rgba(124,58,237,0.2);
  animation: btnPulseGlow 3s ease-in-out infinite;
}
@keyframes btnPulseGlow {
  0%, 100% { box-shadow: 0 4px 24px rgba(37,99,235,0.5), 0 0 40px rgba(124,58,237,0.15); }
  50%       { box-shadow: 0 8px 40px rgba(37,99,235,0.7), 0 0 80px rgba(124,58,237,0.3); }
}

.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(59,130,246,0.5);
  color: var(--royal-pale);
}
.btn-outline:hover { background: rgba(59,130,246,0.1); border-color: var(--royal-light); }

.btn-ghost {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); }

.btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff; box-shadow: 0 4px 16px rgba(239,68,68,0.4);
}
.btn-success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff; box-shadow: 0 4px 16px rgba(16,185,129,0.4);
}
.btn-gold {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff; box-shadow: 0 4px 16px rgba(245,158,11,0.4);
}
.btn-sm { padding: 8px 18px; font-size: 0.84rem; border-radius: var(--r-sm); }
.btn-lg { padding: 16px 36px; font-size: 1rem; border-radius: var(--r-md); }
.btn-xl { padding: 18px 44px; font-size: 1.08rem; border-radius: var(--r-lg); }
.btn-full { width: 100%; justify-content: center; }

/* ─── SECTION HELPERS ──────────────────────────────────────── */
.section {
  position: relative; z-index: 1;
  padding: 100px 5vw;
}
.section-sm { padding: 60px 5vw; }
.container { max-width: 1200px; margin: 0 auto; }
.container-sm { max-width: 860px; margin: 0 auto; }
.container-md { max-width: 1040px; margin: 0 auto; }

.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 18px; border-radius: 100px;
  background: rgba(37,99,235,0.1); border: 1px solid rgba(37,99,235,0.25);
  font-size: 0.8rem; font-weight: 700; color: #93c5fd;
  letter-spacing: 0.06em; margin-bottom: 20px;
}
.section-title {
  font-family: var(--font-head); font-size: clamp(2rem,4vw,3rem);
  font-weight: 900; line-height: 1.1; color: var(--heading); margin-bottom: 16px;
}
.section-subtitle {
  font-size: clamp(0.95rem,1.8vw,1.1rem); color: var(--text);
  max-width: 600px; line-height: 1.75;
}
.gradient-text {
  background: linear-gradient(135deg, #60a5fa, #2563eb, #7c3aed, #ec4899);
  background-size: 300% 300%;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  animation: gradShift 5s ease infinite;
}
@keyframes gradShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.text-center { text-align: center; }
.text-left { text-align: left; }

/* Page Hero */
.page-hero {
  position: relative; z-index: 1;
  padding: 100px 5vw 70px;
  text-align: center;
}
.page-hero-inner { max-width: 740px; margin: 0 auto; }
.page-hero-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  color: var(--heading);
  line-height: 1.15;
  margin-bottom: 16px;
}
.page-hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 600px;
  margin: 0 auto 12px;
}

/* ─── BADGES ───────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px; border-radius: 100px;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.04em;
}
.badge-blue   { background: rgba(37,99,235,0.15); border: 1px solid rgba(37,99,235,0.3); color: #93c5fd; }
.badge-green  { background: rgba(16,185,129,0.15); border: 1px solid rgba(16,185,129,0.3); color: #6ee7b7; }
.badge-gold   { background: rgba(245,158,11,0.15); border: 1px solid rgba(245,158,11,0.3); color: #fcd34d; }
.badge-purple { background: rgba(124,58,237,0.15); border: 1px solid rgba(124,58,237,0.3); color: #c4b5fd; }
.badge-red    { background: rgba(239,68,68,0.15);  border: 1px solid rgba(239,68,68,0.3);  color: #fca5a5; }
.badge-cyan   { background: rgba(34,211,238,0.15); border: 1px solid rgba(34,211,238,0.3); color: #a5f3fc; }

/* Status dot */
.status-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  animation: pulse 2s infinite;
}
.status-dot.green  { background: var(--green); }
.status-dot.red    { background: var(--red); }
.status-dot.gold   { background: var(--gold); }
.status-dot.blue   { background: var(--royal-light); }
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(1.3); }
}

/* ─── NOTICES ──────────────────────────────────────────────── */
.notice {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 14px 18px; border-radius: var(--r-md);
  font-size: 0.86rem; line-height: 1.6;
}
.notice-blue   { background: rgba(37,99,235,0.08); border: 1px solid rgba(37,99,235,0.2); color: #93c5fd; }
.notice-gold   { background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.2); color: #fcd34d; }
.notice-green  { background: rgba(16,185,129,0.08); border: 1px solid rgba(16,185,129,0.2); color: #6ee7b7; }
.notice-red    { background: rgba(239,68,68,0.08);  border: 1px solid rgba(239,68,68,0.2);  color: #fca5a5; }

/* ─── FORM ELEMENTS ────────────────────────────────────────── */
.form-group {
  display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px;
}
.form-label {
  font-size: 0.85rem; font-weight: 600; color: var(--text);
  display: flex; align-items: center; gap: 6px;
}
.form-input, .form-select, .form-textarea {
  background: rgba(10,25,60,0.6);
  border: 1.5px solid rgba(59,130,246,0.2);
  border-radius: var(--r-sm);
  color: var(--heading);
  font-family: var(--font-body);
  font-size: 0.92rem;
  padding: 11px 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  outline: none;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--muted); }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--royal-light);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.18);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-select option { background: #0a1933; color: var(--heading); }
.form-hint { font-size: 0.78rem; color: var(--muted); }
.form-error { font-size: 0.78rem; color: #f87171; }

/* Input with icon */
.input-wrap { position: relative; }
.input-wrap .input-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  font-size: 1rem; pointer-events: none;
}
.input-wrap .form-input { padding-left: 42px; }
.input-wrap .input-icon-right {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  cursor: pointer; font-size: 1rem; color: var(--muted);
  background: none; border: none; padding: 0;
}

/* ─── TABS ─────────────────────────────────────────────────── */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--glass-border); margin-bottom: 24px; }
.tab-btn {
  padding: 10px 20px; background: none; border: none; cursor: pointer;
  font-size: 0.88rem; font-weight: 600; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
}
.tab-btn.active { color: var(--royal-pale); border-bottom-color: var(--royal-light); }
.tab-btn:hover:not(.active) { color: var(--text); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ─── PROGRESS BAR ─────────────────────────────────────────── */
.progress-wrap { width: 100%; background: rgba(255,255,255,0.08); border-radius: 100px; overflow: hidden; height: 8px; }
.progress-bar {
  height: 100%; border-radius: 100px;
  background: linear-gradient(90deg, #2563eb, #10b981);
  transition: width 0.4s ease;
}
.progress-lg { height: 12px; }
.progress-sm { height: 5px; }

/* ─── STATS CARDS ──────────────────────────────────────────── */
.stat-card {
  padding: 24px 28px;
  display: flex; flex-direction: column; gap: 6px;
}
.stat-card .s-label {
  font-size: 0.78rem; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.stat-card .s-val {
  font-family: var(--font-head); font-size: 2.2rem; font-weight: 900;
  color: var(--heading); line-height: 1;
}
.stat-card .s-sub { font-size: 0.82rem; color: var(--green); }
.stat-card .s-sub.down { color: var(--red); }

/* ─── TABLE ────────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto; border-radius: var(--r-lg);
  border: 1px solid var(--glass-border);
  background: rgba(10,25,60,0.45); backdrop-filter: blur(20px);
}
.data-table { width: 100%; border-collapse: collapse; min-width: 500px; }
.data-table th {
  padding: 13px 18px; text-align: left;
  font-size: 0.78rem; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.08em;
  background: rgba(37,99,235,0.08); border-bottom: 1px solid var(--glass-border);
}
.data-table td {
  padding: 13px 18px; border-bottom: 1px solid rgba(59,130,246,0.07);
  font-size: 0.88rem; color: var(--text);
}
.data-table tbody tr:hover td { background: rgba(59,130,246,0.04); }
.data-table tbody tr:last-child td { border-bottom: none; }

/* ─── DROPDOWN / MENU ──────────────────────────────────────── */
.dropdown { position: relative; display: inline-block; }
.dropdown-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 180px;
  background: rgba(6,15,34,0.96); backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border); border-radius: var(--r-md);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  padding: 8px; z-index: 500; display: none;
}
.dropdown-menu.show { display: block; }
.dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: var(--r-sm);
  font-size: 0.88rem; color: var(--text); text-decoration: none;
  cursor: pointer; background: none; border: none; width: 100%;
  transition: background 0.15s, color 0.15s;
}
.dropdown-item:hover { background: rgba(59,130,246,0.1); color: var(--royal-pale); }
.dropdown-item.danger:hover { background: rgba(239,68,68,0.1); color: #fca5a5; }
.dropdown-separator { height: 1px; background: var(--glass-border); margin: 6px 0; }

/* ─── MODAL ────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.65);
  backdrop-filter: blur(8px); z-index: 900;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.modal-overlay.show { opacity: 1; pointer-events: all; }
.modal-box {
  background: rgba(6,15,34,0.98); backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border); border-radius: var(--r-xl);
  padding: 36px; max-width: 520px; width: 100%;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  transform: scale(0.95) translateY(20px); transition: transform 0.25s ease;
}
.modal-overlay.show .modal-box { transform: scale(1) translateY(0); }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.modal-title { font-family: var(--font-head); font-size: 1.25rem; font-weight: 800; color: var(--heading); }
.modal-close {
  width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1); color: var(--muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
  transition: background 0.2s, color 0.2s;
}
.modal-close:hover { background: rgba(239,68,68,0.15); color: #f87171; }
.modal-footer { display: flex; gap: 12px; justify-content: flex-end; margin-top: 28px; }

/* ─── TOAST ────────────────────────────────────────────────── */
.toast-container {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 9999; display: flex; flex-direction: column; align-items: center; gap: 10px;
  pointer-events: none;
}
.toast {
  padding: 12px 24px; border-radius: 100px;
  background: rgba(6,15,34,0.96); backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  color: var(--heading); font-size: 0.9rem; font-weight: 600;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { border-color: rgba(16,185,129,0.4); color: #6ee7b7; }
.toast.error   { border-color: rgba(239,68,68,0.4);  color: #fca5a5; }
.toast.info    { border-color: rgba(37,99,235,0.4);  color: #93c5fd; }

/* ─── FAQ ──────────────────────────────────────────────────── */
.faq-item { border-bottom: 1px solid var(--glass-border); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0; cursor: pointer; background: none; border: none; width: 100%;
  text-align: left; font-size: 0.96rem; font-weight: 600; color: var(--heading);
  transition: color 0.2s;
}
.faq-q:hover { color: var(--royal-pale); }
.faq-q .faq-icon { font-size: 1.2rem; transition: transform 0.3s; color: var(--muted); flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--royal-pale); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-a-inner { padding: 0 0 20px; font-size: 0.9rem; color: var(--text); line-height: 1.75; }

/* ─── SIDEBAR APP LAYOUT ───────────────────────────────────── */
.app-layout {
  display: flex; min-height: 100vh;
}

.sidebar {
  position: fixed; left: 0; top: 0; bottom: 0;
  width: var(--sidebar-w);
  background: rgba(4,10,26,0.96); backdrop-filter: blur(24px);
  border-right: 1px solid var(--glass-border);
  display: flex; flex-direction: column;
  z-index: 800;
  transition: width 0.3s ease, transform 0.3s ease;
  overflow: hidden;
}
.sidebar.collapsed { width: var(--sidebar-collapsed); }

.sidebar-brand {
  display: flex; align-items: center; gap: 12px;
  padding: 22px 20px; border-bottom: 1px solid var(--glass-border);
  text-decoration: none; overflow: hidden;
}
.sidebar-brand img { width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0; box-shadow: 0 0 12px var(--royal-glow); }
.sidebar-brand-text {
  font-family: var(--font-head); font-size: 1.1rem; font-weight: 800;
  background: linear-gradient(135deg, #60a5fa, #2563eb);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

.sidebar-nav { flex: 1; padding: 16px 12px; overflow-y: auto; overflow-x: hidden; }
.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(59,130,246,0.2); border-radius: 4px; }

.sidebar-section-label {
  font-size: 0.68rem; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.12em;
  padding: 12px 10px 6px; white-space: nowrap; overflow: hidden;
}
.collapsed .sidebar-section-label { opacity: 0; }

.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: var(--r-sm);
  text-decoration: none; color: var(--muted);
  font-size: 0.88rem; font-weight: 500;
  transition: background 0.2s, color 0.2s;
  cursor: pointer; border: none; background: none; width: 100%;
  white-space: nowrap; overflow: hidden;
  margin-bottom: 2px;
}
.nav-item:hover { background: rgba(59,130,246,0.1); color: var(--text); }
.nav-item.active { background: rgba(37,99,235,0.18); color: var(--royal-pale); }
.nav-item-icon { font-size: 1.15rem; flex-shrink: 0; }
.nav-item-badge {
  margin-left: auto; padding: 2px 7px; border-radius: 100px;
  background: rgba(37,99,235,0.2); color: var(--royal-pale);
  font-size: 0.7rem; font-weight: 700;
}

.sidebar-footer {
  padding: 16px 12px; border-top: 1px solid var(--glass-border);
}
.sidebar-user {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--r-sm);
  cursor: pointer; transition: background 0.2s;
  overflow: hidden;
}
.sidebar-user:hover { background: rgba(59,130,246,0.08); }
.sidebar-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 700; color: #fff;
}
.sidebar-user-info { overflow: hidden; }
.sidebar-user-name {
  font-size: 0.88rem; font-weight: 700; color: var(--heading);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sidebar-user-role { font-size: 0.74rem; color: var(--muted); }

/* App Main Content */
.app-main {
  margin-left: var(--sidebar-w);
  flex: 1; min-height: 100vh;
  transition: margin-left 0.3s ease;
  display: flex; flex-direction: column;
}
.app-main.sidebar-collapsed { margin-left: var(--sidebar-collapsed); }

.app-topbar {
  position: sticky; top: 0; z-index: 700;
  height: 64px; padding: 0 28px;
  display: flex; align-items: center; gap: 16px;
  background: rgba(3,11,26,0.88); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}
.app-topbar-title {
  font-family: var(--font-head); font-size: 1.15rem; font-weight: 800;
  color: var(--heading);
}
.app-topbar-spacer { flex: 1; }

.app-content {
  flex: 1; padding: 28px;
}

/* Sidebar toggle button */
.sidebar-toggle {
  position: fixed; top: 20px; left: calc(var(--sidebar-w) - 16px); z-index: 900;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(6,15,34,0.98); border: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: left 0.3s ease, transform 0.3s ease;
  color: var(--muted); font-size: 0.9rem;
}
.sidebar-toggle:hover { color: var(--royal-pale); }

/* ─── CHIPS / TAGS ─────────────────────────────────────────── */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 100px;
  font-size: 0.8rem; font-weight: 600;
  background: rgba(37,99,235,0.12); border: 1px solid rgba(37,99,235,0.2);
  color: var(--royal-pale); white-space: nowrap;
}
.chip-close {
  cursor: pointer; opacity: 0.6; font-size: 0.85rem;
  background: none; border: none; color: inherit; line-height: 1;
}
.chip-close:hover { opacity: 1; }

/* ─── SKELETON LOADER ──────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, rgba(59,130,246,0.06) 25%, rgba(59,130,246,0.13) 50%, rgba(59,130,246,0.06) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--r-sm);
}
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

/* ─── UTILS ────────────────────────────────────────────────── */
.d-flex    { display: flex; }
.d-grid    { display: grid; }
.gap-4     { gap: 4px; }
.gap-8     { gap: 8px; }
.gap-12    { gap: 12px; }
.gap-16    { gap: 16px; }
.gap-20    { gap: 20px; }
.gap-24    { gap: 24px; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.flex-col  { flex-direction: column; }
.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.w-full { width: 100%; }
.hidden { display: none !important; }
.opacity-0 { opacity: 0; }

/* Scroll reveal */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── FOOTER (Marketing pages) ─────────────────────────────── */
.site-footer {
  position: relative; z-index: 1;
  background: transparent;
  border-top: 1px solid var(--glass-border);
  padding: 40px 5vw 24px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px; margin-bottom: 24px;
}
.footer-brand {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
}
.footer-brand img { width: 36px; height: 36px; border-radius: 9px; }
.footer-brand span {
  font-family: var(--font-head); font-size: 1.1rem; font-weight: 800;
  background: linear-gradient(135deg, #60a5fa, #2563eb);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(37,99,235,0.1); border: 1px solid rgba(37,99,235,0.2);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; font-size: 1rem;
  transition: background 0.2s, transform 0.2s;
}
.footer-socials a:hover { background: rgba(37,99,235,0.25); transform: translateY(-2px); }
.footer-policies { margin-bottom: 20px; }
.fp-label {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--muted); margin-bottom: 12px;
}
.fp-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.fp-links a {
  color: var(--muted); text-decoration: none; font-size: 0.82rem;
  transition: color 0.2s;
}
.fp-links a:hover { color: var(--royal-pale); }
.footer-copy {
  font-size: 0.8rem; color: var(--muted);
  border-top: 1px solid var(--glass-border); padding-top: 18px;
}

/* Back to top */
.back-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 500;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(37,99,235,0.2); border: 1px solid rgba(37,99,235,0.35);
  color: var(--royal-pale); font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0; transform: translateY(16px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
}
.back-top.show { opacity: 1; transform: translateY(0); }
.back-top:hover { background: rgba(37,99,235,0.4); }

/* ─── FOOTER GRID (legal pages & PWA-style footer) ─────────── */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-brand-col {}
.footer-brand-logo {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px; text-decoration: none;
}
.footer-brand-logo img { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 0 20px var(--royal-glow); }
.footer-brand-logo span { font-family: var(--font-head); font-size: 1.2rem; font-weight: 800; color: var(--heading); }
.footer-tagline { font-size: .9rem; color: var(--muted); line-height: 1.6; margin-bottom: 20px; max-width: 280px; }
.footer-col h4 {
  font-size: .82rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--royal-pale); margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col ul a { color: var(--muted); text-decoration: none; font-size: .87rem; transition: color .2s; }
.footer-col ul a:hover { color: var(--text); }
.footer-divider {
  border: none; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59,130,246,.2), transparent);
}
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; padding: 20px 0;
  font-size: .82rem; color: var(--muted);
}
.footer-bottom a { color: var(--muted); text-decoration: none; transition: color .2s; }
.footer-bottom a:hover { color: var(--royal-pale); }

/* ─── BG-ORB (alias for .orb used in features.html) ────────── */
.bg-orb {
  position: fixed; border-radius: 50%; filter: blur(120px); z-index: 0; pointer-events: none;
  animation: orbDrift 20s ease-in-out infinite alternate;
}
.bg-orb-1 { width: 600px; height: 600px; top: -150px; left: -100px; background: rgba(37,99,235,0.12); }
.bg-orb-2 { width: 500px; height: 500px; bottom: -100px; right: -60px; background: rgba(124,58,237,0.10); animation-delay: -8s; }

/* ─── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .app-main { margin-left: 0 !important; }
  .app-topbar { padding: 0 18px; }
  .app-content { padding: 20px 18px; }
}

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-cta .btn:not(.btn-primary):not(:last-child) { display: none; }
  .section { padding: 70px 5vw; }
  .page-hero { padding: 90px 5vw 50px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 480px) {
  .btn-xl { padding: 15px 30px; font-size: 0.95rem; }
  .modal-box { padding: 24px; }
}

/* ─── ANIMATIONS ───────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.spin { animation: spin 1s linear infinite; }
