/* ============================================================
   TechDeskX — Main Stylesheet
   Design System: Dark/Light Mode, Variables, Components
   ============================================================ */

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

/* ── CSS Variables ── */
:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Brand */
  --brand-500: #6366f1;
  --brand-600: #4f46e5;
  --brand-400: #818cf8;
  --brand-300: #a5b4fc;
  --purple-500: #8b5cf6;
  --cyan-500:   #06b6d4;
  --cyan-400:   #22d3ee;
  --green-500:  #10b981;
  --green-400:  #34d399;
  --amber-500:  #f59e0b;
  --red-500:    #ef4444;

  /* Radius */
  --r-sm:  6px;
  --r-md:  8px;
  --r-lg:  12px;
  --r-xl:  16px;
  --r-2xl: 20px;

  /* Transitions */
  --t-fast: 0.15s ease;
  --t-base: 0.2s ease;

  /* Z-index layers */
  --z-nav:    100;
  --z-modal:  200;
  --z-toast:  300;
}

/* ── DARK MODE (default) ── */
[data-theme="dark"], :root {
  --bg-page:    #0a0b0f;
  --bg-base:    #0f1117;
  --bg-surface: #141720;
  --bg-card:    #11141e;
  --bg-input:   #141720;
  --bg-hover:   #1a1d2a;
  --bg-active:  #1e2236;

  --border-faint:  rgba(255,255,255,0.07);
  --border-subtle: rgba(255,255,255,0.12);
  --border-base:   rgba(255,255,255,0.18);
  --border-brand:  rgba(99,102,241,0.4);

  --text-primary:   #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted:     #64748b;
  --text-faint:     #475569;

  --brand-bg-subtle: rgba(99,102,241,0.08);
  --brand-bg-light:  rgba(99,102,241,0.15);

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.6);

  /* Pro badge colors */
  --pro-bg:   rgba(245,158,11,0.12);
  --pro-text: #fbbf24;
  --pro-border: rgba(245,158,11,0.3);

  /* Status */
  --success-bg:   rgba(16,185,129,0.1);
  --success-text: #34d399;
  --warning-bg:   rgba(245,158,11,0.1);
  --warning-text: #fbbf24;
  --danger-bg:    rgba(239,68,68,0.1);
  --danger-text:  #f87171;
  --info-bg:      rgba(6,182,212,0.1);
  --info-text:    #22d3ee;

  --nav-bg: rgba(10,11,15,0.88);
  --scrollbar-thumb: #1e2236;
}

/* ── LIGHT MODE ── */
[data-theme="light"] {
  --bg-page:    #e9eef7;
  --bg-base:    #f6f9ff;
  --bg-surface: #dde8f5;
  --bg-card:    rgba(255,255,255,0.84);
  --bg-input:   #f8fbff;
  --bg-hover:   #e5effd;
  --bg-active:  #d7e4f5;

  --border-faint:  rgba(30,41,59,0.1);
  --border-subtle: rgba(30,41,59,0.16);
  --border-base:   rgba(30,41,59,0.24);
  --border-brand:  rgba(37,99,235,0.34);

  --text-primary:   #111827;
  --text-secondary: #4b5563;
  --text-muted:     #7c8799;
  --text-faint:     #b6c0cf;

  --brand-500: #2563eb;
  --brand-600: #1d4ed8;
  --brand-400: #3b82f6;
  --brand-300: #93c5fd;
  --purple-500: #7c3aed;
  --cyan-500: #0891b2;
  --cyan-400: #06b6d4;

  --brand-bg-subtle: rgba(37,99,235,0.1);
  --brand-bg-light:  rgba(37,99,235,0.16);

  --shadow-sm: 0 1px 2px rgba(15,23,42,0.05), 0 1px 0 rgba(255,255,255,0.8) inset;
  --shadow-md: 0 12px 34px rgba(15,23,42,0.09);
  --shadow-lg: 0 22px 70px rgba(15,23,42,0.13);

  --pro-bg:     rgba(245,158,11,0.1);
  --pro-text:   #d97706;
  --pro-border: rgba(245,158,11,0.3);

  --success-bg:   rgba(16,185,129,0.08);
  --success-text: #059669;
  --warning-bg:   rgba(245,158,11,0.08);
  --warning-text: #d97706;
  --danger-bg:    rgba(239,68,68,0.08);
  --danger-text:  #dc2626;
  --info-bg:      rgba(6,182,212,0.08);
  --info-text:    #0891b2;

  --nav-bg: rgba(240,246,255,0.9);
  --scrollbar-thumb: #9fb1c8;
}

