:root {
  --cream: #fbf6ea;
  --cream-deep: #f2e9d4;
  --ink: #0e1b14;
  --forest: #0e3b2e;
  --forest-light: #1b5c46;
  --gold: #c9a24b;
  --gold-bright: #e9c868;
  --gold-pale: #f3e2b4;
  --line: rgba(201, 162, 75, 0.35);
  --glass: rgba(251, 246, 234, 0.68);
  --shadow: 0 28px 70px rgba(14, 27, 20, 0.13);
  --serif: Georgia, "Times New Roman", serif;
  --display: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  letter-spacing: 0;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
svg { flex-shrink: 0; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.narrow { max-width: 720px; }

.bg-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .65;
  background:
    radial-gradient(circle at 15% 10%, rgba(201,162,75,.10), transparent 34rem),
    radial-gradient(circle at 85% 24%, rgba(14,59,46,.08), transparent 36rem),
    radial-gradient(circle at 50% 90%, rgba(201,162,75,.09), transparent 42rem);
  z-index: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251,246,234,.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.nav-wrap { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--forest); font-family: var(--display); font-size: 1.15rem; letter-spacing: .04em; }
.brand small { display: block; margin-top: 4px; font-family: var(--sans); font-size: .58rem; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: .22em; }
.brand-mark { width: 44px; height: 44px; display: inline-grid; place-items: center; border: 1px solid var(--gold); border-radius: 50%; color: var(--forest); font-family: var(--display); background: rgba(255,255,255,.28); }
.brand-logo { width: 54px; height: 54px; object-fit: contain; border-radius: 8px; }
.main-nav { display: flex; align-items: center; gap: 28px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.main-nav a { position: relative; padding-bottom: 5px; }
.main-nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: var(--gold); transition: width .25s ease; }
.main-nav a:hover::after { width: 100%; }
.nav-toggle { display: none; border: 1px solid var(--line); background: var(--glass); color: var(--forest); width: 42px; height: 42px; border-radius: 8px; }
.nav-toggle span { width: 18px; height: 2px; background: var(--forest); display: block; margin: 2px 0; border-radius: 2px; }

.hero { min-height: 100vh; display: flex; align-items: center; padding: 110px 0 70px; position: relative; overflow: hidden; }
.hero-crown-glow, .hero-glow-2 { position: absolute; width: 540px; height: 540px; border-radius: 50%; pointer-events: none; filter: blur(2px); }
.hero-crown-glow { right: -140px; top: -100px; background: radial-gradient(circle, rgba(201,162,75,.2), transparent 65%); }
.hero-glow-2 { left: -160px; bottom: -180px; background: radial-gradient(circle, rgba(14,59,46,.12), transparent 65%); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 64px; }
.eyebrow, .section-eyebrow { display: flex; align-items: center; gap: 14px; color: var(--forest-light); font-size: .74rem; font-weight: 800; letter-spacing: .28em; text-transform: uppercase; }
.eyebrow .rule, .section-eyebrow span { width: 38px; height: 1px; background: var(--gold); display: inline-block; }
.hero-title, .section-title, .page-hero h1, .install-panel h1, .admin-top h1 { font-family: var(--display); font-weight: 400; color: var(--forest); letter-spacing: -.01em; }
.hero-title { font-size: clamp(2.6rem, 5vw, 4.55rem); line-height: 1.06; margin: 28px 0 0; }
.hero-title em { font-style: normal; background: linear-gradient(120deg, var(--gold), var(--gold-bright), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { max-width: 560px; font-family: var(--serif); color: #33422f; font-size: 1.28rem; line-height: 1.65; margin: 26px 0 38px; }
.hero-actions, .cta-buttons { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.btn-primary, .btn-light, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 14px 28px; border-radius: 8px; font-size: .82rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--forest); cursor: pointer;
}
.btn-primary { background: linear-gradient(135deg, var(--forest), var(--forest-light)); color: var(--cream); box-shadow: 0 14px 32px -18px rgba(14,59,46,.7); }
.btn-light { background: linear-gradient(135deg, var(--gold), var(--gold-bright)); color: var(--ink); border: 0; }
.btn-ghost { color: var(--forest); background: transparent; border-color: var(--line); }
.hero-stats { display: flex; gap: 42px; margin-top: 58px; flex-wrap: wrap; }
.stat .num, .metric-card strong { font-family: var(--display); font-size: 2.1rem; color: var(--forest); font-weight: 400; }
.stat .lab, .metric-card span { color: #6b6452; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }
.emblem-ring { width: min(430px, 82vw); aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; background: rgba(251,246,234,.36); backdrop-filter: blur(20px); box-shadow: var(--shadow); position: relative; }
.emblem-ring::before { content: ""; position: absolute; inset: 18px; border: 1px solid rgba(201,162,75,.52); border-radius: 50%; }
.emblem-core { position: relative; text-align: center; }
.crown { color: var(--gold); font-size: 5rem; line-height: 1; }
.rs-letters { color: var(--forest); font-family: var(--display); font-size: 3.8rem; }
.rs-tag { color: var(--gold); font-size: .7rem; text-transform: uppercase; letter-spacing: .26em; font-weight: 800; }

section { position: relative; z-index: 1; padding: 110px 0; }
.compact-section { padding-top: 34px; padding-bottom: 34px; }
.section-head { max-width: 720px; margin: 0 auto 60px; text-align: center; }
.section-head .section-eyebrow { justify-content: center; color: var(--gold); }
.section-title { font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.15; margin: 18px 0 0; }
.section-desc, .page-hero p { font-family: var(--serif); font-size: 1.14rem; color: #4b4536; line-height: 1.7; }
.soft-band { background: var(--cream-deep); }
.pillars, .programs-grid, .dashboard-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature-card, .pillar, .program-card, .panel, .metric-card, .glass-form, .install-panel {
  background: var(--glass); border: 1px solid var(--line); border-radius: 8px; padding: 34px; box-shadow: var(--shadow); backdrop-filter: blur(18px);
}
.feature-card { min-height: 210px; display: flex; flex-direction: column; gap: 14px; }
.feature-card h3 { margin: 6px 0 0; font-family: var(--display); color: var(--forest); font-size: 1.28rem; font-weight: 400; }
.feature-card p { margin: 0; color: #564f3d; line-height: 1.65; }
.icon-svg { width: 28px !important; height: 28px !important; max-width: 28px !important; max-height: 28px !important; color: var(--gold); flex: 0 0 28px; display: inline-block; }
.feature-card > .icon-svg { width: 32px !important; height: 32px !important; max-width: 32px !important; max-height: 32px !important; flex-basis: 32px; }
.pillar .icon { width: 46px; height: 46px; border: 1px solid var(--gold); border-radius: 50%; display: grid; place-items: center; color: var(--forest); margin-bottom: 20px; }
.pillar h3, .program-card h3, .panel h2 { font-family: var(--display); color: var(--forest); font-weight: 400; font-size: 1.45rem; }
.pillar p, .program-card p, .panel p { color: #564f3d; line-height: 1.75; }
.image-card { padding: 0; overflow: hidden; }
.image-card > img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-bottom: 1px solid var(--line); }
.image-card > :not(img) { margin-left: 28px; margin-right: 28px; }
.image-card .program-tag { display: inline-block; margin-top: 28px; }
.image-card .program-meta { margin-bottom: 28px; }
.program-tag { color: var(--gold); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 900; }
.program-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--forest); font-weight: 800; }
.hero-board { width: min(440px, 90vw); margin: 0 auto; border: 1px solid var(--line); border-radius: 8px; padding: 24px; background: rgba(251,246,234,.66); backdrop-filter: blur(22px); box-shadow: var(--shadow); display: grid; gap: 14px; }
.hero-logo { width: min(260px, 70%); margin: 0 auto 10px; filter: drop-shadow(0 18px 32px rgba(14,59,46,.16)); }
.hero-board-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; border: 1px solid rgba(201,162,75,.32); border-radius: 8px; background: rgba(255,255,255,.45); min-height: 68px; }
.hero-board-card span { color: #6b6452; font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 900; }
.hero-board-card strong { color: var(--forest); font-family: var(--display); font-weight: 400; font-size: 1.16rem; text-align: right; }
.hero-board-card.is-gold { background: linear-gradient(135deg, rgba(201,162,75,.22), rgba(243,226,180,.48)); }
.split-section { display: grid; grid-template-columns: .95fr 1.05fr; gap: 48px; align-items: center; }
.split-section.reverse { grid-template-columns: 1fr 1fr; }
.trust-list { display: grid; gap: 14px; margin-top: 28px; }
.trust-list span { display: flex; align-items: center; gap: 12px; color: var(--forest); font-weight: 800; }
.trust-list .icon-svg { width: 18px; height: 18px; }
.people-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.person-card { background: var(--glass); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.person-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top center; }
.person-card div { padding: 18px; }
.person-card.large { grid-column: span 2; display: grid; grid-template-columns: 220px 1fr; align-items: center; }
.person-card.large img { height: 100%; min-height: 220px; aspect-ratio: auto; }
.person-card span, .course-card span, .testimonial-card span { color: var(--gold); font-size: .67rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 900; }
.person-card h3, .course-card h3, .testimonial-card h3 { margin: 6px 0; font-family: var(--display); color: var(--forest); font-weight: 400; }
.course-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.course-card { display: grid; grid-template-columns: 116px 1fr; gap: 18px; align-items: center; background: var(--glass); border: 1px solid var(--line); border-radius: 8px; padding: 14px; box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.course-card img { width: 116px; height: 116px; border-radius: 8px; object-fit: cover; }
.course-card p { margin: 0; color: #564f3d; line-height: 1.55; font-size: .9rem; }
.stats-band { background: linear-gradient(160deg, rgba(14,59,46,.96), #0a2a20); color: var(--cream); }
.stats-band .section-title, .stats-band .section-desc { color: var(--cream); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-card { min-height: 150px; padding: 28px; border: 1px solid rgba(201,162,75,.34); border-radius: 8px; background: rgba(251,246,234,.08); box-shadow: 0 24px 54px rgba(0,0,0,.18); backdrop-filter: blur(18px); }
.stat-card strong { display: block; font-family: var(--display); color: var(--gold-bright); font-size: clamp(2rem, 4vw, 3rem); font-weight: 400; }
.stat-card span { color: rgba(251,246,234,.75); font-weight: 800; }
.instructor-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.instructor-card { position: relative; overflow: hidden; min-height: 330px; border-radius: 8px; border: 1px solid var(--line); background: var(--ink); box-shadow: var(--shadow); }
.instructor-card img { width: 100%; height: 100%; min-height: 330px; object-fit: cover; object-position: top center; opacity: .9; }
.instructor-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.84)); }
.instructor-card div { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 1; color: white; }
.instructor-card h3 { margin: 0 0 4px; font-family: var(--display); font-weight: 400; font-size: 1.35rem; }
.instructor-card span { color: var(--gold-bright); font-size: .76rem; font-weight: 800; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gallery-grid figure { margin: 0; overflow: hidden; border-radius: 8px; border: 1px solid var(--line); background: var(--glass); box-shadow: var(--shadow); }
.gallery-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-grid figcaption { padding: 14px 16px; color: var(--forest); font-weight: 800; }
.proof-list { display: grid; gap: 14px; }
.proof-row { display: grid; grid-template-columns: 44px 1fr auto; gap: 16px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.42); box-shadow: 0 16px 38px rgba(14,27,20,.08); }
.proof-row span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--gold); border: 1px solid var(--line); }
.proof-row strong { color: var(--forest); font-family: var(--display); font-size: 1.3rem; font-weight: 400; }
.proof-row em { color: #6b6452; font-style: normal; font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 900; }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testimonial-card { padding: 28px; border: 1px solid var(--line); border-radius: 8px; background: var(--glass); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.testimonial-card img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); margin-bottom: 18px; }
.testimonial-card p { color: #4b4536; line-height: 1.7; }
.video-proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 24px; }
.video-proof-grid a { display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; color: var(--forest); background: rgba(255,255,255,.45); font-weight: 800; }
.video-proof-grid .icon-svg { width: 20px; height: 20px; }
.ecosystem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ecosystem-column { border: 1px solid rgba(201,162,75,.32); background: rgba(251,246,234,.08); border-radius: 8px; padding: 28px; backdrop-filter: blur(16px); }
.ecosystem-column h3 { margin: 0 0 18px; font-family: var(--display); color: var(--gold-bright); font-size: 1.45rem; font-weight: 400; }
.ecosystem-column div { padding: 14px 0; border-top: 1px solid rgba(251,246,234,.12); }
.ecosystem-column strong { display: block; color: var(--cream); }
.ecosystem-column span, .ecosystem-column p { display: block; color: rgba(251,246,234,.68); line-height: 1.55; margin-top: 5px; }
.faq-list { display: grid; gap: 12px; }
.faq-list details { border: 1px solid var(--line); border-radius: 8px; background: var(--glass); box-shadow: 0 16px 38px rgba(14,27,20,.08); padding: 18px 22px; }
.faq-list summary { color: var(--forest); font-weight: 900; cursor: pointer; }
.faq-list p { color: #564f3d; line-height: 1.7; }
.impact-section { background: linear-gradient(160deg, #0b071b, #160b22); color: var(--cream); }
.impact-section .section-title, .impact-section .section-desc { color: var(--cream); }
.impact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.impact-grid .notice { grid-column: 1 / -1; color: var(--cream); }
.impact-card { position: relative; min-height: 360px; border-radius: 8px; overflow: hidden; border: 1px solid rgba(201,162,75,.3); background: rgba(255,255,255,.05); box-shadow: 0 28px 70px rgba(0,0,0,.28); }
.impact-card img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; opacity: .72; }
.impact-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.86)); }
.impact-play { position: absolute; z-index: 2; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 62px; height: 62px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--gold-bright)); color: var(--ink); box-shadow: 0 18px 40px rgba(201,162,75,.28); }
.impact-play .icon-svg { color: currentColor; }
.impact-card div { position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 18px; }
.impact-card div span { color: var(--gold-bright); font-size: .68rem; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.impact-card h3 { margin: 6px 0 0; color: white; font-family: var(--display); font-size: 1.35rem; font-weight: 400; }
.social-section { background: linear-gradient(160deg, var(--forest), #0a2a20); color: var(--cream); }
.social-section .section-title, .social-section .section-desc { color: var(--cream); }
.social-grid { display: flex; justify-content: center; flex-wrap: wrap; gap: 28px; }
.social-card { width: 132px; display: grid; justify-items: center; gap: 12px; color: rgba(251,246,234,.8); font-weight: 800; }
.social-card img { width: 84px; height: 84px; object-fit: cover; border-radius: 50%; padding: 12px; border: 1px solid rgba(201,162,75,.32); background: rgba(255,255,255,.08); box-shadow: 0 18px 44px rgba(0,0,0,.22); }
.media-band { background: linear-gradient(160deg, var(--forest), #0a2a20); color: var(--cream); }
.media-band .section-title,
.media-band .section-desc { color: var(--cream); }
.media-band .section-desc { color: rgba(251,246,234,.72); }
.media-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.media-card { border: 1px solid rgba(201,162,75,.32); background: rgba(251,246,234,.08); border-radius: 8px; padding: 28px; backdrop-filter: blur(16px); }
.media-card span { color: var(--gold-bright); font-family: var(--display); font-size: 2rem; }
.media-card h3 { font-family: var(--display); font-weight: 400; font-size: 1.4rem; }
.media-card p { color: rgba(251,246,234,.7); line-height: 1.65; }
.cta-section { color: var(--cream); text-align: center; background: linear-gradient(160deg, var(--forest), #0a2a20); }
.cta-section h2 { font-family: var(--display); font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 400; }
.cta-section p { color: rgba(251,246,234,.78); font-family: var(--serif); font-size: 1.16rem; }

.page-hero { padding: 115px 0 55px; text-align: center; }
.page-hero .section-eyebrow { justify-content: center; color: var(--gold); }
.page-hero h1 { font-size: clamp(2.3rem, 4vw, 3.8rem); margin: 18px 0 12px; }
.auth-shell { min-height: 72vh; display: grid; place-items: center; padding: 110px 0 70px; }
.glass-form { width: min(460px, 100%); display: grid; gap: 16px; }
.password-reset-form {
  position: relative;
  overflow: hidden;
}

.password-reset-form::before {
  content: "";
  position: absolute;
  inset: -90px -80px auto auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,162,75,.22), transparent 66%);
  pointer-events: none;
}

.auth-note {
  margin: 0;
  color: #564f3d;
  line-height: 1.65;
  font-family: var(--serif);
  font-size: 1.06rem;
}

.auth-support-link {
  margin: -4px 0 0;
  text-align: right;
  font-size: .88rem;
  font-weight: 800;
  color: var(--forest);
}

.glass-form a {
  color: var(--forest-light);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-color: rgba(201,162,75,.52);
  text-underline-offset: 4px;
}
label { display: grid; gap: 8px; color: var(--forest); font-weight: 800; }
.inline-check { display: flex; align-items: center; gap: 10px; }
.inline-check input { width: auto; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.5); color: var(--ink); padding: 13px 14px; font: inherit; }
textarea { min-height: 100px; resize: vertical; }
.notice { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; background: rgba(243,226,180,.4); }
.notice.success { border-color: rgba(27,92,70,.35); }
.notice.warning { border-color: rgba(201,162,75,.45); color: #72510f; }
.notice.danger { border-color: rgba(150,40,40,.35); color: #7b1b1b; }

.site-footer { position: relative; z-index: 1; background: var(--ink); color: rgba(251,246,234,.72); padding: 70px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(140px, 1fr)); gap: 32px; }
.footer-grid a, .footer-grid p { display: block; color: rgba(251,246,234,.68); line-height: 1.8; }
.footer-grid h5 { color: var(--gold); letter-spacing: .16em; text-transform: uppercase; }
.footer-bottom { margin-top: 38px; padding-top: 22px; border-top: 1px solid rgba(251,246,234,.1); color: rgba(251,246,234,.45); }

.admin-body { background: var(--cream); display: grid; grid-template-columns: 280px 1fr; min-height: 100vh; }
.admin-sidebar { position: sticky; top: 0; height: 100vh; padding: 24px; background: linear-gradient(180deg, var(--forest), #08241b); color: var(--cream); display: flex; flex-direction: column; gap: 10px; }
.admin-sidebar .brand { color: var(--cream); margin-bottom: 24px; }
.admin-sidebar a:not(.brand) { padding: 13px 14px; border-radius: 8px; color: rgba(251,246,234,.82); }
.admin-sidebar a:hover { background: rgba(201,162,75,.16); color: var(--gold-bright); }
.admin-main { padding: 30px; }
.admin-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.admin-form { display: grid; gap: 14px; }
.asset-preview { width: 100%; max-height: 180px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.48); padding: 12px; }
.asset-preview.small { width: 96px; height: 96px; margin-top: 12px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 13px; border-bottom: 1px solid var(--line); }
th { color: var(--forest); background: rgba(201,162,75,.13); }
.table-thumb { width: 62px; height: 46px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.commission-box { border: 1px solid var(--line); border-radius: 8px; padding: 16px; margin: 16px 0; }
.level-row { display: grid; grid-template-columns: 90px 110px 1fr 100px; gap: 10px; align-items: center; margin: 8px 0; }
.install-body { min-height: 100vh; display: grid; place-items: center; padding: 32px 0; }
.install-shell { width: min(980px, calc(100% - 24px)); }
.brand-large { margin-bottom: 24px; }
.install-form { display: grid; gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.muted { color: #6b6452; }
.error-box { padding: 140px 0; }

@media (max-width: 980px) {
  .main-nav { display: none; position: absolute; left: 16px; right: 16px; top: 82px; background: var(--cream); border: 1px solid var(--line); border-radius: 8px; padding: 18px; flex-direction: column; align-items: flex-start; box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .nav-toggle { display: inline-grid; place-items: center; }
  .hero-grid, .pillars, .programs-grid, .gallery-grid, .footer-grid, .grid-2, .feature-grid, .split-section, .split-section.reverse, .course-strip, .testimonial-grid, .video-proof-grid, .ecosystem-grid, .stats-grid, .instructor-grid, .impact-grid { grid-template-columns: 1fr; }
  .media-grid { grid-template-columns: 1fr; }
  .hero { text-align: center; padding-top: 70px; }
  .eyebrow, .hero-actions, .hero-stats { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-board { width: min(420px, 100%); }
  .person-card.large { grid-column: auto; grid-template-columns: 1fr; }
  .person-card.large img { min-height: 0; height: auto; aspect-ratio: 4 / 3; }
  .people-grid { grid-template-columns: 1fr; }
  .course-card { grid-template-columns: 92px 1fr; text-align: left; }
  .course-card img { width: 92px; height: 92px; }
  .proof-row { grid-template-columns: 40px 1fr; }
  .proof-row em { grid-column: 2; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .admin-body { grid-template-columns: 1fr; }
  .admin-sidebar { position: relative; height: auto; }
  .level-row { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 24px, 1180px); }
  section { padding: 76px 0; }
  .hero-title { font-size: clamp(2.2rem, 12vw, 3rem); }
  .hero-sub { font-size: 1.08rem; }
  .hero-stats { gap: 22px; }
  .feature-card, .pillar, .program-card, .panel, .metric-card, .glass-form, .install-panel { padding: 24px; }
  .image-card { padding: 0; }
  .image-card > :not(img) { margin-left: 22px; margin-right: 22px; }
  .brand { font-size: .98rem; }
  .brand-mark { width: 40px; height: 40px; }
}

/* Premium shine homepage layer */
.home-body {
  --neon-bg: #06110d;
  --neon-panel: rgba(255, 253, 248, .74);
  --neon-panel-strong: rgba(255, 253, 248, .88);
  --neon-line: rgba(255, 215, 117, .27);
  --neon-gold: #ffd66f;
  --neon-pink: #d4af37;
  --neon-cyan: #0f6a4d;
  --neon-green: #0f6a4d;
  --neon-text: #fff7df;
  background:
    radial-gradient(circle at 18% 6%, rgba(212, 175, 55, .18), transparent 30rem),
    radial-gradient(circle at 86% 20%, rgba(15, 106, 77, .13), transparent 34rem),
    radial-gradient(circle at 48% 70%, rgba(255, 214, 111, .10), transparent 36rem),
    linear-gradient(180deg, #06110d 0%, #0a4b37 46%, #06110d 100%);
  color: var(--neon-text);
}

.home-body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .24;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.92), rgba(0,0,0,.18));
}

.home-body .bg-noise {
  opacity: 1;
  background:
    radial-gradient(circle at 12% 8%, rgba(212,175,55,.26), transparent 26rem),
    radial-gradient(circle at 88% 12%, rgba(15,106,77,.20), transparent 30rem),
    radial-gradient(circle at 52% 86%, rgba(243,211,122,.12), transparent 34rem);
}

@keyframes shineText {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes neonPulse {
  0%, 100% { box-shadow: 0 0 18px rgba(212,175,55,.18), 0 0 44px rgba(15,106,77,.08); }
  50% { box-shadow: 0 0 32px rgba(212,175,55,.32), 0 0 78px rgba(15,106,77,.18); }
}

@keyframes floatHero {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}

@keyframes sweep {
  0% { transform: translateX(-120%) rotate(18deg); opacity: 0; }
  18%, 64% { opacity: .9; }
  100% { transform: translateX(140%) rotate(18deg); opacity: 0; }
}

.home-body .site-header {
  background: rgba(5, 3, 20, .74);
  border-bottom: 1px solid rgba(255,214,111,.22);
  box-shadow: 0 16px 46px rgba(0,0,0,.24);
  backdrop-filter: blur(22px);
}

.home-body .brand,
.home-body .main-nav a {
  color: rgba(255,247,223,.92);
}

.home-body .brand small {
  color: var(--neon-gold);
  text-shadow: 0 0 18px rgba(255,214,111,.48);
}

.home-body .brand-logo {
  filter: drop-shadow(0 0 18px rgba(255,214,111,.32));
}

.home-body .main-nav a::after {
  height: 2px;
  background: linear-gradient(90deg, var(--neon-pink), var(--neon-cyan), var(--neon-gold));
  box-shadow: 0 0 16px rgba(212,175,55,.65);
}

.home-body .nav-toggle {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,214,111,.28);
}

.home-body .nav-toggle span {
  background: var(--neon-text);
}

.home-body .hero {
  min-height: calc(100vh - 78px);
  padding: 96px 0 56px;
  background:
    radial-gradient(circle at 70% 38%, rgba(15,106,77,.30), transparent 30rem),
    radial-gradient(circle at 34% 20%, rgba(212,175,55,.18), transparent 24rem);
}

.home-body .hero-crown-glow,
.home-body .hero-glow-2 {
  filter: blur(12px);
}

.home-body .hero-crown-glow {
  background: radial-gradient(circle, rgba(255,214,111,.30), transparent 62%);
}

.home-body .hero-glow-2 {
  background: radial-gradient(circle, rgba(15,106,77,.22), transparent 62%);
}

.home-body .eyebrow,
.home-body .section-eyebrow {
  color: var(--neon-gold);
  text-shadow: 0 0 18px rgba(255,214,111,.34);
}

.home-body .eyebrow .rule,
.home-body .section-eyebrow span {
  height: 2px;
  background: linear-gradient(90deg, var(--neon-pink), var(--neon-gold), var(--neon-cyan));
  box-shadow: 0 0 14px rgba(255,214,111,.55);
}

.home-body .hero-title,
.home-body .section-title,
.home-body .page-hero h1,
.home-body .glass-form h1,
.home-body .panel h2,
.home-body .metric-card strong {
  background: linear-gradient(105deg, #ffffff 0%, #fff3c4 22%, #d4af37 42%, #0f6a4d 64%, #ffd66f 82%, #ffffff 100%);
  background-size: 260% 260%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shineText 7s ease-in-out infinite;
  text-shadow: 0 0 38px rgba(212,175,55,.18);
}

.home-body .hero-title em {
  background: linear-gradient(110deg, var(--neon-gold), #ffffff, var(--neon-pink), var(--neon-cyan));
  background-size: 240% 240%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shineText 4.8s ease-in-out infinite;
  text-shadow: 0 0 26px rgba(255,214,111,.42);
}

.home-body .hero-sub,
.home-body .section-desc,
.home-body .page-hero p,
.home-body .feature-card p,
.home-body .program-card p,
.home-body .course-card p,
.home-body .pillar p,
.home-body .panel p,
.home-body .testimonial-card p,
.home-body .faq-list p,
.home-body .person-card p,
.home-body .cta-section p {
  color: rgba(255,247,223,.72);
}

.home-body .btn-primary,
.home-body .btn-light {
  position: relative;
  overflow: hidden;
  color: #06110d;
  border: 1px solid rgba(255,214,111,.46);
  background: linear-gradient(120deg, var(--neon-gold), #fff5bc 34%, var(--neon-cyan) 68%, var(--neon-pink));
  box-shadow: 0 0 24px rgba(255,214,111,.28), 0 18px 46px rgba(212,175,55,.20);
}

.home-body .btn-primary::after,
.home-body .btn-light::after {
  content: "";
  position: absolute;
  top: -70%;
  bottom: -70%;
  width: 42%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.82), transparent);
  animation: sweep 3.8s ease-in-out infinite;
}

.home-body .btn-ghost {
  color: var(--neon-text);
  border-color: rgba(243,211,122,.34);
  background: rgba(255,255,255,.06);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 0 0 22px rgba(212,175,55,.14);
}

.home-body .hero-rating {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
  padding: 13px 18px;
  border: 1px solid rgba(255,214,111,.28);
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 44px rgba(0,0,0,.20), 0 0 28px rgba(212,175,55,.12);
}

.home-body .rating-avatars {
  display: flex;
  align-items: center;
}

.home-body .rating-avatars img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid rgba(255,214,111,.82);
  object-fit: cover;
  margin-left: -9px;
  box-shadow: 0 0 18px rgba(255,214,111,.22);
}

.home-body .rating-avatars img:first-child {
  margin-left: 0;
}

.home-body .hero-rating strong {
  display: block;
  color: var(--neon-text);
  font-size: .88rem;
}

.home-body .hero-rating span {
  display: block;
  color: rgba(255,247,223,.60);
  font-size: .75rem;
}

.home-body .hero-visual {
  display: flex;
  justify-content: center;
}

.home-body .hero-art-card {
  position: relative;
  width: min(520px, 100%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: clamp(28px, 5vw, 54px);
  border-radius: 28px;
  border: 1px solid rgba(255,214,111,.36);
  background:
    radial-gradient(circle at 50% 38%, rgba(255,255,255,.17), transparent 28%),
    linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.025));
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.10),
    0 0 42px rgba(212,175,55,.20),
    0 34px 90px rgba(0,0,0,.42);
  backdrop-filter: blur(22px);
  animation: floatHero 6.5s ease-in-out infinite, neonPulse 4.6s ease-in-out infinite;
  overflow: hidden;
}

.home-body .hero-art-card::before,
.home-body .hero-art-card::after {
  content: "";
  position: absolute;
  inset: -34%;
  pointer-events: none;
}

.home-body .hero-art-card::before {
  background: conic-gradient(from 90deg, transparent, rgba(212,175,55,.38), transparent, rgba(15,106,77,.34), transparent, rgba(255,214,111,.28), transparent);
  animation: shineText 8s linear infinite;
  opacity: .82;
}

.home-body .hero-art-card::after {
  inset: 10px;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(1,18,11,.90), rgba(10,75,55,.76));
}

.home-body .hero-art-card img {
  position: relative;
  z-index: 2;
  width: min(84%, 390px);
  filter:
    drop-shadow(0 0 16px rgba(255,255,255,.20))
    drop-shadow(0 0 34px rgba(255,214,111,.28))
    drop-shadow(0 0 54px rgba(15,106,77,.15));
}

.home-body .hero-float {
  position: absolute;
  z-index: 3;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  color: #06110d;
  background: linear-gradient(120deg, var(--neon-gold), #fff9c9);
  box-shadow: 0 0 24px rgba(255,214,111,.38);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.home-body .hero-float.one { left: 22px; top: 16%; }
.home-body .hero-float.two { right: 18px; top: 46%; background: linear-gradient(120deg, var(--neon-cyan), #f9ffff); box-shadow: 0 0 24px rgba(15,106,77,.36); }
.home-body .hero-float.three { left: 12%; bottom: 12%; background: linear-gradient(120deg, var(--neon-pink), #fff3bd); box-shadow: 0 0 24px rgba(212,175,55,.36); }

.home-body .home-trust-strip {
  padding: 20px 0 72px;
}

.home-body .trust-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.home-body .trust-strip-grid article,
.home-body .feature-card,
.home-body .pillar,
.home-body .program-card,
.home-body .course-card,
.home-body .stat-card,
.home-body .panel,
.home-body .metric-card,
.home-body .glass-form,
.home-body .person-card,
.home-body .instructor-card,
.home-body .testimonial-card,
.home-body .faq-list details,
.home-body .media-card,
.home-body .ecosystem-column,
.home-body .gallery-grid figure,
.home-body .proof-row,
.home-body .social-card img {
  position: relative;
  border: 1px solid rgba(255,214,111,.24);
  background: linear-gradient(145deg, rgba(255,255,255,.10), rgba(255,255,255,.035));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05), 0 26px 70px rgba(0,0,0,.26), 0 0 30px rgba(212,175,55,.10);
  backdrop-filter: blur(20px);
}

.home-body .trust-strip-grid article {
  min-height: 112px;
  padding: 24px;
  border-radius: 18px;
  overflow: hidden;
}

.home-body .trust-strip-grid article::after,
.home-body .feature-card::after,
.home-body .program-card::after,
.home-body .course-card::after,
.home-body .testimonial-card::after,
.home-body .impact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,.20), transparent 34%, rgba(255,214,111,.12));
  opacity: .46;
}

.home-body .trust-strip-grid span,
.home-body .program-tag,
.home-body .person-card span,
.home-body .course-card span,
.home-body .testimonial-card span {
  color: var(--neon-gold);
  text-shadow: 0 0 16px rgba(255,214,111,.35);
}

.home-body .trust-strip-grid strong {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-family: var(--display);
  font-size: 1.28rem;
  font-weight: 400;
}

.home-body section {
  background: transparent;
}

.home-body .soft-band {
  background:
    radial-gradient(circle at 12% 10%, rgba(15,106,77,.12), transparent 28rem),
    radial-gradient(circle at 88% 80%, rgba(212,175,55,.12), transparent 30rem),
    rgba(255,255,255,.018);
}

.home-body .media-band,
.home-body .stats-band,
.home-body .social-section,
.home-body .cta-section,
.home-body .impact-section {
  background:
    radial-gradient(circle at 24% 14%, rgba(212,175,55,.20), transparent 28rem),
    radial-gradient(circle at 82% 54%, rgba(15,106,77,.14), transparent 32rem),
    linear-gradient(160deg, rgba(1,18,11,.94), rgba(3,18,13,.98));
}

.home-body .feature-card,
.home-body .pillar,
.home-body .program-card,
.home-body .course-card,
.home-body .testimonial-card,
.home-body .person-card,
.home-body .instructor-card,
.home-body .gallery-grid figure,
.home-body .media-card,
.home-body .ecosystem-column,
.home-body .panel,
.home-body .metric-card,
.home-body .glass-form,
.home-body .proof-row,
.home-body .impact-card {
  border-radius: 20px;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.home-body .feature-card:hover,
.home-body .pillar:hover,
.home-body .program-card:hover,
.home-body .course-card:hover,
.home-body .testimonial-card:hover,
.home-body .person-card:hover,
.home-body .instructor-card:hover,
.home-body .gallery-grid figure:hover,
.home-body .media-card:hover,
.home-body .panel:hover,
.home-body .metric-card:hover,
.home-body .proof-row:hover,
.home-body .impact-card:hover {
  transform: translateY(-8px);
  border-color: rgba(243,211,122,.46);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 32px 82px rgba(0,0,0,.34), 0 0 44px rgba(212,175,55,.18);
}

.home-body .feature-card h3,
.home-body .pillar h3,
.home-body .program-card h3,
.home-body .course-card h3,
.home-body .testimonial-card h3,
.home-body .person-card h3,
.home-body .media-card h3,
.home-body .ecosystem-column h3,
.home-body .panel h2,
.home-body .metric-card span,
.home-body .faq-list summary {
  color: #ffffff;
  text-shadow: 0 0 18px rgba(212,175,55,.16);
}

.home-body .icon-svg {
  color: var(--neon-cyan);
  filter: drop-shadow(0 0 12px rgba(212,175,55,.42));
}

.home-body .course-strip {
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.home-body .course-card {
  display: block;
  padding: 0;
}

.home-body .course-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  border-radius: 0;
}

.home-body .course-card div {
  position: relative;
  z-index: 2;
  padding: 22px;
}

.home-body .image-card > img,
.home-body .gallery-grid img,
.home-body .course-card img {
  border-bottom: 1px solid rgba(255,214,111,.18);
}

.home-body .program-meta {
  border-top-color: rgba(255,214,111,.20);
  color: var(--neon-gold);
}

.home-body .program-meta a {
  color: var(--neon-cyan);
  text-shadow: 0 0 16px rgba(212,175,55,.32);
}

.home-body .stats-grid {
  gap: 18px;
}

.home-body .stat-card {
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255,255,255,.10), rgba(255,255,255,.035));
}

.home-body .stat-card strong {
  background: linear-gradient(110deg, var(--neon-gold), #ffffff, var(--neon-cyan));
  background-size: 220% 220%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shineText 5s ease-in-out infinite;
}

.home-body .stat-card span,
.home-body .media-card p,
.home-body .ecosystem-column span,
.home-body .ecosystem-column p,
.home-body .video-proof-grid a,
.home-body .proof-row em {
  color: rgba(255,247,223,.68);
}

.home-body .proof-row {
  grid-template-columns: 52px 1fr auto;
  background: linear-gradient(120deg, rgba(255,255,255,.10), rgba(212,175,55,.06));
}

.home-body .proof-row span {
  border-color: rgba(243,211,122,.38);
  background: rgba(212,175,55,.08);
  box-shadow: 0 0 24px rgba(212,175,55,.16);
}

.home-body .proof-row strong {
  color: var(--neon-gold);
  text-shadow: 0 0 18px rgba(255,214,111,.35);
}

.home-body .testimonial-card img {
  border-color: var(--neon-gold);
  box-shadow: 0 0 22px rgba(255,214,111,.28);
}

.home-body .video-proof-grid a,
.home-body .faq-list details,
.home-body .notice {
  border-color: rgba(255,214,111,.24);
  background: rgba(255,255,255,.07);
  color: rgba(255,247,223,.82);
  box-shadow: 0 18px 44px rgba(0,0,0,.18);
}

.home-body label {
  color: var(--neon-gold);
  text-shadow: 0 0 14px rgba(255,214,111,.24);
}

.home-body input,
.home-body select,
.home-body textarea {
  border-color: rgba(255,214,111,.26);
  background: rgba(255,255,255,.08);
  color: var(--neon-text);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), 0 0 24px rgba(212,175,55,.06);
}

.home-body input::placeholder,
.home-body textarea::placeholder {
  color: rgba(255,247,223,.48);
}

.home-body th {
  color: var(--neon-gold);
  background: rgba(255,214,111,.10);
}

.home-body td,
.home-body table {
  color: rgba(255,247,223,.76);
  border-color: rgba(255,214,111,.18);
}

.home-body .impact-grid {
  grid-template-columns: repeat(5, 1fr);
}

.home-body .impact-card {
  min-height: 340px;
  border-color: rgba(255,214,111,.30);
  box-shadow: 0 28px 80px rgba(0,0,0,.32), 0 0 36px rgba(212,175,55,.12);
}

.home-body .impact-play {
  background: linear-gradient(135deg, var(--neon-pink), var(--neon-cyan), var(--neon-gold));
  color: #06110d;
  box-shadow: 0 0 34px rgba(212,175,55,.36), 0 0 42px rgba(15,106,77,.22);
}

.home-body .social-card {
  color: rgba(255,247,223,.82);
}

.home-body .social-card img {
  border-radius: 22px;
  padding: 14px;
  border-color: rgba(243,211,122,.30);
}

.home-body .cta-section {
  overflow: hidden;
}

.home-body .cta-section h2 {
  background: linear-gradient(105deg, #ffffff, var(--neon-gold), var(--neon-pink), var(--neon-cyan), #ffffff);
  background-size: 240% 240%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shineText 6s ease-in-out infinite;
}

.home-body .site-footer {
  background:
    radial-gradient(circle at 18% 0%, rgba(212,175,55,.12), transparent 26rem),
    linear-gradient(180deg, #06110d, #020a06);
  border-top: 1px solid rgba(255,214,111,.20);
}

@media (max-width: 1180px) {
  .home-body .impact-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 980px) {
  .home-body .main-nav {
    background: rgba(1,18,11,.94);
    border-color: rgba(255,214,111,.26);
    box-shadow: 0 22px 60px rgba(0,0,0,.32), 0 0 28px rgba(212,175,55,.12);
  }

  .home-body .hero {
    text-align: center;
    padding-top: 46px;
  }

  .home-body .hero-rating {
    margin-inline: auto;
  }

  .home-body .trust-strip-grid,
  .home-body .course-strip,
  .home-body .impact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .home-body .hero-art-card {
    width: min(430px, 92vw);
  }
}

@media (max-width: 640px) {
  .home-body .hero {
    min-height: auto;
    padding-bottom: 34px;
  }

  .home-body .hero-title {
    font-size: clamp(2.24rem, 11vw, 3.35rem);
  }

  .home-body .hero-sub {
    font-size: 1.05rem;
  }

  .home-body .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .home-body .btn-primary,
  .home-body .btn-ghost,
  .home-body .btn-light {
    width: 100%;
  }

  .home-body .hero-rating {
    width: 100%;
    justify-content: center;
    border-radius: 18px;
  }

  .home-body .hero-float {
    font-size: .62rem;
    padding: 8px 10px;
  }

  .home-body .trust-strip-grid,
  .home-body .course-strip,
  .home-body .impact-grid {
    grid-template-columns: 1fr;
  }

  .home-body .trust-strip-grid article {
    min-height: 96px;
  }

  .home-body .proof-row {
    grid-template-columns: 46px 1fr;
  }

  .home-body .proof-row em {
    grid-column: 2;
  }
}

/* Logo-inspired emerald, ivory and gold theme override */
.home-body {
  --neon-bg: #06110d;
  --neon-panel: rgba(255, 253, 248, .74);
  --neon-panel-strong: rgba(255, 253, 248, .88);
  --neon-line: rgba(212, 175, 55, .36);
  --neon-gold: #d4af37;
  --neon-pink: #d4af37;
  --neon-cyan: #0f6a4d;
  --neon-green: #0f6a4d;
  --neon-text: #113b2d;
  background:
    radial-gradient(circle at 12% 2%, rgba(212,175,55,.18), transparent 26rem),
    radial-gradient(circle at 88% 4%, rgba(15,106,77,.15), transparent 30rem),
    radial-gradient(circle at 50% 98%, rgba(243,211,122,.18), transparent 34rem),
    linear-gradient(180deg, #fffdf8 0%, #f9f6ef 48%, #fff8e7 100%);
  color: #123a2c;
}

.home-body::before {
  opacity: .12;
  background-image:
    linear-gradient(rgba(15,106,77,.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,175,55,.10) 1px, transparent 1px);
  mask-image: linear-gradient(180deg, rgba(0,0,0,.58), rgba(0,0,0,.10));
}

.home-body .bg-noise {
  opacity: 1;
  background:
    radial-gradient(circle at 12% 6%, rgba(243,211,122,.34), transparent 25rem),
    radial-gradient(circle at 88% 10%, rgba(15,106,77,.20), transparent 31rem),
    radial-gradient(circle at 50% 88%, rgba(212,175,55,.22), transparent 35rem);
}

@keyframes royalGlow {
  0%, 100% { box-shadow: 0 0 18px rgba(212,175,55,.20), 0 0 42px rgba(15,106,77,.10); }
  50% { box-shadow: 0 0 34px rgba(212,175,55,.36), 0 0 76px rgba(15,106,77,.20); }
}

.home-body .site-header {
  background: rgba(255,253,248,.82);
  border-bottom: 1px solid rgba(212,175,55,.34);
  box-shadow: 0 18px 48px rgba(10,75,55,.12), 0 0 26px rgba(212,175,55,.12);
}

.home-body .brand,
.home-body .main-nav a {
  color: #0a4b37;
}

.home-body .brand small {
  color: #a87d12;
  text-shadow: 0 0 16px rgba(212,175,55,.30);
}

.home-body .brand-logo {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid rgba(212,175,55,.46);
  box-shadow: 0 0 20px rgba(212,175,55,.26);
  filter: none;
}

.home-body .main-nav a::after {
  background: linear-gradient(90deg, #0f6a4d, #d4af37, #f3d37a);
  box-shadow: 0 0 16px rgba(212,175,55,.55);
}

.home-body .nav-toggle {
  background: rgba(255,253,248,.74);
  border-color: rgba(212,175,55,.40);
}

.home-body .nav-toggle span {
  background: #0a4b37;
}

.home-body .hero {
  background:
    radial-gradient(circle at 78% 18%, rgba(243,211,122,.28), transparent 25rem),
    radial-gradient(circle at 22% 38%, rgba(15,106,77,.36), transparent 30rem),
    linear-gradient(135deg, #06110d 0%, #0a4b37 48%, #0f6a4d 100%);
}

.home-body .hero-crown-glow {
  background: radial-gradient(circle, rgba(243,211,122,.44), transparent 64%);
}

.home-body .hero-glow-2 {
  background: radial-gradient(circle, rgba(15,106,77,.42), transparent 64%);
}

.home-body .eyebrow,
.home-body .hero .section-eyebrow {
  color: #f3d37a;
  text-shadow: 0 0 20px rgba(212,175,55,.40);
}

.home-body .eyebrow .rule,
.home-body .section-eyebrow span {
  background: linear-gradient(90deg, #0f6a4d, #d4af37, #fff5c7);
  box-shadow: 0 0 15px rgba(212,175,55,.48);
}

.home-body .hero-title {
  background: linear-gradient(105deg, #fffdf8 0%, #fff0b7 28%, #d4af37 52%, #f9f6ef 72%, #f3d37a 100%);
  background-size: 240% 240%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 34px rgba(212,175,55,.26);
}

.home-body .hero-title em {
  background: linear-gradient(110deg, #f3d37a, #ffffff, #d4af37, #fff4bf);
  background-size: 240% 240%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 30px rgba(243,211,122,.42);
}

.home-body .section-title,
.home-body .page-hero h1,
.home-body .glass-form h1,
.home-body .panel h2,
.home-body .metric-card strong {
  background: linear-gradient(105deg, #0a4b37 0%, #0f6a4d 30%, #a87d12 56%, #d4af37 74%, #0a4b37 100%);
  background-size: 230% 230%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 22px rgba(212,175,55,.14);
}

.home-body .media-band .section-title,
.home-body .stats-band .section-title,
.home-body .impact-section .section-title,
.home-body .social-section .section-title,
.home-body .cta-section h2 {
  background: linear-gradient(105deg, #fffdf8, #f3d37a, #d4af37, #fff8df);
  background-size: 230% 230%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.home-body .hero-sub,
.home-body .hero-rating span {
  color: rgba(255,253,248,.78);
}

.home-body .section-desc,
.home-body .page-hero p,
.home-body .feature-card p,
.home-body .program-card p,
.home-body .course-card p,
.home-body .pillar p,
.home-body .panel p,
.home-body .testimonial-card p,
.home-body .faq-list p,
.home-body .person-card p,
.home-body .cta-section p {
  color: rgba(18,58,44,.72);
}

.home-body .media-band .section-desc,
.home-body .stats-band .section-desc,
.home-body .impact-section .section-desc,
.home-body .social-section .section-desc,
.home-body .media-card p,
.home-body .ecosystem-column p,
.home-body .ecosystem-column span {
  color: rgba(255,253,248,.74);
}

.home-body .btn-primary,
.home-body .btn-light {
  color: #08241b;
  border-color: rgba(212,175,55,.58);
  background: linear-gradient(120deg, #d4af37, #fff1ad 38%, #f3d37a 58%, #0f6a4d 100%);
  box-shadow: 0 0 24px rgba(212,175,55,.30), 0 18px 46px rgba(10,75,55,.18);
}

.home-body .btn-ghost {
  color: #fffdf8;
  border-color: rgba(243,211,122,.44);
  background: rgba(255,253,248,.08);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 0 22px rgba(212,175,55,.14);
}

.home-body .page-hero .btn-ghost,
.home-body main .btn-ghost {
  color: #0a4b37;
}

.home-body .hero-rating {
  border-color: rgba(243,211,122,.38);
  background: rgba(255,253,248,.10);
  box-shadow: 0 18px 44px rgba(0,0,0,.18), 0 0 28px rgba(212,175,55,.18);
}

.home-body .hero-rating strong {
  color: #fffdf8;
}

.home-body .rating-avatars img {
  border-color: rgba(243,211,122,.92);
  box-shadow: 0 0 18px rgba(212,175,55,.30);
}

.home-body .hero-art-card {
  border-color: rgba(243,211,122,.46);
  background:
    radial-gradient(circle at 50% 38%, rgba(255,253,248,.18), transparent 28%),
    linear-gradient(135deg, rgba(255,253,248,.16), rgba(255,253,248,.04));
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.12),
    0 0 46px rgba(212,175,55,.24),
    0 34px 90px rgba(0,0,0,.38);
  animation: floatHero 6.5s ease-in-out infinite, royalGlow 4.6s ease-in-out infinite;
}

.home-body .hero-art-card::before {
  background: conic-gradient(from 90deg, transparent, rgba(212,175,55,.54), transparent, rgba(15,106,77,.38), transparent, rgba(243,211,122,.40), transparent);
}

.home-body .hero-art-card::after {
  background: linear-gradient(145deg, rgba(5,18,13,.92), rgba(10,75,55,.78));
}

.home-body .hero-art-card img {
  filter:
    drop-shadow(0 0 16px rgba(255,253,248,.20))
    drop-shadow(0 0 34px rgba(212,175,55,.34))
    drop-shadow(0 0 46px rgba(15,106,77,.18));
}

.home-body .hero-float {
  color: #08241b;
  background: linear-gradient(120deg, #d4af37, #fff3bd);
  box-shadow: 0 0 24px rgba(212,175,55,.38);
}

.home-body .hero-float.two {
  background: linear-gradient(120deg, #0f6a4d, #f8fff6);
  box-shadow: 0 0 24px rgba(15,106,77,.32);
}

.home-body .hero-float.three {
  background: linear-gradient(120deg, #f3d37a, #fff8dd);
  box-shadow: 0 0 24px rgba(243,211,122,.34);
}

.home-body .trust-strip-grid article,
.home-body .feature-card,
.home-body .pillar,
.home-body .program-card,
.home-body .course-card,
.home-body .stat-card,
.home-body .person-card,
.home-body .testimonial-card,
.home-body .faq-list details,
.home-body .panel,
.home-body .metric-card,
.home-body .glass-form,
.home-body .gallery-grid figure,
.home-body .proof-row,
.home-body .social-card img {
  border-color: rgba(212,175,55,.32);
  background: linear-gradient(145deg, rgba(255,253,248,.82), rgba(255,248,231,.58));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.34), 0 26px 70px rgba(10,75,55,.12), 0 0 28px rgba(212,175,55,.10);
}

.home-body .media-card,
.home-body .ecosystem-column,
.home-body .impact-card,
.home-body .stats-band .stat-card {
  border-color: rgba(243,211,122,.34);
  background: linear-gradient(145deg, rgba(255,253,248,.12), rgba(255,253,248,.045));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 0 26px 70px rgba(0,0,0,.25), 0 0 30px rgba(212,175,55,.12);
}

.home-body .trust-strip-grid article::after,
.home-body .feature-card::after,
.home-body .program-card::after,
.home-body .course-card::after,
.home-body .testimonial-card::after,
.home-body .impact-card::before {
  background: linear-gradient(135deg, rgba(255,255,255,.34), transparent 34%, rgba(212,175,55,.18));
}

.home-body .feature-card:hover,
.home-body .pillar:hover,
.home-body .program-card:hover,
.home-body .course-card:hover,
.home-body .testimonial-card:hover,
.home-body .person-card:hover,
.home-body .instructor-card:hover,
.home-body .gallery-grid figure:hover,
.home-body .media-card:hover,
.home-body .panel:hover,
.home-body .metric-card:hover,
.home-body .proof-row:hover,
.home-body .impact-card:hover {
  border-color: rgba(212,175,55,.58);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.30), 0 32px 82px rgba(10,75,55,.18), 0 0 42px rgba(212,175,55,.22);
}

.home-body .feature-card h3,
.home-body .pillar h3,
.home-body .program-card h3,
.home-body .course-card h3,
.home-body .testimonial-card h3,
.home-body .person-card h3,
.home-body .panel h2,
.home-body .metric-card span,
.home-body .faq-list summary {
  color: #0a4b37;
  text-shadow: 0 0 16px rgba(212,175,55,.14);
}

.home-body .media-card h3,
.home-body .ecosystem-column h3,
.home-body .impact-card h3 {
  color: #fffdf8;
  text-shadow: 0 0 18px rgba(212,175,55,.18);
}

.home-body .program-tag,
.home-body .person-card span,
.home-body .course-card span,
.home-body .testimonial-card span,
.home-body .trust-strip-grid span {
  color: #a87d12;
  text-shadow: 0 0 14px rgba(212,175,55,.24);
}

.home-body .trust-strip-grid strong {
  color: #0a4b37;
}

.home-body .soft-band {
  background:
    radial-gradient(circle at 12% 10%, rgba(15,106,77,.12), transparent 28rem),
    radial-gradient(circle at 88% 80%, rgba(212,175,55,.16), transparent 30rem),
    rgba(255,253,248,.38);
}

.home-body .media-band,
.home-body .stats-band,
.home-body .social-section,
.home-body .cta-section,
.home-body .impact-section {
  background:
    radial-gradient(circle at 20% 14%, rgba(243,211,122,.20), transparent 28rem),
    radial-gradient(circle at 82% 54%, rgba(15,106,77,.24), transparent 32rem),
    linear-gradient(160deg, #06110d, #0a4b37 55%, #06110d);
}

.home-body .icon-svg {
  color: #d4af37;
  filter: drop-shadow(0 0 12px rgba(212,175,55,.36));
}

.home-body .program-meta {
  border-top-color: rgba(212,175,55,.24);
  color: #a87d12;
}

.home-body .program-meta a {
  color: #0f6a4d;
  text-shadow: 0 0 12px rgba(15,106,77,.18);
}

.home-body .stats-band .stat-card strong {
  background: linear-gradient(110deg, #f3d37a, #ffffff, #d4af37);
  background-size: 220% 220%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.home-body .stat-card span,
.home-body .proof-row em {
  color: rgba(18,58,44,.62);
}

.home-body .stats-band .stat-card span {
  color: rgba(255,253,248,.72);
}

.home-body .proof-row {
  background: linear-gradient(120deg, rgba(255,253,248,.86), rgba(243,211,122,.18));
}

.home-body .proof-row span {
  border-color: rgba(212,175,55,.40);
  background: rgba(212,175,55,.10);
  box-shadow: 0 0 24px rgba(212,175,55,.16);
}

.home-body .proof-row strong {
  color: #0a4b37;
  text-shadow: 0 0 14px rgba(212,175,55,.22);
}

.home-body .testimonial-card img {
  border-color: #d4af37;
  box-shadow: 0 0 22px rgba(212,175,55,.24);
}

.home-body .video-proof-grid a,
.home-body .faq-list details,
.home-body .notice {
  border-color: rgba(212,175,55,.28);
  background: rgba(255,253,248,.78);
  color: rgba(18,58,44,.80);
  box-shadow: 0 18px 44px rgba(10,75,55,.10);
}

.home-body .impact-play {
  background: linear-gradient(135deg, #d4af37, #f3d37a, #0f6a4d);
  color: #08241b;
  box-shadow: 0 0 34px rgba(212,175,55,.34), 0 0 36px rgba(15,106,77,.18);
}

.home-body .social-card {
  color: rgba(255,253,248,.86);
}

.home-body .social-card img {
  border-color: rgba(212,175,55,.42);
}

.home-body input,
.home-body select,
.home-body textarea {
  border-color: rgba(212,175,55,.30);
  background: rgba(255,253,248,.78);
  color: #123a2c;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.22), 0 0 20px rgba(212,175,55,.08);
}

.home-body input::placeholder,
.home-body textarea::placeholder {
  color: rgba(18,58,44,.46);
}

.home-body label {
  color: #0a4b37;
  text-shadow: 0 0 12px rgba(212,175,55,.14);
}

.home-body .site-footer {
  background:
    radial-gradient(circle at 18% 0%, rgba(243,211,122,.14), transparent 26rem),
    linear-gradient(180deg, #07120e, #030806);
  border-top: 1px solid rgba(212,175,55,.24);
}

@media (max-width: 980px) {
  .home-body .main-nav {
    background: rgba(255,253,248,.96);
    border-color: rgba(212,175,55,.34);
    box-shadow: 0 22px 60px rgba(10,75,55,.16), 0 0 28px rgba(212,175,55,.12);
  }
}

/* Equal premium founder and co-founder cards */
.home-body .leadership-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 22px;
}

.home-body .leadership-cards .person-card.large {
  grid-column: auto;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-radius: 24px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255,253,248,.94), rgba(255,248,231,.70)),
    radial-gradient(circle at 50% 0%, rgba(212,175,55,.16), transparent 18rem);
  border: 1px solid rgba(212,175,55,.42);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.44), 0 30px 76px rgba(10,75,55,.14), 0 0 36px rgba(212,175,55,.12);
}

.home-body .leadership-cards .person-card.large::before {
  content: "";
  position: absolute;
  inset: 10px;
  pointer-events: none;
  border-radius: 18px;
  border: 1px solid rgba(212,175,55,.18);
  z-index: 2;
}

.home-body .leadership-cards .person-card.large img {
  width: 100%;
  height: 310px;
  min-height: 310px;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: top center;
  border-bottom: 1px solid rgba(212,175,55,.36);
  box-shadow: 0 20px 44px rgba(10,75,55,.14);
}

.home-body .leadership-cards .person-card.large div {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 1;
  min-height: 190px;
  padding: 24px;
}

.home-body .leadership-cards .person-card.large span {
  margin-bottom: 6px;
}

.home-body .leadership-cards .person-card.large h3 {
  margin: 4px 0 10px;
  font-size: 1.35rem;
}

.home-body .leadership-cards .person-card.large p {
  margin: 0;
  line-height: 1.62;
}

@media (max-width: 1180px) {
  .home-body .leadership-cards .person-card.large img {
    height: 280px;
    min-height: 280px;
  }
}

@media (max-width: 980px) {
  .home-body .leadership-cards {
    grid-template-columns: 1fr;
  }

  .home-body .leadership-cards .person-card.large img {
    height: min(360px, 72vw);
    min-height: 260px;
  }
}

/* Student dashboard feature surface */
.user-dashboard {
  display: grid;
  gap: 28px;
  padding-bottom: 90px;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: 24px;
  align-items: stretch;
  padding: 34px;
  border: 1px solid rgba(212,175,55,.34);
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 18%, rgba(243,211,122,.24), transparent 22rem),
    linear-gradient(135deg, rgba(255,253,248,.88), rgba(255,248,231,.66));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.42), 0 30px 84px rgba(10,75,55,.14);
  backdrop-filter: blur(20px);
}

.dashboard-hero h1 {
  margin: 18px 0 12px;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  color: #0a4b37;
}

.dashboard-hero p {
  max-width: 760px;
  color: rgba(18,58,44,.72);
  line-height: 1.75;
}

.dashboard-ref-card {
  display: grid;
  align-content: center;
  gap: 10px;
  min-height: 220px;
  padding: 28px;
  border: 1px solid rgba(212,175,55,.38);
  border-radius: 24px;
  background: linear-gradient(145deg, #0a4b37, #06110d);
  box-shadow: 0 24px 64px rgba(10,75,55,.22), 0 0 34px rgba(212,175,55,.16);
  color: #fffdf8;
}

.dashboard-ref-card span,
.dashboard-section-title span {
  color: #d4af37;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.dashboard-ref-card strong {
  font-family: var(--display);
  font-size: 2.2rem;
  font-weight: 400;
  color: #f3d37a;
}

.dashboard-ref-card p {
  margin: 0;
  color: rgba(255,253,248,.72);
  overflow-wrap: anywhere;
}

.dashboard-metrics {
  grid-template-columns: repeat(6, 1fr);
}

.dashboard-module-section {
  display: grid;
  gap: 18px;
}

.dashboard-section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 0 4px;
}

.dashboard-section-title strong {
  color: #0a4b37;
  font-weight: 900;
}

.dashboard-module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.module-card {
  position: relative;
  min-height: 170px;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 24px;
  border: 1px solid rgba(212,175,55,.32);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255,253,248,.88), rgba(255,248,231,.62));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.34), 0 24px 64px rgba(10,75,55,.12);
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.module-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.34), transparent 42%, rgba(212,175,55,.16));
}

.module-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212,175,55,.58);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.42), 0 30px 78px rgba(10,75,55,.16), 0 0 34px rgba(212,175,55,.16);
}

.module-card > span {
  position: relative;
  z-index: 1;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(10,75,55,.08);
  border: 1px solid rgba(212,175,55,.24);
}

.module-card strong,
.module-card em {
  position: relative;
  z-index: 1;
}

.module-card strong {
  color: #0a4b37;
  font-size: 1.04rem;
}

.module-card em {
  color: rgba(18,58,44,.66);
  font-style: normal;
  line-height: 1.55;
}

.mini-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.module-page .panel,
.module-page .programs-grid,
.module-page .social-grid {
  margin-top: 18px;
}

.user-history-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.user-history-grid .panel {
  min-width: 0;
}

.user-history-grid table {
  font-size: .86rem;
}

.copy-line {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(212,175,55,.26);
  background: rgba(255,253,248,.58);
}

.copy-line strong {
  color: #0a4b37;
  font-size: 1.4rem;
}

.copy-line code {
  color: rgba(18,58,44,.76);
  overflow-wrap: anywhere;
}

.program-meta form {
  margin: 0;
}

.program-meta .btn-primary {
  min-height: 40px;
  padding: 10px 16px;
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .dashboard-metrics,
  .dashboard-module-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

  .dashboard-metrics,
  .dashboard-module-grid,
  .user-history-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .dashboard-hero {
    padding: 24px;
    border-radius: 22px;
  }

  .dashboard-metrics,
  .dashboard-module-grid,
  .user-history-grid {
    grid-template-columns: 1fr;
  }

  .mini-actions .btn-primary,
  .mini-actions .btn-ghost {
    width: 100%;
  }
}

/* Premium admin, auth and payment upgrades */
.auth-note {
  margin: -4px 0 2px;
  color: rgba(18,58,44,.72);
  line-height: 1.65;
}

.register-form {
  width: min(920px, 100%);
}

.plan-select-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.plan-option {
  position: relative;
  min-height: 118px;
  padding: 16px;
  border: 1px solid rgba(212,175,55,.32);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255,253,248,.88), rgba(255,248,231,.58));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.34), 0 18px 44px rgba(10,75,55,.1);
  cursor: pointer;
}

.plan-option input {
  position: absolute;
  inset: 14px 14px auto auto;
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
}

.plan-option span {
  display: grid;
  gap: 10px;
  padding-right: 30px;
}

.plan-option strong {
  color: #0a4b37;
  font-size: 1rem;
}

.plan-option em {
  width: max-content;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(15,106,77,.08);
  color: #9b7418;
  font-style: normal;
  font-weight: 900;
}

.plan-option:has(input:checked) {
  border-color: rgba(212,175,55,.78);
  box-shadow: inset 0 0 0 1px rgba(243,211,122,.7), 0 22px 58px rgba(10,75,55,.16), 0 0 28px rgba(212,175,55,.18);
}

.payment-shell {
  padding-bottom: 90px;
}

.payment-panel {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.payment-panel code {
  display: inline-block;
  margin: 8px 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15,106,77,.08);
  color: #0a4b37;
  overflow-wrap: anywhere;
}

.admin-body {
  background:
    radial-gradient(circle at 90% 4%, rgba(212,175,55,.16), transparent 34rem),
    radial-gradient(circle at 14% 94%, rgba(15,106,77,.12), transparent 36rem),
    var(--cream);
}

.admin-sidebar {
  border-right: 1px solid rgba(212,175,55,.28);
  box-shadow: 24px 0 68px rgba(10,75,55,.13);
  overflow-y: auto;
}

.admin-sidebar a:not(.brand) {
  border: 1px solid transparent;
  font-weight: 800;
}

.admin-sidebar a:not(.brand):hover {
  border-color: rgba(212,175,55,.25);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
}

.admin-main {
  display: grid;
  gap: 26px;
}

.admin-top {
  position: sticky;
  top: 0;
  z-index: 3;
  min-height: 74px;
  padding: 14px 18px;
  border: 1px solid rgba(212,175,55,.28);
  border-radius: 20px;
  background: rgba(255,253,248,.76);
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 48px rgba(10,75,55,.09);
}

.admin-top a {
  padding: 10px 14px;
  border: 1px solid rgba(212,175,55,.34);
  border-radius: 999px;
  color: #0a4b37;
  font-weight: 900;
}

.admin-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 22px;
  align-items: stretch;
  padding: 30px;
  border: 1px solid rgba(212,175,55,.34);
  border-radius: 26px;
  background:
    radial-gradient(circle at 12% 0, rgba(243,211,122,.22), transparent 24rem),
    linear-gradient(135deg, rgba(255,253,248,.9), rgba(255,248,231,.66));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.38), 0 28px 72px rgba(10,75,55,.13);
  backdrop-filter: blur(20px);
}

.admin-hero span,
.admin-hero-badge em {
  color: #b48922;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.admin-hero h2 {
  max-width: 820px;
  margin: 12px 0 0;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.85rem);
  font-weight: 400;
  color: #0a4b37;
}

.admin-hero-badge {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 10px;
  padding: 24px;
  border: 1px solid rgba(212,175,55,.32);
  border-radius: 22px;
  background: linear-gradient(145deg, #0a4b37, #06110d);
  color: #fffdf8;
}

.admin-hero-badge .icon-svg {
  width: 36px;
  height: 36px;
  color: #f3d37a;
  filter: drop-shadow(0 0 14px rgba(212,175,55,.5));
}

.admin-hero-badge strong {
  color: #f3d37a;
  font-size: 1.05rem;
}

.admin-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-module-grid .module-card {
  min-height: 154px;
}

.admin-history-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.admin-history-panel {
  min-width: 0;
}

.admin-history-panel > .table-wrap,
.admin-history-panel table {
  font-size: .86rem;
}

.dashboard-social-grid {
  justify-content: start;
}

.premium-social-card {
  width: 170px;
  min-height: 150px;
  padding: 18px;
  border: 1px solid rgba(212,175,55,.32);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255,253,248,.9), rgba(255,248,231,.62));
  box-shadow: 0 18px 48px rgba(10,75,55,.11);
}

.social-icon-badge {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  color: #f3d37a;
  background: linear-gradient(145deg, #0a4b37, #071d16);
  border: 1px solid rgba(212,175,55,.42);
  box-shadow: 0 18px 40px rgba(10,75,55,.18), 0 0 24px rgba(212,175,55,.18);
}

.premium-social-card span:last-child {
  color: #0a4b37;
  text-align: center;
}

@media (max-width: 1180px) {
  .admin-metrics,
  .admin-module-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .plan-select-grid,
  .admin-hero,
  .admin-history-grid {
    grid-template-columns: 1fr;
  }

  .admin-metrics,
  .admin-module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-main {
    padding: 18px;
  }
}

@media (max-width: 640px) {
  .register-form,
  .glass-form {
    width: 100%;
  }

  .admin-top {
    position: relative;
    display: grid;
    gap: 12px;
  }

  .admin-metrics,
  .admin-module-grid {
    grid-template-columns: 1fr;
  }

  .premium-social-card {
    width: 100%;
  }
}

/* Layout hardening for desktop and mobile panels */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.container,
.admin-main,
.panel,
.metric-card,
.program-card,
.module-card,
.feature-card,
.pillar,
.glass-form,
.install-panel,
.dashboard-hero,
.admin-hero {
  min-width: 0;
  max-width: 100%;
}

.pillars,
.programs-grid,
.dashboard-grid,
.dashboard-module-grid,
.gallery-grid,
.feature-grid,
.stats-grid,
.instructor-grid,
.course-strip,
.people-grid,
.admin-history-grid,
.user-history-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.program-meta {
  flex-wrap: wrap;
  align-items: flex-start;
}

.program-meta > *,
.mini-actions > *,
.hero-actions > * {
  min-width: 0;
}

.program-meta .btn-primary,
.program-meta a,
.btn-primary,
.btn-ghost,
.btn-light {
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

.brand {
  min-width: 0;
}

.brand span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.brand small {
  overflow-wrap: anywhere;
}

.main-nav {
  min-width: 0;
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-wrap table {
  min-width: 760px;
}

th,
td {
  max-width: 260px;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.wallet-metrics {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
}

.wallet-action-panel,
.payout-panel {
  background:
    radial-gradient(circle at 12% 0, rgba(243,211,122,.24), transparent 20rem),
    linear-gradient(145deg, rgba(255,253,248,.88), rgba(255,248,231,.58));
}

.premium-withdraw-form {
  max-width: 520px;
}

.leaderboard-surface {
  display: grid;
  gap: 18px;
  padding: 0;
}

.leaderboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 18px;
}

.leader-card {
  position: relative;
  min-height: 150px;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(212,175,55,.34);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255,253,248,.9), rgba(255,248,231,.62));
  box-shadow: 0 20px 52px rgba(10,75,55,.11);
  overflow: hidden;
}

.leader-card.rank-1 {
  background: linear-gradient(145deg, rgba(15,106,77,.95), rgba(7,29,22,.96));
  color: #fffdf8;
  box-shadow: 0 24px 68px rgba(10,75,55,.2), 0 0 34px rgba(212,175,55,.18);
}

.leader-card img {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid rgba(212,175,55,.34);
}

.leader-card div {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.leader-card strong,
.leader-card em,
.leader-card p {
  overflow-wrap: anywhere;
}

.leader-card strong {
  color: inherit;
  font-size: 1.02rem;
}

.leader-card em {
  color: #b48922;
  font-style: normal;
  font-weight: 800;
}

.leader-card.rank-1 em {
  color: #f3d37a;
}

.leader-card p {
  margin: 0;
  color: #0a4b37;
  font-weight: 900;
}

.leader-card.rank-1 p {
  color: #f3d37a;
}

.rank-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(212,175,55,.16);
  color: #9b7418;
  font-size: .72rem;
  font-weight: 900;
}

.leader-card.rank-1 .rank-badge {
  background: rgba(243,211,122,.18);
  color: #f3d37a;
}

.plan-feature-list {
  display: grid;
  gap: 9px;
  margin: 18px 28px 0;
  padding: 0;
  list-style: none;
}

.plan-feature-list li,
.plan-option small {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: rgba(18,58,44,.74);
  font-size: .86rem;
  line-height: 1.45;
}

.plan-option small {
  font-weight: 700;
}

.plan-feature-list .icon-svg,
.plan-option small .icon-svg {
  width: 17px !important;
  height: 17px !important;
  max-width: 17px !important;
  max-height: 17px !important;
  flex-basis: 17px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(212,175,55,.28);
  background: rgba(243,211,122,.16);
  color: #8a6415;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.status-pill.success,
.notice.success {
  background: rgba(15,106,77,.08);
  color: #0a4b37;
  border-color: rgba(15,106,77,.28);
}

.status-pill.danger,
.notice.danger {
  background: rgba(150,40,40,.06);
  color: #7b1b1b;
  border-color: rgba(150,40,40,.28);
}

.small-action {
  min-height: 34px;
  padding: 8px 12px;
  font-size: .7rem;
}

.order-table code {
  color: #0a4b37;
  white-space: nowrap;
}

.payment-status-card {
  position: relative;
  overflow: hidden;
}

.payment-status-card::before {
  content: "";
  position: absolute;
  inset: -40% auto auto 50%;
  width: 360px;
  height: 360px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,175,55,.18), transparent 68%);
  pointer-events: none;
}

.payment-status-icon {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  border-radius: 24px;
  background: linear-gradient(145deg, #0a4b37, #071d16);
  color: #f3d37a;
  border: 1px solid rgba(212,175,55,.38);
  box-shadow: 0 18px 44px rgba(10,75,55,.18), 0 0 26px rgba(212,175,55,.18);
}

.payment-status-icon .icon-svg {
  width: 34px !important;
  height: 34px !important;
  max-width: 34px !important;
  max-height: 34px !important;
}

.policy-content {
  max-width: 920px;
  margin: 0 auto 80px;
}

.policy-content h2,
.policy-content h3 {
  color: #0a4b37;
}

.policy-content h3 {
  margin-top: 28px;
}

@media (max-width: 980px) {
  .admin-sidebar {
    width: 100%;
    max-height: 58vh;
  }

  .admin-main,
  .user-dashboard {
    gap: 20px;
  }

  .page-hero {
    padding-left: 12px;
    padding-right: 12px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 20px, 1180px);
  }

  .dashboard-hero,
  .admin-hero,
  .panel,
  .metric-card,
  .module-card,
  .program-card:not(.image-card),
  .glass-form {
    padding: 20px;
    border-radius: 18px;
  }

  .image-card > :not(img) {
    margin-left: 18px;
    margin-right: 18px;
  }

  .admin-main {
    padding: 12px;
  }

  .dashboard-ref-card strong,
  .metric-card strong {
    font-size: clamp(1.45rem, 8vw, 2rem);
  }

  .table-wrap table {
    min-width: 620px;
  }

  .leader-card {
    grid-template-columns: 64px minmax(0, 1fr);
    padding: 16px;
  }

  .leader-card img {
    width: 64px;
    height: 64px;
  }

  .plan-feature-list {
    margin-left: 18px;
    margin-right: 18px;
  }
}

.admin-crud-panel {
  overflow: hidden;
}

.admin-crud-form .grid-2 {
  align-items: start;
}

.form-help {
  display: block;
  margin: 6px 0 8px;
  color: rgba(10,75,55,.68);
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.45;
}

.field-block {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(212,175,55,.24);
  border-radius: 16px;
  background: rgba(255,253,248,.62);
}

.field-block > strong {
  color: #0a4b37;
  font-family: var(--display);
  font-size: 1.05rem;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.checkbox-grid .inline-check {
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(212,175,55,.22);
  border-radius: 12px;
  background: rgba(255,255,255,.56);
}

.crud-preview {
  width: min(260px, 100%);
  padding: 10px;
  border: 1px solid rgba(212,175,55,.30);
  border-radius: 18px;
  background: rgba(255,255,255,.66);
  box-shadow: 0 18px 46px rgba(10,75,55,.10);
}

.crud-preview img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.admin-thumb {
  width: 74px;
  height: 56px;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(10,75,55,.10);
}

.table-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 150px;
}

.table-actions form {
  margin: 0;
}

.danger-action {
  color: #8b1f1f;
  border-color: rgba(139,31,31,.28);
  background: rgba(139,31,31,.05);
}

.danger-action:hover {
  background: rgba(139,31,31,.10);
}

.admin-gallery-grid figure {
  position: relative;
}

.admin-gallery-grid .table-actions {
  padding: 0 14px 14px;
}

@media (max-width: 760px) {
  .checkbox-grid {
    grid-template-columns: 1fr;
  }

  .table-actions {
    min-width: 132px;
  }

  .admin-thumb {
    width: 62px;
    height: 48px;
  }
}

/* Demand update: readable theme toggle, compact dashboard, profile photo and graph */
.theme-toggle {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(201,162,75,.42);
  border-radius: 8px;
  background: rgba(255,253,248,.66);
  color: var(--forest);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}

.admin-top-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.theme-dark {
  background: #07130f;
  color: #fffdf8;
}

.theme-dark .site-header,
.theme-dark .panel,
.theme-dark .metric-card,
.theme-dark .module-card,
.theme-dark .glass-form,
.theme-dark .dashboard-hero,
.theme-dark .program-card,
.theme-dark .feature-card,
.theme-dark .testimonial-card,
.theme-dark .faq-list details {
  background: linear-gradient(145deg, rgba(10,75,55,.92), rgba(6,24,18,.86));
  border-color: rgba(243,211,122,.36);
  color: #fffdf8;
}

.theme-dark .section-title,
.theme-dark .page-hero h1,
.theme-dark .dashboard-hero h1,
.theme-dark .panel h2,
.theme-dark .metric-card strong,
.theme-dark .module-card strong,
.theme-dark h1,
.theme-dark h2,
.theme-dark h3 {
  color: #f3d37a;
}

.theme-dark p,
.theme-dark .section-desc,
.theme-dark .dashboard-hero p,
.theme-dark .module-card em,
.theme-dark .panel p,
.theme-dark td,
.theme-dark label {
  color: rgba(255,253,248,.82);
}

.theme-dark input,
.theme-dark select,
.theme-dark textarea,
.theme-dark .theme-toggle {
  background: rgba(255,253,248,.08);
  color: #fffdf8;
  border-color: rgba(243,211,122,.36);
}

.theme-dark th {
  background: rgba(243,211,122,.16);
  color: #f3d37a;
}

.theme-light {
  background: var(--cream);
  color: var(--ink);
}

.home-body .section-title,
.home-body .hero-title,
.home-body .page-hero h1,
.home-body .panel h2,
.home-body .program-card h3,
.home-body .feature-card h3 {
  font-weight: 700;
}

.home-body #about .feature-card {
  background: linear-gradient(145deg, #0f6a4d, #082f22);
  border-color: rgba(243,211,122,.42);
  color: #f3d37a;
}

.home-body #about .feature-card h3,
.home-body #about .feature-card .icon-svg {
  color: #f3d37a;
}

.home-body #about .feature-card p {
  color: #f3d37a;
}

.dashboard-compact {
  font-size: .92rem;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.dashboard-menu-panel {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 14px;
}

.dashboard-profile-card,
.dashboard-menu {
  border: 1px solid rgba(212,175,55,.32);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255,253,248,.9), rgba(255,248,231,.68));
  box-shadow: 0 22px 58px rgba(10,75,55,.11);
  backdrop-filter: blur(18px);
}

.dashboard-profile-card {
  padding: 18px;
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.dashboard-profile-card img {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #d4af37;
  box-shadow: 0 12px 32px rgba(10,75,55,.18);
}

.dashboard-profile-card strong {
  color: #0a4b37;
  font-size: 1rem;
  font-weight: 900;
}

.dashboard-profile-card span {
  color: rgba(18,58,44,.66);
  font-size: .82rem;
  overflow-wrap: anywhere;
}

.dashboard-profile-card em {
  color: #9b7418;
  font-style: normal;
  font-weight: 900;
  font-size: .76rem;
}

.dashboard-menu {
  max-height: calc(100vh - 290px);
  overflow: auto;
  padding: 12px;
}

.dashboard-menu strong {
  display: block;
  padding: 12px 10px 6px;
  color: #9b7418;
  font-size: .66rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.dashboard-menu a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 9px 10px;
  border-radius: 12px;
  color: #0a4b37;
  font-size: .82rem;
  font-weight: 850;
}

.dashboard-menu a:hover,
.dashboard-menu a.active {
  background: rgba(15,106,77,.09);
  color: #0f6a4d;
}

.dashboard-menu .icon-svg {
  width: 18px !important;
  height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  flex-basis: 18px;
}

.dashboard-content {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.dashboard-hero-compact {
  padding: 24px;
  border-radius: 20px;
}

.dashboard-hero-compact h1 {
  font-size: clamp(1.55rem, 2.6vw, 2.25rem);
  font-weight: 700;
  margin: 12px 0 8px;
}

.dashboard-hero-compact p {
  font-size: .94rem;
  line-height: 1.58;
}

.dashboard-hero-compact .dashboard-ref-card {
  min-height: 150px;
  padding: 20px;
  border-radius: 18px;
}

.dashboard-ref-card strong {
  font-size: 1.55rem;
  font-weight: 700;
}

.dashboard-metrics {
  gap: 12px;
}

.dashboard-metrics .metric-card {
  padding: 18px;
  border-radius: 16px;
}

.dashboard-metrics .metric-card strong {
  font-size: clamp(1.05rem, 1.7vw, 1.45rem);
  font-weight: 700;
  line-height: 1.2;
}

.dashboard-metrics .metric-card span,
.dashboard-section-title span {
  font-size: .64rem;
}

.compact-modules {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.compact-modules .module-card {
  min-height: 122px;
  gap: 8px;
  padding: 16px;
  border-radius: 16px;
}

.compact-modules .module-card > span {
  width: 36px;
  height: 36px;
  border-radius: 12px;
}

.compact-modules .module-card strong {
  font-size: .88rem;
}

.compact-modules .module-card em {
  font-size: .75rem;
  line-height: 1.35;
}

.dashboard-chart-panel {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.dashboard-bar-chart {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
  min-height: 210px;
}

.chart-item {
  display: grid;
  gap: 8px;
  justify-items: center;
  min-width: 0;
}

.chart-track {
  width: min(52px, 100%);
  height: 132px;
  display: flex;
  align-items: end;
  padding: 5px;
  border-radius: 999px;
  background: rgba(15,106,77,.08);
  border: 1px solid rgba(212,175,55,.24);
}

.chart-track span {
  width: 100%;
  min-height: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f3d37a, #d4af37, #0f6a4d);
  box-shadow: 0 0 24px rgba(212,175,55,.22);
}

.chart-item strong {
  color: #0a4b37;
  font-size: .78rem;
  text-align: center;
  overflow-wrap: anywhere;
}

.chart-item em {
  color: rgba(18,58,44,.66);
  font-size: .68rem;
  font-style: normal;
  font-weight: 900;
  text-align: center;
}

.profile-edit-head {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(212,175,55,.26);
  border-radius: 18px;
  background: rgba(255,253,248,.58);
}

.profile-edit-head img {
  width: 94px;
  height: 94px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #d4af37;
}

.profile-edit-head strong {
  display: block;
  color: #0a4b37;
  font-weight: 900;
}

.profile-edit-head span {
  display: block;
  margin: 4px 0 10px;
  color: rgba(18,58,44,.68);
}

.theme-dark .dashboard-profile-card,
.theme-dark .dashboard-menu,
.theme-dark .profile-edit-head {
  background: linear-gradient(145deg, rgba(10,75,55,.92), rgba(6,24,18,.86));
  border-color: rgba(243,211,122,.36);
}

.theme-dark .dashboard-profile-card strong,
.theme-dark .dashboard-menu a,
.theme-dark .chart-item strong,
.theme-dark .profile-edit-head strong {
  color: #f3d37a;
}

.theme-dark .dashboard-profile-card span,
.theme-dark .chart-item em,
.theme-dark .profile-edit-head span {
  color: rgba(255,253,248,.76);
}

.theme-dark .dashboard-menu a:hover,
.theme-dark .dashboard-menu a.active {
  background: rgba(243,211,122,.12);
  color: #fffdf8;
}

@media (max-width: 1180px) {
  .compact-modules {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .theme-toggle {
    margin-left: auto;
  }

  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-menu-panel {
    position: static;
  }

  .dashboard-menu {
    max-height: none;
  }
}

@media (max-width: 640px) {
  .compact-modules,
  .dashboard-bar-chart {
    grid-template-columns: 1fr 1fr;
  }

  .profile-edit-head {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}

/* Royal Success menu-only dashboard upgrade */
.site-header .brand,
.footer-brand,
.admin-brand {
  gap: 12px;
}

.site-header .brand > span,
.footer-brand > span {
  display: none;
}

.site-header .brand-logo,
.home-body .brand-logo,
.footer-brand .brand-logo {
  width: min(188px, 46vw);
  height: 64px;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
}

.admin-brand {
  margin-bottom: 18px;
  padding: 6px 0 16px;
  border-bottom: 1px solid rgba(243,211,122,.2);
}

.admin-brand > span {
  display: none;
}

.admin-brand-logo {
  width: 210px !important;
  height: 82px !important;
  max-width: 100%;
  object-fit: contain;
  border-radius: 0 !important;
}

.royal-dashboard-layout {
  grid-template-columns: 292px minmax(0, 1fr);
  gap: 24px;
}

.royal-earning-phone {
  position: relative;
  overflow: hidden;
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid rgba(243,211,122,.62);
  border-radius: 38px;
  background:
    radial-gradient(circle at 14% 4%, rgba(243,211,122,.18), transparent 28rem),
    radial-gradient(circle at 90% 14%, rgba(15,106,77,.36), transparent 28rem),
    linear-gradient(145deg, #00120b 0%, #022818 52%, #03120d 100%);
  color: #f3d37a;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.04),
    0 28px 88px rgba(0,18,11,.36),
    0 0 46px rgba(212,175,55,.22);
}

.royal-earning-phone::before,
.royal-earning-phone::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.royal-earning-phone::before {
  inset: -28% -8% auto auto;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243,211,122,.2), transparent 66%);
  filter: blur(2px);
}

.royal-earning-phone::after {
  inset: auto -18% -22% 10%;
  height: 210px;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,.18), transparent);
  transform: rotate(-7deg);
}

.royal-phone-top,
.royal-earning-head,
.royal-line-chart,
.royal-earning-cards {
  position: relative;
  z-index: 1;
}

.royal-phone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.royal-phone-logo {
  width: min(260px, 52vw);
  height: 86px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(243,211,122,.28));
}

.royal-circle-btn {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(243,211,122,.74);
  background: rgba(0,0,0,.22);
  color: #f3d37a;
  font-size: 2.4rem;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), 0 0 24px rgba(212,175,55,.22);
}

.royal-earning-head {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(22px, 5vw, 62px);
  align-items: center;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(243,211,122,.34);
}

.royal-profile-block {
  display: grid;
  gap: 8px;
}

.royal-profile-block img {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #f3d37a;
  background: #03120d;
  box-shadow: 0 0 0 8px rgba(212,175,55,.12), 0 0 34px rgba(243,211,122,.24);
}

.royal-profile-block strong {
  color: #f3d37a;
  font-size: clamp(1.6rem, 3vw, 2.45rem);
  font-weight: 900;
  line-height: 1.05;
  text-shadow: 0 0 18px rgba(212,175,55,.28);
}

.royal-profile-block span,
.royal-profile-block em {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #fff5cf;
  font-style: normal;
  font-weight: 800;
}

.royal-profile-block span i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #5cd24d;
  box-shadow: 0 0 14px rgba(92,210,77,.7);
}

.royal-profile-block em {
  color: rgba(255,245,207,.72);
  font-size: .88rem;
}

.royal-today {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.royal-today span {
  color: #f3d37a;
  font-size: clamp(1.7rem, 4vw, 3.3rem);
  font-weight: 900;
  text-shadow: 0 0 18px rgba(212,175,55,.28);
}

.royal-today em {
  color: #fff5cf;
  font-size: clamp(1rem, 2vw, 1.45rem);
  font-style: normal;
  font-weight: 900;
}

.royal-today strong {
  display: flex;
  align-items: baseline;
  gap: 14px;
  color: #f3d37a;
  font-size: clamp(3.4rem, 9vw, 6.4rem);
  font-weight: 950;
  line-height: .92;
  letter-spacing: 0;
  text-shadow: 0 0 26px rgba(212,175,55,.4);
}

.royal-today small {
  color: #fff5cf;
  font-size: clamp(1rem, 2.2vw, 1.8rem);
  font-weight: 900;
}

.royal-line-chart {
  margin-top: 22px;
  min-width: 0;
}

.royal-line-chart svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 220px;
}

.chart-axis,
.chart-guide {
  stroke: rgba(243,211,122,.36);
  stroke-width: 1;
}

.chart-guide {
  stroke-dasharray: 4 5;
}

.chart-area {
  fill: url(#royalChartArea);
}

.chart-line {
  fill: none;
  stroke: #f3d37a;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-dot {
  fill: #fff5cf;
  stroke: #d4af37;
  stroke-width: 4;
  filter: drop-shadow(0 0 9px rgba(243,211,122,.92));
}

.chart-label {
  fill: #f3d37a;
  font-size: 20px;
  font-weight: 800;
}

.chart-tag {
  fill: #f3d37a;
  stroke: #8a6412;
  stroke-width: 1;
  filter: drop-shadow(0 0 12px rgba(243,211,122,.55));
}

.chart-tag-text {
  fill: #062117;
  font-size: 18px;
  font-weight: 950;
}

.royal-earning-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.royal-earning-cards article {
  min-height: 132px;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  grid-template-areas: "icon label" "icon value";
  align-items: center;
  column-gap: 18px;
  padding: 18px;
  border: 1px solid rgba(243,211,122,.42);
  border-radius: 22px;
  background: rgba(0,20,12,.42);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03), 0 0 28px rgba(212,175,55,.1);
}

.royal-earning-cards .icon-svg {
  grid-area: icon;
  width: 56px !important;
  height: 56px !important;
  max-width: 56px !important;
  max-height: 56px !important;
  padding: 14px;
  border: 1px solid rgba(243,211,122,.64);
  border-radius: 50%;
  color: #f3d37a;
  box-shadow: 0 0 22px rgba(212,175,55,.2);
}

.royal-earning-cards span {
  grid-area: label;
  color: #fff5cf;
  font-size: clamp(.86rem, 1.8vw, 1.2rem);
  font-weight: 900;
}

.royal-earning-cards strong {
  grid-area: value;
  color: #5fd24f;
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  font-weight: 950;
  line-height: 1;
  overflow-wrap: anywhere;
  text-shadow: 0 0 14px rgba(95,210,79,.35);
}

.dashboard-module-heading {
  padding: 22px;
  border-radius: 20px;
}

.dashboard-module-heading span {
  color: #9b7418;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.dashboard-module-heading h1 {
  margin: 6px 0;
  color: #0a4b37;
  font-size: clamp(1.35rem, 2.4vw, 2.05rem);
  font-weight: 900;
}

.dashboard-module-heading p {
  margin: 0;
  color: rgba(18,58,44,.68);
}

.admin-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-history-grid {
  margin-top: 0;
}

.theme-dark .site-header,
.theme-dark .admin-top,
.theme-dark .dashboard-module-heading,
.theme-dark .admin-history-panel,
.theme-dark .admin-hero {
  background: linear-gradient(145deg, rgba(2,40,24,.96), rgba(0,13,8,.94));
  border-color: rgba(243,211,122,.42);
  color: #fff5cf;
}

.admin-body.theme-dark,
.theme-dark.admin-body {
  background:
    radial-gradient(circle at 92% 2%, rgba(212,175,55,.14), transparent 32rem),
    linear-gradient(145deg, #00110a, #041d13 58%, #000805);
  color: #fff5cf;
}

.theme-dark .admin-sidebar {
  background: linear-gradient(180deg, #00140c, #052919);
  border-color: rgba(243,211,122,.28);
}

.theme-dark .admin-sidebar a:not(.brand) {
  color: rgba(255,245,207,.82);
}

.theme-dark .admin-sidebar a:not(.brand):hover {
  color: #f3d37a;
  background: rgba(243,211,122,.12);
}

.theme-dark .dashboard-module-heading h1,
.theme-dark .dashboard-module-heading span,
.theme-dark .admin-top h1,
.theme-dark .admin-hero h2,
.theme-dark .admin-history-panel h2 {
  color: #f3d37a;
}

.theme-dark .dashboard-module-heading p,
.theme-dark .admin-history-panel td,
.theme-dark .admin-history-panel p,
.theme-dark .admin-hero em,
.theme-dark .admin-hero span {
  color: rgba(255,245,207,.78);
}

.theme-dark .metric-card,
.theme-dark .program-card,
.theme-dark .glass-form,
.theme-dark .panel {
  background: linear-gradient(145deg, rgba(2,40,24,.92), rgba(0,13,8,.9));
}

@media (max-width: 1180px) {
  .admin-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .royal-dashboard-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-menu {
    max-height: 340px;
  }

  .admin-brand-logo {
    width: 180px !important;
    height: 70px !important;
  }
}

@media (max-width: 720px) {
  .royal-earning-phone {
    border-radius: 30px;
    padding: 18px;
  }

  .royal-phone-logo {
    width: min(210px, 48vw);
    height: 68px;
  }

  .royal-circle-btn {
    width: 48px;
    height: 48px;
    font-size: 2rem;
  }

  .royal-earning-head {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .royal-profile-block {
    grid-template-columns: 118px minmax(0, 1fr);
    grid-template-areas: "photo name" "photo online" "photo plan";
    align-items: center;
  }

  .royal-profile-block img {
    grid-area: photo;
    width: 112px;
    height: 112px;
  }

  .royal-profile-block strong {
    grid-area: name;
  }

  .royal-profile-block span {
    grid-area: online;
  }

  .royal-profile-block em {
    grid-area: plan;
  }

  .royal-today strong {
    gap: 10px;
  }

  .royal-earning-cards {
    gap: 12px;
  }

  .royal-earning-cards article {
    min-height: 118px;
    grid-template-columns: 54px minmax(0, 1fr);
    column-gap: 12px;
    padding: 14px;
    border-radius: 18px;
  }

  .royal-earning-cards .icon-svg {
    width: 42px !important;
    height: 42px !important;
    max-width: 42px !important;
    max-height: 42px !important;
    padding: 10px;
  }
}

@media (max-width: 520px) {
  .user-dashboard {
    padding-left: 10px;
    padding-right: 10px;
  }

  .site-header .brand-logo,
  .home-body .brand-logo {
    width: min(154px, 48vw);
    height: 54px;
  }

  .royal-earning-phone {
    border-radius: 24px;
    padding: 14px;
  }

  .royal-phone-logo {
    width: min(170px, 46vw);
    height: 58px;
  }

  .royal-circle-btn {
    width: 42px;
    height: 42px;
  }

  .royal-profile-block {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .royal-profile-block img {
    width: 86px;
    height: 86px;
    border-width: 3px;
  }

  .royal-earning-cards {
    grid-template-columns: 1fr;
  }

  .royal-line-chart svg {
    min-height: 190px;
  }

  .chart-label {
    font-size: 18px;
  }

  .admin-metrics {
    grid-template-columns: 1fr;
  }
}

/* Drawer navigation and theme controls */
.theme-toggle {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid rgba(243,211,122,.42);
  border-radius: 999px;
  background: rgba(0,28,18,.7);
  color: #f3d37a;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0,0,0,.18), 0 0 20px rgba(212,175,55,.12);
}

body.theme-dark,
.home-body.theme-dark,
.admin-body.theme-dark {
  background:
    radial-gradient(circle at 12% 0%, rgba(212,175,55,.16), transparent 28rem),
    radial-gradient(circle at 92% 10%, rgba(15,106,77,.24), transparent 30rem),
    linear-gradient(180deg, #00110a 0%, #052719 52%, #000805 100%);
  color: #fff5cf;
}

body.theme-light,
.home-body.theme-light,
.admin-body.theme-light {
  background:
    radial-gradient(circle at 14% 0%, rgba(212,175,55,.18), transparent 28rem),
    radial-gradient(circle at 90% 10%, rgba(15,106,77,.14), transparent 30rem),
    linear-gradient(180deg, #fffdf8 0%, #f9f6ef 58%, #fff8e7 100%);
  color: #123a2c;
}

.theme-light .site-header,
.theme-light .admin-top,
.theme-light .panel,
.theme-light .dashboard-module-heading,
.theme-light .admin-history-panel,
.theme-light .metric-card,
.theme-light .program-card,
.theme-light .glass-form {
  background: linear-gradient(145deg, rgba(255,253,248,.94), rgba(255,248,231,.84));
  border-color: rgba(212,175,55,.34);
  color: #123a2c;
}

.theme-light h1,
.theme-light h2,
.theme-light h3,
.theme-light .admin-top h1,
.theme-light .dashboard-module-heading h1,
.theme-light .metric-card strong,
.theme-light .panel h2 {
  color: #0a4b37;
}

.theme-light p,
.theme-light td,
.theme-light label,
.theme-light .dashboard-module-heading p,
.theme-light .panel p,
.theme-light .admin-history-panel td {
  color: rgba(18,58,44,.74);
}

.theme-light input,
.theme-light select,
.theme-light textarea,
.theme-light .theme-toggle {
  background: rgba(255,253,248,.84);
  color: #0a4b37;
  border-color: rgba(212,175,55,.36);
}

.theme-light .dashboard-menu-panel,
.theme-light .admin-sidebar {
  background: linear-gradient(160deg, rgba(255,253,248,.98), rgba(255,248,231,.96));
  color: #0a4b37;
  border-color: rgba(212,175,55,.42);
  box-shadow: 0 26px 80px rgba(10,75,55,.18), 0 0 28px rgba(212,175,55,.12);
}

.theme-light .dashboard-menu-panel .dashboard-profile-card,
.theme-light .dashboard-menu-panel .dashboard-menu {
  background: rgba(255,253,248,.72);
  border-color: rgba(212,175,55,.32);
}

.theme-light .dashboard-profile-card strong,
.theme-light .dashboard-menu a,
.theme-light .admin-sidebar a:not(.brand) {
  color: #0a4b37;
}

.theme-light .dashboard-profile-card span,
.theme-light .dashboard-profile-card em {
  color: rgba(18,58,44,.68);
}

.theme-light .admin-sidebar a:not(.brand):hover,
.theme-light .dashboard-menu a:hover,
.theme-light .dashboard-menu a.active {
  border-color: rgba(212,175,55,.35);
  background: rgba(15,106,77,.08);
  color: #0f6a4d;
}

.theme-light .drawer-backdrop {
  background: rgba(6,25,18,.38);
}

.panel-drawer-toggle {
  position: fixed;
  left: 18px;
  z-index: 120;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  gap: 5px;
  padding: 13px;
  border: 1px solid rgba(243,211,122,.66);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(4,45,28,.96), rgba(0,12,8,.94));
  color: #f3d37a;
  box-shadow: 0 18px 44px rgba(0,0,0,.36), 0 0 28px rgba(212,175,55,.22);
  cursor: pointer;
}

.theme-light .panel-drawer-toggle {
  background: linear-gradient(145deg, rgba(255,253,248,.96), rgba(255,248,231,.92));
  color: #0a4b37;
  box-shadow: 0 18px 44px rgba(10,75,55,.16), 0 0 22px rgba(212,175,55,.18);
}

.theme-light .panel-drawer-toggle span {
  background: #0a4b37;
  box-shadow: 0 0 10px rgba(212,175,55,.35);
}

.panel-drawer-toggle span {
  width: 24px;
  height: 2px;
  display: block;
  border-radius: 999px;
  background: #f3d37a;
  box-shadow: 0 0 12px rgba(243,211,122,.45);
}

.dashboard-drawer-toggle {
  top: 94px;
}

.admin-drawer-toggle {
  top: 18px;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  border: 0;
  background: rgba(0,0,0,.62);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
  backdrop-filter: blur(3px);
}

.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.royal-dashboard-layout,
.dashboard-layout {
  grid-template-columns: minmax(0, 1fr) !important;
}

.dashboard-menu-panel {
  position: fixed !important;
  top: 84px;
  bottom: 18px;
  left: 18px;
  z-index: 110;
  width: min(370px, calc(100vw - 36px));
  max-height: calc(100vh - 102px);
  display: grid;
  gap: 14px;
  padding: 12px;
  border: 1px solid rgba(243,211,122,.42);
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(0,30,18,.98), rgba(4,54,34,.98));
  box-shadow: 0 26px 90px rgba(0,0,0,.48), 0 0 38px rgba(212,175,55,.2);
  overflow-y: auto;
  transform: translateX(calc(-100% - 34px));
  transition: transform .25s ease;
}

.dashboard-menu-panel.open {
  transform: translateX(0);
}

.dashboard-menu-panel .dashboard-profile-card,
.dashboard-menu-panel .dashboard-menu {
  background: rgba(0,12,8,.42);
  border-color: rgba(243,211,122,.34);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
}

.dashboard-menu-panel .dashboard-menu {
  max-height: none;
}

.dashboard-content {
  width: 100%;
}

.user-dashboard {
  max-width: 1180px;
}

.admin-body {
  display: block !important;
  min-height: 100vh;
}

.admin-sidebar {
  position: fixed !important;
  top: 14px;
  bottom: 14px;
  left: 14px;
  z-index: 110;
  width: min(370px, calc(100vw - 28px));
  height: auto !important;
  padding: 20px;
  border: 1px solid rgba(243,211,122,.42);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(0,30,18,.98), rgba(5,42,27,.98));
  box-shadow: 0 26px 90px rgba(0,0,0,.48), 0 0 38px rgba(212,175,55,.2);
  overflow-y: auto;
  transform: translateX(calc(-100% - 32px));
  transition: transform .25s ease;
}

.admin-sidebar.open {
  transform: translateX(0);
}

.admin-main {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 24px 0 44px !important;
}

.admin-top {
  padding-left: 76px !important;
}

.admin-sidebar a:not(.brand),
.dashboard-menu a {
  border: 1px solid transparent;
}

.admin-sidebar a:not(.brand):hover,
.dashboard-menu a:hover,
.dashboard-menu a.active {
  border-color: rgba(243,211,122,.28);
  background: rgba(243,211,122,.12);
  color: #fff5cf;
}

body.dashboard-menu-open,
body.admin-menu-open {
  overflow: hidden;
}

@media (min-width: 981px) {
  .user-dashboard {
    max-width: 1320px;
  }

  .royal-earning-phone {
    max-width: none;
    padding: 28px 34px 30px;
    border-radius: 30px;
  }

  .royal-phone-top {
    margin-bottom: 8px;
  }

  .royal-phone-logo {
    width: min(340px, 28vw);
    height: 104px;
  }

  .royal-earning-head {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 34px;
    padding-bottom: 18px;
  }

  .royal-profile-block img {
    width: 138px;
    height: 138px;
  }

  .royal-profile-block strong {
    font-size: 2rem;
  }

  .royal-today {
    align-content: center;
  }

  .royal-today span {
    font-size: clamp(2rem, 3vw, 3rem);
  }

  .royal-today strong {
    font-size: clamp(4.2rem, 7vw, 5.7rem);
  }

  .royal-line-chart {
    margin-top: 12px;
  }

  .royal-line-chart svg {
    min-height: 280px;
    max-height: 330px;
  }

  .royal-earning-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }

  .royal-earning-cards article {
    min-height: 118px;
    grid-template-columns: 56px minmax(0, 1fr);
    column-gap: 12px;
    padding: 15px;
  }

  .royal-earning-cards .icon-svg {
    width: 42px !important;
    height: 42px !important;
    max-width: 42px !important;
    max-height: 42px !important;
    padding: 10px;
  }

  .royal-earning-cards span {
    font-size: .9rem;
  }

  .royal-earning-cards strong {
    font-size: clamp(1.45rem, 2vw, 2rem);
  }
}

@media (max-width: 640px) {
  .dashboard-drawer-toggle {
    top: 82px;
    left: 12px;
  }

  .admin-drawer-toggle {
    top: 14px;
    left: 12px;
  }

  .panel-drawer-toggle {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .dashboard-menu-panel {
    top: 72px;
    left: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
    max-height: calc(100vh - 82px);
  }

  .admin-sidebar {
    top: 10px;
    left: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
  }

  .admin-main {
    width: calc(100% - 20px);
    padding-top: 16px !important;
  }

  .admin-top {
    padding-left: 64px !important;
  }
}

/* Final contrast, logo and dashboard readability fixes */
.site-header {
  background: rgba(0,18,11,.94);
  border-bottom-color: rgba(243,211,122,.34);
}

.site-header .brand {
  padding: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.site-header .brand-logo,
.home-body .brand-logo,
.footer-brand .brand-logo,
.admin-brand-logo,
.royal-phone-logo {
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.site-header .brand-logo,
.home-body .brand-logo {
  width: min(220px, 42vw);
  height: 66px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(243,211,122,.22));
}

.theme-dark .main-nav a,
.theme-dark .home-body .main-nav a {
  color: #f3d37a !important;
  text-shadow: 0 0 12px rgba(212,175,55,.22);
}

.theme-dark .main-nav a:hover,
.theme-dark .home-body .main-nav a:hover {
  color: #fff5cf !important;
}

.theme-dark .program-card h3,
.theme-dark .person-card h3,
.theme-dark .instructor-card h3,
.theme-dark .testimonial-card h3,
.theme-dark .media-card h3,
.theme-dark .ecosystem-column h3,
.theme-dark .gallery-grid figcaption {
  color: #f3d37a !important;
}

.theme-dark .program-card p,
.theme-dark .person-card p,
.theme-dark .instructor-card span,
.theme-dark .testimonial-card p,
.theme-dark .media-card p,
.theme-dark .ecosystem-column p {
  color: rgba(255,245,207,.82) !important;
}

.kyc-alert-popup {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(118,20,20,.95), rgba(72,8,8,.92)) !important;
  color: #fff7ef !important;
  box-shadow: 0 20px 54px rgba(80,0,0,.22), 0 0 24px rgba(255,80,80,.16);
}

.kyc-alert-popup strong,
.kyc-alert-popup span {
  display: block;
  color: #fff7ef !important;
}

.kyc-alert-popup span {
  margin-top: 3px;
  font-weight: 700;
  opacity: .9;
}

.kyc-form-grid label {
  min-width: 0;
}

.theme-light .royal-earning-phone {
  background:
    radial-gradient(circle at 12% 2%, rgba(243,211,122,.26), transparent 26rem),
    linear-gradient(145deg, #fffdf8, #f9f6ef 58%, #fff3d2);
  color: #0a4b37;
  border-color: rgba(212,175,55,.48);
  box-shadow: 0 30px 90px rgba(10,75,55,.13), 0 0 28px rgba(212,175,55,.12);
}

.theme-light .royal-profile-block strong,
.theme-light .royal-today span,
.theme-light .royal-today em,
.theme-light .royal-today strong,
.theme-light .royal-today small {
  color: #0a4b37;
  text-shadow: none;
}

.theme-light .royal-profile-block span,
.theme-light .royal-profile-block em {
  color: rgba(18,58,44,.78);
}

.theme-light .royal-earning-head {
  border-bottom-color: rgba(10,75,55,.18);
}

.theme-light .royal-circle-btn {
  background: rgba(15,106,77,.08);
  color: #0a4b37;
  border-color: rgba(212,175,55,.58);
}

.theme-light .royal-earning-cards article {
  background: linear-gradient(145deg, #0a4b37, #052d20);
  border-color: rgba(212,175,55,.45);
}

.theme-light .royal-earning-cards span {
  color: #fff5cf;
}

.theme-light .chart-label,
.theme-light .chart-tag-text {
  fill: #0a4b37;
}

.theme-light .chart-axis,
.theme-light .chart-guide {
  stroke: rgba(10,75,55,.28);
}

.admin-kyc-settings .toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(212,175,55,.32);
  border-radius: 14px;
  background: rgba(15,106,77,.08);
  color: #0a4b37;
  font-weight: 900;
}

.theme-dark .admin-kyc-settings .toggle-row {
  background: rgba(243,211,122,.12);
  color: #fff5cf;
}

.admin-kyc-list td {
  vertical-align: top;
}

.kyc-doc-links {
  display: grid;
  gap: 6px;
  min-width: 150px;
}

.kyc-doc-links a {
  width: max-content;
  max-width: 100%;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(15,106,77,.1);
  color: #0a4b37;
  font-weight: 800;
}

.theme-dark .kyc-doc-links a {
  background: rgba(243,211,122,.14);
  color: #f3d37a;
}

.theme-dark .panel,
.theme-dark .metric-card,
.theme-dark .program-card,
.theme-dark .glass-form,
.theme-dark .admin-history-panel,
.theme-dark .dashboard-module-heading {
  color: #fff5cf;
}

.theme-dark .muted,
.theme-dark td,
.theme-dark label,
.theme-dark .table-wrap {
  color: rgba(255,245,207,.82);
}

.theme-light .panel,
.theme-light .metric-card,
.theme-light .program-card,
.theme-light .glass-form,
.theme-light .admin-history-panel,
.theme-light .dashboard-module-heading {
  color: #123a2c;
}

.theme-light .muted,
.theme-light td,
.theme-light label,
.theme-light .table-wrap {
  color: rgba(18,58,44,.78);
}

@media (min-width: 981px) {
  .royal-earning-phone {
    max-width: 1180px;
  }

  .royal-line-chart svg {
    height: 238px;
    min-height: 0;
    max-height: 238px;
  }

  .royal-earning-cards {
    margin-top: 16px;
  }
}

/* Premium readability and leaderboard finish */
.home-body .leadership-section .section-title {
  color: #f3d37a;
  text-shadow: 0 0 18px rgba(212,175,55,.2);
  font-weight: 700;
}

.home-body .leadership-section .section-desc {
  color: rgba(255,253,248,.86);
}

.home-body .leadership-section .trust-list span {
  color: rgba(255,245,207,.9);
}

.home-body .leadership-section .trust-list .icon-svg {
  color: #f3d37a;
  filter: drop-shadow(0 0 10px rgba(212,175,55,.35));
}

.theme-light.home-body .leadership-section .section-title,
.theme-light .home-body .leadership-section .section-title {
  color: #0a4b37;
  text-shadow: none;
}

.theme-light.home-body .leadership-section .section-desc,
.theme-light .home-body .leadership-section .section-desc {
  color: rgba(18,58,44,.78);
}

.theme-light.home-body .leadership-section .trust-list span,
.theme-light .home-body .leadership-section .trust-list span {
  color: #0a4b37;
}

.home-body .leadership-cards .person-card.large {
  position: relative;
  background:
    radial-gradient(circle at 50% 0%, rgba(243,211,122,.18), transparent 16rem),
    linear-gradient(145deg, rgba(4,37,26,.98), rgba(0,16,10,.96)) !important;
  color: #fff5cf;
  border-color: rgba(243,211,122,.55);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 30px 82px rgba(0,0,0,.28), 0 0 42px rgba(212,175,55,.13);
}

.home-body .leadership-cards .person-card.large div {
  background:
    linear-gradient(180deg, rgba(4,37,26,.96), rgba(0,17,10,.98)),
    radial-gradient(circle at 20% 0%, rgba(243,211,122,.1), transparent 12rem);
}

.home-body .leadership-cards .person-card.large span {
  color: #f3d37a !important;
  text-shadow: 0 0 12px rgba(212,175,55,.28);
}

.home-body .leadership-cards .person-card.large h3 {
  color: #fff5cf !important;
  font-weight: 700;
}

.home-body .leadership-cards .person-card.large p {
  color: rgba(255,253,248,.86) !important;
  font-weight: 600;
}

.premium-leaderboard {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid rgba(243,211,122,.34);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 12%, rgba(126,69,255,.12), transparent 20rem),
    radial-gradient(circle at 18% 12%, rgba(212,175,55,.2), transparent 18rem),
    linear-gradient(145deg, #08090b, #101012 48%, #062b1d);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 0 34px 90px rgba(0,0,0,.26), 0 0 38px rgba(212,175,55,.13);
}

.premium-leaderboard::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, transparent, rgba(243,211,122,.12), transparent),
    radial-gradient(circle at 50% 28%, rgba(212,175,55,.18), transparent 18rem);
  opacity: .72;
}

.leaderboard-hero-title {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
  margin-bottom: 10px;
}

.leaderboard-hero-title span {
  color: #f3d37a;
  font-size: .72rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  font-weight: 900;
}

.leaderboard-hero-title h2 {
  margin: 0;
  color: #fffdf8;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
  font-weight: 900;
  text-shadow: 0 0 26px rgba(243,211,122,.18);
}

.leaderboard-hero-title p {
  margin: 0;
  color: rgba(255,253,248,.72);
  font-weight: 700;
}

.leaderboard-podium {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.08fr) minmax(0, .86fr);
  gap: clamp(14px, 2.4vw, 28px);
  align-items: end;
  padding: clamp(18px, 3vw, 34px) 0 12px;
}

.podium-card {
  position: relative;
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 9px;
  padding: 18px 14px 20px;
  border: 1px solid rgba(243,211,122,.28);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.035));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05), 0 22px 54px rgba(0,0,0,.22);
}

