/* ============================================================
   FREE QR CODE GENERATOR - Modern Design System
   ============================================================ */

/* CSS Custom Properties */
:root {
  /* Notion-inspired palette: blue accent, warm-charcoal text, hairline borders */
  --primary: #2383E2;
  --primary-light: #529AE8;
  --primary-dark: #1A6AC2;
  --primary-50: #F1F7FD;
  --primary-100: #E3F0FB;
  --accent: #2EAADC;
  --accent-light: #7CC9E6;
  --success: #0F7B6C;
  --warning: #CB912F;
  --danger: #E03E3E;
  --bg: #FFFFFF;
  --bg-dark: #191919;
  --surface: #FFFFFF;
  --surface-2: #F7F6F3;      /* Notion warm paper */
  --border: #E9E9E7;         /* Notion hairline */
  --border-light: #F1F0EE;
  --text: #37352F;           /* Notion warm near-black */
  --text-light: #787774;     /* Notion muted gray */
  --text-lighter: #9B9A97;
  --shadow-sm: 0 1px 2px rgba(15,15,15,.04);
  --shadow: 0 1px 3px rgba(15,15,15,.06), 0 1px 2px rgba(15,15,15,.04);
  --shadow-md: 0 4px 12px rgba(15,15,15,.08);
  --shadow-lg: 0 8px 24px rgba(15,15,15,.10);
  --shadow-xl: 0 16px 48px rgba(15,15,15,.14);
  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 10px;
  --radius-xl: 16px;
  --font: 'Inter', ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --transition: 0.15s ease;
  --container: 1180px;
}

/* ============================================================
   THEME: Sunset (warm amber/yellow)
   ============================================================ */
[data-theme="sunset"] {
  --primary: #D97706;
  --primary-light: #F59E0B;
  --primary-dark: #B45309;
  --primary-50: #FFFBEB;
  --primary-100: #FEF3C7;
  --accent: #EF4444;
  --accent-light: #FCA5A5;
  --bg: #FFFDF7;
  --bg-dark: #78350F;
  --surface: #FFFFFF;
  --surface-2: #FEF9EF;
  --border: #FDE68A;
  --border-light: #FEF3C7;
  --text: #451A03;
  --text-light: #92400E;
  --text-lighter: #B45309;
}

/* ============================================================
   THEME: Ocean (deep blue/cyan)
   ============================================================ */
[data-theme="ocean"] {
  --primary: #06B6D4;
  --primary-light: #22D3EE;
  --primary-dark: #0891B2;
  --primary-50: #0C1929;
  --primary-100: #0F2137;
  --accent: #8B5CF6;
  --accent-light: #A78BFA;
  --bg: #0B1120;
  --bg-dark: #060D19;
  --surface: #111B2E;
  --surface-2: #162032;
  --border: #1E3A5F;
  --border-light: #1A2D4A;
  --text: #E2E8F0;
  --text-light: #94A3B8;
  --text-lighter: #64748B;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
  --shadow: 0 1px 3px rgba(0,0,0,.4), 0 1px 2px rgba(0,0,0,.3);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.4), 0 2px 4px -2px rgba(0,0,0,.3);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.4), 0 4px 6px -4px rgba(0,0,0,.3);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.4), 0 8px 10px -6px rgba(0,0,0,.3);
}
[data-theme="ocean"] a { color: var(--primary-light); }
[data-theme="ocean"] a:hover { color: var(--primary); }

/* ============================================================
   THEME: Dark (near-black/violet)
   ============================================================ */
[data-theme="dark"] {
  --primary: #529AE8;
  --primary-light: #7CB4EE;
  --primary-dark: #2383E2;
  --primary-50: #1E2733;
  --primary-100: #23303F;
  --accent: #5EB7D6;
  --accent-light: #86CBE3;
  --bg: #191919;            /* Notion dark canvas */
  --bg-dark: #131313;
  --surface: #202020;
  --surface-2: #2B2B2B;
  --border: #373737;
  --border-light: #2E2E2E;
  --text: #EBEBEA;
  --text-light: #9B9B99;
  --text-lighter: #6F6F6D;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow: 0 1px 3px rgba(0,0,0,.5), 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.5), 0 2px 4px -2px rgba(0,0,0,.4);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.5), 0 4px 6px -4px rgba(0,0,0,.4);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.5), 0 8px 10px -6px rgba(0,0,0,.4);
}
[data-theme="dark"] a { color: var(--primary-light); }
[data-theme="dark"] a:hover { color: var(--primary); }

/* ============================================================
   THEME: Custom (user picks primary color - base overrides set by JS)
   ============================================================ */
[data-theme="custom"] {
  /* Primary colors set dynamically via JS style properties */
}

/* ============================================================
   THEME SWITCHER UI
   ============================================================ */
.theme-switcher {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 9990;
}

.theme-toggle-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle-btn:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-xl);
}

.theme-panel {
  position: absolute;
  bottom: 60px;
  left: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  min-width: 200px;
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.95);
  transition: all 0.25s ease;
}

.theme-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.theme-panel-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.theme-options {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.theme-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: none;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-option:hover {
  background: var(--surface-2);
}

.theme-option.active {
  border-color: var(--primary);
  background: var(--primary-50);
}

.theme-swatch {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.1);
}

