/* ============================================================
   Gift Card Haven — Main Stylesheet
   Apple-inspired design with modern Gifting Goblin emerald branding
   ============================================================ */

/* -- Design Tokens -- */
:root {
  --primary: #00b37e;
  --primary-dark: #00956a;
  --primary-light: #e6faf4;
  --primary-mid: #00c98a;
  --secondary: #1d1d1f;
  --accent: #30d158;
  --danger: #ff3b30;
  --warning: #ff9f0a;
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --bg-dark: #1d1d1f;
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #86868b;
  --border: #d2d2d7;
  --border-light: #e8e8ed;
  --white: #ffffff;
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 2px 6px rgba(0,0,0,0.06);
  --shadow: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 28px rgba(0,0,0,0.10);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 999px;
  --max-width: 1200px;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;
  --nav-h: 52px;
}

/* -- Reset & Base -- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.58;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }

/* -- Container -- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}
@media (max-width: 600px) {
  .container { padding: 0 1.25rem; }
}

/* -- Typography -- */
h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; color: var(--text); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; color: var(--text); }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; color: var(--text); }
h4 { font-size: 1rem; font-weight: 600; color: var(--text); }

/* ============================================================
   ANNOUNCEMENT BANNER
   ============================================================ */
.site-banner {
  background: var(--secondary);
  color: rgba(255,255,255,0.85);
  text-align: center;
  padding: 0.55rem 1rem;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
}
.site-banner a { color: var(--accent); }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--nav-h);
  background: rgba(255,255,255,0.85);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.navbar-brand:hover { text-decoration: none; }
.navbar-brand img {
  height: 28px;
  width: auto;
}
.brand-text {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  white-space: nowrap;
}

.navbar-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.navbar-menu a {
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: all 0.15s;
  white-space: nowrap;
}
.navbar-menu a:hover { color: var(--text); background: rgba(0,0,0,0.05); text-decoration: none; }
.navbar-menu a.active { color: var(--primary); font-weight: 600; }

.cart-link { position: relative; }
.cart-badge {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--danger);
  color: var(--white);
  font-size: 0.6rem;
  min-width: 16px; height: 16px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  padding: 0 3px;
}

.nav-user-menu { position: relative; }
.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px); right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  list-style: none;
  min-width: 180px;
  z-index: 50;
  overflow: hidden;
}
.nav-user-menu:hover .nav-dropdown { display: block; }
.nav-dropdown a {
  display: block; padding: 0.6rem 1rem;
  color: var(--text); font-size: 0.875rem; border-radius: 0;
}
.nav-dropdown a:hover { background: var(--bg-alt); color: var(--text); }
.nav-dropdown .dropdown-divider { border-top: 1px solid var(--border); margin: 0.25rem 0; }

.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; cursor: pointer; padding: 0.5rem;
}
.navbar-toggle span { display: block; width: 22px; height: 1.5px; background: var(--text); border-radius: 2px; transition: 0.3s; }

@media (max-width: 768px) {
  .navbar-toggle { display: flex; }
  .navbar-menu {
    display: none;
    position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    background: rgba(255,255,255,0.97);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1.25rem 1.25rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    gap: 0;
  }
  .navbar-menu.open { display: flex; }
  .navbar-menu a { padding: 0.75rem 0.5rem; border-radius: 0; font-size: 1rem; }
  .nav-dropdown { position: static; box-shadow: none; border: none; padding-left: 1rem; }
  .nav-user-menu:hover .nav-dropdown { display: none; }
  .nav-user-menu.open .nav-dropdown { display: block; }
}

/* ============================================================
   ALERTS / FLASH MESSAGES
   ============================================================ */