[data-theme="light"] body {
  background:
    linear-gradient(135deg, rgba(37,99,235,0.16) 0%, rgba(8,145,178,0.08) 24%, transparent 46%),
    linear-gradient(225deg, rgba(124,58,237,0.12) 0%, rgba(245,158,11,0.08) 28%, transparent 52%),
    linear-gradient(180deg, #eef5ff 0%, #e8eff8 42%, #dfe8f4 100%);
}

[data-theme="light"] .navbar {
  background:
    linear-gradient(90deg, rgba(255,255,255,0.92), rgba(235,244,255,0.9), rgba(244,238,255,0.88));
  box-shadow: 0 12px 38px rgba(37,99,235,0.1);
  border-bottom-color: rgba(37,99,235,0.13);
}

[data-theme="light"] .navbar-link {
  color: #536071;
}

[data-theme="light"] .navbar-link:hover,
[data-theme="light"] .navbar-link.active {
  color: var(--brand-600);
  background: rgba(37,99,235,0.08);
}

[data-theme="light"] .card,
[data-theme="light"] .tool-card,
[data-theme="light"] .sw-card,
[data-theme="light"] .cat-card,
[data-theme="light"] .pricing-card,
[data-theme="light"] .tool-interface-card,
[data-theme="light"] .auth-card,
[data-theme="light"] .stat-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(246,250,255,0.78)),
    linear-gradient(135deg, rgba(37,99,235,0.055), rgba(124,58,237,0.035));
  border-color: rgba(30,41,59,0.12);
  box-shadow: 0 1px 0 rgba(255,255,255,0.88) inset, 0 16px 42px rgba(15,23,42,0.09);
}

[data-theme="light"] .tool-card:hover,
[data-theme="light"] .sw-card:hover,
[data-theme="light"] .cat-card:hover,
[data-theme="light"] .card-hover:hover {
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border-color: rgba(37,99,235,0.26);
  box-shadow: 0 22px 58px rgba(37,99,235,0.12);
}

[data-theme="light"] .hero,
[data-theme="light"] .tool-page-hero {
  background:
    linear-gradient(135deg, rgba(37,99,235,0.18), rgba(8,145,178,0.1) 38%, rgba(124,58,237,0.1)),
    linear-gradient(180deg, rgba(255,255,255,0.58), rgba(232,239,248,0.18));
  border-bottom: 1px solid rgba(37,99,235,0.12);
}

[data-theme="light"] .hero-badge,
[data-theme="light"] .badge,
[data-theme="light"] .tool-open-btn,
[data-theme="light"] .social-btn {
  box-shadow: 0 1px 0 rgba(255,255,255,0.75) inset;
}

[data-theme="light"] .btn-secondary,
[data-theme="light"] .btn-outline {
  background: rgba(255,255,255,0.76);
  border-color: rgba(30,41,59,0.13);
  color: #334155;
}

[data-theme="light"] .btn-secondary:hover,
[data-theme="light"] .btn-outline:hover {
  background: #ffffff;
  border-color: rgba(37,99,235,0.28);
  color: var(--brand-600);
}

[data-theme="light"] .form-input,
[data-theme="light"] .form-select,
[data-theme="light"] .form-textarea {
  background: rgba(255,255,255,0.9);
  border-color: rgba(30,41,59,0.14);
  box-shadow: 0 1px 0 rgba(255,255,255,0.85) inset;
}

[data-theme="light"] .stats-bar,
[data-theme="light"] .footer,
[data-theme="light"] .newsletter {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.72), rgba(232,242,255,0.74), rgba(245,239,255,0.62));
  backdrop-filter: blur(18px);
}

[data-theme="light"] .hero-title-gradient,
[data-theme="light"] .section-title,
[data-theme="light"] .tool-page-title {
  background: linear-gradient(135deg, #1d4ed8, #0891b2 48%, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .tool-icon,
[data-theme="light"] .sw-icon,
[data-theme="light"] .cat-card-icon,
[data-theme="light"] .navbar-logo-icon {
  background: linear-gradient(135deg, rgba(37,99,235,0.17), rgba(8,145,178,0.13), rgba(124,58,237,0.12)) !important;
  box-shadow: inset 0 0 0 1px rgba(37,99,235,0.12), 0 8px 22px rgba(37,99,235,0.12);
}

[data-theme="light"] .btn-primary {
  background: linear-gradient(135deg, #2563eb, #0891b2 54%, #7c3aed);
  box-shadow: 0 12px 28px rgba(37,99,235,0.24);
}

[data-theme="light"] .badge-free {
  background: rgba(5,150,105,0.12);
  color: #047857;
}

[data-theme="light"] .badge-hot,
[data-theme="light"] .badge-new {
  background: rgba(245,158,11,0.14);
  color: #b45309;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-page);
  transition: background var(--t-base), color var(--t-base);
  min-height: 100vh;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
ul, ol { list-style: none; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ══════════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════════ */
.navbar {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  height: 62px;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-faint);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  transition: background var(--t-base);
  width: 100%;
  max-width: 100vw;
}
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  flex-shrink: 0;
  min-width: 0;
  text-decoration: none;
}
.navbar > .navbar-logo {
  max-width: 240px;
  height: 62px;
  overflow: hidden;
}
.navbar-logo span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.navbar-logo-image,
.navbar-logo > img {
  display: block;
  flex: 0 0 auto;
  height: 32px !important;
  max-height: 32px;
  width: auto !important;
  max-width: 150px;
  object-fit: contain;
  object-position: left center;
}
.navbar-logo-image + span {
  margin-left: 0;
}
.navbar-logo-fallback[aria-hidden="true"] {
  display: none;
}
.navbar-logo-fallback {
  display: none;
  flex: 0 0 32px;
}
.navbar-logo-fallback.is-visible {
  display: flex;
}
.navbar-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand-500), var(--purple-500));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}
.navbar-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}
.navbar-link {
  padding: 6px 12px;
  border-radius: var(--r-md);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--t-fast);
  white-space: nowrap;
}
.navbar-link:hover { color: var(--text-primary); background: var(--bg-hover); }
.navbar-link.active { color: var(--brand-500); background: var(--brand-bg-subtle); }
.navbar-link.active:hover { background: var(--brand-bg-light); }
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  min-width: 0;
}
.navbar-search-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  transition: all var(--t-fast);
}
.navbar-search-btn:hover { border-color: var(--border-base); color: var(--text-secondary); }
.theme-toggle {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 16px;
  transition: all var(--t-fast);
}
.theme-toggle:hover { border-color: var(--border-base); color: var(--text-primary); }
.navbar-mobile-toggle {
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 18px;
}

