/* ═══════════════════════════════════════════════════════════════
   FAME — Light-Theme Design System
   Impeccable-guided · Mobile-first · Category-color themed
   ═══════════════════════════════════════════════════════════════ */

/* ─── Design Tokens ─────────────────────────────────────────── */
:root {
  /* Typography — DM Sans (not Inter, flagged overused by Impeccable) */
  --font: 'DM Sans', system-ui, -apple-system, sans-serif;

  /* Category accent — overridden inline per page via style="--cat-color: #E1306C".
     Everything category-themed derives from this one value via color-mix,
     so a single hex re-skins the whole surface. */
  --cat-color: #6C63FF;

  /* Derived category tints — premium, flexible, all from --cat-color */
  --cat-wash:    color-mix(in srgb, var(--cat-color) 9%,  white);
  --cat-tint:    color-mix(in srgb, var(--cat-color) 18%, white);
  --cat-edge:    color-mix(in srgb, var(--cat-color) 30%, transparent);
  --cat-glow:    color-mix(in srgb, var(--cat-color) 22%, transparent);
  --cat-ink:     color-mix(in srgb, var(--cat-color) 72%, #1B1340);

  /* Surfaces — warm-tinted, never pure gray (Impeccable rule) */
  --bg-page: #F5F3FA;
  --bg-card: #FFFFFF;
  --bg-raised: #EFEDF6;
  --bg-inset: #F8F7FC;

  /* Borders */
  --border: rgba(27, 19, 64, 0.07);
  --border-strong: rgba(27, 19, 64, 0.13);

  /* Text — warm-tinted ink (never pure black/gray) */
  --text-primary: #1B1340;
  --text-secondary: #5C5478;
  --text-muted: #8E87A5;

  /* Status */
  --success: #16A34A;
  --warning: #E8930C;
  --danger: #DC2626;

  /* Spacing (8px rhythm) */
  --space-2xs: 2px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* Radii — small & refined (Impeccable: restrained) */
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-pill: 100px;

  /* Shadows — warm-tinted, never pure black */
  --shadow-xs: 0 1px 2px rgba(27,19,64,0.04);
  --shadow-sm: 0 1px 4px rgba(27,19,64,0.06);
  --shadow-md: 0 4px 16px rgba(27,19,64,0.07);
  --shadow-lg: 0 8px 32px rgba(27,19,64,0.09);
  --shadow-xl: 0 16px 48px rgba(27,19,64,0.12);

  /* Motion — smooth decelerate, NO bounce (Impeccable anti-pattern) */
  --ease: cubic-bezier(.4, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --duration: 0.2s;
  --duration-md: 0.3s;
  --duration-slow: 0.4s;
}

/* ─── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body {
  font-family: var(--font);
  background: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--cat-color); text-decoration: none; transition: color var(--duration) var(--ease); }
a:hover { opacity: 0.85; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
input, button, select, textarea { font-family: inherit; }

/* ─── Container ──────────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 var(--space-md); }

/* ─── Entrance Animations ────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.animate-in {
  animation: fadeInUp var(--duration-slow) var(--ease-out) both;
}
.animate-in-delay-1 { animation-delay: 0.06s; }
.animate-in-delay-2 { animation-delay: 0.12s; }
.animate-in-delay-3 { animation-delay: 0.18s; }
.animate-in-delay-4 { animation-delay: 0.24s; }
.animate-in-delay-5 { animation-delay: 0.30s; }
.animate-in-delay-6 { animation-delay: 0.36s; }

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition-property: transform, background-color, border-color, box-shadow, color, opacity;
  transition-duration: var(--duration);
  transition-timing-function: var(--ease);
  text-decoration: none;
  white-space: nowrap;
  min-height: 44px;
  line-height: 1.3;
}
.btn--primary {
  background: var(--cat-color);
  color: #fff;
  border-color: var(--cat-color);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--cat-color) 25%, transparent);
}
.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px color-mix(in srgb, var(--cat-color) 35%, transparent);
  color: #fff;
  opacity: 1;
}
.btn--outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text-primary);
}
.btn--outline:hover {
  border-color: var(--cat-color);
  color: var(--cat-color);
  background: color-mix(in srgb, var(--cat-color) 4%, transparent);
  opacity: 1;
}
.btn--success { background: var(--success); color: #fff; border-color: var(--success); }
.btn--danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn--sm { padding: 6px 14px; font-size: 0.8rem; min-height: 36px; }
.btn--lg { padding: 14px 28px; font-size: 0.95rem; }
.btn--full { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; }
.btn:active:not(:disabled) { transform: scale(0.97); }

/* ─── Chip / Badge ───────────────────────────────────────────── */
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--bg-raised);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  white-space: nowrap;
}
.chip--primary {
  background: color-mix(in srgb, var(--cat-color) 10%, transparent);
  color: var(--cat-color);
  border-color: color-mix(in srgb, var(--cat-color) 20%, transparent);
}
.chip--success {
  background: rgba(22,163,74,0.08);
  color: var(--success);
  border-color: rgba(22,163,74,0.18);
}

