/* ═══════════════════════════════════════════════════════
   MyDevHut Tools — Design System v2
   Dark/Light mode | Full responsive | No emoji
═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

/* ─── Dark Mode Variables (default) ────────────────── */
:root {
  --bg:          #0D0D1A;
  --bg-2:        #12122a;
  --bg-3:        #1a1a3e;
  --bg-card:     #161630;
  --border:      rgba(124,58,237,0.2);
  --border-glow: rgba(167,139,250,0.4);
  --primary:     #7C3AED;
  --primary-2:   #6D28D9;
  --accent:      #A78BFA;
  --highlight:   #EC4899;
  --success:     #10B981;
  --warning:     #F59E0B;
  --error:       #EF4444;
  --info:        #3B82F6;
  --text:        #E0E0F0;
  --text-2:      #A0A0C0;
  --text-3:      #606080;
  --white:       #FFFFFF;
  --font-head:   'Syne', sans-serif;
  --font-body:   'DM Sans', sans-serif;
  --radius:      12px;
  --radius-lg:   20px;
  --shadow:      0 4px 24px rgba(124,58,237,0.15);
  --shadow-lg:   0 8px 48px rgba(124,58,237,0.25);
  --transition:  all 0.3s cubic-bezier(0.4,0,0.2,1);
  --grad-primary: linear-gradient(135deg, #7C3AED 0%, #A78BFA 100%);
  --grad-dark:    linear-gradient(135deg, #1a0a3e 0%, #2d1b69 100%);
  --grad-card:    linear-gradient(145deg, rgba(124,58,237,0.08) 0%, rgba(167,139,250,0.04) 100%);
  --grad-glow:    radial-gradient(ellipse at center, rgba(124,58,237,0.3) 0%, transparent 70%);
  --nav-bg:       rgba(13,13,26,0.85);
  --nav-bg-solid: rgba(13,13,26,0.98);
  --input-bg:     #12122a;
  --code-bg:      #0a0a18;
}

/* ─── Light Mode Variables ──────────────────────────── */
[data-theme="light"] {
  --bg:          #F8F7FF;
  --bg-2:        #FFFFFF;
  --bg-3:        #F0EEF8;
  --bg-card:     #FFFFFF;
  --border:      rgba(124,58,237,0.15);
  --border-glow: rgba(124,58,237,0.35);
  --text:        #1A1A2E;
  --text-2:      #4A4A6A;
  --text-3:      #9090B0;
  --nav-bg:       rgba(248,247,255,0.9);
  --nav-bg-solid: rgba(248,247,255,0.99);
  --input-bg:     #F0EEF8;
  --shadow:      0 4px 24px rgba(124,58,237,0.1);
  --shadow-lg:   0 8px 48px rgba(124,58,237,0.18);
  --grad-dark:    linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
  --code-bg:      #f0eeff;
}

/* ─── Reset & Base ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  transition: background 0.3s ease, color 0.3s ease;
}
::selection { background: rgba(124,58,237,0.35); color: #fff; }
a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary); }
img { max-width: 56px; height: auto; display: block; }

/* ─── Page Loader ───────────────────────────────────── */
#page-loader {
  position: fixed; inset: 0; background: var(--bg); z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 20px;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#page-loader.hidden { opacity: 0; visibility: hidden; }
.loader-logo { width: 80px; animation: pulse 1.5s ease-in-out infinite; }
.loader-bar { width: 200px; height: 3px; background: var(--bg-3); border-radius: 99px; overflow: hidden; }
.loader-bar-fill { height: 100%; background: var(--grad-primary); border-radius: 99px; animation: loaderFill 1.2s ease-in-out infinite; }
.loader-text { font-family: var(--font-head); color: var(--text-2); font-size: 13px; letter-spacing: 2px; text-transform: uppercase; }

/* ─── Navigation ────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 24px; height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--nav-bg);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: top 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
/* When announcement banner is visible, nav drops below it */
body.has-banner .nav { top: 40px; }
body.has-banner main { padding-top: calc(72px + 40px) !important; }
.nav.scrolled { background: var(--nav-bg-solid); box-shadow: var(--shadow); }
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo img { height: 38px; }
.nav-logo-text { font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--text); }
.nav-logo-text span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a { color: var(--text-2); padding: 8px 14px; border-radius: 8px; font-size: 14px; font-weight: 500; transition: var(--transition); }
.nav-links a:hover, .nav-links a.active { color: var(--accent); background: rgba(124,58,237,0.1); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* Currency Toggle Pill */
.currency-toggle {
  display: flex; align-items: center;
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: 99px; padding: 3px; gap: 2px;
}
.currency-toggle-btn {
  padding: 4px 12px; border-radius: 99px; border: none;
  font-size: 12px; font-weight: 600; cursor: pointer;
  transition: var(--transition); color: var(--text-3);
  background: transparent; display: flex; align-items: center; gap: 5px;
}
.currency-toggle-btn.active {
  background: var(--grad-primary); color: white;
  box-shadow: 0 2px 8px rgba(124,58,237,0.35);
}
.currency-toggle-btn svg { flex-shrink: 0; }

/* Theme Toggle */
.theme-toggle {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--bg-3); border: 1px solid var(--border);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--text-2); transition: var(--transition);
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); background: rgba(124,58,237,0.1); }
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun  { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* Cart button */
.cart-btn {
  position: relative; background: var(--bg-3); border: 1px solid var(--border);
  border-radius: 10px; padding: 8px 14px; color: var(--text);
  cursor: pointer; display: flex; align-items: center; gap: 7px;
  font-size: 14px; transition: var(--transition); text-decoration: none;
}
.cart-btn:hover { border-color: var(--accent); color: var(--accent); }
.cart-count {
  position: absolute; top: -6px; right: -6px;
  background: var(--highlight); color: white; font-size: 10px; font-weight: 700;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* Mobile toggle */
.nav-mobile-toggle {
  display: none; background: var(--bg-3); border: 1px solid var(--border);
  border-radius: 10px; cursor: pointer; padding: 8px;
  color: var(--text); width: 40px; height: 40px;
  align-items: center; justify-content: center; transition: var(--transition);
}
.nav-mobile-toggle:hover { border-color: var(--accent); color: var(--accent); }

/* Mobile Menu Drawer */
.mobile-menu {
  display: none; position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
  background: var(--bg-2); z-index: 998; overflow-y: auto;
  padding: 24px; flex-direction: column; gap: 8px;
  border-top: 1px solid var(--border);
  animation: slideDown 0.3s ease;
}
.mobile-menu.open { display: flex; }
.mobile-menu .nav-links {
  display: flex; flex-direction: column; gap: 4px; width: 100%;
}
.mobile-menu .nav-links a {
  padding: 14px 16px; border-radius: 12px; font-size: 16px;
  border: 1px solid transparent;
}
.mobile-menu .nav-links a:hover { border-color: var(--border); }
.mobile-menu-actions {
  display: flex; flex-direction: column; gap: 10px;
  padding-top: 16px; border-top: 1px solid var(--border); margin-top: 8px;
}
.mobile-menu-row { display: flex; gap: 10px; align-items: center; }

/* ─── Announcement Banner ───────────────────────────── */
.sticky-banner {
  background: var(--grad-primary); color: white;
  text-align: center; padding: 10px 48px;
  font-size: 14px; font-weight: 500;
  position: fixed; top: 0; left: 0; right: 0; z-index: 1001;
  height: 40px; display: flex; align-items: center; justify-content: center; gap: 10px;
}
.sticky-banner.hidden { display: none; }
/* When banner dismissed, nav goes back to top:0 */
.sticky-banner.hidden ~ * .nav,
body:not(.has-banner) .nav { top: 0; }
.sticky-banner a { color: white; text-decoration: underline; font-weight: 600; }
.sticky-banner-close {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.2); border: none; color: white; cursor: pointer;
  width: 28px; height: 28px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center; transition: background 0.2s;
}
.sticky-banner-close:hover { background: rgba(255,255,255,0.35); }

/* ─── Buttons ───────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius);
  font-family: var(--font-body); font-size: 15px; font-weight: 600;
  cursor: pointer; transition: var(--transition); border: none;
  text-decoration: none; white-space: nowrap; position: relative; overflow: hidden;
}
.btn::before { content: ''; position: absolute; inset: 0; background: white; opacity: 0; transition: opacity 0.2s; }
.btn:hover::before { opacity: 0.06; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--grad-primary); color: white; box-shadow: 0 4px 20px rgba(124,58,237,0.4); }
.btn-primary:hover { box-shadow: 0 6px 30px rgba(124,58,237,0.6); transform: translateY(-1px); color: white; }
.btn-outline { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.btn-outline:hover { background: rgba(124,58,237,0.1); border-color: var(--primary); color: var(--accent); }
.btn-ghost { background: transparent; color: var(--text-2); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: rgba(124,58,237,0.05); }
.btn-danger { background: var(--error); color: white; }
.btn-success { background: var(--success); color: white; }
.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 16px 36px; font-size: 17px; border-radius: 14px; }
.btn-xl { padding: 20px 48px; font-size: 18px; border-radius: 16px; }
.btn-block { width: 100%; }
.btn-loading { pointer-events: none; opacity: 0.7; }
.btn-loading::after {
  content: ''; width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3); border-top-color: white;
  border-radius: 50%; animation: spin 0.8s linear infinite; margin-left: 8px;
}

/* Google button */
.btn-google {
  background: var(--bg-2); color: var(--text);
  border: 1.5px solid var(--border); display: flex; align-items: center; gap: 10px;
  width: 100%; justify-content: center; padding: 12px 20px; border-radius: var(--radius);
  font-size: 15px; font-weight: 500; cursor: pointer; transition: var(--transition);
  text-decoration: none;
}
.btn-google:hover { border-color: var(--accent); box-shadow: 0 4px 16px rgba(0,0,0,0.1); color: var(--text); }
.btn-google img { width: 20px; height: 20px; }

/* ─── Cards ─────────────────────────────────────────── */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: var(--transition); position: relative;
}
.card:hover { border-color: var(--border-glow); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: var(--grad-primary); opacity: 0; transition: opacity 0.3s;
}
.card:hover::before { opacity: 1; }
.card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--bg-3); }
.card-body { padding: 24px; }
.card-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 6px; margin-bottom: 12px;
}
.badge-ebook    { background: rgba(16,185,129,0.15); color: #10B981; }
.badge-tool     { background: rgba(59,130,246,0.15); color: #3B82F6; }
.badge-script   { background: rgba(245,158,11,0.15); color: #F59E0B; }
.badge-snippet  { background: rgba(236,72,153,0.15); color: #EC4899; }
.badge-bundle   { background: rgba(124,58,237,0.15); color: #A78BFA; }
.badge-featured { background: rgba(124,58,237,0.2); color: #A78BFA; border: 1px solid rgba(124,58,237,0.3); }
.card-title { font-family: var(--font-head); font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 8px; line-height: 1.4; }
.card-desc { font-size: 14px; color: var(--text-2); line-height: 1.6; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-footer { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; border-top: 1px solid var(--border); background: rgba(0,0,0,0.08); }
.price { font-family: var(--font-head); font-size: 20px; font-weight: 800; color: var(--accent); }
.price-sale { text-decoration: line-through; color: var(--text-3); font-size: 14px; font-weight: 400; margin-left: 4px; }
.rating { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--text-2); }

/* ─── SVG Icon System ───────────────────────────────── */
.svg-stars { display: inline-flex; align-items: center; gap: 2px; }
.svg-star { display: inline-block; flex-shrink: 0; }
.svg-star.filled { color: #F59E0B; }
.svg-star.empty  { color: var(--text-3); }
.rating .svg-stars { vertical-align: middle; }
.svg-badge-featured { display: inline-flex; align-items: center; gap: 5px; }
.svg-icon { display: inline-block; vertical-align: middle; flex-shrink: 0; }

/* ─── Product Grid ───────────────────────────────────── */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }

/* ─── Hero ──────────────────────────────────────────── */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; padding: 120px 24px 80px;
}
#hero-canvas { position: absolute; inset: 0; z-index: 0; width: 100% !important; height: 100% !important; display: block; }
.hero-content { position: relative; z-index: 2; max-width: 900px; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(124,58,237,0.15); border: 1px solid rgba(124,58,237,0.3);
  border-radius: 99px; padding: 8px 20px; font-size: 13px;
  color: var(--accent); font-weight: 600; margin-bottom: 32px;
  animation: fadeInUp 0.6s ease both;
}
.hero-badge-dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; animation: pulse 2s ease-in-out infinite; }
.hero-title { font-family: var(--font-head); font-size: clamp(42px, 6vw, 80px); font-weight: 800; line-height: 1.1; letter-spacing: -2px; margin-bottom: 24px; animation: fadeInUp 0.6s ease 0.1s both; }
.hero-title .grad { background: var(--grad-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-title .highlight { color: var(--highlight); }
.hero-desc { font-size: clamp(16px, 2vw, 19px); color: var(--text-2); max-width: 600px; margin: 0 auto 48px; line-height: 1.8; animation: fadeInUp 0.6s ease 0.2s both; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; animation: fadeInUp 0.6s ease 0.3s both; }
.hero-stats { display: flex; gap: 48px; justify-content: center; margin-top: 80px; animation: fadeInUp 0.6s ease 0.4s both; flex-wrap: wrap; }
.hero-stat-num { font-family: var(--font-head); font-size: 36px; font-weight: 800; color: var(--accent); display: block; }
.hero-stat-label { font-size: 13px; color: var(--text-3); display: block; margin-top: 4px; }

/* ─── Sections ───────────────────────────────────────── */
.section { padding: 100px 0; }
.section-sm { padding: 60px 0; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; padding: 6px 16px; background: rgba(124,58,237,0.1); border-radius: 99px; border: 1px solid rgba(124,58,237,0.2); }
.section-title { font-family: var(--font-head); font-size: clamp(28px, 4vw, 48px); font-weight: 800; line-height: 1.2; letter-spacing: -1px; margin-bottom: 16px; }
.section-desc { font-size: 17px; color: var(--text-2); max-width: 560px; margin: 0 auto; line-height: 1.7; }

/* ─── Filter Tabs ────────────────────────────────────── */
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; }
.filter-tab { padding: 8px 20px; border-radius: 99px; border: 1px solid var(--border); color: var(--text-2); font-size: 14px; font-weight: 500; cursor: pointer; transition: var(--transition); background: var(--bg-card); }
.filter-tab:hover, .filter-tab.active { background: var(--grad-primary); border-color: transparent; color: white; box-shadow: 0 4px 16px rgba(124,58,237,0.3); }

/* ─── Forms ─────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 14px; font-weight: 600; color: var(--text-2); margin-bottom: 8px; }
.form-label.required::after { content: ' *'; color: var(--error); }
.form-control {
  width: 100%; background: var(--input-bg); border: 1.5px solid var(--border);
  border-radius: var(--radius); color: var(--text);
  font-family: var(--font-body); font-size: 15px; padding: 12px 16px;
  transition: var(--transition); outline: none;
}
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124,58,237,0.15); background: var(--bg-3); }
.form-control::placeholder { color: var(--text-3); }
.form-control.error { border-color: var(--error); }
.form-control.success { border-color: var(--success); }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { cursor: pointer; }
.form-hint { font-size: 12px; color: var(--text-3); margin-top: 6px; }
.form-error { font-size: 12px; color: var(--error); margin-top: 6px; display: flex; align-items: center; gap: 4px; }

/* ─── Alerts ─────────────────────────────────────────── */
.alert { padding: 16px 20px; border-radius: var(--radius); margin-bottom: 20px; display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 1.6; }
.alert-success { background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.3); color: #10B981; }
.alert-error   { background: rgba(239,68,68,0.1);  border: 1px solid rgba(239,68,68,0.3);  color: #EF4444; }
.alert-warning { background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.3); color: #F59E0B; }
.alert-info    { background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.3); color: #3B82F6; }
.alert svg { flex-shrink: 0; margin-top: 1px; }

/* ─── Badges / Status ────────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; letter-spacing: 0.5px; padding: 3px 8px; border-radius: 6px; text-transform: uppercase; }
.badge-success { background: rgba(16,185,129,0.15); color: #10B981; }
.badge-error   { background: rgba(239,68,68,0.15);  color: #EF4444; }
.badge-warning { background: rgba(245,158,11,0.15); color: #F59E0B; }
.badge-info    { background: rgba(59,130,246,0.15); color: #3B82F6; }
.badge-purple  { background: rgba(124,58,237,0.15); color: #A78BFA; }

/* ─── Payment Method Cards ───────────────────────────── */
.payment-methods { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-top: 20px; }
.payment-method {
  border: 2px solid var(--border); border-radius: var(--radius);
  padding: 16px 12px; cursor: pointer; transition: var(--transition);
  text-align: center; background: var(--bg-2); position: relative;
}
.payment-method:hover { border-color: var(--accent); background: rgba(124,58,237,0.05); }
.payment-method.selected { border-color: var(--primary); background: rgba(124,58,237,0.12); box-shadow: 0 0 0 3px rgba(124,58,237,0.15); }
.payment-method.selected::after {
  content: ''; position: absolute; top: 8px; right: 8px;
  width: 20px; height: 20px; background: var(--primary); color: white;
  border-radius: 50%; font-size: 11px; display: flex; align-items: center; justify-content: center; font-weight: 700;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 12px; background-repeat: no-repeat; background-position: center;
}
.payment-method-logo { height: 32px; margin: 0 auto 8px; object-fit: contain; }
.payment-method-name { font-size: 13px; font-weight: 600; color: var(--text); }
.payment-method-sub  { font-size: 11px; color: var(--text-3); margin-top: 2px; }

/* Payment SVG logos in footer */
.payment-logos { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.payment-logo-badge {
  display: flex; align-items: center; gap: 6px; padding: 5px 10px;
  border-radius: 8px; border: 1px solid var(--border); background: var(--bg-3);
  font-size: 11px; font-weight: 700; transition: var(--transition);
}
.payment-logo-badge:hover { border-color: var(--border-glow); }
.payment-logo-badge svg { flex-shrink: 0; }
.payment-logo-stripe    { color: #635BFF; }
.payment-logo-jazzcash  { color: #FF6400; }
.payment-logo-easypaisa { color: #00A347; }
.payment-logo-xpay      { color: #7C3AED; }
.payment-logo-bank      { color: var(--text-2); }

/* ─── Checkout Steps ─────────────────────────────────── */
.checkout-steps { display: flex; align-items: center; margin-bottom: 48px; justify-content: center; }
.step { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.step-num { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; color: var(--text-3); transition: var(--transition); }
.step.active .step-num { background: var(--grad-primary); border-color: transparent; color: white; box-shadow: 0 0 20px rgba(124,58,237,0.5); }
.step.done .step-num { background: var(--success); border-color: transparent; color: white; }
.step-label { font-size: 13px; font-weight: 600; color: var(--text-3); }
.step.active .step-label, .step.done .step-label { color: var(--text); }
.step-connector { flex: 1; height: 2px; background: var(--border); min-width: 40px; max-width: 80px; margin: 0 8px; }
.step-connector.done { background: var(--grad-primary); }

/* ─── Tabs ───────────────────────────────────────────── */
.tabs { border-bottom: 1px solid var(--border); margin-bottom: 32px; }
.tab-list { display: flex; gap: 0; overflow-x: auto; }
.tab-btn { padding: 12px 24px; border: none; background: none; color: var(--text-3); font-family: var(--font-body); font-size: 15px; font-weight: 500; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: var(--transition); white-space: nowrap; display: flex; align-items: center; gap: 7px; }
.tab-btn:hover { color: var(--accent); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn 0.3s ease; }

/* ─── Accordion ──────────────────────────────────────── */
.accordion-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 8px; overflow: hidden; transition: var(--transition); }
.accordion-item:hover { border-color: var(--border-glow); }
.accordion-trigger { width: 100%; background: var(--bg-2); border: none; padding: 20px 24px; text-align: left; color: var(--text); font-family: var(--font-body); font-size: 16px; font-weight: 500; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; transition: var(--transition); }
.accordion-trigger:hover { background: var(--bg-3); }
.accordion-icon { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--bg-3); display: flex; align-items: center; justify-content: center; transition: transform 0.3s ease; color: var(--text-2); }
.accordion-item.open .accordion-icon { transform: rotate(45deg); background: var(--primary); color: white; }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0,1,0,1); }
.accordion-item.open .accordion-body { max-height: 1000px; transition: max-height 0.4s ease; }
.accordion-content { padding: 0 24px 20px; color: var(--text-2); font-size: 15px; line-height: 1.7; }

/* ─── Star Rating ────────────────────────────────────── */
.star-rating { display: flex; gap: 6px; align-items: center; }
.star-rating .star { cursor: pointer; color: var(--text-3); transition: color 0.15s, transform 0.15s; display: flex; }
.star-rating .star svg { pointer-events: none; }
.star-rating .star.active, .star-rating .star:hover { color: #F59E0B; transform: scale(1.15); }

/* ─── Testimonials ───────────────────────────────────── */
.testimonial-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; position: relative; transition: var(--transition); }
.testimonial-card:hover { border-color: var(--border-glow); transform: translateY(-4px); }
.testimonial-quote { font-size: 48px; line-height: 1; color: var(--primary); opacity: 0.5; margin-bottom: 16px; font-family: Georgia, serif; }
.testimonial-text { color: var(--text-2); font-size: 15px; line-height: 1.7; margin-bottom: 24px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--grad-primary); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; color: white; flex-shrink: 0; }
.testimonial-name { font-weight: 600; font-size: 15px; }
.testimonial-role { font-size: 13px; color: var(--text-3); }

/* ─── Newsletter ─────────────────────────────────────── */
.newsletter-strip { background: var(--grad-dark); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 60px; text-align: center; position: relative; overflow: hidden; }
.newsletter-strip::before { content: ''; position: absolute; top: -50%; left: 50%; transform: translateX(-50%); width: 400px; height: 400px; background: var(--grad-glow); pointer-events: none; }
.newsletter-form { display: flex; gap: 12px; max-width: 480px; margin: 32px auto 0; }
.newsletter-form .form-control { flex: 1; }

/* ─── Footer ─────────────────────────────────────────── */
.footer { background: var(--bg-2); border-top: 1px solid var(--border); padding: 80px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; padding-bottom: 60px; border-bottom: 1px solid var(--border); }
.footer-brand p { font-size: 14px; color: var(--text-3); margin: 16px 0 24px; line-height: 1.7; }
.footer-social { display: flex; gap: 10px; flex-wrap: wrap; }
.social-btn { width: 40px; height: 40px; border-radius: 10px; background: var(--bg-3); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--text-2); transition: var(--transition); }
.social-btn:hover { background: var(--primary); border-color: var(--primary); color: white; }
.footer-title { font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--text-2); margin-bottom: 20px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; color: var(--text-3); transition: var(--transition); }
.footer-links a:hover { color: var(--accent); padding-left: 4px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding: 24px 0; font-size: 13px; color: var(--text-3); flex-wrap: wrap; gap: 12px; }
.footer-designed { display: flex; align-items: center; gap: 8px; }
.footer-designed img { height: 22px; opacity: 0.7; transition: var(--transition); }
.footer-designed img:hover { opacity: 1; }

/* ─── Auth Pages ─────────────────────────────────────── */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 120px 24px 60px; }
.auth-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 48px; width: 100%; max-width: 440px; }
.auth-logo { text-align: center; margin-bottom: 32px; }
.auth-logo img { height: 48px; margin: 0 auto 12px; }
.auth-title { font-family: var(--font-head); font-size: 26px; font-weight: 800; text-align: center; margin-bottom: 8px; }
.auth-sub { font-size: 15px; color: var(--text-2); text-align: center; margin-bottom: 32px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 24px 0; color: var(--text-3); font-size: 13px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ─── Plan Cards ─────────────────────────────────────── */
.plan-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px 28px; text-align: center; transition: var(--transition); position: relative; }
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border-glow); }
.plan-card.popular { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124,58,237,0.15), var(--shadow-lg); }
.plan-card.popular::before { content: 'Most Popular'; position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--grad-primary); color: white; font-size: 12px; font-weight: 700; padding: 4px 16px; border-radius: 99px; white-space: nowrap; }
.plan-name { font-family: var(--font-head); font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.plan-price { font-family: var(--font-head); font-size: 44px; font-weight: 800; color: var(--accent); margin: 20px 0; line-height: 1; }
.plan-price sup { font-size: 20px; vertical-align: top; margin-top: 8px; }
.plan-price span { font-size: 14px; color: var(--text-3); font-weight: 400; }
.plan-features { list-style: none; text-align: left; margin: 24px 0; display: flex; flex-direction: column; gap: 10px; }
.plan-features li { font-size: 14px; color: var(--text-2); display: flex; align-items: center; gap: 10px; }
.plan-features li .feat-icon { flex-shrink: 0; color: var(--success); }
.plan-features li.no .feat-icon { color: var(--error); }
.plan-features li.no { opacity: 0.5; }

/* ─── Toast Notifications ────────────────────────────── */
#toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 12px; max-width: 380px; }
.toast { background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; display: flex; align-items: flex-start; gap: 12px; box-shadow: var(--shadow-lg); animation: slideInRight 0.3s ease; cursor: pointer; }
.toast.removing { animation: slideOutRight 0.3s ease forwards; }
.toast-success { border-left: 3px solid var(--success); }
.toast-error   { border-left: 3px solid var(--error); }
.toast-warning { border-left: 3px solid var(--warning); }
.toast-info    { border-left: 3px solid var(--info); }
.toast-icon { flex-shrink: 0; color: var(--accent); }
.toast-content { flex: 1; }
.toast-title { font-weight: 600; font-size: 14px; margin-bottom: 2px; }
.toast-msg { font-size: 13px; color: var(--text-2); }

/* ─── Skeleton ───────────────────────────────────────── */
.skeleton { background: linear-gradient(90deg, var(--bg-2) 25%, var(--bg-3) 50%, var(--bg-2) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 8px; }
.skeleton-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.skeleton-img { width: 100%; aspect-ratio: 16/9; }
.skeleton-body { padding: 24px; }
.skeleton-line { height: 14px; margin-bottom: 10px; border-radius: 4px; }
.skeleton-line.w-20 { width: 20%; } .skeleton-line.w-40 { width: 40%; } .skeleton-line.w-60 { width: 60%; } .skeleton-line.w-80 { width: 80%; } .skeleton-line.w-100 { width: 100%; }
.skeleton-line.h-20 { height: 20px; } .skeleton-line.h-28 { height: 28px; }
.skeleton-footer { height: 60px; background: var(--bg-2); }

/* ─── Modal ──────────────────────────────────────────── */
.modal-overlay { position: fixed; inset: 0; background: rgba(13,13,26,0.85); backdrop-filter: blur(8px); z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 24px; opacity: 0; visibility: hidden; transition: var(--transition); }
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-lg); max-width: 560px; width: 100%; max-height: 90vh; overflow-y: auto; transform: scale(0.9) translateY(20px); transition: var(--transition); }
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 24px 28px; border-bottom: 1px solid var(--border); }
.modal-title { font-family: var(--font-head); font-size: 20px; font-weight: 700; }
.modal-close { width: 32px; height: 32px; border-radius: 8px; background: var(--bg-3); border: none; cursor: pointer; color: var(--text-2); display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.modal-close:hover { background: var(--error); color: white; }
.modal-body { padding: 28px; }
.modal-footer { padding: 20px 28px; border-top: 1px solid var(--border); display: flex; gap: 12px; justify-content: flex-end; }

/* ─── Upload Zone ────────────────────────────────────── */
.upload-zone { border: 2px dashed var(--border); border-radius: var(--radius-lg); padding: 48px 32px; text-align: center; cursor: pointer; transition: var(--transition); background: var(--bg-2); }
.upload-zone:hover, .upload-zone.dragging { border-color: var(--accent); background: rgba(124,58,237,0.05); }

/* ─── Progress ───────────────────────────────────────── */
.progress { height: 6px; background: var(--bg-3); border-radius: 99px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--grad-primary); border-radius: 99px; transition: width 0.5s ease; }