/* Mobile Nav Drawer */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 62px 0 0 0;
  background: var(--bg-base);
  z-index: 99;
  padding: 16px;
  border-top: 1px solid var(--border-faint);
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav-link {
  padding: 11px 14px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--t-fast);
}
.mobile-nav-link:hover { color: var(--text-primary); background: var(--bg-hover); }
.mobile-nav-link.active { color: var(--brand-500); background: var(--brand-bg-subtle); }

/* ══════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all var(--t-fast);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--brand-500), var(--purple-500));
  color: #fff;
  box-shadow: 0 4px 14px rgba(99,102,241,0.3);
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(99,102,241,0.4); }
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}
.btn-secondary:hover { border-color: var(--border-base); background: var(--bg-hover); }
.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}
.btn-outline:hover { border-color: var(--border-brand); color: var(--brand-400); background: var(--brand-bg-subtle); }
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: none;
}
.btn-ghost:hover { background: var(--bg-hover); color: var(--text-primary); }
.btn-danger {
  background: var(--danger-bg);
  color: var(--danger-text);
  border: 1px solid rgba(239,68,68,0.3);
}
.btn-danger:hover { background: rgba(239,68,68,0.2); }
.btn-pro {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  box-shadow: 0 4px 14px rgba(245,158,11,0.3);
}
.btn-pro:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-lg { padding: 12px 24px; font-size: 15px; border-radius: var(--r-lg); }
.btn-xl { padding: 14px 32px; font-size: 16px; border-radius: var(--r-lg); }
.btn-full { width: 100%; }
.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: var(--r-md);
}

/* ══════════════════════════════════════════════
   BADGES
══════════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.badge-free    { background: var(--info-bg);    color: var(--info-text); }
.badge-freemium { background: rgba(139,92,246,0.12); color: var(--brand-300); border: 1px solid rgba(139,92,246,0.28); }
.badge-pro     { background: var(--pro-bg);     color: var(--pro-text);  border: 1px solid var(--pro-border); }
.badge-hot     { background: var(--danger-bg);  color: var(--danger-text); }
.badge-new     { background: var(--success-bg); color: var(--success-text); }
.badge-dev     { background: var(--brand-bg-subtle); color: var(--brand-400); }
.badge-android { background: rgba(16,185,129,0.1); color: #34d399; }
.badge-windows { background: var(--brand-bg-subtle); color: var(--brand-400); }
.badge-mac     { background: rgba(148,163,184,0.14); color: #cbd5e1; }
.badge-web     { background: var(--info-bg); color: var(--info-text); }
.badge-popular { background: rgba(245,158,11,0.1); color: #fbbf24; }

/* ══════════════════════════════════════════════
   CARDS
══════════════════════════════════════════════ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-faint);
  border-radius: var(--r-lg);
  transition: all var(--t-base);
}
.card-hover:hover {
  border-color: var(--border-brand);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.card-body { padding: 20px; }
.card-sm .card-body { padding: 14px; }
.card-lg .card-body { padding: 28px; }

/* ══════════════════════════════════════════════
   FORMS
══════════════════════════════════════════════ */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}
.info-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  cursor: help;
  margin-left: 5px;
}
.form-help {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.5;
}
.form-input,
.form-select,
.form-textarea {
  padding: 10px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 14px;
  font-family: var(--font-sans);
  transition: all var(--t-fast);
  outline: none;
  width: 100%;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-muted); }
.form-textarea { resize: vertical; min-height: 100px; line-height: 1.6; }
.form-select { appearance: none; cursor: pointer; }
.form-error { font-size: 12px; color: var(--danger-text); }
.form-hint  { font-size: 12px; color: var(--text-muted); }
.alert {
  border-radius: var(--r-md);
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 13.5px;
  line-height: 1.5;
  border: 1px solid var(--border-faint);
}
.alert-success { background: var(--success-bg); color: var(--success-text); border-color: rgba(16,185,129,0.22); }
.alert-error { background: var(--danger-bg); color: var(--danger-text); border-color: rgba(239,68,68,0.24); }

/* Checkbox / Radio */
.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-secondary);
}
.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--brand-500);
  cursor: pointer;
}

/* Toggle Switch */
.toggle {
  position: relative;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
}
.toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border-base);
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--t-fast);
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  top: 3px;
  left: 3px;
  transition: all var(--t-fast);
}
.toggle input:checked + .toggle-slider { background: var(--brand-500); }
.toggle input:checked + .toggle-slider::before { transform: translateX(18px); }

/* Search */
.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.search-icon {
  position: absolute;
  left: 13px;
  color: var(--text-muted);
  font-size: 15px;
  pointer-events: none;
}
.search-input {
  padding-left: 38px;
  padding-right: 14px;
}

