/* ============================================================
   INVOICE EAGLE — Premium Black & Gold Theme
   style.css
   ============================================================ */

:root {
  --black:        #080808;
  --black-2:      #111111;
  --black-3:      #1a1a1a;
  --black-4:      #222222;
  --black-5:      #2a2a2a;
  --gold:         #C9A84C;
  --gold-light:   #E8C96A;
  --gold-dark:    #A07830;
  --gold-subtle:  rgba(201,168,76,0.12);
  --gold-border:  rgba(201,168,76,0.25);
  --white:        #ffffff;
  --off-white:    #f8f6f0;
  --text-primary: #f0ead8;
  --text-muted:   #8a8070;
  --text-dim:     #5a5248;
  --success:      #4ade80;
  --font-display: 'Cormorant Garamond', serif;
  --font-body:    'Outfit', sans-serif;
  --radius:       10px;
  --radius-lg:    16px;
  --shadow-gold:  0 4px 24px rgba(201,168,76,0.15);
  --shadow-dark:  0 8px 32px rgba(0,0,0,0.4);
  --transition:   0.2s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- HEADER ---- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8,8,8,0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gold-border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  flex-shrink: 0;
}

.logo-icon { font-size: 1.5rem; }

.logo-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}

.logo-text strong { color: var(--gold); }

.nav {
  display: flex;
  gap: 1.8rem;
  margin-left: auto;
}

.nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color var(--transition);
}

.nav a:hover { color: var(--gold); }

.header-actions { display: flex; gap: 10px; align-items: center; }

.btn-signin {
  background: none;
  border: 1px solid var(--gold-border);
  border-radius: 8px;
  padding: 8px 18px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--transition);
}

.btn-signin:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-upgrade {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--black);
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.02em;
}

.btn-upgrade:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--gold-border);
  padding: 12px 24px 20px;
  gap: 4px;
}

.mobile-menu a {
  display: block;
  padding: 10px 0;
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  border-bottom: 1px solid rgba(201,168,76,0.1);
}

.mobile-menu.open { display: flex; }

/* ---- HERO ---- */
.hero {
  position: relative;
  padding: 110px 0 90px;
  overflow: hidden;
}

.hero-particles {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(201,168,76,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 80% 50%, rgba(201,168,76,0.04) 0%, transparent 60%);
  pointer-events: none;
}

/* Gold shimmer line at top */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.hero-inner {
  position: relative;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: var(--gold-subtle);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 100px;
  margin-bottom: 2rem;
  border: 1px solid var(--gold-border);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.hero-title em {
  font-style: italic;
  color: var(--gold);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--black);
  border: none;
  border-radius: 10px;
  padding: 15px 32px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(201,168,76,0.3);
  letter-spacing: 0.02em;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201,168,76,0.4);
}

.hero-note {
  color: var(--text-dim);
  font-size: 0.85rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat strong {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.stat span {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--gold-border);
}

/* ---- SECTION HEADER ---- */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 300;
}

/* ---- GENERATOR ---- */
.generator-section {
  background: var(--black-2);
  padding: 80px 0;
  border-top: 1px solid var(--gold-border);
  border-bottom: 1px solid var(--gold-border);
}

.invoice-usage-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--gold-subtle);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  padding: 12px 20px;
  margin-bottom: 28px;
  font-size: 0.875rem;
  font-weight: 500;
}

#usageText { color: var(--gold); }

.btn-upgrade-small {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--black);
  border: none;
  border-radius: 6px;
  padding: 7px 16px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-upgrade-small:hover { transform: translateY(-1px); box-shadow: var(--shadow-gold); }

.generator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

/* ---- FORM PANEL ---- */
.form-panel {
  background: var(--black-3);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--gold-border);
}

.form-section {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(201,168,76,0.1);
}

.form-section:last-of-type { border-bottom: none; }

.section-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gold-border);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.form-group:last-child { margin-bottom: 0; }

.form-group label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--black-4);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition), background var(--transition);
  resize: vertical;
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-dim); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  background: var(--black-5);
}

.form-group select option { background: var(--black-3); color: var(--text-primary); }

