* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #6c63ff;
  --primary-dark: #574fd6;
  --dark: #0f0f1a;
  --dark2: #1a1a2e;
  --dark3: #16213e;
  --card-bg: #1e1e35;
  --text: #e0e0f0;
  --text-muted: #9090b0;
  --accent: #00d4ff;
  --success: #00c896;
  --danger: #ff4d6d;
  --border: #2a2a4a;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: var(--dark);
  color: var(--text);
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; }

/* ── NAVBAR ── */
nav {
  background: var(--dark2);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo img {
  height: 42px;
  width: 42px;
  object-fit: contain;
  border-radius: 8px;
}

.nav-logo span {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.5px;
}

.nav-logo span em {
  color: var(--primary);
  font-style: normal;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.search-bar {
  display: flex;
  align-items: center;
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 12px;
  gap: 8px;
}

.search-bar input {
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 0.9rem;
  width: 180px;
}

.search-bar input::placeholder { color: var(--text-muted); }

.search-bar svg { color: var(--text-muted); }

.cart-btn {
  position: relative;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
}

.cart-btn:hover { background: var(--primary-dark); }

.cart-count {
  background: var(--accent);
  color: var(--dark);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--dark2) 0%, var(--dark3) 50%, #0d0d1f 100%);
  padding: 80px 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 60% 40%, rgba(108,99,255,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero h1 span { color: var(--primary); }

.hero p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto 2rem;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  display: inline-block;
}

.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--text);
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s, transform 0.1s;
  display: inline-block;
}

.btn-outline:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }

/* ── CATEGORIES ── */
.section {
  padding: 60px 2rem;
  max-width: 1300px;
  margin: 0 auto;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.section-title span { color: var(--primary); }

.section-sub {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1rem;
}

.category-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}

.category-card:hover, .category-card.active {
  border-color: var(--primary);
  transform: translateY(-3px);
}

.category-card .icon { font-size: 2rem; margin-bottom: 0.5rem; }
.category-card p { font-size: 0.85rem; color: var(--text-muted); }

/* ── PRODUCTS GRID ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}

.product-img {
  background: var(--dark3);
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
}

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.badge.sale { background: var(--danger); }
.badge.new { background: var(--success); }

.product-info {
  padding: 1rem;
}

.product-category {
  font-size: 0.75rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.3rem;
}

.product-name {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 0.8rem;
  font-size: 0.85rem;
  color: #ffd700;
}

.product-rating span { color: var(--text-muted); }

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
}

.product-price .old-price {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 400;
  display: block;
}

.add-to-cart {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s;
}

.add-to-cart:hover { background: var(--primary-dark); }

/* ── FILTERS (products page) ── */
.shop-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  max-width: 1300px;
  margin: 0 auto;
  padding: 40px 2rem;
}

.sidebar {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  height: fit-content;
  position: sticky;
  top: 90px;
}

.sidebar h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
}

.filter-group { margin-bottom: 1.5rem; }

.filter-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 0;
  transition: color 0.2s;
}

.filter-group label:hover { color: var(--text); }

.filter-group input[type="checkbox"] {
  accent-color: var(--primary);
  width: 15px;
  height: 15px;
}

.price-range {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.price-range input[type="range"] {
  accent-color: var(--primary);
  width: 100%;
}

.price-display {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
}

.sort-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.sort-bar select {
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  outline: none;
  cursor: pointer;
}

.results-count { color: var(--text-muted); font-size: 0.9rem; }

/* ── PRODUCT DETAIL ── */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 2rem;
}

.detail-img-box {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8rem;
}

.detail-info h1 { font-size: 1.8rem; font-weight: 700; margin-bottom: 0.5rem; }
.detail-info .cat-tag { color: var(--primary); font-size: 0.85rem; text-transform: uppercase; margin-bottom: 1rem; display: block; }

.detail-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 1rem;
}

.detail-price .old { font-size: 1rem; color: var(--text-muted); text-decoration: line-through; margin-left: 8px; font-weight: 400; }

.detail-desc { color: var(--text-muted); line-height: 1.7; margin-bottom: 1.5rem; font-size: 0.95rem; }

.specs-table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.specs-table td { padding: 8px 12px; font-size: 0.9rem; border-bottom: 1px solid var(--border); }
.specs-table td:first-child { color: var(--text-muted); width: 40%; }

.qty-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.qty-control button {
  background: var(--dark3);
  border: none;
  color: var(--text);
  width: 36px;
  height: 36px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.qty-control button:hover { background: var(--primary); }
.qty-control span { padding: 0 16px; font-weight: 600; }

.detail-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── CART ── */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 2rem;
}