/* ══════════════════════════════════════════════
   HERO SECTION
══════════════════════════════════════════════ */
.hero {
  position: relative;
  padding: 90px 24px 72px;
  text-align: center;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 450px;
  background: radial-gradient(ellipse, rgba(99,102,241,0.14) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  border-radius: 100px;
  border: 1px solid rgba(99,102,241,0.3);
  background: var(--brand-bg-subtle);
  color: var(--brand-400);
  font-size: 12.5px;
  font-weight: 500;
  margin-bottom: 22px;
}
.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-400);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(0.8)} }
.hero-title {
  font-size: clamp(28px, 5vw, 54px);
  font-weight: 800;
  line-height: 1.12;
  color: var(--text-primary);
  margin-bottom: 18px;
  letter-spacing: -0.03em;
}
.hero-title-gradient {
  background: linear-gradient(135deg, var(--brand-500), var(--cyan-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.75;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

/* ══════════════════════════════════════════════
   STATS BAR
══════════════════════════════════════════════ */
.stats-bar {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-faint);
  border-bottom: 1px solid var(--border-faint);
  padding: 22px 24px;
}
.stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 16px;
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-num {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  background: linear-gradient(135deg, var(--brand-500), var(--cyan-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: 12px; color: var(--text-muted); margin-top: 3px; }

/* ══════════════════════════════════════════════
   SECTION LAYOUTS
══════════════════════════════════════════════ */
.section { padding: 64px 24px; }
.section-sm { padding: 40px 24px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
}
.section-title { font-size: 22px; font-weight: 700; color: var(--text-primary); }
.section-subtitle { font-size: 14px; color: var(--text-secondary); margin-top: 4px; }
.section-link {
  font-size: 13px;
  color: var(--brand-500);
  cursor: pointer;
  flex-shrink: 0;
  font-weight: 500;
  transition: opacity var(--t-fast);
}
.section-link:hover { opacity: 0.8; }
.divider { height: 1px; background: var(--border-faint); }

/* ══════════════════════════════════════════════
   TOOL CARDS
══════════════════════════════════════════════ */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border-faint);
  border-radius: var(--r-lg);
  padding: 18px;
  cursor: pointer;
  transition: all var(--t-base);
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  position: relative;
}
.tool-card:hover {
  border-color: var(--border-brand);
  transform: translateY(-2px);
  background: var(--bg-hover);
}
.tool-card-pro-overlay {
  position: absolute;
  inset: 0;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, rgba(245,158,11,0.04), rgba(217,119,6,0.06));
  border: 1px solid var(--pro-border);
  pointer-events: none;
}
.tool-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  overflow: hidden;
}
.tool-icon img,
.sw-icon img,
.cat-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.tool-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.tool-card-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}
.tool-card-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  flex: 1;
}
.tool-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border-faint);
  margin-top: auto;
}
.tool-card-cat { font-size: 11px; color: var(--text-muted); }
.tool-card-uses { font-size: 11px; color: var(--text-muted); }
.tool-open-btn {
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  background: var(--brand-bg-subtle);
  color: var(--brand-400);
  border: none;
  cursor: pointer;
  transition: all var(--t-fast);
}
.tool-open-btn:hover { background: var(--brand-bg-light); }