.flash-wrapper { padding: 0 0 0.5rem; }
.alert {
  padding: 0.8rem 1.1rem;
  border-radius: var(--radius);
  margin: 0.75rem 0;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.alert-success { background: #e6faf4; color: #00503a; border: 1px solid #a3e6cc; }
.alert-error { background: #fff2f1; color: #b91c1c; border: 1px solid #fecaca; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: -0.005em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.18s;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: var(--white); }

.btn-dark { background: var(--secondary); color: var(--white); border-color: var(--secondary); }
.btn-dark:hover { background: #3a3a3c; border-color: #3a3a3c; color: var(--white); }

.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }

.btn-outline-dark { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-outline-dark:hover { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.8); color: var(--white); }

.btn-ghost { background: transparent; color: var(--text-secondary); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg-alt); color: var(--text); }

.btn-danger { background: var(--danger); color: var(--white); border-color: var(--danger); }
.btn-danger:hover { opacity: 0.88; }

.btn-sm { padding: 0.4rem 1rem; font-size: 0.82rem; }
.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; letter-spacing: -0.01em; }
.btn-xl { padding: 1.1rem 2.5rem; font-size: 1.05rem; letter-spacing: -0.01em; }
.btn-block { width: 100%; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); color: var(--white); }

.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.6rem;
  display: block;
}
.section-title { text-align: center; margin-bottom: 0.75rem; }
.section-title.light { color: var(--white); }
.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.05rem;
  line-height: 1.6;
}
.section-subtitle.light { color: rgba(255,255,255,0.65); }
.section-cta { text-align: center; margin-top: 2.5rem; }

/* Page header (subpages) */
.page-header {
  background: var(--bg-dark);
  color: var(--white);
  padding: 3.5rem 0 3rem;
  text-align: center;
}
.page-header h1 { color: var(--white); margin-bottom: 0.6rem; }
.page-header p { color: rgba(255,255,255,0.6); font-size: 1.05rem; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--bg-dark);
  color: var(--white);
  padding: 7rem 0 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,179,126,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content { max-width: 780px; margin: 0 auto; position: relative; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0,179,126,0.15);
  color: var(--accent);
  border: 1px solid rgba(0,179,126,0.25);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 6vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}
.hero h1 em { font-style: normal; color: var(--accent); }

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.6);
  margin-bottom: 2.5rem;
  line-height: 1.65;
}

.hero-ctas {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-trust {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.01em;
}
.hero-trust span { margin: 0 0.25rem; }

@media (max-width: 768px) {
  .hero { padding: 4.5rem 0 4rem; }
}

/* ============================================================
   BRANDS SECTION
   ============================================================ */
.brands-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.brand-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.4rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-xs);
  transition: all 0.2s;
  cursor: default;
}
.brand-pill:hover { box-shadow: var(--shadow); transform: translateY(-1px); border-color: var(--primary); }

.brand-pill-icon {
  width: 32px; height: 32px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 800;
  flex-shrink: 0;
}
.brand-pill span { font-size: 0.9rem; font-weight: 600; color: var(--text); }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  counter-reset: steps;
}

.step-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  position: relative;
  transition: all 0.2s;
}
.step-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 1rem;
}
.step-card h3 { margin-bottom: 0.5rem; font-size: 1.05rem; }
.step-card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; }

/* ============================================================
   GIFT CARD GRID & CARDS
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.gift-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.22s;
  position: relative;
}
.gift-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.gift-card-visual {
  height: 140px;
  background: linear-gradient(135deg, #1d1d1f 0%, #2d2d2f 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  position: relative;
  overflow: hidden;
}
.gift-card-visual::after {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 120px; height: 120px;
  background: rgba(0,179,126,0.12);
  border-radius: 50%;
}
.gift-card-visual::before {
  content: '';
  position: absolute;
  bottom: -20px; left: -20px;
  width: 80px; height: 80px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}

.gift-card-brand-icon {
  width: 52px; height: 52px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 800;
  color: var(--white);
  position: relative; z-index: 1;
}
.gift-card-brand-label { font-size: 0.8rem; font-weight: 600; color: rgba(255,255,255,0.75); position: relative; z-index: 1; }

.gift-card-discount-badge {
  position: absolute;
  top: 10px; right: 10px;
  background: var(--primary);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  z-index: 2;
}

.gift-card-body { padding: 1.1rem 1.25rem 1.25rem; }
.gift-card-denomination { font-size: 1.35rem; font-weight: 800; color: var(--text); letter-spacing: -0.02em; margin-bottom: 0.3rem; }
.gift-card-pricing { display: flex; align-items: baseline; gap: 0.6rem; margin-bottom: 0.2rem; }
.gift-card-price { font-size: 1.15rem; font-weight: 700; color: var(--primary); }
.gift-card-original { font-size: 0.85rem; color: var(--text-tertiary); text-decoration: line-through; }
.gift-card-savings { font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 1rem; }

.gift-card-actions { display: flex; gap: 0.5rem; }

/* ============================================================
   BUY PAGE LAYOUT
   ============================================================ */
