/* ==========================================================================
   COMPONENTS — nav, buttons, cards, badges, forms, footer
   ========================================================================== */

/* ---------------------------------- NAV ---------------------------------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  padding-block: var(--sp-5);
  transition: padding var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
  border-bottom: 1px solid transparent;
}

.navbar.is-scrolled {
  padding-block: var(--sp-3);
  background: rgba(10, 10, 11, 0.78);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-md);
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  gap: 2px;
}
.brand-name { font-family: var(--font-display); font-weight: var(--fw-bold); white-space: nowrap; }
.brand-tagline {
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
}
/* Hide the tagline in the narrow band where nav-links share the row but there isn't
   room for both the full lockup and the links without wrapping. */
@media (min-width: 960px) and (max-width: 1080px) { .brand-tagline { display: none; } }

.brand-mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--gradient-primary);
  position: relative;
  flex-shrink: 0;
}
.brand-mark::after {
  content: '';
  position: absolute; inset: 3px;
  border-radius: 6px;
  background: var(--bg);
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

.nav-links {
  display: none;
  align-items: center;
  gap: var(--sp-7);
}

.nav-links a {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--text-muted);
  position: relative;
  padding-block: var(--sp-1);
  transition: color var(--dur-fast) var(--ease-out);
}
.nav-links a::after {
  content: '';
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--gradient-primary);
  border-radius: var(--radius-pill);
  transition: width var(--dur-base) var(--ease-out);
}
.nav-links a:hover,
.nav-links a.is-active { color: var(--text); }
.nav-links a:hover::after,
.nav-links a.is-active::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: var(--sp-4); }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: var(--radius-pill);
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-nav) - 1);
  background: rgba(10, 10, 11, 0.98);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), visibility var(--dur-base);
}
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mobile-menu a {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: var(--fw-semibold);
}

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none; }
}

/* --------------------------------- BUTTONS -------------------------------- */
.btn {
  --btn-pad-y: 0.9rem;
  --btn-pad-x: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
  will-change: transform;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--on-accent);
  box-shadow: var(--shadow-glow-accent);
}
.btn-primary:hover {
  background: var(--gradient-primary-hover);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 0 1px rgba(185, 151, 90, 0.35), 0 14px 50px rgba(185, 151, 90, 0.4);
}
.btn-primary:active { transform: translateY(0) scale(0.99); }

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-ghost {
  color: var(--text);
  padding-inline: var(--sp-2);
}
.btn-ghost::after {
  content: '→';
  display: inline-block;
  transition: transform var(--dur-fast) var(--ease-out);
}
.btn-ghost:hover::after { transform: translateX(4px); }

.btn-lg { --btn-pad-y: 1.1rem; --btn-pad-x: 2.25rem; font-size: var(--fs-base); }
.btn-block { width: 100%; }

.btn-icon-rotate {
  display: inline-flex;
  transition: transform var(--dur-base) var(--ease-out);
}
.btn:hover .btn-icon-rotate { transform: rotate(45deg); }

/* --------------------------------- BADGES --------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-pill);
  background: rgba(185, 151, 90, 0.12);
  border: 1px solid rgba(185, 151, 90, 0.3);
  color: var(--accent-2);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.02em;
}
.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 8px var(--accent-2);
}

/* ---------------------------------- CARDS ---------------------------------- */
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}

.card-hover:hover {
  transform: translateY(-6px);
  border-color: rgba(185, 151, 90, 0.4);
  box-shadow: var(--shadow-lg), var(--shadow-glow-accent);
  background: var(--bg-elevated-2);
}

/* 3D tilt card wrapper — JS toggles rotation via CSS custom props */
.tilt-card {
  --rx: 0deg;
  --ry: 0deg;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform var(--dur-base) var(--ease-out);
  transform-style: preserve-3d;
}

.icon-tile {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  color: var(--on-accent);
  margin-bottom: var(--sp-5);
  flex-shrink: 0;
}
.icon-tile svg { width: 24px; height: 24px; }

/* -------------------------------- FORM ELEMENTS ---------------------------- */
.field { display: flex; flex-direction: column; gap: var(--sp-2); margin-bottom: var(--sp-5); }
.field label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.field input,
.field textarea,
.field select {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: var(--sp-4);
  font-size: var(--fs-base);
  color: var(--text);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(185, 151, 90, 0.15);
}
.field textarea { resize: vertical; min-height: 140px; }
.field-row { display: grid; gap: var(--sp-4); }
@media (min-width: 640px) { .field-row-2 { grid-template-columns: 1fr 1fr; } }

