@import url("tokens.css");

*,
*::before,
*::after { box-sizing: border-box; }

html {
  direction: rtl;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }

img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 0.5rem;
}

p { margin: 0 0 1rem; color: var(--text); }
.muted { color: var(--text-muted); }

.container {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
}

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 0;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.logo span { color: var(--brand); }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  align-items: center;
}
.nav a {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
}
.nav a:hover,
.nav a.is-active {
  color: var(--brand);
}

/* Buttons ? red only for CTA */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn--primary {
  background: var(--brand);
  color: #fff;
}
.btn--primary:hover {
  background: var(--brand-hover);
  color: #fff;
}
.btn--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn--ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-tint);
}
.btn--block { width: 100%; }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--space-card);
  color: var(--text);
}

.card--accent-edge {
  border-color: var(--border);
  border-top: 3px solid var(--brand);
}

/* Hero */
.hero {
  padding: 2.5rem 0 2rem;
}
.hero__grid {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}
@media (min-width: 800px) {
  .hero__grid { grid-template-columns: 1.2fr 1fr; }
}
.hero__badge {
  display: inline-block;
  background: var(--brand-tint);
  color: var(--brand);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}
.hero h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.hero p { color: var(--text-muted); max-width: 36rem; }
.hero__actions {
  display: grid;
  grid-template-columns: repeat(var(--cta-count, 4), minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
  width: 100%;
  max-width: none;
}
.hero__actions .btn {
  justify-content: center;
  white-space: nowrap;
  font-size: 0.92rem;
  padding: 0.75rem 0.85rem;
  min-width: 0;
}
@media (max-width: 720px) {
  .hero__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero__actions .btn {
    font-size: 0.82rem;
    padding: 0.65rem 0.45rem;
  }
}

/* Featured brand product */
.featured {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: grid;
  gap: 1rem;
}
@media (min-width: 600px) {
  .featured { grid-template-columns: 1fr 1.2fr; align-items: center; }
}
.featured__tag {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand);
  text-transform: none;
}

/* Product grid */
.section { padding: 2rem 0 3rem; }
.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s;
}
.product-card:hover { border-color: #d1d5db; }
.product-card__media {
  aspect-ratio: 1;
  background: var(--bg);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.product-card__body {
  padding: 1rem 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}
.product-card__title {
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0;
  color: var(--text);
}
.product-card__meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.price-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: auto;
  font-variant-numeric: tabular-nums;
}
.price { font-weight: 700; }
.price--sale { color: var(--brand); }
.price--compare {
  color: var(--text-muted);
  text-decoration: line-through;
  font-size: 0.85rem;
  font-weight: 400;
}
.badge-brand {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  background: var(--brand);
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
}

/* Product detail */
.product-detail {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 800px) {
  .product-detail { grid-template-columns: 1fr 1fr; }
}
.product-detail__media {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  overflow: hidden;
}
.product-detail__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Forms */
.form {
  display: grid;
  gap: 1rem;
  max-width: 36rem;
}
.form-row { display: grid; gap: 0.35rem; }
.form-row label {
  font-weight: 600;
  font-size: 0.9rem;
}
.form-row .hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.form-row input.is-prefilled,
.form-row input:-webkit-autofill,
.form-row input:-webkit-autofill:hover,
.form-row input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text) !important;
  box-shadow: 0 0 0 1000px var(--surface) inset !important;
  transition: background-color 99999s ease-out;
  caret-color: var(--text);
}
.form-row input[type="password"],
.pw-field input[type="password"],
.pw-field input[type="text"] {
  direction: ltr;
  text-align: left;
  unicode-bidi: isolate;
}
.pw-field {
  position: relative;
  display: grid;
}
.pw-field input { padding-inline-end: 2.75rem !important; }
.pw-toggle {
  position: absolute; inset-inline-end: 0.35rem; top: 50%; transform: translateY(-50%);
  border: 0; background: transparent; color: var(--text-muted); cursor: pointer;
  width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border-radius: 8px;
}
.pw-toggle:hover { color: var(--brand, #ee1f25); background: color-mix(in srgb, var(--brand) 8%, transparent); }
.form-row input,
.form-row select,
.form-row textarea {
  font: inherit;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  width: 100%;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--brand-tint);
  border-color: var(--brand);
}
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
}
.checkbox-row input { margin-top: 0.25rem; }
.age-path {
  display: grid;
  gap: 0.5rem;
}
@media (min-width: 560px) {
  .age-path { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 800px) {
  .age-path { grid-template-columns: repeat(4, 1fr); }
}
.age-path label {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  cursor: pointer;
  background: var(--surface);
  font-weight: 600;
  text-align: center;
}
.age-path input { position: absolute; opacity: 0; pointer-events: none; }
.age-path input:checked + span,
.age-path label:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-tint);
  color: var(--brand);
}
.age-path label span { display: block; pointer-events: none; }
.age-path .sub {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.guardian-block[hidden] { display: none !important; }

/* Tracking + card */
.tracking-code {
  font-family: ui-monospace, monospace;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  color: var(--brand);
  background: var(--brand-tint);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  text-align: center;
}

.pass-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 28rem;
  box-shadow: var(--shadow);
}
.pass-card__header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  border-top: 3px solid var(--brand);
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pass-card__header strong { color: var(--brand); }
.pass-card__body {
  padding: 1.25rem;
  display: grid;
  gap: 0.75rem;
}
.pass-card__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.95rem;
}
.pass-card__row dt { color: var(--text-muted); margin: 0; }
.pass-card__row dd { margin: 0; font-weight: 600; text-align: left; }