.podium-card::after {
  content: "";
  position: absolute;
  left: 20%;
  right: 20%;
  bottom: -11px;
  height: 16px;
  border-radius: 50%;
  background: rgba(243,211,122,.28);
  filter: blur(14px);
}

.podium-rank-1 {
  grid-column: 2;
  padding-top: 28px;
  transform: translateY(-10px);
  background:
    radial-gradient(circle at 50% 4%, rgba(243,211,122,.32), transparent 9rem),
    linear-gradient(180deg, rgba(75,45,9,.86), rgba(6,35,24,.82));
  border-color: rgba(243,211,122,.62);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 28px 72px rgba(212,175,55,.18), 0 0 38px rgba(243,211,122,.15);
}

.podium-rank-2 {
  grid-column: 1;
  background:
    radial-gradient(circle at 50% 5%, rgba(229,235,242,.24), transparent 8rem),
    linear-gradient(180deg, rgba(61,64,69,.72), rgba(6,24,18,.8));
}

.podium-rank-3 {
  grid-column: 3;
  background:
    radial-gradient(circle at 50% 5%, rgba(202,95,22,.22), transparent 8rem),
    linear-gradient(180deg, rgba(75,35,10,.72), rgba(6,24,18,.8));
}

.podium-crown {
  height: 34px;
  color: #f3d37a;
  filter: drop-shadow(0 0 12px rgba(243,211,122,.55));
}