/* Pro Lock Overlay */
.pro-lock-overlay {
  position: absolute;
  inset: 0;
  border-radius: var(--r-lg);
  background: rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transition: opacity var(--t-base);
  backdrop-filter: blur(2px);
}
.tool-card:hover .pro-lock-overlay { opacity: 1; }
.pro-lock-icon { font-size: 24px; }
.pro-lock-text { font-size: 12px; font-weight: 600; color: #fbbf24; }

/* ══════════════════════════════════════════════
   SOFTWARE CARDS
══════════════════════════════════════════════ */
.software-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.sw-card {
  background: var(--bg-card);
  border: 1px solid var(--border-faint);
  border-radius: var(--r-xl);
  padding: 22px;
  cursor: pointer;
  transition: all var(--t-base);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sw-card:hover { border-color: rgba(139,92,246,0.35); transform: translateY(-2px); }
.sw-card-header { display: flex; align-items: center; gap: 14px; }
.sw-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
  overflow: hidden;
}
.sw-name { font-size: 16px; font-weight: 600; color: var(--text-primary); }
.sw-meta { display: flex; align-items: center; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
.sw-version { font-size: 11px; color: var(--text-muted); }
.sw-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.sw-stats { display: flex; gap: 16px; }
.sw-stat { font-size: 11.5px; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
.sw-actions { display: flex; gap: 8px; }
.sw-actions .btn { flex: 1; }

/* ══════════════════════════════════════════════
   CATEGORY CARDS
══════════════════════════════════════════════ */
.cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.cat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-faint);
  border-radius: var(--r-lg);
  padding: 18px 14px;
  cursor: pointer;
  transition: all var(--t-base);
  text-align: center;
  text-decoration: none;
}
.cat-card:hover { border-color: var(--border-brand); transform: translateY(-2px); background: var(--bg-hover); }
.cat-card-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 10px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-bg-subtle);
  font-size: 26px;
  overflow: hidden;
}
.cat-card-name { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.cat-card-count { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* ══════════════════════════════════════════════
   AD SLOTS
══════════════════════════════════════════════ */
.ad-slot {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.ad-slot iframe,
.ad-slot img,
.ad-slot ins {
  max-width: 100%;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.ad-slot-code {
  width: 100%;
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}
.ad-slot-code > * {
  max-width: 100% !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.ad-device-mobile {
  display: none;
}
.ad-slot script {
  display: none;
}
.ad-banner-top {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-faint);
  padding: 10px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ad-slot-banner,
.ad-slot-leaderboard {
  width: min(100%, 728px);
  min-height: 90px;
  max-height: none;
}
.ad-slot-rectangle {
  width: min(100%, 300px);
  min-height: 250px;
  max-width: 300px;
  flex-direction: column;
  text-align: center;
}
.ad-slot-native {
  width: min(100%, 350px);
  min-height: 250px;
  max-height: none;
}
.ad-slot-sidebar {
  width: min(100%, 300px);
  min-height: 250px;
  max-width: 300px;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-direction: column;
}
.ad-content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}
.ad-content-main {
  min-width: 0;
}
.ad-side-rail {
  position: relative;
  top: auto;
  display: grid;
  gap: 18px;
  justify-items: center;
  align-self: start;
}
.ad-feed-card {
  min-width: 0;
  width: 100%;
  display: flex;
  align-items: stretch;
  justify-content: center;
  margin: 0;
}
.ad-feed-card .ad-slot {
  width: 100%;
  min-height: 250px;
  max-height: none;
}
.ad-feed-card .ad-slot-code {
  min-height: 250px;
}

@media (max-width: 1024px) {
  .ad-slot-banner {
    min-height: 80px;
  }
  .ad-slot-sidebar {
    max-width: 100%;
    min-height: 120px;
    aspect-ratio: auto;
  }
  .ad-content-layout {
    grid-template-columns: 1fr;
  }
  .ad-side-rail {
    position: static;
    justify-items: center;
  }
}

@media (max-width: 700px) {
  .ad-slot {
    min-height: 0;
    padding: 0;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    overflow: visible;
  }
  .ad-slot-banner,
  .ad-slot-leaderboard {
    width: min(100%, 320px);
    min-height: 50px;
    max-height: none;
  }
  .ad-slot-rectangle {
    width: min(100%, 300px);
    min-height: 250px;
    max-height: none;
  }
  .ad-slot-native,
  .ad-slot-sidebar {
    width: 100%;
    min-height: 100px;
    max-height: none;
  }
  .ad-slot-native {
    min-height: 250px;
  }
  .ad-slot-code {
    overflow: visible;
  }
  .ad-slot[data-mobile-banner="1"] .ad-device-desktop {
    display: none;
  }
  .ad-slot[data-mobile-banner="1"] .ad-device-mobile {
    display: flex;
  }
  .ad-feed-card .ad-slot {
    width: 100%;
  }
}

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
.footer {
  background: var(--bg-base);
  border-top: 1px solid var(--border-faint);
  padding: 56px 24px 28px;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 36px;
  margin-bottom: 40px;
}
.footer-brand-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-top: 12px;
}
.footer-col-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 14px;
}
.footer-link {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 9px;
  transition: color var(--t-fast);
}
.footer-link:hover { color: var(--brand-500); }
.footer-bottom {
  border-top: 1px solid var(--border-faint);
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-copy { font-size: 12.5px; color: var(--text-muted); }
.social-links { display: flex; gap: 8px; }
.social-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--t-fast);
}
.social-btn:hover { border-color: var(--border-brand); color: var(--brand-400); }
.social-btn-twitter:hover { color: #0ea5e9; border-color: rgba(14,165,233,.42); }
.social-btn-facebook:hover { color: #1877f2; border-color: rgba(24,119,242,.42); }
.social-btn-instagram:hover { color: #e1306c; border-color: rgba(225,48,108,.42); }
.social-btn-telegram:hover { color: #2aabee; border-color: rgba(42,171,238,.42); }
.social-btn-whatsapp:hover { color: #25d366; border-color: rgba(37,211,102,.42); }
.social-btn-youtube:hover { color: #ff0033; border-color: rgba(255,0,51,.42); }
.social-btn-linkedin:hover { color: #0a66c2; border-color: rgba(10,102,194,.42); }

/* ══════════════════════════════════════════════
   TOOL DETAIL PAGE
══════════════════════════════════════════════ */
.tool-page-hero {
  background: var(--bg-base);
  border-bottom: 1px solid var(--border-faint);
  padding: 48px 24px 40px;
}
.tool-page-hero-inner { max-width: 900px; margin: 0 auto; }
.tool-page-breadcrumb {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.tool-page-breadcrumb a { color: var(--text-secondary); transition: color var(--t-fast); }
.tool-page-breadcrumb a:hover { color: var(--brand-500); }
.tool-page-title { font-size: 30px; font-weight: 800; color: var(--text-primary); margin-bottom: 8px; }
.tool-page-subtitle { font-size: 15px; color: var(--text-secondary); margin-bottom: 16px; line-height: 1.6; }
.tool-page-badges { display: flex; gap: 7px; flex-wrap: wrap; }

.tool-page-layout {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 24px;
}
.tool-interface-card {
  background: var(--bg-card);
  border: 1px solid var(--border-faint);
  border-radius: var(--r-xl);
  padding: 28px;
  margin-bottom: 32px;
}
.tool-interface-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-faint);
}

/* Upload Box */
.upload-box {
  border: 2px dashed var(--border-subtle);
  border-radius: var(--r-lg);
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: all var(--t-base);
  background: var(--bg-surface);
}
.upload-box:hover,
.upload-box.drag-over {
  border-color: var(--brand-500);
  background: var(--brand-bg-subtle);
}
.upload-box-icon { font-size: 36px; margin-bottom: 12px; }
.upload-box-title { font-size: 15px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.upload-box-sub   { font-size: 13px; color: var(--text-muted); }

/* Result Box */
.result-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-faint);
  border-radius: var(--r-lg);
  padding: 20px;
  margin-top: 20px;
}
.result-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.result-box-title { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.copy-btn {
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 500;
  background: var(--bg-hover);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--t-fast);
}
.copy-btn:hover { border-color: var(--brand-500); color: var(--brand-400); }

/* Code/Output Textarea */
.code-output {
  width: 100%;
  background: var(--bg-page);
  border: 1px solid var(--border-faint);
  border-radius: var(--r-md);
  padding: 14px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  resize: vertical;
  min-height: 160px;
  outline: none;
  transition: border-color var(--t-fast);
}
.code-output:focus { border-color: var(--brand-500); }

/* Progress Bar */
.progress-wrap { margin-top: 16px; }
.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.progress-bar {
  height: 6px;
  background: var(--border-faint);
  border-radius: 100px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-500), var(--cyan-500));
  border-radius: 100px;
  transition: width 0.3s ease;
}

/* Accordion (FAQ / How-to) */
.accordion { display: flex; flex-direction: column; gap: 8px; }
.accordion-item {
  background: var(--bg-card);
  border: 1px solid var(--border-faint);
  border-radius: var(--r-md);
  overflow: hidden;
}
.accordion-trigger {
  width: 100%;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: color var(--t-fast);
}
.accordion-trigger:hover { color: var(--brand-400); }
.accordion-trigger .chevron { transition: transform var(--t-base); font-size: 12px; color: var(--text-muted); }
.accordion-item.open .chevron { transform: rotate(180deg); }
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, padding 0.25s ease;
}
.accordion-item.open .accordion-content { max-height: 400px; }
.accordion-body {
  padding: 0 18px 16px;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ══════════════════════════════════════════════
   PRICING / SUBSCRIPTION
══════════════════════════════════════════════ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-faint);
  border-radius: var(--r-xl);
  padding: 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: all var(--t-base);
}
.pricing-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.pricing-card.featured {
  border-color: var(--brand-500);
  background: linear-gradient(180deg, var(--brand-bg-subtle) 0%, var(--bg-card) 100%);
}
.pricing-popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--brand-500), var(--purple-500));
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
}
.pricing-plan-name { font-size: 17px; font-weight: 700; color: var(--text-primary); }
.pricing-plan-desc { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }
.pricing-amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.pricing-currency { font-size: 18px; font-weight: 600; color: var(--text-secondary); margin-top: 4px; }
.pricing-price    { font-size: 40px; font-weight: 800; color: var(--text-primary); line-height: 1; }
.pricing-period   { font-size: 13px; color: var(--text-muted); }
.pricing-features { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-secondary);
}
.pricing-feature-check { color: var(--success-text); flex-shrink: 0; font-size: 14px; margin-top: 1px; }
.pricing-feature-x     { color: var(--text-muted);   flex-shrink: 0; font-size: 14px; margin-top: 1px; }
.pricing-divider { height: 1px; background: var(--border-faint); }

