/* MESH Design Language (MDL) 1.0 — shared tokens + component library. Loaded
   first so styles.css and pages can consume var(--mdl-*) / .mesh-* anywhere.
   Additive only: the existing :root palette + theme variants below are the
   base source of truth and are unchanged. See docs/MESH_DESIGN_LANGUAGE.md. */

:root {
  --mesh-bg: #030712;
  --mesh-bg-soft: #09111f;
  --mesh-bg-deep: #01040a;
  --mesh-panel: rgba(12, 22, 38, 0.82);
  --mesh-card: rgba(16, 29, 49, 0.72);
  --mesh-card-strong: rgba(23, 38, 62, 0.9);
  --mesh-gold: #f8c84e;
  --mesh-gold-soft: #ffe27a;
  --mesh-gold-deep: #b98516;
  --mesh-text: #f8fafc;
  --mesh-muted: #aab6c8;
  --mesh-border: rgba(248, 200, 78, 0.22);
  --mesh-border-soft: rgba(255, 255, 255, 0.1);
  --mesh-glow: 0 0 36px rgba(248, 200, 78, 0.24);
  --mesh-glow-strong: 0 0 64px rgba(248, 200, 78, 0.34);
  --mesh-radius-sm: 8px;
  --mesh-radius-md: 14px;
  --mesh-radius-lg: 22px;
  --mesh-radius-xl: 30px;
  --mesh-shadow-sm: 0 12px 30px rgba(0, 0, 0, 0.28);
  --mesh-shadow-md: 0 22px 60px rgba(0, 0, 0, 0.38);
  --mesh-shadow-lg: 0 34px 90px rgba(0, 0, 0, 0.52);
  --mesh-space: 48px;
  --mesh-max: 1180px;

  --mesh-nav-text: #dbe5f3;
  --mesh-header-bg: rgba(3, 7, 18, 0.72);
  --mesh-radial-1: rgba(248, 200, 78, 0.14);
  --mesh-radial-2: rgba(56, 189, 248, 0.12);
}

:root[data-theme="black-gold"] {
  --mesh-bg: #030712;
  --mesh-bg-soft: #09111f;
  --mesh-bg-deep: #01040a;
  --mesh-panel: rgba(12, 22, 38, 0.82);
  --mesh-card: rgba(16, 29, 49, 0.72);
  --mesh-card-strong: rgba(23, 38, 62, 0.9);
  --mesh-gold: #f8c84e;
  --mesh-gold-soft: #ffe27a;
  --mesh-gold-deep: #b98516;
  --mesh-text: #f8fafc;
  --mesh-muted: #aab6c8;
  --mesh-border: rgba(248, 200, 78, 0.22);
  --mesh-border-soft: rgba(255, 255, 255, 0.1);
  --mesh-glow: 0 0 36px rgba(248, 200, 78, 0.24);
  --mesh-glow-strong: 0 0 64px rgba(248, 200, 78, 0.34);

  --mesh-nav-text: #dbe5f3;
  --mesh-header-bg: rgba(3, 7, 18, 0.72);
  --mesh-radial-1: rgba(248, 200, 78, 0.14);
  --mesh-radial-2: rgba(56, 189, 248, 0.12);
}

:root[data-theme="dark"] {
  --mesh-bg: #0f172a;
  --mesh-bg-soft: #1e293b;
  --mesh-bg-deep: #020617;
  --mesh-panel: rgba(30, 41, 59, 0.82);
  --mesh-card: rgba(30, 41, 59, 0.72);
  --mesh-card-strong: rgba(51, 65, 85, 0.9);
  
  --mesh-gold: #38bdf8;
  --mesh-gold-soft: #7dd3fc;
  --mesh-gold-deep: #0284c7;
  
  --mesh-text: #f8fafc;
  --mesh-muted: #94a3b8;
  --mesh-border: rgba(56, 189, 248, 0.22);
  --mesh-border-soft: rgba(255, 255, 255, 0.08);
  --mesh-glow: 0 0 36px rgba(56, 189, 248, 0.16);
  --mesh-glow-strong: 0 0 64px rgba(56, 189, 248, 0.26);
  
  --mesh-nav-text: #94a3b8;
  --mesh-header-bg: rgba(15, 23, 42, 0.75);
  
  --mesh-radial-1: rgba(56, 189, 248, 0.1);
  --mesh-radial-2: rgba(99, 102, 241, 0.08);
}

:root[data-theme="light"] {
  --mesh-bg: #f8fafc;
  --mesh-bg-soft: #f1f5f9;
  --mesh-bg-deep: #e2e8f0;
  --mesh-panel: rgba(255, 255, 255, 0.85);
  --mesh-card: rgba(255, 255, 255, 0.88);
  --mesh-card-strong: #ffffff;
  
  --mesh-gold: #c27803;
  --mesh-gold-soft: #e0940b;
  --mesh-gold-deep: #9c5200;
  
  --mesh-text: #0f172a;
  --mesh-muted: #475569;
  --mesh-border: rgba(194, 120, 3, 0.25);
  --mesh-border-soft: rgba(15, 23, 42, 0.08);
  --mesh-glow: 0 0 36px rgba(194, 120, 3, 0.12);
  --mesh-glow-strong: 0 0 64px rgba(194, 120, 3, 0.22);
  
  --mesh-nav-text: #475569;
  --mesh-header-bg: rgba(255, 255, 255, 0.8);
  
  --mesh-radial-1: rgba(194, 120, 3, 0.08);
  --mesh-radial-2: rgba(56, 189, 248, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 0;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 12%, rgba(248, 200, 78, 0.14), transparent 27%),
    radial-gradient(circle at 84% 4%, rgba(56, 189, 248, 0.12), transparent 25%),
    linear-gradient(140deg, var(--mesh-bg-deep) 0%, var(--mesh-bg) 44%, #0b1324 100%);
  color: var(--mesh-text);
  font-family: Inter, "Kantumruy Pro", "Noto Sans Khmer", "Khmer OS Siemreap", "Khmer OS Battambang", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 82%);
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

img {
  max-width: 100%;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0 0 16px;
  font-size: 78px;
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0;
}

p {
  color: var(--mesh-muted);
  line-height: 1.65;
}

.site-body {
  display: block;
  overflow-x: hidden;
  color: var(--mesh-text);
}

.page-shell {
  width: min(720px, calc(100% - 48px));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  width: min(100% - 32px, 1240px);
  margin: 14px auto 0;
  border: 1px solid var(--mesh-border-soft);
  border-radius: var(--mesh-radius-lg);
  padding: 12px 14px;
  background: rgba(3, 7, 18, 0.72);
  box-shadow: var(--mesh-shadow-sm);
  backdrop-filter: blur(18px);
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--mesh-text);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.site-logo img {
  width: 42px;
  height: 42px;
  filter: drop-shadow(0 0 16px rgba(248, 200, 78, 0.38));
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}

.site-nav a,
.site-actions a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 999px;
  padding: 8px 12px;
  color: #dbe5f3;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a::after {
  position: absolute;
  right: 14px;
  bottom: 4px;
  left: 14px;
  height: 2px;
  border-radius: 99px;
  content: "";
  background: transparent;
  box-shadow: none;
}

.site-nav a.active,
.site-nav a:hover,
.site-actions a:hover {
  color: var(--mesh-gold-soft);
}

.site-nav a.active::after {
  background: linear-gradient(90deg, transparent, var(--mesh-gold), transparent);
  box-shadow: var(--mesh-glow);
}

/* Dropdown Navigation */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown-trigger {
  cursor: pointer;
  user-select: none;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  display: none;
  flex-direction: column;
  background: rgba(18, 22, 32, 0.95);
  border: 1px solid rgba(255, 210, 90, 0.20);
  border-radius: var(--mesh-radius-md);
  padding: 8px 0;
  min-width: 190px;
  z-index: 100;
  box-shadow: var(--mesh-shadow-md);
  backdrop-filter: blur(18px);
  gap: 2px;
}

