/* =========================================================
   AYTERIS — core stylesheet
   Colors are sampled directly from the real logo file:
     navy  #061029   (logo background — used for top/bottom bars)
     teal  #03B7A2   (the "ris" in the logo — used as the accent)
     white #FFFFFF   (the "Ayte" in the logo)
   Change the values below and the ENTIRE site updates.
   ========================================================= */

:root {
  /* --- brand --- */
  --navy: #061029;
  --navy-light: #0F2044;
  --teal: #03B7A2;
  --teal-dark: #028A7B;
  --teal-wash: #E7F7F5;
  --white: #FFFFFF;

  /* --- surfaces & text (light UI, per the brief) --- */
  --bg: #F5F7FA;
  --surface: #FFFFFF;
  --ink: #0B1730;
  --muted: #5B6478;
  --line: #E1E5EC;

  /* --- type --- */
  --font-sans: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;

  /* --- shape & motion --- */
  --radius: 10px;
  --ease: cubic-bezier(.4,0,.2,1);
  --container: 1180px;
}

/* ---------- reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; cursor: pointer; }
input, select { font: inherit; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--teal);
  color: var(--navy);
  padding: 0.75rem 1rem;
  z-index: 200;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- typography scale ---------- */
h1, .h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.01em; }
h2, .h2 { font-size: clamp(1.6rem, 2.6vw, 2.15rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
h3, .h3 { font-size: 1.2rem; font-weight: 700; line-height: 1.3; }
.lead { font-size: 1.1rem; color: var(--muted); line-height: 1.6; }
.mono { font-family: var(--font-mono); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.97rem;
  border: 1.5px solid transparent;
  text-decoration: none;
  transition: transform .15s var(--ease), background .15s var(--ease), border-color .15s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--teal); color: var(--navy); }
.btn-primary:hover { background: var(--teal-dark); color: var(--white); }
.btn-outline { background: transparent; border-color: currentColor; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-on-navy { background: transparent; border-color: rgba(255,255,255,.4); color: var(--white); }
.btn-on-navy:hover { background: var(--teal); border-color: var(--teal); color: var(--navy); }
.btn-sm { padding: 0.55rem 1rem; font-size: 0.87rem; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- corner-bracket "frame" motif (signature card treatment) ---------- */
.frame {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.75rem;
}
.frame::before, .frame::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid var(--teal);
  transition: width .2s var(--ease), height .2s var(--ease);
}
.frame::before { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.frame::after { bottom: -2px; right: -2px; border-left: none; border-top: none; }
.frame:hover::before, .frame:hover::after { width: 22px; height: 22px; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 1.5rem;
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 26px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 0 auto 0 2.5rem;
}
.main-nav a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 500;
  position: relative;
  padding: 0.3rem 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s var(--ease);
}
.main-nav a:hover, .main-nav a.active { color: var(--white); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 0.9rem; flex-shrink: 0; }

.founder-btn {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.3);
  color: var(--white);
  padding: 0.45rem 0.9rem 0.45rem 0.45rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
.founder-btn:hover { border-color: var(--teal); background: rgba(3,183,162,.12); }
.founder-avatar-sm {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--teal);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.72rem;
  flex-shrink: 0;
}

.cart-btn {
  position: relative;
  background: transparent;
  border: none;
  color: var(--white);
  display: flex;
  align-items: center;
  padding: 0.4rem;
}
.cart-btn svg { width: 22px; height: 22px; }
.cart-count {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--teal);
  color: var(--navy);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  padding: 0.4rem;
}
.menu-toggle svg { width: 24px; height: 24px; }

/* mobile nav */
@media (max-width: 860px) {
  .main-nav {
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s var(--ease);
    border-top: 1px solid rgba(255,255,255,.08);
  }
  .site-header.nav-open .main-nav { max-height: 320px; }
  .main-nav a { width: 100%; padding: 0.95rem 1.5rem; }
  .main-nav a::after { display: none; }
  .site-header.nav-open .main-nav a:hover, .main-nav a.active { background: rgba(3,183,162,.1); }
  .menu-toggle { display: flex; }
  .founder-btn span.founder-label { display: none; }
  .founder-btn { padding: 0.45rem; border-radius: 50%; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--navy); color: rgba(255,255,255,.85); margin-top: 5rem; }
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
}
.footer-brand img { height: 24px; margin-bottom: 1rem; }
.footer-brand p { max-width: 34ch; color: rgba(255,255,255,.6); font-size: 0.93rem; }
.footer-heading { font-family: var(--font-mono); font-size: 0.78rem; color: rgba(255,255,255,.5); letter-spacing: 0.04em; margin-bottom: 1.1rem; }
.contact-list { display: flex; flex-direction: column; gap: 0.85rem; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: rgba(255,255,255,.88);
  font-size: 0.95rem;
  width: fit-content;
}
.contact-item svg { width: 19px; height: 19px; color: var(--teal); flex-shrink: 0; }
.contact-item:hover { color: var(--teal); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.83rem;
  color: rgba(255,255,255,.45);
}
@media (max-width: 560px) {
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 640px) {
  .footer-inner { grid-template-columns: 1fr; gap: 2.2rem; }
}