.theme-custom-picker {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.theme-custom-picker label {
  font-size: 0.8rem;
  color: var(--text-light);
  white-space: nowrap;
}

.theme-custom-picker input[type="color"] {
  width: 36px;
  height: 30px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
  background: none;
}

/* Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
button { font-family: var(--font); cursor: pointer; }
input, select, textarea { font-family: var(--font); }

/* Container */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================================
   COOKIE CONSENT BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--bg-dark);
  color: #fff;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 -4px 20px rgba(0,0,0,.3);
  animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.cookie-content {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-text {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex: 1;
}

.cookie-text > i {
  font-size: 1.75rem;
  color: var(--warning);
  flex-shrink: 0;
  margin-top: .2rem;
}

.cookie-text strong {
  display: block;
  margin-bottom: .25rem;
  font-size: 1rem;
}

.cookie-text p {
  font-size: .875rem;
  color: #CBD5E1;
  line-height: 1.5;
}

.cookie-text a {
  color: var(--accent-light);
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: .75rem;
  flex-shrink: 0;
}

.btn-cookie {
  padding: .625rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .875rem;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-cookie-primary {
  background: var(--primary);
  color: #fff;
}

.btn-cookie-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-cookie-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid #475569;
}

.btn-cookie-secondary:hover {
  background: #1E293B;
  border-color: #64748B;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: var(--bg-dark);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(12px);
}

.header-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  color: #fff;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-name {
  font-weight: 700;
  font-size: .95rem;
}

.logo-sub {
  font-size: .75rem;
  color: var(--text-lighter);
  font-weight: 400;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: .25rem;
}

.main-nav a {
  color: #CBD5E1;
  padding: .5rem .875rem;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 500;
  transition: all var(--transition);
  display: block;
}

.main-nav a:hover,
.main-nav a.active {
  color: #fff;
  background: rgba(255,255,255,.1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.btn-header {
  padding: .5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: .8rem;
  font-weight: 600;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: .4rem;
}

.btn-upgrade {
  background: linear-gradient(135deg, var(--primary), #9333EA);
  color: #fff;
  border: none;
}

.btn-upgrade:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(124,58,237,.4);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: all .3s ease;
}

.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================================
   AD SPOTS
   ============================================================ */
.ad-spot {
  text-align: center;
}

.ad-placeholder {
  background: var(--surface-2);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  color: var(--text-lighter);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.ad-banner-top,
.ad-banner-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding: .75rem 1.5rem;
}

.ad-banner-top .ad-placeholder,
.ad-banner-mid .ad-placeholder,
.ad-banner-bottom .ad-placeholder {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-sidebar .ad-placeholder {
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.premium .ad-spot { display: none !important; }

/* ============================================================
   HERO MINI
   ============================================================ */
.hero-mini {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #1E1B4B 100%);
  color: #fff;
  padding: 2.5rem 0 2rem;
  text-align: center;
}

.hero-mini h1 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: .5rem;
  background: linear-gradient(135deg, #fff 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: #CBD5E1;
  max-width: 600px;
  margin: 0 auto .75rem;
}

.hero-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .375rem .875rem;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 500;
  color: #E2E8F0;
  backdrop-filter: blur(8px);
}

.badge i {
  color: var(--success);
  font-size: .75rem;
}

/* ============================================================
   QR TYPE SELECTOR
   ============================================================ */
.qr-types-section {
  padding: 1.5rem 1.5rem .5rem;
}

.qr-types-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: .75rem;
}

.qr-types-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
}

.type-search {
  position: relative;
}

.type-search i {
  position: absolute;
  left: .75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-lighter);
  font-size: .8rem;
}

.type-search input {
  padding: .5rem .75rem .5rem 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .8rem;
  width: 200px;
  background: var(--surface);
  transition: all var(--transition);
}

.type-search input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-50);
}

.qr-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: .5rem;
}

.qr-type-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  padding: .75rem .5rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text-light);
  font-size: .7rem;
  font-weight: 600;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.qr-type-btn i {
  font-size: 1.25rem;
  transition: transform var(--transition);
}

.qr-type-btn:hover {
  border-color: var(--primary-light);
  color: var(--primary);
  background: var(--primary-50);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.qr-type-btn:hover i {
  transform: scale(1.15);
}

.qr-type-btn.active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-50);
  box-shadow: 0 0 0 3px var(--primary-100);
}

.qr-type-btn.hidden {
  display: none;
}

/* ============================================================
   MAIN GENERATOR LAYOUT
   ============================================================ */
.generator-main {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 1.5rem;
  padding-top: 1.5rem;
  padding-bottom: 2rem;
  align-items: start;
}

.form-card,
.preview-card,
.history-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

/* Form Card */
.form-header {
  margin-bottom: 1.25rem;
}

.form-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--text);
}

.form-header h2 i {
  color: var(--primary);
}

.type-explanation {
  font-size: .875rem;
  color: var(--text-light);
  margin-top: .25rem;
}

/* Static/Dynamic Toggle */
.qr-mode-toggle {
  display: flex;
  gap: .5rem;
  margin-bottom: 1rem;
  background: var(--surface-2);
  padding: .25rem;
  border-radius: var(--radius-sm);
}

.toggle-option {
  flex: 1;
  text-align: center;
  cursor: pointer;
}

.toggle-option input { display: none; }

.toggle-option span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .5rem;
  border-radius: 5px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-light);
  transition: all var(--transition);
}

.toggle-option.active span,
.toggle-option input:checked + span {
  background: var(--surface);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.dynamic-info {
  margin-bottom: 1rem;
}

.info-box {
  display: flex;
  gap: .75rem;
  padding: 1rem;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: var(--radius);
  font-size: .85rem;
}

.info-box > i { color: #3B82F6; margin-top: .15rem; flex-shrink: 0; }
.info-box strong { display: block; margin-bottom: .25rem; }
.info-box ul { margin: .35rem 0; padding-left: 1.25rem; }
.info-box li { margin-bottom: .15rem; }
.info-box small { color: var(--text-light); }

/* Form Sections */
.qr-form-section {
  margin-bottom: 1rem;
  animation: fadeIn .3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.qr-form-section label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .35rem;
}

.qr-form-section input[type="text"],
.qr-form-section input[type="url"],
.qr-form-section input[type="email"],
.qr-form-section input[type="tel"],
.qr-form-section input[type="date"],
.qr-form-section input[type="datetime-local"],
.qr-form-section textarea,
.qr-form-section select {
  width: 100%;
  padding: .625rem .75rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .875rem;
  color: var(--text);
  background: var(--surface);
  transition: all var(--transition);
  margin-bottom: .5rem;
}

.qr-form-section input:focus,
.qr-form-section textarea:focus,
.qr-form-section select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-50);
}