.cart-items { display: flex; flex-direction: column; gap: 1rem; }

.cart-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cart-item-img {
  background: var(--dark3);
  border-radius: 10px;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  flex-shrink: 0;
}

.cart-item-info { flex: 1; }
.cart-item-info h4 { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.cart-item-info p { font-size: 0.85rem; color: var(--text-muted); }

.cart-item-price { font-size: 1.1rem; font-weight: 700; color: var(--accent); }

.remove-btn {
  background: none;
  border: none;
  color: var(--danger);
  cursor: pointer;
  font-size: 1.2rem;
  padding: 4px;
  transition: opacity 0.2s;
}

.remove-btn:hover { opacity: 0.7; }

.order-summary {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  height: fit-content;
  position: sticky;
  top: 90px;
}

.order-summary h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 1.5rem; }

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
  color: var(--text-muted);
}

.summary-row.total {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  border-top: 1px solid var(--border);
  padding-top: 0.8rem;
  margin-top: 0.8rem;
}

.checkout-btn {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 1.5rem;
  transition: background 0.2s;
}

.checkout-btn:hover { background: var(--primary-dark); }

.empty-cart {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-cart .icon { font-size: 4rem; margin-bottom: 1rem; }
.empty-cart h3 { font-size: 1.3rem; margin-bottom: 0.5rem; color: var(--text); }

/* ── FOOTER ── */
footer {
  background: var(--dark2);
  border-top: 1px solid var(--border);
  padding: 40px 2rem 20px;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  max-width: 1300px;
  margin: 0 auto 2rem;
}

.footer-brand img { height: 40px; margin-bottom: 1rem; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

.footer-col h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { color: var(--text-muted); font-size: 0.9rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--primary); }

.footer-bottom {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  max-width: 1300px;
  margin: 0 auto;
}

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--success);
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s;
}

.toast.show { transform: translateY(0); opacity: 1; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .shop-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .detail-layout { grid-template-columns: 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 2rem; }
}

@media (max-width: 600px) {
  .nav-links { display: none; }
  .search-bar { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.6rem; }

  .cart-btn {
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    justify-content: center;
    gap: 0;
    overflow: hidden;
    white-space: nowrap;
    text-indent: -9999px;
  }
  .cart-btn .cart-count {
    text-indent: 0;
    position: absolute;
    top: -4px;
    right: -4px;
    width: 16px;
    height: 16px;
    font-size: 0.6rem;
  }
  .cart-btn::after {
    content: '🛒';
    text-indent: 0;
    font-size: 1.1rem;
    position: absolute;
  }

  #authBtns a.btn-outline {
    padding: 5px 10px;
    font-size: 0.75rem;
  }
  #userMenu a { font-size: 0.75rem; }
}

/* ── SOFTWARE CARDS ── */
.sw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.8rem;
}

.sw-card {
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.8rem;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  user-select: none;
}

.sw-card:hover { border-color: var(--primary); }

.sw-card.selected {
  border-color: var(--success);
  background: rgba(0, 200, 150, 0.08);
}

.sw-icon { font-size: 1.6rem; flex-shrink: 0; }

.sw-info { flex: 1; min-width: 0; }

.sw-name { font-size: 0.85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sw-desc { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sw-tag { font-size: 0.7rem; background: var(--dark2); color: var(--primary); padding: 2px 6px; border-radius: 4px; display: inline-block; margin-top: 3px; }

.sw-check { font-size: 1rem; font-weight: 700; color: var(--text-muted); flex-shrink: 0; width: 20px; text-align: center; }

.sw-card.selected .sw-check { color: var(--success); }

/* ── PC BUILD PAGE ── */
.build-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 2rem;
}

.build-steps { display: flex; flex-direction: column; gap: 1.5rem; }

.build-step {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.build-step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 1rem 1.2rem;
  cursor: pointer;
  transition: background 0.2s;
}

.build-step-header:hover { background: rgba(108,99,255,0.08); }

.step-num {
  background: var(--primary);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.step-num.done { background: var(--success); }

.step-title { font-weight: 700; font-size: 1rem; flex: 1; }

.step-selected { font-size: 0.85rem; color: var(--accent); }

.step-arrow { color: var(--text-muted); transition: transform 0.2s; }
.step-arrow.open { transform: rotate(180deg); }

.build-step-body { display: none; padding: 0 1.2rem 1.2rem; }
.build-step-body.open { display: block; }

.component-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.8rem;
}

.comp-card {
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s;
}

.comp-card:hover { border-color: var(--primary); }
.comp-card.selected { border-color: var(--primary); background: rgba(108,99,255,0.1); }
.comp-card.incompatible { opacity: 0.4; pointer-events: none; }

.comp-emoji { font-size: 1.5rem; margin-bottom: 0.4rem; }
.comp-name { font-size: 0.85rem; font-weight: 600; line-height: 1.3; margin-bottom: 0.3rem; }
.comp-price { font-size: 0.9rem; font-weight: 700; color: var(--accent); }
.comp-tag { font-size: 0.7rem; background: var(--dark2); color: var(--primary); padding: 2px 6px; border-radius: 4px; display: inline-block; margin-top: 4px; }
.comp-warn { font-size: 0.7rem; color: var(--danger); margin-top: 3px; }

.build-summary {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  height: fit-content;
  position: sticky;
  top: 90px;
}

.build-summary h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 1.2rem; }