.nav-dropdown-menu a {
  display: flex !important;
  align-items: center;
  width: 100%;
  padding: 8px 16px !important;
  font-size: 13px !important;
  color: #dbe5f3 !important;
  text-decoration: none;
  border-radius: 0 !important;
  min-height: auto !important;
  justify-content: flex-start !important;
  box-sizing: border-box;
}

.nav-dropdown-menu a:hover {
  background: rgba(255, 210, 90, 0.12) !important;
  color: var(--mesh-gold-soft) !important;
}

.nav-dropdown-menu a.active {
  color: #171003 !important;
  background: linear-gradient(135deg, var(--mesh-gold-soft), var(--mesh-gold) 46%, var(--mesh-gold-deep)) !important;
}

/* Hover & Open trigger */
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  display: flex;
}

/* Mobile responsive navigation styles */
@media (max-width: 768px) {
  .nav-dropdown-menu {
    position: static !important;
    transform: none !important;
    box-shadow: none !important;
    border: none !important;
    background: rgba(0, 0, 0, 0.2) !important;
    padding-left: 14px !important;
    min-width: 100% !important;
    display: none;
  }
  
  .nav-dropdown.open .nav-dropdown-menu {
    display: flex !important;
  }
}


.site-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  position: relative !important;
  z-index: 60 !important;
  pointer-events: auto !important;
}

.nav-user-email {
  display: inline-block;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 800;
  color: #dbe5f3;
}

.nav-logout-form {
  margin: 0;
}

.nav-logout-form button {
  min-height: 38px;
  border: 1px solid rgba(248, 113, 113, 0.45);
  background: rgba(127, 29, 29, 0.32);
  color: #fecaca;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.site-nav-cta,
.button-primary,
.site-button,
.download-button,
.table-action,
.account-form button,
.form-row button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  color: #171003;
  background: linear-gradient(135deg, var(--mesh-gold-soft), var(--mesh-gold) 46%, var(--mesh-gold-deep));
  box-shadow: 0 12px 32px rgba(248, 200, 78, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  font: inherit;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.button-secondary,
.secondary-action {
  border: 1px solid var(--mesh-border);
  color: var(--mesh-text);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 24px rgba(248, 200, 78, 0.05), var(--mesh-shadow-sm);
}

.danger-action {
  color: #fff;
  background: linear-gradient(135deg, #ef4444, #991b1b);
}

.site-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
  align-items: center;
  gap: 64px;
  width: min(var(--mesh-max), calc(100% - 32px));
  min-height: calc(100vh - 92px);
  margin: 0 auto;
  padding: 96px 0 72px;
}

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

.hero-kicker,
.eyebrow {
  margin: 0 0 14px;
  color: var(--mesh-gold-soft);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-title span {
  display: block;
  color: var(--mesh-gold-soft);
  overflow-wrap: anywhere;
  text-shadow: 0 0 28px rgba(248, 200, 78, 0.24);
}

.site-lead,
.hero-copy > p {
  max-width: 660px;
  margin: 0;
  color: #ccd7e8;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
  padding: 0;
  list-style: none;
}

.trust-row li,
.trust-badge,
.status-badge,
.popular-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--mesh-border-soft);
  border-radius: 999px;
  padding: 8px 11px;
  color: #dbe5f3;
  background: rgba(255, 255, 255, 0.055);
  font-size: 13px;
  font-weight: 760;
}

.trust-row li::before,
.feature-card li::before,
.plan-card li::before,
.requirements-list li::before {
  color: var(--mesh-gold);
  content: "✓";
}

.hero-visual {
  position: relative;
  min-width: 0;
}

.editor-mockup,
.glass-card,
.site-card,
.site-empty,
.account-panel,
.site-list article,
.event-list article,
.download-item {
  border: 1px solid var(--mesh-border-soft);
  border-radius: var(--mesh-radius-lg);
  background: linear-gradient(145deg, rgba(17, 29, 49, 0.86), rgba(9, 17, 31, 0.72));
  box-shadow: var(--mesh-shadow-md);
  backdrop-filter: blur(18px);
}

.editor-mockup {
  position: relative;
  overflow: hidden;
  padding: 16px;
  box-shadow: var(--mesh-shadow-lg), var(--mesh-glow);
}

.editor-mockup::before {
  position: absolute;
  inset: -40% -10% auto auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  content: "";
  background: radial-gradient(circle, rgba(248, 200, 78, 0.26), transparent 62%);
}

.mockup-topbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--mesh-border-soft);
  padding-bottom: 14px;
}

.mockup-dots {
  display: flex;
  gap: 7px;
}

.mockup-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--mesh-gold);
  box-shadow: var(--mesh-glow);
}

.mockup-topbar strong {
  color: var(--mesh-gold-soft);
}

.mockup-body {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 92px;
  gap: 14px;
  padding-top: 16px;
}

.mockup-preview {
  display: grid;
  place-items: center;
  min-height: 260px;
  border: 1px solid rgba(248, 200, 78, 0.18);
  border-radius: var(--mesh-radius-md);
  background:
    linear-gradient(135deg, rgba(248, 200, 78, 0.22), transparent 34%),
    linear-gradient(160deg, #18243a, #050a14);
}

.mockup-play {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 1px solid var(--mesh-border);
  border-radius: 50%;
  color: var(--mesh-gold-soft);
  background: rgba(3, 7, 18, 0.72);
  box-shadow: var(--mesh-glow);
  font-size: 32px;
}

.mockup-tools {
  display: grid;
  gap: 10px;
}

.mockup-tools span,
.timeline-track span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
}

.mockup-timeline {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.timeline-track {
  display: grid;
  grid-template-columns: 1.1fr 0.7fr 1.5fr;
  gap: 8px;
}

.timeline-track span {
  height: 18px;
}

.timeline-track span:nth-child(2) {
  background: rgba(248, 200, 78, 0.65);
  box-shadow: var(--mesh-glow);
}

.release-float {
  position: absolute;
  right: -12px;
  bottom: -20px;
  width: min(260px, 74%);
  padding: 16px;
}

.release-float strong {
  display: block;
  margin-bottom: 6px;
  color: var(--mesh-gold-soft);
}

.release-float p {
  margin: 0;
  font-size: 13px;
}

.hero-showcase {
  min-height: 540px;
}

.showcase-stage {
  position: relative;
  min-height: 520px;
  isolation: isolate;
}

.showcase-stage::before {
  position: absolute;
  inset: 8% 8% auto auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  content: "";
  background: radial-gradient(circle, rgba(248, 200, 78, 0.2), transparent 68%);
  filter: blur(4px);
  z-index: -1;
}

.showcase-device {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(248, 200, 78, 0.18);
  background: linear-gradient(145deg, rgba(14, 24, 41, 0.94), rgba(3, 7, 18, 0.92));
  box-shadow: var(--mesh-shadow-lg), 0 0 42px rgba(248, 200, 78, 0.12);
  backdrop-filter: blur(18px);
}

.showcase-laptop {
  top: 42px;
  right: 0;
  width: min(100%, 620px);
  border-radius: 22px;
  padding: 14px;
}

.showcase-device-top {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  color: var(--mesh-gold-soft);
  font-size: 12px;
  font-weight: 850;
}

.showcase-device-top span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(248, 200, 78, 0.8);
  box-shadow: 0 0 12px rgba(248, 200, 78, 0.35);
}

.showcase-device-top strong {
  margin-left: auto;
}