.qr-form-section textarea {
  resize: vertical;
  min-height: 80px;
}

.qr-form-section small {
  font-size: .75rem;
  color: var(--text-lighter);
}

.input-group {
  position: relative;
}

.input-group .input-icon {
  position: absolute;
  left: .75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-lighter);
  font-size: .9rem;
  z-index: 1;
}

.input-group input {
  padding-left: 2.5rem !important;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}

.char-count {
  display: block;
  text-align: right;
  font-size: .75rem;
  color: var(--text-lighter);
  margin-top: -.25rem;
}

.checkbox-label {
  display: flex !important;
  align-items: center;
  gap: .5rem;
  font-weight: 500 !important;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: auto !important;
  margin: 0 !important;
}

/* ============================================================
   CUSTOMIZATION SECTION
   ============================================================ */
.customization-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.customization-section h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.customization-section h3 i {
  color: var(--primary);
}

.custom-group {
  margin-bottom: 1rem;
}

.custom-group > label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  margin-bottom: .4rem;
  color: var(--text);
}

.custom-group select {
  width: 100%;
  padding: .625rem .75rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .875rem;
  background: var(--surface);
  transition: all var(--transition);
}

.custom-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-50);
}

/* Shape Selector */
.shape-selector {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

.shape-btn {
  width: 44px;
  height: 44px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  color: var(--text-light);
}

.shape-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.shape-btn:hover {
  border-color: var(--primary-light);
  color: var(--primary);
}

.shape-btn.active {
  border-color: var(--primary);
  background: var(--primary-50);
  color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-100);
}

/* Color Mode Tabs */
.color-mode-tabs {
  display: flex;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: .2rem;
  gap: .25rem;
}

.color-tab {
  flex: 1;
  padding: .45rem .75rem;
  border: none;
  border-radius: 4px;
  background: transparent;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-light);
  transition: all var(--transition);
}

.color-tab:hover { color: var(--text); }

.color-tab.active {
  background: var(--surface);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* Color Fields */
.color-fields {
  margin-top: .75rem;
}

.color-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.color-pick {
  flex: 1;
  min-width: 100px;
}

.color-pick label {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  margin-bottom: .3rem;
  color: var(--text-light);
}

.color-input-wrap {
  display: flex;
  align-items: center;
  gap: .5rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .3rem .5rem;
  background: var(--surface);
}

.color-input-wrap input[type="color"] {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 4px;
  padding: 0;
  cursor: pointer;
  background: none;
  -webkit-appearance: none;
}

.color-input-wrap input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.color-input-wrap input[type="color"]::-webkit-color-swatch { border: 1px solid var(--border); border-radius: 4px; }

.color-hex {
  font-size: .75rem;
  font-family: monospace;
  color: var(--text-light);
}

.btn-random {
  width: 100%;
  padding: .5rem;
  margin-top: .75rem;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-light);
  font-size: .8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  transition: all var(--transition);
}

.btn-random:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-50);
}

/* File Upload */
.file-upload-area {
  position: relative;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
  overflow: hidden;
}

.file-upload-area:hover,
.file-upload-area.dragover {
  border-color: var(--primary);
  background: var(--primary-50);
}

.file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.file-upload-content {
  padding: 1.5rem;
  text-align: center;
  color: var(--text-lighter);
}

.file-upload-content i {
  font-size: 1.75rem;
  margin-bottom: .5rem;
  display: block;
  color: var(--primary-light);
}

.file-upload-content span {
  font-size: .8rem;
}

.file-preview {
  position: relative;
  padding: .75rem;
  text-align: center;
}

.file-preview img {
  max-height: 60px;
  border-radius: 4px;
}

.remove-file {
  position: absolute;
  top: .5rem;
  right: .5rem;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;
  background: var(--danger);
  color: #fff;
  font-size: .7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: all var(--transition);
}

.remove-file:hover { transform: scale(1.1); }

.input-row {
  display: flex;
  gap: .5rem;
  align-items: flex-end;
}

.input-row input[type="text"] {
  flex: 1;
  padding: .625rem .75rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .875rem;
  transition: all var(--transition);
}

.input-row input[type="text"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-50);
}

.input-row input[type="color"] {
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 2px;
  cursor: pointer;
  flex-shrink: 0;
}

.btn-icon {
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
}

.btn-icon:hover {
  border-color: var(--danger);
  color: var(--danger);
}

/* ============================================================
   FORM ACTIONS
   ============================================================ */
.form-actions {
  display: flex;
  gap: .75rem;
  margin-top: 1.5rem;
}

.btn-action {
  padding: .75rem 1.25rem;
  border: none;
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: .5rem;
  transition: all var(--transition);
}

.btn-reset {
  background: var(--surface-2);
  color: var(--text-light);
  border: 1px solid var(--border);
}

.btn-reset:hover {
  background: var(--border-light);
  color: var(--text);
}

.btn-generate {
  flex: 1;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), #9333EA);
  color: #fff;
  box-shadow: 0 4px 14px rgba(124,58,237,.35);
}

.btn-generate:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124,58,237,.45);
}

.btn-generate:active {
  transform: translateY(0);
}

/* Ripple Effect */
.btn-generate .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
  transform: scale(0);
  animation: ripple .6s linear;
  pointer-events: none;
}

@keyframes ripple {
  to { transform: scale(4); opacity: 0; }
}

/* ============================================================
   PREVIEW CARD
   ============================================================ */
.sticky-preview {
  position: sticky;
  top: 80px;
}

.preview-card h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
}

