*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #0f172a;
  --text-2: #64748b;
  --text-3: #94a3b8;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-soft: rgba(79, 70, 229, 0.08);
  --accent-light: #eef2ff;
  --green: #059669;
  --green-soft: rgba(5, 150, 105, 0.08);
  --red: #dc2626;
  --red-soft: rgba(220, 38, 38, 0.08);
  --yellow: #d97706;
  --yellow-soft: rgba(217, 119, 6, 0.08);
  --navy: #0f172a;
  --navy-light: #1e293b;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.06);
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

body { background: var(--bg); line-height: 1.6; overflow-x: hidden; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; display: block; }

/* ── NAV ── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15, 23, 42, 0.97);
  backdrop-filter: blur(16px);
  padding: 0;
}
.nav-inner {
  display: flex; align-items: center; gap: 32px;
  height: 60px;
}
.logo {
  font-size: 1.3rem; font-weight: 800; letter-spacing: -0.5px;
  color: #fff;
}
.nav-links { display: flex; gap: 4px; flex: 1; }
.nav-links a {
  color: rgba(255,255,255,0.6); font-size: 0.875rem; font-weight: 500;
  padding: 6px 14px; border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.cart-badge {
  background: var(--accent); color: #fff;
  font-size: 0.7rem; font-weight: 700;
  padding: 2px 9px; border-radius: 99px;
  min-width: 22px; text-align: center;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--surface); color: var(--text);
  cursor: pointer; font-size: 0.875rem; font-weight: 500;
  transition: all 0.15s ease;
  outline: none;
}
.btn:hover { background: var(--surface-alt); border-color: var(--border-strong); }
.btn:focus-visible { box-shadow: 0 0 0 3px var(--accent-soft); border-color: var(--accent); }
.btn-primary {
  background: var(--accent); border-color: var(--accent); color: #fff;
  box-shadow: 0 1px 2px rgba(79, 70, 229, 0.3);
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--text-2); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.btn-sm { padding: 6px 14px; font-size: 0.8rem; border-radius: 6px; }
.btn-full { width: 100%; }
.btn-ghost { background: none; border: none; color: var(--text-2); padding: 6px 10px; }
.btn-ghost:hover { color: var(--accent); background: var(--accent-soft); }

/* ── HERO ── */
.hero {
  padding: 80px 0 72px; text-align: center;
  background: linear-gradient(135deg, #0f172a 0%, #312e81 50%, #4f46e5 100%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(99, 102, 241, 0.3) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 80%, rgba(79, 70, 229, 0.2) 0%, transparent 50%);
}
.hero > .container { position: relative; z-index: 1; }
.hero h1 {
  font-size: 3rem; font-weight: 800; letter-spacing: -1.5px;
  color: #fff; margin-bottom: 16px; line-height: 1.15;
}
.hero p {
  max-width: 560px; margin: 0 auto 32px;
  color: rgba(255,255,255,0.7); font-size: 1.125rem; line-height: 1.7;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; }
.hero .btn-primary {
  background: #fff; color: var(--navy); border-color: #fff;
  font-weight: 600; box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.hero .btn-primary:hover { background: #f1f5f9; }
.hero .btn-outline {
  border-color: rgba(255,255,255,0.3); color: #fff; background: rgba(255,255,255,0.06);
}
.hero .btn-outline:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.12); }

/* ── SECTIONS ── */
.section { padding: 72px 0; }
.section-alt { background: var(--surface-alt); }
.section h2 {
  font-size: 2rem; font-weight: 700; letter-spacing: -0.5px;
  margin-bottom: 8px; color: var(--text);
}
.section-sub {
  color: var(--text-2); margin-bottom: 36px; max-width: 560px;
  font-size: 1.0625rem; line-height: 1.6;
}

/* ── GRID ── */
.grid { display: grid; gap: 24px; }
.product-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.blog-grid { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }

/* ── CARDS ── */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  cursor: pointer; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  box-shadow: var(--shadow-sm);
}
.card:hover {
  transform: translateY(-2px); box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}
.card-body { padding: 16px 20px; }