/* =========================================================
   HOME — HERO
   ========================================================= */
.hero { padding: 5rem 0 4rem; }
.hero-inner { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.hero-eyebrow { color: var(--muted); font-size: 1.05rem; margin-bottom: 1.5rem; max-width: 46ch; }

.acronym-wordmark {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem clamp(0.3rem, 1vw, 0.7rem);
  margin-bottom: 2.2rem;
}
.acr-letter { display: flex; flex-direction: column; align-items: center; min-width: 5.7rem; }
.acr-l {
  font-size: clamp(2.6rem, 8vw, 5rem);
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
}
.acr-letter.teal .acr-l { color: var(--teal); }
.acr-letter.reserved .acr-l { color: var(--line); }
.acr-meaning {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--muted);
  margin-top: 0.5rem;
  text-align: center;
  max-width: 100%;
  overflow-wrap: break-word;
  white-space: nowrap;
}
.acr-letter.reserved .acr-meaning { color: var(--muted); }
@media (max-width: 560px) {
  .acr-letter { min-width: 4.3rem; }
  .acr-meaning { font-size: 0.58rem; white-space: normal; }
}

.hero-tagline { font-size: 1.2rem; color: var(--muted); max-width: 56ch; margin-bottom: 2.2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- hub grid ---------- */
.section { padding: 4rem 0; }
.section-head { max-width: 60ch; margin-bottom: 2.5rem; }
.section-head .h2 { margin-bottom: 0.7rem; }

.hub-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.hub-card { text-decoration: none; color: inherit; display: block; }
.hub-icon { width: 38px; height: 38px; color: var(--teal); margin-bottom: 1.2rem; }
.hub-icon svg { width: 100%; height: 100%; }
.hub-card h3 { margin-bottom: 0.6rem; }
.hub-card p { color: var(--muted); font-size: 0.93rem; }
.hub-arrow { margin-top: 1.2rem; font-family: var(--font-mono); font-size: 0.82rem; color: var(--teal); font-weight: 600; }

@media (max-width: 980px) { .hub-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .hub-grid { grid-template-columns: 1fr; } }

/* ---------- founder teaser (home) ---------- */
.founder-teaser {
  background: var(--navy);
  border-radius: 4px;
  padding: 3rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2.2rem;
  color: var(--white);
}
.founder-teaser-avatar {
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--teal);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.6rem;
  flex-shrink: 0;
}
.founder-teaser-text .founder-kicker { font-family: var(--font-mono); font-size: 0.78rem; color: var(--teal); margin-bottom: 0.5rem; }
.founder-teaser-text h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.founder-teaser-text p { color: rgba(255,255,255,.65); font-size: 0.95rem; max-width: 56ch; }
@media (max-width: 780px) {
  .founder-teaser { grid-template-columns: auto 1fr; }
  .founder-teaser > .btn { grid-column: 1 / -1; }
}
@media (max-width: 500px) {
  .founder-teaser { grid-template-columns: 1fr; text-align: left; padding: 2.2rem 1.5rem; }
}

/* =========================================================
   PAGE HEADER (inner pages)
   ========================================================= */
.page-header { padding: 3.4rem 0 2.6rem; border-bottom: 1px solid var(--line); }
.page-header .h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 0.8rem; }
.page-header .lead { max-width: 62ch; }

/* =========================================================
   TECHLABS
   ========================================================= */
.service-list { display: flex; flex-direction: column; gap: 1rem; }
.service-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1.4rem;
  align-items: start;
}
.service-icon { width: 44px; height: 44px; color: var(--teal); }
.service-icon svg { width: 100%; height: 100%; }
.service-row h3 { margin-bottom: 0.4rem; }
.service-row p { color: var(--muted); font-size: 0.95rem; }