.preview-container {
  background: #fff;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  margin-bottom: .75rem;
  transition: all var(--transition);
}

.preview-container.generating {
  animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .7; }
}

#qrCodePreview {
  max-width: 280px;
  width: 100%;
}

#qrCodePreview canvas,
#qrCodePreview svg {
  max-width: 100% !important;
  height: auto !important;
}

.preview-hint {
  text-align: center;
  font-size: .75rem;
  color: var(--text-lighter);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  margin-bottom: 1rem;
}

/* Download Section */
.download-section {
  margin-bottom: 1rem;
}

.download-section h3 {
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: .5rem;
  color: var(--text-light);
}

.download-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: .5rem;
}

.btn-download {
  padding: .6rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: .8rem;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  transition: all var(--transition);
  position: relative;
}

.btn-download i { font-size: 1.1rem; color: var(--primary); }

.btn-download:hover {
  border-color: var(--primary);
  background: var(--primary-50);
  transform: translateY(-2px);
}

.btn-pro-feature { position: relative; }

.pro-badge {
  font-size: .55rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), #9333EA);
  color: #fff;
  padding: .1rem .35rem;
  border-radius: 3px;
  position: absolute;
  top: .25rem;
  right: .25rem;
}

/* Quick Actions */
.quick-actions {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-bottom: 1rem;
}

.btn-quick {
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-light);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.btn-quick:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-50);
  transform: translateY(-2px);
}

/* ============================================================
   HISTORY
   ============================================================ */
.history-card {
  margin-top: 1rem;
}

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .75rem;
}

.history-header h3 {
  font-size: .9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: .4rem;
}

.history-header h3 i { color: var(--primary); }

.btn-text {
  background: none;
  border: none;
  color: var(--text-lighter);
  font-size: .75rem;
  font-weight: 500;
  transition: color var(--transition);
}

.btn-text:hover { color: var(--danger); }

.history-list { max-height: 300px; overflow-y: auto; }

.history-empty {
  text-align: center;
  color: var(--text-lighter);
  font-size: .8rem;
  padding: 1.5rem;
}

.history-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .625rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
  cursor: pointer;
}

.history-item:hover { background: var(--surface-2); }

.history-item canvas,
.history-item img {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  flex-shrink: 0;
}

.history-item-info {
  flex: 1;
  min-width: 0;
}

.history-item-type {
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--primary);
}

.history-item-data {
  font-size: .75rem;
  color: var(--text-light);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============================================================
   FEATURES SECTION
   ============================================================ */
.features-section {
  padding: 4rem 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: .5rem;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.feature-card {
  text-align: center;
  padding: 1.75rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  transition: all .3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-100);
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  background: var(--primary-50);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--primary);
  transition: all .3s ease;
}

.feature-card:hover .feature-icon {
  background: var(--primary);
  color: #fff;
  transform: scale(1.05);
}

.feature-card h3 {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: .4rem;
}

.feature-card p {
  font-size: .8rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-it-works {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--bg-dark) 0%, #1E1B4B 100%);
  color: #fff;
}

.how-it-works .section-header h2 { color: #fff; }
.how-it-works .section-header p { color: #94A3B8; }

.steps-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.step-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  flex: 1;
  max-width: 300px;
  position: relative;
  transition: all .3s ease;
  backdrop-filter: blur(8px);
}

.step-card:hover {
  background: rgba(255,255,255,.1);
  transform: translateY(-4px);
}

.step-number {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  background: var(--primary);
  border-radius: 50%;
  font-size: .8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-light);
}

.step-card h3 {
  font-size: 1.1rem;
  margin-bottom: .5rem;
}

.step-card p {
  font-size: .85rem;
  color: #94A3B8;
  line-height: 1.5;
}

.step-arrow {
  font-size: 1.25rem;
  color: var(--primary-light);
  flex-shrink: 0;
}

/* ============================================================
   PRICING
   ============================================================ */
.pricing-preview {
  padding: 4rem 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  transition: all .3s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.pricing-popular {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-100);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), #9333EA);
  color: #fff;
  padding: .3rem 1rem;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  white-space: nowrap;
}

.pricing-header {
  margin-bottom: 1.5rem;
}

.pricing-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: .5rem;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: .25rem;
}

.price-amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text);
}

.price-period {
  font-size: .9rem;
  color: var(--text-light);
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 1.5rem;
}

.pricing-features li {
  padding: .4rem 0;
  font-size: .85rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--text);
}

.pricing-features li i {
  font-size: .75rem;
  color: var(--success);
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.pricing-features .feature-disabled {
  color: var(--text-lighter);
}

.pricing-features .feature-disabled i {
  color: var(--text-lighter);
}

.btn-pricing {
  display: block;
  width: 100%;
  padding: .75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .9rem;
  text-align: center;
  transition: all var(--transition);
}

.btn-pricing-free {
  background: var(--surface-2);
  color: var(--text-light);
}

.btn-pricing-pro {
  background: linear-gradient(135deg, var(--primary), #9333EA);
  color: #fff;
  box-shadow: 0 4px 14px rgba(124,58,237,.3);
}

.btn-pricing-pro:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124,58,237,.45);
}

.btn-pricing-biz {
  background: var(--bg-dark);
  color: #fff;
}

.btn-pricing-biz:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-section {
  padding: 4rem 0;
  background: var(--bg);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: .75rem;
  overflow: hidden;
  background: var(--surface);
  transition: all var(--transition);
}

.faq-item:hover { border-color: var(--primary-light); }

.faq-question {
  width: 100%;
  padding: 1rem 1.25rem;
  border: none;
  background: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.faq-question i {
  font-size: .75rem;
  color: var(--text-lighter);
  transition: transform .3s ease;
  flex-shrink: 0;
  margin-left: .75rem;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding: 0 1.25rem 1rem;
  font-size: .875rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-dark);
  color: #CBD5E1;
  padding: 3rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: .75rem;
}