/* ---- LOGO UPLOAD ---- */
.logo-upload-area {
  border: 2px dashed var(--gold-border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  margin-bottom: 16px;
  transition: all var(--transition);
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-upload-area:hover {
  border-color: var(--gold);
  background: var(--gold-subtle);
}

#logoPlaceholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.upload-icon { font-size: 1.6rem; }

/* ---- LINE ITEMS ---- */
.line-items-header {
  display: grid;
  grid-template-columns: 1fr 65px 85px 85px 32px;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gold-border);
  margin-bottom: 10px;
}

.line-items-header span {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.line-item-row {
  display: grid;
  grid-template-columns: 1fr 65px 85px 85px 32px;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.line-item-row input {
  background: var(--black-4);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 6px;
  padding: 8px 10px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-primary);
  outline: none;
  width: 100%;
  transition: border-color var(--transition);
}

.line-item-row input::placeholder { color: var(--text-dim); }
.line-item-row input:focus { border-color: var(--gold); }

.item-total-display {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  text-align: right;
  padding-right: 4px;
}

.btn-remove-item {
  background: none;
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 6px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  color: var(--text-dim);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}

.btn-remove-item:hover {
  background: rgba(239,68,68,0.15);
  border-color: #ef4444;
  color: #ef4444;
}

.btn-add-item {
  background: none;
  border: 1px dashed var(--gold-border);
  color: var(--gold);
  border-radius: 8px;
  padding: 9px 18px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: all var(--transition);
  margin-top: 8px;
  letter-spacing: 0.02em;
}

.btn-add-item:hover { background: var(--gold-subtle); border-color: var(--gold); }

/* ---- ACTION BUTTONS ---- */
.action-buttons {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.btn-print, .btn-download {
  flex: 1;
  padding: 13px 16px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  letter-spacing: 0.02em;
}

.btn-print {
  background: var(--black-5);
  border: 1px solid var(--gold-border);
  color: var(--text-muted);
}

.btn-print:hover { border-color: var(--gold); color: var(--gold); }

.btn-download {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--black);
  box-shadow: 0 4px 16px rgba(201,168,76,0.25);
}

.btn-download:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(201,168,76,0.4);
}

/* ---- PREVIEW PANEL ---- */
.preview-panel {
  position: sticky;
  top: 90px;
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--black-3);
  border: 1px solid var(--gold-border);
  border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 12px 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.preview-badge {
  background: var(--success);
  color: #000;
  font-size: 0.68rem;
  padding: 3px 10px;
  border-radius: 100px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* INVOICE PREVIEW — BLACK BACKGROUND, WHITE & GOLD FONTS */
.invoice-preview {
  background: #0d0d0d;
  border: 1px solid var(--gold-border);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 36px;
  min-height: 600px;
  box-shadow: var(--shadow-dark);
  font-family: var(--font-body);
  overflow: hidden;
  color: #ffffff;
}

/* ---- INVOICE PREVIEW CONTENT (black bg, white & gold fonts) ---- */
.inv-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 2px solid #C9A84C;
}

.inv-logo img { max-height: 56px; max-width: 150px; object-fit: contain; }

.inv-from-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-top: 8px;
}

.inv-from-detail { font-size: 0.76rem; color: rgba(255,255,255,0.55); margin-top: 4px; line-height: 1.5; }

.inv-title-block { text-align: right; }

.inv-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: #C9A84C;
  letter-spacing: 0.05em;
}

.inv-number { font-size: 0.8rem; color: rgba(255,255,255,0.45); margin-top: 4px; }

.inv-meta { display: flex; gap: 16px; margin-top: 8px; justify-content: flex-end; }