.buy-layout { display: grid; grid-template-columns: 240px 1fr; gap: 2.5rem; align-items: start; }

.filters-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
}

.filter-panel {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.filter-panel h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-tertiary); margin-bottom: 1rem; }

.filter-group { margin-bottom: 1.1rem; }
.filter-group label { display: block; font-weight: 600; font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 0.3rem; }
.filter-group input, .filter-group select {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.15s;
}
.filter-group input:focus, .filter-group select:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.listings-count { font-size: 0.88rem; color: var(--text-tertiary); margin-bottom: 1.25rem; }

@media (max-width: 768px) {
  .buy-layout { grid-template-columns: 1fr; }
  .filters-sidebar { position: static; }
}

/* ============================================================
   PRODUCT DETAIL
   ============================================================ */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  transition: color 0.15s;
}
.back-link:hover { color: var(--text); text-decoration: none; }

.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; margin-bottom: 4rem; }

.product-visual {
  background: var(--bg-dark);
  border-radius: var(--radius-xl);
  min-height: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
}
.product-visual::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(0,179,126,0.15) 0%, transparent 65%);
}
.product-big-icon {
  width: 90px; height: 90px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; font-weight: 800; color: var(--white);
  position: relative; z-index: 1;
}
.product-visual-brand { font-size: 1.1rem; font-weight: 600; color: rgba(255,255,255,0.7); z-index: 1; }
.product-visual-value { font-size: 2.5rem; font-weight: 800; color: var(--white); letter-spacing: -0.03em; z-index: 1; }

.product-category-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: capitalize;
  margin-bottom: 0.6rem;
}

.product-info h1 { font-size: 1.9rem; margin-bottom: 0.5rem; }
.product-description { color: var(--text-secondary); margin-bottom: 1.75rem; font-size: 0.95rem; line-height: 1.7; }

.pricing-box {
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}
.pricing-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.4rem 0;
}
.pricing-row + .pricing-row { border-top: 1px solid var(--border-light); }
.pricing-label { font-size: 0.88rem; color: var(--text-secondary); }
.pricing-original { text-decoration: line-through; color: var(--text-tertiary); }
.pricing-sale { color: var(--primary); font-weight: 800; font-size: 1.3rem; }
.pricing-savings { color: var(--primary); font-weight: 600; }

.stock-badge { font-size: 0.88rem; font-weight: 600; margin-bottom: 1.5rem; display: inline-flex; align-items: center; gap: 0.35rem; }
.in-stock { color: var(--primary); }
.low-stock { color: var(--warning); }
.out-of-stock { color: var(--danger); }

.qty-row { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.qty-row label { font-weight: 600; font-size: 0.9rem; white-space: nowrap; }
.qty-input {
  width: 80px; padding: 0.5rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 0.95rem; text-align: center;
  font-family: var(--font);
}
.qty-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }

.trust-notes { font-size: 0.82rem; color: var(--text-tertiary); margin-top: 1rem; }

.related-section { border-top: 1px solid var(--border-light); padding-top: 3rem; }
.related-section h2 { margin-bottom: 1.5rem; }

@media (max-width: 768px) {
  .product-detail { grid-template-columns: 1fr; gap: 2rem; }
  .product-visual { min-height: 260px; }
}

/* ============================================================
   SELL PAGE
   ============================================================ */
.sell-layout { display: grid; grid-template-columns: 1fr 340px; gap: 2.5rem; align-items: start; }

.info-block {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1rem;
}
.info-block h3 { font-size: 1rem; margin-bottom: 0.75rem; }
.info-block p { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.65; margin-bottom: 0.5rem; }
.info-block.trust { background: var(--primary-light); border-color: rgba(0,179,126,0.25); }

