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

:root {
  /* ===== UI UX PRO MAX DESIGN SYSTEM ===== */
  /* Style: Flat Design · Touch-First · Clean Minimal */
  /* Pattern: Professional Blue + Deal Green */

  --color-primary: #2563EB;
  --color-on-primary: #FFFFFF;
  --color-secondary: #3B82F6;
  --color-accent: #059669;
  --color-background: #0F172A;
  --color-surface: #1E293B;
  --color-card: #1E293B;
  --color-foreground: #F8FAFC;
  --color-muted: #334155;
  --color-border: rgba(148, 163, 184, 0.12);
  --color-border-hover: rgba(148, 163, 184, 0.25);
  --color-destructive: #DC2626;
  --color-ring: #2563EB;

  --color-primary-dim: rgba(37, 99, 235, 0.12);
  --color-primary-glow: rgba(37, 99, 235, 0.18);
  --color-accent-dim: rgba(5, 150, 105, 0.12);
  --color-success: #059669;
  --color-success-dim: rgba(5, 150, 105, 0.12);
  --color-warning: #F59E0B;
  --color-warning-dim: rgba(245, 158, 11, 0.12);
  --color-error: #DC2626;
  --color-error-dim: rgba(220, 38, 38, 0.12);

  --color-text: #F8FAFC;
  --color-text-dim: #94A3B8;
  --color-text-muted: #64748B;

  --r-xl: 16px;
  --r-lg: 14px;
  --r-md: 10px;
  --r-sm: 6px;
  --r-pill: 999px;

  --mono: 'JetBrains Mono', monospace;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  height: 100%;
}

body {
  font-family: var(--sans);
  background: var(--color-background);
  color: var(--color-text);
  min-height: 100%;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior: none;
}

::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-text-dim); }

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

input, select, textarea, button { font-family: inherit; }

/* ===== BUTTONS — Flat Design: Immediate press feedback ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--r-md); font-size: 14px; font-weight: 700;
  cursor: pointer; border: 1px solid var(--color-border); background: var(--color-surface);
  color: var(--color-text); transition: all 0.15s ease;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  white-space: nowrap; user-select: none;
}
.btn:hover { background: var(--color-muted); }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-on-primary); }
.btn-primary:hover { background: #1D4ED8; }
.btn-primary:active { transform: scale(0.97); background: #1E40AF; }
.btn-accent { background: var(--color-accent); border-color: var(--color-accent); color: white; }
.btn-accent:hover { background: #047857; }
.btn-accent:active { transform: scale(0.97); }
.btn-danger { color: var(--color-destructive); background: var(--color-error-dim); border-color: rgba(220,38,38,0.2); }
.btn-danger:hover { background: var(--color-destructive); color: white; }
.btn-danger:active { transform: scale(0.97); }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-full { width: 100%; }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: var(--r-md); }

/* ===== FORM FIELDS — Flat, clean inputs ===== */
.field { position: relative; margin-bottom: 16px; }
.field label {
  display: block; font-size: 12px; font-weight: 700; color: var(--color-text-dim);
  margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.05em;
}
.field input, .field select {
  width: 100%; padding: 12px 14px; background: var(--color-muted);
  border: 1px solid var(--color-border); border-radius: var(--r-md);
  color: var(--color-text); font-size: 14px; outline: none;
  transition: border-color 0.15s;
}
.field input:focus, .field select:focus {
  border-color: var(--color-primary);
}
.field input::placeholder { color: var(--color-text-muted); }
.field .eye {
  position: absolute; right: 12px; top: 36px; cursor: pointer;
  color: var(--color-text-dim); font-size: 18px; padding: 4px;
  -webkit-tap-highlight-color: transparent;
}

/* ===== PASSWORD STRENGTH ===== */
.strength { height: 3px; border-radius: 2px; background: var(--color-border); margin-top: 8px; overflow: hidden; }
.str-fill { height: 100%; width: 0; border-radius: 2px; transition: all 0.3s; }

/* ===== CARDS — Flat, solid backgrounds, no elevation ===== */
.card {
  background: var(--color-card); border: 1px solid var(--color-border);
  border-radius: var(--r-lg); padding: 20px;
  transition: border-color 0.15s;
}
.card:hover { border-color: var(--color-border-hover); }

