/* ============================================================
   UISC Edu Skill — Design System
   Aesthetic: refined corporate, deep ink navy + warm gold,
   Fraunces (display) / Outfit (body). Trustworthy & premium.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  /* Brand */
  --ink:        #0f1f3d;
  --ink-700:    #1c2f54;
  --ink-600:    #2c4170;
  --gold:       #d4a23c;
  --gold-soft:  #f3e2bd;
  --gold-deep:  #b5852a;
  --teal:       #2f7d7a;

  /* Neutrals */
  --paper:      #fbfaf7;
  --white:      #ffffff;
  --line:       #e7e3da;
  --line-soft:  #f0ede5;
  --muted:      #6c7589;
  --muted-2:    #9aa1b0;
  --text:       #16203a;

  /* Status */
  --green:      #2f9e6b;
  --red:        #c2453f;

  /* Effects */
  --radius:     18px;
  --radius-sm:  12px;
  --radius-lg:  28px;
  --shadow-sm:  0 1px 2px rgba(15,31,61,.06), 0 2px 8px rgba(15,31,61,.04);
  --shadow:     0 8px 30px rgba(15,31,61,.08);
  --shadow-lg:  0 24px 60px rgba(15,31,61,.14);
  --ring:       0 0 0 4px rgba(212,162,60,.22);

  --container:  1240px;
  --ease:       cubic-bezier(.22,.61,.36,1);
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Outfit', system-ui, sans-serif;
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
input,textarea,select { font-family: inherit; font-size: inherit; }

h1,h2,h3,h4,h5 { font-family: 'Fraunces', Georgia, serif; font-weight: 600; line-height: 1.12; color: var(--ink); letter-spacing: -.01em; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: 88px; }
.section-sm { padding-block: 56px; }
.center { text-align: center; }
.muted { color: var(--muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-deep);
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--gold); border-radius: 2px; }
.eyebrow.center-eb { justify-content: center; }

.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); margin: 14px 0 10px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border-radius: 100px; font-weight: 600; font-size: .96rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--ink-700); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-gold { background: var(--gold); color: var(--ink); box-shadow: 0 6px 20px rgba(212,162,60,.35); }
.btn-gold:hover { background: var(--gold-deep); transform: translateY(-2px); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.btn-light { background: rgba(255,255,255,.12); color: #fff; border: 1.5px solid rgba(255,255,255,.25); backdrop-filter: blur(6px); }
.btn-light:hover { background: rgba(255,255,255,.22); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 18px; font-size: .87rem; }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--ink); color: rgba(255,255,255,.82);
  font-size: .82rem; letter-spacing: .01em;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 16px; }
.topbar a:hover { color: var(--gold-soft); }
.topbar-badges { display: flex; gap: 18px; align-items: center; }
.topbar-badges span { display: inline-flex; gap: 6px; align-items: center; }
.topbar-links { display: flex; gap: 18px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,250,247,.94); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 24px; min-height: 84px; }

/* Logo */
.brand-logo { display: flex; align-items: center; flex-shrink: 0; padding: 6px 0; }
.brand-logo img { height: 60px; width: auto; display: block; }

/* Nav links — push to the right with a margin */
.nav-links { display: flex; gap: 4px; margin-left: 48px; }
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: inline-flex; align-items: center;
  padding: 11px 16px; border-radius: 10px; font-weight: 500; font-size: .95rem; color: var(--ink-700);
  transition: background .2s, color .2s; white-space: nowrap;
}
.nav-links > li > a:hover { background: var(--line-soft); color: var(--ink); }
.nav-links > li > a.active { color: var(--gold-deep); background: var(--gold-soft); }