/* Empty */
.empty {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 1.5rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Admin shell ? separate */
.admin-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 220px 1fr;
}
.admin-nav {
  background: var(--text);
  color: #e5e7eb;
  padding: 1.25rem 1rem;
}
.admin-nav .logo { color: #fff; margin-bottom: 1.5rem; }
.admin-nav a {
  display: block;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  color: #d1d5db;
  margin-bottom: 0.25rem;
}
.admin-nav a:hover,
.admin-nav a.is-active {
  background: rgba(238, 31, 37, 0.2);
  color: #fff;
}
.admin-main { padding: 1.5rem; background: var(--bg); }

@media print {
  .site-header, .site-footer, .no-print { display: none !important; }
  .pass-card { box-shadow: none; max-width: 100%; }
}


/* --- Pixel Lead vitrine deltas (tokens unchanged) --- */
.site-header__rail {
  height: 3px;
  background: #1A1A1A;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: inherit;
}
.brand:hover { color: inherit; }
.brand__mark { display: grid; place-items: center; flex-shrink: 0; }
.brand__word {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.brand__fix { color: var(--brand); }
.brand__tand { color: var(--text); }
.brand__tand--on-dark { color: var(--brand); }
.site-footer--dark .brand__fix { color: #fff; }

.product-card {
  background: var(--surface);
  border: 1px solid rgba(229, 231, 235, 0.95);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(26,26,26,0.03), 0 8px 24px rgba(26,26,26,0.05);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s, border-color 0.15s;
  backdrop-filter: saturate(1.1);
}
.product-card:hover {
  border-color: #d1d5db;
  box-shadow: 0 2px 4px rgba(26,26,26,0.04), 0 12px 28px rgba(26,26,26,0.07);
}
.product-card__media {
  aspect-ratio: 1;
  background: linear-gradient(180deg, var(--bg-accent) 0%, var(--bg) 100%);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border);
}
.product-card__body { position: relative; }
.product-card .badge-brand {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
}

.site-footer--dark {
  background: #111111;
  border-top: none;
  color: #d1d5db;
  padding: 2rem 0 2.25rem;
}
.site-footer__grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 720px) {
  .site-footer__grid { grid-template-columns: 1.2fr 1fr; align-items: start; }
}
.site-footer__brand {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  font-weight: 700;
}
.site-footer__tag {
  margin: 0;
  color: #9ca3af;
  font-size: 0.9rem;
  max-width: 28rem;
}
.site-footer__contacts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  font-size: 0.95rem;
}
.site-footer__contacts span {
  display: inline-block;
  min-width: 5.5rem;
  color: #9ca3af;
  font-size: 0.8rem;
}
.site-footer--dark a { color: #fff; }
.site-footer--dark a:hover { color: var(--brand); }

.trust-bar {
  display: grid;
  gap: 0.75rem;
  margin: 1.25rem 0 1.5rem;
  padding: 0.85rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
@media (min-width: 560px) {
  .trust-bar { grid-template-columns: 1fr 1fr; }
}
.trust-bar__item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
  font-weight: 600;
}
.trust-bar__icon {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 8px;
  background: var(--brand-tint);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.academy-shell {
  padding-block: 2.5rem 3.5rem;
}
.academy-shell .form {
  margin-top: 1.5rem;
}

/* Repair intake */
.repair-layout {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}
@media (min-width: 900px) {
  .repair-layout { grid-template-columns: 1.3fr 0.9fr; }
}
.form-wide { max-width: none; }
.repair-ship h2 { margin-top: 0; font-size: 1.15rem; }
.repair-ship__list {
  margin: 0 0 1rem;
  padding-inline-start: 1.2rem;
  display: grid;
  gap: 0.45rem;
  color: var(--text);
}
.repair-ship__status ol {
  margin: 0;
  padding-inline-start: 1.2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: grid;
  gap: 0.25rem;
}

.repair-timeline {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.repair-timeline__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0;
  color: var(--text-muted);
  border-right: 2px solid var(--border);
  padding-right: 1rem;
  margin-right: 0.55rem;
  position: relative;
}
.repair-timeline__dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: #d1d5db;
  flex-shrink: 0;
  margin-right: -1.4rem;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 3px var(--bg);
}
.repair-timeline__item.is-done {
  color: var(--success);
  border-right-color: var(--success);
}
.repair-timeline__item.is-done .repair-timeline__dot {
  background: var(--success);
}
.repair-timeline__item.is-current {
  color: var(--brand);
  font-weight: 700;
  border-right-color: var(--brand);
}
.repair-timeline__item.is-current .repair-timeline__dot {
  background: var(--brand);
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--brand-tint);
}