/* ── BADGE / TAG ── */
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 99px;
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
  background: var(--accent-light); color: var(--accent);
}
.badge-green { background: var(--green-soft); color: var(--green); }
.badge-yellow { background: var(--yellow-soft); color: var(--yellow); }
.badge-sm { font-size: 0.625rem; padding: 1px 7px; }
.tag {
  display: inline-block; padding: 3px 10px; margin: 2px;
  border-radius: 6px; font-size: 0.75rem; font-weight: 500;
  background: var(--surface-alt); color: var(--text-2);
  border: 1px solid var(--border);
}

/* ── PRODUCTS ── */
.product-img {
  height: 200px; background: var(--surface-alt);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-card h3 { font-size: 1rem; font-weight: 600; margin: 10px 0 6px; color: var(--text); line-height: 1.4; }
.product-meta { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.price { font-size: 1.25rem; font-weight: 700; color: var(--green); }
.original-price { font-size: 0.85rem; color: var(--text-3); text-decoration: line-through; }
.rating { color: var(--yellow); font-size: 0.85rem; letter-spacing: 1px; }
.rating span { color: var(--text-3); font-size: 0.8rem; letter-spacing: 0; }
.brand { font-size: 0.8rem; color: var(--text-3); margin-top: 2px; }

/* ── PRODUCT DETAIL ── */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.product-detail-img {
  background: var(--surface-alt); border-radius: var(--radius-lg);
  height: 340px; display: flex; align-items: center; justify-content: center;
  overflow: hidden; border: 1px solid var(--border);
}
.product-detail-img img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-info h2 { font-size: 1.5rem; font-weight: 700; margin: 8px 0 4px; }
.price-lg { font-size: 2rem; font-weight: 800; color: var(--green); }
.price-block { display: flex; align-items: baseline; gap: 12px; margin: 16px 0; }
.specs-table { width: 100%; margin: 20px 0; border-collapse: collapse; }
.specs-table td {
  padding: 10px 16px; font-size: 0.875rem;
  border-bottom: 1px solid var(--border);
}
.specs-table tr:last-child td { border-bottom: none; }
.specs-table td:first-child { color: var(--text-2); font-weight: 500; width: 120px; }
.product-actions { margin: 20px 0; }
.tags { margin-top: 16px; }

/* ── REVIEWS ── */
.reviews-section { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--border); }
.review-summary { display: flex; gap: 28px; margin-bottom: 28px; align-items: center; }
.review-avg { font-size: 3.5rem; font-weight: 800; color: var(--yellow); line-height: 1; }
.review-avg small { font-size: 1rem; color: var(--text-3); font-weight: 400; }
.review-bars { flex: 1; }
.review-bar { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--text-2); margin-bottom: 4px; }
.bar { flex: 1; height: 8px; background: var(--surface-alt); border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--yellow); border-radius: 4px; transition: width 0.4s ease; }
.review { padding: 20px 0; border-bottom: 1px solid var(--border); }
.review:last-child { border-bottom: none; }
.review-header {
  display: flex; gap: 8px; align-items: center;
  margin-bottom: 6px; font-size: 0.875rem;
}
.review p { font-size: 0.875rem; color: var(--text-2); margin-top: 6px; line-height: 1.6; }

/* ── FILTERS ── */
.filters { display: flex; gap: 12px; margin-bottom: 28px; flex-wrap: wrap; }
.filters select, .filters input {
  padding: 10px 14px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--surface);
  color: var(--text); font-size: 0.875rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.filters select:focus, .filters input:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.filters input { flex: 1; min-width: 220px; }

/* ── PAGINATION ── */
.pagination {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-top: 32px; color: var(--text-2); font-size: 0.875rem;
}

/* ── FORMS ── */
.form-group { flex: 1; min-width: 140px; margin-bottom: 16px; }
.form-group label {
  display: block; font-size: 0.8rem; font-weight: 600;
  color: var(--text-2); margin-bottom: 6px; text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--surface);
  color: var(--text); font-size: 0.875rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none; font-family: inherit;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-group textarea { min-height: 100px; resize: vertical; }

