/* ============================================================
   Gift Card Super Store — Main Stylesheet
   A clean, modern, trustworthy ecommerce design.
   ============================================================ */

/* -- CSS Custom Properties (Design Tokens) -- */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --secondary: #0f172a;
  --accent: #10b981;
  --accent-dark: #059669;
  --danger: #ef4444;
  --warning: #f59e0b;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --max-width: 1200px;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* -- Reset & Base -- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* -- Container -- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* -- Typography -- */
h1, h2, h3, h4, h5, h6 { color: var(--gray-900); line-height: 1.3; }
h1 { font-size: 2.25rem; font-weight: 800; }
h2 { font-size: 1.75rem; font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }

/* ============================================================
   TOP BANNER
   ============================================================ */
.top-banner {
  background: var(--secondary);
  color: var(--gray-300);
  text-align: center;
  padding: 0.5rem 0;
  font-size: 0.85rem;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.navbar-brand {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gray-900);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.navbar-brand:hover { text-decoration: none; color: var(--primary); }

.brand-icon { font-size: 1.4rem; }

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

.navbar-menu a {
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  color: var(--gray-600);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s;
}
.navbar-menu a:hover,
.navbar-menu a.active { color: var(--primary); background: var(--primary-light); text-decoration: none; }

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

/* Nav dropdown */
.nav-user-menu { position: relative; }
.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%; right: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  list-style: none;
  min-width: 150px;
  z-index: 50;
}
.nav-user-menu:hover .nav-dropdown { display: block; }
.nav-dropdown a { display: block; padding: 0.5rem 1rem; color: var(--gray-700); }
.nav-dropdown a:hover { background: var(--gray-50); }

/* Mobile toggle */
.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.navbar-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--gray-700);
  transition: 0.3s;
}

@media (max-width: 768px) {
  .navbar-toggle { display: flex; }
  .navbar-menu {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
  }
  .navbar-menu.open { display: flex; }
  .navbar-menu a { padding: 0.75rem 1rem; width: 100%; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  line-height: 1.4;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

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

.btn-secondary { background: var(--secondary); color: var(--white); border-color: var(--secondary); }
.btn-secondary:hover { background: var(--gray-700); }

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

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

.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.85rem; }
.btn-lg { padding: 0.8rem 1.75rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin: 1rem 0;
  font-size: 0.95rem;
  font-weight: 500;
}
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--secondary) 0%, #1e3a5f 50%, var(--primary) 100%);
  color: var(--white);
  padding: 5rem 0;
  text-align: center;
}

.hero-content { max-width: 700px; margin: 0 auto; }
.hero h1 { font-size: 2.75rem; color: var(--white); margin-bottom: 1rem; }
.hero-subtitle { font-size: 1.2rem; color: var(--gray-300); margin-bottom: 2rem; line-height: 1.7; }

.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.5rem; }
.hero-ctas .btn { min-width: 180px; }

.hero-trust { font-size: 0.9rem; color: var(--gray-400); }

@media (max-width: 768px) {
  .hero { padding: 3rem 0; }
  .hero h1 { font-size: 2rem; }
  .hero-subtitle { font-size: 1rem; }
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 4rem 0; }
.section:nth-child(even) { background: var(--gray-50); }

.section-title { text-align: center; margin-bottom: 0.75rem; }
.section-subtitle { text-align: center; color: var(--gray-500); margin-bottom: 2.5rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.section-cta { text-align: center; margin-top: 2rem; }

/* Page header (used on subpages) */
.page-header {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  color: var(--white);
  padding: 3rem 0;
  text-align: center;
}
.page-header h1 { color: var(--white); margin-bottom: 0.5rem; }
.page-header p { color: var(--gray-300); font-size: 1.1rem; }

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

.brand-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 2rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  min-width: 120px;
}
.brand-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.brand-logo {
  width: 56px; height: 56px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 800;
}