.build-summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}

.build-summary-item:last-of-type { border-bottom: none; }

.build-summary-item .label { color: var(--text-muted); }
.build-summary-item .val { font-weight: 600; color: var(--text); max-width: 160px; text-align: right; font-size: 0.8rem; }
.build-summary-item .val.empty { color: var(--border); font-style: italic; }

.build-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.build-total span:last-child { color: var(--accent); }

.compat-alert {
  background: rgba(255,77,109,0.1);
  border: 1px solid var(--danger);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.82rem;
  color: var(--danger);
  margin-top: 1rem;
  display: none;
}

/* ── SECOND HAND PAGE ── */
.sh-badge {
  background: var(--success);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.sh-badge.fair { background: #f59e0b; }
.sh-badge.good { background: var(--success); }
.sh-badge.vgood { background: var(--primary); }

.condition-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.cond-btn {
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.cond-btn:hover, .cond-btn.active {
  border-color: var(--primary);
  color: var(--primary);
}

@media (max-width: 900px) {
  .build-layout { grid-template-columns: 1fr; }
  .build-summary { position: static; }
}

/* ── WISHLIST BUTTON ── */
.wishlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(15,15,26,0.75);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.15s;
  z-index: 2;
}
.wishlist-btn:hover { background: rgba(108,99,255,0.5); transform: scale(1.1); }
.wishlist-btn.active { background: rgba(255,77,109,0.2); }

/* ── OUT OF STOCK OVERLAY ── */
.out-of-stock-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,15,26,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--danger);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 0;
}

/* ── SKELETON LOADERS ── */
.skeleton {
  background: linear-gradient(90deg, var(--dark3) 25%, var(--border) 50%, var(--dark3) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 6px;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.skeleton-card { pointer-events: none; }
.skeleton-img { width: 100%; height: 180px; border-radius: 0; }
.skeleton-line { height: 14px; margin-bottom: 8px; }
.skeleton-line.short { width: 40%; }
.skeleton-line.medium { width: 65%; }

/* ── CHECKOUT LAYOUT ── */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto 60px;
  padding: 0 2rem;
}

.checkout-section {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 1.2rem;
}

.checkout-section-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: var(--text);
}

/* ── FORM STYLES ── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.form-field { display: flex; flex-direction: column; gap: 5px; }
.form-field label { font-size: 0.82rem; color: var(--text-muted); font-weight: 600; }

.form-input {
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
  width: 100%;
}
.form-input:focus { border-color: var(--primary); }
.form-input::placeholder { color: var(--text-muted); }

/* ── PAYMENT OPTION ── */
.payment-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  cursor: pointer;
  transition: border-color 0.2s;
}
.payment-option:has(input:checked) { border-color: var(--primary); background: rgba(108,99,255,0.08); }
.payment-option input[type="radio"] { accent-color: var(--primary); width: 16px; height: 16px; flex-shrink: 0; }
.payment-icon { font-size: 1.5rem; }

/* ── INFO BANNER ── */
.info-banner {
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.25);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ── AUTH TABS ── */
.auth-tabs {
  display: flex;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 1.5rem;
  gap: 4px;
}

.auth-tab-btn {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 9px;
  border-radius: 7px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.auth-tab-btn.active { background: var(--primary); color: #fff; }

.auth-form-box {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.8rem;
}

/* ── ACCOUNT TABS ── */
.acct-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}

.acct-tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: -1px;
}
.acct-tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.acct-tab-btn:hover { color: var(--text); }

.acct-panel { display: none; }
.acct-panel.active { display: block; }

/* ── RESPONSIVE CHECKOUT ── */
@media (max-width: 900px) {
  .checkout-layout { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}