.footer-logo i { color: var(--primary-light); }

.footer-brand p {
  font-size: .85rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  color: #94A3B8;
}

.footer-social {
  display: flex;
  gap: .5rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94A3B8;
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.footer-links h4 {
  font-size: .85rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .75rem;
}

.footer-links ul { list-style: none; }

.footer-links li { margin-bottom: .4rem; }

.footer-links a {
  color: #94A3B8;
  font-size: .85rem;
  transition: color var(--transition);
}

.footer-links a:hover { color: #fff; }

.footer-bottom {
  padding: 1.25rem 0;
  text-align: center;
  font-size: .8rem;
  color: #64748B;
}

.footer-note {
  margin-top: .25rem;
  font-size: .75rem;
  color: #475569;
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all .3s ease;
  z-index: 100;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* ============================================================
   MODAL
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalIn .3s ease;
}

@keyframes modalIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-xl);
  animation: modalContentIn .4s ease;
}

@keyframes modalContentIn {
  from { transform: scale(.9) translateY(20px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.modal-close:hover { background: var(--border); }

.modal-icon {
  font-size: 2.5rem;
  color: var(--warning);
  margin-bottom: 1rem;
}

.modal-content h2 {
  font-size: 1.3rem;
  margin-bottom: .5rem;
}

.modal-content > p {
  color: var(--text-light);
  font-size: .9rem;
  margin-bottom: 1.25rem;
}

.modal-features {
  list-style: none;
  text-align: left;
  margin-bottom: 1.5rem;
}

.modal-features li {
  padding: .35rem 0;
  font-size: .85rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.modal-features i { color: var(--success); font-size: .75rem; }

.btn-modal-upgrade {
  display: block;
  width: 100%;
  padding: .75rem;
  background: linear-gradient(135deg, var(--primary), #9333EA);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 600;
  margin-bottom: .75rem;
  transition: all var(--transition);
}

.btn-modal-upgrade:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(124,58,237,.4);
}

.btn-modal-dismiss {
  background: none;
  border: none;
  color: var(--text-lighter);
  font-size: .85rem;
  transition: color var(--transition);
}

.btn-modal-dismiss:hover { color: var(--text); }

/* ============================================================
   TOAST NOTIFICATION
   ============================================================ */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-dark);
  color: #fff;
  padding: .75rem 1.5rem;
  border-radius: var(--radius);
  font-size: .85rem;
  font-weight: 500;
  box-shadow: var(--shadow-xl);
  z-index: 10001;
  opacity: 0;
  transition: all .3s ease;
  white-space: nowrap;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */
@media (max-width: 1024px) {
  .generator-main {
    grid-template-columns: 1fr;
  }

  .sticky-preview {
    position: static;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero-mini h1 { font-size: 1.6rem; }
  .hero-subtitle { font-size: .95rem; }

  .main-nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 1rem;
    transform: translateY(-110%);
    transition: transform .3s ease;
    z-index: 999;
  }

  .main-nav.open { transform: translateY(0); }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav a {
    padding: .75rem;
    border-radius: var(--radius-sm);
  }

  .mobile-menu-btn { display: flex; }

  .qr-type-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: .35rem;
  }

  .qr-type-btn {
    padding: .6rem .3rem;
    font-size: .65rem;
  }

  .qr-type-btn i { font-size: 1rem; }

  .form-row {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    flex-direction: column;
  }

  .step-arrow {
    transform: rotate(90deg);
  }

  .step-card { max-width: 100%; }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-header h2 { font-size: 1.4rem; }

  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-text {
    flex-direction: column;
    align-items: center;
  }

  .cookie-buttons {
    width: 100%;
    justify-content: center;
  }

  .download-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .header-container { padding: 0 1rem; }
  .container { padding: 0 1rem; }
  .hero-mini { padding: 1.75rem 0 1.5rem; }
  .hero-mini h1 { font-size: 1.4rem; }
  .hero-badges { gap: .5rem; }
  .badge { font-size: .7rem; padding: .3rem .6rem; }
  .logo-text { display: none; }
  .btn-header { font-size: .75rem; padding: .4rem .75rem; }
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   PAGE TEMPLATES (for secondary pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #1E1B4B 100%);
  color: #fff;
  padding: 3rem 0;
  text-align: center;
}

.page-hero h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: .5rem;
}

.page-hero p {
  color: #94A3B8;
  font-size: 1.05rem;
}

.page-content {
  padding: 3rem 0;
}

.page-content .container {
  max-width: 800px;
}

.page-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 2rem 0 .75rem;
  color: var(--text);
}

.page-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.5rem 0 .5rem;
}

.page-content p {
  margin-bottom: 1rem;
  line-height: 1.8;
  color: var(--text-light);
}

.page-content ul, .page-content ol {
  margin: .75rem 0 1rem 1.5rem;
  color: var(--text-light);
}

.page-content li {
  margin-bottom: .5rem;
  line-height: 1.6;
}

.page-content a {
  color: var(--primary);
  text-decoration: underline;
}

/* Contact Form */
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 600px;
  margin: 0 auto;
}

.contact-form label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: .35rem;
  color: var(--text);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  margin-bottom: 1rem;
  font-family: var(--font);
  transition: all var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-50);
}

.contact-form textarea { min-height: 150px; resize: vertical; }

.contact-form button[type="submit"] {
  width: 100%;
  padding: .875rem;
  background: linear-gradient(135deg, var(--primary), #9333EA);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.contact-form button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124,58,237,.4);
}

/* Pricing Page */
.pricing-toggle {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-bottom: 2rem;
}

.pricing-toggle button {
  padding: .5rem 1.25rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-weight: 600;
  font-size: .85rem;
  color: var(--text-light);
  transition: all var(--transition);
}

.pricing-toggle button.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Blog Cards */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all .3s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.blog-card-img {
  height: 180px;
  background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--primary-light);
}