.brand-item span { font-weight: 600; color: var(--gray-700); font-size: 0.95rem; }

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

.step-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.step-card:hover { transform: translateY(-3px); }

.step-number {
  width: 48px; height: 48px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; font-weight: 800;
  margin: 0 auto 1rem;
}

.step-card h3 { margin-bottom: 0.5rem; }
.step-card p { color: var(--gray-500); font-size: 0.95rem; }

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

.gift-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.gift-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.gift-card-badge {
  background: var(--primary);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.gift-card-visual {
  background: linear-gradient(135deg, var(--gray-100), var(--primary-light));
  padding: 1.5rem;
  text-align: center;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.gift-card-icon {
  width: 56px; height: 56px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 800;
  margin-bottom: 0.5rem;
}

.gift-card-brand-name { font-weight: 700; color: var(--gray-700); }

.gift-card-info { padding: 1rem 1.25rem 1.25rem; }

.gift-card-denomination { font-size: 1.1rem; font-weight: 700; color: var(--gray-800); margin-bottom: 0.5rem; }

.gift-card-pricing { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.25rem; }
.gift-card-price { font-size: 1.25rem; font-weight: 800; color: var(--primary); }
.gift-card-discount {
  background: #ecfdf5; color: var(--accent-dark);
  padding: 0.15rem 0.5rem; border-radius: 999px;
  font-size: 0.8rem; font-weight: 600;
}

.gift-card-savings { color: var(--gray-500); font-size: 0.85rem; margin-bottom: 1rem; }

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

/* ============================================================
   BUY PAGE LAYOUT
   ============================================================ */
.buy-layout { display: grid; grid-template-columns: 250px 1fr; gap: 2rem; }

.filters-sidebar {
  position: sticky;
  top: 80px;
  align-self: start;
}

.filter-form {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.filter-group { margin-bottom: 1rem; }
.filter-group label { display: block; font-weight: 600; font-size: 0.85rem; color: var(--gray-600); margin-bottom: 0.25rem; }
.filter-group input, .filter-group select {
  width: 100%; padding: 0.5rem 0.75rem;
  border: 1px solid var(--gray-300); border-radius: var(--radius);
  font-size: 0.95rem;
}

.listings-header { margin-bottom: 1rem; color: var(--gray-500); }

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

/* ============================================================
   PRODUCT DETAIL
   ============================================================ */
.back-link { display: inline-block; margin-bottom: 1.5rem; font-weight: 500; }

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

.product-card-display {
  background: linear-gradient(135deg, var(--gray-100), var(--primary-light));
  border-radius: var(--radius-xl);
  padding: 3rem;
  text-align: center;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.product-brand-icon {
  width: 80px; height: 80px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; font-weight: 800;
  margin-bottom: 1rem;
}
.product-brand-label { font-size: 1.5rem; font-weight: 700; color: var(--gray-700); }
.product-denomination-label { font-size: 2rem; font-weight: 800; color: var(--primary); margin-top: 0.5rem; }

.product-category-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: capitalize;
  margin-bottom: 0.5rem;
}

.product-info h1 { margin-bottom: 0.5rem; }
.product-description { color: var(--gray-500); margin-bottom: 1.5rem; }

.product-pricing {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.product-price-row {
  display: flex; justify-content: space-between;
  padding: 0.35rem 0;
}
.product-price-row .label { color: var(--gray-500); }
.original-price { text-decoration: line-through; color: var(--gray-400); }
.sale-price { color: var(--primary); font-weight: 800; font-size: 1.25rem; }
.savings { color: var(--accent-dark); font-weight: 600; }

.product-availability { margin-bottom: 1.5rem; }
.stock { font-weight: 600; font-size: 0.95rem; }
.in-stock { color: var(--accent-dark); }
.low-stock { color: var(--warning); }
.out-of-stock { color: var(--danger); }

.product-add-form { margin-bottom: 1.5rem; }
.quantity-selector { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.quantity-selector label { font-weight: 600; }
.quantity-selector input { width: 80px; padding: 0.5rem; border: 1px solid var(--gray-300); border-radius: var(--radius); text-align: center; }

.product-trust-notes { color: var(--gray-500); font-size: 0.9rem; }

.related-section { margin-top: 3rem; }
.related-section h2 { margin-bottom: 1.5rem; }

@media (max-width: 768px) {
  .product-detail { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ============================================================
   SELL PAGE
   ============================================================ */
.sell-layout { display: grid; grid-template-columns: 1fr 350px; gap: 2rem; }

.sell-sidebar .info-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}
.sell-sidebar .info-card h3 { margin-bottom: 0.75rem; }
.sell-sidebar .info-card p { color: var(--gray-600); font-size: 0.95rem; margin-bottom: 0.5rem; }

.sell-steps { padding-left: 1.25rem; }
.sell-steps li { margin-bottom: 0.75rem; color: var(--gray-600); font-size: 0.95rem; }

.trust-card { background: #ecfdf5 !important; border-color: #a7f3d0 !important; }

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

/* ============================================================
   FORMS
   ============================================================ */
.form-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.form-card h2 { margin-bottom: 0.5rem; }
.form-card > p { color: var(--gray-500); margin-bottom: 1.5rem; }

.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 600; font-size: 0.9rem; color: var(--gray-700); margin-bottom: 0.25rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: var(--font);
  transition: border-color 0.2s;
}
.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(--gray-400); font-size: 0.8rem; margin-top: 0.25rem; }

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

.payout-estimate {
  background: var(--primary-light);
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1rem;
  text-align: center;
}
.payout-estimate strong { font-size: 1.25rem; color: var(--primary); }

/* ============================================================
   CART
   ============================================================ */
.cart-layout { display: grid; grid-template-columns: 1fr 350px; gap: 2rem; }

.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--gray-200); }
.cart-table th { font-size: 0.85rem; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.05em; }

.cart-item-brand { display: flex; align-items: center; gap: 0.75rem; }
.cart-brand-icon {
  width: 36px; height: 36px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
}

.cart-qty-form { display: flex; align-items: center; gap: 0.5rem; }
.cart-qty-input { width: 60px; padding: 0.35rem; text-align: center; border: 1px solid var(--gray-300); border-radius: var(--radius); }

.cart-summary {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: sticky;
  top: 80px;
  align-self: start;
}
.cart-summary h3 { margin-bottom: 1rem; }

.summary-row { display: flex; justify-content: space-between; padding: 0.5rem 0; font-size: 0.95rem; }
.total-row { border-top: 2px solid var(--gray-300); padding-top: 0.75rem; margin-top: 0.5rem; font-size: 1.1rem; font-weight: 700; }

.summary-savings {
  background: #ecfdf5;
  color: var(--accent-dark);
  padding: 0.75rem;
  border-radius: var(--radius);
  text-align: center;
  margin: 1rem 0;
  font-size: 0.95rem;
}

.cart-actions-bottom { text-align: center; margin-top: 1rem; display: flex; justify-content: space-between; }
.link { background: none; border: none; color: var(--primary); cursor: pointer; font-size: 0.95rem; font-family: var(--font); }
.link:hover { text-decoration: underline; }
.link-danger { color: var(--danger); }

@media (max-width: 768px) {
  .cart-layout { grid-template-columns: 1fr; }
  .cart-table { font-size: 0.85rem; }
  .cart-table th, .cart-table td { padding: 0.5rem; }
}

/* ============================================================
   CHECKOUT
   ============================================================ */
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 2rem; }

.checkout-form h2 { margin-bottom: 1rem; margin-top: 1.5rem; }
.checkout-form h2:first-child { margin-top: 0; }

.payment-options { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1rem; }
.payment-option { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; border: 1px solid var(--gray-200); border-radius: var(--radius); cursor: pointer; transition: 0.2s; }
.payment-option:hover { border-color: var(--primary); }
.payment-option input:checked + .payment-label { color: var(--primary); font-weight: 600; }

.checkout-summary {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: sticky;
  top: 80px;
  align-self: start;
}
.checkout-summary h3 { margin-bottom: 1rem; }

.checkout-item { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid var(--gray-200); font-size: 0.95rem; }
.checkout-qty { color: var(--gray-400); }

.checkout-totals { margin-top: 1rem; }

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

/* ============================================================
   CONFIRMATION / SUCCESS
   ============================================================ */
.confirmation-page, .success-page, .pending-page { text-align: center; max-width: 700px; margin: 0 auto; }

.success-icon { font-size: 4rem; margin-bottom: 1rem; }
.order-number { font-size: 1.25rem; color: var(--primary); font-weight: 700; margin-bottom: 1rem; }

.confirmation-details { text-align: left; margin: 2rem 0; }
.confirmation-table { width: 100%; border-collapse: collapse; }
.confirmation-table th, .confirmation-table td { padding: 0.75rem; text-align: left; border-bottom: 1px solid var(--gray-200); }
.confirmation-table th { color: var(--gray-500); font-size: 0.85rem; text-transform: uppercase; }
.confirmation-table tfoot td { border-top: 2px solid var(--gray-300); }

.confirmation-info { background: var(--primary-light); padding: 1rem; border-radius: var(--radius); margin: 1.5rem 0; }
.confirmation-actions, .success-actions, .pending-actions { display: flex; gap: 1rem; justify-content: center; margin-top: 1.5rem; }

.pending-icon { font-size: 4rem; margin-bottom: 1rem; }
.pending-page h1 { margin-bottom: 1rem; }
.pending-page p { color: var(--gray-600); margin-bottom: 0.5rem; }
.pending-info { background: #fef3c7; border: 1px solid #fcd34d; border-radius: var(--radius); padding: 1rem; margin: 1.5rem 0; color: #92400e; }

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

.trust-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.trust-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.trust-card h3 { margin-bottom: 0.5rem; }
.trust-card p { color: var(--gray-500); font-size: 0.95rem; }

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

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.testimonial-stars { color: var(--warning); font-size: 1.1rem; margin-bottom: 0.5rem; }
.testimonial-content { color: var(--gray-600); font-style: italic; margin-bottom: 1rem; line-height: 1.6; }
.testimonial-author { font-size: 0.9rem; }
.testimonial-author strong { color: var(--gray-800); }
.testimonial-author span { color: var(--gray-400); display: block; }

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

.faq-item { border: 1px solid var(--gray-200); border-radius: var(--radius); margin-bottom: 0.5rem; overflow: hidden; }

.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; padding: 1rem 1.25rem;
  background: var(--white);
  border: none; cursor: pointer;
  font-size: 1rem; font-weight: 600; color: var(--gray-800);
  text-align: left;
  font-family: var(--font);
  transition: background 0.2s;
}
.faq-question:hover { background: var(--gray-50); }

.faq-toggle { font-size: 1.25rem; color: var(--primary); transition: transform 0.2s; }
.faq-item.open .faq-toggle { transform: rotate(45deg); }

.faq-answer { display: none; padding: 0 1.25rem 1rem; color: var(--gray-600); }
.faq-item.open .faq-answer { display: block; }

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter-section { background: var(--primary) !important; color: var(--white); }
.newsletter-inner { text-align: center; max-width: 500px; margin: 0 auto; }
.newsletter-inner h2 { color: var(--white); margin-bottom: 0.5rem; }
.newsletter-inner p { color: var(--primary-light); margin-bottom: 1.5rem; }

.newsletter-form { display: flex; gap: 0.5rem; }
.newsletter-form input {
  flex: 1; padding: 0.75rem 1rem;
  border: none; border-radius: var(--radius);
  font-size: 1rem;
}
.newsletter-form .btn { background: var(--secondary); border-color: var(--secondary); white-space: nowrap; }
.newsletter-form .btn:hover { background: var(--gray-700); }

.newsletter-note { margin-top: 0.75rem; font-size: 0.9rem; }
.text-success { color: #a7f3d0; }
.text-error { color: #fecaca; }

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

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

.auth-card {
  width: 100%; max-width: 480px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}
.auth-card h1 { margin-bottom: 0.25rem; }
.auth-card > p { color: var(--gray-500); margin-bottom: 1.5rem; }

.auth-footer { text-align: center; margin-top: 1.5rem; color: var(--gray-500); font-size: 0.95rem; }

.checkbox-row { display: flex; gap: 1.5rem; margin-top: 0.25rem; }
.register-note { color: var(--gray-500); font-size: 0.85rem; margin-bottom: 1rem; text-align: center; }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-intro { max-width: 700px; margin: 0 auto 2.5rem; text-align: center; }
.about-intro h2 { margin-bottom: 0.75rem; }
.about-intro p { color: var(--gray-600); font-size: 1.05rem; }

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

.about-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.about-card h3 { margin-bottom: 0.75rem; }
.about-card p, .about-card li { color: var(--gray-600); font-size: 0.95rem; }
.about-card ul { padding-left: 1.25rem; }
.about-card li { margin-bottom: 0.35rem; }

.about-cta { text-align: center; }
.about-cta h2 { margin-bottom: 0.5rem; }
.about-cta p { color: var(--gray-500); margin-bottom: 1.25rem; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-layout { display: grid; grid-template-columns: 1fr 350px; gap: 2rem; }

.contact-sidebar .info-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}
.contact-sidebar .info-card h3 { margin-bottom: 0.75rem; }
.contact-details { list-style: none; }
.contact-details li { margin-bottom: 0.5rem; color: var(--gray-600); }

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

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal-content { max-width: 800px; margin: 0 auto; }
.legal-content h2 { margin-top: 2rem; margin-bottom: 0.75rem; padding-top: 1rem; border-top: 1px solid var(--gray-200); }
.legal-content h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.legal-content h3 { margin-top: 1.25rem; margin-bottom: 0.5rem; }
.legal-content p { color: var(--gray-600); margin-bottom: 0.75rem; }
.legal-content ul, .legal-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-content li { color: var(--gray-600); margin-bottom: 0.35rem; }

/* ============================================================
   ERROR PAGES
   ============================================================ */
.error-page { text-align: center; padding: 3rem 0; }
.error-code { font-size: 6rem; font-weight: 900; color: var(--gray-200); line-height: 1; margin-bottom: 1rem; }
.error-page h1 { margin-bottom: 0.5rem; }
.error-page p { color: var(--gray-500); margin-bottom: 1.5rem; }
.error-actions { display: flex; gap: 1rem; justify-content: center; }

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

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 3rem 0 1.5rem;
  margin-top: 0;
}

.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; margin-bottom: 2rem; }

.footer-col h3 { color: var(--white); font-size: 1.1rem; margin-bottom: 0.75rem; }
.footer-col h4 { color: var(--gray-200); font-size: 0.95rem; margin-bottom: 0.75rem; }
.footer-col p { font-size: 0.9rem; line-height: 1.6; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.35rem; }
.footer-col a { color: var(--gray-400); font-size: 0.9rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--white); text-decoration: none; }

.footer-contact li { font-size: 0.9rem; }

.footer-bottom { border-top: 1px solid var(--gray-700); padding-top: 1.5rem; text-align: center; font-size: 0.85rem; }

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-center { text-align: center; }
.text-warning { color: var(--warning); }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mt-2 { margin-top: 1rem; }

/* Checkbox labels */
.checkbox-label { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; font-weight: 500; }
.checkbox-label input { width: auto; }