/* Mega menu (Courses dropdown) */
.has-dropdown .mega-menu {
  position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%) translateY(-8px);
  width: 720px; background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 30px 70px rgba(15,31,61,.18); padding: 22px;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s var(--ease);
  z-index: 200;
}
.has-dropdown:hover .mega-menu,
.has-dropdown:focus-within .mega-menu { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.has-dropdown::before { /* hover bridge */
  content: ''; position: absolute; top: 100%; left: 0; right: 0; height: 14px;
}
.mega-head { display: flex; justify-content: space-between; align-items: center; padding: 0 6px 14px; border-bottom: 1px solid var(--line-soft); margin-bottom: 14px; }
.mega-head h4 { font-family: 'Outfit', sans-serif; font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 600; }
.mega-all { color: var(--gold-deep); font-weight: 600; font-size: .88rem; }
.mega-all:hover { color: var(--ink); }
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mega-item { display: flex; gap: 12px; align-items: center; padding: 11px 12px; border-radius: 11px; transition: background .2s; }
.mega-item:hover { background: var(--line-soft); }
.mega-ic { width: 38px; height: 38px; border-radius: 10px; background: var(--ink); color: var(--gold); display: grid; place-items: center; font-size: 1.1rem; flex-shrink: 0; }
.mega-item b { display: block; color: var(--ink); font-weight: 600; font-size: .92rem; margin-bottom: 2px; }
.mega-item span { display: block; color: var(--muted); font-size: .78rem; line-height: 1.35; }

.nav-spacer { flex: 1; }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  color: var(--ink); position: relative; transition: background .2s;
}
.icon-btn:hover { background: var(--line-soft); }
.icon-btn svg { width: 21px; height: 21px; }
.cart-badge {
  position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--gold); color: var(--ink); border-radius: 100px; font-size: .68rem;
  font-weight: 700; display: grid; place-items: center;
}
.burger { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; padding-block: 90px 100px; }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(1000px 500px at 78% -10%, rgba(212,162,60,.22), transparent 60%),
    radial-gradient(700px 400px at 10% 110%, rgba(47,125,122,.20), transparent 55%);
}
.hero-grid-bg {
  position: absolute; inset: 0; opacity: .35;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(circle at 50% 30%, #000, transparent 75%);
}
.hero .container { position: relative; z-index: 2; }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero .eyebrow { color: var(--gold-soft); }
.hero .eyebrow::before { background: var(--gold); }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 5.2vw, 4.1rem); line-height: 1.04; margin: 18px 0 20px; }
.hero h1 .accent { color: var(--gold); font-style: italic; }
.hero-sub { font-size: 1.18rem; color: rgba(255,255,255,.82); max-width: 520px; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { margin-top: 40px; display: flex; gap: 26px; flex-wrap: wrap; align-items: center; color: rgba(255,255,255,.6); font-size: .85rem; }
.hero-trust strong { color: #fff; font-size: 1.35rem; font-family: 'Fraunces', serif; display: block; }

.hero-card {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg); padding: 26px; backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
}
.hero-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.hero-card-head .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--gold); }
.hero-card h3 { color: #fff; font-size: 1.05rem; }
.hero-course-row {
  display: flex; gap: 13px; align-items: center; padding: 13px;
  border-radius: var(--radius-sm); background: rgba(255,255,255,.05); margin-bottom: 10px;
  transition: background .2s, transform .2s;
}
.hero-course-row:hover { background: rgba(255,255,255,.1); transform: translateX(3px); }
.hero-course-ic { width: 42px; height: 42px; border-radius: 10px; background: var(--gold-soft); color: var(--ink); display: grid; place-items: center; font-size: 1.2rem; flex-shrink: 0; }
.hero-course-row .t { flex: 1; min-width: 0; }
.hero-course-row .t b { color: #fff; font-weight: 600; font-size: .92rem; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-course-row .t span { color: rgba(255,255,255,.55); font-size: .78rem; }
.hero-course-row .p { color: var(--gold); font-weight: 700; }

/* ---------- Accreditation strip ---------- */
.accred { background: var(--white); border-bottom: 1px solid var(--line); }
.accred .container { display: flex; align-items: center; justify-content: center; gap: 46px; flex-wrap: wrap; padding-block: 26px; }
.accred span { font-weight: 600; color: var(--muted); font-size: .9rem; letter-spacing: .03em; display: inline-flex; gap: 9px; align-items: center; }
.accred span svg { width: 20px; height: 20px; color: var(--gold-deep); }
.accred .label { color: var(--ink); font-family: 'Fraunces', serif; }

/* ---------- Category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
  position: relative; overflow: hidden;
}
.cat-card::after {
  content: ''; position: absolute; left: 0; top: 0; height: 3px; width: 0;
  background: var(--gold); transition: width .35s var(--ease);
}
.cat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.cat-card:hover::after { width: 100%; }
.cat-ic { width: 54px; height: 54px; border-radius: 14px; background: var(--ink); color: var(--gold); display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 18px; transition: transform .3s; }
.cat-card:hover .cat-ic { transform: rotate(-6deg) scale(1.05); }
.cat-card h3 { font-size: 1.15rem; margin-bottom: 5px; }
.cat-card p { color: var(--muted); font-size: .88rem; }
.cat-count { margin-top: 14px; font-size: .82rem; font-weight: 600; color: var(--gold-deep); display: inline-flex; gap: 5px; align-items: center; }

/* ---------- Course cards ---------- */
.course-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.course-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.course-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.course-thumb { position: relative; aspect-ratio: 16/10; overflow: hidden; background: linear-gradient(135deg, var(--ink-600), var(--ink)); }
.course-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.course-card:hover .course-thumb img { transform: scale(1.06); }
.course-thumb-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: var(--gold); font-size: 2.6rem; opacity: .85; }
.course-thumb::after { /* subtle gradient overlay for legibility */
  content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(15,31,61,.35));
  pointer-events: none;
}
.course-badge {
  position: absolute; top: 12px; left: 12px; background: var(--gold); color: var(--ink);
  font-size: .72rem; font-weight: 700; padding: 5px 11px; border-radius: 100px; letter-spacing: .02em;
  z-index: 2;
}
.course-badge.cat-tag { left: auto; right: 12px; background: rgba(15,31,61,.85); color: #fff; backdrop-filter: blur(4px); }
.course-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.course-meta { display: flex; gap: 14px; font-size: .8rem; color: var(--muted); margin-bottom: 10px; }
.course-meta span { display: inline-flex; gap: 5px; align-items: center; }
.course-meta svg { width: 14px; height: 14px; }
.course-card h3 { font-size: 1.1rem; line-height: 1.25; margin-bottom: 8px; }
.course-card h3 a:hover { color: var(--gold-deep); }
.course-desc { font-size: .88rem; color: var(--muted); margin-bottom: 16px; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.stars svg { width: 15px; height: 15px; }
.course-rating { display: flex; align-items: center; gap: 7px; font-size: .82rem; color: var(--muted); margin-bottom: 14px; }
.course-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--line-soft); gap: 12px; flex-wrap: wrap; }
.price-wrap { display: flex; align-items: baseline; gap: 8px; }
.price { font-family: 'Fraunces', serif; font-size: 1.5rem; font-weight: 600; color: var(--ink); }
.price-was { font-size: .9rem; color: var(--muted-2); text-decoration: line-through; }

/* ---------- Stats band ---------- */
.stats-band { background: linear-gradient(135deg, var(--ink), var(--ink-700)); color: #fff; position: relative; overflow: hidden; }
.stats-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(600px 300px at 85% 0%, rgba(212,162,60,.18), transparent 60%); }
.stats-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat-num { font-family: 'Fraunces', serif; font-size: 3rem; font-weight: 600; color: var(--gold); }
.stat-label { color: rgba(255,255,255,.72); font-size: .92rem; margin-top: 4px; }

/* ---------- Steps — 4-column grid ---------- */
.steps-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; }
.steps-grid-4::before { /* connecting line */
  content: ''; position: absolute; top: 78px; left: 12%; right: 12%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--gold-soft) 0, var(--gold-soft) 8px, transparent 8px, transparent 14px);
  z-index: 0;
}
.steps-grid-4 .step-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 24px;
  text-align: center; position: relative; z-index: 1;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.steps-grid-4 .step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.steps-grid-4 .step-num { font-family: 'Fraunces', serif; font-size: 1.1rem; color: var(--gold-deep); font-weight: 700; letter-spacing: .1em; margin-bottom: 4px; }
.steps-grid-4 .step-ic {
  width: 60px; height: 60px; margin: 8px auto 18px; border-radius: 50%;
  background: var(--ink); color: var(--gold); display: grid; place-items: center;
  box-shadow: 0 8px 20px rgba(15,31,61,.18);
  transition: transform .3s;
}
.steps-grid-4 .step-card:hover .step-ic { transform: rotate(-8deg) scale(1.05); }
.steps-grid-4 .step-card h3 { font-size: 1.18rem; margin-bottom: 10px; }
.steps-grid-4 .step-card p { color: var(--muted); font-size: .92rem; }

/* (Legacy 3-col steps grid - kept for other places that might use it) */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.steps-grid .step-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; transition: transform .3s, box-shadow .3s; }
.steps-grid .step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.steps-grid .step-num { font-family: 'Fraunces', serif; font-size: 2.6rem; color: var(--gold-soft); font-weight: 700; line-height: 1; }
.steps-grid .step-card h3 { font-size: 1.18rem; margin: 8px 0 8px; }
.steps-grid .step-card p { color: var(--muted); font-size: .92rem; }