/* ─── Nav ────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 color-mix(in srgb, #6C63FF 18%, transparent),
              0 2px 12px rgba(27,19,64,0.05);
  padding: 12px 0;
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-md);
}
.nav__brand {
  display: flex; align-items: center; gap: 6px;
  font-size: 1.15rem; font-weight: 700;
  color: var(--text-primary); text-decoration: none;
}
.nav__brand:hover { opacity: 1; }
.nav__logo-icon { font-size: 1.3rem; }
.nav__logo-text {
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.nav__links { display: flex; gap: 1.5rem; }
.nav__link {
  color: var(--text-secondary); font-size: 0.875rem; font-weight: 500;
  transition: color var(--duration) var(--ease);
  padding: 4px 0;
}
.nav__link:hover { color: var(--text-primary); opacity: 1; }
@media (max-width: 639px) { .nav__links { display: none; } }

/* ─── Section ────────────────────────────────────────────────── */
.section { padding: var(--space-2xl) 0; }
.section--alt { background: var(--bg-raised); }
.section__header { text-align: center; margin-bottom: var(--space-xl); }
.section__label {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--cat-color);
  margin-bottom: 6px;
}
.section__title {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 700; line-height: 1.25;
  color: var(--text-primary);
  text-wrap: balance;
}
.section__sub { color: var(--text-secondary); margin-top: 6px; font-size: 0.9rem; }