.sell-steps-list { list-style: none; counter-reset: sell; }
.sell-steps-list li {
  counter-increment: sell;
  padding: 0.5rem 0 0.5rem 2rem;
  position: relative;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
}
.sell-steps-list li::before {
  content: counter(sell);
  position: absolute; left: 0; top: 0.5rem;
  width: 20px; height: 20px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

@media (max-width: 768px) { .sell-layout { grid-template-columns: 1fr; } }

/* ============================================================
   FORMS
   ============================================================ */
.form-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.form-card h2 { margin-bottom: 0.4rem; }
.form-card > p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 1.75rem; }

.form-group { margin-bottom: 1.1rem; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 0.3rem;
  letter-spacing: -0.005em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.15s, box-shadow 0.15s;
  line-height: 1.5;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}
.form-group small { display: block; color: var(--text-tertiary); font-size: 0.78rem; margin-top: 0.3rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.form-section-title { font-size: 1rem; font-weight: 700; color: var(--text); margin: 1.5rem 0 0.75rem; padding-top: 1.5rem; border-top: 1px solid var(--border-light); }
.form-section-title:first-child { padding-top: 0; border-top: none; margin-top: 0; }

.payout-estimate {
  background: var(--primary-light);
  border: 1px solid rgba(0,179,126,0.3);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  text-align: center;
}
.payout-estimate strong { font-size: 1.3rem; color: var(--primary); display: block; }
.payout-estimate small { color: var(--text-secondary); font-size: 0.8rem; }

.checkbox-label { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; font-weight: 500; font-size: 0.92rem; }
.checkbox-label input { width: auto; }
.checkbox-row { display: flex; gap: 1.5rem; margin-top: 0.25rem; flex-wrap: wrap; }

.register-note { color: var(--text-tertiary); font-size: 0.82rem; margin-bottom: 1rem; text-align: center; }

/* ============================================================
   CART
   ============================================================ */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 2.5rem; align-items: start; }

.cart-items-panel {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th {
  padding: 0.75rem 1.25rem;
  text-align: left;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-alt);
}
.cart-table td { padding: 1rem 1.25rem; border-bottom: 1px solid var(--border-light); font-size: 0.92rem; vertical-align: middle; }
.cart-table tr:last-child td { border-bottom: none; }

.cart-brand-cell { display: flex; align-items: center; gap: 0.75rem; }
.cart-icon {
  width: 38px; height: 38px;
  background: var(--bg-dark);
  color: var(--white);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.85rem;
  flex-shrink: 0;
}
.cart-brand-info strong { font-size: 0.92rem; }
.cart-brand-info span { display: block; font-size: 0.78rem; color: var(--text-tertiary); }

.cart-qty-form { display: flex; align-items: center; gap: 0.4rem; }
.cart-qty-input {
  width: 55px; padding: 0.35rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 0.88rem; text-align: center; font-family: var(--font);
}

.cart-summary-panel {
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
}
.cart-summary-panel h3 { font-size: 1rem; margin-bottom: 1.25rem; }

.summary-line { display: flex; justify-content: space-between; align-items: center; padding: 0.4rem 0; font-size: 0.9rem; }
.summary-total { border-top: 1px solid var(--border); padding-top: 0.75rem; margin-top: 0.5rem; font-size: 1rem; font-weight: 700; }

.savings-badge {
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: var(--radius);
  padding: 0.65rem 1rem;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 1rem 0;
}

.cart-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; }
.text-btn { background: none; border: none; cursor: pointer; font-family: var(--font); font-size: 0.85rem; color: var(--text-secondary); padding: 0; }
.text-btn:hover { color: var(--text); text-decoration: underline; }
.text-btn-danger { color: var(--danger); }
.text-btn-danger:hover { color: #cc0000; }

@media (max-width: 768px) {
  .cart-layout { grid-template-columns: 1fr; }
  .cart-table { font-size: 0.82rem; }
  .cart-table th, .cart-table td { padding: 0.65rem 0.75rem; }
  .cart-summary-panel { position: static; }
}

/* ============================================================
   CHECKOUT
   ============================================================ */
.checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: 2.5rem; align-items: start; }