/* ---------- About / feature split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split-media { position: relative; }
.split-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.split-badge {
  position: absolute; bottom: -22px; left: -22px; background: var(--white); padding: 16px 22px;
  border-radius: 16px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column;
  border: 1px solid var(--line);
}
.split-badge-num { font-family: 'Fraunces', serif; font-size: 1.8rem; color: var(--gold-deep); font-weight: 700; line-height: 1; }
.split-badge-label { color: var(--muted); font-size: .82rem; margin-top: 4px; }
.feature-list { display: grid; gap: 20px; margin-top: 26px; }
.feature-item { display: flex; gap: 16px; }
.feature-ic { width: 46px; height: 46px; border-radius: 12px; background: var(--gold-soft); color: var(--gold-deep); display: grid; place-items: center; flex-shrink: 0; }
.feature-ic svg { width: 22px; height: 22px; }
.feature-item h4 { font-size: 1.05rem; margin-bottom: 3px; color: var(--ink); }
.feature-item p { color: var(--muted); font-size: .9rem; }

/* ---------- Testimonials — REDESIGNED ---------- */
.testimonials-section { background: linear-gradient(180deg, var(--paper) 0%, #f6f3eb 100%); border-block: 1px solid var(--line); }
.testimonials-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 26px; align-items: stretch; }
.tst-featured {
  position: relative; background: var(--ink); color: #fff; border-radius: var(--radius-lg);
  padding: 44px 40px; overflow: hidden; box-shadow: var(--shadow-lg);
}
.tst-featured::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(500px 300px at 100% 0%, rgba(212,162,60,.22), transparent 60%);
}
.tst-featured > * { position: relative; }
.tst-quote-mark { position: absolute; top: 30px; right: 36px; width: 64px; height: 64px; color: var(--gold); opacity: .35; }
.tst-featured .stars { margin-bottom: 18px; color: var(--gold); }
.tst-featured .stars svg { width: 19px; height: 19px; }
.tst-featured-quote { font-family: 'Fraunces', serif; font-size: 1.5rem; line-height: 1.35; margin-bottom: 28px; color: #fff; }
.tst-featured .tst-author b { color: #fff; }
.tst-featured .tst-author span { color: rgba(255,255,255,.6); }

.tst-side { display: grid; gap: 22px; }
.tst-card-v2 {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .3s, box-shadow .3s;
}
.tst-card-v2:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tst-card-v2 .stars { color: var(--gold); }
.tst-card-v2 p { color: var(--ink-700); font-size: .96rem; line-height: 1.55; flex: 1; }

.tst-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 26px; }

.tst-author { display: flex; align-items: center; gap: 12px; }
.tst-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: var(--ink); display: grid; place-items: center;
  font-weight: 700; font-family: 'Fraunces', serif; font-size: 1.05rem;
  flex-shrink: 0;
}
.tst-author b { display: block; color: var(--ink); font-size: .94rem; }
.tst-author span { color: var(--muted); font-size: .8rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--gold); border-radius: var(--radius-lg); padding: 56px; text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(500px 300px at 80% 120%, rgba(15,31,61,.18), transparent 60%); }
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); color: var(--ink); margin-bottom: 12px; }
.cta-band p { color: var(--ink-700); font-size: 1.08rem; max-width: 520px; margin: 0 auto 26px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.66); padding-block: 64px 0; margin-top: 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.1); }

.footer-brand-logo { display: inline-block; margin-bottom: 18px; }
.footer-brand-logo img { height: 56px; width: auto; display: block; }

.footer-about { font-size: .92rem; max-width: 340px; margin-bottom: 22px; }
.footer-contact { display: grid; gap: 12px; margin-bottom: 22px; }
.footer-contact > div { display: flex; gap: 11px; align-items: flex-start; font-size: .88rem; line-height: 1.5; }
.footer-contact svg { color: var(--gold); flex-shrink: 0; margin-top: 3px; }
.footer-contact a:hover { color: var(--gold-soft); }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #fff; transition: background .2s, transform .2s; }
.footer-social a:hover { background: var(--gold); color: var(--ink); transform: translateY(-2px); }

.footer-col h4 { color: #fff; font-family: 'Outfit', sans-serif; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 18px; font-weight: 600; }
.footer-col a { display: block; padding: 6px 0; font-size: .92rem; transition: color .2s; }
.footer-col a:hover { color: var(--gold-soft); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-block: 24px; font-size: .85rem; flex-wrap: wrap; gap: 12px; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Page header (interior) ---------- */
.page-hero { background: var(--ink); color: #fff; padding-block: 64px; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(700px 360px at 85% -20%, rgba(212,162,60,.18), transparent 60%); }
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; font-size: clamp(2.1rem, 4vw, 3rem); margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,.78); max-width: 560px; }
.breadcrumb { display: flex; gap: 9px; font-size: .85rem; color: rgba(255,255,255,.6); margin-bottom: 18px; align-items: center; }
.breadcrumb a:hover { color: var(--gold-soft); }
.breadcrumb .sep { opacity: .5; }

/* ---------- Catalog layout ---------- */
.catalog { display: grid; grid-template-columns: 280px 1fr; gap: 36px; align-items: start; }
.filter-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: sticky; top: 100px; }
.filter-panel h4 { font-family: 'Outfit', sans-serif; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 22px 0 12px; font-weight: 600; }
.filter-panel h4:first-child { margin-top: 0; }
.filter-list a { display: flex; justify-content: space-between; padding: 8px 12px; border-radius: 9px; font-size: .92rem; color: var(--ink-700); transition: background .2s, color .2s; }
.filter-list a:hover, .filter-list a.active { background: var(--line-soft); color: var(--ink); }
.filter-list a.active { font-weight: 600; color: var(--gold-deep); }
.filter-list a .n { color: var(--muted-2); font-size: .82rem; }
.search-box { position: relative; }
.search-box input { width: 100%; padding: 12px 14px 12px 42px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); transition: border-color .2s, box-shadow .2s; }
.search-box input:focus { outline: none; border-color: var(--gold); box-shadow: var(--ring); }
.search-box svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }

.catalog-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 14px; }
.catalog-toolbar .count { color: var(--muted); font-size: .92rem; }
.select-styled { padding: 10px 16px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--white); font-weight: 500; color: var(--ink); cursor: pointer; }
.select-styled:focus { outline: none; border-color: var(--gold); }

.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.chip { padding: 7px 15px; border-radius: 100px; border: 1.5px solid var(--line); font-size: .85rem; font-weight: 500; color: var(--ink-700); transition: all .2s; background: var(--white); }
.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Course detail ---------- */
.detail-grid { display: grid; grid-template-columns: 1fr 380px; gap: 44px; align-items: start; }
.detail-main h2 { font-size: 1.6rem; margin: 36px 0 16px; }
.detail-hero-img { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/9; margin-bottom: 30px; box-shadow: var(--shadow); background: linear-gradient(135deg, var(--ink-600), var(--ink)); }
.detail-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.learn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 26px; }
.learn-item { display: flex; gap: 11px; font-size: .95rem; color: var(--ink-700); }
.learn-item svg { width: 20px; height: 20px; color: var(--green); flex-shrink: 0; margin-top: 2px; }
.detail-prose p { color: var(--ink-700); margin-bottom: 14px; }

.buy-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; position: sticky; top: 100px; box-shadow: var(--shadow); }
.buy-price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.buy-price .price { font-size: 2.4rem; }
.buy-save { color: var(--green); font-weight: 600; font-size: .9rem; margin-bottom: 22px; }
.buy-features { display: grid; gap: 13px; margin: 24px 0; }
.buy-features li { display: flex; gap: 11px; font-size: .92rem; color: var(--ink-700); align-items: center; }
.buy-features svg { width: 19px; height: 19px; color: var(--gold-deep); flex-shrink: 0; }