.showcase-screen {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(135deg, rgba(248, 200, 78, 0.1), transparent 38%),
    linear-gradient(160deg, #0f172a, #020617);
}

.showcase-laptop .showcase-screen {
  aspect-ratio: 16 / 10;
  border-radius: 14px;
}

.showcase-laptop-base {
  width: 74%;
  height: 18px;
  margin: 12px auto 0;
  border-radius: 0 0 24px 24px;
  background: linear-gradient(180deg, rgba(248, 200, 78, 0.18), rgba(255, 255, 255, 0.06));
}

.showcase-phone {
  right: -12px;
  bottom: 24px;
  width: min(32vw, 190px);
  min-width: 150px;
  border-radius: 30px;
  padding: 13px 10px 12px;
  box-shadow: var(--mesh-shadow-lg), 0 0 36px rgba(59, 130, 246, 0.18);
}

.showcase-phone-speaker {
  width: 44px;
  height: 5px;
  margin: 0 auto 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.showcase-phone .showcase-screen {
  aspect-ratio: 9 / 16;
  border-radius: 21px;
}

.showcase-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: scale(1.025);
  transition: opacity 900ms ease, transform 5200ms ease;
}

.showcase-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

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

.showcase-slide figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  max-width: calc(100% - 28px);
  border: 1px solid rgba(248, 200, 78, 0.16);
  border-radius: 999px;
  padding: 7px 11px;
  color: #fff7d6;
  background: rgba(3, 7, 18, 0.62);
  font-size: 12px;
  font-weight: 850;
  backdrop-filter: blur(12px);
}

.showcase-phone figcaption {
  left: 9px;
  right: 9px;
  bottom: 10px;
  max-width: none;
  border-radius: 12px;
  text-align: center;
}

.showcase-clock {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 7px 10px;
  color: #e5ecf8;
  background: rgba(3, 7, 18, 0.62);
  font-size: 12px;
  font-weight: 780;
  backdrop-filter: blur(12px);
}

.showcase-clock-phone {
  top: 8px;
  right: 8px;
  max-width: calc(100% - 16px);
  border-radius: 12px;
  padding: 5px 7px;
  font-size: 10px;
}

.showcase-badges {
  position: absolute;
  left: 0;
  bottom: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  width: min(390px, 70%);
}

.showcase-badges span {
  border: 1px solid rgba(248, 200, 78, 0.2);
  border-radius: 999px;
  padding: 8px 10px;
  color: #f9e7a0;
  background: rgba(3, 7, 18, 0.62);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  font-size: 12px;
  font-weight: 850;
  backdrop-filter: blur(12px);
}

.cms-body {
  min-height: 100vh;
}

.cms-shell {
  width: min(var(--mesh-max), calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 72px;
}

.cms-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.cms-header p {
  max-width: 680px;
  margin: 8px 0 0;
  color: #ccd7e8;
}

.cms-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 24px 0;
}

.cms-panel {
  border: 1px solid var(--mesh-border-soft);
  border-radius: var(--mesh-radius-lg);
  background: linear-gradient(145deg, rgba(17, 29, 49, 0.86), rgba(9, 17, 31, 0.72));
  box-shadow: var(--mesh-shadow-md);
  padding: 22px;
  backdrop-filter: blur(18px);
}

.cms-panel h2,
.cms-panel h3 {
  margin-top: 0;
}

.cms-form {
  display: grid;
  gap: 12px;
}

.cms-form label {
  display: grid;
  gap: 7px;
  color: #dbe5f3;
  font-size: 13px;
  font-weight: 800;
}

.cms-form input,
.cms-form select {
  min-height: 42px;
  border: 1px solid var(--mesh-border-soft);
  border-radius: 8px;
  padding: 9px 11px;
  color: #fff;
  background: rgba(3, 7, 18, 0.52);
  font: inherit;
}

.cms-form input[type="file"] {
  padding: 8px;
}

.cms-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.cms-check {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 9px !important;
}

.cms-check input {
  width: 18px;
  min-height: 18px;
}

.cms-form button,
.cms-actions button {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  padding: 10px 15px;
  color: #171003;
  background: linear-gradient(135deg, var(--mesh-gold-soft), var(--mesh-gold) 46%, #d99a19);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.cms-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cms-list-heading {
  margin: 24px 0 12px;
  color: var(--mesh-gold-soft);
}

.cms-slide-list {
  display: grid;
  gap: 16px;
}

.cms-slide-card {
  display: grid;
  grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px;
  background: rgba(3, 7, 18, 0.28);
}

.cms-slide-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  object-fit: cover;
  background: #020617;
}

.site-section {
  width: min(var(--mesh-max), calc(100% - 32px));
  margin: 0 auto;
  padding: 76px 0;
}

.top-section {
  padding-top: 88px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-heading p {
  max-width: 560px;
  margin: 8px 0 0;
}

.stats-bar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  border: 1px solid var(--mesh-border-soft);
  border-radius: var(--mesh-radius-xl);
  padding: 14px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: var(--mesh-shadow-sm);
}

.stat-card {
  padding: 18px 12px;
  text-align: center;
}

.stat-card strong {
  display: block;
  color: var(--mesh-gold-soft);
  font-size: 34px;
  line-height: 1;
}

.stat-card span {
  display: block;
  margin-top: 8px;
  color: var(--mesh-muted);
  font-size: 13px;
  font-weight: 700;
}

.site-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.pricing-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

@media (min-width: 821px) {
  .pricing-plan-custom {
    grid-column: 2;
  }
}

.pricing-plan-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto auto auto 1fr;
  gap: 16px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--mesh-border-soft);
  border-radius: var(--mesh-radius-lg);
  background:
    linear-gradient(145deg, rgba(17, 29, 49, 0.86), rgba(9, 17, 31, 0.72));
  box-shadow: var(--mesh-shadow-md);
  padding: 24px;
  backdrop-filter: blur(18px);
}

.pricing-plan-card::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.5;
}

.pricing-plan-free {
  border-color: rgba(var(--mdl-plan-free-rgb), 0.38);
}

.pricing-plan-free::before {
  background: radial-gradient(circle at 20% 0%, rgba(var(--mdl-plan-free-rgb), 0.18), transparent 34%);
}

.pricing-plan-plus {
  border-color: rgba(var(--mdl-plan-plus-rgb), 0.56);
}

.pricing-plan-plus::before {
  background: radial-gradient(circle at 20% 0%, rgba(var(--mdl-plan-plus-rgb), 0.22), transparent 36%);
}

.pricing-plan-pro {
  border-color: rgba(var(--mdl-plan-pro-rgb), 0.42);
}

.pricing-plan-pro::before {
  background: radial-gradient(circle at 20% 0%, rgba(var(--mdl-plan-pro-rgb), 0.2), transparent 36%);
}

.pricing-plan-custom {
  border-color: rgba(var(--mdl-plan-custom-rgb), 0.5);
}

.pricing-plan-custom::before {
  background: radial-gradient(circle at 20% 0%, rgba(var(--mdl-plan-custom-rgb), 0.25), transparent 36%);
}

.pricing-plan-card.is-featured {
  box-shadow: var(--mesh-shadow-lg), var(--mesh-glow);
}

.pricing-plan-card > * {
  position: relative;
  z-index: 1;
}

.pricing-plan-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 34px;
}

.pricing-plan-kicker {
  color: var(--mesh-muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.pricing-plan-free .pricing-plan-kicker {
  color: var(--mdl-plan-free);
}

.pricing-plan-plus .pricing-plan-kicker {
  color: var(--mdl-plan-plus);
}

.pricing-plan-pro .pricing-plan-kicker {
  color: var(--mdl-plan-pro);
}

.pricing-plan-custom .pricing-plan-kicker {
  color: var(--mdl-plan-custom);
}

.billing-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  border: 1px solid var(--mesh-border-soft);
  border-radius: 999px;
  background: rgba(3, 7, 18, 0.46);
  padding: 4px;
}

.billing-toggle-btn {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--mesh-muted);
  font-weight: 850;
  cursor: pointer;
}