.techlabs-cta {
  margin-top: 3.5rem;
  background: var(--teal-wash);
  border-radius: 4px;
  padding: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.techlabs-cta h3 { margin-bottom: 0.4rem; }
.techlabs-cta p { color: var(--muted); font-size: 0.93rem; }

/* =========================================================
   STORE
   ========================================================= */
.store-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 2.5rem;
  align-items: start;
  padding: 2.5rem 0 5rem;
}
.category-sidebar { position: sticky; top: 90px; }
.category-sidebar h2 { font-size: 0.85rem; font-family: var(--font-mono); color: var(--muted); margin-bottom: 1rem; letter-spacing: .02em; }
.category-list { display: flex; flex-direction: column; gap: 0.2rem; }
.category-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-left: 2px solid transparent;
  padding: 0.65rem 0.9rem;
  color: var(--muted);
  font-size: 0.93rem;
  border-radius: 0 4px 4px 0;
}
.category-btn:hover { color: var(--ink); background: var(--surface); }
.category-btn.active { color: var(--ink); border-left-color: var(--teal); background: var(--surface); font-weight: 600; }

.store-toolbar { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1.6rem; }
.store-toolbar h2 { font-size: 1.4rem; }
.store-toolbar .count { color: var(--muted); font-size: 0.88rem; font-family: var(--font-mono); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.4rem;
}
.product-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.product-thumb {
  aspect-ratio: 1 / 1;
  background: var(--teal-wash);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.6rem;
}
.product-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: 0.7rem; flex: 1; }
.product-cat { font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted); }
.product-name { font-size: 0.98rem; font-weight: 600; line-height: 1.35; text-decoration: none; color: inherit; }
.product-name:hover { color: var(--teal-dark); }
.product-thumb-link { display: block; }
.product-row { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.product-price { font-family: var(--font-mono); font-weight: 600; }
.add-btn {
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 30px;
  width: 34px; height: 34px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s var(--ease);
}
.add-btn:hover { background: var(--teal); color: var(--navy); }
.add-btn svg { width: 17px; height: 17px; }

/* cart drawer */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(6,16,41,.5);
  opacity: 0; pointer-events: none;
  transition: opacity .2s var(--ease);
  z-index: 200;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(400px, 100%);
  background: var(--surface);
  z-index: 201;
  transform: translateX(100%);
  transition: transform .25s var(--ease);
  display: flex;
  flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.cart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem 1.5rem;
  border-bottom: 1px solid var(--line);
}
.cart-close { background: none; border: none; padding: 0.3rem; }
.cart-close svg { width: 22px; height: 22px; }
.cart-items { flex: 1; overflow-y: auto; padding: 1rem 1.5rem; display: flex; flex-direction: column; gap: 1.1rem; }
.cart-item { display: grid; grid-template-columns: 46px 1fr auto; gap: 0.9rem; align-items: center; }
.cart-item-thumb {
  width: 46px; height: 46px; border-radius: 4px;
  background: var(--teal-wash); color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 700; font-size: 0.85rem;
}
.cart-item-name { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.3rem; }
.cart-item-qty { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-mono); font-size: 0.85rem; }
.qty-btn { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); background: none; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; line-height: 1; }
.cart-item-price { font-family: var(--font-mono); font-weight: 600; font-size: 0.9rem; text-align: right; }
.cart-item-remove { grid-column: 3; justify-self: end; background: none; border: none; color: var(--muted); font-size: 0.78rem; text-decoration: underline; padding: 0; }
.cart-empty { color: var(--muted); font-size: 0.93rem; padding: 2rem 0; text-align: center; }
.cart-footer { border-top: 1px solid var(--line); padding: 1.4rem 1.5rem 1.7rem; }
.cart-subtotal { display: flex; justify-content: space-between; margin-bottom: 1rem; font-weight: 600; }
.cart-subtotal .amount { font-family: var(--font-mono); }
.cart-note { font-size: 0.78rem; color: var(--muted); margin-top: 0.7rem; text-align: center; }

@media (max-width: 780px) {
  .store-layout { grid-template-columns: 1fr; padding-top: 1.5rem; }
  .category-sidebar { position: static; }
  .category-list { flex-direction: row; flex-wrap: wrap; gap: 0.5rem; }
  .category-btn { border-left: none; border-bottom: 2px solid transparent; background: var(--surface); border: 1px solid var(--line); }
  .category-btn.active { border-color: var(--teal); border-bottom: 1px solid var(--teal); }
}

