/* =========================================================
   ORANGE — marketplace theme (search-led, course-card grid,
   dark category bar) in the structural spirit of the big
   course marketplaces, restyled in Edunexa's own black + orange.
   ========================================================= */

:root {
  --ink: #1c1d1f;
  --ink-2: #3c3d40;
  --gray: #6a6f73;
  --gray-light: #d1d7dc;
  --bg-alt: #f7f9fa;
  --white: #ffffff;
  --orange: #FF5A1F;
  --orange-dark: #D6480F;
  --orange-pale: #FFE8DC;
  --cream: #FBF3E7;
  --star: #FF6A00;
  --radius: 4px;
  --radius-lg: 8px;
  --font: "Inter", "Helvetica Neue", Arial, sans-serif;
  --shadow-card: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-hover: 0 6px 18px rgba(0,0,0,0.14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
ul { list-style: none; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1340px; margin: 0 auto; padding: 0 40px; }
h1, h2, h3, h4 { font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; }
p { line-height: 1.6; color: var(--gray); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 14.5px; padding: 11px 22px;
  border-radius: var(--radius); border: 2px solid transparent; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .1s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-dark); }
.btn-outline { background: #fff; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--bg-alt); }
.btn-text { padding: 8px 4px; font-weight: 700; color: var(--ink); }
.btn-text:hover { text-decoration: underline; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn-full { width: 100%; }

/* ---------- Header (simple centered nav, Eko-style) ---------- */
.site-header { background: var(--cream); border-bottom: 1px solid var(--gray-light); position: sticky; top: 0; z-index: 100; }
.header-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; height: 84px; }
.brand { display: flex; align-items: center; gap: 9px; flex: none; }
.brand-mark { width: 30px; height: 30px; }
.brand-name { font-weight: 800; font-size: 21px; letter-spacing: -0.01em; }
.brand-logo { height: 56px; width: auto; display: block; }
@media (max-width: 600px) { .brand-logo { height: 42px; } }

.main-nav { display: flex; align-items: center; justify-content: center; gap: 40px; }
.main-nav a { font-size: 15px; font-weight: 600; position: relative; padding: 6px 0; white-space: nowrap; }
.main-nav a:hover, .main-nav a.active { color: var(--orange-dark); }

.header-actions { display: flex; align-items: center; gap: 12px; justify-self: end; }
.auth-btn {
  padding: 10px 24px; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent;
  font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap;
}
.auth-btn:hover { background: var(--ink); color: #fff; }

/* Account menu — shown instead of Sign up / Log in once logged in */
.account-menu { position: relative; }
.account-trigger {
  display: flex; align-items: center; gap: 9px; border: 1.5px solid var(--gray-light); border-radius: 999px;
  padding: 6px 14px 6px 6px; background: #fff; cursor: pointer;
}
.account-avatar {
  width: 30px; height: 30px; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 800;
  font-size: 13px; display: flex; align-items: center; justify-content: center; flex: none;
}
.account-name { font-size: 13.5px; font-weight: 700; }
.account-chevron { flex: none; transition: transform .15s ease; color: var(--gray, #6b7280); }
.account-trigger.is-open .account-chevron { transform: rotate(180deg); }
.account-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0; background: #fff; border: 1px solid var(--gray-light);
  border-radius: var(--radius); box-shadow: var(--shadow-hover); min-width: 210px; padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
  z-index: 50;
}
.account-dropdown.open { opacity: 1; visibility: visible; transform: translateY(0); }
.account-dropdown-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600; width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  color: var(--ink); text-decoration: none;
}
.account-dropdown-item svg { flex: none; color: var(--gray, #6b7280); }
.account-dropdown-item:hover { background: var(--bg-alt); }
.account-dropdown-item.is-logout { color: var(--orange-dark); }
.account-dropdown-item.is-logout svg { color: var(--orange-dark); }
.account-dropdown-divider { height: 1px; background: var(--gray-light); margin: 6px 4px; }

.auth-hidden { display: none !important; }

/* ---------- Header cart icon + mini cart panel ---------- */
.cart-menu { position: relative; }
.cart-toggle {
  position: relative; width: 42px; height: 42px; border: 1.5px solid var(--gray-light); border-radius: 50%;
  background: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink);
}
.cart-toggle:hover { background: var(--bg-alt); }
.cart-badge {
  position: absolute; top: -6px; right: -6px; min-width: 19px; height: 19px; padding: 0 4px; border-radius: 999px;
  background: var(--orange-dark, #e05a00); color: #fff; font-size: 11px; font-weight: 800; line-height: 19px;
  text-align: center; display: none; box-shadow: 0 0 0 2px #fff;
}
.cart-badge.is-visible { display: block; }
.cart-panel {
  position: absolute; top: calc(100% + 10px); right: 0; background: #fff; border: 1px solid var(--gray-light);
  border-radius: var(--radius); box-shadow: var(--shadow-hover); width: 260px; max-height: 320px; overflow-y: auto;
  padding: 10px; opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s ease; z-index: 50;
}
.cart-panel.open { opacity: 1; visibility: visible; transform: translateY(0); }
.cart-empty { font-size: 13.5px; color: var(--gray, #6b7280); text-align: center; padding: 18px 6px; margin: 0; }
.cart-panel-list { display: flex; flex-direction: column; gap: 2px; }
.cart-panel-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 8px;
  border-radius: var(--radius); font-size: 13.5px; font-weight: 600;
}
.cart-panel-item:hover { background: var(--bg-alt); }
.cart-panel-item span { flex: 1; }
.cart-remove {
  flex: none; width: 22px; height: 22px; border-radius: 50%; border: none; background: none; cursor: pointer;
  font-size: 16px; line-height: 1; color: var(--gray, #6b7280);
}
.cart-remove:hover { background: #fce9e0; color: var(--orange-dark); }
.cart-panel-view-btn {
  display: block; text-align: center; margin-top: 8px; padding: 10px; border-radius: var(--radius);
  background: var(--ink); color: #fff; font-size: 13px; font-weight: 700;
}
.cart-panel-view-btn:hover { background: #000; }

.hamburger {
  display: none; width: 40px; height: 40px; border: 1.5px solid var(--gray-light); border-radius: var(--radius);
  background: #fff; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.hamburger span { width: 18px; height: 2px; background: var(--ink); display: block; }

/* ---------- Mobile menu drawer ---------- */
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 200; background: var(--cream);
  overflow-y: auto;
}
.mobile-menu.is-open { display: block; }
.mobile-menu .wrap { display: flex; flex-direction: column; gap: 4px; padding-bottom: 30px; }
.mobile-menu a:not(.btn) { padding: 14px 4px; font-weight: 700; font-size: 16px; border-bottom: 1px solid var(--gray-light); }
.mobile-menu-close {
  position: absolute; top: 16px; right: 20px; width: 40px; height: 40px; border: 1.5px solid var(--gray-light);
  border-radius: var(--radius); background: #fff; display: flex; align-items: center; justify-content: center;
}
.mobile-account-row { display: flex; align-items: center; gap: 12px; padding: 16px 4px; border-bottom: 1px solid var(--gray-light); }
.mobile-menu-links { display: flex; flex-direction: column; }
.mobile-menu-links a { display: flex; align-items: center; gap: 10px; }
.mobile-menu-links a svg { flex: none; color: var(--gray, #6b7280); }
.mobile-cart-link .mobile-cart-badge {
  margin-left: auto; min-width: 19px; height: 19px; padding: 0 4px; border-radius: 999px;
  background: var(--orange-dark, #e05a00); color: #fff; font-size: 11px; font-weight: 800; line-height: 19px;
  text-align: center; display: none;
}
.mobile-cart-link .mobile-cart-badge.is-visible { display: inline-block; }

/* ---------- Hero ---------- */
.hero {
  padding: 56px 0 44px;
  background-image:
    radial-gradient(circle, rgba(28,29,31,0.05) 1.6px, transparent 1.6px),
    url('../assets/hero-banner.svg'),
    linear-gradient(180deg, #fff 0%, var(--bg-alt) 100%);
  background-size: 26px 26px, 100% auto, auto;
  background-position: 0 0, right top, center;
  background-repeat: repeat, no-repeat, no-repeat;
}
.hero-inner { max-width: 720px; }
.hero h1 { font-size: clamp(32px, 4.4vw, 46px); margin-bottom: 10px; }
.hero p.sub { font-size: 17px; margin-bottom: 26px; }
.hero-search { display: flex; max-width: 560px; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; background: #fff; }
.hero-search input { flex: 1; border: none; padding: 15px 20px; font-size: 15px; }
.hero-search input:focus { outline: none; }
.hero-search button { border: none; background: var(--ink); color: #fff; padding: 0 26px; font-weight: 700; cursor: pointer; }
.hero-search button:hover { background: #000; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.chip {
  border: 1.5px solid var(--gray-light); border-radius: 999px; padding: 7px 15px; font-size: 13px; font-weight: 600;
  background: #fff; cursor: pointer;
}
.chip:hover { border-color: var(--ink); }
.chip-label { font-size: 12.5px; color: var(--gray); font-weight: 600; align-self: center; margin-right: 2px; }

/* ---------- Trust strip ---------- */
.trust-logos { display: flex; flex-wrap: wrap; gap: 42px; align-items: center; }
.trust-logos span { font-weight: 800; font-size: 19px; color: #b7bcc0; letter-spacing: -0.02em; }

/* ---------- Section shell ---------- */
section { padding: 52px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 24px; }
.section-head h2 { font-size: clamp(22px, 2.6vw, 28px); }
.section-head .btn-text { flex: none; }

/* ---------- Category tiles ---------- */
.cat-tile-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-tile {
  border: 1px solid var(--gray-light); border-radius: var(--radius-lg); padding: 22px;
  display: flex; align-items: center; gap: 14px; background: #fff; transition: box-shadow .15s ease, transform .15s ease;
}
.cat-tile:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.cat-tile .ci {
  width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  flex: none; background: var(--orange-pale);
}
.cat-tile strong { display: block; font-size: 15px; margin-bottom: 2px; }
.cat-tile span { font-size: 12.5px; color: var(--gray); }

/* ---------- Course cards ---------- */
.course-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.course-tab {
  border: 1.5px solid var(--gray-light); border-radius: 999px; padding: 8px 18px; font-weight: 700; font-size: 13px;
  background: #fff; cursor: pointer;
}
.course-tab.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

.course-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.course-card {
  border: 1px solid var(--gray-light); border-radius: var(--radius); background: #fff; overflow: hidden;
  display: flex; flex-direction: column; transition: box-shadow .15s ease, transform .15s ease;
}
.course-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.course-thumb {
  height: 128px; position: relative; display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--gray-light); overflow: hidden;
}
.course-thumb .glyph { font-weight: 800; font-size: 40px; color: rgba(28,29,31,0.16); }
.course-thumb img { width: 100%; height: 100%; object-fit: cover; }
.badge-best {
  position: absolute; top: 10px; left: 10px; background: var(--ink); color: #fff; font-size: 10.5px;
  font-weight: 800; padding: 4px 9px; border-radius: 2px; letter-spacing: .02em;
}
.badge-new { background: var(--orange); }
.course-info { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.course-info h3 { font-size: 14.5px; line-height: 1.3; font-weight: 700; }
.course-instr { font-size: 12px; color: var(--gray); }
.rating-row { display: flex; align-items: center; gap: 6px; }
.rating-num { font-weight: 800; color: #b4690e; font-size: 13px; }
.stars { display: flex; gap: 1px; }
.stars svg { width: 12px; height: 12px; }
.rating-count { font-size: 11.5px; color: var(--gray); }
.price-row { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.price-now { font-weight: 800; font-size: 16px; }
.price-was { font-size: 13px; color: var(--gray); text-decoration: line-through; }
.price-off { font-size: 12px; color: var(--orange-dark); font-weight: 700; }

.course-card-media, .course-title-link { display: block; }
.course-title-link { color: inherit; }
.course-title-link:hover { color: var(--orange-dark); }
.course-card-foot { padding: 0 16px 16px; margin-top: auto; }
.card-actions { display: flex; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--gray-light); }
.btn-cart, .btn-enroll {
  flex: 1; text-align: center; padding: 9px 10px; border-radius: var(--radius); font-size: 12.5px; font-weight: 700;
  cursor: pointer; border: 1.5px solid var(--ink); background: #fff; color: var(--ink); white-space: nowrap;
}
.btn-cart:hover { background: var(--bg-alt); }
.btn-enroll { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn-enroll:hover { background: var(--orange-dark); border-color: var(--orange-dark); }
.btn-cart.is-added { background: #E7F5EC; border-color: #1f7a41; color: #1f7a41; }
.btn-cart[disabled], .btn-enroll[disabled] { opacity: .7; cursor: default; }

/* ---------- List-style course row (courses.html) ---------- */
.course-row {
  display: grid; grid-template-columns: 220px 1fr; gap: 20px;
  border: 1px solid var(--gray-light); border-radius: var(--radius); padding: 16px; background: #fff;
  transition: box-shadow .15s ease;
}
.course-row:hover { box-shadow: var(--shadow-hover); }
.course-row .course-thumb { height: 124px; border-radius: var(--radius); border: 1px solid var(--gray-light); }
.course-row-body { display: flex; flex-direction: column; gap: 6px; }
.course-row-body h3 { font-size: 17px; }
.course-row-body .desc { font-size: 13.5px; color: var(--gray); max-width: 62ch; }
.row-meta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.row-meta span { font-size: 12px; color: var(--gray); display: flex; align-items: center; gap: 5px; }
.row-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: auto; flex-wrap: wrap; }
.row-price { display: flex; align-items: baseline; gap: 10px; }
.row-actions { display: flex; gap: 8px; flex: none; }
.row-actions .btn-cart, .row-actions .btn-enroll { padding: 9px 16px; }

/* ---------- Sale banner ---------- */
.sale-band {
  background: linear-gradient(120deg, var(--ink) 0%, #2b2b2c 55%, var(--orange-dark) 100%);
  color: #fff; padding: 46px 0;
}
.sale-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.sale-copy .kicker { color: var(--orange); font-weight: 800; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 8px; display: block; }
.sale-copy h2 { color: #fff; font-size: clamp(24px, 3.4vw, 34px); margin-bottom: 8px; }
.sale-copy p { color: #d6d7d9; font-size: 15px; }
.sale-code { display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.1); border: 1.5px dashed rgba(255,255,255,0.4); border-radius: var(--radius); padding: 8px 14px; margin-top: 14px; font-size: 13.5px; }
.sale-code strong { color: var(--orange); letter-spacing: .04em; }

/* ---------- Teach band ---------- */
.teach-band { background: var(--bg-alt); }
.teach-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.teach-visual {
  height: 320px; border-radius: var(--radius-lg); background: var(--ink); position: relative; overflow: hidden;
  display: flex; align-items: flex-end; padding: 26px;
}
.teach-visual::before {
  content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 75% 20%, rgba(255,90,31,0.5), transparent 55%);
}
.teach-visual .tv-card { position: relative; background: #fff; border-radius: var(--radius); padding: 16px 18px; max-width: 240px; }
.teach-visual .tv-card strong { display: block; font-size: 22px; }
.teach-visual .tv-card span { font-size: 12.5px; color: var(--gray); }
.teach-copy h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 14px; }
.teach-copy p { font-size: 15.5px; margin-bottom: 22px; max-width: 46ch; }
.teach-stats { display: flex; gap: 30px; margin-bottom: 26px; }
.teach-stats div strong { display: block; font-size: 22px; font-weight: 800; }
.teach-stats div span { font-size: 12.5px; color: var(--gray); }

/* ---------- Stat strip ---------- */
.stat-strip { border-top: 1px solid var(--gray-light); border-bottom: 1px solid var(--gray-light); }
.stat-strip .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.stat-strip div { text-align: center; flex: 1; min-width: 140px; }
.stat-strip strong { display: block; font-size: 28px; font-weight: 800; }
.stat-strip span { font-size: 13px; color: var(--gray); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cfd0d2; padding-top: 50px; }
.footer-grid-new { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid #3a3b3d; }
.footer-col h4 { color: var(--orange, #FF6A00); font-size: 13.5px; font-weight: 700; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: #e7e8ea; margin-bottom: 12px; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-col-brand .footer-brand-row { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; text-decoration: none; width: fit-content; }
.footer-brand-icon { height: 34px; width: 34px; border-radius: 8px; object-fit: contain; background: #fff; padding: 3px; }
.footer-logo { height: 60px; width: auto; display: block; background: transparent; }
.footer-brand-name { font-size: 17px; font-weight: 800; color: #fff; }
a.footer-brand-row:hover .footer-brand-name { text-decoration: underline; }
.footer-address { font-size: 14px; line-height: 1.7; color: #e7e8ea; margin: 0; }
.footer-hours { font-size: 14px; line-height: 1.7; color: #e7e8ea; margin: 4px 0 0; }
.footer-bottom { display: flex; justify-content: flex-start; align-items: center; padding: 20px 0; flex-wrap: wrap; gap: 14px; }
.footer-copy { color: #9a9b9d; font-size: 13px; }
.footer-brand { display: flex; align-items: center; gap: 8px; }
.footer-brand span { font-weight: 800; color: #fff; }
.footer-lang { display: flex; align-items: center; gap: 8px; border: 1px solid #4a4b4d; border-radius: var(--radius); padding: 7px 12px; font-size: 13px; }
.footer-legal { display: flex; gap: 18px; font-size: 12.5px; flex-wrap: wrap; }
.footer-legal a:hover { text-decoration: underline; }

/* ---------- Page header (interior pages) ---------- */
.page-head { background: var(--ink); color: #fff; padding: 44px 0 40px; }
.page-head .crumb { font-size: 13px; color: #b6b7ba; margin-bottom: 14px; }
.page-head .crumb a:hover { text-decoration: underline; }
.page-head .crumb .cur { color: #fff; }
.page-head h1 { color: #fff; font-size: clamp(28px, 3.6vw, 38px); max-width: 26ch; }
.page-head p { color: #cfd0d2; font-size: 15.5px; margin-top: 12px; max-width: 60ch; }

/* ---------- Legal / policy pages ---------- */
.legal-content { max-width: 74ch; padding: 44px 0 60px; }
.legal-content .legal-updated { font-size: 13px; color: var(--ink-2, #3c3d40); margin-bottom: 30px; }
.legal-content h2 { font-size: 20px; margin: 34px 0 12px; }
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content p { font-size: 15px; line-height: 1.75; color: #3c3d40; margin-bottom: 14px; }
.legal-content ul { margin: 0 0 16px 20px; }
.legal-content li { font-size: 15px; line-height: 1.75; color: #3c3d40; margin-bottom: 8px; }
.legal-content a { color: var(--orange, #FF6A00); text-decoration: underline; }

/* ---------- Courses listing layout ---------- */
.listing-shell { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; }
.filter-card { border: 1px solid var(--gray-light); border-radius: var(--radius); padding: 20px; }
.filter-card + .filter-card { margin-top: 18px; }
.filter-card h4 { font-size: 14px; margin-bottom: 14px; }
.filter-opt { display: flex; align-items: center; gap: 9px; margin-bottom: 11px; font-size: 13.5px; }
.filter-opt input { width: 16px; height: 16px; accent-color: var(--orange); }
.filter-opt .count { margin-left: auto; color: var(--gray); font-size: 12px; }
.rating-filter { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; cursor: pointer; }
.rating-filter .stars svg { width: 14px; height: 14px; }

.listing-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.listing-head span { font-size: 14px; color: var(--gray); }
.sort-select { border: 1.5px solid var(--gray-light); border-radius: var(--radius); padding: 8px 12px; font-size: 13.5px; font-weight: 600; }
.row-list { display: flex; flex-direction: column; gap: 16px; }

.courses-search-row {
  display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--gray-light); border-radius: var(--radius);
  padding: 12px 16px; margin-bottom: 18px; background: #fff; color: var(--gray);
}
.courses-search-row:focus-within { border-color: var(--ink); }
.courses-search-row input {
  flex: 1; border: none; font-size: 14.5px; color: var(--ink); background: transparent;
}
.courses-search-row input:focus { outline: none; }
.courses-search-row input::placeholder { color: var(--gray); }

.courses-empty-state { text-align: center; padding: 60px 20px; border: 1.5px dashed var(--gray-light); border-radius: var(--radius-lg); }
.courses-empty-state h3 { font-size: 19px; margin-bottom: 8px; }

/* ---------- About page ---------- */
.about-hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center; }
.about-hero-visual { height: 340px; border-radius: var(--radius-lg); background: var(--bg-alt); border: 1px solid var(--gray-light); position: relative; overflow: hidden; }
.about-hero-visual .blob { position: absolute; width: 220px; height: 220px; border-radius: 50%; background: var(--orange-pale); top: -40px; right: -40px; }
.about-hero-visual .card2 { position: absolute; bottom: 24px; left: 24px; background: #fff; border: 1px solid var(--gray-light); border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow-card); }
.about-hero-visual .card2 strong { font-size: 24px; display: block; }
.about-hero-visual .card2 span { font-size: 12.5px; color: var(--gray); }

.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value-card { border: 1px solid var(--gray-light); border-radius: var(--radius-lg); padding: 24px; }
.value-card .vi { width: 40px; height: 40px; border-radius: 50%; background: var(--orange-pale); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.value-card h3 { font-size: 16px; margin-bottom: 8px; }
.value-card p { font-size: 13.5px; }

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.team-card { border: 1px solid var(--gray-light); border-radius: var(--radius); overflow: hidden; }
.team-photo { height: 140px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 34px; color: var(--ink-2); }
.team-body { padding: 14px 16px; }
.team-body strong { display: block; font-size: 14.5px; }
.team-body span { font-size: 12.5px; color: var(--gray); }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.contact-info-card { border: 1px solid var(--gray-light); border-radius: var(--radius-lg); padding: 26px; }
.contact-info-card h3 { font-size: 18px; margin-bottom: 18px; }
.info-row { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--gray-light); }
.info-row:first-of-type { border-top: none; padding-top: 0; }
.info-row .ii { width: 34px; height: 34px; border-radius: 50%; background: var(--orange-pale); display: flex; align-items: center; justify-content: center; flex: none; }
.info-row strong { display: block; font-size: 14px; }
.info-row span { font-size: 13px; color: var(--gray); }

.form-card { border: 1px solid var(--gray-light); border-radius: var(--radius-lg); padding: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; border: 1.5px solid var(--gray-light); border-radius: var(--radius); padding: 12px 14px;
  background: #fff; font-size: 14.5px;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ink); }
.field textarea { resize: vertical; min-height: 120px; }
.field-error { font-size: 12.5px; color: var(--orange-dark); margin-top: 6px; display: none; font-weight: 600; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--orange-dark); }
.field.has-error .field-error { display: block; }
.form-note { font-size: 12.5px; color: var(--gray); margin-top: 10px; }
.form-success {
  display: none; border: 1px solid var(--gray-light); border-radius: var(--radius); padding: 18px 20px;
  background: var(--bg-alt); margin-top: 18px; font-weight: 600; font-size: 14px;
}
.form-success.is-visible { display: block; }

.faq-list { border-top: 1px solid var(--gray-light); }
.faq-item { border-bottom: 1px solid var(--gray-light); }
.faq-q {
  width: 100%; text-align: left; padding: 20px 4px; background: none; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 700; font-size: 15.5px;
}
.faq-q .plus { font-size: 20px; flex: none; width: 26px; height: 26px; border: 1.5px solid var(--gray-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: transform .18s ease; }
.faq-item.is-open .plus { transform: rotate(45deg); background: var(--orange); border-color: var(--orange); color: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .22s ease; }
.faq-a p { padding: 0 4px 20px; font-size: 14px; max-width: 68ch; }

.map-card { border: 1px solid var(--gray-light); border-radius: var(--radius-lg); overflow: hidden; height: 300px; position: relative; background: var(--bg-alt); }
.map-card .pin { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -110%); text-align: center; }
.map-card .pin-dot { width: 20px; height: 20px; background: var(--orange); border: 2.5px solid #fff; box-shadow: 0 0 0 2px var(--orange); border-radius: 50% 50% 50% 0; transform: rotate(45deg); margin: 0 auto; }
.map-card .pin-label { margin-top: 10px; background: #fff; border: 1px solid var(--gray-light); padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .course-grid, .cat-tile-grid, .value-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid-new { grid-template-columns: 1fr 1fr 1fr; }
  .listing-shell { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .teach-inner, .about-hero, .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
  .wrap { padding: 0 20px; }
  .main-nav { display: none; }
  .header-inner { grid-template-columns: auto auto; justify-content: space-between; }
  .header-actions .auth-btn, .header-actions .account-menu, .header-actions .cart-menu { display: none; }
  .hamburger { display: flex; }
  .course-grid, .cat-tile-grid, .value-grid, .team-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid-new { grid-template-columns: 1fr 1fr; }
  .course-row { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .sale-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .course-grid, .cat-tile-grid, .value-grid, .team-grid { grid-template-columns: 1fr; }
  .footer-grid-new { grid-template-columns: 1fr; }
}

/* =========================================================
   Auth modals (login / signup / forgot password)
   ========================================================= */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(23,20,15,0.55); z-index: 300;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity .18s ease;
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal {
  background: #fff; border-radius: var(--radius-lg); padding: 36px; width: 100%; max-width: 420px;
  position: relative; transform: translateY(10px); transition: transform .18s ease;
  max-height: 90vh; overflow-y: auto;
}
.modal-backdrop.open .modal { transform: translateY(0); }
.modal-close {
  position: absolute; top: 16px; right: 18px; background: none; border: none; font-size: 22px;
  cursor: pointer; color: var(--gray); line-height: 1;
}
.modal-kicker { font-size: 12.5px; font-weight: 700; color: var(--orange-dark); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.modal h3 { font-size: 22px; margin: 0 0 20px; }
.modal form { display: flex; flex-direction: column; gap: 12px; }
.modal form input, .modal form select {
  width: 100%; border: 1.5px solid var(--gray-light); border-radius: var(--radius); padding: 12px 14px;
  font-size: 14.5px; background: #fff;
}
.modal form input:focus, .modal form select:focus { border-color: var(--ink); }
.form-error {
  display: none; background: #FFE8DC; color: var(--orange-dark); border: 1px solid #ffcbaa; border-radius: var(--radius);
  padding: 10px 14px; font-size: 13px; font-weight: 600; margin-bottom: 4px;
}
.form-error.show { display: block; }
.form-error.info { background: #E7F5EC; color: #1f7a41; border-color: #bfe6cd; }

.pw-wrap { position: relative; }
.pw-wrap input { width: 100%; padding-right: 44px !important; }
.pw-toggle {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none;
  cursor: pointer; font-size: 16px; padding: 4px;
}

.email-verify-wrap { display: flex; gap: 8px; align-items: stretch; }
.email-verify-wrap input { flex: 1; min-width: 0; }
.btn-verify { flex: none; white-space: nowrap; padding: 0 16px; font-size: 13px; }

.email-verified-badge { display: none; color: #1f7a41; font-size: 12.5px; font-weight: 700; margin-top: -4px; }
.email-verified-badge.show { display: block; }

.otp-row { display: none; gap: 8px; align-items: stretch; margin-top: -2px; }
.otp-row.show { display: flex; }
.otp-row input {
  flex: 1; text-align: center; letter-spacing: 6px; font-weight: 700; font-size: 16px;
}
.btn-otp-confirm { flex: none; white-space: nowrap; padding: 0 14px; font-size: 13px; }
.otp-resend { display: none; font-size: 12.5px; color: var(--gray); margin-top: -4px; }
.otp-resend.show { display: block; }
.otp-resend a { color: var(--orange-dark); font-weight: 700; }
#otpTimer { margin-left: 4px; color: var(--gray); }

.forgot-row { text-align: right; margin-top: -4px; }
.forgot-row a { font-size: 13px; font-weight: 600; color: var(--orange-dark); }

.modal .btn.is-loading { opacity: .7; pointer-events: none; }
.modal-foot { text-align: center; margin-top: 18px; font-size: 13.5px; color: var(--gray); }
.modal-foot a { color: var(--orange-dark); font-weight: 700; }

@media (max-width: 480px) {
  .modal { padding: 28px 22px; }
}

/* =========================================================
   Course detail page (course.html)
   ========================================================= */
.detail-crumb { padding: 20px 0 0; font-size: 13px; font-weight: 600; color: var(--gray); }
.detail-crumb a { color: var(--gray); }
.detail-crumb a:hover { color: var(--orange-dark); }

.course-detail-shell { display: grid; grid-template-columns: 1fr 380px; gap: 44px; align-items: start; padding: 24px 0 60px; }
.course-hero-img { width: 100%; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--gray-light); aspect-ratio: 3/2; }
.course-hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.detail-tag { display: inline-block; background: var(--orange-pale); color: var(--orange-dark); font-size: 12px; font-weight: 800; padding: 5px 12px; border-radius: 999px; margin: 20px 0 10px; text-transform: uppercase; letter-spacing: .03em; }
.course-detail-body h1 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 12px; }
.detail-sub-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; font-size: 13.5px; color: var(--gray); }
.detail-sub-meta .rating-row { gap: 6px; }
.detail-sub-meta .rating-num { color: #b4690e; }

.detail-section { margin-top: 34px; }
.detail-section h2 { font-size: 19px; margin-bottom: 14px; }
.detail-section p { font-size: 15px; max-width: 68ch; }

.detail-points { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 26px; }
.detail-points li { display: flex; gap: 10px; font-size: 14.5px; align-items: flex-start; }
.detail-points li svg { flex: none; margin-top: 3px; color: var(--orange-dark); }

.detail-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; border: 1px solid var(--gray-light); border-radius: var(--radius-lg); padding: 22px; }
.detail-facts div strong { display: block; font-size: 12px; color: var(--gray); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 5px; }
.detail-facts div span { font-size: 14.5px; font-weight: 700; }

.instructor-card { display: flex; gap: 16px; align-items: flex-start; border: 1px solid var(--gray-light); border-radius: var(--radius-lg); padding: 22px; }
.instructor-avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 800; font-size: 19px; display: flex; align-items: center; justify-content: center; flex: none; }
.instructor-card h3 { font-size: 16px; margin-bottom: 4px; }
.instructor-card p { font-size: 14px; }

.sidebar-card { position: sticky; top: 100px; border: 1px solid var(--gray-light); border-radius: var(--radius-lg); overflow: hidden; background: #fff; box-shadow: var(--shadow-hover); }
.sidebar-thumb { aspect-ratio: 3/2; }
.sidebar-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sidebar-body { padding: 24px; }
.sidebar-price-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 18px; }
.sidebar-price-now { font-size: 26px; font-weight: 800; }
.sidebar-price-was { font-size: 15px; color: var(--gray); text-decoration: line-through; }
.sidebar-price-off { font-size: 13px; color: var(--orange-dark); font-weight: 700; }
.sidebar-body .btn-enroll, .sidebar-body .btn-cart { width: 100%; padding: 13px; font-size: 14.5px; border-radius: var(--radius); margin-bottom: 10px; }
.sidebar-guarantee { display: flex; align-items: center; gap: 8px; justify-content: center; font-size: 12.5px; color: var(--gray); margin-top: 4px; }
.sidebar-guarantee svg { flex: none; color: var(--orange-dark); }
.sidebar-divider { height: 1px; background: var(--gray-light); margin: 20px 0; }
.sidebar-row { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; margin-bottom: 10px; gap: 12px; }
.sidebar-row span:first-child { color: var(--gray); flex: none; }
.sidebar-row span:last-child { font-weight: 700; }
.sidebar-chip {
  background: var(--bg-alt); border: 1px solid var(--gray-light); border-radius: 999px;
  padding: 4px 13px; font-size: 12.5px; font-weight: 700; color: var(--ink); white-space: nowrap;
}
.sidebar-instr-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--bg-alt); border-radius: 999px; padding: 5px 12px 5px 5px; font-size: 13px; font-weight: 700; }
.sidebar-instr-chip .mini-avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--orange); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; }

.salary-box {
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  background: #E7F5EC; border: 1px solid #bfe6cd; border-radius: var(--radius-lg); padding: 20px 16px;
}
.salary-label { font-size: 11.5px; font-weight: 800; color: #1f7a41; text-transform: uppercase; letter-spacing: .04em; }
.salary-amount { font-size: 26px; font-weight: 800; color: #1f7a41; }

.cart-toast {
  position: fixed; bottom: 24px; right: 24px; background: var(--ink); color: #fff; padding: 14px 22px;
  border-radius: var(--radius); font-size: 14px; font-weight: 600; box-shadow: var(--shadow-hover);
  transform: translateY(20px); opacity: 0; pointer-events: none; transition: transform .2s ease, opacity .2s ease; z-index: 400;
}
.cart-toast.show { transform: translateY(0); opacity: 1; }

.not-found-card { text-align: center; padding: 80px 20px; }
.not-found-card h1 { font-size: 26px; margin-bottom: 12px; }

@media (max-width: 900px) {
  .course-detail-shell { grid-template-columns: 1fr; }
  .sidebar-card { position: static; }
  .detail-facts { grid-template-columns: 1fr 1fr; }
  .detail-points { grid-template-columns: 1fr; }
}

/* =========================================================
   Interior "checkout-style" page header (cart / dashboard /
   orders / billing) — light kicker + big serif-weight heading,
   matched to the sale-band kicker treatment already on the site.
   ========================================================= */
.simple-hero { background: var(--cream); border-bottom: 1px solid var(--gray-light); padding: 40px 0 34px; }
.simple-hero .kicker { color: var(--orange-dark); font-weight: 800; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; display: block; margin-bottom: 10px; }
.simple-hero h1 { font-size: clamp(28px, 3.6vw, 38px); }
.simple-hero p { margin-top: 8px; font-size: 15px; }

/* ---------- Cart page ---------- */
.cart-shell { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; padding: 34px 0 70px; }
.cart-items { display: flex; flex-direction: column; gap: 16px; }
.cart-item-card {
  display: flex; gap: 18px; align-items: center; border: 1px solid var(--gray-light); border-radius: var(--radius-lg);
  padding: 16px; background: #fff; position: relative;
}
.cart-item-thumb { width: 96px; height: 72px; border-radius: var(--radius); overflow: hidden; flex: none; border: 1px solid var(--gray-light); }
.cart-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-body { flex: 1; min-width: 0; }
.cart-item-tag { display: inline-block; background: var(--orange-pale); color: var(--orange-dark); font-size: 10.5px; font-weight: 800; padding: 3px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 6px; }
.cart-item-body h3 { font-size: 16px; margin-bottom: 4px; }
.cart-item-body h3 a { color: inherit; }
.cart-item-body h3 a:hover { color: var(--orange-dark); }
.cart-item-meta { font-size: 12.5px; color: var(--gray); margin-bottom: 6px; }
.cart-item-price { display: flex; align-items: baseline; gap: 8px; }
.cart-item-price .now { font-weight: 800; font-size: 16px; }
.cart-item-price .was { font-size: 13px; color: var(--gray); text-decoration: line-through; }
.cart-item-remove {
  flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--gray-light); background: #fff;
  color: var(--gray); cursor: pointer; font-size: 16px; line-height: 1; align-self: flex-start;
}
.cart-item-remove:hover { background: #fce9e0; border-color: #ffcbaa; color: var(--orange-dark); }

.cart-summary-card { position: sticky; top: 100px; background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: 26px; }
.cart-summary-card h3 { color: #fff; font-size: 19px; margin-bottom: 18px; }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; color: #c9cacc; padding: 9px 0; }
.summary-row.total { border-top: 1px solid #3a3b3d; margin-top: 6px; padding-top: 16px; font-weight: 800; font-size: 17px; color: var(--orange); }
.summary-row.total span:last-child { color: var(--orange); }
.cart-summary-card .btn-orange { width: 100%; margin-top: 18px; padding: 14px; font-size: 15px; }
.cart-summary-note { text-align: center; font-size: 12px; color: #9a9b9d; margin-top: 12px; }
.cart-summary-card .btn-orange.is-loading { opacity: .75; pointer-events: none; }

.cart-empty-state { text-align: center; padding: 90px 20px; border: 1.5px dashed var(--gray-light); border-radius: var(--radius-lg); }
.cart-empty-state .cei { width: 64px; height: 64px; border-radius: 50%; background: var(--orange-pale); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; color: var(--orange-dark); }
.cart-empty-state h2 { font-size: 21px; margin-bottom: 8px; }
.cart-empty-state p { margin-bottom: 22px; }

@media (max-width: 900px) {
  .cart-shell { grid-template-columns: 1fr; }
  .cart-summary-card { position: static; }
  .cart-item-card { flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .cart-item-card { flex-direction: column; align-items: flex-start; }
  .cart-item-remove { position: absolute; top: 14px; right: 14px; }
  .cart-item-thumb { width: 100%; height: 140px; }
}

/* =========================================================
   Account area shared shell (dashboard / orders / billing)
   ========================================================= */
.account-shell { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; padding: 34px 0 70px; }
.account-sidebar { border: 1px solid var(--gray-light); border-radius: var(--radius-lg); padding: 10px; position: sticky; top: 100px; }
.account-sidebar-user { display: flex; align-items: center; gap: 10px; padding: 12px 10px 14px; border-bottom: 1px solid var(--gray-light); margin-bottom: 8px; }
.account-sidebar-user .account-avatar { width: 38px; height: 38px; font-size: 15px; }
.account-sidebar-user strong { display: block; font-size: 14px; }
.account-sidebar-user span { font-size: 12px; color: var(--gray); word-break: break-all; }
.account-nav-link {
  display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: var(--radius); font-size: 14px;
  font-weight: 600; color: var(--ink); margin-bottom: 2px;
}
.account-nav-link svg { flex: none; color: var(--gray); }
.account-nav-link:hover { background: var(--bg-alt); }
.account-nav-link.is-active { background: var(--orange-pale); color: var(--orange-dark); }
.account-nav-link.is-active svg { color: var(--orange-dark); }

.account-main h1 { font-size: 24px; margin-bottom: 4px; }
.account-main > .lede { margin-bottom: 26px; }

/* ---------- Dashboard ---------- */
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 34px; }
.stat-card { border: 1px solid var(--gray-light); border-radius: var(--radius-lg); padding: 20px; }
.stat-card .si { width: 36px; height: 36px; border-radius: 50%; background: var(--orange-pale); color: var(--orange-dark); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.stat-card strong { display: block; font-size: 26px; font-weight: 800; }
.stat-card span { font-size: 12.5px; color: var(--gray); }
.dash-section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.dash-section-head h2 { font-size: 18px; }
.continue-link { display: block; text-align: center; padding: 9px; margin: 0 16px 16px; border-radius: var(--radius); border: 1.5px solid var(--ink); font-size: 12.5px; font-weight: 700; }
.continue-link:hover { background: var(--ink); color: #fff; }
.dash-empty { border: 1.5px dashed var(--gray-light); border-radius: var(--radius-lg); padding: 46px 20px; text-align: center; }
.dash-empty p { margin-bottom: 16px; }

/* ---------- Orders ---------- */
.order-card { border: 1px solid var(--gray-light); border-radius: var(--radius-lg); margin-bottom: 18px; overflow: hidden; }
.order-card-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 20px; background: var(--bg-alt); border-bottom: 1px solid var(--gray-light); }
.order-card-head .oid { font-size: 13px; font-weight: 700; }
.order-card-head .oid span { color: var(--gray); font-weight: 500; }
.order-status { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; padding: 5px 12px; border-radius: 999px; background: #E7F5EC; color: #1f7a41; }
.order-card-body { padding: 6px 20px; }
.order-item-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--gray-light); }
.order-item-row:last-child { border-bottom: none; }
.order-item-row img { width: 56px; height: 42px; object-fit: cover; border-radius: 4px; flex: none; border: 1px solid var(--gray-light); }
.order-item-row .oi-title { flex: 1; font-size: 14px; font-weight: 600; }
.order-item-row .oi-price { font-size: 13.5px; font-weight: 700; color: var(--gray); }
.order-address { padding: 10px 20px; font-size: 12.5px; color: var(--gray); border-top: 1px dashed var(--gray-light); }
.order-card-foot { display: flex; justify-content: flex-end; gap: 26px; padding: 14px 20px; background: var(--bg-alt); border-top: 1px solid var(--gray-light); font-size: 13.5px; }
.order-card-foot strong { font-size: 15px; }
.order-card-actions { display: flex; justify-content: flex-end; padding: 10px 20px 16px; }
.order-card-actions .invoice-download-btn { font-size: 13px; }
.order-success-banner { display: flex; align-items: center; gap: 12px; background: #E7F5EC; border: 1px solid #bfe6cd; color: #1f7a41; border-radius: var(--radius-lg); padding: 16px 20px; margin-bottom: 26px; font-weight: 600; font-size: 14px; }
.order-success-banner svg { flex: none; }

/* ---------- Billing ---------- */
.billing-saved { border: 1px solid var(--gray-light); border-radius: var(--radius-lg); padding: 20px 22px; margin-bottom: 24px; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.billing-saved h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--gray); margin-bottom: 8px; }
.billing-saved p { color: var(--ink); font-size: 14.5px; line-height: 1.7; }
.billing-empty-note { font-size: 13.5px; color: var(--gray); margin-bottom: 24px; }

@media (max-width: 900px) {
  .account-shell { grid-template-columns: 1fr; }
  .account-sidebar { position: static; display: flex; overflow-x: auto; gap: 4px; }
  .account-sidebar-user { display: none; }
  .account-nav-link { white-space: nowrap; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .stat-cards { grid-template-columns: 1fr; }
  .order-card-foot { flex-direction: column; gap: 4px; align-items: flex-end; }
}

/* =========================================================
   Checkout page (checkout.html)
   ========================================================= */
.back-link { display: inline-block; margin-bottom: 14px; font-size: 13px; font-weight: 600; color: var(--gray); }
.back-link:hover { color: var(--orange-dark); }

.checkout-shell { display: grid; grid-template-columns: 1.5fr 1fr; gap: 30px; align-items: start; padding: 8px 0 70px; }
.checkout-card { border: 1px solid var(--gray-light); border-radius: var(--radius-lg); background: #fff; padding: 28px 30px; display: flex; flex-direction: column; gap: 14px; }
.checkout-card h3 { font-size: 17px; }
.checkout-card h3.section-gap { margin-top: 8px; }
.checkout-card .field { margin-bottom: 0; }
.checkout-card .form-row { margin-bottom: 0; }
.checkout-card input:disabled, .checkout-card textarea:disabled, .checkout-card select:disabled { background: var(--bg-alt); color: var(--gray); }
.checkout-subnote { font-size: 12.5px; color: var(--gray); margin-top: -6px; }
.edit-details-link {
  align-self: flex-start; background: none; border: none; padding: 0; margin-top: -4px;
  font-size: 12.5px; font-weight: 700; color: var(--orange-dark); cursor: pointer; text-decoration: underline;
}
.pay-note { font-size: 12px; color: var(--gray); margin-top: -2px; }
.checkout-card .btn.is-loading, .checkout-card button:disabled { opacity: .7; pointer-events: none; }

.summary-items { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid #3a3b3d; }
.summary-item { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.summary-item .si-title { color: #d6d7d9; }
.summary-item .si-price { color: var(--orange); font-weight: 700; white-space: nowrap; }

.coupon-row { display: flex; gap: 8px; margin-bottom: 6px; }
.coupon-row input {
  flex: 1; padding: 10px 13px; border-radius: 8px; border: 1.5px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.07); color: #fff; font-size: 13.5px;
}
.coupon-row input::placeholder { color: rgba(255,255,255,0.45); }
.coupon-row .btn-outline { border-color: rgba(255,255,255,0.35); color: #fff; background: transparent; padding: 9px 16px; font-size: 12.5px; white-space: nowrap; }
.coupon-row .btn-outline:hover { background: rgba(255,255,255,0.12); }
.coupon-msg { font-size: 12px; margin-bottom: 12px; min-height: 15px; }
.coupon-msg.ok { color: #7fd99a; }
.coupon-msg.err { color: #ffb199; }
.summary-row.discount-row { color: #7fd99a; }

@media (max-width: 900px) {
  .checkout-shell { grid-template-columns: 1fr; }
  .cart-summary-card { position: static; }
}
@media (max-width: 780px) {
  .checkout-card { padding: 22px 20px; }
}

/* =========================================================
   Payment gateway page (payment-gateway.html) — standalone,
   no site header/footer, centered card like a real gateway hand-off.
   ========================================================= */
.gateway-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 30px 16px; background: var(--bg-alt); }
.gateway-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-hover); padding: 38px 34px; width: 100%; max-width: 420px; text-align: center; }
.gateway-brand { display: flex; align-items: center; justify-content: center; margin-bottom: 26px; }
.gateway-brand img { height: 34px; width: auto; }
.gateway-eyebrow { font-weight: 800; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--orange-dark); margin-bottom: 6px; }
.gateway-card h1 { font-size: 22px; margin-bottom: 10px; }
.gateway-note { font-size: 13px; color: var(--gray); margin-bottom: 22px; }

.gateway-amount-row {
  display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0;
  border-top: 1px solid var(--gray-light); border-bottom: 1px solid var(--gray-light); margin-bottom: 14px;
}
.gateway-amount { font-size: 24px; font-weight: 800; }
.gateway-detail-row { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--gray); margin-bottom: 8px; gap: 14px; text-align: left; }
.gateway-detail-row span:last-child { color: var(--ink); font-weight: 600; text-align: right; }
.gateway-cancel { display: block; margin-top: 14px; font-size: 12.5px; color: var(--gray); text-decoration: underline; }

.gateway-terms {
  display: flex; align-items: flex-start; gap: 9px; text-align: left; margin: 16px 0 14px;
  font-size: 12.5px; color: var(--gray); line-height: 1.5; cursor: pointer;
}
.gateway-terms input[type="checkbox"] { width: 16px; height: 16px; margin-top: 1px; flex: none; accent-color: var(--orange); cursor: pointer; }
.gateway-terms a { color: var(--orange-dark); font-weight: 600; text-decoration: underline; }
.gateway-terms-hint { display: none; font-size: 12px; color: var(--orange-dark); font-weight: 600; margin: -8px 0 12px; text-align: left; }
.gateway-terms-hint.show { display: block; }
.gateway-card .btn[disabled] { opacity: .55; cursor: not-allowed; }

.gateway-spinner {
  width: 44px; height: 44px; margin: 0 auto 22px; border-radius: 50%;
  border: 4px solid var(--gray-light); border-top-color: var(--orange);
  animation: gw-spin 0.8s linear infinite;
}
@keyframes gw-spin { to { transform: rotate(360deg); } }


.gateway-result-icon {
  width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 700; background: #E7F5EC; color: #1f7a41;
}
.gateway-result-icon.err { background: #FFE8DC; color: var(--orange-dark); }