/* ─── Utilities ──────────────────────────────────────── */
.glow-primary { box-shadow: 0 0 30px rgba(124,58,237,0.4); }
.text-grad    { background: var(--grad-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.text-highlight { color: var(--highlight); }
.divider { height: 1px; background: var(--border); margin: 32px 0; }
.divider-grad { height: 1px; background: linear-gradient(90deg, transparent, var(--primary), transparent); margin: 32px 0; }
.text-center { text-align: center; } .text-right { text-align: right; }
.flex { display: flex; } .flex-col { flex-direction: column; } .items-center { align-items: center; }
.justify-between { justify-content: space-between; } .justify-center { justify-content: center; }
.gap-4 { gap: 16px; } .gap-8 { gap: 32px; }
.mt-4 { margin-top: 16px; } .mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; } .mb-8 { margin-bottom: 32px; }
.p-4 { padding: 16px; } .p-8 { padding: 32px; }
.w-full { width: 100%; } .rounded { border-radius: var(--radius); }
.hidden { display: none !important; }

/* ─── Cookie Banner ──────────────────────────────────── */
#cookie-banner { position: fixed; bottom: 24px; left: 24px; right: 24px; max-width: 460px; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; z-index: 9000; box-shadow: var(--shadow-lg); animation: slideInRight 0.5s ease; }
#cookie-banner.hidden { display: none; }
.cookie-text { font-size: 14px; color: var(--text-2); margin-bottom: 16px; line-height: 1.6; }
.cookie-actions { display: flex; gap: 10px; }

/* ─── Blog ───────────────────────────────────────────── */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 28px; }
.blog-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: var(--transition); }
.blog-card:hover { border-color: var(--border-glow); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.blog-card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--bg-3); }
.blog-card-body { padding: 24px; }
.blog-tag { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.blog-card-title { font-family: var(--font-head); font-size: 19px; font-weight: 700; line-height: 1.4; margin-bottom: 10px; color: var(--text); }
.blog-card-excerpt { font-size: 14px; color: var(--text-2); line-height: 1.6; margin-bottom: 20px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-meta { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--text-3); }
.blog-meta svg { flex-shrink: 0; }

/* ─── Account / Dashboard ────────────────────────────── */
.dashboard-grid { display: grid; grid-template-columns: 240px 1fr; gap: 32px; padding-top: 100px; min-height: 100vh; }
.sidebar { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; height: fit-content; position: sticky; top: 88px; }
.sidebar-nav { display: flex; flex-direction: column; gap: 4px; }
.sidebar-link { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; color: var(--text-2); font-size: 14px; font-weight: 500; transition: var(--transition); }
.sidebar-link:hover, .sidebar-link.active { background: rgba(124,58,237,0.1); color: var(--accent); }
.sidebar-link.active { color: var(--accent); background: rgba(124,58,237,0.12); }
.stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; transition: var(--transition); }
.stat-card:hover { border-color: var(--border-glow); }
.stat-icon { width: 48px; height: 48px; border-radius: 12px; background: rgba(124,58,237,0.15); display: flex; align-items: center; justify-content: center; color: var(--accent); margin-bottom: 16px; }
.stat-value { font-family: var(--font-head); font-size: 28px; font-weight: 800; color: var(--text); }
.stat-label { font-size: 14px; color: var(--text-3); margin-top: 4px; }