/* =========================================================
   COURSES & ARTICLES (shared card grid)
   ========================================================= */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 980px) { .card-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .card-grid { grid-template-columns: 1fr; } }

.course-card, .article-card { display: flex; flex-direction: column; height: 100%; }
.course-level { font-family: var(--font-mono); font-size: 0.72rem; color: var(--teal); margin-bottom: 0.9rem; }
.course-card h3, .article-card h3 { margin-bottom: 0.6rem; }
.course-card p, .article-card p { color: var(--muted); font-size: 0.92rem; flex: 1; }
.course-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 1.3rem; padding-top: 1.1rem; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 0.82rem; color: var(--muted); }
.course-meta a { text-decoration: none; color: var(--teal-dark); font-weight: 600; }
.article-date { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); margin-bottom: 0.9rem; }
.article-link { margin-top: 1.2rem; font-family: var(--font-mono); font-size: 0.82rem; color: var(--teal); font-weight: 600; text-decoration: none; }

.empty-state { text-align: center; padding: 3.5rem 1.5rem; color: var(--muted); }
.empty-state h3 { color: var(--ink); margin-bottom: 0.6rem; }

/* =========================================================
   FOUNDER MODAL
   ========================================================= */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(6,16,41,.55);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 4rem 1.2rem;
  opacity: 0; pointer-events: none;
  transition: opacity .2s var(--ease);
  z-index: 300;
  overflow-y: auto;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--surface);
  border-radius: 8px;
  max-width: 640px;
  width: 100%;
  padding: 2.6rem;
  position: relative;
  transform: translateY(14px);
  transition: transform .2s var(--ease);
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-close {
  position: absolute; top: 1.4rem; right: 1.4rem;
  background: none; border: none; color: var(--muted); padding: 0.3rem;
}
.modal-close svg { width: 22px; height: 22px; }

.founder-photo {
  width: 88px; height: 88px; border-radius: 50%;
  background: var(--navy);
  color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 700; font-size: 1.7rem;
  margin-bottom: 1.4rem;
}
.modal h2 { margin-bottom: 0.2rem; }
.modal .role { color: var(--teal); font-size: 0.9rem; font-weight: 600; margin-bottom: 1.4rem; }
.founder-bio { font-size: 0.94rem; color: var(--ink); }
.founder-bio p { margin-bottom: 1.1rem; color: var(--muted); }
.founder-bio h4 { font-size: 0.78rem; font-family: var(--font-mono); color: var(--muted); text-transform: none; margin: 1.6rem 0 0.8rem; letter-spacing: 0.02em; }
.founder-bio ul { display: flex; flex-direction: column; gap: 0.5rem; }
.founder-bio li { color: var(--muted); font-size: 0.9rem; padding-left: 1.1rem; position: relative; }
.founder-bio li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 5px; height: 5px; background: var(--teal); border-radius: 50%; }
.founder-links { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-top: 1.6rem; }
.link-pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  border: 1.5px solid var(--line);
  border-radius: 30px;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
}
.link-pill:hover { border-color: var(--teal); color: var(--teal-dark); }

body.modal-locked { overflow: hidden; }

/* =========================================================
   MISC
   ========================================================= */
.divider { border: none; border-top: 1px solid var(--line); margin: 0; }

/* =========================================================
   ACCOUNTS — sign-in button, signed-in chip, footer founder btn
   ========================================================= */
#accountSlot { display: flex; align-items: center; }

.account-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 30px;
  padding: 0.3rem 0.3rem 0.3rem 0.3rem;
}
.account-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--teal); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 700; font-size: 0.72rem;
  flex-shrink: 0;
}
.admin-tag {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--navy);
  background: var(--teal);
  border-radius: 10px;
  padding: 0.15rem 0.5rem;
  letter-spacing: 0.03em;
}
.account-signout {
  background: none; border: none;
  color: rgba(255,255,255,.75);
  font-size: 0.8rem;
  padding: 0.2rem 0.7rem 0.2rem 0.1rem;
}
.account-signout:hover { color: var(--white); }

.footer-founder-btn {
  display: flex; align-items: center; gap: 0.55rem;
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.3);
  color: var(--white);
  padding: 0.4rem 0.9rem 0.4rem 0.4rem;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 500;
}
.footer-founder-btn:hover { border-color: var(--teal); background: rgba(3,183,162,.12); }

/* =========================================================
   ADMIN — edit mode toggle, editable-content affordance, mini buttons
   ========================================================= */