/* ===== STAT CARDS — Flat with top accent line ===== */
.stat-card {
  background: var(--color-card); border: 1px solid var(--color-border);
  border-radius: var(--r-lg); padding: 18px; position: relative; overflow: hidden;
}
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--color-primary);
}
.stat-icon { width: 36px; height: 36px; border-radius: var(--r-md); background: var(--color-primary-dim); display: flex; align-items: center; justify-content: center; font-size: 16px; margin-bottom: 10px; }
.stat-value { font-size: 24px; font-weight: 800; font-family: var(--mono); }
.stat-label { font-size: 11px; color: var(--color-text-dim); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; }

/* ===== MODAL — Flat overlay ===== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(15, 23, 42, 0.85);
  z-index: 1000; display: none; align-items: center; justify-content: center;
  padding: 20px; animation: fadeIn 0.2s ease;
}
.modal-box {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--r-xl); width: 100%; max-width: 420px;
  padding: 28px;
}
.modal-box h3 { font-size: 18px; font-weight: 800; margin-bottom: 16px; }

/* ===== TOAST / NOTIFICATIONS — Flat boxes ===== */
.notification-container {
  position: fixed; top: 80px; right: 20px; z-index: 9999;
  display: flex; flex-direction: column; gap: 10px; max-width: 360px;
}
.notification {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--r-md); padding: 14px 16px;
  animation: slideIn 0.2s ease;
  display: flex; align-items: flex-start; gap: 12px;
}
.notification-icon { width: 28px; height: 28px; border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.notification.success .notification-icon { background: var(--color-success-dim); color: var(--color-success); }
.notification.error .notification-icon { background: var(--color-error-dim); color: var(--color-error); }
.notification.warning .notification-icon { background: var(--color-warning-dim); color: var(--color-warning); }
.notification.info .notification-icon { background: var(--color-primary-dim); color: var(--color-primary); }
.notification-title { font-weight: 700; font-size: 13px; margin-bottom: 2px; }
.notification-message { font-size: 12px; color: var(--color-text-dim); line-height: 1.4; }
.notification-close { cursor: pointer; color: var(--color-text-dim); font-size: 16px; padding: 2px; margin-left: auto; }

/* ===== SEGMENT / TAB SWITCH — Flat pill selector ===== */
.segment {
  display: flex; background: var(--color-muted); border-radius: var(--r-md);
  padding: 4px; border: 1px solid var(--color-border);
}
.segment button {
  flex: 1; padding: 10px; border: none; border-radius: calc(var(--r-md) - 4px);
  font-size: 14px; font-weight: 700; cursor: pointer; transition: all 0.15s;
  background: transparent; color: var(--color-text-dim);
}
.segment button.active {
  background: var(--color-primary); color: white;
}

/* ===== STATUS PILLS ===== */
.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 10px; border-radius: var(--r-pill);
  background: var(--color-muted); border: 1px solid var(--color-border);
  font-size: 10px; font-weight: 800; font-family: var(--mono);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.status-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-text-dim); }
.status-pill.running { border-color: var(--color-success); color: var(--color-success); }
.status-pill.running .dot { background: var(--color-success); }
.status-pill.installing { border-color: var(--color-warning); color: var(--color-warning); }
.status-pill.installing .dot { background: var(--color-warning); animation: blink 1s infinite; }
.status-pill.error { border-color: var(--color-error); color: var(--color-error); }
.status-pill.error .dot { background: var(--color-error); }

/* ===== TOGGLE SWITCH ===== */
.toggle-switch {
  position: relative; width: 48px; height: 28px;
  background: var(--color-muted); border-radius: 14px;
  cursor: pointer; transition: all 0.15s; flex-shrink: 0;
}
.toggle-switch.active { background: var(--color-primary); }
.toggle-switch::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 22px; height: 22px; background: white; border-radius: 50%;
  transition: all 0.15s;
}
.toggle-switch.active::after { left: 23px; }