.review-item { padding: 22px 0; border-bottom: 1px solid var(--line-soft); }
.review-item:last-child { border-bottom: none; }
.review-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }

/* ---------- Cart ---------- */
.cart-grid { display: grid; grid-template-columns: 1fr 380px; gap: 36px; align-items: start; }
.cart-item { display: flex; gap: 18px; padding: 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 16px; align-items: center; }
.cart-thumb { width: 110px; height: 74px; border-radius: 10px; object-fit: cover; flex-shrink: 0; background: linear-gradient(135deg, var(--ink-600), var(--ink)); display: grid; place-items: center; color: var(--gold); overflow: hidden; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item .info { flex: 1; min-width: 0; }
.cart-item .info h3 { font-size: 1.05rem; margin-bottom: 4px; }
.cart-item .info .meta { font-size: .82rem; color: var(--muted); }
.cart-item .price { font-size: 1.2rem; }
.cart-remove { color: var(--muted); width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; transition: background .2s, color .2s; }
.cart-remove:hover { background: #fdeceb; color: var(--red); }
.summary-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: sticky; top: 100px; }
.summary-row { display: flex; justify-content: space-between; padding: 9px 0; color: var(--ink-700); }
.summary-row.total { border-top: 1.5px solid var(--line); margin-top: 10px; padding-top: 18px; font-size: 1.3rem; font-weight: 700; color: var(--ink); font-family: 'Fraunces', serif; }
.empty-state { text-align: center; padding: 80px 20px; }
.empty-state .ic { font-size: 3.4rem; margin-bottom: 16px; }
.empty-state h3 { font-size: 1.5rem; margin-bottom: 8px; }
.empty-state p { color: var(--muted); margin-bottom: 24px; }

/* ---------- Forms ---------- */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 38px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 7px; color: var(--ink); }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 15px; border: 1.5px solid var(--line); border-radius: 11px;
  background: var(--paper); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold); box-shadow: var(--ring); background: #fff; }