.podium-rank-2 .podium-crown {
  color: #dfe6ef;
}

.podium-rank-3 .podium-crown {
  color: #e98730;
}

.podium-crown .icon-svg {
  width: 34px !important;
  height: 34px !important;
  max-width: 34px !important;
  max-height: 34px !important;
}

.podium-avatar {
  position: relative;
  width: clamp(90px, 12vw, 132px);
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 5px;
  background: linear-gradient(145deg, #f3d37a, #b27a16 48%, #fff3b0);
  box-shadow: 0 0 0 7px rgba(243,211,122,.09), 0 18px 42px rgba(0,0,0,.34), 0 0 28px rgba(243,211,122,.22);
}

.podium-rank-1 .podium-avatar {
  width: clamp(112px, 14vw, 156px);
}

.podium-avatar img,
.podium-avatar .leaderboard-initials {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
  border: 3px solid rgba(3,18,12,.88);
}

.podium-avatar img {
  object-fit: cover;
}

.leaderboard-initials {
  display: grid !important;
  place-items: center;
  background:
    radial-gradient(circle at 35% 25%, rgba(255,255,255,.26), transparent 26%),
    linear-gradient(145deg, #0f6a4d, #03160f 58%, #0a4b37);
  color: #f3d37a;
  font-style: normal;
  font-weight: 1000;
  letter-spacing: .02em;
  text-shadow: 0 0 12px rgba(212,175,55,.28);
}

.podium-avatar span {
  position: absolute;
  left: 50%;
  bottom: -12px;
  transform: translateX(-50%);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, #f3d37a, #b27a16);
  color: #07150f;
  font-weight: 1000;
  box-shadow: 0 12px 24px rgba(0,0,0,.26);
}

.podium-card strong,
.podium-card em,
.podium-card p {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: center;
}

.podium-card strong {
  margin-top: 12px;
  color: #fffdf8 !important;
  font-size: clamp(1rem, 1.7vw, 1.35rem);
  font-weight: 900;
}

.podium-card em {
  color: rgba(255,245,207,.72);
  font-style: normal;
  font-size: .76rem;
  font-weight: 800;
}

.podium-card p {
  margin: 0;
  padding: 9px 14px;
  border: 1px solid rgba(243,211,122,.34);
  border-radius: 14px;
  background: rgba(0,0,0,.24);
  color: #4ee078 !important;
  font-weight: 1000;
  box-shadow: 0 0 24px rgba(78,224,120,.14);
}

.leaderboard-list {
  display: grid;
  gap: 13px;
  margin-top: clamp(14px, 2.5vw, 28px);
}

.leader-list-row {
  display: grid;
  grid-template-columns: 44px 58px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 13px 16px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  background: rgba(255,255,255,.045);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03), 0 16px 36px rgba(0,0,0,.16);
}

.leader-list-rank {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(126,69,255,.55);
  border-radius: 50%;
  color: #f3d37a;
  font-weight: 1000;
}

.leader-list-avatar {
  position: relative;
  width: 54px;
  height: 54px;
  display: block;
  border-radius: 50%;
}

.leader-list-avatar img,
.leader-list-avatar .leaderboard-initials {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid rgba(126,69,255,.58);
}

.leader-list-avatar img {
  display: block;
  object-fit: cover;
}

.podium-avatar img + .leaderboard-initials,
.leader-list-avatar img + .leaderboard-initials {
  display: none !important;
  position: absolute;
}

.podium-avatar img.is-broken,
.leader-list-avatar img.is-broken {
  display: none !important;
}

.podium-avatar img.is-broken + .leaderboard-initials {
  inset: 5px;
  width: auto;
  height: auto;
  display: grid !important;
}

.leader-list-avatar img.is-broken + .leaderboard-initials {
  inset: 0;
  width: 100%;
  height: 100%;
  display: grid !important;
}

.leader-list-row strong {
  min-width: 0;
  color: #fffdf8 !important;
  font-size: 1.02rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.leader-list-row em {
  color: #4ee078 !important;
  font-style: normal;
  font-weight: 1000;
  white-space: nowrap;
}

.leaderboard-history-panel {
  margin-top: 22px;
  border-color: rgba(243,211,122,.24);
  background:
    radial-gradient(circle at 0 0, rgba(243,211,122,.1), transparent 24rem),
    linear-gradient(145deg, rgba(4,37,26,.95), rgba(0,18,11,.96)) !important;
}

.leaderboard-history-panel h2 {
  color: #f3d37a !important;
  font-weight: 900;
}

.leaderboard-history-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.leader-history-row {
  display: grid;
  grid-template-columns: 42px 54px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 13px 15px;
  border: 1px solid rgba(243,211,122,.16);
  border-radius: 18px;
  background: rgba(255,255,255,.045);
}

.leader-history-row strong {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: #fffdf8 !important;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.leader-history-row small {
  color: rgba(255,245,207,.68);
  font-size: .74rem;
  font-weight: 800;
}

.leader-history-row em {
  color: #4ee078 !important;
  font-style: normal;
  font-weight: 1000;
  white-space: nowrap;
}

.theme-light .premium-leaderboard {
  background:
    radial-gradient(circle at 50% 12%, rgba(212,175,55,.25), transparent 20rem),
    linear-gradient(145deg, #fffdf8, #f9f6ef 46%, #fff3cf);
  border-color: rgba(15,106,77,.28);
  box-shadow: 0 30px 80px rgba(10,75,55,.13);
}

.theme-light .leaderboard-hero-title h2,
.theme-light .podium-card strong,
.theme-light .leader-list-row strong {
  color: #082f22 !important;
  text-shadow: none;
}

.theme-light .leaderboard-hero-title p,
.theme-light .podium-card em {
  color: rgba(8,47,34,.72);
}

.theme-light .podium-card,
.theme-light .leader-list-row {
  background: rgba(255,255,255,.7);
  border-color: rgba(212,175,55,.38);
}

@media (max-width: 760px) {
  .premium-leaderboard {
    margin-top: 28px;
    padding: 18px 8px 16px;
    border-radius: 22px;
  }

  .leaderboard-hero-title {
    padding: 0 8px 0 44px;
  }

  .leaderboard-hero-title h2 {
    font-size: clamp(1.45rem, 7vw, 1.85rem);
    white-space: nowrap;
  }

  .leaderboard-hero-title p {
    font-size: .9rem;
    line-height: 1.35;
  }

  .leaderboard-podium {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    align-items: stretch;
  }

  .podium-card {
    min-width: 0;
    padding: 10px 5px 13px;
    border-radius: 18px;
    gap: 7px;
  }

  .podium-crown {
    height: 24px;
  }

  .podium-crown .icon-svg {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
  }

  .podium-avatar {
    width: clamp(58px, 20vw, 76px);
    padding: 4px;
  }

  .podium-rank-1 .podium-avatar {
    width: clamp(68px, 23vw, 88px);
  }

  .podium-avatar span {
    width: 28px;
    height: 28px;
    bottom: -10px;
    border-radius: 10px;
    font-size: .82rem;
  }

  .podium-card strong {
    display: -webkit-box;
    margin-top: 9px;
    font-size: .76rem;
    line-height: 1.15;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .podium-card em {
    display: none;
  }

  .podium-card p {
    width: 100%;
    padding: 7px 5px;
    font-size: .72rem;
    white-space: nowrap;
  }

  .leader-list-row {
    grid-template-columns: 34px 46px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .leader-history-row {
    grid-template-columns: 32px 44px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .leader-list-avatar,
  .leader-list-avatar img,
  .leader-list-avatar .leaderboard-initials {
    width: 44px;
    height: 44px;
  }

  .leader-list-row strong {
    font-size: .92rem;
  }

  .leader-list-row em {
    grid-column: 3;
    justify-self: start;
    font-size: .88rem;
  }

  .leader-history-row em {
    grid-column: 3;
    justify-self: start;
    font-size: .88rem;
  }
}

@media (max-width: 420px) {
  .leaderboard-podium {
    gap: 5px;
  }

  .podium-card {
    border-radius: 16px;
  }

  .podium-card p {
    font-size: .68rem;
  }

  .leader-list-row {
    grid-template-columns: 32px 42px minmax(0, 1fr);
  }
}

/* RoyalSuccess July polish: darker luxury green, safer admin/user layouts, app showcase. */
:root {
  --royal-deep: #001f15;
  --royal-deeper: #000d08;
  --royal-panel: rgba(4, 42, 29, .88);
  --royal-gold-soft: #f3d37a;
}

.home-body.theme-dark,
.admin-body.theme-dark,
.dashboard-compact.theme-dark,
body.theme-dark {
  background:
    radial-gradient(circle at 16% 10%, rgba(212,175,55,.14), transparent 24rem),
    radial-gradient(circle at 86% 6%, rgba(15,106,77,.2), transparent 28rem),
    linear-gradient(135deg, var(--royal-deeper), var(--royal-deep) 48%, #00150d) !important;
  color: #fff8df;
}

.theme-light {
  background:
    radial-gradient(circle at 12% 10%, rgba(212,175,55,.22), transparent 22rem),
    linear-gradient(135deg, #fffdf8, #f5efe0 54%, #e9f0e5) !important;
  color: #0a2f22;
}

.theme-dark .panel,
.theme-dark .feature-card,
.theme-dark .program-card,
.theme-dark .testimonial-card,
.theme-dark .media-card,
.theme-dark .ecosystem-column,
.theme-dark .glass-form {
  background: linear-gradient(145deg, rgba(3, 38, 26, .92), rgba(0, 22, 14, .88)) !important;
  border-color: rgba(243,211,122,.26) !important;
  color: #fff8df !important;
}

.theme-dark .panel h1,
.theme-dark .panel h2,
.theme-dark .panel h3,
.theme-dark .program-card h3,
.theme-dark .feature-card h3,
.theme-dark .testimonial-card h3,
.theme-dark .section-title,
.theme-dark .dashboard-module-heading h1,
.theme-dark .admin-top h1 {
  color: #f8dc84 !important;
  font-weight: 900 !important;
}

.theme-dark .panel p,
.theme-dark .section-desc,
.theme-dark .program-card p,
.theme-dark .testimonial-card p,
.theme-dark .feature-card p,
.theme-dark td,
.theme-dark th,
.theme-dark label,
.theme-dark small {
  color: rgba(255,248,223,.86) !important;
}

.theme-light .panel,
.theme-light .feature-card,
.theme-light .program-card,
.theme-light .testimonial-card,
.theme-light .media-card,
.theme-light .ecosystem-column,
.theme-light .glass-form {
  background: rgba(255,253,248,.88) !important;
  color: #0a2f22 !important;
  border-color: rgba(15,106,77,.24) !important;
}

.theme-light .panel h1,
.theme-light .panel h2,
.theme-light .panel h3,
.theme-light .program-card h3,
.theme-light .feature-card h3,
.theme-light .testimonial-card h3,
.theme-light .section-title,
.theme-light .dashboard-module-heading h1,
.theme-light .admin-top h1 {
  color: #062e20 !important;
  font-weight: 900 !important;
}

.theme-light .panel p,
.theme-light .section-desc,
.theme-light .program-card p,
.theme-light .testimonial-card p,
.theme-light .feature-card p,
.theme-light td,
.theme-light th,
.theme-light label,
.theme-light small {
  color: #183e31 !important;
}

.site-footer,
.theme-light .site-footer,
.theme-dark .site-footer,
.home-body.theme-light .site-footer,
.home-body.theme-dark .site-footer {
  background: linear-gradient(145deg, #000b07, #002315 64%, #000b07) !important;
  color: rgba(255,248,223,.82) !important;
  border-top: 1px solid rgba(243,211,122,.28) !important;
}

.site-footer h5,
.site-footer a,
.site-footer .brand span,
.theme-light .site-footer h5,
.theme-light .site-footer a,
.theme-light .site-footer .brand span {
  color: #f3d37a !important;
}

.brand,
.admin-brand,
.footer-brand {
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.brand-logo,
.admin-brand-logo {
  object-fit: contain !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.home-body .hero-premium {
  position: relative;
  overflow: hidden;
}

.home-body .hero-premium::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 0 35%, rgba(243,211,122,.11) 45%, transparent 56%),
    radial-gradient(circle at 68% 18%, rgba(243,211,122,.22), transparent 22rem);
  animation: royalSweep 7s ease-in-out infinite;
}

@keyframes royalSweep {
  0%, 100% { opacity: .45; transform: translateX(-2%); }
  50% { opacity: .9; transform: translateX(2%); }
}

.home-body .hero-video,
.home-body .hero-video-link,
.home-body .hero-video-link img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 340px;
  max-height: 620px;
  border: 0;
  border-radius: 22px;
  object-fit: cover;
  background: #00180f;
}

.home-body .hero-video-link {
  position: relative;
  overflow: hidden;
}

.home-body .hero-video-link span {
  position: absolute;
  left: 22px;
  bottom: 22px;
  padding: 10px 16px;
  border: 1px solid rgba(243,211,122,.5);
  border-radius: 999px;
  background: rgba(0,20,12,.72);
  color: #f3d37a;
  font-weight: 900;
}

.testimonial-card.is-hidden {
  display: none !important;
}

.testimonial-scroll {
  max-height: 820px;
  overflow-y: auto;
  padding-right: 6px;
}

.testimonial-actions {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.app-download-section {
  padding: clamp(64px, 8vw, 110px) 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(243,211,122,.16), transparent 24rem),
    linear-gradient(145deg, rgba(0,18,11,.98), rgba(2,49,32,.96));
}

.app-showcase {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.app-copy {
  min-width: 0;
}

.app-rating {
  display: inline-grid;
  gap: 2px;
  margin: 16px 0 24px;
  padding: 14px 18px;
  border: 1px solid rgba(243,211,122,.34);
  border-radius: 18px;
  background: rgba(255,255,255,.06);
  color: #f3d37a;
}

.app-rating strong {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
}

.app-screens {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(150px, .55fr);
  gap: 18px;
  align-items: end;
}

.app-shot {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(243,211,122,.34);
  border-radius: 24px;
  background: rgba(255,255,255,.08);
  box-shadow: 0 28px 70px rgba(0,0,0,.3);
}

.app-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-shot-wide {
  aspect-ratio: 16 / 9;
}

.app-shot-tall {
  aspect-ratio: 9 / 16;
}

.app-shot figcaption {
  padding: 9px 12px;
  color: #f3d37a;
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.asset-preview-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-start;
}

.asset-preview.tall {
  max-width: 150px;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.admin-main,
.dashboard-content,
.admin-crud-panel,
.admin-form,
.dashboard-layout,
.royal-dashboard-layout,
.user-dashboard,
.module-page,
.panel,
.program-card,
.metric-card,
.feature-card,
.media-card,
.testimonial-card,
.ecosystem-column {
  min-width: 0 !important;
  overflow-wrap: break-word;
}

.admin-main {
  overflow-x: hidden;
}

.admin-top {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.admin-top h1,
.dashboard-module-heading h1,
.panel h2 {
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.admin-form .grid-2,
.grid-2,
.checkbox-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)) !important;
}

.admin-form input,
.admin-form select,
.admin-form textarea,
.glass-form input,
.glass-form select,
.glass-form textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
}

.table-wrap table {
  min-width: 860px;
  table-layout: auto;
  border-collapse: separate;
}

.admin-full-users-table {
  min-width: 1800px !important;
}

.table-wrap th,
.table-wrap td {
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  vertical-align: top;
  min-width: 92px;
}

.table-wrap code {
  white-space: normal;
  overflow-wrap: anywhere;
}

.table-actions,
.mini-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.dashboard-layout,
.royal-dashboard-layout {
  align-items: start;
}

.dashboard-content {
  width: 100%;
}

.dashboard-metrics,
.dashboard-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)) !important;
}

.dashboard-module-heading {
  background:
    radial-gradient(circle at 0 0, rgba(243,211,122,.12), transparent 18rem),
    linear-gradient(145deg, rgba(0,45,30,.92), rgba(0,18,11,.94)) !important;
}

.royal-earning-phone,
.user-dashboard .royal-earning-phone {
  background:
    radial-gradient(circle at 20% 10%, rgba(243,211,122,.14), transparent 18rem),
    linear-gradient(145deg, #001f15, #001109 72%) !important;
  border-color: rgba(243,211,122,.36) !important;
}

.course-feature-list {
  margin: 14px 0 0;
}

.course-feature-list li {
  align-items: flex-start;
}

@media (max-width: 980px) {
  .app-showcase,
  .app-screens {
    grid-template-columns: 1fr;
  }

  .app-shot-tall {
    max-width: 340px;
    justify-self: center;
    width: 100%;
  }
}

@media (max-width: 760px) {
  .home-body .hero-video,
  .home-body .hero-video-link,
  .home-body .hero-video-link img {
    min-height: 240px;
    border-radius: 18px;
  }

  .table-wrap table {
    min-width: 720px;
  }

  .admin-full-users-table {
    min-width: 1500px !important;
  }

  .admin-main,
  .dashboard-content {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .testimonial-scroll {
    max-height: 760px;
  }
}

/* Fixed root hero videos: /herovideopc.mp4 for desktop, /herovideo.mp4 for mobile. */
.hero-premium {
  isolation: isolate;
  min-height: clamp(720px, 92vh, 980px);
}

.hero-premium .hero-bg-video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .34;
  filter: saturate(1.05) contrast(1.04);
}

.hero-premium::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 68% 32%, rgba(243,211,122,.18), transparent 26rem),
    linear-gradient(90deg, rgba(0,20,12,.9), rgba(0,46,30,.76) 48%, rgba(0,30,18,.84));
  pointer-events: none;
}

.hero-premium .hero-grid,
.hero-premium .container {
  position: relative;
  z-index: 1;
}

.home-body .hero-art-card {
  position: relative;
  overflow: hidden;
}

.home-body .hero-art-card .hero-card-video {
  position: absolute;
  inset: 18px;
  z-index: 2;
  width: calc(100% - 36px);
  height: calc(100% - 36px);
  min-height: 0;
  max-height: none;
  aspect-ratio: auto;
  object-fit: cover;
  border-radius: 20px;
  background: #00170f;
  box-shadow: inset 0 0 0 1px rgba(243,211,122,.2);
}

.home-body .hero-art-card .hero-card-poster {
  position: relative;
  z-index: 1;
  opacity: .82;
}

.home-body .hero-art-card .hero-float {
  z-index: 4;
}

/* Dedicated admin users screen fixes. */
.admin-history-stack {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 24px !important;
}

.admin-history-stack .admin-history-panel {
  width: 100%;
  overflow: hidden;
}

.admin-user-search {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 12px;
  align-items: end;
}

.admin-user-form-panel,
.admin-users-table-panel,
.admin-user-search-panel {
  max-width: min(100%, 1380px);
  margin-left: auto;
  margin-right: auto;
}

.admin-user-form-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: clamp(18px, 3vw, 30px);
  align-items: start;
}

.admin-user-profile-card {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(243,211,122,.24);
  border-radius: 22px;
  background: rgba(0,32,21,.45);
  min-width: 0;
}

.admin-user-profile-card img {
  width: 148px;
  height: 148px;
  border-radius: 28px;
  object-fit: cover;
  border: 2px solid rgba(243,211,122,.55);
  box-shadow: 0 16px 34px rgba(0,0,0,.18);
}

.admin-user-profile-card strong,
.admin-user-profile-card span {
  overflow-wrap: anywhere;
}

.admin-user-form-sections {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.admin-user-section {
  padding: 18px;
  border: 1px solid rgba(15,106,77,.18);
  border-radius: 18px;
  background: rgba(255,253,248,.52);
  min-width: 0;
}

.theme-dark .admin-user-section {
  background: rgba(255,255,255,.045);
  border-color: rgba(243,211,122,.2);
}

.admin-user-section h3 {
  margin: 0 0 14px;
  color: #0a4b37;
  font-size: 1rem;
  font-weight: 1000;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.theme-dark .admin-user-section h3 {
  color: #f3d37a;
}

.admin-user-fields {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 14px;
}

.admin-user-fields label,
.admin-user-checks label {
  min-width: 0;
}

.admin-user-fields .full-span {
  grid-column: 1 / -1;
}

.password-hash-view {
  min-height: 86px;
  font-family: Consolas, "Courier New", monospace;
  font-size: .83rem;
  line-height: 1.45;
  overflow: auto;
  white-space: pre-wrap;
}

.admin-user-checks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-user-toggle {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  min-height: 48px;
  border: 1px solid rgba(212,175,55,.3);
  border-radius: 14px;
  background: rgba(255,255,255,.5);
  font-weight: 900;
}

.theme-dark .admin-user-toggle {
  background: rgba(255,255,255,.06);
}

.admin-user-toggle input {
  width: 18px !important;
  height: 18px;
  flex: 0 0 auto;
}

.admin-user-advanced summary {
  cursor: pointer;
  color: #d4af37;
  font-weight: 1000;
}

.admin-user-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-users-table-wrap,
.admin-users-preview-wrap {
  overflow-x: auto !important;
}

.admin-users-table,
.admin-users-preview {
  min-width: 2050px !important;
  table-layout: auto !important;
}

.admin-users-preview {
  min-width: 1280px !important;
}

.admin-users-table th,
.admin-users-table td,
.admin-users-preview th,
.admin-users-preview td {
  white-space: nowrap !important;
  vertical-align: middle !important;
}

.admin-users-table td strong,
.admin-users-preview td strong {
  display: block;
  white-space: nowrap;
}

.admin-users-table td small {
  display: block;
  color: rgba(15,106,77,.72);
  font-weight: 800;
  white-space: nowrap;
}

.theme-dark .admin-users-table td small {
  color: rgba(255,248,223,.66);
}

.admin-user-avatar {
  width: 52px !important;
  height: 52px !important;
  border-radius: 16px !important;
  object-fit: cover;
  border: 1px solid rgba(243,211,122,.45);
}

.password-cell {
  min-width: 320px !important;
  max-width: 420px;
}

.password-cell code {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(0,36,24,.08);
  color: inherit;
  font-size: .8rem;
  white-space: nowrap;
}

.theme-dark .password-cell code {
  background: rgba(0,0,0,.24);
}

.admin-users-table-panel .dashboard-section-title {
  margin-bottom: 16px;
}

@media (max-width: 1100px) {
  .admin-user-form-layout {
    grid-template-columns: 1fr;
  }

  .admin-user-profile-card {
    position: static;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
  }

  .admin-user-profile-card label {
    grid-column: 1 / -1;
  }

  .admin-user-fields,
  .admin-user-checks {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  .hero-premium {
    min-height: 820px;
  }

  .hero-premium .hero-bg-video {
    opacity: .28;
  }

  .home-body .hero-art-card .hero-card-video {
    inset: 12px;
    width: calc(100% - 24px);
    height: calc(100% - 24px);
    border-radius: 16px;
  }

  .admin-user-search {
    grid-template-columns: 1fr;
  }

  .admin-user-fields,
  .admin-user-checks {
    grid-template-columns: 1fr !important;
  }

  .admin-user-profile-card {
    grid-template-columns: 1fr;
  }
}

/* July production fixes: tighter layout, readable auth, manual payments, certificates and mobile leaderboard */
section {
  padding-top: clamp(42px, 6vw, 84px);
  padding-bottom: clamp(42px, 6vw, 84px);
}

.home-body section + section {
  margin-top: 0;
}

.section-head {
  margin-bottom: clamp(20px, 3vw, 36px);
}

.home-video-section {
  background:
    radial-gradient(circle at 18% 20%, rgba(243,211,122,.16), transparent 24rem),
    linear-gradient(145deg, rgba(2,31,21,.97), rgba(6,58,41,.94));
  color: #fffdf8;
}

.home-video-section .section-title,
.home-video-section .section-desc {
  color: #fffdf8;
}

.home-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px;
}

.home-video-card {
  position: relative;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border: 1px solid rgba(243,211,122,.42);
  border-radius: 24px;
  background: #021b12;
  color: #fffdf8;
  box-shadow: 0 26px 58px rgba(0,0,0,.24);
}

.home-video-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: auto;
  transform: scale(1.01);
}

.home-video-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.72));
}

.home-video-card span,
.home-video-card strong,
.home-video-card em {
  position: relative;
  z-index: 1;
  margin-left: 16px;
  margin-right: 16px;
}

.home-video-card span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: auto;
  margin-top: 16px;
  border-radius: 50%;
  background: linear-gradient(145deg, #f3d37a, #b27a16);
  color: #03120d;
}

.home-video-card strong {
  margin-bottom: 5px;
  font-size: 1.05rem;
  font-weight: 950;
}

.home-video-card em {
  margin-bottom: 18px;
  color: #f3d37a;
  font-style: normal;
  font-weight: 800;
}

.social-section {
  background:
    radial-gradient(circle at 18% 20%, rgba(243,211,122,.12), transparent 22rem),
    linear-gradient(145deg, #00140d, #063a29 55%, #02130d) !important;
}

.social-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px !important;
}

.social-card {
  width: auto !important;
  min-height: 150px;
  padding: 18px 14px;
  border: 1px solid rgba(243,211,122,.3);
  border-radius: 22px;
  background: rgba(255,255,255,.06);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), 0 22px 46px rgba(0,0,0,.2);
}