/* ---------------------------------- FOOTER ---------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: var(--sp-9) var(--sp-6);
  position: relative;
  overflow: hidden;
}

.footer-cta {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(2.5rem, 3vw, 4rem);
  text-align: center;
  margin-bottom: var(--sp-9);
  position: relative;
  overflow: hidden;
}
.footer-cta::before {
  content: '';
  position: absolute;
  inset: -40%;
  background: var(--gradient-radial-glow);
  opacity: 0.6;
  pointer-events: none;
}
.footer-cta > * { position: relative; z-index: 1; }

.footer-grid {
  display: grid;
  gap: var(--sp-7);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

.footer-col h5 {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin-bottom: var(--sp-4);
}

.footer-links { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer-links a {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  transition: color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
  display: inline-block;
}
.footer-links a:hover { color: var(--text); transform: translateX(3px); }

.social-row { display: flex; gap: var(--sp-3); margin-top: var(--sp-5); }
.social-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out);
}
.social-icon:hover {
  transform: translateY(-3px) rotate(8deg);
  border-color: var(--accent-2);
  background: rgba(212, 178, 115, 0.1);
}
.social-icon svg { width: 16px; height: 16px; }

.footer-bottom {
  margin-top: var(--sp-8);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-xs);
  color: var(--text-faint);
}
.footer-bottom a { color: var(--text-faint); }
.footer-bottom a:hover { color: var(--text-muted); }

/* -------------------------------- NAV ACTIONS VISIBILITY -------------------------------- */
.nav-actions { display: none; }
@media (min-width: 960px) { .nav-actions { display: flex; } }

/* --------------------------------- BROWSER MOCKUP (portfolio placeholders) --------------------------------- */
.browser-mock {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-lg);
}
.browser-mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: var(--sp-3) var(--sp-4);
  background: var(--bg-elevated-2);
  border-bottom: 1px solid var(--border);
}
.browser-mock-bar span:nth-child(-n+3) {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  flex-shrink: 0;
}
.browser-mock-bar span:nth-child(1) { background: #ff6259; }
.browser-mock-bar span:nth-child(2) { background: #ffbd2e; }
.browser-mock-bar span:nth-child(3) { background: #28c941; }
.browser-mock-url {
  margin-left: var(--sp-3);
  flex: 1;
  background: var(--bg);
  border-radius: var(--radius-pill);
  padding: 4px var(--sp-4);
  font-size: var(--fs-xs);
  color: var(--text-faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mock-concept-chip {
  flex-shrink: 0;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-faint);
  border: 1px solid var(--border-strong);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.browser-mock-body {
  aspect-ratio: 4 / 3;
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  position: relative;
  overflow: hidden;
}

/* Legacy skeleton placeholders — kept for anywhere a plain wireframe is wanted */
.browser-mock-body .ph-line {
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.35);
}
.browser-mock-body .ph-block {
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.16);
  flex: 1;
}

/* Real screenshot mockups (portfolio) — full homepage designs cropped into the browser frame */
.browser-mock-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
}
.browser-mock-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform var(--dur-slow) var(--ease-out);
}
.portfolio-card:hover .browser-mock-img img { transform: scale(1.04); }

.mock-placeholder-tag {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  z-index: 2;
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  color: rgba(255, 255, 255, 0.8);
}

/* -------- Mini "live homepage" mockup: real nav/headline/CTA instead of skeleton bars -------- */
.mock-site {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  z-index: 1;
}

.mock-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: auto;
}
.mock-nav-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.mock-nav-dot {
  width: 14px; height: 14px;
  border-radius: 4px;
  background: #fff;
  flex-shrink: 0;
}
.mock-nav-links {
  display: flex;
  gap: 12px;
  font-size: 8.5px;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
}
.mock-nav-links span:first-child { color: rgba(255, 255, 255, 0.9); }
.mock-nav-btn {
  font-size: 8.5px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff;
  color: #0a0a0f;
  white-space: nowrap;
  flex-shrink: 0;
}