.blog-card-body {
  padding: 1.25rem;
}

.blog-card-tag {
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: .4rem;
}

.blog-card-body h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .4rem;
  line-height: 1.4;
}

.blog-card-body p {
  font-size: .8rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* FAQ Page - Full page version */
.faq-page .faq-list {
  max-width: 100%;
}

/* Utility */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

/* ============================================================
   UI/UX ENHANCEMENTS - Animated Hero, Glassmorphism, etc.
   ============================================================ */

/* Animated gradient hero */
.hero-mini {
  background: linear-gradient(-45deg, #7C3AED, #06B6D4, #10B981, #7C3AED);
  background-size: 300% 300%;
  animation: heroGradient 8s ease infinite;
}

@keyframes heroGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Glassmorphism form card */
.form-card {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.3);
}

[data-theme="dark"] .form-card,
[data-theme="ocean"] .form-card {
  background: rgba(30,30,30,0.85);
  border: 1px solid rgba(255,255,255,0.1);
}

/* Card hover lift */
.feature-card,
.pricing-card,
.blog-card,
.step-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover,
.pricing-card:hover,
.step-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

/* Input focus glow */
input:focus,
select:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(124,58,237,0.15);
}

[data-theme="sunset"] input:focus,
[data-theme="sunset"] select:focus,
[data-theme="sunset"] textarea:focus {
  box-shadow: 0 0 0 3px rgba(217,119,6,0.15);
}

[data-theme="ocean"] input:focus,
[data-theme="ocean"] select:focus,
[data-theme="ocean"] textarea:focus {
  box-shadow: 0 0 0 3px rgba(6,182,212,0.15);
}

/* Staggered entrance animations for QR type grid */
.qr-type-btn {
  opacity: 0;
  animation: fadeInUp 0.4s ease forwards;
}

.qr-type-btn:nth-child(1) { animation-delay: 0.02s; }
.qr-type-btn:nth-child(2) { animation-delay: 0.04s; }
.qr-type-btn:nth-child(3) { animation-delay: 0.06s; }
.qr-type-btn:nth-child(4) { animation-delay: 0.08s; }
.qr-type-btn:nth-child(5) { animation-delay: 0.1s; }
.qr-type-btn:nth-child(6) { animation-delay: 0.12s; }
.qr-type-btn:nth-child(7) { animation-delay: 0.14s; }
.qr-type-btn:nth-child(8) { animation-delay: 0.16s; }
.qr-type-btn:nth-child(9) { animation-delay: 0.18s; }
.qr-type-btn:nth-child(10) { animation-delay: 0.2s; }
.qr-type-btn:nth-child(n+11) { animation-delay: 0.22s; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Button press feedback */
.btn-action:active,
.btn-download:active,
.btn-quick:active,
.qr-type-btn:active {
  transform: scale(0.96);
}

/* Loading skeleton state */
.generating::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(124,58,237,0.1), transparent);
  animation: shimmer 1.5s infinite;
  border-radius: inherit;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Enhanced toast */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--bg-dark);
  color: #fff;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 99999;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(.4,0,.2,1);
  box-shadow: var(--shadow-xl);
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Skip to content (accessibility) */
.skip-to-content {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 100000;
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition: top 0.3s;
  text-decoration: none;
}

.skip-to-content:focus {
  top: 1rem;
}

/* Range slider */
.range-slider {
  width: 100%;
  height: 6px;
  appearance: none;
  -webkit-appearance: none;
  background: var(--border);
  border-radius: 3px;
  outline: none;
}

.range-slider::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* ============================================================
   TEMPLATES SECTION
   ============================================================ */
.templates-section {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.templates-section h3 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.template-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-light);
}

.template-btn:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.template-preview {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1);
}

/* ============================================================
   SCANNER MODAL
   ============================================================ */
.modal-lg {
  max-width: 550px;
  width: 90%;
}

.modal-subtitle {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.scanner-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.scanner-tab {
  flex: 1;
  padding: 0.6rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text);
}

.scanner-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.scanner-camera-view {
  position: relative;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.scanner-camera-view video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scanner-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scanner-frame {
  width: 200px;
  height: 200px;
  border: 3px solid var(--primary);
  border-radius: var(--radius);
  box-shadow: 0 0 0 9999px rgba(0,0,0,0.4);
  animation: scanPulse 2s ease-in-out infinite;
}

@keyframes scanPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.scanner-result {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--surface-2);
  border-radius: var(--radius);
}

.scanner-result label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.35rem;
  display: block;
}

.scanner-result-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  word-break: break-all;
  font-size: 0.85rem;
}

.scanner-result-box span {
  flex: 1;
}

/* ============================================================
   FULLSCREEN MODAL
   ============================================================ */
.modal-fullscreen {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
}

.fullscreen-qr {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

/* ============================================================
   BATCH GENERATION
   ============================================================ */
#batchInput {
  width: 100%;
  padding: 0.75rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.85rem;
  resize: vertical;
  background: var(--surface);
  color: var(--text);
}

.batch-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.75rem;
}

#batchCount {
  font-size: 0.8rem;
  color: var(--text-light);
}

.batch-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
  max-height: 400px;
  overflow-y: auto;
}

.batch-item {
  text-align: center;
  padding: 0.75rem;
  background: var(--surface-2);
  border-radius: var(--radius);
}

.batch-qr {
  display: flex;
  justify-content: center;
}

.batch-url {
  font-size: 0.7rem;
  color: var(--text-light);
  margin-top: 0.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============================================================
   AUTH MODAL
   ============================================================ */
.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 1.25rem;
  border-bottom: 2px solid var(--border);
}

.auth-tab {
  flex: 1;
  padding: 0.65rem;
  border: none;
  background: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.2s;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}

.auth-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.auth-form .input-group {
  margin-bottom: 0.75rem;
}