/* Nav with icons — single row, compact */
.nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.1rem;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  min-width: 0;
  overflow: visible;
}
.nav--compact {
  gap: 0.05rem;
}
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  font-size: 0.84rem;
  color: var(--text-muted);
  font-weight: 500;
  padding: 0.32rem 0.48rem;
  border-radius: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav__link:hover,
.nav__link.is-active {
  color: var(--brand);
  background: var(--brand-tint);
}
.nav__link--btn {
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.nav__link--accent {
  font-weight: 600;
}
.nav__icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}
.nav__tools {
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
  margin-inline-start: 0.35rem;
  padding-inline-start: 0.35rem;
  border-inline-start: 1px solid var(--border);
  flex-shrink: 0;
}
.nav-logout {
  display: inline;
  margin: 0;
}
.nav__link--cart {
  border: 1px solid var(--border);
  background: var(--surface);
  font-weight: 700;
  position: relative;
}
.nav__link--user {
  max-width: 5.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: default;
}
.nav__badge {
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-grid;
  place-items: center;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.page-hero {
  padding: 2rem 0 0.5rem;
}
.section--tight { padding-top: 1.25rem; padding-bottom: 0.5rem; }
.section--muted {
  background: linear-gradient(180deg, var(--bg-accent) 0%, var(--bg) 100%);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.85rem;
}
.feature-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.1rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.4rem;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
a.feature-tile:hover {
  border-color: #d1d5db;
  color: var(--text);
  box-shadow: 0 8px 24px rgba(26,26,26,0.07);
}
.feature-tile h2 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text);
}
.feature-tile p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.feature-tile__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  background: var(--brand-tint);
  color: var(--brand);
  display: grid;
  place-items: center;
}