.field .err { color: var(--red); font-size: .82rem; margin-top: 5px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.checkbox-row { display: flex; align-items: center; gap: 9px; font-size: .9rem; color: var(--ink-700); }
.checkbox-row input { width: auto; }

.auth-wrap { min-height: calc(100vh - 76px); display: grid; place-items: center; padding: 50px 24px; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card .form-card { padding: 40px; }
.auth-head { text-align: center; margin-bottom: 28px; }
.auth-head h1 { font-size: 1.8rem; margin-bottom: 6px; }
.auth-head p { color: var(--muted); }
.auth-foot { text-align: center; margin-top: 22px; color: var(--muted); font-size: .92rem; }
.auth-foot a { color: var(--gold-deep); font-weight: 600; }

/* ---------- Alerts ---------- */
.alert { padding: 14px 18px; border-radius: 12px; margin-bottom: 20px; font-size: .92rem; display: flex; gap: 10px; align-items: flex-start; }
.alert-success { background: #eaf6f0; color: #1c6e4b; border: 1px solid #c3e6d4; }
.alert-error { background: #fdeceb; color: #9c322d; border: 1px solid #f3c9c6; }
.alert-info { background: #eef3fb; color: #2c4170; border: 1px solid #cdd9ee; }

/* ---------- Toast ---------- */
.toast { position: fixed; bottom: 26px; right: 26px; background: var(--ink); color: #fff; padding: 15px 22px; border-radius: 13px; box-shadow: var(--shadow-lg); z-index: 1000; transform: translateY(120%); opacity: 0; transition: transform .4s var(--ease), opacity .4s; display: flex; gap: 11px; align-items: center; max-width: 340px; }
.toast.show { transform: translateY(0); opacity: 1; }
.toast svg { width: 20px; height: 20px; color: var(--gold); flex-shrink: 0; }

/* ---------- Account / Admin shell ---------- */
.dash-grid { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: start; }
.dash-nav { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; position: sticky; top: 100px; }
.dash-nav a { display: flex; align-items: center; gap: 11px; padding: 11px 14px; border-radius: 10px; font-weight: 500; font-size: .93rem; color: var(--ink-700); transition: background .2s, color .2s; }
.dash-nav a:hover { background: var(--line-soft); }
.dash-nav a.active { background: var(--ink); color: #fff; }
.dash-nav a svg { width: 18px; height: 18px; }
.dash-nav .sep { height: 1px; background: var(--line); margin: 10px 6px; }

.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; margin-bottom: 32px; }
.mini-stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.mini-stat .label { color: var(--muted); font-size: .85rem; margin-bottom: 6px; }
.mini-stat .num { font-family: 'Fraunces', serif; font-size: 2rem; font-weight: 600; color: var(--ink); }
.mini-stat .ic { float: right; width: 42px; height: 42px; border-radius: 11px; background: var(--gold-soft); color: var(--gold-deep); display: grid; place-items: center; }

.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 24px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.panel-head h3 { font-size: 1.2rem; }

/* ---------- Table ---------- */
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 12px 14px; border-bottom: 1.5px solid var(--line); font-weight: 600; }
.table td { padding: 14px; border-bottom: 1px solid var(--line-soft); font-size: .92rem; vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: var(--paper); }
.tag { display: inline-flex; padding: 4px 11px; border-radius: 100px; font-size: .76rem; font-weight: 600; }
.tag-green { background: #eaf6f0; color: #1c6e4b; }
.tag-amber { background: #fdf2dd; color: #98701c; }
.tag-red { background: #fdeceb; color: #9c322d; }
.tag-gray { background: var(--line-soft); color: var(--muted); }

/* ---------- Progress ---------- */
.progress { height: 8px; background: var(--line-soft); border-radius: 100px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--gold); border-radius: 100px; }

/* ---------- Certificate ---------- */
.cert {
  background: var(--white); border: 3px solid var(--ink); border-radius: 10px; padding: 56px;
  text-align: center; position: relative; max-width: 800px; margin: 0 auto;
  box-shadow: var(--shadow-lg);
}
.cert::before { content: ''; position: absolute; inset: 14px; border: 1px solid var(--gold); border-radius: 4px; pointer-events: none; }
.cert-seal { width: 84px; height: 84px; border-radius: 50%; background: var(--gold); color: var(--ink); display: grid; place-items: center; margin: 0 auto 20px; font-size: 2rem; box-shadow: 0 6px 18px rgba(212,162,60,.4); }
.cert h2 { font-size: 2.4rem; margin-bottom: 6px; }
.cert .cert-sub { color: var(--muted); letter-spacing: .2em; text-transform: uppercase; font-size: .8rem; margin-bottom: 30px; }
.cert .recipient { font-family: 'Fraunces', serif; font-size: 2rem; color: var(--gold-deep); border-bottom: 2px solid var(--line); display: inline-block; padding: 0 30px 8px; margin-bottom: 20px; }
.cert .cert-course { font-size: 1.3rem; color: var(--ink); margin-bottom: 30px; }
.cert-foot { display: flex; justify-content: space-between; margin-top: 40px; font-size: .85rem; color: var(--muted); }

/* ---------- Pagination — REDESIGNED ---------- */
.pagination-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 40px; }
.pagination { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; justify-content: center; }
.pagination li { list-style: none; }
.pagination li a,
.pagination li span {
  min-width: 42px; height: 42px; padding: 0 14px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; border: 1.5px solid var(--line); font-weight: 500; font-size: .92rem;
  background: var(--white); color: var(--ink-700);
  transition: all .2s var(--ease);
  text-decoration: none;
}
.pagination li a:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-1px); }
.pagination li.active span { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: var(--shadow-sm); }
.pagination li.disabled span { opacity: .4; cursor: not-allowed; }
.pagination-info { color: var(--muted); font-size: .88rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .has-dropdown .mega-menu { width: 560px; }
  .mega-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-card { max-width: 460px; }
  .cat-grid, .course-grid, .course-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
  .steps-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps-grid-4::before { display: none; }
  .testimonials-layout { grid-template-columns: 1fr; }
  .tst-row { grid-template-columns: 1fr 1fr; }
  .detail-grid, .cart-grid, .catalog, .dash-grid { grid-template-columns: 1fr; }
  .filter-panel, .buy-card, .summary-card, .dash-nav { position: static; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .nav-links { gap: 0; }
  .nav-links > li > a { padding: 9px 12px; font-size: .92rem; }
}
@media (max-width: 680px) {
  .section { padding-block: 60px; }
  .nav-links, .topbar-links, .hero-trust .div-hide, .div-hide { display: none; }
  .burger { display: grid; }
  .brand-logo img { height: 40px; }
  .cat-grid, .course-grid, .course-grid.cols-3, .steps-grid, .learn-grid, .field-row { grid-template-columns: 1fr; }
  .steps-grid-4 { grid-template-columns: 1fr; }
  .tst-row { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 36px 24px; }
  .cart-item { flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr; }
  .cert { padding: 32px 20px; }
  .cert h2 { font-size: 1.7rem; }
  .tst-featured { padding: 30px 24px; }
  .tst-featured-quote { font-size: 1.2rem; }

  /* Mobile nav drawer */
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 80px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--line); padding: 14px 24px; gap: 4px;
    box-shadow: var(--shadow);
  }
  .nav-links.open .mega-menu { display: none; }
}

/* ---------- Print (certificate) ---------- */
@media print {
  .site-header, .topbar, .site-footer, .dash-nav, .no-print { display: none !important; }
  body { background: #fff; }
  .cert { box-shadow: none; border-color: #000; }
}

/* ============================================================
   FREE COURSES / SPECIAL OFFERS / NEWS — additional components
   ============================================================ */

/* ---------- Mega menu footer (Free + Sale tiles) ---------- */
.mega-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.mega-foot-item {
  display: flex; gap: 12px; align-items: center; padding: 12px;
  border-radius: 11px; background: var(--paper); transition: background .2s, transform .2s;
}
.mega-foot-item:hover { background: var(--line-soft); transform: translateY(-1px); }
.mega-foot-item b { display: block; color: var(--ink); font-weight: 600; font-size: .92rem; margin-bottom: 2px; }
.mega-foot-item span { display: block; color: var(--muted); font-size: .78rem; }
.mega-foot-tag {
  padding: 5px 10px; border-radius: 100px; font-size: .65rem; font-weight: 700; letter-spacing: .08em;
  background: var(--green); color: #fff; align-self: flex-start;
}
.mega-foot-tag.tag-gold { background: var(--gold); color: var(--ink); }

/* ---------- Free Courses page hero ---------- */
.freehero-wrap { display: grid; grid-template-columns: 1fr auto; gap: 36px; align-items: end; }
.badge-free {
  display: inline-flex; padding: 8px 18px; border-radius: 100px;
  background: var(--gold); color: var(--ink); font-weight: 700; font-size: .82rem;
  letter-spacing: .12em; margin-bottom: 14px;
}
.freehero-stats { display: flex; gap: 26px; }
.freehero-stats > div {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  padding: 18px 22px; border-radius: 14px; text-align: center; min-width: 110px;
  backdrop-filter: blur(8px);
}
.freehero-stats strong {
  display: block; font-family: 'Fraunces', serif; font-size: 1.8rem; color: var(--gold);
  line-height: 1; margin-bottom: 6px;
}
.freehero-stats span { color: rgba(255,255,255,.7); font-size: .82rem; }

/* ---------- Special Offers — hero ---------- */
.offer-hero { background: var(--ink); color: #fff; padding-block: 80px; position: relative; overflow: hidden; }
.offer-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(700px 400px at 100% 0%, rgba(212,162,60,.25), transparent 60%); }
.offer-hero-grid { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; gap: 50px; align-items: center; z-index: 2; }
.offer-hero h1 { color: #fff; font-size: clamp(2.2rem, 4.5vw, 3.4rem); line-height: 1.05; margin: 14px 0 18px; }
.offer-hero p { font-size: 1.1rem; color: rgba(255,255,255,.82); max-width: 480px; margin-bottom: 28px; }
.offer-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.offer-hero-art { position: relative; min-height: 280px; }
.offer-ribbon {
  position: relative; z-index: 2; width: 260px; height: 260px;
  background: var(--gold); color: var(--ink); border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  margin-left: auto; box-shadow: 0 30px 80px rgba(212,162,60,.45);
  transform: rotate(-8deg);
  animation: ribbonSway 6s var(--ease) infinite alternate;
}
@keyframes ribbonSway { from { transform: rotate(-8deg); } to { transform: rotate(8deg); } }
.offer-ribbon-pct { font-family: 'Fraunces', serif; font-size: 5.5rem; font-weight: 700; line-height: 1; }
.offer-ribbon-pct small { font-size: 2.2rem; vertical-align: super; }
.offer-ribbon-label { font-size: .92rem; letter-spacing: .14em; text-align: center; line-height: 1.5; }
.offer-ribbon-label b { font-family: 'Fraunces', serif; font-size: 1.6rem; font-weight: 700; letter-spacing: 0; }
.offer-blob { position: absolute; border-radius: 50%; filter: blur(40px); opacity: .5; }
.offer-blob-1 { width: 200px; height: 200px; background: var(--gold); top: 20%; left: -20%; }
.offer-blob-2 { width: 160px; height: 160px; background: var(--teal); bottom: -10%; right: 10%; }

/* ---------- Special Offers — three feature cards ---------- */
.offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.offer-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 26px; display: flex; flex-direction: column; gap: 12px;
  transition: transform .3s, box-shadow .3s, border-color .3s;
  position: relative; overflow: hidden;
}
.offer-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.offer-card::before {
  content: ''; position: absolute; top: 0; right: 0; width: 120px; height: 120px;
  background: var(--gold-soft); border-radius: 50%; transform: translate(45%, -45%);
  opacity: .5; transition: transform .4s var(--ease);
}
.offer-card:hover::before { transform: translate(40%, -40%) scale(1.15); }
.offer-card > * { position: relative; z-index: 1; }
.offer-card-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--ink); color: var(--gold);
  display: grid; place-items: center;
}
.offer-tag {
  display: inline-flex; padding: 5px 12px; border-radius: 100px;
  font-size: .7rem; font-weight: 700; letter-spacing: .1em; align-self: flex-start;
}
.offer-card h3 { font-size: 1.3rem; line-height: 1.2; }
.offer-card p { color: var(--muted); font-size: .94rem; flex: 1; }
.offer-card .btn { align-self: flex-start; margin-top: 4px; }
.offer-fine { font-size: .76rem; color: var(--muted-2); font-style: italic; }

.offer-code {
  background: var(--paper); border: 1.5px dashed var(--gold); border-radius: 12px;
  padding: 14px 18px; display: flex; align-items: center; gap: 14px;
}
.offer-code-label { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }
.offer-code-value {
  font-family: 'Fraunces', serif; font-size: 1.3rem; font-weight: 700;
  color: var(--ink); letter-spacing: .04em; margin-left: auto;
  user-select: all; cursor: copy;
}

/* ---------- Newsletter band ---------- */
.newsletter-band {
  background: var(--ink); color: #fff; border-radius: var(--radius-lg);
  padding: 50px; display: grid; grid-template-columns: 1fr auto; gap: 36px; align-items: center;
  position: relative; overflow: hidden;
}
.newsletter-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(500px 300px at 100% 0%, rgba(212,162,60,.22), transparent 60%); }
.newsletter-band > * { position: relative; z-index: 2; }
.newsletter-band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 12px 0 10px; }
.newsletter-band p { color: rgba(255,255,255,.78); max-width: 440px; }
.newsletter-form { display: flex; gap: 10px; align-items: stretch; min-width: 360px; }
.newsletter-form input {
  flex: 1; padding: 14px 18px; border-radius: 100px;
  border: 1.5px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08);
  color: #fff; font-size: .95rem;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.5); }
.newsletter-form input:focus { outline: none; border-color: var(--gold); background: rgba(255,255,255,.12); }

/* ---------- News — toolbar ---------- */
.news-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 36px; flex-wrap: wrap; }