.social-card img {
  width: 74px !important;
  height: 74px !important;
  padding: 10px !important;
  image-rendering: auto;
}

.auth-shell {
  background:
    radial-gradient(circle at 20% 15%, rgba(243,211,122,.18), transparent 24rem),
    linear-gradient(145deg, #00140d, #053825 62%, #f9f6ef);
}

.auth-shell .glass-form,
.payment-panel,
.manual-payment-panel {
  border: 1px solid rgba(243,211,122,.38);
  background: linear-gradient(145deg, rgba(3,31,22,.92), rgba(7,68,48,.86)) !important;
  color: #fffdf8;
}

.auth-shell .glass-form h1,
.auth-shell .glass-form h2,
.auth-shell .glass-form p,
.auth-shell .glass-form label,
.payment-panel h2,
.payment-panel p {
  color: #fffdf8 !important;
}

.auth-shell .glass-form input,
.auth-shell .glass-form select,
.auth-shell .glass-form textarea {
  color: #07150f;
  background: #fffdf8;
  border-color: rgba(243,211,122,.58);
}

.manual-payment-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.manual-payment-summary article,
.certificate-card {
  padding: 16px;
  border: 1px solid rgba(243,211,122,.28);
  border-radius: 18px;
  background: rgba(255,255,255,.07);
}

.manual-payment-summary span,
.certificate-card small {
  color: rgba(255,248,223,.72);
  font-weight: 800;
}

.manual-payment-summary strong,
.certificate-card h3 {
  display: block;
  color: #f3d37a;
  overflow-wrap: anywhere;
}

.payment-proof-preview img,
.payment-proof-thumb {
  width: 100%;
  max-width: 320px;
  max-height: 360px;
  object-fit: contain;
  border-radius: 16px;
  border: 1px solid rgba(243,211,122,.34);
  background: rgba(0,0,0,.18);
}

.payment-proof-thumb {
  width: 80px !important;
  height: 80px !important;
  object-fit: cover;
}

.certificate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.certificate-card {
  display: grid;
  gap: 10px;
  background:
    radial-gradient(circle at 80% 0, rgba(243,211,122,.18), transparent 12rem),
    linear-gradient(145deg, rgba(2,37,25,.94), rgba(0,18,11,.96));
  color: #fffdf8;
}

.course-complete-form {
  margin-top: 14px;
}

.user-dashboard,
.module-page {
  width: 100%;
  max-width: none !important;
  padding-left: clamp(10px, 1.4vw, 18px) !important;
  padding-right: clamp(10px, 1.4vw, 18px) !important;
}

.dashboard-content {
  width: 100%;
  max-width: none !important;
  display: grid;
  gap: 14px !important;
}

.dashboard-module-heading,
.dashboard-module-section,
.user-dashboard .panel {
  margin-top: 0 !important;
  margin-bottom: 14px !important;
}

.royal-dashboard-layout {
  gap: 14px !important;
}

.royal-earning-phone,
.user-dashboard .royal-earning-phone {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  border-radius: 24px !important;
  min-height: calc(100vh - 150px);
}

.royal-earning-cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.theme-light .payment-panel,
.theme-light .manual-payment-panel {
  background: linear-gradient(145deg, #fffdf8, #f9f6ef) !important;
  color: #082f22;
}

.theme-light .payment-panel h2,
.theme-light .payment-panel p,
.theme-light .manual-payment-panel h2,
.theme-light .manual-payment-panel p {
  color: #082f22 !important;
}

.premium-leaderboard {
  max-width: min(100%, 860px);
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
}

.leaderboard-podium {
  min-width: 0;
}

.podium-card {
  min-width: 0;
  overflow: hidden;
}

.podium-avatar img,
.podium-avatar .leaderboard-initials {
  image-rendering: auto;
}

.leaderboard-history-panel {
  display: none !important;
}

img {
  image-rendering: auto;
}

@media (max-width: 1100px) {
  .royal-dashboard-layout {
    grid-template-columns: 1fr !important;
  }

  .royal-earning-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .container,
  .user-dashboard,
  .module-page {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .royal-earning-phone,
  .user-dashboard .royal-earning-phone {
    min-height: auto;
    padding: 18px 14px !important;
    border-radius: 20px !important;
  }

  .royal-earning-head {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .royal-profile-block img {
    width: 108px !important;
    height: 108px !important;
  }

  .royal-today strong {
    font-size: clamp(3rem, 18vw, 4.8rem) !important;
  }

  .royal-line-chart svg {
    min-height: 170px !important;
  }

  .royal-earning-cards {
    grid-template-columns: 1fr !important;
  }

  .manual-payment-summary {
    grid-template-columns: 1fr;
  }

  .premium-leaderboard {
    width: 100% !important;
    max-width: 100% !important;
    padding: 18px 10px 16px !important;
    border-radius: 22px !important;
  }

  .leaderboard-hero-title {
    padding: 0 4px 0 48px !important;
  }

  .leaderboard-hero-title h2 {
    white-space: normal !important;
    font-size: clamp(1.55rem, 8vw, 2rem) !important;
    line-height: 1.05;
  }

  .leaderboard-podium {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  .podium-card {
    padding: 10px 5px 12px !important;
    border-radius: 18px !important;
  }

  .podium-avatar {
    width: clamp(70px, 23vw, 92px) !important;
    height: clamp(70px, 23vw, 92px) !important;
  }

  .podium-avatar img,
  .podium-avatar .leaderboard-initials {
    inset: 5px !important;
    width: calc(100% - 10px) !important;
    height: calc(100% - 10px) !important;
  }

  .podium-crown svg {
    width: 22px !important;
    height: 22px !important;
  }

  .podium-card strong {
    font-size: .76rem !important;
    line-height: 1.15 !important;
  }

  .podium-card em {
    font-size: .62rem !important;
  }

  .podium-card p {
    padding: 7px 5px !important;
    font-size: .72rem !important;
  }

  .leader-list-row {
    grid-template-columns: 32px 44px minmax(0, 1fr) !important;
    gap: 8px !important;
    padding: 11px 10px !important;
  }

  .leader-list-row em {
    grid-column: 3;
    justify-self: start;
    font-size: .9rem;
  }

  .leader-list-avatar,
  .leader-list-avatar img,
  .leader-list-avatar .leaderboard-initials {
    width: 42px !important;
    height: 42px !important;
  }

  .leader-list-rank {
    width: 30px !important;
    height: 30px !important;
  }
}

/* Emergency readability + mobile spacing reset */
body.theme-dark,
.theme-dark {
  background: #00140d !important;
  color: #fff8df !important;
}

body.theme-light,
.theme-light {
  background: #f9f6ef !important;
  color: #082f22 !important;
}

.theme-dark .site-header,
.theme-dark .main-nav,
.theme-dark .dashboard-menu-panel,
.theme-dark .dashboard-profile-card,
.theme-dark .dashboard-menu,
.theme-dark .dashboard-module-heading,
.theme-dark .panel,
.theme-dark .program-card,
.theme-dark .metric-card,
.theme-dark .glass-form,
.theme-dark .admin-top,
.theme-dark .admin-sidebar,
.theme-dark .admin-hero,
.theme-dark .admin-history-panel {
  background: linear-gradient(145deg, rgba(0,24,15,.98), rgba(5,58,40,.94)) !important;
  border-color: rgba(243,211,122,.28) !important;
  color: #fff8df !important;
}

.theme-dark h1,
.theme-dark h2,
.theme-dark h3,
.theme-dark h4,
.theme-dark h5,
.theme-dark h6,
.theme-dark p,
.theme-dark label,
.theme-dark li,
.theme-dark td,
.theme-dark th,
.theme-dark small,
.theme-dark strong,
.theme-dark em,
.theme-dark span,
.theme-dark .section-title,
.theme-dark .section-desc,
.theme-dark .panel h2,
.theme-dark .panel p,
.theme-dark .dashboard-module-heading h1,
.theme-dark .dashboard-module-heading p,
.theme-dark .dashboard-menu a,
.theme-dark .dashboard-profile-card strong,
.theme-dark .dashboard-profile-card span,
.theme-dark .dashboard-profile-card em,
.theme-dark .main-nav a {
  color: #fff8df !important;
}

.theme-dark .dashboard-menu strong,
.theme-dark .section-eyebrow,
.theme-dark .section-eyebrow span,
.theme-dark .program-tag,
.theme-dark .status-pill,
.theme-dark .leaderboard-hero-title span,
.theme-dark .royal-profile-block strong,
.theme-dark .royal-today span,
.theme-dark .royal-today strong {
  color: #f3d37a !important;
}

.theme-dark input,
.theme-dark select,
.theme-dark textarea {
  background: #fffdf8 !important;
  border-color: rgba(243,211,122,.55) !important;
  color: #07150f !important;
}

.theme-dark input::placeholder,
.theme-dark textarea::placeholder {
  color: rgba(7,21,15,.58) !important;
}

.theme-dark .btn-primary,
.theme-dark .btn-primary *,
.theme-dark button.btn-primary,
.theme-dark button.btn-primary * {
  color: #07150f !important;
}

.theme-dark .btn-ghost,
.theme-dark .btn-ghost * {
  color: #f3d37a !important;
}

.theme-light .site-header,
.theme-light .main-nav,
.theme-light .dashboard-menu-panel,
.theme-light .dashboard-profile-card,
.theme-light .dashboard-menu,
.theme-light .panel,
.theme-light .dashboard-module-heading,
.theme-light .program-card,
.theme-light .metric-card,
.theme-light .glass-form,
.theme-light .admin-sidebar,
.theme-light .admin-top,
.theme-light .admin-hero,
.theme-light .admin-history-panel {
  background: rgba(255,253,248,.96) !important;
  border-color: rgba(10,75,55,.18) !important;
  color: #082f22 !important;
}

.theme-light h1,
.theme-light h2,
.theme-light h3,
.theme-light h4,
.theme-light h5,
.theme-light h6,
.theme-light p,
.theme-light label,
.theme-light li,
.theme-light td,
.theme-light th,
.theme-light small,
.theme-light strong,
.theme-light em,
.theme-light span,
.theme-light .section-title,
.theme-light .section-desc,
.theme-light .panel h2,
.theme-light .panel p,
.theme-light .dashboard-module-heading h1,
.theme-light .dashboard-module-heading p,
.theme-light .dashboard-profile-card strong,
.theme-light .dashboard-profile-card span,
.theme-light .dashboard-profile-card em,
.theme-light .dashboard-menu a,
.theme-light .main-nav a {
  color: #082f22 !important;
}

.theme-light .dashboard-menu strong,
.theme-light .section-eyebrow,
.theme-light .program-tag {
  color: #8a6412 !important;
}

.theme-light .dashboard-menu a:hover,
.theme-light .dashboard-menu a.active,
.theme-light .admin-sidebar a:not(.brand):hover,
.theme-light .admin-sidebar a:not(.brand).active {
  background: linear-gradient(145deg, #0f6a4d, #063a29) !important;
  border-color: rgba(212,175,55,.55) !important;
  color: #f3d37a !important;
}

.theme-light .dashboard-menu a:hover *,
.theme-light .dashboard-menu a.active *,
.theme-light .admin-sidebar a:not(.brand):hover *,
.theme-light .admin-sidebar a:not(.brand).active * {
  color: #f3d37a !important;
}

.theme-light input,
.theme-light select,
.theme-light textarea {
  background: #fffdf8 !important;
  border-color: rgba(10,75,55,.24) !important;
  color: #082f22 !important;
}

.dashboard-menu-panel {
  box-shadow: 0 18px 46px rgba(0,0,0,.18) !important;
}

.dashboard-menu a {
  min-height: 42px !important;
  padding: 10px 12px !important;
  line-height: 1.2 !important;
}

.dashboard-menu strong {
  margin: 14px 0 6px !important;
  font-size: .72rem !important;
}

.dashboard-profile-card {
  padding: 14px !important;
  gap: 7px !important;
}

.dashboard-profile-card img {
  width: 72px !important;
  height: 72px !important;
}

.dashboard-profile-card strong {
  font-size: 1rem !important;
  line-height: 1.15 !important;
}

.dashboard-profile-card span,
.dashboard-profile-card em {
  font-size: .8rem !important;
  line-height: 1.2 !important;
}

@media (max-width: 760px) {
  html,
  body {
    overflow-x: hidden !important;
  }

  section,
  .home-body section {
    padding-top: 28px !important;
    padding-bottom: 28px !important;
  }

  .container,
  .user-dashboard,
  .module-page,
  main.container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
  }

  .dashboard-layout,
  .royal-dashboard-layout,
  .dashboard-content,
  .programs-grid,
  .dashboard-grid,
  .admin-history-grid {
    gap: 8px !important;
  }

  .dashboard-content {
    display: block !important;
  }

  .dashboard-module-heading,
  .dashboard-module-section,
  .user-dashboard .panel,
  .panel,
  .metric-card,
  .program-card,
  .glass-form,
  .install-panel {
    margin: 0 0 8px !important;
    padding: 12px !important;
    border-radius: 14px !important;
  }

  .dashboard-module-heading h1,
  .panel h2,
  .section-title {
    font-size: clamp(1.25rem, 7vw, 1.75rem) !important;
    line-height: 1.12 !important;
  }

  .dashboard-module-heading p,
  .panel p,
  .section-desc {
    font-size: .88rem !important;
    line-height: 1.45 !important;
  }

  .royal-earning-phone,
  .user-dashboard .royal-earning-phone {
    min-height: 0 !important;
    padding: 12px 10px !important;
    border-radius: 16px !important;
    border-width: 1px !important;
    box-shadow: 0 12px 28px rgba(0,0,0,.22) !important;
  }

  .royal-phone-top {
    margin-bottom: 8px !important;
  }

  .royal-circle-btn {
    width: 42px !important;
    height: 42px !important;
    font-size: 1.8rem !important;
  }

  .royal-earning-head {
    display: grid !important;
    grid-template-columns: 86px minmax(0, 1fr) !important;
    gap: 10px !important;
    align-items: center !important;
    padding-bottom: 12px !important;
  }

  .royal-profile-block {
    gap: 4px !important;
  }

  .royal-profile-block img {
    width: 72px !important;
    height: 72px !important;
    border-width: 3px !important;
    box-shadow: 0 0 0 4px rgba(212,175,55,.12) !important;
  }

  .royal-profile-block strong {
    font-size: .9rem !important;
    line-height: 1.1 !important;
  }

  .royal-profile-block span,
  .royal-profile-block em {
    font-size: .7rem !important;
    line-height: 1.1 !important;
  }

  .royal-today {
    gap: 5px !important;
  }

  .royal-today span {
    font-size: clamp(1.25rem, 7vw, 1.85rem) !important;
    line-height: 1 !important;
  }

  .royal-today em {
    font-size: .86rem !important;
  }

  .royal-today strong {
    font-size: clamp(2.2rem, 15vw, 3.4rem) !important;
    gap: 8px !important;
  }

  .royal-today small {
    font-size: 1rem !important;
  }

  .royal-line-chart {
    margin-top: 10px !important;
  }

  .royal-line-chart svg {
    min-height: 120px !important;
  }

  .chart-label {
    font-size: 17px !important;
  }

  .royal-earning-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin-top: 10px !important;
  }

  .royal-earning-cards article {
    min-height: 86px !important;
    grid-template-columns: 38px minmax(0, 1fr) !important;
    column-gap: 8px !important;
    padding: 10px !important;
    border-radius: 14px !important;
  }

  .royal-earning-cards article .icon-svg,
  .royal-earning-cards article svg {
    width: 22px !important;
    height: 22px !important;
  }

  .royal-earning-cards span {
    font-size: .72rem !important;
    line-height: 1.1 !important;
  }

  .royal-earning-cards strong {
    font-size: 1.15rem !important;
    line-height: 1.1 !important;
  }

  .dashboard-drawer-toggle,
  .panel-drawer-toggle {
    top: 82px !important;
    left: 8px !important;
    width: 42px !important;
    height: 42px !important;
  }

  .dashboard-menu-panel {
    width: min(82vw, 300px) !important;
    padding: 10px !important;
    border-radius: 0 18px 18px 0 !important;
  }

  .dashboard-menu {
    gap: 5px !important;
  }

  .dashboard-menu a {
    min-height: 38px !important;
    padding: 8px 10px !important;
    font-size: .82rem !important;
  }

  .dashboard-profile-card {
    padding: 10px !important;
  }

  .dashboard-profile-card img {
    width: 58px !important;
    height: 58px !important;
  }

  .main-nav.open {
    left: 8px !important;
    right: 8px !important;
    top: 72px !important;
    padding: 12px !important;
    gap: 8px !important;
  }

  .theme-dark .main-nav.open {
    background: #021b12 !important;
  }

  .theme-light .main-nav.open {
    background: #fffdf8 !important;
  }

  .theme-light .main-nav.open a {
    color: #082f22 !important;
  }

  .theme-dark .main-nav.open a {
    color: #fff8df !important;
  }
}

/* Dark-only release: theme switch removed, light class cannot change the UI */
.theme-toggle,
[data-theme-toggle] {
  display: none !important;
}

body,
body.theme-light,
.theme-light,
.home-body.theme-light,
.admin-body.theme-light {
  background:
    radial-gradient(circle at 12% 0, rgba(243,211,122,.10), transparent 24rem),
    linear-gradient(145deg, #00140d, #052b1d 58%, #000b07) !important;
  color: #fff8df !important;
}

body.theme-light .site-header,
.theme-light .site-header,
body.theme-light .main-nav,
.theme-light .main-nav,
body.theme-light .dashboard-menu-panel,
.theme-light .dashboard-menu-panel,
body.theme-light .dashboard-profile-card,
.theme-light .dashboard-profile-card,
body.theme-light .dashboard-menu,
.theme-light .dashboard-menu,
body.theme-light .dashboard-module-heading,
.theme-light .dashboard-module-heading,
body.theme-light .panel,
.theme-light .panel,
body.theme-light .program-card,
.theme-light .program-card,
body.theme-light .metric-card,
.theme-light .metric-card,
body.theme-light .glass-form,
.theme-light .glass-form,
body.theme-light .admin-top,
.theme-light .admin-top,
body.theme-light .admin-sidebar,
.theme-light .admin-sidebar,
body.theme-light .admin-hero,
.theme-light .admin-hero,
body.theme-light .admin-history-panel,
.theme-light .admin-history-panel {
  background: linear-gradient(145deg, rgba(0,24,15,.98), rgba(5,58,40,.94)) !important;
  border-color: rgba(243,211,122,.28) !important;
  color: #fff8df !important;
}

body.theme-light h1,
body.theme-light h2,
body.theme-light h3,
body.theme-light h4,
body.theme-light h5,
body.theme-light h6,
body.theme-light p,
body.theme-light label,
body.theme-light li,
body.theme-light td,
body.theme-light th,
body.theme-light small,
body.theme-light strong,
body.theme-light em,
body.theme-light span,
body.theme-light a,
.theme-light h1,
.theme-light h2,
.theme-light h3,
.theme-light h4,
.theme-light h5,
.theme-light h6,
.theme-light p,
.theme-light label,
.theme-light li,
.theme-light td,
.theme-light th,
.theme-light small,
.theme-light strong,
.theme-light em,
.theme-light span,
.theme-light a,
.theme-light .section-title,
.theme-light .section-desc,
.theme-light .panel h2,
.theme-light .panel p,
.theme-light .dashboard-module-heading h1,
.theme-light .dashboard-module-heading p,
.theme-light .dashboard-profile-card strong,
.theme-light .dashboard-profile-card span,
.theme-light .dashboard-profile-card em,
.theme-light .dashboard-menu a,
.theme-light .main-nav a {
  color: #fff8df !important;
}

.theme-light .dashboard-menu strong,
.theme-light .section-eyebrow,
.theme-light .program-tag,
.theme-light .royal-profile-block strong,
.theme-light .royal-today span,
.theme-light .royal-today strong {
  color: #f3d37a !important;
}

/* Dark-only contrast polish: keep green panels readable everywhere */
body.theme-dark .panel,
body.theme-dark .program-card,
body.theme-dark .feature-card,
body.theme-dark .testimonial-card,
body.theme-dark .person-card,
body.theme-dark .instructor-card,
body.theme-dark .dashboard-menu-panel,
body.theme-dark .dashboard-profile-card,
body.theme-dark .dashboard-menu,
body.theme-dark .dashboard-module-heading,
body.theme-dark .admin-sidebar,
body.theme-dark .admin-top,
body.theme-dark .admin-hero,
body.theme-dark .admin-history-panel,
body.theme-dark .home-video-card,
body.theme-dark .leaderboard-shell,
body.theme-dark .leaderboard-card,
body.theme-dark .royal-dashboard-card,
body.theme-dark .app-download-section {
  color: #fff8df !important;
}

body.theme-dark .panel :is(p, span, small, label, td, th, li, em, a),
body.theme-dark .program-card :is(p, span, small, label, li, em, a),
body.theme-dark .feature-card :is(p, span, small, label, li, em, a),
body.theme-dark .testimonial-card :is(p, span, small, label, li, em, a),
body.theme-dark .person-card :is(p, span, small, label, li, em, a),
body.theme-dark .instructor-card :is(p, span, small, label, li, em, a),
body.theme-dark .dashboard-menu-panel :is(p, span, small, label, li, em, a),
body.theme-dark .dashboard-profile-card :is(p, span, small, label, li, em, a),
body.theme-dark .dashboard-menu :is(p, span, small, label, li, em, a),
body.theme-dark .dashboard-module-heading :is(p, span, small, label, li, em, a),
body.theme-dark .admin-sidebar :is(p, span, small, label, li, em, a),
body.theme-dark .admin-top :is(p, span, small, label, li, em, a),
body.theme-dark .admin-hero :is(p, span, small, label, li, em, a),
body.theme-dark .admin-history-panel :is(p, span, small, label, li, em, a),
body.theme-dark .home-video-card :is(p, span, small, label, li, em, a),
body.theme-dark .leaderboard-shell :is(p, span, small, label, li, em, a),
body.theme-dark .leaderboard-card :is(p, span, small, label, li, em, a),
body.theme-dark .royal-dashboard-card :is(p, span, small, label, li, em, a),
body.theme-dark .app-download-section :is(p, span, small, label, li, em, a) {
  color: #fff8df !important;
}

body.theme-dark .panel :is(h1, h2, h3, h4, h5, h6, strong),
body.theme-dark .program-card :is(h1, h2, h3, h4, h5, h6, strong),
body.theme-dark .feature-card :is(h1, h2, h3, h4, h5, h6, strong),
body.theme-dark .testimonial-card :is(h1, h2, h3, h4, h5, h6, strong),
body.theme-dark .person-card :is(h1, h2, h3, h4, h5, h6, strong),
body.theme-dark .instructor-card :is(h1, h2, h3, h4, h5, h6, strong),
body.theme-dark .dashboard-menu-panel :is(h1, h2, h3, h4, h5, h6, strong),
body.theme-dark .dashboard-profile-card :is(h1, h2, h3, h4, h5, h6, strong),
body.theme-dark .dashboard-menu strong,
body.theme-dark .dashboard-module-heading :is(h1, h2, h3, h4, h5, h6, strong),
body.theme-dark .admin-sidebar .brand span,
body.theme-dark .admin-hero :is(h1, h2, h3, h4, h5, h6, strong),
body.theme-dark .leaderboard-shell :is(h1, h2, h3, h4, h5, h6, strong),
body.theme-dark .royal-dashboard-card :is(h1, h2, h3, h4, h5, h6, strong) {
  color: #f3d37a !important;
}

body.theme-dark .dashboard-menu a:hover,
body.theme-dark .dashboard-menu a.active,
body.theme-dark .admin-sidebar a:not(.brand):hover,
body.theme-dark .admin-sidebar a.active {
  background: rgba(243, 211, 122, .14) !important;
  color: #f3d37a !important;
}

body.theme-dark .dashboard-menu a:hover *,
body.theme-dark .dashboard-menu a.active *,
body.theme-dark .admin-sidebar a:not(.brand):hover *,
body.theme-dark .admin-sidebar a.active * {
  color: #f3d37a !important;
}

body.theme-dark .muted,
body.theme-dark .section-desc,
body.theme-dark .meta-text,
body.theme-dark .field-help {
  color: rgba(255, 248, 223, .76) !important;
}

body.theme-dark input,
body.theme-dark select,
body.theme-dark textarea {
  background: #fffdf8 !important;
  color: #07150f !important;
}

/* 2026-07-15 release UI fix: register plans and mobile dashboard */
.auth-shell {
  min-height: 100vh !important;
  padding: clamp(52px, 7vw, 92px) 0 !important;
  background:
    radial-gradient(circle at 18% 8%, rgba(243, 211, 122, .16), transparent 24rem),
    radial-gradient(circle at 86% 22%, rgba(15, 106, 77, .36), transparent 28rem),
    linear-gradient(145deg, #00140d 0%, #032719 58%, #000b07 100%) !important;
}

.auth-shell .register-form {
  width: min(980px, calc(100vw - 32px)) !important;
  max-width: 980px !important;
  padding: clamp(22px, 4vw, 34px) !important;
  border-radius: 24px !important;
  background:
    radial-gradient(circle at 12% 0, rgba(243, 211, 122, .12), transparent 22rem),
    linear-gradient(145deg, rgba(0, 28, 18, .98), rgba(3, 56, 38, .94)) !important;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .34), inset 0 0 0 1px rgba(255, 255, 255, .05) !important;
}

.auth-shell .register-form h1 {
  font-size: clamp(2rem, 4vw, 3rem) !important;
  line-height: 1.08 !important;
  color: #fffdf8 !important;
}

.auth-shell .auth-note {
  max-width: 780px;
  color: rgba(255, 248, 223, .86) !important;
}

.plan-select-grid {
  width: 100% !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px !important;
  align-items: stretch !important;
}

.plan-option {
  isolation: isolate;
  min-height: 220px !important;
  padding: 18px 18px 16px !important;
  overflow: hidden !important;
  border: 1px solid rgba(243, 211, 122, .44) !important;
  border-radius: 18px !important;
  background:
    radial-gradient(circle at 0 0, rgba(243, 211, 122, .14), transparent 12rem),
    linear-gradient(145deg, rgba(3, 38, 25, .98), rgba(7, 70, 49, .84)) !important;
  color: #fff8df !important;
  box-shadow: 0 18px 46px rgba(0, 0, 0, .24), inset 0 0 0 1px rgba(255, 255, 255, .04) !important;
}

.plan-option:hover,
.plan-option:has(input[type="radio"]:checked) {
  border-color: rgba(243, 211, 122, .9) !important;
  transform: translateY(-2px);
  box-shadow: 0 22px 58px rgba(0, 0, 0, .28), 0 0 30px rgba(212, 175, 55, .16), inset 0 0 0 1px rgba(243, 211, 122, .22) !important;
}

.plan-option input[type="radio"],
.auth-shell .glass-form .plan-option input[type="radio"],
body.theme-dark .plan-option input[type="radio"] {
  position: absolute !important;
  top: 16px !important;
  right: 16px !important;
  left: auto !important;
  bottom: auto !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  min-height: 18px !important;
  max-height: 18px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 50% !important;
  border: 2px solid rgba(243, 211, 122, .75) !important;
  background: #fffdf8 !important;
  accent-color: #d4af37 !important;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, .12) !important;
}

.plan-option span {
  display: flex !important;
  min-width: 0 !important;
  height: 100% !important;
  flex-direction: column !important;
  gap: 11px !important;
  padding-right: 34px !important;
}

.plan-option strong {
  color: #fff8df !important;
  font-size: 1.05rem !important;
  line-height: 1.2 !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
}

.plan-option em {
  width: max-content !important;
  max-width: 100% !important;
  padding: 8px 12px !important;
  border-radius: 999px !important;
  background: rgba(243, 211, 122, .15) !important;
  color: #f3d37a !important;
  font-size: .95rem !important;
  line-height: 1 !important;
}

.plan-option small {
  display: flex !important;
  align-items: flex-start !important;
  gap: 8px !important;
  color: rgba(255, 248, 223, .92) !important;
  font-size: .9rem !important;
  line-height: 1.35 !important;
  font-weight: 800 !important;
}

.plan-option small .icon-svg,
.plan-option small svg {
  flex: 0 0 16px !important;
  width: 16px !important;
  height: 16px !important;
  color: #f3d37a !important;
}

.auth-shell .register-form > label {
  color: #fff8df !important;
  font-weight: 900 !important;
}

.auth-shell .register-form > label input {
  min-height: 50px !important;
  border-color: rgba(243, 211, 122, .74) !important;
  border-radius: 10px !important;
}

.royal-earning-phone,
.user-dashboard .royal-earning-phone {
  max-width: min(980px, 100%) !important;
  overflow: hidden !important;
}

.royal-earning-head {
  min-width: 0 !important;
}

.royal-profile-block,
.royal-today {
  min-width: 0 !important;
}

.royal-profile-block strong,
.royal-profile-block span,
.royal-profile-block em,
.royal-today span,
.royal-today em,
.royal-today strong,
.royal-today small {
  word-break: normal !important;
  overflow-wrap: normal !important;
  white-space: normal !important;
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
}

.royal-profile-block strong {
  max-width: 100% !important;
}

@media (max-width: 980px) {
  .plan-select-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  .auth-shell {
    padding: 18px 0 36px !important;
  }

  .auth-shell .register-form {
    width: min(100% - 18px, 520px) !important;
    padding: 18px !important;
    border-radius: 18px !important;
  }

  .plan-select-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .plan-option {
    min-height: 0 !important;
    padding: 15px !important;
  }

  .plan-option span {
    gap: 8px !important;
  }

  .royal-earning-phone,
  .user-dashboard .royal-earning-phone {
    width: 100% !important;
    padding: 14px !important;
    border-radius: 18px !important;
  }

  .royal-phone-top {
    margin-bottom: 12px !important;
  }

  .royal-earning-head {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    align-items: stretch !important;
    padding-bottom: 14px !important;
  }

  .royal-profile-block {
    display: grid !important;
    grid-template-columns: 84px minmax(0, 1fr) !important;
    grid-template-areas:
      "photo name"
      "photo online"
      "photo plan" !important;
    gap: 4px 12px !important;
    align-items: center !important;
    width: 100% !important;
  }

  .royal-profile-block img {
    grid-area: photo !important;
    width: 76px !important;
    height: 76px !important;
    border-width: 3px !important;
  }

  .royal-profile-block strong {
    grid-area: name !important;
    display: block !important;
    font-size: clamp(1rem, 5vw, 1.35rem) !important;
    line-height: 1.12 !important;
  }

  .royal-profile-block span {
    grid-area: online !important;
    font-size: .82rem !important;
    line-height: 1.2 !important;
  }

  .royal-profile-block em {
    grid-area: plan !important;
    font-size: .8rem !important;
    line-height: 1.2 !important;
  }

  .royal-today {
    display: grid !important;
    gap: 7px !important;
    text-align: left !important;
  }

  .royal-today span {
    font-size: clamp(1.55rem, 8vw, 2.15rem) !important;
    line-height: 1.05 !important;
  }

  .royal-today em {
    font-size: .98rem !important;
  }

  .royal-today strong {
    display: flex !important;
    gap: 8px !important;
    align-items: baseline !important;
    font-size: clamp(3rem, 16vw, 4.2rem) !important;
    line-height: .9 !important;
  }

  .royal-today small {
    font-size: 1rem !important;
  }

  .royal-line-chart svg {
    min-height: 150px !important;
  }

  .royal-earning-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .royal-earning-cards article {
    min-height: 108px !important;
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "icon"
      "label"
      "value" !important;
    align-items: start !important;
    gap: 6px !important;
  }
}

@media (max-width: 380px) {
  .royal-earning-cards {
    grid-template-columns: 1fr !important;
  }
}

/* Homepage mobile menu button: dark green premium control */
.home-body .nav-toggle,
.site-header .nav-toggle,
body.theme-dark .home-body .nav-toggle,
body.theme-dark .site-header .nav-toggle {
  background: linear-gradient(145deg, #002f1f, #031a12) !important;
  border: 1px solid rgba(243, 211, 122, .72) !important;
  color: #f3d37a !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04), 0 0 22px rgba(212, 175, 55, .18) !important;
}

.home-body .nav-toggle span,
.site-header .nav-toggle span,
body.theme-dark .home-body .nav-toggle span,
body.theme-dark .site-header .nav-toggle span {
  background: #f3d37a !important;
}

.home-body .nav-toggle:hover,
.site-header .nav-toggle:hover {
  background: linear-gradient(145deg, #063f2d, #002416) !important;
  border-color: #f3d37a !important;
}

/* Final UI QA pass: prevent overflow, keep dark luxury contrast, stabilize controls */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden !important;
}

body {
  background:
    radial-gradient(circle at 12% 0, rgba(243, 211, 122, .10), transparent 24rem),
    linear-gradient(145deg, #00140d, #052b1d 58%, #000b07) !important;
  color: #fff8df !important;
}

img,
video,
iframe,
canvas,
svg {
  max-width: 100%;
}

img,
video {
  height: auto;
}

.container,
main.container,
.auth-shell .container {
  max-width: min(1180px, calc(100vw - 24px)) !important;
}

.site-header {
  background: linear-gradient(180deg, rgba(0, 42, 28, .98), rgba(0, 30, 20, .98)) !important;
  border-bottom: 1px solid rgba(243, 211, 122, .28) !important;
}

.site-header .brand-logo,
.home-body .brand-logo {
  display: block !important;
  object-fit: contain !important;
}

.main-nav a,
.site-footer a,
.site-footer p,
.site-footer span,
.panel,
.program-card,
.feature-card,
.testimonial-card,
.person-card,
.media-card,
.dashboard-menu-panel,
.admin-sidebar {
  word-break: normal !important;
  overflow-wrap: anywhere;
}

.section-title,
.hero-title,
h1,
h2,
h3 {
  text-wrap: balance;
  overflow-wrap: normal !important;
  word-break: normal !important;
}

.panel,
.program-card,
.metric-card,
.feature-card,
.testimonial-card,
.person-card,
.media-card,
.glass-form,
.install-panel,
.dashboard-module-section,
.admin-history-panel {
  min-width: 0 !important;
  max-width: 100% !important;
}

input[type="checkbox"],
input[type="radio"],
.inline-check input[type="checkbox"],
.inline-check input[type="radio"],
.admin-user-toggle input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  padding: 0 !important;
  margin: 0 !important;
  flex: 0 0 18px !important;
  accent-color: #d4af37 !important;
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  max-width: 100% !important;
  min-width: 0 !important;
}

.inline-check,
.admin-user-toggle {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.table-wrap {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
}

.table-wrap table {
  max-width: none;
}

.site-footer {
  background: linear-gradient(180deg, #00140d, #000906) !important;
  border-top: 1px solid rgba(243, 211, 122, .20) !important;
}

.footer-grid {
  grid-template-columns: 1.4fr repeat(4, minmax(130px, 1fr)) !important;
  align-items: start !important;
}

.footer-grid > div {
  min-width: 0 !important;
}

.footer-grid h5 {
  color: #f3d37a !important;
}

.footer-grid p,
.footer-grid a,
.footer-bottom {
  color: rgba(255, 248, 223, .72) !important;
}

.main-nav.open {
  z-index: 1000 !important;
  background: linear-gradient(145deg, rgba(0, 38, 25, .98), rgba(0, 18, 12, .98)) !important;
  border-color: rgba(243, 211, 122, .40) !important;
}

.main-nav.open a {
  color: #fff8df !important;
}

.main-nav.open a:hover {
  color: #f3d37a !important;
}

@media (max-width: 980px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 22px !important;
  }

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }

  .hero-grid,
  .split-section,
  .split-section.reverse,
  .programs-grid,
  .testimonial-grid,
  .instructor-grid,
  .people-grid,
  .media-grid,
  .impact-grid,
  .gallery-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 640px) {
  .container,
  main.container,
  .user-dashboard,
  .module-page {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .site-header .container {
    min-height: 72px !important;
    gap: 10px !important;
  }

  .site-header .brand-logo,
  .home-body .brand-logo {
    width: min(210px, 62vw) !important;
    height: 58px !important;
  }

  .nav-toggle {
    width: 46px !important;
    height: 46px !important;
    border-radius: 12px !important;
  }

  .main-nav.open {
    left: 10px !important;
    right: 10px !important;
    top: 76px !important;
    max-height: calc(100vh - 92px) !important;
    overflow-y: auto !important;
  }

  .hero {
    min-height: auto !important;
    padding-top: 34px !important;
    padding-bottom: 44px !important;
  }

  .hero-title,
  .section-title {
    font-size: clamp(2rem, 11vw, 3.25rem) !important;
    line-height: 1.08 !important;
  }

  .hero-sub,
  .section-desc,
  p {
    line-height: 1.55 !important;
  }

  .panel,
  .program-card,
  .metric-card,
  .feature-card,
  .testimonial-card,
  .person-card,
  .media-card,
  .glass-form,
  .install-panel {
    border-radius: 18px !important;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    text-align: left !important;
  }

  .footer-brand .brand-logo {
    width: min(220px, 70vw) !important;
  }
}

/* 2026-07-17 dashboard overview upgrade */
.dashboard-content {
  align-content: start !important;
  gap: 18px !important;
  padding-bottom: 38px !important;
}

.revenue-overview {
  width: min(100%, 980px);
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.revenue-profile-strip {
  min-height: 138px;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  padding: 22px;
  border: 1px solid rgba(243, 211, 122, .32);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .06), transparent 38%),
    radial-gradient(circle at 12% 0, rgba(243, 211, 122, .13), transparent 15rem),
    linear-gradient(145deg, #03130d, #08130f 48%, #02150e);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .03), 0 20px 62px rgba(0, 0, 0, .30);
  overflow: hidden;
}

.revenue-profile-strip img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(243, 211, 122, .82);
  box-shadow: 0 0 0 7px rgba(212, 175, 55, .12), 0 0 28px rgba(243, 211, 122, .22);
}

.revenue-profile-strip strong {
  display: block;
  color: #fff8df !important;
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  line-height: 1.08;
  font-weight: 950;
}

.revenue-profile-strip span {
  width: max-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 14px;
  border: 1px solid rgba(243, 211, 122, .35);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(243, 211, 122, .22), rgba(15, 106, 77, .18));
  color: #f3d37a !important;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.revenue-profile-strip .icon-svg {
  width: 20px !important;
  height: 20px !important;
  color: #f3d37a !important;
}

.revenue-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.revenue-card {
  min-height: 132px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(243, 211, 122, .30);
  border-radius: 24px;
  background:
    radial-gradient(circle at 0 0, rgba(243, 211, 122, .20), transparent 16rem),
    linear-gradient(135deg, rgba(7, 77, 54, .98), rgba(0, 29, 18, .96));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04), 0 20px 54px rgba(0, 0, 0, .26);
  overflow: hidden;
}

.revenue-card-2 {
  background:
    radial-gradient(circle at 0 0, rgba(243, 211, 122, .16), transparent 16rem),
    linear-gradient(135deg, rgba(9, 88, 63, .98), rgba(0, 49, 31, .98));
}

.revenue-card-3 {
  background:
    radial-gradient(circle at 0 0, rgba(243, 211, 122, .24), transparent 16rem),
    linear-gradient(135deg, rgba(102, 76, 13, .88), rgba(2, 46, 30, .98));
}

.revenue-card-4 {
  background:
    radial-gradient(circle at 0 0, rgba(243, 211, 122, .14), transparent 16rem),
    linear-gradient(135deg, rgba(0, 78, 56, .98), rgba(5, 58, 40, .94));
}

.revenue-card span {
  display: block;
  color: rgba(255, 248, 223, .86) !important;
  font-size: .85rem;
  font-weight: 950;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.revenue-card strong {
  display: block;
  margin-top: 10px;
  color: #fff8df !important;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
  font-weight: 950;
}

.revenue-card i {
  flex: 0 0 70px;
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: #fff8df;
  color: #062117;
  box-shadow: 0 14px 32px rgba(0, 0, 0, .18);
}

.revenue-card i .icon-svg {
  width: 34px !important;
  height: 34px !important;
  color: #062117 !important;
}

.royal-phone-top {
  display: none !important;
}

.royal-earning-phone,
.user-dashboard .royal-earning-phone {
  width: min(100%, 980px) !important;
  max-width: 980px !important;
  min-height: 0 !important;
  margin: 0 auto !important;
  padding: clamp(20px, 3vw, 30px) !important;
  border-radius: 28px !important;
}

.royal-earning-head {
  margin-top: 0 !important;
}

.royal-earning-cards {
  margin-bottom: 4px !important;
}

@media (max-width: 760px) {
  .dashboard-content {
    gap: 14px !important;
    padding-bottom: 84px !important;
  }

  .revenue-overview {
    gap: 14px;
  }

  .revenue-profile-strip {
    min-height: 112px;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 14px;
    padding: 16px;
    border-radius: 22px;
  }

  .revenue-profile-strip img {
    width: 74px;
    height: 74px;
  }

  .revenue-profile-strip strong {
    font-size: clamp(1.25rem, 6vw, 1.75rem);
  }

  .revenue-profile-strip span {
    margin-top: 8px;
    padding: 8px 10px;
    font-size: .72rem;
  }

  .revenue-overview-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .revenue-card {
    min-height: 112px;
    padding: 18px;
    border-radius: 20px;
  }

  .revenue-card span {
    font-size: .72rem;
    letter-spacing: .13em;
  }

  .revenue-card strong {
    font-size: clamp(1.75rem, 8vw, 2.55rem);
  }

  .revenue-card i {
    flex-basis: 58px;
    width: 58px;
    height: 58px;
    border-radius: 18px;
  }

  .royal-earning-phone,
  .user-dashboard .royal-earning-phone {
    width: calc(100% - 6px) !important;
    padding: 18px 16px !important;
    border-radius: 24px !important;
  }

  .royal-earning-head {
    gap: 18px !important;
    border-bottom-color: rgba(243, 211, 122, .24) !important;
  }

  .royal-line-chart {
    margin-top: 16px !important;
  }

  .royal-line-chart svg {
    min-height: 150px !important;
  }

  .royal-earning-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .royal-earning-cards article {
    min-height: 118px !important;
  }
}

@media (max-width: 420px) {
  .royal-earning-cards {
    grid-template-columns: 1fr !important;
  }
}

/* 2026-07-25 Android WebView mobile menu hardening
   Change explained:
   - The public mobile nav and panel drawer now use the real viewport width/height on mobile.
   - Older rules that used small widths, top offsets, max-heights or translate clipping are overridden here.
   - Desktop layout is untouched because every rule is scoped to mobile widths only. */
@media (max-width: 980px) {
  html.nav-open,
  body.nav-open,
  body.dashboard-menu-open,
  body.admin-menu-open {
    overflow: hidden !important;
    height: 100% !important;
    overscroll-behavior: none;
  }

  /* Public header menu: fixed full-width panel below the sticky header, with its own scrolling. */
  .main-nav.open {
    position: fixed !important;
    left: 0 !important;
    right: auto !important;
    top: 72px !important;
    bottom: auto !important;
    width: 100vw !important;
    width: 100dvw !important;
    max-width: 100vw !important;
    height: calc(100vh - 72px) !important;
    height: calc(100dvh - 72px) !important;
    max-height: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 18px 16px calc(22px + env(safe-area-inset-bottom, 0px)) !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-radius: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    transform: none !important;
    zoom: 1 !important;
    z-index: 1050 !important;
  }

  .main-nav.open a {
    width: 100% !important;
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 12px 6px !important;
    white-space: normal;
  }

  /* Drawer backdrop: full viewport so the WebView does not calculate a tiny clickable overlay. */
  .drawer-backdrop.open {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    width: 100dvw !important;
    height: 100vh !important;
    height: 100dvh !important;
    z-index: 998 !important;
  }

  /* User/admin drawer: full-width mobile drawer. Closed state stays off-canvas, open state cannot be clipped. */
  .dashboard-menu-panel,
  .admin-sidebar {
    position: fixed !important;
    left: 0 !important;
    right: auto !important;
    bottom: auto !important;
    width: 100vw !important;
    width: 100dvw !important;
    max-width: 100vw !important;
    height: calc(100vh - 72px) !important;
    height: calc(100dvh - 72px) !important;
    max-height: none !important;
    margin: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-radius: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    transform: translate3d(100%, 0, 0) !important;
    zoom: 1 !important;
    z-index: 1000 !important;
    -webkit-overflow-scrolling: touch;
  }

  .dashboard-menu-panel.open,
  .admin-sidebar.open {
    transform: translate3d(0, 0, 0) !important;
  }

  /* Panel pages have their own top nav; keep the drawer directly below that nav. */
  .panel-no-header .dashboard-menu-panel {
    top: 68px !important;
  }

  /* Admin pages have no public header, so the admin drawer starts at the top. */
  .admin-sidebar {
    top: 0 !important;
    height: 100vh !important;
    height: 100dvh !important;
    padding-top: calc(14px + env(safe-area-inset-top, 0px)) !important;
    padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)) !important;
  }

  /* Dashboard drawer content remains readable and scrollable inside the full-height drawer. */
  .dashboard-menu-panel {
    padding: 12px 12px calc(18px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .dashboard-menu,
  .dashboard-profile-card {
    min-width: 0 !important;
  }
}

@media (max-width: 640px) {
  /* Small-phone/WebView correction: previous rules moved the menu inward by 8-10px; reset to full width. */
  .main-nav.open,
  .dashboard-menu-panel,
  .admin-sidebar {
    left: 0 !important;
    right: auto !important;
    width: 100vw !important;
    width: 100dvw !important;
  }
}

/* 2026-07-25 WebView speed and panel header removal */
.panel-no-header .site-header {
  display: none !important;
}

.panel-top-nav {
  position: sticky;
  top: 0;
  z-index: 95;
  grid-column: 1 / -1;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 2px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(243, 211, 122, .24);
  background: linear-gradient(145deg, #00140d, #053621);
  color: #f3d37a;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}

.panel-top-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.panel-top-brand img {
  width: min(228px, 58vw);
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(243, 211, 122, .18));
}

.panel-top-menu.dashboard-drawer-toggle,
.panel-no-header .panel-top-menu.dashboard-drawer-toggle {
  position: static !important;
  inset: auto !important;
  flex: 0 0 52px;
  width: 52px !important;
  height: 52px !important;
  border-radius: 15px !important;
  background: linear-gradient(145deg, rgba(4, 45, 28, .98), rgba(0, 16, 10, .96)) !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .28) !important;
}

.panel-no-header .dashboard-menu-panel {
  top: 76px !important;
  bottom: 12px !important;
  max-height: calc(100vh - 88px) !important;
}

.panel-no-header main.user-dashboard,
.panel-no-header main.user-dashboard.dashboard-compact,
.panel-no-header main.user-dashboard.dashboard-compact.module-page {
  padding-top: 0 !important;
}

@media (max-width: 900px) {
  .bg-noise {
    display: none !important;
  }

  .hero-bg-video,
  .hero-card-video {
    display: none !important;
  }

  .hero-card-poster {
    display: block !important;
  }

  .hero,
  .hero-premium {
    min-height: auto !important;
  }

  .feature-card,
  .pillar,
  .program-card,
  .panel,
  .metric-card,
  .glass-form,
  .install-panel,
  .testimonial-card,
  .person-card,
  .stat-card,
  .quick-help-card,
  .dashboard-menu-panel,
  .royal-earning-phone,
  .revenue-profile-strip,
  .revenue-card {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .18) !important;
  }

  .hero-crown-glow,
  .hero-glow-2,
  .royal-earning-phone::before,
  .royal-earning-phone::after,
  .quick-help-card::after {
    display: none !important;
  }

  .home-body section {
    padding-top: 34px !important;
    padding-bottom: 34px !important;
  }
}

.webview-lite *,
.webview-lite *::before,
.webview-lite *::after {
  animation-duration: .001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: .001ms !important;
  scroll-behavior: auto !important;
}

.webview-lite .hero-bg-video,
.webview-lite .hero-card-video {
  display: none !important;
}

@supports (content-visibility: auto) {
  .home-body section:not(.hero):not(.hero-premium),
  .program-card,
  .testimonial-card,
  .quick-help-card,
  .instructor-card {
    content-visibility: auto;
    contain-intrinsic-size: 420px;
  }
}

/* 2026-07-25 restore drawer view while keeping revenue overview tight */
.revenue-overview {
  gap: 2px !important;
  padding: 0 2px 2px !important;
}

.revenue-overview-grid {
  gap: 2px !important;
}

.revenue-profile-strip,
.revenue-card {
  margin: 0 !important;
}

@media (max-width: 760px) {
  .revenue-overview {
    width: calc(100vw - 4px) !important;
    max-width: calc(100vw - 4px) !important;
    margin-left: 2px !important;
    margin-right: 2px !important;
    padding: 0 0 2px !important;
  }
}

/* 2026-07-25 single top user menu, zero-gap revenue overview and pricing slider */
.user-panel-body .dashboard-drawer-toggle,
.user-panel-body .dashboard-menu-panel,
.user-panel-body .dashboard-drawer-backdrop {
  display: none !important;
}

.user-panel-body .nav-wrap {
  min-height: 76px;
  gap: 12px;
}

.main-nav.panel-nav {
  flex: 1 1 auto;
  justify-content: flex-end;
  gap: 10px 14px;
  flex-wrap: wrap;
  font-size: .68rem;
  line-height: 1.1;
  letter-spacing: .06em;
}

.main-nav.panel-nav a {
  padding: 6px 0;
  white-space: nowrap;
}

.dashboard-layout-single,
.user-panel-body .royal-dashboard-layout,
.user-panel-body .dashboard-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 0 !important;
}

.user-panel-body .user-dashboard,
.user-panel-body .module-page,
.user-panel-body main.container.user-dashboard {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 2px 2px !important;
}

.user-panel-body .dashboard-content,
.user-panel-body .dashboard-content-fullscreen {
  gap: 0 !important;
  padding: 0 2px 2px !important;
}

.user-panel-body .revenue-overview {
  width: 100% !important;
  max-width: none !important;
  gap: 2px !important;
  padding: 0 2px 2px !important;
  margin: 0 !important;
}

.user-panel-body .revenue-overview-grid {
  gap: 2px !important;
}

.user-panel-body .revenue-profile-strip,
.user-panel-body .revenue-card {
  margin: 0 !important;
  border-radius: 14px !important;
}

@media (min-width: 981px) {
  .main-nav.panel-nav {
    max-width: calc(100vw - 300px);
    max-height: 72px;
    overflow-y: auto;
    scrollbar-width: thin;
  }
}

@media (max-width: 980px) {
  .main-nav.panel-nav.open {
    max-height: calc(100vh - 86px);
    overflow-y: auto;
  }
}

@media (max-width: 760px) {
  .user-panel-body .user-dashboard,
  .user-panel-body .module-page,
  .user-panel-body main.container.user-dashboard {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .user-panel-body .dashboard-content,
  .user-panel-body .dashboard-content-fullscreen {
    padding-left: 2px !important;
    padding-right: 2px !important;
  }

  .user-panel-body .revenue-overview {
    width: calc(100vw - 4px) !important;
    max-width: calc(100vw - 4px) !important;
    padding: 0 0 2px !important;
  }

  .home-body section .programs-grid,
  main.container > .programs-grid,
  .dashboard-module-section .programs-grid {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 12px !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    scroll-snap-type: x mandatory;
    padding: 0 2px 14px !important;
    -webkit-overflow-scrolling: touch;
  }

  .home-body section .programs-grid > .program-card,
  main.container > .programs-grid > .program-card,
  .dashboard-module-section .programs-grid > .program-card {
    flex: 0 0 min(84vw, 340px) !important;
    width: min(84vw, 340px) !important;
    max-width: min(84vw, 340px) !important;
    scroll-snap-align: start;
  }

  .auth-shell .plan-select-grid {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 12px !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    scroll-snap-type: x mandatory;
    padding: 0 2px 14px !important;
    -webkit-overflow-scrolling: touch;
  }

  .auth-shell .plan-option {
    flex: 0 0 min(82vw, 330px) !important;
    width: min(82vw, 330px) !important;
    max-width: min(82vw, 330px) !important;
    scroll-snap-align: start;
  }
}

/* 2026-07-18 dashboard pages: separate views and mobile full-screen */
.dashboard-content-fullscreen {
  gap: 0 !important;
}

@media (max-width: 760px) {
  main.user-dashboard.dashboard-compact,
  main.user-dashboard.dashboard-compact.module-page,
  .user-dashboard,
  .module-page {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .royal-dashboard-layout,
  .dashboard-layout {
    width: 100% !important;
    max-width: 100% !important;
    gap: 0 !important;
  }

  .dashboard-content,
  .dashboard-content-fullscreen {
    width: 100% !important;
    max-width: 100% !important;
    gap: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .revenue-overview {
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 0 10px 84px !important;
    gap: 12px !important;
  }

  .revenue-profile-strip,
  .revenue-card {
    border-radius: 18px !important;
  }

  .royal-earning-phone,
  .user-dashboard .royal-earning-phone {
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 14px 12px 86px !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-radius: 0 !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .03) !important;
  }

  .royal-earning-phone::before {
    right: -180px !important;
  }

  .royal-earning-head {
    padding-top: 4px !important;
  }

  .royal-line-chart {
    width: 100% !important;
  }

  .royal-earning-cards {
    padding-bottom: 0 !important;
  }
}

@media (max-width: 420px) {
  .revenue-overview {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .royal-earning-phone,
  .user-dashboard .royal-earning-phone {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
}

/* 2026-07-19 earning animation and hero/pricing overflow fixes */
html,
body {
  max-width: 100%;
  overflow-x: hidden !important;
}

.count-money {
  display: inline-block;
  min-width: 1.5ch;
  font-variant-numeric: tabular-nums;
}

.revenue-card .count-money,
.royal-earning-cards .count-money,
.royal-today .count-money {
  text-shadow: 0 0 18px rgba(243, 211, 122, .28);
}

.hero,
.hero-premium,
.hero-grid,
.hero-visual,
.hero-art-card,
.programs-grid,
.program-card,
.image-card,
.plan-select-grid,
.plan-option {
  max-width: 100% !important;
}

.hero,
.hero-premium,
.hero-grid,
.hero-visual,
.hero-art-card,
.programs-grid,
.plan-select-grid {
  overflow-x: hidden !important;
}

.hero-grid,
.hero-visual,
.hero-art-card,
.programs-grid,
.program-card,
.plan-option {
  min-width: 0 !important;
}

.hero-art-card img,
.hero-art-card video,
.hero-card-poster,
.hero-bg-video,
.hero-card-video,
.program-card img,
.image-card img {
  max-width: 100% !important;
  object-fit: cover;
}

.hero-bg-video {
  overflow: hidden !important;
}

@media (max-width: 760px) {
  .home-body .hero,
  .hero,
  .hero-premium {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .hero-grid,
  .hero-premium .container,
  .home-body .hero-grid,
  .programs-grid,
  .plan-select-grid {
    width: 100% !important;
    max-width: 100% !important;
    grid-template-columns: 1fr !important;
    overflow-x: hidden !important;
  }

  .hero-visual,
  .hero-art-card {
    width: 100% !important;
    max-width: 100% !important;
  }

  .hero-art-card {
    border-radius: 22px !important;
  }

  .programs-grid,
  .plan-select-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .program-card,
  .program-card.image-card,
  .plan-option {
    width: 100% !important;
    max-width: 100% !important;
  }

  .royal-earning-cards,
  .revenue-overview-grid {
    grid-template-columns: 1fr !important;
  }

  .royal-earning-cards article {
    min-height: 106px !important;
  }
}

/* 2026-07-19 Meet our instructors carousel */
.instructor-slider {
  position: relative;
  max-width: 100%;
  overflow: hidden;
}

.instructor-viewport {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 8px 2px 18px;
}

.instructor-viewport::-webkit-scrollbar {
  display: none;
}

.instructor-slider .instructor-grid,
.instructor-slider .instructor-track {
  display: flex !important;
  grid-template-columns: none !important;
  gap: 20px;
  width: max-content;
  min-width: 100%;
}

.instructor-slider .instructor-card {
  flex: 0 0 calc((min(1180px, 100vw - 40px) - 60px) / 4);
  width: calc((min(1180px, 100vw - 40px) - 60px) / 4);
  scroll-snap-align: start;
  border-radius: 22px;
  transform: translateZ(0);
}

.instructor-slider .instructor-card img {
  display: block;
}

.instructor-slider-controls {
  position: absolute;
  top: -78px;
  right: 0;
  z-index: 3;
  display: flex;
  gap: 10px;
}

.instructor-slide-btn {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(243, 211, 122, .58);
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(6, 33, 23, .94), rgba(15, 106, 77, .78));
  color: #f3d37a;
  box-shadow: 0 18px 38px rgba(0, 0, 0, .28), 0 0 22px rgba(212, 175, 55, .18);
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.instructor-slide-btn:hover {
  transform: translateY(-2px);
  border-color: #f3d37a;
  box-shadow: 0 20px 44px rgba(0, 0, 0, .34), 0 0 28px rgba(212, 175, 55, .28);
}

.instructor-slide-btn .icon-svg {
  width: 22px;
  height: 22px;
}

.instructor-dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 4px;
}

.instructor-dots button {
  width: 10px;
  height: 10px;
  border: 1px solid rgba(243, 211, 122, .68);
  border-radius: 999px;
  background: rgba(243, 211, 122, .18);
  padding: 0;
  cursor: pointer;
  transition: width .2s ease, background .2s ease, box-shadow .2s ease;
}

.instructor-dots button.is-active {
  width: 28px;
  background: linear-gradient(90deg, #d4af37, #f3d37a);
  box-shadow: 0 0 18px rgba(243, 211, 122, .45);
}

@media (max-width: 1024px) {
  .instructor-slider .instructor-card {
    flex-basis: calc((100vw - 86px) / 3);
    width: calc((100vw - 86px) / 3);
  }
}

@media (max-width: 760px) {
  .instructor-slider {
    width: 100%;
  }

  .instructor-slider-controls {
    position: static;
    justify-content: flex-end;
    margin: -6px 0 12px;
  }

  .instructor-slide-btn {
    width: 44px;
    height: 44px;
  }

  .instructor-viewport {
    padding: 4px 0 14px;
    overflow-x: auto !important;
  }

  .instructor-slider .instructor-grid,
  .instructor-slider .instructor-track {
    gap: 14px !important;
    width: max-content !important;
    min-width: 100% !important;
  }

  .instructor-slider .instructor-card {
    flex: 0 0 min(82vw, 330px) !important;
    width: min(82vw, 330px) !important;
    min-height: 360px;
    border-radius: 22px;
  }

  .instructor-slider .instructor-card img {
    min-height: 360px;
  }
}

/* 2026-07-24 admin homepage video helper */
.homepage-video-admin-panel {
  border-color: rgba(243, 211, 122, .42) !important;
  background:
    radial-gradient(circle at 12% 20%, rgba(243, 211, 122, .14), transparent 18rem),
    linear-gradient(145deg, rgba(6, 33, 23, .92), rgba(8, 70, 50, .76)) !important;
}

.homepage-video-admin-panel p {
  max-width: 860px;
  color: rgba(255, 253, 248, .82) !important;
}

.homepage-video-admin-panel strong,
.homepage-video-admin-panel .dashboard-section-title span,
.homepage-video-admin-panel .dashboard-section-title strong {
  color: #f3d37a !important;
}

/* 2026-07-24 bigger logo and sponsor name in profile */
.site-header .brand-logo,
.home-body .brand-logo {
  width: min(248px, 48vw) !important;
  height: 76px !important;
}

.footer-brand .brand-logo {
  width: min(248px, 70vw) !important;
  height: 76px !important;
}

.admin-brand-logo {
  width: 230px !important;
  height: 88px !important;
}

.sponsor-name {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 5px 10px;
  border: 1px solid rgba(243, 211, 122, .34);
  border-radius: 999px;
  background: rgba(243, 211, 122, .09);
  color: #f3d37a !important;
  font-size: .72rem !important;
  font-style: normal;
  font-weight: 850;
  line-height: 1.2;
  overflow-wrap: anywhere;
  text-align: center;
}

.dashboard-profile-card .sponsor-name {
  width: 100%;
}

.royal-profile-block .sponsor-name {
  justify-content: flex-start;
  width: max-content;
}

.profile-edit-head .sponsor-name,
.revenue-profile-strip .sponsor-name {
  margin-top: 8px;
}

@media (max-width: 980px) {
  .royal-profile-block {
    grid-template-areas:
      "photo name"
      "photo online"
      "photo plan"
      "photo sponsor" !important;
  }

  .royal-profile-block .sponsor-name {
    grid-area: sponsor !important;
    width: 100%;
    justify-content: flex-start;
    font-size: .72rem !important;
  }
}

@media (max-width: 760px) {
  .site-header .brand-logo,
  .home-body .brand-logo {
    width: min(232px, 64vw) !important;
    height: 66px !important;
  }

  .admin-brand-logo {
    width: 194px !important;
    height: 76px !important;
  }
}

/* 2026-07-24 quick help homepage/user panel */
.quick-help-section {
  background:
    radial-gradient(circle at 15% 12%, rgba(243, 211, 122, .18), transparent 18rem),
    radial-gradient(circle at 86% 20%, rgba(15, 106, 77, .34), transparent 20rem),
    linear-gradient(145deg, #02140e 0%, #062117 48%, #0a4b37 100%);
  color: #fffdf8;
  padding: clamp(46px, 7vw, 90px) 0;
}

.quick-help-section .section-title,
.quick-help-section .section-desc,
.quick-help-section .section-eyebrow {
  color: #fffdf8;
}

.quick-help-section .section-desc {
  color: rgba(255, 253, 248, .78);
}

.quick-help-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.quick-help-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 310px;
  overflow: hidden;
  border: 1px solid rgba(243, 211, 122, .42);
  border-radius: 24px;
  background: #062117;
  color: #fffdf8;
  text-decoration: none;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .08);
  transform: translateZ(0);
}

.quick-help-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 20, 14, .08), rgba(2, 20, 14, .82)),
    radial-gradient(circle at 70% 20%, rgba(243, 211, 122, .22), transparent 12rem);
  z-index: 1;
}

.quick-help-card::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(243, 211, 122, .18);
  border-radius: 18px;
  z-index: 2;
  pointer-events: none;
}

.quick-help-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .72;
  transform: scale(1.02);
  transition: transform .35s ease, opacity .35s ease;
}

.quick-help-card:hover img {
  opacity: .82;
  transform: scale(1.07);
}

.quick-help-card > div {
  position: relative;
  z-index: 3;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 22px;
}

.quick-help-card span {
  width: max-content;
  padding: 6px 10px;
  border: 1px solid rgba(243, 211, 122, .5);
  border-radius: 999px;
  background: rgba(2, 20, 14, .62);
  color: #f3d37a;
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.quick-help-card small {
  color: rgba(243, 211, 122, .9);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.quick-help-card h3 {
  margin: 0;
  color: #fff7d6;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.45rem, 2vw, 2.05rem);
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 0 18px rgba(243, 211, 122, .22);
}

.quick-help-card p {
  margin: 0;
  color: rgba(255, 253, 248, .82);
  font-size: .9rem;
  font-weight: 650;
  line-height: 1.48;
}

.quick-help-card em {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  margin-top: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #d4af37, #f3d37a);
  color: #062117;
  font-size: .76rem;
  font-style: normal;
  font-weight: 950;
  line-height: 1.1;
}

.quick-help-panel {
  background:
    radial-gradient(circle at 18% 8%, rgba(243, 211, 122, .14), transparent 18rem),
    linear-gradient(145deg, rgba(2, 20, 14, .98), rgba(6, 44, 31, .95)) !important;
  color: #fffdf8;
}

.quick-help-panel .dashboard-section-desc {
  margin: -4px 0 18px;
  color: rgba(255, 253, 248, .78);
  font-weight: 650;
}

.quick-help-panel .quick-help-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.quick-help-panel .quick-help-card {
  min-height: 250px;
  border-radius: 20px;
}

.quick-help-panel .quick-help-card > div {
  padding: 18px;
}

@media (max-width: 1180px) {
  .quick-help-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .quick-help-section {
    padding: 36px 0 44px;
  }

  .quick-help-grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 2px 2px 12px;
    -webkit-overflow-scrolling: touch;
  }

  .quick-help-card {
    flex: 0 0 min(84vw, 330px);
    min-height: 330px;
    scroll-snap-align: start;
  }

  .quick-help-panel .quick-help-grid {
    display: grid;
    grid-template-columns: 1fr;
    overflow: visible;
    padding: 0;
  }

  .quick-help-panel .quick-help-card {
    min-height: 240px;
    flex-basis: auto;
  }
}

/* 2026-07-25 dashboard gap trim, industry cards and admin upload paths */
.dashboard-content,
.royal-dashboard-layout,
.dashboard-layout {
  gap: 2px !important;
}

.dashboard-content {
  padding: 2px !important;
  padding-bottom: 2px !important;
}

.dashboard-content .royal-earning-phone,
.dashboard-content .revenue-overview {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

.royal-earning-cards {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.instructor-slider-controls {
  display: none !important;
}

.upload-preview-block {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin: 0 0 16px;
  padding: 12px;
  border: 1px solid rgba(243, 211, 122, .32);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(2, 20, 14, .86), rgba(7, 66, 47, .64));
  color: #fff8df;
}

.upload-preview-block img,
.upload-preview-empty {
  width: 112px;
  height: 88px;
  border-radius: 14px;
  border: 1px solid rgba(243, 211, 122, .30);
  background: rgba(0, 0, 0, .22);
  object-fit: cover;
}

.upload-preview-empty {
  display: grid;
  place-items: center;
  color: #f3d37a;
}

.upload-preview-block strong,
.upload-preview-block span {
  display: block;
  color: #fff8df !important;
}

.upload-preview-block strong {
  font-size: 1rem;
  font-weight: 900;
}

.upload-preview-block span {
  margin: 5px 0;
  color: rgba(255, 248, 223, .72) !important;
  font-size: .78rem;
  font-weight: 850;
}

.asset-path,
.theme-dark .asset-path {
  display: inline-block;
  max-width: 100%;
  padding: 7px 9px;
  border: 1px solid rgba(243, 211, 122, .28);
  border-radius: 10px;
  background: rgba(0, 0, 0, .26);
  color: #f3d37a !important;
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
}

.image-path-notice {
  display: grid;
  gap: 8px;
  align-content: center;
}

.asset-path-row {
  display: grid;
  gap: 8px;
  margin-top: 12px !important;
}

@media (max-width: 980px) {
  .royal-earning-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  main.user-dashboard.dashboard-compact,
  main.user-dashboard.dashboard-compact.module-page,
  .user-dashboard,
  .module-page {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .dashboard-content {
    padding: 0 2px 2px !important;
  }

  .royal-earning-phone,
  .user-dashboard .royal-earning-phone,
  .revenue-overview {
    width: calc(100vw - 4px) !important;
    max-width: calc(100vw - 4px) !important;
    margin-left: 2px !important;
    margin-right: 2px !important;
  }

  .royal-earning-phone,
  .user-dashboard .royal-earning-phone {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .upload-preview-block {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
    border-radius: 14px;
  }

  .upload-preview-block img,
  .upload-preview-empty {
    width: 86px;
    height: 70px;
  }
}

@media (max-width: 420px) {
  .royal-earning-cards {
    grid-template-columns: 1fr !important;
  }
}