/* ===== ANIMATIONS ===== */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn { from { opacity: 0; transform: translateX(60px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes blink { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }

/* ===== LANDING PAGE SHARED COMPONENTS ===== */
.wh-nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 5%; border-bottom: 1px solid var(--color-border);
  position: fixed; width: 100%; top: 0; z-index: 1000;
  background: rgba(15, 23, 42, 0.95);
}
.wh-brand {
  display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px;
  color: var(--color-text); text-decoration: none; cursor: pointer;
}
.wh-brand img { width: 36px; height: 36px; border-radius: var(--r-md); border: 1px solid var(--color-border); }
.wh-nav-links { display: flex; gap: 24px; align-items: center; }
.wh-nav-links a { color: var(--color-text-dim); font-weight: 700; font-size: 14px; transition: color 0.15s; text-decoration: none; }
.wh-nav-links a:hover { color: var(--color-primary); }

.wh-hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 100px 5% 60px; position: relative;
}
.wh-hero-content { text-align: center; max-width: 900px; }
.wh-hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; background: var(--color-accent-dim); border: 1px solid rgba(5,150,105,0.25);
  border-radius: var(--r-pill); font-size: 13px; font-weight: 700; color: var(--color-accent);
  margin-bottom: 24px;
}
.wh-hero h1 {
  font-size: clamp(36px, 6vw, 64px); font-weight: 800; line-height: 1.1;
  margin-bottom: 24px; letter-spacing: -0.03em;
}
.wh-hero p { font-size: 18px; color: var(--color-text-dim); margin-bottom: 32px; line-height: 1.6; }
.wh-hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.wh-trust-badges { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.wh-trust-badge {
  display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--color-text-dim);
}
.wh-trust-badge .check { color: var(--color-accent); font-weight: 700; }

.wh-section { padding: 80px 5%; max-width: 1200px; margin: 0 auto; }
.wh-section-title { text-align: center; font-size: 36px; font-weight: 800; margin-bottom: 12px; }
.wh-section-desc { text-align: center; font-size: 16px; color: var(--color-text-dim); margin-bottom: 48px; max-width: 600px; margin-left: auto; margin-right: auto; }

.wh-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }

.wh-feature-card {
  background: var(--color-card); border: 1px solid var(--color-border);
  border-radius: var(--r-lg); padding: 28px; transition: border-color 0.15s;
}
.wh-feature-card:hover { border-color: var(--color-primary); }
.wh-icon-box {
  width: 48px; height: 48px; border-radius: var(--r-md); background: var(--color-primary-dim);
  display: flex; align-items: center; justify-content: center; font-size: 22px;
  margin-bottom: 16px; color: var(--color-primary);
}
.wh-feature-card h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.wh-feature-card p { color: var(--color-text-dim); font-size: 14px; line-height: 1.6; }

.wh-stats-banner {
  background: var(--color-primary); padding: 48px 5%; border-radius: var(--r-xl);
  display: flex; justify-content: space-around; flex-wrap: wrap; gap: 24px;
  text-align: center; margin: 48px 5%;
}
.wh-stats-banner .wh-stat-number { font-size: 48px; font-weight: 800; color: white; }
.wh-stats-banner .wh-stat-label { font-size: 14px; color: rgba(255,255,255,0.7); }

.wh-pricing-card {
  background: var(--color-card); border: 1px solid var(--color-border);
  border-radius: var(--r-lg); padding: 32px;
  display: flex; flex-direction: column; transition: border-color 0.15s;
}
.wh-pricing-card:hover { border-color: var(--color-border-hover); }
.wh-pricing-card.pro { border-color: var(--color-primary); }
.wh-pricing-card.pro .wh-icon-box { background: var(--color-primary); color: white; }
.wh-price-tag { font-size: 40px; font-weight: 800; margin: 16px 0; }
.wh-price-tag span { font-size: 14px; font-weight: 600; color: var(--color-text-dim); }
.wh-price-list { list-style: none; flex-grow: 1; margin-bottom: 24px; }
.wh-price-list li {
  padding: 10px 0; border-bottom: 1px solid var(--color-border);
  font-size: 14px; color: var(--color-text-dim); display: flex; align-items: center; gap: 8px;
}
.wh-price-list li::before { content: '\2713'; color: var(--color-accent); font-weight: 700; }

.wh-faq-item {
  background: var(--color-card); border: 1px solid var(--color-border);
  border-radius: var(--r-md); padding: 20px 24px; margin-bottom: 12px;
  cursor: pointer; transition: border-color 0.15s;
}
.wh-faq-item:hover { border-color: var(--color-border-hover); }
.wh-faq-q { font-size: 16px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.wh-faq-a { color: var(--color-text-dim); margin-top: 12px; line-height: 1.6; font-size: 14px; display: none; }

.wh-footer {
  border-top: 1px solid var(--color-border); padding: 60px 5% 32px;
}
.wh-footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px;
  max-width: 1200px; margin: 0 auto 48px;
}
.wh-footer-col h4 { font-size: 16px; font-weight: 800; margin-bottom: 16px; color: var(--color-text); }
.wh-footer-col p { color: var(--color-text-dim); font-size: 13px; line-height: 1.6; }
.wh-footer-col a { display: block; color: var(--color-text-dim); text-decoration: none; margin-bottom: 12px; font-size: 14px; transition: color 0.15s; }
.wh-footer-col a:hover { color: var(--color-primary); }
.wh-copyright {
  text-align: center; color: var(--color-text-muted); font-size: 13px;
  border-top: 1px solid var(--color-border); padding-top: 24px;
  max-width: 1200px; margin: 0 auto;
}