/* ══════════════════════════════════════════════
   AUTH PAGES
══════════════════════════════════════════════ */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  background: var(--bg-page);
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border-faint);
  border-radius: var(--r-2xl);
  padding: 36px 32px;
}
.auth-logo { display: flex; align-items: center; justify-content: center; margin-bottom: 28px; }
.auth-title { font-size: 22px; font-weight: 700; color: var(--text-primary); text-align: center; margin-bottom: 6px; }
.auth-sub   { font-size: 14px; color: var(--text-secondary); text-align: center; margin-bottom: 28px; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  font-size: 12px;
  color: var(--text-muted);
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-faint);
}
.auth-switch {
  text-align: center;
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-top: 20px;
}
.auth-switch a { color: var(--brand-500); font-weight: 500; }

/* ══════════════════════════════════════════════
   USER DASHBOARD
══════════════════════════════════════════════ */
.dashboard-layout {
  display: flex;
  min-height: calc(100vh - 62px);
}
.dashboard-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--bg-base);
  border-right: 1px solid var(--border-faint);
  padding: 20px 0;
  position: sticky;
  top: 62px;
  height: calc(100vh - 62px);
  overflow-y: auto;
}
.ds-section-title {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 0 16px;
  margin-bottom: 6px;
}
.ds-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--t-fast);
  text-decoration: none;
  border-left: 2px solid transparent;
}
.ds-link:hover { color: var(--text-primary); background: var(--bg-hover); }
.ds-link.active { color: var(--brand-500); background: var(--brand-bg-subtle); border-left-color: var(--brand-500); }
.ds-link-icon { font-size: 15px; width: 18px; text-align: center; }
.dashboard-main { flex: 1; padding: 32px; min-width: 0; }
.dashboard-title { font-size: 22px; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }
.dashboard-sub   { font-size: 14px; color: var(--text-secondary); margin-bottom: 28px; }
.stat-cards-row  { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 28px; }
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-faint);
  border-radius: var(--r-lg);
  padding: 18px;
}
.stat-card-label { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.stat-card-value { font-size: 26px; font-weight: 700; color: var(--text-primary); }
.stat-card-change { font-size: 11.5px; color: var(--success-text); margin-top: 2px; }

/* Pro Banner */
.pro-banner {
  background: linear-gradient(135deg, rgba(245,158,11,0.1), rgba(217,119,6,0.08));
  border: 1px solid var(--pro-border);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.pro-banner-text strong { color: var(--pro-text); font-size: 14px; display: block; }
.pro-banner-text span   { color: var(--text-secondary); font-size: 13px; }

/* ══════════════════════════════════════════════
   ADMIN PANEL
══════════════════════════════════════════════ */
.admin-layout { display: flex; min-height: calc(100vh - 62px); }
.admin-sidebar {
  width: 256px;
  flex-shrink: 0;
  background: var(--bg-base);
  border-right: 1px solid var(--border-faint);
  padding: 16px 0;
  position: sticky;
  top: 62px;
  height: calc(100vh - 62px);
  overflow-y: auto;
}
.admin-main { flex: 1; padding: 28px; min-width: 0; background: var(--bg-page); }
.admin-section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: 8px 16px 4px;
}
.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--t-fast);
  text-decoration: none;
  border-left: 2px solid transparent;
}
.admin-nav-link:hover { background: var(--bg-hover); color: var(--text-primary); }
.admin-nav-link.active { color: var(--brand-500); background: var(--brand-bg-subtle); border-left-color: var(--brand-500); }
.admin-nav-icon { font-size: 15px; width: 18px; text-align: center; }
.admin-nav-count {
  margin-left: auto;
  font-size: 10px;
  background: var(--bg-hover);
  color: var(--text-muted);
  padding: 1px 6px;
  border-radius: 10px;
}
.admin-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}
.admin-page-title { font-size: 20px; font-weight: 700; color: var(--text-primary); }