.instructor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.instructor-card--grid {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: var(--shadow);
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.about-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}
.about-cta__actions { display: flex; flex-wrap: wrap; gap: 0.65rem; }

.contact-layout {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}
@media (min-width: 900px) {
  .contact-layout { grid-template-columns: 1.2fr 0.9fr; }
}
.contact-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}
.contact-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.contact-list svg { color: var(--brand); flex-shrink: 0; margin-top: 0.15rem; }
.contact-list strong { display: block; font-size: 0.85rem; }
.contact-list span, .contact-list a { font-size: 0.95rem; }

.site-footer__grid--4 {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 900px) {
  .site-footer__grid--4 { grid-template-columns: 1.3fr 1fr 1fr 1.1fr; }
}
.site-footer__heading {
  margin: 0 0 0.65rem;
  font-weight: 700;
  color: #fff;
  font-size: 0.95rem;
}
.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  font-size: 0.9rem;
}

/* Mega menu ? bridge gap so submenu doesn't disappear on hover */
.nav__item {
  position: relative;
}
.nav__item.has-mega::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 100%;
  height: 14px;
}
.nav__item.has-mega:hover .mega,
.nav__item.has-mega:focus-within .mega {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.mega {
  position: absolute;
  top: calc(100% + 6px);
  inset-inline-end: 0;
  display: flex;
  gap: 1.25rem;
  min-width: 16rem;
  padding: 1rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 60;
  pointer-events: none;
}
.mega--sm { min-width: 12rem; }
.mega--md {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  min-width: 22rem;
}
.mega--lg {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.15rem;
  min-width: 32rem;
}
.mega__col {
  display: grid;
  gap: 0.35rem;
  min-width: 9.5rem;
}
.mega__title {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.mega a {
  font-size: 0.9rem;
  color: var(--text);
  padding: 0.35rem 0;
  font-weight: 500;
}
.mega a:hover { color: var(--brand); }

/* ?? Mega enroll link ?? */
.mega__enroll {
  display: inline-flex !important;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.35rem;
  padding: 0.45rem 0.65rem !important;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(238, 31, 37, 0.12), rgba(238, 31, 37, 0.04));
  border: 1px solid rgba(238, 31, 37, 0.25);
  color: var(--brand) !important;
  font-weight: 700 !important;
}
.mega__enroll:hover {
  background: rgba(238, 31, 37, 0.18);
}

@media (max-width: 1100px) {
  .nav__link { font-size: 0.8rem; padding: 0.3rem 0.4rem; gap: 0.2rem; }
  .mega--lg { min-width: 26rem; gap: 0.85rem; }
}
@media (max-width: 900px) {
  .nav__link span { display: none; }
  .nav__link--cart span { display: inline; }
  .nav__link { padding: 0.4rem; }
  .nav__tools { margin-inline-start: 0.15rem; padding-inline-start: 0.2rem; }
  .mega { display: none !important; }
  .nav__item.has-mega::after { display: none; }
  .brand__word { font-size: 1.05rem; }
}
@media (max-width: 560px) {
  .nav__link--user,
  .nav__link--accent { display: none; }
}

/* Animated service cards */
.svc-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.svc-grid--compact {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.svc-card {
  position: relative;
  display: block;
  padding: 1.15rem 1.1rem 1.2rem;
  border-radius: 16px;
  background:
    linear-gradient(145deg, var(--surface) 0%, var(--bg-accent) 100%);
  border: 1px solid var(--border);
  overflow: hidden;
  color: var(--text);
  text-decoration: none;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s, box-shadow 0.35s;
}
a.svc-card:hover {
  color: var(--text);
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(238, 31, 37, 0.35);
  box-shadow: 0 16px 36px rgba(26, 26, 26, 0.1);
}
.svc-card__glow {
  position: absolute;
  inset: auto -20% -40% auto;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(238, 31, 37, 0.18), transparent 70%);
  pointer-events: none;
  transition: transform 0.45s ease;
}
a.svc-card:hover .svc-card__glow {
  transform: scale(1.35) translate(-10%, -10%);
}
.svc-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.6rem;
  height: 2.6rem;
  padding: 0 0.55rem;
  border-radius: 10px;
  background: #1a1a1a;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}
.svc-card h2,
.svc-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  color: var(--text);
}
.svc-card p {
  margin: 0 0 0.65rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}