/* ---------- News — featured post ---------- */
.post-featured {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; margin-bottom: 50px; box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s;
}
.post-featured:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-featured-media { position: relative; overflow: hidden; aspect-ratio: 16/11; }
.post-featured-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-featured:hover .post-featured-media img { transform: scale(1.04); }
.post-featured-body { padding: 44px 40px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.post-featured-body h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.15; }
.post-featured-body h2:hover { color: var(--gold-deep); }
.post-featured-body p { color: var(--muted); font-size: 1rem; }
.post-readmore { color: var(--gold-deep); font-weight: 600; font-size: .94rem; margin-top: 4px; }
.post-readmore:hover { color: var(--ink); }

/* ---------- News — grid of post cards ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.post-card-media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: linear-gradient(135deg, var(--ink-600), var(--ink)); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post-card:hover .post-card-media img { transform: scale(1.05); }
.post-card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; gap: 10px; }
.post-card-body h3 { font-size: 1.15rem; line-height: 1.25; }
.post-card-body h3:hover { color: var(--gold-deep); }
.post-card-body p { color: var(--muted); font-size: .9rem; flex: 1; }
.post-fallback { position: absolute; inset: 0; display: grid; place-items: center; font-size: 3rem; color: var(--gold); }

.post-tag {
  display: inline-flex; padding: 5px 12px; border-radius: 100px;
  background: var(--gold-soft); color: var(--gold-deep); font-size: .72rem;
  font-weight: 700; letter-spacing: .08em; align-self: flex-start; text-transform: uppercase;
}
.post-tag-overlay {
  position: absolute; top: 12px; left: 12px;
  padding: 5px 12px; border-radius: 100px; background: rgba(15,31,61,.85); color: #fff;
  font-size: .7rem; font-weight: 700; letter-spacing: .08em; backdrop-filter: blur(4px);
  text-transform: uppercase;
}

.post-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: .84rem; color: var(--muted); }
.post-meta-dark { color: rgba(255,255,255,.7); }
.post-author { display: inline-flex; align-items: center; gap: 8px; }
.post-author-av {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: var(--ink); display: grid; place-items: center;
  font-weight: 700; font-family: 'Fraunces', serif; font-size: .82rem;
}

/* ---------- News — single article ---------- */
.post-hero-img { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 28px; aspect-ratio: 16/8; box-shadow: var(--shadow); }
.post-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.post-lead { font-family: 'Fraunces', serif; font-size: 1.3rem; line-height: 1.5; color: var(--ink); padding: 18px 0 24px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.post-body h2 { font-size: 1.6rem; margin: 32px 0 14px; color: var(--ink); }
.post-body h3 { font-size: 1.25rem; margin: 24px 0 10px; color: var(--ink); }
.post-body p { font-size: 1.02rem; line-height: 1.75; color: var(--ink-700); margin-bottom: 16px; }

.post-share {
  display: flex; align-items: center; gap: 10px; margin-top: 40px; padding-top: 24px;
  border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem;
}
.post-share a {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--line-soft); color: var(--ink); display: grid; place-items: center;
  transition: background .2s, color .2s, transform .2s;
}
.post-share a:hover { background: var(--ink); color: var(--gold); transform: translateY(-2px); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .freehero-wrap { grid-template-columns: 1fr; }
  .freehero-stats { justify-content: flex-start; }
  .offer-hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .offer-hero-art { display: flex; justify-content: center; }
  .offer-ribbon { width: 220px; height: 220px; margin: 0; }
  .offer-grid { grid-template-columns: 1fr; }
  .newsletter-band { grid-template-columns: 1fr; padding: 36px; }
  .newsletter-form { min-width: 0; flex-direction: column; }
  .post-featured { grid-template-columns: 1fr; }
  .post-featured-body { padding: 32px 26px; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .mega-foot { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .freehero-stats { gap: 12px; }
  .freehero-stats > div { padding: 14px 16px; min-width: 90px; }
  .freehero-stats strong { font-size: 1.4rem; }
  .post-grid { grid-template-columns: 1fr; }
  .post-featured-body h2 { font-size: 1.4rem; }
  .post-lead { font-size: 1.1rem; }
  .offer-ribbon { width: 180px; height: 180px; }
  .offer-ribbon-pct { font-size: 4rem; }
  .news-toolbar { flex-direction: column; align-items: stretch; }
}

/* ============================================================
   ADMIN PANEL — dedicated layout
   ============================================================ */

.admin-body { background: #f4f5f8; min-height: 100vh; margin: 0; }

/* Sidebar */
.admin-sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; width: 260px;
  background: var(--ink); color: rgba(255,255,255,.7);
  padding: 22px 16px 30px;
  overflow-y: auto;
  z-index: 100;
  display: flex; flex-direction: column;
  box-shadow: 4px 0 30px rgba(15,31,61,.08);
}
.admin-sidebar::-webkit-scrollbar { width: 6px; }
.admin-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 10px; }

.admin-brand {
  display: flex; align-items: center; justify-content: center;
  padding: 14px 12px 22px; margin-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.admin-brand img {
  height: 56px; width: auto;
}

.admin-sidebar-label {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 600;
  color: rgba(255,255,255,.4); padding: 16px 14px 8px;
}

.admin-nav { display: flex; flex-direction: column; gap: 3px; margin-bottom: 4px; }
.admin-nav a, .admin-nav-logout {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: 10px;
  color: rgba(255,255,255,.78); font-size: .93rem; font-weight: 500;
  background: transparent; border: none; width: 100%; text-align: left; cursor: pointer;
  transition: background .2s, color .2s, transform .15s;
  position: relative;
  font-family: inherit;
}
.admin-nav a svg, .admin-nav-logout svg { width: 19px; height: 19px; flex-shrink: 0; opacity: .85; }
.admin-nav a:hover, .admin-nav-logout:hover { background: rgba(255,255,255,.06); color: #fff; }
.admin-nav a.active {
  background: var(--gold); color: var(--ink);
  box-shadow: 0 4px 12px rgba(212,162,60,.3);
}
.admin-nav a.active svg { opacity: 1; }
.admin-nav-badge {
  margin-left: auto; background: var(--gold); color: var(--ink);
  font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 100px;
}
.admin-nav a.active .admin-nav-badge { background: var(--ink); color: var(--gold); }

.admin-sidebar-user { display: none; } /* removed — user menu is now in topbar */

/* Top-right user menu dropdown */
.admin-user-menu { position: relative; }
.admin-user-trigger {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 6px; border-radius: 100px;
  background: var(--paper); border: 1px solid var(--line);
  transition: background .2s, border-color .2s;
  cursor: pointer;
}
.admin-user-trigger:hover { background: var(--line-soft); border-color: var(--ink-600); }
.admin-user-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: var(--ink); display: grid; place-items: center;
  font-weight: 700; font-family: 'Fraunces', serif; font-size: .95rem;
  flex-shrink: 0; overflow: hidden;
}
.admin-user-avatar.sm { width: 44px; height: 44px; font-size: 1.05rem; }
.admin-user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.admin-user-info { display: flex; flex-direction: column; line-height: 1.25; text-align: left; }
.admin-user-info b { color: var(--ink); font-size: .86rem; font-weight: 600; }
.admin-user-info span { color: var(--muted); font-size: .72rem; }
.admin-user-chev { color: var(--muted); transition: transform .2s; }
.admin-user-menu.open .admin-user-chev { transform: rotate(180deg); }

.admin-user-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  width: 280px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; box-shadow: 0 24px 60px rgba(15,31,61,.14);
  padding: 8px; z-index: 200;
  opacity: 0; pointer-events: none; transform: translateY(-8px);
  transition: opacity .2s, transform .2s var(--ease);
}
.admin-user-menu.open .admin-user-dropdown {
  opacity: 1; pointer-events: auto; transform: translateY(0);
}
.admin-dropdown-head {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; margin-bottom: 6px;
  background: var(--paper); border-radius: 10px;
}
.admin-dropdown-head b { display: block; color: var(--ink); font-weight: 600; font-size: .92rem; }
.admin-dropdown-head span { color: var(--muted); font-size: .8rem; word-break: break-all; }
.admin-dropdown-item {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border-radius: 9px;
  color: var(--ink-700); font-size: .9rem; font-weight: 500;
  background: transparent; border: none; width: 100%; text-align: left; cursor: pointer;
  transition: background .2s, color .2s;
  font-family: inherit;
}
.admin-dropdown-item:hover { background: var(--line-soft); color: var(--ink); }
.admin-dropdown-item.danger:hover { background: #fdeceb; color: var(--red); }
.admin-dropdown-item svg { color: var(--muted); flex-shrink: 0; }
.admin-dropdown-item:hover svg { color: currentColor; }
.admin-dropdown-sep { height: 1px; background: var(--line); margin: 6px 4px; }

/* Main content area */
.admin-main { margin-left: 260px; min-height: 100vh; }

.admin-topbar {
  background: #fff; border-bottom: 1px solid var(--line);
  padding: 16px 32px; display: flex; align-items: center; gap: 16px;
  position: sticky; top: 0; z-index: 50;
}
.admin-burger {
  display: none; width: 38px; height: 38px; border-radius: 10px;
  background: transparent; color: var(--ink);
  align-items: center; justify-content: center;
}
.admin-breadcrumb { display: flex; align-items: center; gap: 9px; font-size: .9rem; color: var(--muted); }
.admin-breadcrumb a { color: var(--ink-700); font-weight: 600; }
.admin-breadcrumb a:hover { color: var(--gold-deep); }
.admin-breadcrumb .sep { color: var(--muted-2); }
.admin-topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }

/* "View site" link in the admin topbar */
.admin-topbar-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 100px;
  background: var(--paper); border: 1px solid var(--line);
  color: var(--ink-700); font-weight: 500; font-size: .88rem;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.admin-topbar-link:hover {
  background: var(--ink); color: #fff; border-color: var(--ink);
  transform: translateY(-1px);
}
.admin-topbar-link svg { flex-shrink: 0; }
@media (max-width: 768px) {
  .admin-topbar-link span { display: none; }
  .admin-topbar-link { padding: 10px; }
}

.admin-content { padding: 32px; max-width: 1500px; margin: 0 auto; }

/* Admin page header */
.admin-page-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 28px; gap: 18px; flex-wrap: wrap;
}
.admin-page-head h1 {
  font-family: 'Fraunces', serif; font-size: 1.9rem; color: var(--ink);
  margin: 0; letter-spacing: -.01em; line-height: 1.1;
}
.admin-page-head p { color: var(--muted); margin-top: 6px; font-size: .95rem; }
.admin-page-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Stat cards */
.admin-stat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 26px;
}
.admin-stat {
  background: #fff; border-radius: 16px; padding: 22px;
  border: 1px solid var(--line); position: relative; overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s;
}
.admin-stat:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(15,31,61,.06); }
.admin-stat-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.admin-stat-label { color: var(--muted); font-size: .82rem; font-weight: 500; }
.admin-stat-ic {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; flex-shrink: 0;
}
.admin-stat-ic.ic-gold { background: var(--gold-soft); color: var(--gold-deep); }
.admin-stat-ic.ic-green { background: #e0f3ea; color: #1c6e4b; }
.admin-stat-ic.ic-blue { background: #e3ecf8; color: #2c4170; }
.admin-stat-ic.ic-purple { background: #ece8f5; color: #5d4794; }
.admin-stat-ic svg { width: 20px; height: 20px; }
.admin-stat-value {
  font-family: 'Fraunces', serif; font-size: 2.1rem; font-weight: 600;
  color: var(--ink); line-height: 1; margin-bottom: 4px;
}
.admin-stat-trend { display: inline-flex; gap: 5px; align-items: center; font-size: .82rem; font-weight: 600; }
.admin-stat-trend.up { color: #1c6e4b; }
.admin-stat-trend.down { color: var(--red); }
.admin-stat-trend.flat { color: var(--muted); }

/* Admin panels (white cards) */
.admin-panel {
  background: #fff; border-radius: 16px; padding: 24px;
  border: 1px solid var(--line); margin-bottom: 22px;
}
.admin-panel-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line-soft);
  gap: 14px; flex-wrap: wrap;
}
.admin-panel-head h3 {
  font-family: 'Fraunces', serif; font-size: 1.2rem; color: var(--ink);
  margin: 0;
}

/* Two-col widget grid */
.admin-grid-2 { display: grid; grid-template-columns: 2fr 1fr; gap: 22px; margin-bottom: 22px; }

/* Revenue chart (CSS-only bar chart) */
.revenue-chart {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 10px;
  align-items: end; height: 220px; padding: 14px 0;
}
.revenue-chart .bar {
  position: relative; background: linear-gradient(180deg, var(--gold-soft) 0%, var(--gold) 100%);
  border-radius: 6px 6px 0 0; min-height: 6px;
  transition: opacity .2s, transform .2s;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.revenue-chart .bar:hover { opacity: .8; transform: translateY(-2px); }
.revenue-chart .bar.active { background: linear-gradient(180deg, var(--ink-600) 0%, var(--ink) 100%); }
.revenue-chart .bar::before {
  content: attr(data-amount); position: absolute; top: -22px; left: 50%; transform: translateX(-50%);
  font-size: .72rem; font-weight: 600; color: var(--ink); opacity: 0; transition: opacity .2s;
  white-space: nowrap;
}
.revenue-chart .bar:hover::before { opacity: 1; }
.revenue-chart .bar::after {
  content: attr(data-label); position: absolute; bottom: -22px; left: 50%; transform: translateX(-50%);
  font-size: .72rem; color: var(--muted); font-weight: 500;
}
.revenue-chart-wrap { padding-bottom: 28px; padding-top: 22px; }

/* Top courses list */
.top-courses-list .top-course-row {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 0; border-bottom: 1px solid var(--line-soft);
}
.top-courses-list .top-course-row:last-child { border-bottom: none; }
.top-course-thumb {
  width: 48px; height: 48px; border-radius: 10px;
  background: linear-gradient(135deg, var(--ink-600), var(--ink));
  color: var(--gold); display: grid; place-items: center;
  font-size: 1.3rem; flex-shrink: 0; overflow: hidden;
}
.top-course-thumb img { width: 100%; height: 100%; object-fit: cover; }
.top-course-info { flex: 1; min-width: 0; }
.top-course-info b { display: block; color: var(--ink); font-weight: 600; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-course-info span { color: var(--muted); font-size: .8rem; }
.top-course-num {
  font-family: 'Fraunces', serif; font-size: 1.1rem; font-weight: 700; color: var(--gold-deep);
}

/* Activity / recent feed */
.activity-feed .activity-row {
  display: flex; align-items: flex-start; gap: 13px;
  padding: 12px 0; border-bottom: 1px solid var(--line-soft);
}
.activity-feed .activity-row:last-child { border-bottom: none; }
.activity-ic {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center;
}
.activity-ic.ic-order { background: #e0f3ea; color: #1c6e4b; }
.activity-ic.ic-user { background: #e3ecf8; color: #2c4170; }
.activity-ic.ic-review { background: var(--gold-soft); color: var(--gold-deep); }
.activity-ic svg { width: 16px; height: 16px; }
.activity-body { flex: 1; min-width: 0; }
.activity-body b { color: var(--ink); font-weight: 600; font-size: .9rem; }
.activity-body p { color: var(--muted); font-size: .82rem; margin: 2px 0 0; }
.activity-time { color: var(--muted-2); font-size: .78rem; white-space: nowrap; }

/* Admin tables */
.admin-table {
  width: 100%; border-collapse: collapse;
}
.admin-table th {
  text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--muted); padding: 12px 14px; background: #f7f8fa;
  border-bottom: 1px solid var(--line); font-weight: 600;
}
.admin-table th:first-child { border-top-left-radius: 10px; }
.admin-table th:last-child { border-top-right-radius: 10px; }
.admin-table td {
  padding: 14px; border-bottom: 1px solid var(--line-soft); font-size: .92rem; color: var(--ink-700);
  vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #f9fafc; }
.admin-table .row-thumb {
  width: 40px; height: 40px; border-radius: 8px; object-fit: cover;
  background: var(--line-soft); display: inline-block; vertical-align: middle;
  margin-right: 10px;
}
.admin-table-actions { display: flex; gap: 6px; justify-content: flex-end; }
.admin-action-btn {
  width: 32px; height: 32px; border-radius: 8px;
  display: inline-grid; place-items: center;
  background: var(--line-soft); color: var(--ink-700);
  transition: background .2s, color .2s;
}
.admin-action-btn:hover { background: var(--ink); color: #fff; }
.admin-action-btn.danger:hover { background: var(--red); }
.admin-action-btn svg { width: 15px; height: 15px; }

/* Admin search/filter bar */
.admin-toolbar {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  margin-bottom: 20px;
}
.admin-toolbar .search-box { flex: 1; max-width: 360px; }
.admin-toolbar .search-box input { background: #fff; }

/* Admin forms */
.admin-form-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 22px; align-items: start; }
.admin-form-grid .admin-panel { margin-bottom: 0; }

@media (max-width: 1024px) {
  .admin-sidebar {
    transform: translateX(-100%); transition: transform .3s var(--ease);
  }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
  .admin-burger { display: inline-flex; }
  .admin-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-grid-2 { grid-template-columns: 1fr; }
  .admin-form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .admin-content { padding: 20px; }
  .admin-topbar { padding: 14px 18px; }
  .admin-stat-grid { grid-template-columns: 1fr; }
  .admin-page-head { flex-direction: column; align-items: stretch; }
}

/* ============================================================
   Admin profile / avatar uploader
   ============================================================ */
.avatar-uploader {
  display: flex; align-items: center; gap: 18px; padding: 14px;
  background: var(--paper); border-radius: 12px; border: 1px solid var(--line-soft);
}
.avatar-preview {
  width: 78px; height: 78px; border-radius: 50%; overflow: hidden;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: var(--ink); display: grid; place-items: center;
  font-family: 'Fraunces', serif; font-weight: 700; font-size: 1.8rem;
  flex-shrink: 0;
}
.avatar-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.avatar-actions .btn { cursor: pointer; }

.avatar-large {
  width: 120px; height: 120px; border-radius: 50%; overflow: hidden;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: var(--ink); display: grid; place-items: center;
  font-family: 'Fraunces', serif; font-weight: 700; font-size: 2.5rem;
}
.avatar-large img { width: 100%; height: 100%; object-fit: cover; display: block; }