.billing-toggle-btn.is-active {
  color: #171003;
  background: linear-gradient(135deg, var(--mesh-gold-soft), var(--mesh-gold));
  box-shadow: 0 10px 24px rgba(248, 200, 78, 0.22);
}

.pricing-plan-pro .billing-toggle-btn.is-active {
  color: #031321;
  background: linear-gradient(135deg, #bae6fd, #38bdf8);
  box-shadow: 0 10px 24px rgba(56, 189, 248, 0.22);
}

.pricing-active-price {
  display: grid;
  gap: 4px;
  min-height: 70px;
  align-content: center;
}

.pricing-active-price strong {
  font-size: 36px;
  line-height: 1;
  font-weight: 950;
  color: #ffffff;
}

.pricing-active-price span {
  color: var(--mesh-muted);
  font-weight: 800;
}

.pricing-buy-button {
  width: 100%;
}

.pricing-plan-free .pricing-buy-button {
  background: linear-gradient(135deg, rgba(var(--mdl-plan-free-rgb), 0.6), var(--mdl-plan-free));
  box-shadow: 0 12px 32px rgba(var(--mdl-plan-free-rgb), 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

.pricing-plan-pro .pricing-buy-button {
  color: #031321;
  background: linear-gradient(135deg, rgba(var(--mdl-plan-pro-rgb), 0.6), var(--mdl-plan-pro));
  box-shadow: 0 12px 32px rgba(var(--mdl-plan-pro-rgb), 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

.pricing-plan-custom .pricing-buy-button {
  color: #0b0f1a;
  background: linear-gradient(135deg, rgba(var(--mdl-plan-custom-rgb), 0.6), var(--mdl-plan-custom));
  box-shadow: 0 12px 32px rgba(var(--mdl-plan-custom-rgb), 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

.pricing-feature-list {
  display: grid;
  gap: 10px;
  align-content: start;
  margin: 0;
  padding: 0;
  color: #dbe5f3;
  list-style: none;
}

.pricing-feature-list li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
}

.pricing-feature-list li::before {
  flex: 0 0 auto;
  color: var(--mesh-gold);
  content: "\2713";
}

.pricing-plan-free .pricing-feature-list li::before {
  color: var(--mdl-plan-free);
}

.pricing-plan-plus .pricing-feature-list li::before {
  color: var(--mdl-plan-plus);
}

.pricing-plan-pro .pricing-feature-list li::before {
  color: var(--mdl-plan-pro);
}

.pricing-plan-custom .pricing-feature-list li::before {
  color: var(--mdl-plan-custom);
}

.site-card {
  min-width: 0;
  padding: 22px;
}

.site-card h2,
.site-card h3 {
  color: var(--mesh-text);
}

.site-card p {
  margin-bottom: 0;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border: 1px solid var(--mesh-border);
  border-radius: 14px;
  color: var(--mesh-gold-soft);
  background: rgba(248, 200, 78, 0.08);
  box-shadow: var(--mesh-glow);
  font-weight: 900;
}

.plan-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 16px;
}

.plan-card.featured {
  border-color: rgba(248, 200, 78, 0.55);
  box-shadow: var(--mesh-shadow-lg), var(--mesh-glow);
}

.popular-badge {
  width: fit-content;
  color: #211500;
  background: linear-gradient(135deg, var(--mesh-gold-soft), var(--mesh-gold));
}

.price-line {
  margin: 0;
  color: var(--mesh-gold-soft) !important;
  font-size: 36px;
  font-weight: 900;
  line-height: 1;
}

.price-line span {
  color: var(--mesh-muted);
  font-size: 14px;
  font-weight: 750;
}

.plan-price-summary {
  display: grid;
  gap: 8px;
  margin: 0;
}

.plan-price-summary div,
.billing-option-card,
.current-plan-card {
  border: 1px solid var(--mesh-border-soft);
  border-radius: var(--mesh-radius-sm);
  background: rgba(3, 7, 18, 0.32);
  padding: 12px;
}

.plan-price-summary dt,
.billing-option-card span,
.current-plan-card dt {
  color: var(--mesh-muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.plan-price-summary dd,
.current-plan-card dd {
  margin: 4px 0 0;
  color: var(--mesh-text);
  font-weight: 850;
}

.billing-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.billing-modal:target {
  display: flex;
}

.billing-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 4, 10, 0.78);
  backdrop-filter: blur(10px);
}

.billing-modal-card {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  border: 1px solid var(--mesh-border);
  border-radius: var(--mesh-radius-lg);
  background:
    linear-gradient(145deg, rgba(17, 29, 49, 0.96), rgba(3, 7, 18, 0.94));
  box-shadow: var(--mesh-shadow-lg), var(--mesh-glow);
  padding: 28px;
}

.billing-option-grid,
.account-plan-selection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.billing-option-card {
  display: grid;
  gap: 12px;
}

.billing-option-card strong {
  color: var(--mesh-gold-soft);
  font-size: 24px;
}

.billing-actions,
.current-plan-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.current-plan-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  border-color: rgba(34, 197, 94, 0.34);
  background: linear-gradient(145deg, rgba(20, 83, 45, 0.18), rgba(3, 7, 18, 0.34));
}

.current-plan-card dd.is-active {
  color: #86efac;
}

.account-upgrade-flow,
.account-billing-panel {
  display: none;
}

.account-upgrade-flow:target,
.account-billing-panel:target {
  display: block;
}

.plan-card ul,
.feature-card ul,
.requirements-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  color: #dbe5f3;
  list-style: none;
}

.plan-card li,
.feature-card li,
.requirements-list li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  padding: 20px;
}

.faq-item h3 {
  margin-bottom: 8px;
}

.faq-item p {
  margin: 0;
}

.footer-cta {
  overflow: hidden;
  border: 1px solid var(--mesh-border);
  border-radius: var(--mesh-radius-xl);
  padding: 48px;
  background:
    radial-gradient(circle at 82% 18%, rgba(248, 200, 78, 0.24), transparent 30%),
    linear-gradient(145deg, rgba(16, 29, 49, 0.92), rgba(3, 7, 18, 0.88));
  box-shadow: var(--mesh-shadow-lg), var(--mesh-glow);
  text-align: center;
}

.site-footer {
  width: min(var(--mesh-max), calc(100% - 32px));
  margin: 0 auto;
  border-top: 1px solid var(--mesh-border-soft);
  padding: 28px 0 38px;
  color: var(--mesh-muted);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.site-footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer-links a {
  color: var(--mesh-muted);
  text-decoration: none;
  transition: color 160ms ease;
}

.site-footer-links a:hover,
.site-footer-links a:focus-visible {
  color: var(--mesh-gold);
}

.site-list,
.download-grid,
.event-list {
  display: grid;
  gap: 16px;
}

.site-list article,
.event-list article {
  padding: 18px;
}

.site-list strong,
.event-list strong {
  color: var(--mesh-text);
}

.site-list span,
.event-list span {
  display: block;
  margin: 5px 0 12px;
  color: var(--mesh-muted);
}

.site-list a,
.event-list a {
  color: var(--mesh-gold-soft);
  font-weight: 800;
}

.site-empty {
  padding: 22px;
  color: var(--mesh-muted);
}

.download-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 22px;
  align-items: stretch;
}

.download-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 20px;
}

.download-item h2 {
  margin: 0 0 8px;
}

.download-item p {
  margin: 0 0 14px;
}

.mini-details {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.mini-details dt {
  color: var(--mesh-muted);
  font-size: 12px;
  font-weight: 800;
}

.mini-details dd {
  margin: 3px 0 0;
  color: var(--mesh-text);
  overflow-wrap: anywhere;
}

.release-timeline {
  position: relative;
  display: grid;
  gap: 18px;
}

.release-timeline::before {
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 18px;
  width: 2px;
  content: "";
  background: linear-gradient(var(--mesh-gold), transparent);
}

.release-card {
  position: relative;
  margin-left: 44px;
}

.release-card::before {
  position: absolute;
  top: 24px;
  left: -35px;
  width: 14px;
  height: 14px;
  border: 2px solid var(--mesh-bg);
  border-radius: 50%;
  content: "";
  background: var(--mesh-gold);
  box-shadow: var(--mesh-glow);
}

.status-badge {
  width: fit-content;
  color: var(--mesh-gold-soft);
}

.release-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--mesh-border);
  border-radius: var(--mesh-radius-md);
  padding: 14px 16px;
  background: rgba(248, 200, 78, 0.08);
  box-shadow: var(--mesh-shadow-sm);
}

