/* ========================================================================
   RAWKNTOOL Unified Platform — Master CSS v2.0
   Design: Premium Dark Glassmorphism + Vibrant Gradients
   ======================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ─── CSS Variables ────────────────────────────────────────────────────── */
:root {
  --primary: #7c3aed;
  --primary-hover: #6d28d9;
  --secondary: #ec2a7a;
  --accent: #ec2a7a;
  --accent2: #a855f7;
  --success: #16a34a;
  --warning: #f59e0b;
  --danger: #e11d48;

  --violet: #7c3aed;
  --violet-2: #6d28d9;
  --violet-soft: #ede9fe;
  --pink: #ec2a7a;
  --pink-2: #d81b60;
  --pink-soft: #fce7f3;
  --grad: linear-gradient(135deg, #7c3aed, #ec2a7a);
  --grad-soft: linear-gradient(135deg, #f3e8ff, #fce7f3);
  --grad-glow: 0 8px 24px rgba(124, 58, 237, 0.35);

  --bg: #030712;
  --bg-2: #0a0f1e;
  --bg-3: #0f172a;
  --bg-4: #1e293b;
  --bg-5: #334155;

  --glass-bg: rgba(15, 23, 42, 0.7);
  --glass-border: rgba(124, 58, 237, 0.18);
  --glass-border-hover: rgba(124, 58, 237, 0.45);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-highlight: #c084fc;

  --border-subtle: rgba(255, 255, 255, 0.08);

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

  --shadow-glow: 0 0 40px rgba(124, 58, 237, 0.25);
  --shadow-card: 0 4px 32px rgba(0, 0, 0, 0.45);

  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

/* ─── Reset & Base ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

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

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(124, 58, 237, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 110%, rgba(236, 42, 122, 0.14) 0%, transparent 60%),
    radial-gradient(ellipse 50% 30% at 50% 50%, rgba(168, 85, 247, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

body > * { position: relative; z-index: 1; }

a { color: var(--text-highlight); text-decoration: none; transition: color 0.2s; }
a:hover { color: #fff; }

/* ─── Typography ────────────────────────────────────────────────────────── */
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.gradient-text-alt {
  background: linear-gradient(135deg, #a855f7 0%, #ec2a7a 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ─── Navbar ────────────────────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(3, 7, 18, 0.85);
  border-bottom: 1px solid var(--glass-border);
  padding: 0 20px;
}
.nav-container {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 16px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 20px; font-weight: 800; color: var(--text-primary);
  text-decoration: none; letter-spacing: -0.5px;
  transition: opacity 0.2s;
}
.logo:hover { opacity: 0.9; color: var(--text-primary); }
.logo-icon {
  width: 36px; height: 36px; border-radius: var(--radius-md);
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; box-shadow: 0 0 20px rgba(124, 58, 237, 0.45);
}
.logo-badge {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--pink);
  background: var(--pink-soft); border: 1px solid rgba(236, 42, 122, 0.3);
  padding: 2px 8px; border-radius: 20px;
}
.nav-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.nav-tabs { display: flex; gap: 4px; }
.nav-tab {
  padding: 6px 14px; border-radius: var(--radius-md); font-size: 13px;
  font-weight: 500; color: var(--text-secondary); cursor: pointer;
  border: none; background: transparent; transition: all 0.2s;
}
.nav-tab:hover, .nav-tab.active { color: var(--text-primary); background: rgba(124, 58, 237, 0.18); }

/* ─── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px; border-radius: var(--radius-md); font-size: 14px;
  font-weight: 600; cursor: pointer; border: none; transition: all 0.2s;
  font-family: var(--font-main); text-decoration: none; white-space: nowrap;
  letter-spacing: 0.2px;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--grad);
  color: #fff; box-shadow: 0 4px 20px rgba(124, 58, 237, 0.35);
}
.btn-primary:hover { box-shadow: 0 6px 28px rgba(124, 58, 237, 0.55); transform: translateY(-1px); }
.btn-secondary {
  background: rgba(255,255,255,0.06); color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.15); }
.btn-glass {
  backdrop-filter: blur(10px); background: rgba(255,255,255,0.06);
  color: var(--text-primary); border: 1px solid var(--glass-border);
}
.btn-glass:hover { background: rgba(255,255,255,0.1); border-color: var(--glass-border-hover); }
.btn-success { background: linear-gradient(135deg, #16a34a 0%, #15803d 100%); color: #fff; }
.btn-danger { background: linear-gradient(135deg, #e11d48 0%, #be123c 100%); color: #fff; }
.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-lg { padding: 14px 28px; font-size: 15px; border-radius: var(--radius-lg); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ─── Glass Cards ───────────────────────────────────────────────────────── */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  box-shadow: var(--shadow-card);
  transition: all 0.25s;
}
.glass-card:hover { border-color: var(--glass-border-hover); box-shadow: 0 8px 40px rgba(99,102,241,0.18); }
.glass-card-glow { box-shadow: var(--shadow-card), var(--shadow-glow); }

/* ─── Forms ─────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block; margin-bottom: 6px;
  font-size: 13px; font-weight: 600; color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: 0.5px;
}
.form-control {
  width: 100%; padding: 11px 14px; border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.8); border: 1px solid rgba(99,102,241,0.2);
  color: var(--text-primary); font-size: 14px; font-family: var(--font-main);
  transition: all 0.2s; outline: none;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,0.15); }
.form-control::placeholder { color: var(--text-muted); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 80px; }

/* ─── Modal ─────────────────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-backdrop.active { display: flex; animation: fadeIn 0.2s ease; }
.modal-container {
  background: rgba(10,15,30,0.98); border: 1px solid var(--glass-border-hover);
  border-radius: var(--radius-2xl); padding: 32px; width: 100%; max-width: 480px;
  max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,0.6), var(--shadow-glow);
  animation: slideUp 0.25s ease;
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border-subtle);
}
.modal-header h3 { font-size: 18px; font-weight: 700; }
.modal-close {
  background: rgba(255,255,255,0.08); border: none; color: var(--text-secondary);
  width: 32px; height: 32px; border-radius: var(--radius-md); cursor: pointer;
  font-size: 14px; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.modal-close:hover { background: rgba(239,68,68,0.2); color: #f87171; }

/* ─── Hero Section ──────────────────────────────────────────────────────── */
.hero {
  padding: 80px 20px 60px;
  text-align: center; max-width: 1200px; margin: 0 auto;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.3);
  border-radius: 100px; padding: 6px 16px; margin-bottom: 24px;
  font-size: 13px; font-weight: 600; color: var(--text-highlight);
}
.hero-badge-dot { width: 8px; height: 8px; border-radius: 50%; background: #22d3ee; box-shadow: 0 0 8px #22d3ee; animation: pulse 2s infinite; }
.hero-title { font-size: clamp(36px, 6vw, 64px); font-weight: 900; line-height: 1.1; letter-spacing: -2px; margin-bottom: 20px; }
.hero-subtitle { font-size: clamp(15px, 2.5vw, 19px); color: var(--text-secondary); max-width: 680px; margin: 0 auto 36px; line-height: 1.7; }
.hero-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }

/* ─── Feature Cards ─────────────────────────────────────────────────────── */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.feature-card { padding: 28px; }
.feature-icon-wrapper { font-size: 32px; margin-bottom: 14px; }
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--text-secondary); font-size: 14px; line-height: 1.7; }