.admin-edit-fab {
  position: fixed;
  left: 1.25rem;
  bottom: 1.25rem;
  z-index: 150;
  display: none;
}
.edit-fab-btn {
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 30px;
  padding: 0.75rem 1.3rem;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(6,16,41,.3);
}
.edit-fab-btn.on { background: var(--teal); color: var(--navy); }

[data-editable].editable-active {
  outline: 1.5px dashed var(--teal);
  outline-offset: 3px;
  border-radius: 3px;
  background: var(--teal-wash);
  cursor: text;
}

.admin-mini-btn {
  align-self: flex-start;
  margin-top: 0.4rem;
  background: none;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
}
.admin-mini-btn:hover { border-color: var(--teal); color: var(--teal-dark); }

.admin-page-actions { margin-bottom: 1.6rem; }

/* =========================================================
   PRODUCT DETAIL PAGE
   ========================================================= */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 2.5rem 0 5rem;
  align-items: start;
}
.gallery-main {
  aspect-ratio: 1 / 1;
  background: var(--teal-wash);
  border-radius: 6px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.product-thumb-lg { font-family: var(--font-mono); font-weight: 700; font-size: 3rem; color: var(--teal); }
.gallery-thumbs { display: flex; gap: 0.6rem; margin-top: 0.8rem; flex-wrap: wrap; }
.gallery-thumb-btn {
  width: 60px; height: 60px; border-radius: 4px; overflow: hidden;
  border: 2px solid transparent; padding: 0; background: var(--teal-wash);
}
.gallery-thumb-btn img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb-btn.active { border-color: var(--teal); }

.product-info .product-cat { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); }
.product-info h1 { margin: 0.6rem 0 1rem; }
.product-info .price-row { display: flex; align-items: center; gap: 1.2rem; margin-bottom: 1.6rem; }
.product-info .product-price-lg { font-family: var(--font-mono); font-size: 1.6rem; font-weight: 700; }
.product-description { color: var(--muted); line-height: 1.7; margin-bottom: 1.8rem; white-space: pre-wrap; }
.product-actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; }
.back-to-store { display: inline-block; margin-top: 1.6rem; color: var(--muted); font-size: 0.88rem; text-decoration: none; }
.back-to-store:hover { color: var(--teal-dark); }

@media (max-width: 780px) {
  .product-detail { grid-template-columns: 1fr; gap: 2rem; }
}

/* =========================================================
   ADMIN FORMS (add/edit product & course)
   ========================================================= */
.modal-wide { max-width: 620px; }
.form-group { margin-bottom: 1.3rem; }
.form-label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--ink); }
.form-input, .form-select, .form-textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  padding: 0.7rem 0.9rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--surface);
}
.form-textarea { resize: vertical; min-height: 90px; }
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--teal); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 500px) { .form-row { grid-template-columns: 1fr; } }

.file-input-btn {
  display: inline-block;
  border: 1.5px dashed var(--line);
  border-radius: 6px;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  color: var(--muted);
  cursor: pointer;
  text-align: center;
}
.file-input-btn:hover { border-color: var(--teal); color: var(--teal-dark); }
.file-input-btn input { display: none; }

.pf-image-preview { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.8rem; }
.pf-thumb { position: relative; width: 68px; height: 68px; border-radius: 4px; overflow: hidden; background: var(--teal-wash); }
.pf-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pf-thumb button {
  position: absolute; top: 2px; right: 2px;
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(6,16,41,.75); color: var(--white);
  border: none; font-size: 0.8rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.pf-empty { color: var(--muted); font-size: 0.85rem; margin-top: 0.6rem; }

#pfManualInfo, .manual-info { display: flex; align-items: center; gap: 0.7rem; font-size: 0.86rem; color: var(--muted); margin-top: 0.6rem; }
#pfManualInfo button, .manual-info button { background: none; border: none; color: var(--teal-dark); font-size: 0.8rem; text-decoration: underline; }

.modal-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 1.8rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.modal-actions .modal-actions-right { display: flex; gap: 0.7rem; }
.form-status { font-size: 0.82rem; color: var(--muted); margin-top: 0.9rem; min-height: 1.2em; }
.btn-danger { background: none; border: 1.5px solid #D34B4B; color: #D34B4B; }
.btn-danger:hover { background: #D34B4B; color: var(--white); }

.course-image { aspect-ratio: 16/9; border-radius: 4px; overflow: hidden; margin: -1.75rem -1.75rem 1.2rem; }
.course-image img { width: 100%; height: 100%; object-fit: cover; }