.release-banner strong {
  color: var(--mesh-gold-soft);
}

.release-banner span {
  min-width: 0;
  flex: 1 1 240px;
  color: var(--mesh-text);
  font-weight: 800;
}

.release-banner a {
  color: var(--mesh-gold-soft);
  font-weight: 850;
  white-space: nowrap;
}

.type-badge,
.feature-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 850;
  text-transform: capitalize;
}

.type-online {
  border: 1px solid rgba(34, 197, 94, 0.32);
  background: rgba(34, 197, 94, 0.14);
  color: #22c55e;
}

.type-offline,
.status-planned {
  border: 1px solid rgba(107, 114, 128, 0.32);
  background: rgba(107, 114, 128, 0.14);
  color: #9ca3af;
}

.status-available {
  border: 1px solid rgba(34, 197, 94, 0.32);
  background: rgba(34, 197, 94, 0.14);
  color: #22c55e;
}

.status-in_development {
  border: 1px solid rgba(250, 204, 21, 0.34);
  background: rgba(250, 204, 21, 0.14);
  color: #facc15;
}

.status-beta {
  border: 1px solid rgba(59, 130, 246, 0.34);
  background: rgba(59, 130, 246, 0.14);
  color: #60a5fa;
}

.status-early_access {
  border: 1px solid rgba(168, 85, 247, 0.34);
  background: rgba(168, 85, 247, 0.14);
  color: #c084fc;
}

.status-deprecated {
  border: 1px solid rgba(239, 68, 68, 0.34);
  background: rgba(239, 68, 68, 0.14);
  color: #f87171;
}

.maintenance-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.maintenance-active {
  border: 1px solid rgba(34, 197, 94, 0.32);
  background: rgba(34, 197, 94, 0.14);
  color: #22c55e;
}

.maintenance-under {
  border: 1px solid rgba(245, 158, 11, 0.38);
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
}

.plan-access-cell {
  text-align: center;
  vertical-align: middle;
}

.feature-check {
  display: inline-block;
  color: #22c55e;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 0 14px rgba(34, 197, 94, 0.36);
}

.feature-dash {
  display: inline-block;
  color: #64748b;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.release-note-card {
  display: grid;
  gap: 14px;
}

.release-note-list {
  display: grid;
  gap: 8px;
  margin: 0 0 10px;
  padding-left: 20px;
  color: #dbe5f3;
}

.auth-wrap {
  max-width: 760px;
}

.google-auth-section {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.google-auth-section form {
  margin: 0;
}

.google-auth-button {
  width: 100%;
  min-height: 46px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  padding: 0;
  overflow: hidden;
  border: 1px solid #747775;
  border-radius: 6px;
  background: #fff;
  color: #1f1f1f;
  cursor: pointer;
  font-family: "Google Sans", Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  transition: background-color 150ms ease, box-shadow 150ms ease, opacity 150ms ease;
}

.google-auth-button:hover:not(:disabled) {
  background: #f8faff;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
}

.google-auth-button:focus-visible {
  outline: 3px solid rgba(66, 133, 244, 0.35);
  outline-offset: 2px;
}

.google-auth-button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.google-auth-logo-box {
  width: 42px;
  height: 44px;
  display: grid;
  place-items: center;
  background: #fff;
}

.google-auth-logo-box img {
  display: block;
  width: auto;
  height: 20px;
  object-fit: contain;
}

.google-auth-label,
.google-auth-loading {
  grid-column: 2;
  justify-self: center;
}

.google-auth-loading {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.google-auth-loading[hidden],
.google-auth-label[hidden] {
  display: none;
}

.google-auth-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(31, 31, 31, 0.22);
  border-top-color: #4285f4;
  border-radius: 50%;
  animation: google-auth-spin 700ms linear infinite;
}

.google-auth-status {
  margin: 0;
  color: #fbbf24;
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

.google-auth-status--ready {
  color: var(--mesh-muted);
}

.google-auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 3px;
  color: var(--mesh-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.google-auth-divider::before,
.google-auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--mesh-border-soft);
}

@keyframes google-auth-spin {
  to { transform: rotate(360deg); }
}

.form-shell {
  display: grid;
  gap: 18px;
}

.account-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.account-form.single-column {
  grid-template-columns: minmax(0, 1fr);
}

.account-form label,
.form-row label,
.filter-bar label {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: #e7edf8;
  font-weight: 750;
}

.account-form input,
.account-form select,
.form-row input,
.filter-bar input,
textarea {
  width: 100%;
  border: 1px solid var(--mesh-border-soft);
  border-radius: var(--mesh-radius-sm);
  padding: 12px 13px;
  color: var(--mesh-text);
  background: rgba(3, 7, 18, 0.64);
  outline: none;
}

.account-form input:focus,
.account-form select:focus,
.form-row input:focus,
.filter-bar input:focus,
textarea:focus {
  border-color: rgba(248, 200, 78, 0.7);
  box-shadow: 0 0 0 4px rgba(248, 200, 78, 0.12);
}

textarea {
  resize: vertical;
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  padding-right: 64px;
}

.account-form button.password-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  min-height: 0;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--mesh-muted);
  box-shadow: none;
  font-size: 12px;
  font-weight: 700;
}

.account-form button.password-toggle:hover {
  color: var(--mesh-text);
  background: rgba(255, 255, 255, 0.14);
}

.checkbox-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 8px;
  font-weight: 600 !important;
  color: var(--mesh-muted);
  cursor: pointer;
}

.checkbox-row input[type="checkbox"] {
  width: auto;
  height: auto;
  margin: 0;
  cursor: pointer;
  accent-color: var(--mesh-gold);
}

.auth-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 700;
}

.auth-links a {
  color: var(--mesh-gold);
  text-decoration: none;
}

.auth-links a:hover {
  text-decoration: underline;
}

.notice {
  margin-bottom: 16px;
  border-radius: var(--mesh-radius-sm);
  padding: 12px 14px;
  font-weight: 800;
}

.notice p {
  margin: 0;
}

.notice p + p {
  margin-top: 6px;
}

.notice-success {
  border: 1px solid rgba(34, 197, 94, 0.34);
  background: rgba(22, 101, 52, 0.24);
  color: #bbf7d0;
}

.notice-error {
  border: 1px solid rgba(239, 68, 68, 0.34);
  background: rgba(127, 29, 29, 0.28);
  color: #fecaca;
}

.account-body {
  display: block;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 4%, rgba(248, 200, 78, 0.12), transparent 25%),
    linear-gradient(135deg, var(--mesh-bg-deep), var(--mesh-bg-soft));
  color: var(--mesh-text);
}

.account-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.account-sidebar {
  border-right: 1px solid var(--mesh-border-soft);
  background: #0b0f19;
  color: var(--mesh-text);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: sticky;
  top: 0;
  box-sizing: border-box;
}

.account-brand {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--mesh-gold-soft);
  font-size: 20px;
  font-weight: 850;
  text-decoration: none;
  padding-left: 14px;
}

.account-nav {
  display: flex;
  flex-direction: column;
  height: calc(100% - 44px);
  gap: 4px;
}