.svc-card--anim {
  animation: svc-rise 0.55s ease both;
  animation-delay: calc(var(--i, 0) * 0.06s);
}
@keyframes svc-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.svc-card--photo {
  padding: 0 0 1rem;
}
.svc-card__img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  border-radius: 16px 16px 0 0;
  margin-bottom: 0.85rem;
  background: #1a1a1a;
}
.svc-card--photo h2,
.svc-card--photo h3,
.svc-card--photo p,
.svc-card--photo .chip,
.svc-card--photo .btn,
.svc-card--photo .svc-card__cta,
.svc-card--photo strong {
  margin-inline: 1rem;
}
.svc-card--photo .btn,
.svc-card--photo .svc-card__cta { margin-top: 0.35rem; }
.svc-card__thumb {
  width: 100%;
  height: 88px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 0.65rem;
  display: block;
  background: #1a1a1a;
}
.svc-card--mini {
  padding: 0.85rem;
}
.svc-card--mini .svc-card__thumb {
  margin-bottom: 0.5rem;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
}
.filter-chips .chip,
.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
}
.filter-chips .chip:hover,
.filter-chips .chip.is-active {
  border-color: var(--brand);
  color: var(--brand);
  background: rgba(238, 31, 37, 0.06);
}

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.75rem;
}
.pager__btn {
  padding: 0.45rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-weight: 600;
}
.pager__btn:hover { border-color: var(--brand); color: var(--brand); }
.pager__info { color: var(--text-muted); font-size: 0.9rem; }

.form-grid.row-2 {
  display: grid;
  gap: 0.85rem;
}
@media (min-width: 640px) {
  .form-grid.row-2 { grid-template-columns: 1fr 1fr; }
}

.request-result__badge {
  display: inline-block;
  margin: 0 0 0.65rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(238, 31, 37, 0.1);
  color: var(--brand);
  font-size: 0.85rem;
  font-weight: 700;
}
.request-result__msg {
  margin: 0;
  line-height: 1.75;
  font-size: 0.98rem;
}

/* ?? Theme toggle ?? */
.theme-toggle {
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: inherit;
  margin-inline-start: 0.15rem;
  order: 99;
}
.theme-toggle__moon { display: none; }
[data-theme="dark"] .theme-toggle__sun { display: none; }
[data-theme="dark"] .theme-toggle__moon { display: block; }

/* ?? Special product badge (protrudes from card) ?? */
.featured--special,
.product-card--special {
  position: relative;
  overflow: visible;
  border: 1px solid rgba(201, 162, 39, 0.45);
  background:
    linear-gradient(160deg, rgba(245, 215, 110, 0.12), transparent 45%),
    var(--surface);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: grid;
  gap: 1rem;
}
@media (min-width: 600px) {
  .featured--special { grid-template-columns: 1fr 1.2fr; align-items: center; }
}
.special-badge {
  position: absolute;
  top: -0.7rem;
  left: -0.55rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #3d2e00;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold) 55%, var(--gold-deep));
  box-shadow: 0 6px 16px rgba(201, 162, 39, 0.4);
  transform: rotate(-7deg);
  white-space: nowrap;
}
.special-badge--card {
  top: -0.55rem;
  left: auto;
  right: -0.45rem;
  transform: rotate(6deg);
}
.special-badge--inline {
  position: static;
  transform: none;
  margin-left: 0.35rem;
  padding: 0.2rem 0.5rem;
  font-size: 0.7rem;
  vertical-align: middle;
}
.product-card--special {
  padding: 0;
  display: flex;
  flex-direction: column;
}