.checkout-summary-panel {
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
}
.checkout-summary-panel h3 { font-size: 1rem; margin-bottom: 1.25rem; }
.checkout-item-line {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.88rem;
}
.checkout-item-line:last-of-type { border-bottom: none; }
.checkout-item-name { color: var(--text); font-weight: 500; }
.checkout-item-qty { color: var(--text-tertiary); font-size: 0.78rem; }

@media (max-width: 768px) {
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-summary-panel { position: static; }
}

/* ============================================================
   CONFIRMATION / SUCCESS / PENDING
   ============================================================ */
.result-page { text-align: center; max-width: 640px; margin: 0 auto; }
.result-icon { font-size: 4rem; margin-bottom: 1rem; }
.order-ref { font-size: 1.1rem; font-weight: 700; color: var(--primary); letter-spacing: 0.02em; margin-bottom: 1rem; }

.order-table-wrapper {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 2rem 0;
  text-align: left;
}
.order-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.order-table th, .order-table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border-light); text-align: left; }
.order-table th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-tertiary); background: var(--bg-alt); }
.order-table tfoot td { border-top: 2px solid var(--border); border-bottom: none; font-weight: 700; }

.notice-box { background: var(--primary-light); border: 1px solid rgba(0,179,126,0.2); border-radius: var(--radius); padding: 1rem 1.25rem; margin: 1.5rem 0; font-size: 0.9rem; color: var(--primary-dark); }
.warning-box { background: #fff8ec; border: 1px solid #ffe4a0; border-radius: var(--radius); padding: 1rem 1.25rem; margin: 1.5rem 0; font-size: 0.9rem; color: #7c5b00; }

.result-actions { display: flex; gap: 0.75rem; justify-content: center; margin-top: 1.5rem; flex-wrap: wrap; }

/* ============================================================
   TRUST SECTION
   ============================================================ */
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }

.trust-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  transition: all 0.2s;
}
.trust-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.trust-icon-wrap {
  width: 48px; height: 48px;
  background: var(--primary-light);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.trust-card h3 { margin-bottom: 0.4rem; font-size: 1rem; }
.trust-card p { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.65; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; }

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all 0.2s;
}
.testimonial-card:hover { box-shadow: var(--shadow); }
.testimonial-stars { color: var(--warning); font-size: 0.95rem; margin-bottom: 0.75rem; }
.testimonial-text { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.65; margin-bottom: 1rem; font-style: italic; }
.testimonial-author strong { font-size: 0.88rem; color: var(--text); }
.testimonial-author span { font-size: 0.8rem; color: var(--text-tertiary); display: block; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { max-width: 760px; margin: 0 auto; }

.faq-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  margin-bottom: 0.6rem;
  overflow: hidden;
  background: var(--white);
}

.faq-btn {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; padding: 1rem 1.25rem;
  background: none; border: none; cursor: pointer;
  text-align: left; font-family: var(--font);
  font-size: 0.95rem; font-weight: 600; color: var(--text);
  transition: background 0.15s;
}
.faq-btn:hover { background: var(--bg-alt); }
.faq-btn svg { flex-shrink: 0; transition: transform 0.2s; color: var(--primary); }
.faq-item.open .faq-btn svg { transform: rotate(45deg); }

.faq-answer { display: none; padding: 0 1.25rem 1rem; color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; }
.faq-item.open .faq-answer { display: block; }

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter-section { background: var(--bg-dark) !important; }
.newsletter-inner { text-align: center; max-width: 520px; margin: 0 auto; }
.newsletter-inner h2 { color: var(--white); margin-bottom: 0.5rem; }
.newsletter-inner p { color: rgba(255,255,255,0.55); margin-bottom: 1.75rem; }

.newsletter-form { display: flex; gap: 0.5rem; }
.newsletter-form input {
  flex: 1; padding: 0.75rem 1.1rem;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-full);
  font-size: 0.95rem; font-family: var(--font);
  background: rgba(255,255,255,0.1);
  color: var(--white);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-form input:focus { outline: none; border-color: var(--primary); background: rgba(255,255,255,0.15); }