.inv-meta-item { text-align: right; }
.inv-meta-item span { display: block; font-size: 0.65rem; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.06em; }
.inv-meta-item strong { font-size: 0.8rem; color: #ffffff; font-weight: 600; }

.inv-bill-section { margin-bottom: 24px; }

.inv-bill-label { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: #C9A84C; margin-bottom: 4px; }
.inv-bill-name { font-weight: 700; font-size: 0.9rem; color: #ffffff; }
.inv-bill-detail { font-size: 0.78rem; color: rgba(255,255,255,0.55); margin-top: 2px; line-height: 1.5; }

.inv-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; font-size: 0.8rem; }
.inv-table thead tr { background: rgba(201,168,76,0.12); }
.inv-table th { text-align: left; padding: 9px 10px; font-size: 0.67rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #C9A84C; border-bottom: 1px solid rgba(201,168,76,0.25); }
.inv-table th:last-child { text-align: right; }
.inv-table td { padding: 9px 10px; color: #ffffff; border-bottom: 1px solid rgba(255,255,255,0.07); vertical-align: top; }
.inv-table td:last-child { text-align: right; font-weight: 600; color: #C9A84C; }
.inv-table td:nth-child(2), .inv-table td:nth-child(3) { color: rgba(255,255,255,0.6); }

.inv-totals { margin-left: auto; width: 240px; }
.inv-total-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 0.82rem; color: rgba(255,255,255,0.6); }
.inv-total-row.subtotal { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 8px; }
.inv-total-row.discount { color: #C9A84C; }
.inv-total-row.grand-total { border-top: 2px solid #C9A84C; margin-top: 6px; padding-top: 8px; font-size: 1rem; font-weight: 800; color: #ffffff; font-family: var(--font-display); }

.inv-footer { margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(201,168,76,0.2); font-size: 0.75rem; color: rgba(255,255,255,0.5); display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.inv-footer-section strong { display: block; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #C9A84C; margin-bottom: 4px; }

.inv-empty-state { text-align: center; padding: 70px 20px; color: rgba(255,255,255,0.3); }
.inv-empty-state .empty-icon { font-size: 3rem; margin-bottom: 14px; }
.inv-empty-state p { font-size: 0.9rem; color: rgba(255,255,255,0.3); }

/* ---- FEATURES ---- */
.features-section { padding: 100px 0; background: var(--black); }

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.feature-card {
  background: var(--black-3);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--gold-border);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.feature-card:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: var(--shadow-gold); }
.feature-card:hover::before { opacity: 1; }

.feature-icon { font-size: 2rem; margin-bottom: 14px; }

.feature-card h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.feature-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; font-weight: 300; }

/* ---- HOW IT WORKS ---- */
.how-section {
  padding: 100px 0;
  background: var(--black-2);
  border-top: 1px solid var(--gold-border);
  border-bottom: 1px solid var(--gold-border);
}

.steps-grid { display: flex; align-items: center; justify-content: center; gap: 16px; }

.step-card {
  background: var(--black-3);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  flex: 1;
  max-width: 280px;
  text-align: center;
  transition: all var(--transition);
}

.step-card:hover { border-color: var(--gold); box-shadow: var(--shadow-gold); }

.step-number { font-family: var(--font-display); font-size: 3.5rem; font-weight: 700; color: var(--gold); opacity: 0.6; margin-bottom: 14px; line-height: 1; }
.step-card h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; color: var(--text-primary); }
.step-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; font-weight: 300; }
.step-arrow { font-size: 1.5rem; color: var(--gold); opacity: 0.4; flex-shrink: 0; }

/* ---- PRICING ---- */
.pricing-section { padding: 100px 0; background: var(--black); }

.pricing-grid { display: flex; gap: 24px; justify-content: center; max-width: 680px; margin: 0 auto; }

.pricing-card {
  background: var(--black-3);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--gold-border);
  flex: 1;
  position: relative;
  transition: all var(--transition);
}

.pricing-card.featured {
  border-color: var(--gold);
  box-shadow: 0 0 40px rgba(201,168,76,0.12);
}

.plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--black);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: 100px;
  white-space: nowrap;
}

.plan-name { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gold); margin-bottom: 12px; }
.plan-price { font-family: var(--font-display); font-size: 3rem; font-weight: 700; color: var(--text-primary); letter-spacing: -0.02em; margin-bottom: 24px; }
.plan-price span { font-size: 1rem; font-weight: 400; color: var(--text-dim); letter-spacing: 0; font-family: var(--font-body); }

.plan-features { list-style: none; margin-bottom: 28px; }
.plan-features li { padding: 7px 0; font-size: 0.875rem; color: var(--text-muted); border-bottom: 1px solid rgba(201,168,76,0.08); font-weight: 300; }
.plan-features li.muted { color: var(--text-dim); }
.plan-features li:last-child { border-bottom: none; }

.btn-free {
  background: var(--black-5);
  border: 1px solid var(--gold-border);
  color: var(--text-muted);
  border-radius: 10px;
  padding: 13px 24px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: all var(--transition);
}