.auth-divider {
  text-align: center;
  margin: 1rem 0;
  position: relative;
}

.auth-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--border);
}

.auth-divider span {
  position: relative;
  background: var(--surface);
  padding: 0 0.75rem;
  font-size: 0.8rem;
  color: var(--text-lighter);
}

.btn-google {
  width: 100%;
  padding: 0.75rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s;
}

.btn-google:hover {
  background: var(--surface-2);
  border-color: var(--primary);
}

.btn-google i {
  font-size: 1.1rem;
  color: #4285F4;
}

.auth-error {
  margin-top: 0.75rem;
  padding: 0.65rem 0.75rem;
  background: rgba(239,68,68,0.1);
  color: #EF4444;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
}

/* Auth button in header */
.btn-auth {
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 0.45rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-auth:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ============================================================
   MICRO-INTERACTIONS
   ============================================================ */

/* Smooth QR preview hover */
#previewBox:hover #qrCodePreview {
  transform: scale(1.02);
  transition: transform 0.3s ease;
}

/* Button icon animation */
.btn-quick:hover i {
  transform: scale(1.15);
  transition: transform 0.2s ease;
}

/* QR type button hover glow */
.qr-type-btn:hover {
  box-shadow: 0 0 12px rgba(124,58,237,0.15);
}

[data-theme="sunset"] .qr-type-btn:hover {
  box-shadow: 0 0 12px rgba(217,119,6,0.15);
}

[data-theme="ocean"] .qr-type-btn:hover {
  box-shadow: 0 0 12px rgba(6,182,212,0.15);
}

[data-theme="dark"] .qr-type-btn:hover {
  box-shadow: 0 0 12px rgba(167,139,250,0.2);
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Enhanced link transitions across themes */
[data-theme="ocean"] .btn-header,
[data-theme="dark"] .btn-header {
  color: var(--text);
}

[data-theme="ocean"] .site-header,
[data-theme="dark"] .site-header {
  background: var(--surface);
  border-bottom-color: var(--border);
}

[data-theme="ocean"] .cookie-banner,
[data-theme="dark"] .cookie-banner {
  background: var(--surface);
}

/* Dark/Ocean theme fixes for readable text */
[data-theme="ocean"] .hero-mini,
[data-theme="dark"] .hero-mini {
  color: #fff;
}

[data-theme="ocean"] .pricing-card,
[data-theme="dark"] .pricing-card {
  background: var(--surface);
  border-color: var(--border);
}

[data-theme="ocean"] .contact-form,
[data-theme="dark"] .contact-form {
  background: var(--surface);
}

[data-theme="ocean"] .contact-form input,
[data-theme="ocean"] .contact-form textarea,
[data-theme="ocean"] .contact-form select,
[data-theme="dark"] .contact-form input,
[data-theme="dark"] .contact-form textarea,
[data-theme="dark"] .contact-form select {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border);
}

[data-theme="ocean"] .modal-content,
[data-theme="dark"] .modal-content {
  background: var(--surface);
  color: var(--text);
}

[data-theme="ocean"] #batchInput,
[data-theme="dark"] #batchInput {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border);
}

/* ============================================================
   NOTION-INSPIRED REFRESH LAYER  (appended — wins the cascade)
   Flat surfaces · hairline borders · warm neutrals · calm accent
   ============================================================ */

/* ---- Base / typography ---- */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5 {
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.021em;
  line-height: 1.2;
}
a { color: var(--primary); }
a:hover { color: var(--primary-dark); }
::selection { background: rgba(35,131,226,.18); }

/* ---- Header ---- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: none;
  backdrop-filter: saturate(1.1) blur(6px);
}
.logo-icon {
  background: var(--text);
  color: #fff;
  border-radius: var(--radius-sm);
  box-shadow: none;
}
.logo-name { color: var(--text); font-weight: 700; letter-spacing: -0.02em; }
.logo-sub  { color: var(--text-light); font-weight: 500; }

.main-nav a {
  color: var(--text-light);
  font-weight: 500;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.main-nav a:hover { color: var(--text); background: rgba(55,53,47,.06); text-decoration: none; }
.main-nav a.active { color: var(--text); font-weight: 600; background: rgba(55,53,47,.05); }

.btn-header { border-radius: var(--radius-sm); font-weight: 500; box-shadow: none; }
.btn-auth { background: transparent; color: var(--text-light); border: 1px solid transparent; }
.btn-auth:hover { background: rgba(55,53,47,.06); color: var(--text); }
.btn-upgrade { background: var(--primary); color: #fff; border: 1px solid var(--primary); }
.btn-upgrade:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.mobile-menu-btn span { background: var(--text); }

/* ---- Hero ---- */
.hero-mini {
  background: var(--surface);
  background-image: none;
  border: none;
  text-align: center;
  padding: 3.5rem 1rem 2rem;
}
.hero-mini h1 {
  font-size: clamp(2.1rem, 5vw, 3.3rem);
  font-weight: 800;
  letter-spacing: -0.032em;
  line-height: 1.08;
  background: none;
  -webkit-text-fill-color: var(--text);
  color: var(--text);
}
.hero-mini h1 .accent, .hero-mini h1 em { color: var(--primary); -webkit-text-fill-color: var(--primary); font-style: normal; }

/* Mobile nav: clean light panel instead of dark slab; fully hidden until opened */
@media (max-width: 768px) {
  .main-nav {
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: none;
    box-shadow: var(--shadow-lg);
    transform: translateY(-150%);   /* was -110%: bottom item peeked & overlapped */
    pointer-events: none;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }
  .main-nav.open { transform: translateY(0); pointer-events: auto; }
  .main-nav a { color: var(--text); }
  .main-nav a:hover, .main-nav a.active { background: var(--surface-2); color: var(--text); }
}
.hero-subtitle {
  color: var(--text-light);
  font-size: 1.125rem;
  line-height: 1.6;
  max-width: 640px;
  margin: 1rem auto 0;
}
.hero-badges { margin-top: 1.75rem; gap: 0.5rem; flex-wrap: wrap; }
.badge {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-light);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-weight: 500;
  font-size: 0.85rem;
  box-shadow: none;
}
.badge i { color: var(--primary); }