.account-nav a,
.account-nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  border: 0;
  border-radius: var(--mesh-radius-sm);
  padding: 0 14px;
  background: transparent;
  color: #dbe5f3;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

/* Icons */
.account-nav .nav-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: rgba(255, 255, 255, 0.45);
  transition: stroke 0.2s ease;
}

.account-nav a:hover,
.account-nav button:hover {
  background: rgba(248, 200, 78, 0.08);
  color: var(--mesh-gold-soft);
}

.account-nav a:hover .nav-icon,
.account-nav button:hover .nav-icon {
  stroke: var(--mesh-gold-soft);
}

/* Show the destination of each sidebar icon immediately on hover/focus.
   This remains keyboard-accessible and is only enabled for precise pointers
   so it never obscures the compact mobile navigation. */
@media (hover: hover) and (pointer: fine) {
  .account-nav [data-tooltip] {
    position: relative;
  }

  .account-nav [data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    z-index: 50;
    min-width: max-content;
    max-width: 220px;
    padding: 8px 10px;
    border: 1px solid rgba(248, 200, 78, 0.42);
    border-radius: 8px;
    background: #101827;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    color: #fff8d6;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    opacity: 0;
    pointer-events: none;
    transform: translate(-4px, -50%);
    transition: opacity 0.16s ease, transform 0.16s ease;
    white-space: nowrap;
  }

  .account-nav [data-tooltip]::before {
    content: '';
    position: absolute;
    left: calc(100% + 6px);
    top: 50%;
    z-index: 51;
    width: 10px;
    height: 10px;
    border-bottom: 1px solid rgba(248, 200, 78, 0.42);
    border-left: 1px solid rgba(248, 200, 78, 0.42);
    background: #101827;
    opacity: 0;
    pointer-events: none;
    transform: translate(-4px, -50%) rotate(45deg);
    transition: opacity 0.16s ease, transform 0.16s ease;
  }

  .account-nav [data-tooltip]:hover::after,
  .account-nav [data-tooltip]:focus-visible::after {
    opacity: 1;
    transform: translate(0, -50%);
  }

  .account-nav [data-tooltip]:hover::before,
  .account-nav [data-tooltip]:focus-visible::before {
    opacity: 1;
    transform: translate(0, -50%) rotate(45deg);
  }
}

/* Active menu item: gold gradient / soft background + gold highlight */
.account-nav a.active {
  background: linear-gradient(90deg, rgba(248, 200, 78, 0.14) 0%, rgba(248, 200, 78, 0.03) 100%);
  border-left: 3px solid #facc15;
  color: var(--mesh-gold-soft);
  padding-left: 11px; /* adjust for border-left width */
}

.account-nav a.active .nav-icon {
  stroke: var(--mesh-gold-soft);
}

/* Back to Home: bordered gold button */
.account-nav .account-home-link {
  margin-bottom: 12px;
  border: 1px solid rgba(248, 200, 78, 0.4);
  border-bottom-color: rgba(248, 200, 78, 0.65);
  background: rgba(248, 200, 78, 0.06);
  color: var(--mesh-gold-soft);
  justify-content: center;
  font-weight: 700;
}

.account-nav .account-home-link .nav-icon {
  stroke: var(--mesh-gold-soft);
}

.account-nav .account-home-link:hover {
  background: rgba(248, 200, 78, 0.15);
  border-color: #facc15;
}

/* Logout button: red accent */
.account-nav .sidebar-logout-form {
  margin-top: auto;
  border: none;
  background: transparent;
  padding: 0;
  width: 100%;
}

.account-nav .logout-btn {
  color: #ef4444;
  font-weight: 700;
  width: 100%;
}

.account-nav .logout-btn .nav-icon {
  stroke: #ef4444;
}

.account-nav .logout-btn:hover {
  background: rgba(239, 68, 68, 0.08);
  color: #f87171;
}

.account-nav .logout-btn:hover .nav-icon {
  stroke: #f87171;
}

/* Sidebar Section Headings & Dividers */
.sidebar-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px 4px;
  font-size: 10px;
  font-weight: 850;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sidebar-header-line {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.account-content {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
  padding: 36px 0;
}

.account-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.account-header h1 {
  color: var(--mesh-text);
  font-size: 34px;
}

.account-subtitle {
  max-width: 760px;
  margin: 8px 0 0;
  color: #ccd7e8;
}

.avatar-frame {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  overflow: hidden;
  border: 1px solid var(--mesh-border);
  border-radius: 50%;
  background: rgba(248, 200, 78, 0.13);
  color: var(--mesh-gold-soft);
  font-size: 30px;
  font-weight: 850;
}

.avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-panel {
  margin-bottom: 18px;
  padding: 22px;
}

.compact-panel {
  max-width: 640px;
}

.account-panel h2 {
  margin: 0 0 18px;
  color: var(--mesh-text);
  font-size: 20px;
}

.account-foundation-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
  border: 1px solid rgba(248, 200, 78, 0.18);
  border-radius: var(--mesh-radius-lg);
  padding: 24px;
  background:
    radial-gradient(circle at 88% 10%, rgba(248, 200, 78, 0.16), transparent 34%),
    linear-gradient(145deg, rgba(17, 29, 49, 0.86), rgba(9, 17, 31, 0.72));
  box-shadow: var(--mesh-shadow-md), var(--mesh-glow);
}

.account-foundation-hero h2 {
  margin: 0 0 10px;
  font-size: 30px;
}

.account-foundation-hero p {
  margin: 0;
  color: #ccd7e8;
}