.newsletter-note { margin-top: 0.75rem; font-size: 0.85rem; min-height: 1.2em; }
.text-success-soft { color: var(--accent); }
.text-error-soft { color: #ff6b6b; }

@media (max-width: 500px) { .newsletter-form { flex-direction: column; } }

/* ============================================================
   AUTH PAGES
   ============================================================ */
.auth-page { display: flex; justify-content: center; padding: 3rem 0; }

.auth-card {
  width: 100%; max-width: 460px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}
.auth-card h1 { font-size: 1.6rem; margin-bottom: 0.35rem; }
.auth-card > p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 1.75rem; }
.auth-footer { text-align: center; margin-top: 1.5rem; color: var(--text-secondary); font-size: 0.88rem; }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-intro { max-width: 640px; margin: 0 auto 3rem; text-align: center; }
.about-intro h2 { margin-bottom: 0.75rem; }
.about-intro p { color: var(--text-secondary); font-size: 1rem; line-height: 1.7; }

.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; margin-bottom: 3rem; }

.about-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}
.about-card h3 { margin-bottom: 0.75rem; font-size: 1rem; }
.about-card p, .about-card li { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.65; }
.about-card ul { padding-left: 1.25rem; }
.about-card li { margin-bottom: 0.4rem; }

.about-cta { text-align: center; }
.about-cta h2 { margin-bottom: 0.5rem; }
.about-cta p { color: var(--text-secondary); margin-bottom: 1.5rem; }
.cta-buttons { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-layout { display: grid; grid-template-columns: 1fr 320px; gap: 2.5rem; align-items: start; }
.contact-details-list { list-style: none; }
.contact-details-list li { padding: 0.5rem 0; color: var(--text-secondary); font-size: 0.9rem; border-bottom: 1px solid var(--border-light); }
.contact-details-list li:last-child { border-bottom: none; }
@media (max-width: 768px) { .contact-layout { grid-template-columns: 1fr; } }

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal-content { max-width: 780px; margin: 0 auto; }
.legal-content h2 { font-size: 1.15rem; margin-top: 2rem; margin-bottom: 0.6rem; padding-top: 1rem; border-top: 1px solid var(--border-light); }
.legal-content h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.legal-content h3 { font-size: 1rem; margin-top: 1.25rem; margin-bottom: 0.4rem; }
.legal-content p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 0.75rem; line-height: 1.7; }
.legal-content ul, .legal-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-content li { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 0.35rem; line-height: 1.6; }

/* ============================================================
   ERROR PAGES
   ============================================================ */
.error-page { text-align: center; padding: 4rem 0; }
.error-code { font-size: 7rem; font-weight: 900; color: var(--border); line-height: 1; margin-bottom: 0.5rem; letter-spacing: -0.04em; }
.error-page h1 { margin-bottom: 0.5rem; }
.error-page p { color: var(--text-secondary); margin-bottom: 2rem; }
.error-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state { text-align: center; padding: 4rem 0; }
.empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state h2 { margin-bottom: 0.5rem; }
.empty-state p { color: var(--text-secondary); margin-bottom: 1.5rem; font-size: 0.95rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.5);
  padding: 3.5rem 0 2rem;
}

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }

.footer-brand h3 { color: var(--white); font-size: 1rem; margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.5rem; }
.footer-brand p { font-size: 0.82rem; line-height: 1.65; }
.footer-brand .goblin-tag { font-size: 0.75rem; color: var(--primary); margin-top: 0.5rem; }

.footer-col h4 { color: rgba(255,255,255,0.8); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.85rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.4rem; }
.footer-col a { color: rgba(255,255,255,0.5); font-size: 0.85rem; transition: color 0.15s; }
.footer-col a:hover { color: rgba(255,255,255,0.9); text-decoration: none; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.78rem;
}
.footer-bottom a { color: rgba(255,255,255,0.4); }
.footer-bottom a:hover { color: rgba(255,255,255,0.7); }

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } .footer-bottom { flex-direction: column; text-align: center; } }

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-muted { color: var(--text-secondary); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.fw-bold { font-weight: 700; }