.wh-page-header {
  text-align: center; padding: 80px 20px 40px; border-bottom: 1px solid var(--color-border);
  background: var(--color-primary-dim);
}
.wh-page-header h1 { font-size: 40px; font-weight: 800; margin-bottom: 12px; }
.wh-page-header p { font-size: 16px; color: var(--color-text-dim); }

.wh-docs-layout { display: flex; max-width: 1200px; margin: 0 auto; padding: 40px 5%; gap: 32px; }
.wh-docs-sidebar { width: 220px; position: sticky; top: 80px; height: max-content; }
.wh-docs-sidebar a { color: var(--color-text-dim); text-decoration: none; font-weight: 600; font-size: 14px; display: block; padding: 8px 0; transition: color 0.15s; }
.wh-docs-sidebar a:hover { color: var(--color-primary); }
.wh-docs-content { flex-grow: 1; max-width: 800px; color: var(--color-text-dim); font-size: 15px; line-height: 1.7; }
.wh-docs-content h2 { color: var(--color-text); font-size: 24px; margin: 32px 0 16px; border-bottom: 1px solid var(--color-border); padding-bottom: 8px; }
.wh-how-to-box { background: var(--color-card); border: 1px solid var(--color-border); border-radius: var(--r-md); padding: 20px; margin-bottom: 20px; }
.wh-how-to-box h4 { font-size: 16px; font-weight: 800; margin-bottom: 12px; }
.wh-step { display: flex; gap: 12px; margin-bottom: 12px; }
.wh-step-num { width: 28px; height: 28px; background: var(--color-primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex-shrink: 0; }

.wh-profile-card {
  background: var(--color-card); border: 1px solid var(--color-border);
  border-radius: var(--r-xl); padding: 48px 32px; max-width: 500px;
  text-align: center;
}
.wh-profile-avatar { width: 120px; height: 120px; border-radius: var(--r-xl); object-fit: cover; margin-bottom: 20px; border: 2px solid var(--color-border); }
.wh-profile-card h1 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.wh-profile-card h2 { font-size: 16px; color: var(--color-primary); font-weight: 700; margin-bottom: 20px; }
.wh-profile-card p { color: var(--color-text-dim); font-size: 14px; line-height: 1.6; margin-bottom: 24px; }

/* Crypto payment note */
.wh-crypto-note {
  max-width: 600px; margin: 16px auto 0; padding: 14px;
  background: var(--color-muted); border: 1px dashed var(--color-border-hover);
  border-radius: var(--r-md); text-align: center;
  font-size: 13px; color: var(--color-text-dim);
}

/* ===== RESPONSIVE: MOBILE vs DESKTOP ===== */
[data-mode="mobile"] .mobile-tabbar { display: flex; }
[data-mode="mobile"] body { padding-bottom: 65px; }
[data-mode="mobile"] .topbar .nav-actions { display: none !important; }
[data-mode="mobile"] .desktop-only { display: none !important; }
[data-mode="mobile"] .mobile-only { display: block !important; }
.desktop-sidebar { display: none; }

[data-mode="desktop"] .mobile-tabbar { display: none !important; }
[data-mode="desktop"] body { padding-bottom: 0; }
[data-mode="desktop"] .mobile-only { display: none !important; }
[data-mode="desktop"] .desktop-only { display: block !important; }

[data-mode="desktop"] .desktop-sidebar {
  display: flex; position: fixed; top: 0; left: 0; bottom: 0;
  width: 220px; background: var(--color-surface);
  border-right: 1px solid var(--color-border); z-index: 150;
  flex-direction: column; padding: 20px 0; overflow-y: auto;
}
[data-mode="desktop"] .main-content { margin-left: 220px; }
[data-mode="desktop"] .topbar { left: 220px; }
[data-mode="desktop"] .topbar .nav-actions { display: flex !important; }
[data-mode="desktop"] .topbar-inner { padding: 10px 24px; }
[data-mode="desktop"] .stats-grid { grid-template-columns: repeat(4, 1fr); }
[data-mode="desktop"] .grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
[data-mode="desktop"] .manager-layout { grid-template-columns: 1fr 280px; }
[data-mode="desktop"] .container { padding: 0 24px; margin: 24px auto; }
[data-mode="desktop"] .settings-panel { padding: 36px; }
[data-mode="desktop"] .modal-overlay { align-items: center; }
[data-mode="desktop"] .modal-box { max-width: 480px; }
[data-mode="desktop"] .notification-container { top: 70px; right: 24px; }
[data-mode="desktop"] .card:hover { border-color: var(--color-primary); }
[data-mode="desktop"] .stat-card:hover { border-color: var(--color-primary); }
[data-mode="desktop"] .console-out { height: 560px; font-size: 13px; }
[data-mode="desktop"] .btn { padding: 10px 20px; }
[data-mode="desktop"] .settings-item { padding: 14px 0; }
[data-mode="desktop"] .ai-chat-container { height: calc(100vh - 180px); min-height: 500px; }

/* ===== SIDEBAR NAV ===== */
.sidebar-nav { padding: 12px; flex: 1; }
.sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 0 16px 16px; border-bottom: 1px solid var(--color-border); margin-bottom: 12px; }
.sidebar-brand img { width: 36px; height: 36px; border-radius: var(--r-md); border: 1px solid var(--color-border); }
.sidebar-brand-text { font-size: 15px; font-weight: 800; }
.sidebar-brand-sub { font-size: 10px; color: var(--color-text-dim); font-family: var(--mono); }
.sidebar-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 16px;
  border-radius: var(--r-md); color: var(--color-text-dim); font-size: 13px; font-weight: 700;
  cursor: pointer; transition: all 0.15s; text-decoration: none;
  margin-bottom: 4px; -webkit-tap-highlight-color: transparent;
}
.sidebar-item:hover { background: var(--color-muted); color: var(--color-text); text-decoration: none; }
.sidebar-item.active { background: var(--color-primary-dim); color: var(--color-primary); }
.sidebar-item-icon { font-size: 16px; width: 24px; text-align: center; }
.sidebar-divider { height: 1px; background: var(--color-border); margin: 12px 16px; }
.sidebar-footer { padding: 12px 16px; border-top: 1px solid var(--color-border); margin-top: auto; }
.sidebar-footer .btn { width: 100%; font-size: 12px; }