/* ─── Sections ──────────────────────────────────────────────────────────── */
.section { padding: 60px 20px; max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -1px; margin-bottom: 12px; }
.section-header p { color: var(--text-secondary); font-size: 16px; max-width: 580px; margin: 0 auto; }

/* ─── Tool Cards (Home) ─────────────────────────────────────────────────── */
.tool-cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px; }
.tool-card {
  padding: 32px; cursor: pointer; position: relative; overflow: hidden;
  transition: all 0.3s;
}
.tool-card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  opacity: 0; transition: opacity 0.3s;
}
.tool-card-dl::before { background: linear-gradient(135deg, rgba(124,58,237,0.1), rgba(236,42,122,0.1)); }
.tool-card-rc::before { background: linear-gradient(135deg, rgba(236,42,122,0.1), rgba(124,58,237,0.1)); }
.tool-card-qr::before { background: linear-gradient(135deg, rgba(16,185,129,0.1), rgba(124,58,237,0.1)); }
.tool-card:hover::before { opacity: 1; }
.tool-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(124,58,237,0.28); }
.tool-card-badge {
  display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; padding: 4px 12px; border-radius: 100px; margin-bottom: 20px;
}
.badge-dl { background: rgba(124,58,237,0.15); color: #c084fc; border: 1px solid rgba(124,58,237,0.35); }
.badge-rc { background: rgba(236,42,122,0.15); color: #f472b6; border: 1px solid rgba(236,42,122,0.35); }
.badge-qr { background: rgba(16,185,129,0.15); color: #6ee7b7; border: 1px solid rgba(16,185,129,0.35); }
.tool-card-icon { font-size: 48px; margin-bottom: 16px; }
.tool-card h3 { font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.tool-card p { color: var(--text-secondary); font-size: 14px; line-height: 1.7; margin-bottom: 20px; }

/* ─── Document Retrieval Forms ───────────────────────────────────────────── */
.doc-page-wrapper { max-width: 680px; margin: 0 auto; padding: 40px 20px; }
.doc-result-card { padding: 28px; text-align: center; }
.pdf-preview-frame { width: 100%; height: 500px; border: none; border-radius: var(--radius-lg); background: #fff; }

/* ─── Drop Page ─────────────────────────────────────────────────────────── */
.drop-page-wrapper { max-width: 820px; margin: 0 auto; padding: 20px 16px 60px; }
.drop-header { text-align: center; padding: 24px 16px; }
.drop-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin: 0 auto 14px; box-shadow: 0 0 28px rgba(124,58,237,0.45);
}
.drop-message-box {
  background: rgba(124,58,237,0.08); border: 1px solid rgba(124,58,237,0.22);
  border-radius: var(--radius-lg); padding: 14px 20px; margin: 16px auto;
  max-width: 560px; font-size: 14px; color: var(--text-secondary); text-align: left;
}
.shop-contact-bar { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin: 12px 0; font-size: 13px; }
.shop-contact-link { color: var(--text-highlight); transition: color 0.2s; }
.shop-contact-link:hover { color: #fff; }

/* ─── Dropzone ──────────────────────────────────────────────────────────── */
.dropzone {
  border: 2px dashed rgba(124,58,237,0.35); border-radius: var(--radius-xl);
  padding: 40px 20px; text-align: center; cursor: pointer;
  transition: all 0.25s; position: relative;
}
.dropzone:hover, .dropzone.drag-over {
  border-color: var(--primary); background: rgba(124,58,237,0.08);
  box-shadow: 0 0 30px rgba(124,58,237,0.2);
}
.dropzone-icon { font-size: 48px; margin-bottom: 12px; }
.dropzone-title { font-size: 16px; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }
.dropzone-subtitle { font-size: 13px; color: var(--text-muted); }

/* ─── File Queue ────────────────────────────────────────────────────────── */
.file-queue-item {
  background: rgba(15,23,42,0.8); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); padding: 16px;
  display: flex; flex-direction: column; gap: 10px; transition: all 0.2s;
}
.file-queue-item:hover { border-color: rgba(99,102,241,0.3); }
.file-info-row { display: flex; align-items: center; gap: 10px; }
.file-icon { font-size: 22px; flex-shrink: 0; }
.file-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.file-size-badge { font-size: 11px; color: var(--text-muted); white-space: nowrap; }
.file-actions { display: flex; gap: 6px; }

/* ─── Dashboard ─────────────────────────────────────────────────────────── */
.dashboard-wrapper { max-width: 1400px; margin: 0 auto; padding: 24px 20px 60px; }
.dash-topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.dash-greeting h1 { font-size: 28px; font-weight: 800; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card { padding: 20px 24px; display: flex; align-items: center; gap: 16px; }
.stat-icon-box { width: 48px; height: 48px; border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.stat-value { font-size: 26px; font-weight: 800; line-height: 1; }
.stat-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

.dashboard-grid { display: grid; grid-template-columns: 360px 1fr; gap: 24px; align-items: start; }
@media (max-width: 1024px) { .dashboard-grid { grid-template-columns: 1fr; } }

.dash-sidebar { display: flex; flex-direction: column; gap: 20px; }
.inbox-card { padding: 24px; }
.inbox-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }
.inbox-title-group { display: flex; align-items: center; gap: 10px; }
.inbox-title-group h2 { font-size: 20px; font-weight: 700; }
.files-count-badge { background: rgba(99,102,241,0.15); color: var(--text-highlight); padding: 4px 12px; border-radius: 100px; font-size: 12px; font-weight: 700; }

/* ─── Inbox File Cards ──────────────────────────────────────────────────── */
.file-row {
  background: rgba(15,23,42,0.6); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); padding: 14px 16px;
  display: flex; flex-direction: column; gap: 10px;
  transition: all 0.2s; margin-bottom: 10px;
}
.file-row:hover { border-color: rgba(99,102,241,0.3); background: rgba(15,23,42,0.9); }
.file-row-header { display: flex; align-items: center; gap: 10px; }
.file-row-meta { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--text-secondary); }
.file-row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.token-badge {
  background: linear-gradient(135deg, rgba(139,92,246,0.3), rgba(217,70,239,0.3));
  border: 1px solid rgba(139,92,246,0.5); color: #e879f9;
  padding: 4px 12px; border-radius: 100px; font-size: 12px; font-weight: 800;
  letter-spacing: 0.5px;
}
.countdown-badge { padding: 3px 10px; border-radius: 100px; font-size: 11px; font-weight: 700; }
.countdown-green { background: rgba(16,185,129,0.15); color: #6ee7b7; border: 1px solid rgba(16,185,129,0.3); }
.countdown-yellow { background: rgba(245,158,11,0.15); color: #fbbf24; border: 1px solid rgba(245,158,11,0.3); }
.countdown-red { background: rgba(239,68,68,0.15); color: #f87171; border: 1px solid rgba(239,68,68,0.3); }

/* ─── QR Card ───────────────────────────────────────────────────────────── */
.qr-card { padding: 24px; }
.qr-frame-wrapper {
  width: 180px; height: 180px; border-radius: var(--radius-xl);
  overflow: hidden; margin: 16px auto; background: #fff;
  padding: 8px; box-shadow: 0 0 30px rgba(99,102,241,0.3);
}
.qr-frame-wrapper img { width: 100%; height: 100%; object-fit: contain; }
.link-copy-box { display: flex; gap: 8px; margin: 12px 0; }
.link-copy-box input { font-size: 12px; font-family: var(--font-mono); }
.qr-action-buttons { display: flex; flex-direction: column; gap: 8px; }

/* ─── Auto-Print Card ───────────────────────────────────────────────────── */
.autoprint-card { padding: 20px; }
.autoprint-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.autoprint-title { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; }
.autoprint-badge-on { background: rgba(16,185,129,0.2); color: #34d399; border: 1px solid rgba(16,185,129,0.4); padding: 3px 10px; border-radius: 100px; font-size: 11px; font-weight: 700; }
.autoprint-badge-off { background: rgba(100,116,139,0.2); color: #94a3b8; border: 1px solid rgba(100,116,139,0.3); padding: 3px 10px; border-radius: 100px; font-size: 11px; font-weight: 700; }

/* Toggle Switch */
.switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch-slider {
  position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg-4); border-radius: 100px; transition: 0.3s;
  border: 1px solid var(--border-subtle);
}
.switch-slider:before {
  content: ''; position: absolute; height: 18px; width: 18px; left: 2px; bottom: 2px;
  background: #fff; border-radius: 50%; transition: 0.3s;
}
input:checked + .switch-slider { background: var(--primary); border-color: var(--primary); box-shadow: 0 0 14px rgba(99,102,241,0.4); }
input:checked + .switch-slider:before { transform: translateX(20px); }

/* ─── Live Badge ────────────────────────────────────────────────────────── */
.live-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(16,185,129,0.12); border: 1px solid rgba(16,185,129,0.3);
  border-radius: 100px; padding: 4px 12px; font-size: 12px; font-weight: 600; color: #34d399;
}
.live-indicator {
  width: 7px; height: 7px; border-radius: 50%; background: #10b981;
  box-shadow: 0 0 8px #10b981; animation: pulse 2s infinite;
}

/* ─── Printer Select ────────────────────────────────────────────────────── */
.printer-select {
  width: 100%;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #f8fafc !important;
  background-color: #0f172a !important;
  border: 1.5px solid rgba(99, 102, 241, 0.45) !important;
  border-radius: var(--radius-md);
  outline: none;
  cursor: pointer;
  appearance: auto;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  transition: all 0.2s ease;
}

.printer-select:focus {
  border-color: #818cf8 !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.printer-select option {
  background-color: #0f172a !important;
  color: #f8fafc !important;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
}

/* ─── Progress Bar ──────────────────────────────────────────────────────── */
.progress-container { height: 4px; border-radius: 10px; background: rgba(99,102,241,0.15); overflow: hidden; display: none; }
.progress-bar { height: 100%; border-radius: 10px; background: linear-gradient(90deg, var(--primary), var(--accent)); transition: width 0.3s; width: 0%; }

/* ─── Success Screen ────────────────────────────────────────────────────── */
.success-screen { padding: 40px; text-align: center; display: none; }
.success-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #059669);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; color: #fff; margin: 0 auto 20px;
  box-shadow: 0 0 30px rgba(16,185,129,0.4); animation: popIn 0.4s ease;
}

/* ─── Standee / Print Poster ─────────────────────────────────────────────── */
.standee-theme-cyber {
  background: linear-gradient(135deg, #0a0f1e 0%, #1a0533 100%);
  border: 2px solid rgba(99,102,241,0.5); border-radius: var(--radius-xl);
  padding: 28px; text-align: center; color: #fff;
}
.standee-qr-box {
  width: 160px; height: 160px; background: #fff; border-radius: var(--radius-lg);
  padding: 8px; margin: 16px auto; overflow: hidden;
}
.standee-qr-box img { width: 100%; height: 100%; }
.standee-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.standee-tab-btn { flex: 1; padding: 8px; border-radius: var(--radius-md); border: 1px solid var(--border-subtle); background: rgba(255,255,255,0.05); color: var(--text-secondary); cursor: pointer; font-size: 12px; font-weight: 600; transition: all 0.2s; }
.standee-tab-btn.active, .standee-tab-btn:hover { background: rgba(99,102,241,0.2); border-color: var(--primary); color: #fff; }
.standee-badge { display: inline-block; background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; padding: 4px 14px; border-radius: 100px; font-size: 11px; font-weight: 700; margin-bottom: 10px; }
.standee-title { font-size: 24px; font-weight: 900; letter-spacing: -0.5px; }
.standee-sub { font-size: 13px; color: #94a3b8; margin: 6px 0 14px; }
.standee-footer { font-size: 11px; color: #64748b; }
.standee-instructions { font-size: 12px; color: #a5b4fc; margin-bottom: 6px; }

/* ─── Preview Modal & Mobile Document Studio (Drop Page) ─────────── */
.preview-modal-container {
  background: rgba(10,15,30,0.98); border: 1px solid var(--glass-border-hover);
  border-radius: var(--radius-2xl); width: 95%; max-width: 1100px;
  max-height: 92vh; overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.7);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.preview-modal-body {
  display: grid; grid-template-columns: 1fr 360px;
  gap: 0; flex: 1; overflow: hidden;
}
@media (max-width: 768px) {
  .preview-modal-container {
    width: 100% !important;
    height: 100% !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    border: none !important;
  }
  .preview-modal-body {
    display: flex !important;
    flex-direction: column !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    flex: 1;
  }
  .preview-viewport-wrapper {
    padding: 12px !important;
    min-height: 280px;
  }
  .preview-controls-panel {
    border-left: none !important;
    border-top: 1px solid var(--border-subtle) !important;
    overflow-y: visible !important;
    padding: 16px 14px 40px !important;
  }
  .doc-tool-btn {
    padding: 8px 12px !important;
    font-size: 12px !important;
  }
}
.preview-viewport-wrapper {
  padding: 16px; overflow-y: auto; display: flex; flex-direction: column; align-items: center;
  background: rgba(5, 8, 20, 0.5); gap: 10px; flex: 1;
}
.preview-controls-panel {
  border-left: 1px solid var(--border-subtle); padding: 18px;
  overflow-y: auto; display: flex; flex-direction: column; gap: 16px;
  background: rgba(10,15,30,0.85);
}

/* Studio Tabs */
.studio-tabs {
  display: flex; background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid var(--border-subtle); padding: 8px 16px;
  gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.studio-tab-btn {
  padding: 8px 16px; border-radius: var(--radius-md); background: transparent;
  border: 1px solid transparent; color: var(--text-secondary); font-size: 13px;
  font-weight: 600; cursor: pointer; white-space: nowrap; display: flex;
  align-items: center; gap: 6px; transition: all 0.2s;
}
.studio-tab-btn:hover { background: rgba(255,255,255,0.05); color: #fff; }
.studio-tab-btn.active {
  background: rgba(99, 102, 241, 0.2); border-color: var(--primary);
  color: #fff; box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}

/* Interactive Cropper Stage & Workspace */
.cropper-stage-wrapper {
  width: 100%;
  max-width: 620px;
  background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  min-height: 290px;
  max-height: 52vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}
.cropper-stage-wrapper img {
  max-width: 100%;
  max-height: 50vh;
  display: block;
}

/* Cropper.js Premium Theme Overrides */
.cropper-view-box {
  outline: 2px solid #38bdf8 !important;
  outline-color: #38bdf8 !important;
  border-radius: 2px;
}
.cropper-line {
  background-color: #38bdf8 !important;
}
.cropper-point {
  background-color: #38bdf8 !important;
  width: 10px !important;
  height: 10px !important;
  border-radius: 50% !important;
  box-shadow: 0 0 8px #38bdf8 !important;
}
.cropper-point.point-se {
  width: 14px !important;
  height: 14px !important;
}
.cropper-bg {
  background-image: none !important;
  background-color: #0b0f19 !important;
}
.cropper-modal {
  opacity: 0.65 !important;
  background-color: #000 !important;
}

.crop-toolbar {
  display: flex; gap: 6px; flex-wrap: wrap; justify-content: center;
  width: 100%; margin-top: 10px;
}
.crop-btn {
  padding: 7px 13px; border-radius: var(--radius-md);
  background: rgba(255,255,255,0.08); border: 1px solid var(--border-subtle);
  color: var(--text-primary); font-size: 12px; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; gap: 5px;
  transition: all 0.2s ease;
}
.crop-btn:hover, .crop-btn.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(99, 102, 241, 0.25));
  border-color: #38bdf8; color: #fff;
  box-shadow: 0 2px 10px rgba(56, 189, 248, 0.25);
}

/* Segmented Color Mode Selector */
.color-mode-segmented {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  background: rgba(0,0,0,0.3); padding: 5px; border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
}
.color-mode-btn {
  padding: 10px 14px; border-radius: var(--radius-md); border: 2px solid transparent;
  background: transparent; color: var(--text-secondary); font-weight: 700;
  font-size: 13px; cursor: pointer; text-align: center; transition: all 0.2s;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.color-mode-btn:hover { background: rgba(255,255,255,0.05); }
.color-mode-btn.active-bw {
  background: rgba(255,255,255,0.12); border-color: #38bdf8;
  color: #ffffff; box-shadow: 0 4px 14px rgba(56, 189, 248, 0.2);
}
.color-mode-btn.active-color {
  background: linear-gradient(135deg, rgba(236,72,153,0.25), rgba(168,85,247,0.25));
  border-color: #f472b6; color: #ffffff; box-shadow: 0 4px 14px rgba(236,72,153,0.3);
}

/* Document Sliders */
.slider-group {
  display: flex; flex-direction: column; gap: 6px;
}
.slider-label-row {
  display: flex; justify-content: space-between; font-size: 12px; color: var(--text-secondary);
}
.studio-range {
  width: 100%; height: 6px; border-radius: 4px;
  background: rgba(255,255,255,0.1); outline: none; -webkit-appearance: none;
}
.studio-range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%;
  background: #38bdf8; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

/* Paper Sheet Simulation (Realistic Print Preview) */
.paper-sheet-simulation {
  background: #ffffff;
  box-shadow: 0 16px 45px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.2);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  transition: all 0.25s ease;
  margin: 0 auto;
}
.sheet-a4-portrait { width: 290px; height: 410px; }
.sheet-a4-landscape { width: 410px; height: 290px; }
.sheet-legal-portrait { width: 290px; height: 465px; }
.sheet-legal-landscape { width: 465px; height: 290px; }
.sheet-photo-portrait { width: 230px; height: 345px; }
.sheet-photo-landscape { width: 345px; height: 230px; }

@media (max-width: 600px) {
  .sheet-a4-portrait { width: 235px; height: 332px; }
  .sheet-a4-landscape { width: 310px; height: 220px; }
  .sheet-legal-portrait { width: 235px; height: 376px; }
  .sheet-legal-landscape { width: 310px; height: 195px; }
  .sheet-photo-portrait { width: 190px; height: 285px; }
  .sheet-photo-landscape { width: 285px; height: 190px; }
}

.paper-grid-container {
  width: 100%;
  height: 100%;
  display: grid;
  padding: 4px;
  box-sizing: border-box;
}
.grid-1-up { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.grid-2-up { grid-template-columns: 1fr 1fr; gap: 4px; }
.grid-4-up { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 4px; }
.grid-passport { grid-template-columns: repeat(4, 1fr); grid-template-rows: 1fr 1fr; gap: 4px; }

.grid-cell {
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 1px dashed rgba(148, 163, 184, 0.5);
  background: #ffffff;
  border-radius: 2px;
}
.grid-1-up .grid-cell {
  border: none;
  background: transparent;
}
.paper-inner-canvas {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block;
}
.doc-edit-toolbar { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; width: 100%; }
.doc-tool-btn {
  padding: 6px 12px; border-radius: var(--radius-md); background: rgba(255,255,255,0.07);
  border: 1px solid var(--border-subtle); color: var(--text-secondary); cursor: pointer;
  font-size: 11px; font-weight: 600; transition: all 0.2s;
}
.doc-tool-btn:hover, .doc-tool-btn.active { background: rgba(99,102,241,0.15); border-color: var(--primary); color: #fff; }
.preset-chip-group { display: flex; flex-wrap: wrap; gap: 6px; }
.preset-chip {
  padding: 6px 12px; border-radius: var(--radius-md); background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-subtle); cursor: pointer; font-size: 12px;
  color: var(--text-secondary); transition: all 0.2s;
}
.preset-chip.active, .preset-chip:hover { background: rgba(99,102,241,0.2); border-color: var(--primary); color: #fff; }
.pdf-password-prompt-box {
  background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.3);
  border-radius: var(--radius-md); padding: 12px; display: flex; gap: 12px;
  align-items: flex-start; width: 100%;
}
.preview-nav-bar { display: flex; align-items: center; gap: 12px; }

/* ─── Search ────────────────────────────────────────────────────────────── */
.search-input-wrap { position: relative; }
.search-icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-size: 14px; }
.search-input-wrap input { padding-left: 32px; }

/* ─── Empty State ───────────────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-icon { font-size: 56px; margin-bottom: 16px; opacity: 0.4; }
.empty-state h3 { font-size: 18px; font-weight: 700; color: var(--text-secondary); margin-bottom: 8px; }
.empty-state p { color: var(--text-muted); font-size: 14px; }

/* ─── Admin Panel ───────────────────────────────────────────────────────── */
.admin-wrapper { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 260px; flex-shrink: 0; background: rgba(10,15,30,0.95);
  border-right: 1px solid var(--border-subtle); padding: 20px 0;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-main { flex: 1; padding: 32px; overflow-x: hidden; }
.admin-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px; cursor: pointer; font-size: 14px; font-weight: 500;
  color: var(--text-secondary); transition: all 0.2s; border: none; background: none;
  width: 100%; text-align: left; border-radius: 0;
}
.admin-nav-item:hover, .admin-nav-item.active {
  color: var(--text-primary); background: rgba(99,102,241,0.12);
  border-right: 2px solid var(--primary);
}
.admin-section { display: none; }
.admin-section.active { display: block; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { padding: 10px 14px; text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); border-bottom: 1px solid var(--border-subtle); }
.admin-table td { padding: 10px 14px; font-size: 13px; border-bottom: 1px solid rgba(255,255,255,0.03); }
.admin-table tr:hover td { background: rgba(99,102,241,0.04); }
.admin-card { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: var(--radius-xl); padding: 24px; margin-bottom: 20px; }
.admin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.admin-header h2 { font-size: 22px; font-weight: 800; }

/* ─── Toast Notifications ───────────────────────────────────────────────── */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px;
  border-radius: var(--radius-lg); font-size: 14px; font-weight: 500;
  min-width: 280px; max-width: 420px; box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  animation: slideRight 0.3s ease, fadeOut 0.3s ease 2.7s;
  backdrop-filter: blur(16px);
}
.toast-success { background: rgba(16,185,129,0.15); border: 1px solid rgba(16,185,129,0.4); color: #6ee7b7; }
.toast-error { background: rgba(239,68,68,0.15); border: 1px solid rgba(239,68,68,0.4); color: #fca5a5; }
.toast-info { background: rgba(99,102,241,0.15); border: 1px solid rgba(99,102,241,0.4); color: #a5b4fc; }
.toast-warning { background: rgba(245,158,11,0.15); border: 1px solid rgba(245,158,11,0.4); color: #fcd34d; }

/* ─── Scanner ───────────────────────────────────────────────────────────── */
.scanner-viewport { position: relative; border-radius: var(--radius-xl); overflow: hidden; background: #000; max-height: 320px; }
.scanner-video { width: 100%; display: block; }
.scanner-canvas-hidden { display: none; }
.scanner-strip { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.scanner-thumb { width: 64px; height: 64px; border-radius: var(--radius-md); overflow: hidden; border: 2px solid var(--primary); cursor: pointer; }
.scanner-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ─── Footer ────────────────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--border-subtle); padding: 40px 20px; text-align: center; color: var(--text-muted); font-size: 13px; }
.footer-links { display: flex; gap: 20px; justify-content: center; margin-top: 10px; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--text-primary); }

/* ─── Animations ────────────────────────────────────────────────────────── */
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes slideRight { from { transform: translateX(40px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes popIn { 0% { transform: scale(0.5); } 80% { transform: scale(1.1); } 100% { transform: scale(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 1s linear infinite; display: inline-block; }

/* ─── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero { padding: 50px 16px 40px; }
  .nav-tabs { display: none; }
  .dashboard-wrapper { padding: 16px; }
  .admin-wrapper { flex-direction: column; }
  .admin-sidebar { width: 100%; height: auto; position: static; }
  .admin-main { padding: 16px; }
}

/* ─── Scrollbar ─────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(99,102,241,0.3); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(99,102,241,0.5); }

/* ─── Step Cards ────────────────────────────────────────────────────────── */
.flow-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.step-card { padding: 28px; text-align: center; }
.step-number { width: 48px; height: 48px; border-radius: 50%; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; box-shadow: 0 0 20px rgba(99,102,241,0.35); }

/* ─── Misc ──────────────────────────────────────────────────────────────── */
.divider { height: 1px; background: var(--border-subtle); margin: 24px 0; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 100px; font-size: 11px; font-weight: 700; }
.badge-success { background: rgba(16,185,129,0.15); color: #6ee7b7; }
.badge-danger { background: rgba(239,68,68,0.15); color: #fca5a5; }
.badge-info { background: rgba(99,102,241,0.15); color: #a5b4fc; }
.badge-warning { background: rgba(245,158,11,0.15); color: #fcd34d; }
.mono { font-family: var(--font-mono); }
.text-muted { color: var(--text-muted); }
.text-success { color: #34d399; }
.text-danger { color: #f87171; }
.gap-2 { gap: 8px; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.w-full { width: 100%; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.inline-copy { display: flex; gap: 8px; align-items: center; }

/* ─── PDF Preview & Doc Results ─────────────────────────────────────────── */
.pdf-preview-frame {
  width: 100%;
  height: 480px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.4);
  display: block;
}
.doc-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 14px;
  margin-bottom: 20px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}
.doc-detail-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.doc-detail-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.doc-detail-val {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.badge-success {
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.3);
}
.badge-primary {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

/* ── Advertisement Placements & Responsive Containers ── */
.ad-container {
  width: 100%;
  margin: 16px auto;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}
.ad-banner-item {
  max-width: 100%;
  display: inline-block;
  margin: 0 auto;
}
.ad-banner-item img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
}

/* ── Mobile Bottom Navigation Bar & Touch Optimization ── */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 62px;
  background: rgba(11, 15, 25, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-subtle);
  z-index: 999;
  justify-content: space-around;
  align-items: center;
  padding: 0 6px;
  box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.5);
}
.mobile-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: transparent;
  border: none;
  font-size: 11px;
  font-weight: 600;
  gap: 3px;
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  text-decoration: none;
}
.mobile-nav-btn.active, .mobile-nav-btn:hover {
  color: var(--primary);
}
.mobile-nav-btn .icon {
  font-size: 18px;
  line-height: 1;
}

@media (max-width: 768px) {
  .mobile-bottom-bar { display: flex; }
  body { padding-bottom: 70px; }
  .table-responsive, [style*="overflow-x: auto"] {
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 480px) {
  .hero-title { font-size: 30px !important; line-height: 1.25 !important; }
  .hero-subtitle { font-size: 13.5px !important; }
  .hero-buttons { flex-direction: column; width: 100%; gap: 10px !important; }
  .hero-buttons .btn { width: 100%; text-align: center; }
  .tool-cards-grid { grid-template-columns: 1fr !important; }
  .modal-container { padding: 22px 18px !important; margin: 12px !important; width: 94% !important; }
  .doc-page-wrapper { padding: 12px !important; }
}

/* ─── High Traffic Alert Banner & Popup Modal ──────────────────────────────── */
.high-traffic-banner {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: linear-gradient(90deg, #b91c1c 0%, #c2410c 50%, #b45309 100%);
  color: #ffffff;
  padding: 10px 16px;
  box-shadow: 0 4px 20px rgba(185, 28, 28, 0.35);
  border-bottom: 1px solid rgba(254, 202, 202, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  line-height: 1.45;
}
.high-traffic-banner-content {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  max-width: 1280px;
  margin: 0 auto;
}
.high-traffic-pill {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  text-transform: uppercase;
}
.high-traffic-pill .dot {
  width: 7px;
  height: 7px;
  background: #facc15;
  border-radius: 50%;
  animation: pulse-dot 1.4s infinite;
}
@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 1; box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.7); }
  70% { transform: scale(1.1); opacity: 0.8; box-shadow: 0 0 0 6px rgba(250, 204, 21, 0); }
  100% { transform: scale(0.9); opacity: 1; box-shadow: 0 0 0 0 rgba(250, 204, 21, 0); }
}
.high-traffic-close-btn {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.high-traffic-close-btn:hover {
  background: rgba(0, 0, 0, 0.5);
  transform: scale(1.1);
}

/* Modal Popup */
.high-traffic-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10005;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.high-traffic-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.high-traffic-modal-card {
  background: #0f172a;
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 20px;
  max-width: 540px;
  width: 100%;
  padding: 28px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85), 0 0 45px rgba(239, 68, 68, 0.2);
  transform: scale(0.92) translateY(10px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: #f8fafc;
}
.high-traffic-modal-overlay.active .high-traffic-modal-card {
  transform: scale(1) translateY(0);
}
.high-traffic-modal-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}
.high-traffic-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(245, 158, 11, 0.25));
  border: 1px solid rgba(239, 68, 68, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.25);
}
.high-traffic-info-item {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: #cbd5e1;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.high-traffic-info-item b {
  color: #f8fafc;
}

/* ─── Floating User Live Chat Widget ─────────────────────────────────────────── */
.user-chat-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9990;
  background: linear-gradient(135deg, #7c3aed 0%, #ec2a7a 100%);
  color: #ffffff !important;
  border: none;
  border-radius: 50px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.45), 0 0 15px rgba(236, 42, 122, 0.3);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}
.user-chat-fab:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 35px rgba(124, 58, 237, 0.6), 0 0 25px rgba(236, 42, 122, 0.4);
}
.user-chat-fab-icon {
  font-size: 20px;
  line-height: 1;
}
.user-chat-badge {
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  display: inline-block;
  animation: pulseBadge 2s infinite;
}
@keyframes pulseBadge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* Chat Drawer */
.user-chat-drawer {
  position: fixed;
  bottom: 84px;
  right: 24px;
  width: 390px;
  max-width: calc(100vw - 32px);
  height: 570px;
  max-height: calc(100vh - 110px);
  background: rgba(13, 19, 33, 0.96);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(124, 58, 237, 0.35);
  border-radius: 20px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8), 0 0 40px rgba(124, 58, 237, 0.2);
  z-index: 9995;
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: slideUpChat 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideUpChat {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.user-chat-header {
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.9), rgba(49, 46, 129, 0.9));
  border-bottom: 1px solid rgba(124, 58, 237, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.user-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(8, 12, 22, 0.6);
}
.user-chat-bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.5;
  position: relative;
  word-break: break-word;
}
.user-chat-bubble-me {
  align-self: flex-end;
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  color: #ffffff;
  border-bottom-right-radius: 3px;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3);
}
.user-chat-bubble-support {
  align-self: flex-start;
  background: #1e293b;
  color: #f8fafc;
  border-bottom-left-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

@media (max-width: 520px) {
  .user-chat-drawer {
    bottom: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
  }
  .user-chat-fab {
    bottom: 74px;
    right: 16px;
    padding: 10px 16px;
    font-size: 13px;
  }
}

/* ─── Social Authentication (Clerk Google & Facebook) ────────────────────── */
.social-auth-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
}
.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 46px;
  font-size: 14.5px;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #f8fafc;
  backdrop-filter: blur(8px);
}
.btn-social:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}
.btn-social-google:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(66, 133, 244, 0.55);
  box-shadow: 0 6px 22px rgba(66, 133, 244, 0.25);
}
.btn-social-facebook {
  background: rgba(24, 119, 242, 0.08);
  border-color: rgba(24, 119, 242, 0.35);
}
.btn-social-facebook:hover {
  background: rgba(24, 119, 242, 0.2);
  border-color: rgba(24, 119, 242, 0.65);
  box-shadow: 0 6px 22px rgba(24, 119, 242, 0.3);
}
.social-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0 16px;
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.social-divider::before,
.social-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.social-divider::before {
  margin-right: 12px;
}
.social-divider::after {
  margin-left: 12px;
}