/* ─── Platform Rows (Category Cards on Home) ────────────────── */
.platform-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 640px) {
  .platform-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

.platform-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-width: 0;
  background: linear-gradient(115deg,
    color-mix(in srgb, var(--cat-color) 8%, #ffffff) 0%,
    #ffffff 55%);
  border: 1.5px solid color-mix(in srgb, var(--cat-color) 20%, rgba(27,19,64,0.07));
  border-radius: var(--radius);
  padding: 14px 16px;
  transition-property: border-color, box-shadow, transform, background;
  transition-duration: var(--duration);
  transition-timing-function: var(--ease);
  cursor: pointer;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--cat-color) 8%, transparent);
}
.platform-row:hover {
  border-color: var(--cat-edge);
  box-shadow: 0 8px 28px var(--cat-glow);
  transform: translateY(-2px);
}
.platform-row__left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}
.platform-row__icon {
  width: 46px; height: 46px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  background: color-mix(in srgb, var(--cat-color) 18%, white);
  color: var(--cat-color);
  border: 1px solid color-mix(in srgb, var(--cat-color) 24%, transparent);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--cat-color) 14%, transparent);
}
.platform-row__info { min-width: 0; }
.platform-row__name {
  font-size: 0.9rem; font-weight: 600;
  color: var(--text-primary);
  line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.platform-row__meta {
  display: block;
  margin-top: 2px;
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.platform-row__dot { opacity: .4; }
.platform-row__count { color: var(--cat-color); font-weight: 600; }

.platform-row__btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: var(--cat-color);
  color: #fff;
  font-size: 0.78rem; font-weight: 600;
  text-decoration: none;
  white-space: nowrap; flex-shrink: 0;
  transition-property: transform, box-shadow, background-color;
  transition-duration: var(--duration);
  transition-timing-function: var(--ease);
  box-shadow: 0 2px 10px color-mix(in srgb, var(--cat-color) 28%, transparent);
  min-height: 36px;
}
.platform-row__btn:hover {
  transform: translateX(3px);
  box-shadow: 0 4px 18px color-mix(in srgb, var(--cat-color) 38%, transparent);
  color: #fff;
  opacity: 1;
}

/* ─── Subcategory Card Grid ──────────────────────────────────── */
.subcat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (min-width: 640px) {
  .subcat-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
}
@media (min-width: 768px) {
  .subcat-grid { grid-template-columns: repeat(4, 1fr); }
}

.subcat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 12px;
  background: linear-gradient(160deg,
    color-mix(in srgb, var(--cat-color) 7%, #ffffff) 0%,
    #ffffff 60%);
  border: 1.5px solid color-mix(in srgb, var(--cat-color) 20%, rgba(27,19,64,0.07));
  border-radius: var(--radius);
  text-decoration: none;
  transition-property: border-color, box-shadow, transform;
  transition-duration: var(--duration);
  transition-timing-function: var(--ease);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--cat-color) 8%, transparent);
  text-align: center;
  cursor: pointer;
  min-height: 110px;
  justify-content: center;
}
.subcat-card:hover {
  border-color: var(--cat-edge);
  box-shadow: 0 6px 24px var(--cat-glow);
  transform: translateY(-2px);
  opacity: 1;
}
.subcat-card__icon {
  width: 44px; height: 44px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  background: color-mix(in srgb, var(--cat-color) 18%, white);
  color: var(--cat-color);
  border: 1px solid color-mix(in srgb, var(--cat-color) 22%, transparent);
}
.subcat-card__name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}
.subcat-card__count {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ─── Service Rows ───────────────────────────────────────────── */
.service-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  transition-property: border-color, box-shadow, transform, background;
  transition-duration: var(--duration);
  transition-timing-function: var(--ease);
  box-shadow: var(--shadow-xs);
}
.service-row:hover {
  background: linear-gradient(105deg,
    color-mix(in srgb, var(--cat-color) 6%, #ffffff) 0%,
    #ffffff 45%);
  border-color: color-mix(in srgb, var(--cat-color) 35%, var(--border));
  box-shadow: 0 4px 18px color-mix(in srgb, var(--cat-color) 14%, transparent);
  transform: translateX(2px);
}
.service-row__left {
  display: flex; align-items: center; gap: 10px;
  min-width: 0; flex: 1;
}
.service-row__type {
  display: inline-flex; align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 0.68rem; font-weight: 700;
  white-space: nowrap; flex-shrink: 0;
  background: color-mix(in srgb, var(--cat-color) 10%, white);
  color: var(--cat-color);
  border: 1px solid color-mix(in srgb, var(--cat-color) 20%, transparent);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.service-row__name {
  font-size: 0.85rem; font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2; line-clamp: 2;
  -webkit-box-orient: vertical;
}
.service-row__right {
  display: flex; align-items: center; gap: 12px; flex-shrink: 0;
}
.service-row__price {
  font-size: 1rem; font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap; text-align: right;
  font-variant-numeric: tabular-nums;
}
.service-row__price span {
  font-size: 0.7rem; font-weight: 500; color: var(--text-muted);
}
.service-row__btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  background: var(--cat-color);
  color: #fff;
  font-size: 0.78rem; font-weight: 600;
  text-decoration: none; white-space: nowrap; flex-shrink: 0;
  transition-property: transform, box-shadow, background-color;
  transition-duration: var(--duration);
  transition-timing-function: var(--ease);
  box-shadow: 0 2px 10px color-mix(in srgb, var(--cat-color) 28%, transparent);
  min-height: 36px;
}
.service-row__btn:hover {
  transform: translateX(3px);
  box-shadow: 0 4px 18px color-mix(in srgb, var(--cat-color) 38%, transparent);
  color: #fff; opacity: 1;
}
@media (max-width: 559px) {
  .service-row { flex-wrap: wrap; gap: 10px; }
  .service-row__right { width: 100%; justify-content: space-between; }
}

/* ─── Filter Bar ─────────────────────────────────────────────── */
.filter-bar {
  display: flex; gap: 8px; margin-bottom: var(--space-lg);
  flex-wrap: wrap; align-items: center;
}
.filter-tab {
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem; font-weight: 600;
  border: 1.5px solid var(--border-strong);
  color: var(--text-secondary);
  cursor: pointer;
  background: var(--bg-card);
  transition: all var(--duration) var(--ease);
  font-family: var(--font);
  min-height: 36px;
}
.filter-tab:hover, .filter-tab.active {
  background: var(--cat-color); color: #fff;
  border-color: var(--cat-color);
}
.search-input {
  flex: 1; min-width: 180px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.875rem;
  outline: none;
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
  min-height: 40px;
}
.search-input:focus {
  border-color: var(--cat-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--cat-color) 12%, transparent);
}
.search-input::placeholder { color: var(--text-muted); }

/* ─── Purchase Page Service Header ──────────────────────────── */
.service-header { margin-bottom: var(--space-lg); }
.service-header__title {
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 6px;
  text-wrap: balance;
}
.service-header__desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: var(--space-lg);
  text-wrap: pretty;
}
.service-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}
.email-hint {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 5px;
}
.pay-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 10px;
}
.summary-service-name {
  text-align: right;
  max-width: 55%;
  font-size: 0.85rem;
}