.btn-free:hover { border-color: var(--gold); color: var(--gold); }

/* ---- FAQ ---- */
.faq-section {
  padding: 100px 0;
  background: var(--black-2);
  border-top: 1px solid var(--gold-border);
}

.faq-grid { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  background: var(--black-3);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--transition);
}

.faq-item:hover { border-color: var(--gold); }

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.faq-icon { color: var(--gold); font-size: 1.3rem; font-weight: 300; flex-shrink: 0; transition: transform var(--transition); }
.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  display: none;
  padding: 0 20px 18px;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.7;
  font-weight: 300;
  border-top: 1px solid rgba(201,168,76,0.1);
  padding-top: 14px;
}

.faq-item.open .faq-answer { display: block; }

/* ---- FOOTER ---- */
.footer {
  background: var(--black);
  border-top: 1px solid var(--gold-border);
  padding: 60px 0 0;
}

.footer-inner {
  display: flex;
  gap: 60px;
  padding-bottom: 48px;
  flex-wrap: wrap;
}

.footer-brand { flex: 1; min-width: 200px; }
.footer-brand p { font-size: 0.875rem; color: var(--text-dim); margin-top: 12px; line-height: 1.6; font-weight: 300; max-width: 280px; }

.footer-links-grid { display: flex; gap: 48px; }

.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); margin-bottom: 4px; }
.footer-col a { text-decoration: none; color: var(--text-dim); font-size: 0.875rem; transition: color var(--transition); font-weight: 300; }
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(201,168,76,0.1);
  padding: 20px 0;
  text-align: center;
}

.footer-bottom p { font-size: 0.78rem; color: var(--text-dim); }

/* ---- MODALS ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-box {
  background: var(--black-3);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 44px;
  max-width: 440px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 40px rgba(201,168,76,0.08);
}

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--black-5);
  border: 1px solid var(--gold-border);
  border-radius: 50%;
  width: 32px; height: 32px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.modal-close:hover { border-color: var(--gold); color: var(--gold); }

.modal-box h2 { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.modal-box p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 16px; font-weight: 300; }
.modal-box p strong { color: var(--gold); }

.modal-features { list-style: none; margin-bottom: 24px; }
.modal-features li { padding: 7px 0; font-size: 0.875rem; color: var(--text-muted); border-bottom: 1px solid rgba(201,168,76,0.08); font-weight: 300; }
.modal-features li:last-child { border-bottom: none; }

.modal-note { text-align: center; font-size: 0.78rem; color: var(--text-dim); margin-top: 12px; }
.modal-note a { color: var(--gold); text-decoration: none; }

/* ---- UTILITIES ---- */
.w100 { width: 100%; }

.btn-ghost {
  background: none;
  border: 1px solid var(--gold-border);
  border-radius: 10px;
  padding: 13px 24px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--transition);
}

.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .generator-grid { grid-template-columns: 1fr; }
  .preview-panel { position: static; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .header-actions { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 70px 0 60px; }
  .hero-stats { gap: 1.5rem; }
  .features-grid { grid-template-columns: 1fr; }
  .steps-grid { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); }
  .step-card { max-width: 100%; width: 100%; }
  .pricing-grid { flex-direction: column; max-width: 100%; }
  .form-row { grid-template-columns: 1fr; }
  .line-items-header { display: none; }
  .line-item-row { grid-template-columns: 1fr 55px 75px 75px 30px; gap: 6px; }
  .action-buttons { flex-direction: column; }
  .invoice-usage-bar { flex-direction: column; gap: 10px; text-align: center; }
  .footer-inner { flex-direction: column; gap: 32px; }
  .footer-links-grid { flex-wrap: wrap; gap: 24px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .form-panel { padding: 20px; }
  .invoice-preview { padding: 20px; }
  .modal-box { padding: 28px 20px; }
  .hero-title { font-size: 2.5rem; }
}

/* ---- PRINT ---- */
@media print {
  header, .form-panel, .invoice-usage-bar, .action-buttons,
  .features-section, .how-section, .pricing-section,
  .faq-section, footer, .modal-overlay, .preview-header { display: none !important; }
  .generator-section { background: white; padding: 0; }
  .invoice-preview { border: none; border-radius: 0; box-shadow: none; padding: 0; }
  .preview-panel { position: static; }
  body { background: white; }
}