/* ===== MOBILE MODAL BOTTOM SHEET ===== */
[data-mode="mobile"] .modal-overlay { align-items: flex-end; padding: 0; }
[data-mode="mobile"] .modal-box {
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  max-height: 85vh; overflow-y: auto; animation: slideUp 0.2s ease;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */
@media (max-width: 900px) {
  .wh-nav-links { display: none; }
  .wh-footer-grid { grid-template-columns: 1fr 1fr; }
  .wh-grid { grid-template-columns: 1fr; }
  .wh-hero h1 { font-size: 28px; }
  .wh-section-title { font-size: 24px; }
  .wh-docs-layout { flex-direction: column; }
  .wh-docs-sidebar { width: 100%; position: static; border-bottom: 1px solid var(--color-border); padding-bottom: 16px; }
}

@media (max-width: 480px) {
  .wh-hero { padding: 80px 16px 40px; }
  .wh-hero p { font-size: 14px; }
  .wh-hero-buttons { flex-direction: column; width: 100%; }
  .wh-hero-buttons .btn { width: 100%; }
  .wh-footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .wh-stats-banner { margin: 24px 5%; padding: 32px 5%; }
  .wh-stats-banner .wh-stat-number { font-size: 32px; }
}

@media (min-width: 769px) and (max-width: 1200px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}

@media (max-width: 380px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat-card { padding: 14px; }
  .stat-value { font-size: 18px; }
  .btn { padding: 8px 12px; font-size: 11px; }
  .container { padding: 0 8px; }
}

/* ===== PRINT ===== */
@media print {
  .mobile-tabbar, .topbar, .desktop-sidebar, .notification-container { display: none !important; }
  body { background: white; color: black; padding-bottom: 0; }
  .card, .stat-card { border: 1px solid #ddd; background: white; }
}