/* ─── Purchase Form ──────────────────────────────────────────── */
.purchase-wrap {
  max-width: 860px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr; gap: var(--space-lg);
}
@media (min-width: 768px) {
  .purchase-wrap { grid-template-columns: 1fr 320px; }
}
.form-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}
.form-group { margin-bottom: var(--space-md); }
.form-label {
  display: block; font-size: 0.82rem; font-weight: 600;
  color: var(--text-secondary); margin-bottom: 6px;
}
.form-label span { color: var(--danger); }
.form-control {
  width: 100%;
  background: var(--bg-inset);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
  min-height: 44px;
}
.form-control:focus {
  background: var(--bg-card);
  border-color: var(--cat-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--cat-color) 10%, transparent);
}
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 100px; }
.qty-range {
  margin-top: 6px; display: flex;
  justify-content: space-between;
  font-size: 0.72rem; color: var(--text-muted);
}

/* ─── Order Summary ──────────────────────────────────────────── */
.order-summary {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
}
@media (min-width: 768px) {
  .order-summary { position: sticky; top: 5rem; }
}
.order-summary h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: var(--space-md); }
.summary-row {
  display: flex; justify-content: space-between;
  font-size: 0.85rem; margin-bottom: 10px;
  color: var(--text-secondary);
}
.summary-row.total {
  font-size: 1.15rem; font-weight: 700;
  color: var(--text-primary);
  border-top: 1px solid var(--border);
  padding-top: 10px; margin-top: 4px;
  font-variant-numeric: tabular-nums;
}

/* ─── Track Pages ────────────────────────────────────────────── */
.track-wrap { max-width: 640px; margin: var(--space-xl) auto; padding: 0 var(--space-md); }
.track-hero { text-align: center; margin-bottom: var(--space-lg); }
.track-hero__icon { font-size: 3rem; line-height: 1; }
.track-hero__title { font-size: 1.6rem; font-weight: 700; margin-top: 10px; }
.track-hero__sub { color: var(--text-secondary); margin-top: 6px; font-size: 0.88rem; }

.track-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-lg);
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}