/* Data Table */
.data-table-wrap { overflow-x: auto; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.data-table th {
  padding: 11px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-faint);
  white-space: nowrap;
}
.data-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--border-faint);
  color: var(--text-secondary);
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg-hover); }
.data-table .td-name { color: var(--text-primary); font-weight: 500; }

/* Status Pill */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 500;
}
.status-pill::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.status-published { background: var(--success-bg); color: var(--success-text); }
.status-draft     { background: var(--warning-bg); color: var(--warning-text); }
.status-coming    { background: var(--info-bg);    color: var(--info-text); }
.status-archived  { background: var(--bg-surface); color: var(--text-muted); }

/* ══════════════════════════════════════════════
   TOAST NOTIFICATIONS
══════════════════════════════════════════════ */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  font-size: 13.5px;
  color: var(--text-primary);
  min-width: 260px;
  box-shadow: var(--shadow-lg);
  pointer-events: all;
  animation: slide-in-toast 0.25s ease;
}
@keyframes slide-in-toast { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:none; } }
.toast-icon { font-size: 16px; }
.toast-success { border-left: 3px solid var(--success-text); }
.toast-error   { border-left: 3px solid var(--danger-text); }
.toast-info    { border-left: 3px solid var(--brand-500); }

/* ══════════════════════════════════════════════
   MODAL
══════════════════════════════════════════════ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fade-in 0.15s ease;
}
@keyframes fade-in { from { opacity:0; } to { opacity:1; } }
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-2xl);
  padding: 32px;
  width: 100%;
  max-width: 480px;
  animation: modal-up 0.2s ease;
}
@keyframes modal-up { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:none; } }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.modal-title  { font-size: 18px; font-weight: 700; color: var(--text-primary); }
.modal-close  { width: 28px; height: 28px; border-radius: 6px; border: none; background: var(--bg-hover); color: var(--text-muted); cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; }

/* ══════════════════════════════════════════════
   TAGS PAGE
══════════════════════════════════════════════ */
.page-with-sidebar { display: flex; gap: 0; min-height: calc(100vh - 62px); }
.sidebar-left {
  width: 270px;
  flex-shrink: 0;
  border-right: 0;
  background: transparent;
  padding: 20px 0;
  position: relative;
  height: auto;
  overflow: visible;
  align-self: flex-start;
}
.page-content { flex: 1; padding: 28px; min-width: 0; }

/* Sidebar nav */
.sb-section-title {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 7px 18px;
}
.sb-nav-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  margin: 2px 10px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--t-fast);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 10px;
  line-height: 1.25;
}
.sb-nav-item:hover { background: var(--bg-hover); color: var(--text-primary); border-color: var(--border-faint); }
.sb-nav-item.active { color: var(--brand-400); background: var(--brand-bg-subtle); border-color: rgba(99,102,241,.24); }
.sb-nav-item-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--bg-surface);
  font-size: 14px;
  box-shadow: inset 0 0 0 1px var(--border-faint);
}
.sb-nav-item.active .sb-nav-item-icon {
  background: var(--brand-bg-light);
  color: var(--brand-400);
}
.sb-nav-count {
  min-width: 24px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  background: var(--bg-surface);
  box-shadow: inset 0 0 0 1px var(--border-faint);
}

/* ══════════════════════════════════════════════
   SEARCH PAGE
══════════════════════════════════════════════ */
.search-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.search-results-count { font-size: 13px; color: var(--text-secondary); }
.search-results-count strong { color: var(--text-primary); }