/* ?? Alive hub cards (mid-page) ?? */
.hero--alive {
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(238, 31, 37, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 50% at 90% 20%, rgba(201, 162, 39, 0.08), transparent 50%),
    var(--bg);
}
.hub-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}
.hub-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 1.15rem 1rem 1.2rem;
  border-radius: 18px;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
  background:
    linear-gradient(155deg, var(--surface) 0%, var(--bg-accent) 100%);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s, border-color 0.25s;
}
.hub-card::after {
  content: "";
  position: absolute;
  inset: auto -30% -50% auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, currentColor, transparent 70%);
  opacity: 0.08;
  pointer-events: none;
}
a.hub-card:hover {
  color: var(--text);
  transform: translateY(-7px) scale(1.015);
  box-shadow: 0 18px 40px rgba(26, 26, 26, 0.12);
  border-color: transparent;
}
.hub-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 14px;
  color: #fff;
  margin-bottom: 0.25rem;
}
.hub-card__icon svg { width: 1.65rem; height: 1.65rem; }
.hub-card h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--text);
}
.hub-card p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}
.hub-card--shop .hub-card__icon { background: linear-gradient(135deg, #1a1a1a, #444); }
.hub-card--digital .hub-card__icon { background: linear-gradient(135deg, #2563eb, #60a5fa); }
.hub-card--soft .hub-card__icon { background: linear-gradient(135deg, #1d4ed8, #3b82f6); }
.hub-card--hard .hub-card__icon { background: linear-gradient(135deg, #0f766e, #2dd4bf); }
.hub-card--inquiry .hub-card__icon { background: linear-gradient(135deg, #b45309, #f59e0b); }
.hub-card--learn .hub-card__icon { background: linear-gradient(135deg, #6d28d9, #a78bfa); }
.hub-card--academy .hub-card__icon,
.hub-card__icon--enroll { background: linear-gradient(135deg, #EE1F25, #f87171); }
.hub-card--anim {
  animation: svc-rise 0.55s ease both;
  animation-delay: calc(var(--i, 0) * 0.05s);
}

.svc-card--alive {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  color: var(--text);
}
.svc-card--alive .hub-card__icon {
  background: linear-gradient(135deg, #1a1a1a, #EE1F25);
}

.btn--enroll {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: linear-gradient(135deg, #EE1F25, #c4181e);
  color: #fff !important;
  border: 0;
  box-shadow: 0 8px 20px rgba(238, 31, 37, 0.28);
}
.btn--enroll:hover {
  filter: brightness(1.05);
  color: #fff !important;
}

.enroll-hero-card {
  text-align: center;
  margin-bottom: 1.5rem;
  padding: 1.5rem 1rem;
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 0%, rgba(238, 31, 37, 0.12), transparent 60%),
    var(--surface);
  border: 1px solid var(--border);
}
.enroll-hero-card__icon {
  display: inline-flex;
  margin-bottom: 0.75rem;
  animation: enroll-pulse 2.8s ease-in-out infinite;
}
@keyframes enroll-pulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.status-only__label {
  margin: 1rem 0 0.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.status-only__value {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--brand);
}
.repair-ship__hint {
  margin: 1rem 0 0;
  padding: 0.75rem;
  border-radius: 10px;
  background: var(--brand-tint);
  font-size: 0.9rem;
}

[data-theme="dark"] .svc-card {
  background: linear-gradient(145deg, var(--surface) 0%, #16191f 100%);
}
[data-theme="dark"] .hub-card {
  background: linear-gradient(155deg, var(--surface), #16191f);
}
[data-theme="dark"] a.hub-card:hover,
[data-theme="dark"] a.svc-card:hover {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
[data-theme="dark"] .site-header {
  background: var(--surface);
  border-bottom-color: var(--border);
}
[data-theme="dark"] .brand__tand { color: #fff; }
[data-theme="dark"] .brand__mark { color: #fff; }

/* Contrast: never leave light surfaces with light text */
.card,
.product-card,
.svc-card,
.hub-card,
.feature-tile,
.mega,
.form-card,
.status-only,
.repair-ship {
  color: var(--text);
}
.card h1, .card h2, .card h3,
.product-card h1, .product-card h2, .product-card h3,
.svc-card h1, .svc-card h2, .svc-card h3,
.hub-card h1, .hub-card h2, .hub-card h3,
.feature-tile h1, .feature-tile h2, .feature-tile h3 {
  color: var(--text);
}

/* ?? Equal / centered card grids ?? */
.section__head--center {
  justify-content: center;
  text-align: center;
  flex-wrap: wrap;
}
.hub-grid--fill {
  display: grid;
  gap: 1rem;
  justify-content: center;
  grid-template-columns: repeat(var(--hub-count, 6), minmax(0, 1fr));
}
@media (max-width: 900px) {
  .hub-grid--fill {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}
.svc-grid--fill {
  display: grid;
  gap: 1rem;
  justify-content: center;
  grid-template-columns: repeat(var(--svc-count, 3), minmax(0, 1fr));
}
@media (max-width: 900px) {
  .svc-grid--fill {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}
.hub-grid--fill .hub-card,
.svc-grid--fill .svc-card {
  width: 100%;
  min-height: 100%;
  text-align: center;
  align-items: center;
}
.hub-grid--fill .hub-card p,
.svc-grid--fill .svc-card p {
  text-align: center;
}

/* ?? CTA buttons ?? */
.btn--repair {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  color: #fff !important;
  border: 0;
  box-shadow: 0 8px 20px rgba(15, 118, 110, 0.28);
}
.btn--repair:hover { filter: brightness(1.06); color: #fff !important; }
.btn--inquiry {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: linear-gradient(135deg, #b45309, #f59e0b);
  color: #fff !important;
  border: 0;
  box-shadow: 0 8px 20px rgba(180, 83, 9, 0.28);
}
.btn--inquiry:hover { filter: brightness(1.06); color: #fff !important; }

/* ?? Status chain timeline ?? */
.status-chain {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.status-chain__step {
  position: relative;
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.75rem;
  padding: 0 0 1.25rem;
}
.status-chain__step:last-child { padding-bottom: 0; }
.status-chain__rail {
  position: absolute;
  right: 0.85rem;
  top: 1.6rem;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(238, 31, 37, 0.45), rgba(238, 31, 37, 0.08));
}
.status-chain__step:last-child .status-chain__rail { display: none; }
.status-chain__dot {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 2px solid var(--brand);
  color: var(--brand);
  z-index: 1;
}
.status-chain__step.is-done .status-chain__dot {
  background: var(--brand);
  color: #fff;
}
.status-chain__step.is-current .status-chain__dot {
  box-shadow: 0 0 0 4px var(--brand-tint);
  animation: status-pulse 1.8s ease-in-out infinite;
}
@keyframes status-pulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--brand-tint); }
  50% { box-shadow: 0 0 0 8px transparent; }
}
.status-chain__label {
  margin: 0;
  font-weight: 700;
  font-size: 0.98rem;
}
.status-chain__time {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  direction: ltr;
  text-align: right;
}
.status-chain__note {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.inquiry-result__chain-title {
  margin: 1.5rem 0 0;
  font-size: 1.05rem;
}
.inquiry-shell { max-width: 36rem; margin-inline: auto; }
.inquiry-hero {
  text-align: center;
  margin-bottom: 1.25rem;
}
.inquiry-hero__icon {
  display: inline-flex;
  color: var(--brand);
  margin-bottom: 0.5rem;
}
.inquiry-form { margin-bottom: 1.5rem; }

/* ?? Repair course card (distinct from AI) ?? */
.course-card--repair {
  border: 1px solid rgba(15, 118, 110, 0.35);
  background:
    linear-gradient(160deg, rgba(20, 184, 166, 0.12), transparent 50%),
    var(--surface);
  position: relative;
  overflow: hidden;
}
.course-card--repair::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #0f766e, #14b8a6);
}
.course-card__badge-repair {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  color: #0f766e;
  background: rgba(20, 184, 166, 0.15);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.35rem;
}
.course-card--ai {
  border-top: 3px solid var(--brand);
}
.btn-link-danger {
  background: none;
  border: 0;
  color: var(--brand);
  cursor: pointer;
  font: inherit;
  padding: 0;
}

/* Live chat widget */
.ft-chat { position: fixed; left: 1rem; bottom: 1rem; z-index: 80; }
.ft-chat__toggle {
  border: 0; border-radius: 999px; padding: 0.75rem 1.2rem;
  background: var(--brand); color: #fff; font: inherit; font-weight: 700; cursor: pointer;
  box-shadow: 0 8px 24px color-mix(in srgb, #000 18%, transparent);
}
.ft-chat__panel {
  width: min(22rem, calc(100vw - 2rem)); margin-bottom: 0.65rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 16px 40px color-mix(in srgb, #000 16%, transparent);
  display: grid; grid-template-rows: auto 1fr auto; max-height: 26rem;
}
.ft-chat__head { padding: 0.75rem 1rem; font-weight: 700; border-bottom: 1px solid var(--border); }
.ft-chat__messages { padding: 0.75rem; overflow-y: auto; display: grid; gap: 0.5rem; min-height: 10rem; }
.ft-chat__form { padding: 0.65rem; border-top: 1px solid var(--border); display: grid; gap: 0.45rem; }
.ft-chat__row { display: flex; gap: 0.4rem; }
.ft-chat__row input { flex: 1; }
.ft-chat[hidden], .ft-chat__panel[hidden] { display: none !important; }

/* Product gallery slideshow */
.gallery { display: grid; gap: 0.75rem; min-width: 0; align-content: start; }
.gallery__stage { position: relative; display: grid; align-items: center; }
.gallery__main {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  aspect-ratio: 1; display: grid; place-items: center; overflow: hidden;
}
.gallery__main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery__main { cursor: zoom-in; }
.gallery__zoom {
  position: absolute; inset: 0; z-index: 3; border-radius: inherit;
  background-repeat: no-repeat; background-size: 200%;
  opacity: 0; pointer-events: none; transition: opacity 0.15s ease;
}
.gallery__main.is-zoom .gallery__zoom { opacity: 1; }
@media (max-width: 860px) {
  .gallery__main { cursor: default; }
  .gallery__zoom { display: none; }
}
.gallery__nav {
  position: absolute; top: 50%; z-index: 2; transform: translateY(-50%);
  width: 2.4rem; height: 2.4rem; border: 1px solid var(--border); border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 88%, transparent); color: var(--text);
  cursor: pointer; display: grid; place-items: center;
}
.gallery__nav--prev { right: 0.65rem; }
.gallery__nav--next { left: 0.65rem; }
.gallery__thumbs { display: flex; gap: 0.5rem; overflow-x: auto; }
.gallery__thumb {
  flex: 0 0 4.25rem; width: 4.25rem; height: 4.25rem; padding: 0;
  border: 2px solid var(--border); border-radius: 10px; overflow: hidden; cursor: pointer; opacity: 0.72;
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery__thumb.is-active, .gallery__thumb:hover { opacity: 1; border-color: var(--brand); }
.discount-badge {
  position: absolute; top: 0.65rem; right: 0.65rem; z-index: 2;
  background: var(--brand); color: #fff; font-size: 0.8rem; font-weight: 700;
  padding: 0.2rem 0.45rem; border-radius: 8px;
}
.discount-badge--detail { position: static; display: inline-block; margin-bottom: 0.5rem; }