/* Recent order rows */
.recent-order-row {
  display: flex; align-items: center;
  justify-content: space-between; gap: var(--space-md);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--bg-inset);
  text-decoration: none;
  transition-property: border-color, box-shadow, transform;
  transition-duration: var(--duration);
  transition-timing-function: var(--ease);
}
.recent-order-row:hover {
  border-color: color-mix(in srgb, var(--cat-color) 40%, var(--border));
  box-shadow: var(--shadow-sm);
  transform: translateX(2px);
  opacity: 1;
}
.recent-order-row__left { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.recent-order-row__dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.recent-order-row__name {
  font-size: 0.85rem; font-weight: 600; color: var(--text-primary);
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis; max-width: 260px;
}
.recent-order-row__meta { font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; }
.recent-order-row__right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.recent-order-row__price { font-size: 0.875rem; font-weight: 700; color: var(--text-primary); white-space: nowrap; }
.recent-order-row__status {
  font-size: 0.7rem; font-weight: 700; padding: 3px 8px;
  border-radius: var(--radius-pill); white-space: nowrap; text-transform: capitalize;
}

/* Timeline */
.status-timeline { position: relative; padding-left: 2rem; }
.status-timeline::before {
  content: ''; position: absolute; left: 9px; top: 0; bottom: 0;
  width: 2px; background: var(--border-strong);
}
.timeline-item { position: relative; margin-bottom: 1.25rem; }
.timeline-item::before {
  content: ''; position: absolute;
  left: -1.55rem; top: 4px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--cat-color);
  border: 2px solid var(--bg-card);
  box-shadow: var(--shadow-xs);
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-status { font-weight: 600; font-size: 0.875rem; text-transform: capitalize; }
.timeline-time { font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; }
.timeline-note { font-size: 0.78rem; color: var(--text-secondary); margin-top: 4px; }

/* Status badges */
.status-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: var(--radius-pill);
  font-size: 0.78rem; font-weight: 700;
}
.status-badge--pending     { background: rgba(232,147,12,0.1);  color: var(--warning);  border: 1px solid rgba(232,147,12,0.2); }
.status-badge--processing,
.status-badge--in_progress { background: rgba(108,99,255,0.1);  color: #6C63FF;         border: 1px solid rgba(108,99,255,0.2); }
.status-badge--completed   { background: rgba(22,163,74,0.1);   color: var(--success);  border: 1px solid rgba(22,163,74,0.2); }
.status-badge--failed,
.status-badge--cancelled   { background: rgba(220,38,38,0.1);   color: var(--danger);   border: 1px solid rgba(220,38,38,0.2); }
.status-badge--partial     { background: rgba(232,147,12,0.1);  color: var(--warning);  border: 1px solid rgba(232,147,12,0.2); }
.status-badge--paid,
.status-badge--free        { background: rgba(22,163,74,0.1);   color: var(--success);  border: 1px solid rgba(22,163,74,0.2); }

/* ─── FAQ Accordion ──────────────────────────────────────────── */
.faq { max-width: 700px; margin: 0 auto; }
.faq-item {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px;
  cursor: pointer;
  font-weight: 600; font-size: 0.9rem;
  user-select: none;
  min-height: 48px;
}
.faq-icon { transition: transform var(--duration-md) var(--ease); color: var(--cat-color); font-size: 1.1rem; }
.faq-answer { padding: 0 16px 14px; color: var(--text-secondary); font-size: 0.875rem; line-height: 1.7; }

/* ─── Promo Banner ───────────────────────────────────────────── */
.promo {
  background: linear-gradient(135deg, #6C63FF 0%, #B44CFF 50%, #E040A0 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl) var(--space-lg);
  text-align: center;
  margin: var(--space-xl) 0;
  position: relative;
  overflow: hidden;
  color: #fff;
}
.promo::before {
  content: '';
  position: absolute; top: -60%; right: -15%;
  width: 350px; height: 350px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.promo h2 { font-size: clamp(1.3rem, 3vw, 1.75rem); font-weight: 700; margin-bottom: 8px; color: #fff; }
.promo p { color: rgba(255,255,255,0.85); margin-bottom: var(--space-lg); font-size: 0.9rem; }
.promo .btn--primary {
  background: #fff; color: #6C63FF;
  border-color: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.promo .btn--primary:hover {
  background: rgba(255,255,255,0.92);
  color: #6C63FF;
}

/* ─── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: var(--space-2xl) 0 var(--space-lg);
  margin-top: var(--space-2xl);
}
.footer__grid {
  display: grid; grid-template-columns: 1fr;
  gap: var(--space-lg); margin-bottom: var(--space-xl);
}
@media (min-width: 640px) {
  .footer__grid { grid-template-columns: 1.5fr 1fr 1fr; }
}
.footer__tagline { color: var(--text-muted); font-size: 0.82rem; margin-top: 6px; }
.footer__col h4 { font-weight: 700; margin-bottom: 12px; font-size: 0.85rem; color: var(--text-primary); }
.footer__col ul li { margin-bottom: 6px; }
.footer__col ul li a { color: var(--text-secondary); font-size: 0.82rem; transition: color var(--duration) var(--ease); }
.footer__col ul li a:hover { color: var(--text-primary); opacity: 1; }
.footer__bottom {
  border-top: 1px solid var(--border); padding-top: var(--space-md);
  text-align: center; color: var(--text-muted); font-size: 0.75rem;
}

/* ─── Alerts ─────────────────────────────────────────────────── */
.alert {
  padding: 12px 16px; border-radius: var(--radius-sm);
  margin-bottom: var(--space-md); font-size: 0.875rem;
}
.alert--success { background: rgba(22,163,74,0.08); color: var(--success); border: 1px solid rgba(22,163,74,0.2); }
.alert--error   { background: rgba(220,38,38,0.08); color: var(--danger);  border: 1px solid rgba(220,38,38,0.2); }

/* ─── Pagination ─────────────────────────────────────────────── */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: var(--space-xl); }
.pagination a, .pagination span {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  transition: all var(--duration) var(--ease);
}
.pagination a:hover { background: var(--cat-color); color: #fff; border-color: var(--cat-color); opacity: 1; }

/* ─── Loading Spinner ────────────────────────────────────────── */
.spinner {
  width: 1.75rem; height: 1.75rem;
  border: 2.5px solid var(--border);
  border-top-color: var(--cat-color);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-state {
  display: flex; align-items: center; justify-content: center;
  gap: var(--space-md); padding: var(--space-2xl);
  color: var(--text-secondary);
}

/* ─── Empty State ────────────────────────────────────────────── */
.empty-state { text-align: center; padding: var(--space-2xl) var(--space-lg); }
.empty-state__icon {
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-md);
}
.empty-state__title { font-size: 1.15rem; font-weight: 700; margin-bottom: 6px; }
.empty-state__sub { color: var(--text-secondary); font-size: 0.875rem; }

/* ─── Hero Slider ────────────────────────────────────────────── */
.hero-slider {
  margin-top: var(--space-md);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.hero-slider .swiper-slide img {
  width: 100%; height: auto; object-fit: cover;
  display: block; max-height: 380px;
}

/* ─── Social Buttons ─────────────────────────────────────────── */
.social-btn {
  display: flex; width: 100%;
  justify-content: center; align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.9rem;
  text-decoration: none;
  transition-property: transform, box-shadow, opacity;
  transition-duration: var(--duration);
  transition-timing-function: var(--ease);
  min-height: 48px;
  color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}
.social-btn:hover { transform: translateY(-1px); opacity: 1; color: #fff; }
.social-btn--whatsapp { background: #1DA851; }
.social-btn--youtube  { background: #E62117; }

.hero-socials {
  display: flex; flex-direction: column;
  gap: 10px; justify-content: center;
  margin-top: var(--space-md);
  max-width: 380px;
  margin-left: auto; margin-right: auto;
}

/* ─── Responsive Utilities ───────────────────────────────────── */
@media (max-width: 479px) {
  .container { padding: 0 12px; }
  .section { padding: var(--space-xl) 0; }
}

/* ─── Breadcrumb ─────────────────────────────────────────────── */
.breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: 2px;
  font-size: 0.82rem; color: var(--text-muted);
  margin-bottom: var(--space-lg);
}
.breadcrumb a {
  color: var(--text-muted);
  transition: color var(--duration) var(--ease);
}
.breadcrumb a:hover { color: var(--cat-color); opacity: 1; }
.breadcrumb__sep { margin: 0 4px; opacity: 0.5; }
.breadcrumb__current { color: var(--text-secondary); font-weight: 500; }

/* ─── Category Page Header ───────────────────────────────────── */
/* Full-bleed band: each category gets its own soft, premium color canopy
   derived entirely from --cat-color. Clean, flexible, never loud. */
.cat-band {
  background:
    radial-gradient(140% 160% at 0% 0%,
      color-mix(in srgb, var(--cat-color) 28%, var(--bg-page)) 0%,
      color-mix(in srgb, var(--cat-color) 6%, var(--bg-page)) 45%,
      var(--bg-page) 70%);
  border-bottom: 1px solid var(--cat-edge);
}
.cat-band .breadcrumb { margin-bottom: var(--space-md); }

.cat-header {
  display: flex; align-items: center; gap: 16px;
  padding: var(--space-lg) 0;
}
.cat-header__icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
  background: var(--bg-card);
  color: var(--cat-color);
  border: 1px solid var(--cat-edge);
  box-shadow: 0 4px 16px var(--cat-glow);
}
.cat-header__title {
  font-size: clamp(1.45rem, 4.5vw, 1.9rem);
  font-weight: 700; line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.cat-header__desc {
  color: var(--text-secondary); font-size: 0.9rem; margin-top: 4px;
}

/* Compact category header on mobile — trims wasted vertical space */
@media (max-width: 639px) {
  .cat-band .breadcrumb { margin-bottom: var(--space-sm); }
  .cat-header {
    gap: 10px;
    padding: var(--space-sm) 0 var(--space-md);
  }
  .cat-header__icon {
    width: 40px; height: 40px;
    font-size: 1.2rem;
    border-radius: var(--radius-sm);
  }
  .cat-header__icon img { width: 1.5rem !important; height: 1.5rem !important; }
  .cat-header__title { font-size: 1.3rem; }
  .cat-header__desc { font-size: 0.82rem; margin-top: 2px; }
}

/* ─── Back Link ──────────────────────────────────────────────── */
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.82rem; font-weight: 500;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  transition: color var(--duration) var(--ease);
}
.back-link:hover { color: var(--cat-color); opacity: 1; }

/* ─── View All Link ──────────────────────────────────────────── */
.view-all-link {
  display: flex; align-items: center; justify-content: center;
  gap: 6px;
  padding: 12px;
  margin-top: var(--space-md);
  border: 1.5px dashed color-mix(in srgb, var(--cat-color) 30%, rgba(27,19,64,0.13));
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-size: 0.85rem; font-weight: 600;
  text-decoration: none;
  transition-property: border-color, color, background-color;
  transition-duration: var(--duration);
  transition-timing-function: var(--ease);
  min-height: 48px;
}
.view-all-link:hover {
  border-color: var(--cat-color);
  color: var(--cat-color);
  background: color-mix(in srgb, var(--cat-color) 3%, transparent);
  opacity: 1;
}

/* ─── Focus Visible — keyboard-only ring, category-themed ─────── */
:where(a, button, .btn, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--cat-color);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
.btn:focus-visible { outline-offset: 3px; }
/* Inputs already paint a focus ring via box-shadow; avoid doubling it */
.form-control:focus-visible,
.search-input:focus-visible { outline: none; }

/* ─── Reduced Motion — honor the OS preference everywhere ─────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .animate-in { animation: none; opacity: 1; transform: none; }
  /* Spinner stays animated — it communicates active state */
  .spinner { animation: spin 0.7s linear infinite !important; }
  .btn:hover, .platform-row:hover, .service-row:hover,
  .subcat-card:hover, .recent-order-row:hover { transform: none; }
}