/* ── FLIGHTS ── */
.flight-search-form {
  background: var(--surface); padding: 28px;
  border-radius: var(--radius-xl); border: 1px solid var(--border);
  margin-bottom: 36px; box-shadow: var(--shadow-md);
}
.form-row { display: flex; gap: 16px; align-items: end; flex-wrap: wrap; }
.form-row .form-group { margin-bottom: 0; }
.flight-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px; margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.flight-card:hover { box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.flight-header {
  display: flex; gap: 12px; align-items: center;
  margin-bottom: 20px; font-size: 0.875rem; color: var(--text-2);
}
.airline { font-weight: 700; color: var(--text); font-size: 0.9375rem; }
.flight-num { font-family: monospace; background: var(--surface-alt); padding: 2px 8px; border-radius: 4px; font-size: 0.8rem; }
.aircraft { font-size: 0.8rem; }
.flight-route { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.flight-point { text-align: center; min-width: 70px; }
.flight-point strong { font-size: 1.5rem; letter-spacing: -0.5px; display: block; }
.flight-point span { font-size: 0.875rem; color: var(--text-2); }
.flight-line { flex: 1; text-align: center; font-size: 0.8rem; color: var(--text-2); position: relative; }
.flight-line .line {
  height: 2px; background: var(--border-strong); margin: 6px 0;
  position: relative;
}
.flight-line .line::before, .flight-line .line::after {
  content: ''; position: absolute; top: -4px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--surface);
  box-shadow: var(--shadow-sm);
}
.flight-line .line::before { left: -2px; }
.flight-line .line::after { right: -2px; }
.flight-prices { display: flex; gap: 12px; margin-bottom: 16px; }
.cabin-price {
  padding: 12px 16px; border: 1px solid var(--border);
  border-radius: var(--radius); text-align: center; flex: 1;
  font-size: 0.8rem; transition: border-color 0.2s, background 0.2s;
}
.cabin-price:hover { border-color: var(--accent); background: var(--accent-soft); }
.cabin-price span { display: block; color: var(--text-2); margin-bottom: 4px; }
.cabin-price strong { display: block; font-size: 1.2rem; color: var(--green); }
.cabin-price small { color: var(--text-3); }
.cabin-price.sold-out { opacity: 0.35; pointer-events: none; }
.flight-amenities { display: flex; gap: 6px; flex-wrap: wrap; }

/* ── BANKING ── */
.banking-grid { display: grid; gap: 24px; }
.balance-summary {
  background: linear-gradient(135deg, #312e81 0%, #4f46e5 60%, #6366f1 100%);
  padding: 40px; border-radius: var(--radius-xl); color: #fff;
  text-align: center; box-shadow: 0 4px 20px rgba(79, 70, 229, 0.25);
  position: relative; overflow: hidden;
}
.balance-summary::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%);
}
.balance-summary h3 { font-size: 0.875rem; font-weight: 500; opacity: 0.8; text-transform: uppercase; letter-spacing: 1px; position: relative; }
.balance-amount { font-size: 2.75rem; font-weight: 800; letter-spacing: -1px; position: relative; }
.accounts-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px;
}
.account-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  box-shadow: var(--shadow-sm); transition: box-shadow 0.2s;
}
.account-card:hover { box-shadow: var(--shadow-md); }
.account-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.account-type {
  font-size: 0.7rem; font-weight: 700; color: var(--accent);
  text-transform: uppercase; letter-spacing: 1px;
  background: var(--accent-light); padding: 3px 10px; border-radius: 99px;
}
.account-name { font-size: 0.85rem; color: var(--text-2); font-weight: 500; }
.account-number { font-size: 0.875rem; color: var(--text-3); font-family: monospace; margin-bottom: 4px; }
.account-balance { font-size: 1.75rem; font-weight: 700; margin: 8px 0; letter-spacing: -0.5px; }
.account-balance.negative { color: var(--red); }
.account-rate, .account-limit { font-size: 0.8rem; color: var(--text-2); margin-bottom: 4px; }
.tx-table { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 0.85rem; }
.tx-table th {
  text-align: left; padding: 10px 14px;
  border-bottom: 2px solid var(--border); color: var(--text-2);
  font-weight: 600; font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.5px;
}
.tx-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); }
.tx-table tbody tr:hover { background: var(--surface-alt); }
.positive { color: var(--green); font-weight: 600; }
.negative { color: var(--red); font-weight: 600; }