.mock-hero-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-block: 14px;
  max-width: 78%;
}
.mock-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  align-self: flex-start;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.mock-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  letter-spacing: -0.01em;
}
.mock-sub {
  font-size: 9.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.65);
  max-width: 30ch;
}
.mock-cta-row { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.mock-cta-btn {
  font-size: 9px;
  font-weight: 700;
  padding: 7px 13px;
  border-radius: 999px;
  background: #fff;
  color: #0a0a0f;
  white-space: nowrap;
}
.mock-cta-link {
  font-size: 9px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.mock-feature-row {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
}
.mock-feature {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 8px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 7px 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock-decor-icon {
  position: absolute;
  right: -10px;
  bottom: -18px;
  font-size: 90px;
  line-height: 1;
  opacity: 0.12;
  z-index: 0;
  pointer-events: none;
  filter: grayscale(1) brightness(2);
}

/* ==================== MOCK-SITE LAYOUT THEMES ====================
   Distinct portfolio "mini website" layouts — proves design range
   rather than one template re-skinned in different colours.
   ==================================================================== */

/* ---- Theme: split (image-led editorial — salons, cafes) ---- */
.mock-split-body {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}
.mock-split-text {
  flex: 1.15;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.mock-split-visual {
  flex: 0.85;
  height: 82%;
  align-self: center;
}
.mock-photo-block {
  width: 100%;
  height: 100%;
  min-height: 90px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
}
.mock-split-text .mock-title { font-size: 15px; }
.mock-split-text .mock-sub { max-width: none; }

/* ---- Theme: minimal (centered, elegant — law, professional services) ---- */
.mock-theme-minimal {
  align-items: center;
  justify-content: center;
  text-align: center;
}
.mock-theme-minimal .mock-nav {
  width: 100%;
  justify-content: center;
  gap: 18px;
  border-bottom: none;
  margin-bottom: 0;
}
.mock-theme-minimal .mock-nav-links { gap: 14px; }
.mock-minimal-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: auto;
}
.mock-minimal-eyebrow {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 4px;
}
.mock-minimal-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
  max-width: 80%;
}
.mock-minimal-line {
  width: 26px;
  height: 2px;
  background: rgba(255, 255, 255, 0.4);
  margin-block: 12px;
}
.mock-cta-outline {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 7px 16px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  color: #fff;
}

/* ---- Theme: gallery (grid-led — nails, visual/creative work) ---- */
.mock-gallery-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-block: 10px 12px;
}
.mock-gallery-head .mock-title { font-size: 14px; }
.mock-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  flex: 1;
}
.mock-gallery-tile {
  aspect-ratio: 1;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

/* ---- Theme: menu (list-led — cafes, restaurants) ---- */
.mock-menu-head { padding-block: 10px 4px; }
.mock-menu-head .mock-title { font-size: 14px; }
.mock-menu-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  margin-top: 4px;
}
.mock-menu-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.8);
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.16);
}
.mock-menu-item .price { color: inherit; font-weight: 700; flex-shrink: 0; }

/* ---- Theme: stats (trust-metrics — clinics, established services) ---- */
.mock-stats-row {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
}
.mock-stat {
  flex: 1;
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px 4px;
}
.mock-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.mock-stat span {
  font-size: 7px;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------------------------- PAGE HERO (secondary pages) ---------------------------- */
.page-hero {
  position: relative;
  padding-top: clamp(7rem, 8vw, 9.5rem);
  padding-bottom: var(--sp-6);
  overflow: hidden;
  text-align: center;
}
.page-hero .hero-blob { opacity: 0.4; }
.page-hero-inner { position: relative; z-index: 1; }
.page-hero h1 { max-width: 18ch; margin-inline: auto; }
.page-hero .lead { margin-inline: auto; }

/* --------------------------------- DIVIDERS --------------------------------- */
.divider-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
  border: none;
  margin-block: var(--sp-8);
}

/* --------------------------------- TABLE (pricing detail) --------------------------------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.addon-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.addon-table th, .addon-table td {
  text-align: left;
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--border);
  font-size: var(--fs-sm);
}
.addon-table th {
  background: var(--bg-elevated);
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: var(--fs-xs);
}
.addon-table tbody tr { transition: background var(--dur-fast) var(--ease-out); }
.addon-table tbody tr:hover { background: rgba(185, 151, 90, 0.06); }
.addon-table tbody tr:last-child td { border-bottom: none; }
.addon-table .price-cell { color: var(--accent-2); font-weight: var(--fw-semibold); white-space: nowrap; }

/* ---- Responsive card transform below 640px: table rows become stacked cards ---- */
@media (max-width: 640px) {
  .table-wrap { border: none; overflow: visible; }
  .addon-table { min-width: 0; display: block; }
  .addon-table thead { display: none; }
  .addon-table tbody { display: flex; flex-direction: column; gap: var(--sp-4); }
  .addon-table tr {
    display: block;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--sp-4) var(--sp-5);
  }
  .addon-table td {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--sp-4);
    padding: var(--sp-2) 0;
    border-bottom: 1px solid var(--border);
    text-align: right;
  }
  .addon-table tr td:first-child {
    font-family: var(--font-display);
    font-weight: var(--fw-semibold);
    font-size: var(--fs-base);
    text-align: left;
    color: var(--text);
  }
  .addon-table tr td:first-child::before { content: none; }
  .addon-table td:last-child { border-bottom: none; }
  .addon-table td::before {
    content: attr(data-label);
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-faint);
    text-align: left;
  }
}