/* ─── Table ──────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead { background: var(--bg-3); }
th { padding: 14px 20px; text-align: left; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-3); white-space: nowrap; }
td { padding: 16px 20px; border-top: 1px solid var(--border); color: var(--text-2); vertical-align: middle; }
tr:hover td { background: rgba(124,58,237,0.04); }

/* ─── Gated Content ──────────────────────────────────── */
.locked-overlay { position: relative; }
.locked-overlay::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 30%, var(--bg) 80%); pointer-events: none; }
.locked-cta { text-align: center; padding: 48px 24px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); margin-top: 32px; }
.locked-icon { width: 64px; height: 64px; border-radius: 50%; background: rgba(124,58,237,0.15); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; color: var(--accent); }

/* ─── Changelog ──────────────────────────────────────── */
.changelog-item { display: flex; gap: 24px; padding: 32px 0; border-bottom: 1px solid var(--border); }
.changelog-version { flex-shrink: 0; text-align: center; }
.version-badge { display: inline-block; padding: 6px 14px; background: rgba(124,58,237,0.15); color: var(--accent); border: 1px solid rgba(124,58,237,0.3); border-radius: 8px; font-family: var(--font-head); font-size: 14px; font-weight: 700; white-space: nowrap; }
.changelog-date { font-size: 12px; color: var(--text-3); margin-top: 6px; }
.changelog-content h3 { font-family: var(--font-head); font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.changelog-type { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 3px 9px; border-radius: 6px; margin-right: 6px; margin-bottom: 12px; }
.changelog-type.new     { background: rgba(16,185,129,0.15); color: #10B981; }
.changelog-type.fix     { background: rgba(239,68,68,0.15);  color: #EF4444; }
.changelog-type.improve { background: rgba(59,130,246,0.15); color: #3B82F6; }
.changelog-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.changelog-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text-2); line-height: 1.6; }
.changelog-list li svg { flex-shrink: 0; margin-top: 3px; color: var(--accent); }

/* ─── Animations ─────────────────────────────────────── */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(100px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideOutRight { to { opacity: 0; transform: translateX(120px); } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shimmer { from { background-position: -200% 0; } to { background-position: 200% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.6; transform: scale(0.95); } }
@keyframes loaderFill { 0% { width: 0%; margin-left: 0; } 50% { width: 70%; margin-left: 0; } 100% { width: 0%; margin-left: 100%; } }
@keyframes float { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-12px); } }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
/* Ensure products/cards never stay invisible > 1s */
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; transition: none !important; } }
.reveal-delay-1 { transition-delay: 0.1s; } .reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; } .reveal-delay-4 { transition-delay: 0.4s; }

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 1200px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .dashboard-grid { grid-template-columns: 200px 1fr; gap: 20px; }
}
@media (max-width: 1024px) {
  .nav-links { gap: 0; }
  .nav-links a { padding: 8px 10px; font-size: 13px; }
  .hero-stats { gap: 32px; }
}
@media (max-width: 768px) {
  .nav-links, .currency-toggle { display: none; }
  .nav-mobile-toggle { display: flex; }
  .hero-title { letter-spacing: -1px; }
  .hero-stats { flex-direction: column; gap: 24px; align-items: center; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 320px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 16px; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
  .blog-grid { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .checkout-steps { gap: 4px; }
  .step-label { display: none; }
  .payment-methods { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; padding-top: 88px; }
  .sidebar { position: static; }
  .changelog-item { flex-direction: column; gap: 12px; }
  .newsletter-strip { padding: 40px 24px; }
  .auth-card { padding: 32px 24px; }
  .section { padding: 64px 0; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section { padding: 48px 0; }
  .card-body { padding: 16px; }
  .btn-xl { padding: 14px 28px; font-size: 16px; }
  .hero-stat-num { font-size: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .product-grid { grid-template-columns: 1fr; }
  .payment-methods { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .payment-method { padding: 12px 8px; }
  .plan-card { padding: 28px 20px; }
  .modal-body { padding: 20px; }
  .step-connector { min-width: 20px; }
  .table-wrap th, .table-wrap td { padding: 12px; }
}