/* ---- Buttons (generic) ---- */
.btn, button.btn, .btn-primary, .btn-secondary {
  border-radius: var(--radius-sm);
  font-weight: 500;
  box-shadow: none;
  transition: var(--transition);
}
.btn-primary { background: var(--primary); color: #fff; border: 1px solid var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--surface-2); }

/* ---- Cards (flat, hairline border, subtle lift) ---- */
[class*="-card"], .qr-type, .qr-type-btn, .plan, .pricing-card, .feature-card, .type-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: none;
  transition: var(--transition);
}
[class*="-card"]:hover, .qr-type:hover, .qr-type-btn:hover, .plan:hover, .type-card:hover {
  border-color: var(--text-lighter);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* ---- Form controls ---- */
input, select, textarea {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  transition: var(--transition);
}
input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-100);
  outline: none;
}

/* ---- Ads: quiet, non-intrusive ---- */
.ad-spot {
  background: var(--surface-2);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  box-shadow: none;
}
.ad-placeholder { color: var(--text-lighter); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; }

/* ---- Footer ---- */
.site-footer { background: var(--surface-2); border-top: 1px solid var(--border); color: var(--text-light); }
.footer-logo { color: var(--text); }
.footer-brand p { color: var(--text-light); }
.footer-links h4 { color: var(--text); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-links a { color: var(--text-light); }
.footer-links a:hover { color: var(--text); text-decoration: none; }
.footer-social a { background: var(--surface); border: 1px solid var(--border); color: var(--text-light); border-radius: var(--radius-sm); }
.footer-social a:hover { color: var(--primary); border-color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--border); color: var(--text-lighter); }
.footer-note { color: var(--text-lighter); }

/* ---- Misc ---- */
.back-to-top { background: var(--text); color: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow-md); }
.modal-content { border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: var(--shadow-xl); }
.btn-modal-upgrade { background: var(--primary); color: #fff; border-radius: var(--radius-sm); }
.btn-modal-upgrade:hover { background: var(--primary-dark); }
.modal-icon { color: var(--primary); }

/* Condensed horizontal footer on tablet/mobile — brand on top, link groups in columns */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem 1rem;
    padding-bottom: 1.5rem;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-social { margin-top: 0.5rem; }
  .footer-links li { margin-bottom: 0.3rem; }
  .footer-links a { font-size: 0.85rem; }
  .footer-bottom { flex-direction: column; gap: 0.35rem; text-align: center; }
}
@media (max-width: 420px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Subpage hero: Notion-light band (was dark indigo gradient) */
.page-hero {
  background: var(--surface-2);
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding: 3.25rem 0 2.75rem;
}
.page-hero h1 {
  color: var(--text);
  -webkit-text-fill-color: var(--text);
  background: none;
  letter-spacing: -0.03em;
}
.page-hero p { color: var(--text-light); }

/* SEO landing pages */
.page-content h2 { font-size: 1.4rem; letter-spacing: -0.02em; }
.seo-faq-item { padding: 1rem 0; border-bottom: 1px solid var(--border); }
.seo-faq-item h3 { font-size: 1.02rem; margin-bottom: 0.35rem; }
.seo-faq-item p { color: var(--text-light); line-height: 1.7; }
.seo-related { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.seo-related a {
  display: inline-block; padding: 0.45rem 0.85rem;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 999px; color: var(--text-light); font-size: 0.88rem;
}
.seo-related a:hover { color: var(--text); border-color: var(--text-lighter); text-decoration: none; }

/* Pricing: founder launch banner + monthly/annual toggle */
.founder-banner { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: center; background: linear-gradient(135deg, var(--primary-50), var(--surface)); border: 1px solid var(--primary); border-radius: var(--radius-lg); padding: 1.5rem 1.75rem; margin-bottom: 1.75rem; }
.founder-banner[hidden] { display: none; }
.founder-tag { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--primary); background: var(--primary-100); padding: .2rem .55rem; border-radius: 999px; margin-bottom: .5rem; }
.founder-banner h3 { font-size: 1.3rem; margin: 0 0 .3rem; color: var(--text); }
.founder-banner p { margin: 0; color: var(--text-light); font-size: .9rem; }
.founder-left { flex: 1; min-width: 250px; }
.founder-right { text-align: center; min-width: 190px; }
.founder-slots { font-size: .88rem; color: var(--text-light); margin-bottom: .4rem; }
.founder-slots strong { font-size: 1.4rem; color: var(--primary); }
.founder-bar { height: 8px; border-radius: 999px; background: var(--border); overflow: hidden; margin-bottom: .75rem; }
.founder-bar span { display: block; height: 100%; background: var(--primary); width: 0; transition: width .6s ease; }
.founder-closed { background: var(--surface-2); border-color: var(--border); }
.billing-toggle { display: flex; align-items: center; justify-content: center; gap: .75rem; margin-bottom: 2rem; }
.bt-label { font-size: .9rem; color: var(--text-light); font-weight: 500; }
.bt-label.bt-active { color: var(--text); font-weight: 600; }
.bt-save { font-size: .7rem; color: var(--success); background: rgba(15,123,108,.12); padding: .1rem .4rem; border-radius: 999px; margin-left: .25rem; }
.bt-switch { position: relative; width: 46px; height: 26px; border-radius: 999px; background: var(--primary); border: none; cursor: pointer; padding: 0; flex-shrink: 0; }
.bt-knob { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s ease; }
.bt-switch[aria-checked="true"] .bt-knob { transform: translateX(20px); }