/* ══════════════════════════════════════════════
   BREADCRUMB
══════════════════════════════════════════════ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-secondary); transition: color var(--t-fast); }
.breadcrumb a:hover { color: var(--brand-500); }
.breadcrumb-sep { color: var(--text-muted); }

/* ══════════════════════════════════════════════
   NEWSLETTER
══════════════════════════════════════════════ */
.newsletter-box {
  background: linear-gradient(135deg, var(--brand-bg-subtle), rgba(139,92,246,0.06));
  border: 1px solid rgba(99,102,241,0.18);
  border-radius: var(--r-2xl);
  padding: 48px 40px;
  text-align: center;
}
.newsletter-title { font-size: 24px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.newsletter-sub   { font-size: 14px; color: var(--text-secondary); margin-bottom: 26px; }
.newsletter-form  { display: flex; gap: 10px; max-width: 440px; margin: 0 auto; }
.newsletter-form .form-input { flex: 1; }

/* Wish Studio homepage feature */
.wish-home-feature {
  background: radial-gradient(ellipse at 18% 0%, rgba(194,68,90,0.13), transparent 58%),
              radial-gradient(ellipse at 86% 100%, rgba(201,168,76,0.11), transparent 60%),
              var(--bg-base);
  border-top: 1px solid var(--border-faint);
  border-bottom: 1px solid var(--border-faint);
}
.wish-home-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 34px;
  align-items: center;
}
.wish-home-copy h2 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  margin: 14px 0 14px;
  color: var(--text-primary);
}
.wish-home-copy p {
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 620px;
  margin-bottom: 24px;
}
.wish-home-preview {
  min-height: 300px;
  position: relative;
}
.wish-preview-card {
  position: absolute;
  width: 210px;
  min-height: 136px;
  border-radius: 18px;
  padding: 20px;
  border: 1px solid rgba(201,168,76,.24);
  background: linear-gradient(145deg, rgba(255,255,255,.1), rgba(255,255,255,.035));
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 4px;
  animation: wish-home-float 5s ease-in-out infinite;
}
.wish-preview-card span { font-size: 34px; }
.wish-preview-card strong { font-size: 17px; color: var(--text-primary); }
.wish-preview-card small { color: var(--text-muted); }
.wish-preview-card.one { top: 10px; left: 12px; }
.wish-preview-card.two { top: 88px; right: 10px; animation-delay: -1.4s; }
.wish-preview-card.three { bottom: 0; left: 72px; animation-delay: -2.5s; }
@keyframes wish-home-float {
  0%,100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
}

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .navbar {
    height: 56px;
    padding: 0 12px;
    gap: 8px;
    justify-content: space-between;
  }
  .navbar-logo {
    flex: 0 1 auto;
    max-width: calc(100vw - 64px);
    gap: 7px;
    font-size: 15px;
  }
  .navbar > .navbar-logo { height: 56px; }
  .navbar-logo img,
  .navbar-logo-image {
    max-width: 112px !important;
    height: 28px !important;
    max-height: 28px;
  }
  .navbar-logo-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
  }
  .navbar-actions {
    gap: 6px;
    flex: 0 0 auto;
    margin-left: auto;
    justify-content: flex-end;
  }
  .navbar-links { display: none; }
  .navbar-search-btn {
    display: none;
  }
  .navbar-search-btn span { display: none; }
  .theme-toggle {
    display: none;
  }
  .navbar-mobile-toggle {
    display: flex;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    margin-left: auto;
  }
  .navbar-actions > a,
  .navbar-actions #accountMenu {
    display: none;
  }
  .mobile-nav {
    inset: 56px 0 0 0;
    width: 100vw;
    max-width: 100vw;
    overflow-x: hidden;
  }
  .section-sm {
    padding-left: 14px;
    padding-right: 14px;
  }
  .section-inner {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .hero { padding: 56px 20px 44px; }
  .section { padding: 44px 20px; }
  .tools-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
  .software-grid { grid-template-columns: 1fr; }
  .cats-grid { grid-template-columns: repeat(3, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-brand { grid-column: 1/-1; }
  .sidebar-left { display: none; }
  .page-with-sidebar { flex-direction: column; }
  .dashboard-sidebar { display: none; }
  .admin-sidebar { display: none; }
  .newsletter-form { flex-direction: column; }
  .newsletter-box { padding: 32px 20px; }
  .wish-home-inner { grid-template-columns: 1fr; }
  .wish-home-preview { min-height: 250px; }
  .wish-preview-card { width: 185px; }
}
@media (max-width: 480px) {
  .navbar {
    padding: 0 10px;
    gap: 6px;
  }
  .navbar-logo {
    max-width: calc(100vw - 58px);
  }
  .navbar-logo span {
    max-width: 118px;
  }
  .navbar-mobile-toggle {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }
  .hero-title { font-size: 26px; }
  .tools-grid { grid-template-columns: 1fr 1fr; }
  .cats-grid  { grid-template-columns: repeat(2, 1fr); }
  .stats-inner { gap: 24px; }
  .footer { padding: 40px 16px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px 18px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col-title { margin-bottom: 10px; }
  .footer-link { font-size: 12.5px; margin-bottom: 8px; }
  .footer-bottom { align-items: flex-start; }
  .social-links { flex-wrap: wrap; }
  .auth-card { padding: 24px 20px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { font-size: 13px; padding: 9px 14px; }
}

/* ══════════════════════════════════════════════
   UTILITY CLASSES
══════════════════════════════════════════════ */
.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }
.text-brand  { color: var(--brand-500); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 11.5px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.w-full { width: 100%; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