.account-foundation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.account-foundation-grid.four-columns {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.account-foundation-card {
  min-height: 100%;
}

.security-score-card,
.layer-stack,
.wallet-stats {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(248, 200, 78, 0.16);
  border-radius: var(--mesh-radius-md);
  padding: 18px;
  background: rgba(3, 7, 18, 0.42);
}

.security-score-card span,
.wallet-stats span {
  color: var(--mesh-muted);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.security-score-card strong,
.foundation-metric,
.wallet-hero strong {
  color: var(--mesh-gold-soft);
  font-size: 38px;
  line-height: 1;
  text-shadow: 0 0 26px rgba(248, 200, 78, 0.24);
}

.security-score-card small,
.foundation-note,
.foundation-status-list small {
  color: var(--mesh-muted);
}

.password-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.password-field button,
.account-action-row .secondary-action,
.disabled-action {
  border: 1px solid var(--mesh-border-soft);
  border-radius: var(--mesh-radius-sm);
  padding: 10px 12px;
  color: var(--mesh-text);
  background: rgba(255, 255, 255, 0.06);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.password-meter {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.password-meter span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #ef4444;
  transition: width 180ms ease, background 180ms ease;
}

.password-meter span[data-strength="medium"] {
  background: #f59e0b;
}

.password-meter span[data-strength="strong"] {
  background: #22c55e;
}

.password-checklist,
.foundation-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.password-checklist li,
.foundation-list li {
  color: #dbe5f3;
}

.password-checklist li::before,
.foundation-list li::before {
  margin-right: 8px;
  color: var(--mesh-muted);
  content: "\25CB";
}

.password-checklist li.is-passed::before,
.foundation-list li::before {
  color: var(--mesh-gold);
  content: "\2713";
}

.account-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.foundation-status-list {
  display: grid;
  gap: 12px;
}

.foundation-status-list div,
.mesh-app-grid article,
.wallet-stats div {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--mesh-radius-sm);
  padding: 13px;
  background: rgba(3, 7, 18, 0.3);
}

.foundation-status-list span,
.mesh-app-grid span {
  display: block;
  margin-bottom: 4px;
  color: var(--mesh-muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.foundation-status-list strong,
.mesh-app-grid strong {
  color: var(--mesh-text);
}

.status-good {
  color: #86efac !important;
}

.status-warn {
  color: #fde68a !important;
}

.disabled-action {
  width: 100%;
  margin-top: 14px;
  opacity: 0.65;
  cursor: not-allowed;
}

.layer-stack span,
.mesh-app-grid em {
  border: 1px solid rgba(248, 200, 78, 0.18);
  border-radius: 999px;
  padding: 8px 10px;
  color: var(--mesh-gold-soft);
  background: rgba(248, 200, 78, 0.06);
  font-style: normal;
  font-weight: 850;
}

.mesh-app-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.mesh-app-grid article {
  display: grid;
  gap: 8px;
}

.wallet-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
  gap: 18px;
  align-items: center;
  border-color: rgba(248, 200, 78, 0.24);
  background:
    radial-gradient(circle at 88% 18%, rgba(248, 200, 78, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(17, 29, 49, 0.9), rgba(9, 17, 31, 0.74));
}

.wallet-hero p {
  max-width: 720px;
  color: #ccd7e8;
}

.reward-rule-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.reward-rule-list strong {
  color: var(--mesh-gold-soft);
  white-space: nowrap;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
}

.details-grid div {
  min-width: 0;
}

.details-grid dt,
.mini-details dt,
.total-box dt {
  margin-bottom: 4px;
  color: var(--mesh-muted);
  font-size: 13px;
  font-weight: 800;
}

.details-grid dd,
.total-box dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--mesh-text);
}

.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: end;
}

.toggle-row {
  display: flex !important;
  grid-template-columns: none !important;
  flex-direction: row;
  align-items: center;
  gap: 10px !important;
}

.toggle-row input {
  width: 18px;
  height: 18px;
}

.table-wrap {
  overflow-x: auto;
}

.account-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.account-table th,
.account-table td {
  border-bottom: 1px solid var(--mesh-border-soft);
  padding: 13px 12px;
  text-align: left;
  vertical-align: middle;
}

.account-table th {
  color: var(--mesh-muted);
  font-size: 13px;
  font-weight: 800;
}

.account-table td {
  color: var(--mesh-text);
}

.account-table td span {
  display: block;
  margin-top: 4px;
  color: var(--mesh-muted);
  font-size: 13px;
}

.account-table code,
.details-grid code {
  color: var(--mesh-gold-soft);
  font-family: Consolas, Monaco, monospace;
}

button.table-action {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.header-actions,
.action-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.subscription-actions {
  justify-content: flex-start;
  margin-top: 20px;
}

.subscription-actions form {
  margin: 0;
}

.status-pill {
  display: inline-block !important;
  width: fit-content;
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(255, 255, 255, 0.1);
  color: #dbe5f3 !important;
  font-size: 12px !important;
  font-weight: 800;
  text-transform: capitalize;
}

.status-active,
.status-succeeded,
.status-success,
.status-paid {
  background: rgba(34, 197, 94, 0.18);
  color: #bbf7d0 !important;
}

.status-expired,
.status-revoked,
.status-failed,
.status-inactive,
.status-cancelled,
.status-void {
  background: rgba(239, 68, 68, 0.18);
  color: #fecaca !important;
}

.status-suspended,
.status-past_due,
.status-trialing,
.status-pending,
.status-issued,
.status-draft {
  background: rgba(248, 200, 78, 0.16);
  color: var(--mesh-gold-soft) !important;
}

.empty-state {
  padding: 30px 18px;
  text-align: center;
}

.empty-state h2 {
  margin-bottom: 8px;
}

.empty-state p {
  margin: 0;
  color: var(--mesh-muted);
}

.compact-empty {
  padding: 10px 0;
  text-align: left;
}

.event-list p {
  margin: 10px 0 0;
  color: var(--mesh-muted);
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px) auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 18px;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-tabs a,
.pagination a {
  border: 1px solid var(--mesh-border-soft);
  border-radius: 999px;
  padding: 9px 11px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--mesh-text);
  font-weight: 800;
  text-decoration: none;
  text-transform: capitalize;
}

.filter-tabs a.active {
  border-color: var(--mesh-border);
  color: #171003;
  background: var(--mesh-gold);
}

.filter-bar button {
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--mesh-gold-soft), var(--mesh-gold));
  color: #171003;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 16px;
  color: var(--mesh-muted);
  font-weight: 800;
}

.total-box {
  display: grid;
  gap: 8px;
  width: min(340px, 100%);
  margin: 18px 0 0 auto;
}

.total-box div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--mesh-border-soft);
  padding-bottom: 8px;
}

@media (max-width: 1020px) {
  h1 {
    font-size: 58px;
  }

  h2 {
    font-size: 36px;
  }

  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .site-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .site-hero,
  .download-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    padding-top: 72px;
  }

  .hero-visual {
    max-width: 680px;
  }

  .hero-showcase {
    min-height: 500px;
  }

  .stats-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .account-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-sidebar {
    padding: 20px;
    height: auto;
    position: static;
  }

  .account-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .account-nav .sidebar-spacer {
    display: none;
  }

  .account-nav .sidebar-logout-form {
    margin-top: 0;
    grid-column: span 2;
  }

  .sidebar-section-header {
    grid-column: span 2;
  }

  .account-content {
    width: min(100% - 32px, 1080px);
    padding: 24px 0;
  }

  .details-grid,
  .account-form,
  .account-foundation-hero,
  .account-foundation-grid,
  .account-foundation-grid.four-columns,
  .form-row,
  .download-item,
  .mini-details,
  .filter-bar,
  .pricing-card-grid,
  .site-card-grid,
  .billing-option-grid,
  .account-plan-selection-grid,
  .current-plan-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-heading {
    display: block;
  }

  .showcase-stage {
    min-height: 470px;
  }

  .showcase-laptop {
    top: 20px;
    right: auto;
    left: 0;
    width: 100%;
  }

  .showcase-phone {
    right: 10px;
    bottom: 18px;
    width: min(38vw, 172px);
    min-width: 132px;
  }

  .showcase-badges {
    bottom: 0;
    width: min(340px, 64%);
  }

  .cms-header {
    display: grid;
  }

  .cms-grid,
  .cms-slide-card,
  .mesh-app-grid,
  .wallet-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .release-float {
    position: static;
    width: auto;
    margin-top: 14px;
  }
}