/* ── BANK CARDS ── */
.cards-section { margin-top: 24px; }
.cards-section h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 16px; }
.bank-card {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border: none; border-radius: var(--radius-lg);
  padding: 24px; margin-bottom: 12px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  color: #fff; box-shadow: var(--shadow-md);
  transition: transform 0.2s, box-shadow 0.2s;
}
.bank-card:hover { transform: translateY(-1px); box-shadow: var(--shadow-xl); }
.bank-card.frozen { opacity: 0.5; border: 2px solid var(--red); }
.card-brand { font-weight: 800; font-size: 1.1rem; min-width: 90px; }
.card-number { font-family: monospace; font-size: 1rem; flex: 1; letter-spacing: 2px; }
.card-details { font-size: 0.8rem; color: rgba(255,255,255,0.6); display: flex; gap: 16px; }
.card-rewards { font-size: 0.8rem; color: rgba(255,255,255,0.7); }
.bank-card .btn { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.2); color: #fff; }
.bank-card .btn:hover { background: rgba(255,255,255,0.25); }

/* ── SOCIAL ── */
.post-composer {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px;
  margin-bottom: 24px; display: flex; gap: 12px; align-items: flex-start;
  box-shadow: var(--shadow-sm);
}
.post-composer textarea {
  flex: 1; min-height: 64px; padding: 12px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface-alt); color: var(--text);
  resize: none; font-family: inherit; font-size: 0.9375rem;
  outline: none; transition: border-color 0.2s;
}
.post-composer textarea:focus { border-color: var(--accent); }
.post-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  margin-bottom: 16px; box-shadow: var(--shadow-sm);
}
.post-header { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface-alt); border: 2px solid var(--border);
  flex-shrink: 0;
}
.avatar-sm { width: 30px; height: 30px; border-radius: 50%; background: var(--surface-alt); border: 1px solid var(--border); }
.post-card p { font-size: 0.9375rem; line-height: 1.65; color: var(--text); }
.post-image {
  border-radius: var(--radius); margin: 14px 0;
  max-height: 360px; width: 100%; object-fit: cover;
  border: 1px solid var(--border);
}
.link-preview {
  display: block; background: var(--surface-alt); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px; margin: 14px 0;
  transition: border-color 0.2s;
}
.link-preview:hover { border-color: var(--accent); }
.link-preview strong { color: var(--text); }
.link-preview p { font-size: 0.85rem; color: var(--text-2); margin-top: 4px; }
.post-actions { display: flex; gap: 4px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.post-actions button {
  background: none; border: none; color: var(--text-2);
  cursor: pointer; font-size: 0.875rem;
  display: flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.post-actions button:hover { color: var(--accent); background: var(--accent-soft); }

/* ── BLOG ── */
.blog-categories { display: flex; gap: 8px; margin-bottom: 28px; flex-wrap: wrap; }
.blog-img { height: 200px; background: var(--surface-alt); overflow: hidden; }
.blog-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.blog-card:hover .blog-img img { transform: scale(1.04); }
.blog-card h3 { font-size: 1.0625rem; font-weight: 600; margin: 10px 0 8px; color: var(--text); line-height: 1.4; }
.blog-card p { font-size: 0.85rem; color: var(--text-2); line-height: 1.5; }
.blog-meta {
  display: flex; gap: 12px; font-size: 0.8rem; color: var(--text-3);
  margin: 10px 0; align-items: center; flex-wrap: wrap;
}
.blog-meta span + span::before { content: '\b7'; margin-right: 12px; }
.blog-stats { display: flex; gap: 14px; font-size: 0.8rem; color: var(--text-3); margin-top: 4px; }
.blog-detail h2 { font-size: 1.75rem; font-weight: 700; margin: 12px 0 16px; letter-spacing: -0.5px; }
.blog-content { line-height: 1.8; color: var(--text-2); margin: 24px 0; font-size: 1rem; }
.blog-tags { margin-top: 20px; }

/* ── SUPPORT ── */
.support-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.faq-section h3, .ticket-section h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 20px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 8px; overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item[open] { border-color: var(--accent); }
.faq-item summary {
  padding: 16px 20px; cursor: pointer; font-size: 0.9375rem;
  display: flex; align-items: center; gap: 10px;
  font-weight: 500; transition: background 0.15s;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; margin-left: auto; font-size: 1.2rem;
  color: var(--text-3); font-weight: 300; transition: transform 0.2s;
}
.faq-item[open] summary::after { content: '\2212'; color: var(--accent); }
.faq-item summary:hover { background: var(--surface-alt); }
.faq-item p {
  padding: 0 20px 18px; font-size: 0.875rem; color: var(--text-2);
  line-height: 1.65; border-top: 1px solid var(--border); padding-top: 16px; margin: 0 20px;
}
.ticket-section form {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow-sm);
}

/* ── API DOCS ── */
.api-section {
  margin-bottom: 36px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.api-section h3 {
  margin: 0; padding: 16px 24px; font-size: 1rem;
  background: var(--surface-alt); border-bottom: 1px solid var(--border);
  font-weight: 700;
}
.api-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.api-table tr { border-bottom: 1px solid var(--border); }
.api-table tr:last-child { border-bottom: none; }
.api-table tr:hover { background: var(--surface-alt); }
.api-table td { padding: 10px 16px; vertical-align: middle; }
.method {
  font-family: 'SF Mono', 'Cascadia Code', 'Fira Code', monospace;
  font-weight: 700; font-size: 0.7rem; padding: 3px 8px;
  border-radius: 4px; text-transform: uppercase; letter-spacing: 0.5px;
  display: inline-block;
}
.method-get { background: var(--green-soft); color: var(--green); }
.method-post { background: var(--accent-soft); color: var(--accent); }
.method-put { background: var(--yellow-soft); color: var(--yellow); }
.method-delete { background: var(--red-soft); color: var(--red); }
.method-all { background: var(--surface-alt); color: var(--text-2); }
.endpoint {
  font-family: 'SF Mono', 'Cascadia Code', 'Fira Code', monospace;
  color: var(--text); font-size: 0.8rem;
}

/* ── MODAL ── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 36px;
  max-width: 480px; width: 100%; position: relative;
  max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: modalIn 0.2s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-lg { max-width: 920px; }
.modal-close {
  position: absolute; top: 16px; right: 20px;
  background: var(--surface-alt); border: 1px solid var(--border);
  color: var(--text-2); font-size: 1.2rem; cursor: pointer;
  width: 32px; height: 32px; display: flex; align-items: center;
  justify-content: center; border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.modal-close:hover { background: var(--border); color: var(--text); }
.modal h2 { font-size: 1.375rem; font-weight: 700; margin-bottom: 24px; }
.toggle-auth { text-align: center; margin-top: 20px; font-size: 0.85rem; color: var(--text-2); }
.toggle-auth a { font-weight: 600; }

/* ── FOOTER ── */
.footer {
  background: var(--navy); color: rgba(255,255,255,0.7);
  padding: 56px 0 28px; margin-top: 0;
}
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-col h4 { color: #fff; margin-bottom: 16px; font-size: 0.9375rem; font-weight: 600; }
.footer-col p { font-size: 0.85rem; color: rgba(255,255,255,0.5); line-height: 1.6; }
.footer-col a {
  display: block; font-size: 0.85rem; color: rgba(255,255,255,0.5);
  margin-bottom: 10px; transition: color 0.2s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: 40px; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center; font-size: 0.8rem; color: rgba(255,255,255,0.35);
}

.muted { color: var(--text-2); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .nav-links { display: none; }
  .hero { padding: 56px 0 48px; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .section { padding: 48px 0; }
  .section h2 { font-size: 1.5rem; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .product-detail { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; }
  .support-cols { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
  .flight-prices { flex-direction: column; }
  .accounts-list { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; gap: 16px; }
  .bank-card { padding: 16px; gap: 12px; }
  .balance-amount { font-size: 2rem; }
  .modal { padding: 24px; margin: 12px; }
}

@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
  .product-img { height: 140px; }
  .flight-route { flex-direction: column; gap: 8px; }
  .flight-line { width: 100%; }
  .flight-line .line { margin: 8px auto; width: 60%; }
}