@media (max-width: 620px) {
  h1 {
    font-size: 34px;
    line-height: 1.05;
  }

  h2 {
    font-size: 30px;
  }

  .site-header {
    grid-template-columns: minmax(0, 1fr);
    width: calc(100vw - 20px);
    max-width: 370px;
    margin-top: 10px;
  }

  .site-logo span {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .site-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 4px;
  }

  .site-actions .login-link {
    display: none;
  }

  .site-nav {
    flex-wrap: wrap;
    overflow-x: visible;
    gap: 2px;
  }

  .site-nav a,
  .site-actions a {
    padding-right: 10px;
    padding-left: 10px;
    font-size: 13px;
  }

  .site-hero {
    width: calc(100vw - 32px);
    max-width: 358px;
    min-height: auto;
    padding-top: 42px;
    padding-bottom: 42px;
  }

  .site-section,
  .site-footer {
    width: calc(100vw - 32px);
    max-width: 358px;
  }

  .auth-wrap .account-panel {
    padding: 20px;
  }

  .google-auth-button {
    min-height: 48px;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
  }

  .google-auth-logo-box {
    width: 40px;
    height: 46px;
  }

  .site-lead,
  .hero-copy > p {
    font-size: 16px;
  }

  .hero-showcase {
    min-height: 440px;
  }

  .showcase-stage {
    min-height: 420px;
  }

  .showcase-laptop {
    padding: 10px;
    border-radius: 18px;
  }

  .showcase-phone {
    bottom: 34px;
    width: min(42vw, 148px);
    min-width: 118px;
    border-radius: 24px;
  }

  .showcase-clock {
    font-size: 10px;
  }

  .showcase-slide figcaption {
    font-size: 10px;
  }

  .showcase-badges {
    position: relative;
    left: auto;
    bottom: auto;
    width: 100%;
    margin-top: 16px;
  }

  .cms-form-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .mockup-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .mockup-preview {
    min-height: 210px;
  }

  .stats-bar {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-cta {
    padding: 28px;
  }

  .account-nav {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .google-auth-spinner {
    animation-duration: 1400ms;
  }
}

@media print {
  .account-sidebar,
  .header-actions,
  .site-header {
    display: none;
  }

  .account-shell {
    display: block;
  }

  .account-content {
    width: 100%;
  }
}

/* ============================================================
   MESH Theme & Language Switchers (Build 023 additions)
   ============================================================ */

/* Global styles for Khmer language */
html[lang="km"],
body[data-lang="km"] {
  font-family: "Kantumruy Pro", "Noto Sans Khmer", "Khmer OS Siemreap", "Khmer OS Battambang", sans-serif !important;
}

html[lang="km"] body,
body[data-lang="km"] {
  line-height: 1.7 !important;
  letter-spacing: 0 !important;
}

html[lang="km"] h1,
html[lang="km"] h2,
html[lang="km"] h3,
html[lang="km"] p,
html[lang="km"] button,
html[lang="km"] input,
html[lang="km"] select,
html[lang="km"] textarea {
  font-family: "Kantumruy Pro", "Noto Sans Khmer", "Khmer OS Siemreap", "Khmer OS Battambang", sans-serif !important;
  line-height: 1.7 !important;
  letter-spacing: 0 !important;
}

/* Use theme variables for core components */
body {
  background:
    radial-gradient(circle at 12% 12%, var(--mesh-radial-1), transparent 27%),
    radial-gradient(circle at 84% 4%, var(--mesh-radial-2), transparent 25%),
    linear-gradient(140deg, var(--mesh-bg-deep) 0%, var(--mesh-bg) 44%, var(--mesh-bg-soft) 100%) !important;
}

[data-theme="light"] body::before {
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.02) 1px, transparent 1px) !important;
}

/* Apply variables to header, nav text, and pricing/download cards */
.site-header {
  background: var(--mesh-header-bg) !important;
}

.site-nav a, .site-actions a {
  color: var(--mesh-nav-text);
}

.site-nav a.active, .site-nav a:hover, .site-actions a:hover {
  color: var(--mesh-gold-soft);
}

.pricing-plan-card {
  background: var(--mesh-card) !important;
}

.pricing-feature-list {
  color: var(--mesh-text) !important;
}

.site-card, .glass-card, .download-item {
  background: var(--mesh-card) !important;
}

/* Controls Container */
.switcher-panel {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  position: relative !important;
  z-index: 70 !important;
  pointer-events: auto !important;
}

/* Switcher Groups (Segmented Control style) */
.switcher-group {
  display: inline-flex;
  align-items: center;
  background: rgba(18, 22, 32, 0.75) !important;
  border: 1px solid rgba(255, 210, 90, 0.20) !important;
  border-radius: 999px !important;
  padding: 3px !important;
  height: 38px !important; /* height 36px-40px */
  box-sizing: border-box !important;
  user-select: none !important;
  gap: 0 !important;
  position: relative !important;
  z-index: 75 !important;
  pointer-events: auto !important;
}

/* Switcher Buttons (custom components) */
.switcher-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 100% !important;
  min-height: 30px !important;
  padding: 0 14px !important;
  border-radius: 999px !important;
  color: var(--mesh-muted) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  outline: none !important;
  line-height: 1 !important;
  user-select: none !important;
  position: relative !important;
  z-index: 80 !important;
  pointer-events: auto !important;
}

/* Prevent inner elements from swallowing mouse hover cursor states */
.switcher-btn * {
  pointer-events: none !important;
}

/* Hover effect on inactive items - rgba(255,210,90,.12) */
.switcher-btn:not(.active):hover {
  color: var(--mesh-text) !important;
  background: rgba(255, 210, 90, 0.12) !important;
  border-color: transparent !important;
}

/* Active Segment State - gold gradient */
.switcher-btn.active {
  color: #171003 !important;
  background: linear-gradient(135deg, var(--mesh-gold-soft), var(--mesh-gold) 46%, var(--mesh-gold-deep)) !important;
  box-shadow: 0 2px 12px rgba(248, 200, 78, 0.4) !important;
  border-color: transparent !important;
}

[data-theme="dark"] .switcher-btn.active {
  color: #171003 !important;
  background: linear-gradient(135deg, var(--mesh-gold-soft), var(--mesh-gold) 46%, var(--mesh-gold-deep)) !important;
  box-shadow: 0 2px 12px rgba(248, 200, 78, 0.4) !important;
  border-color: transparent !important;
}

[data-theme="light"] .switcher-btn.active {
  color: #ffffff !important;
  background: linear-gradient(135deg, var(--mesh-gold-soft), var(--mesh-gold) 46%, var(--mesh-gold-deep)) !important;
  box-shadow: 0 2px 12px rgba(194, 120, 3, 0.3) !important;
  border-color: transparent !important;
}

/* Clean button secondary outline */
[data-theme="light"] .button-secondary {
  color: var(--mesh-text) !important;
  border-color: var(--mesh-border) !important;
}

/* Responsive wrap overrides for mobile sizes */
@media (max-width: 768px) {
  .switcher-panel {
    gap: 8px;
    padding: 2px;
  }
}

/* Global styles for Khmer language */
html[lang="km"],
body[data-lang="km"] {
  font-family: "Kantumruy Pro", "Noto Sans Khmer", "Khmer OS Battambang", sans-serif !important;
}

html[lang="km"] body,
body[data-lang="km"] {
  line-height: 1.7 !important;
  letter-spacing: 0 !important;
}

html[lang="km"] h1,
html[lang="km"] h2,
html[lang="km"] h3,
html[lang="km"] p,
html[lang="km"] button,
html[lang="km"] input,
html[lang="km"] select,
html[lang="km"] textarea {
  font-family: "Kantumruy Pro", "Noto Sans Khmer", "Khmer OS Battambang", sans-serif !important;
  line-height: 1.7 !important;
  letter-spacing: 0 !important;
}

/* Global Mouse Cursor Fixes for Clickable Elements */
button,
a,
[role="button"],
.switcher-btn,
.clickable,
.nav-link,
.theme-switcher button,
.language-switcher button {
  cursor: pointer !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
}
/* ACC-004 shared AccountAssuranceBadge */
.account-assurance-badge { --account-assurance-color:#64748b; display:inline-flex; align-items:center; gap:6px; max-width:100%; padding:4px 8px; border:1px solid color-mix(in srgb,var(--account-assurance-color) 55%,transparent); border-radius:999px; background:color-mix(in srgb,var(--account-assurance-color) 14%,transparent); color:#fff; vertical-align:middle; outline:none; }.account-assurance-badge:focus-visible { box-shadow:0 0 0 3px rgba(255,255,255,.25),0 0 0 5px var(--account-assurance-color); }.account-assurance-badge__icon { color:var(--account-assurance-color); font-weight:800; }.account-assurance-badge__text { display:flex; align-items:baseline; gap:4px; min-width:0; }.account-assurance-badge__text strong { color:var(--account-assurance-color); font-size:.82em; }.account-assurance-badge__text>span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.account-assurance-badge__text small { display:block; width:100%; color:var(--mesh-muted); font-size:.78em; }.account-assurance-badge--small { font-size:11px; }.account-assurance-badge--medium { padding:5px 10px; font-size:13px; }.account-assurance-badge--large { padding:8px 13px; font-size:16px; }.account-assurance-badge--description { border-radius:10px; align-items:flex-start; }.account-assurance-badge--description .account-assurance-badge__text { flex-wrap:wrap; }
