/* =====================================================================
   Massa Software — design system
   Dark-first · neo-chromatic (violet → cyan) · subtle glassmorphism
   ===================================================================== */

/* ----------------------------- Tokens ----------------------------- */
:root {
  --violet: #8b5cf6;
  --violet-strong: #7c3aed;
  --cyan: #22d3ee;
  --pink: #f472b6;
  --green: #34d399;
  --amber: #fbbf24;
  --red: #f87171;

  --grad: linear-gradient(135deg, var(--violet), var(--cyan));
  --grad-soft: linear-gradient(135deg, rgba(139, 92, 246, .22), rgba(34, 211, 238, .18));

  /* dark (default) */
  --bg: #0a0b12;
  --bg-2: #0e0f19;
  --surface: rgba(255, 255, 255, .038);
  --surface-2: rgba(255, 255, 255, .06);
  --surface-solid: #12131f;
  --border: rgba(255, 255, 255, .09);
  --border-strong: rgba(255, 255, 255, .16);
  --text: #e9ebf7;
  --text-soft: #b6bad2;
  --text-muted: #8a8fab;
  --text-faint: #5f6480;
  --ring: rgba(139, 92, 246, .55);
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .8);
  --shadow-sm: 0 12px 30px -18px rgba(0, 0, 0, .9);
  --glow: 0 0 0 1px rgba(139, 92, 246, .28), 0 24px 70px -30px rgba(139, 92, 246, .65);

  --radius: 16px;
  --radius-sm: 11px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --header-h: 70px;
  --maxw: 1220px;
  --font: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --transition: .22s cubic-bezier(.22, 1, .36, 1);
}

[data-theme="light"] {
  --bg: #f6f7fb;
  --bg-2: #eef0f8;
  --surface: rgba(255, 255, 255, .85);
  --surface-2: rgba(255, 255, 255, .95);
  --surface-solid: #ffffff;
  --border: rgba(16, 18, 40, .1);
  --border-strong: rgba(16, 18, 40, .18);
  --text: #14162b;
  --text-soft: #3d4160;
  --text-muted: #666b89;
  --text-faint: #9aa0bd;
  --shadow: 0 24px 60px -30px rgba(30, 34, 80, .35);
  --shadow-sm: 0 12px 30px -20px rgba(30, 34, 80, .4);
}

/* ----------------------------- Reset ------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15.5px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100dvh;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
ul, ol { list-style: none; padding: 0; }
table { border-collapse: collapse; width: 100%; }
h1, h2, h3, h4 { line-height: 1.15; font-weight: 750; letter-spacing: -.02em; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgba(139, 92, 246, .35); }

/* Ambient background glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 50% at 15% 0%, rgba(139, 92, 246, .18), transparent 70%),
    radial-gradient(50% 45% at 90% 5%, rgba(34, 211, 238, .14), transparent 70%),
    radial-gradient(40% 40% at 50% 100%, rgba(244, 114, 182, .08), transparent 70%);
  pointer-events: none;
}
[data-theme="light"] body::before { opacity: .6; }

/* ---------------------------- Layout ------------------------------ */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.container-narrow { max-width: 820px; }
.section { padding-block: 72px; }
.section-sm { padding-block: 44px; }
.stack { display: grid; gap: 16px; }
.row { display: flex; gap: 14px; align-items: center; }
.row-between { display: flex; gap: 14px; align-items: center; justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.text-center { text-align: center; }
.muted { color: var(--text-muted); }
.soft { color: var(--text-soft); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.mono { font-family: var(--mono); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hidden { display: none !important; }
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------------------------- Header ------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -.02em; font-size: 17px; flex-shrink: 0; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 11px;
  background: var(--grad);
  display: grid; place-items: center;
  color: #0a0b12; font-weight: 900; font-size: 17px;
  box-shadow: 0 8px 24px -8px rgba(139, 92, 246, .8);
}
.brand small { display: block; font-size: 11px; font-weight: 600; color: var(--text-muted); letter-spacing: .02em; }

.nav { display: flex; align-items: center; gap: 4px; margin-inline: auto; }
.nav a {
  padding: 9px 14px; border-radius: var(--radius-pill);
  color: var(--text-soft); font-weight: 600; font-size: 14.5px;
  transition: var(--transition);
}
.nav a:hover { color: var(--text); background: var(--surface); }
.nav a.active { color: var(--text); background: var(--surface-2); }

.header-search {
  flex: 1; max-width: 340px; position: relative;
}
.header-search input {
  width: 100%; height: 42px; padding: 0 16px 0 42px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-pill); color: var(--text);
  transition: var(--transition);
}
.header-search input::placeholder { color: var(--text-faint); }
.header-search input:focus { border-color: var(--violet); box-shadow: 0 0 0 4px var(--ring); outline: none; background: var(--surface-2); }
.header-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }

.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.icon-btn {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center; color: var(--text-soft);
  border: 1px solid transparent; transition: var(--transition); position: relative;
}
.icon-btn:hover { background: var(--surface); color: var(--text); border-color: var(--border); }

.nav-toggle { display: none; }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; right: 0; top: calc(100% + 10px);
  min-width: 230px; padding: 8px;
  background: var(--surface-solid); border: 1px solid var(--border-strong);
  border-radius: var(--radius); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: var(--transition); z-index: 70;
}
.dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: none; }
.dropdown-menu a, .dropdown-menu button {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 600;
  color: var(--text-soft); text-align: left; transition: var(--transition);
}
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--surface); color: var(--text); }
.dropdown-menu .sep { height: 1px; background: var(--border); margin: 6px 4px; }
.dropdown-head { padding: 10px 12px 12px; }
.dropdown-head strong { display: block; }
.dropdown-head span { font-size: 12.5px; color: var(--text-muted); }

.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--grad); color: #0a0b12;
  display: grid; place-items: center; font-weight: 800; font-size: 14px;
  overflow: hidden; flex-shrink: 0;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 84px; height: 84px; font-size: 30px; border-radius: 22px; }
.avatar-sm { width: 28px; height: 28px; font-size: 11px; }

/* Mobile nav */
.mobile-nav {
  position: fixed; inset: var(--header-h) 0 auto 0; z-index: 55;
  background: var(--bg-2); border-bottom: 1px solid var(--border);
  padding: 14px 22px 22px; display: grid; gap: 6px;
  transform: translateY(-120%); transition: var(--transition); box-shadow: var(--shadow);
}
.mobile-nav.open { transform: none; }
.mobile-nav a { padding: 13px 14px; border-radius: 12px; font-weight: 650; color: var(--text-soft); }
.mobile-nav a:hover, .mobile-nav a.active { background: var(--surface); color: var(--text); }

/* ---------------------------- Buttons ----------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 11px 20px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 14.5px; line-height: 1;
  border: 1px solid var(--border-strong); color: var(--text);
  background: var(--surface); transition: var(--transition);
  white-space: nowrap; text-align: center;
}
.btn:hover { background: var(--surface-2); border-color: var(--border-strong); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { flex-shrink: 0; }

.btn-primary {
  background: var(--grad); color: #0a0b12; border-color: transparent;
  box-shadow: 0 14px 34px -16px rgba(139, 92, 246, .9);
}
.btn-primary:hover { box-shadow: 0 20px 44px -16px rgba(139, 92, 246, 1); filter: brightness(1.05); }

.btn-ghost { background: transparent; border-color: transparent; color: var(--text-soft); }
.btn-ghost:hover { background: var(--surface); color: var(--text); }

.btn-outline { background: transparent; }
.btn-danger { color: var(--red); border-color: rgba(248, 113, 113, .35); background: rgba(248, 113, 113, .08); }
.btn-danger:hover { background: rgba(248, 113, 113, .16); }
.btn-success { color: #05291d; background: var(--green); border-color: transparent; font-weight: 700; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 13.5px; }
.btn-lg { padding: 15px 28px; font-size: 16px; border-radius: 14px; }
.btn:disabled { opacity: .5; pointer-events: none; }

/* ----------------------------- Cards ------------------------------ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: var(--transition);
}
.card-hover:hover { border-color: var(--border-strong); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.card-solid { background: var(--surface-solid); }

.panel {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.panel-head { padding: 18px 22px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.panel-head h3 { font-size: 16px; }
.panel-body { padding: 22px; }

/* Software card */
.software-card { display: flex; flex-direction: column; position: relative; overflow: hidden; }
.software-card .cover {
  aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden;
  background: var(--grad-soft); position: relative; margin-bottom: 16px;
  border: 1px solid var(--border);
}
.software-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.software-card .cover-placeholder { width: 100%; height: 100%; display: grid; place-items: center; font-size: 34px; font-weight: 900; color: color-mix(in srgb, var(--text) 80%, transparent); background: var(--grad-soft); }
.software-card h3 { font-size: 16.5px; margin-bottom: 4px; }
.software-card h3 a:hover { color: var(--violet); }
.software-card .tagline { font-size: 13.5px; color: var(--text-muted); margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; }
.software-card .meta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid var(--border); }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: var(--radius-pill);
  font-size: 11.5px; font-weight: 700; letter-spacing: .01em;
  background: var(--surface-2); color: var(--text-soft); border: 1px solid var(--border);
  white-space: nowrap;
}
.badge-grad { background: var(--grad-soft); color: var(--text); border-color: rgba(139, 92, 246, .4); }
.badge-green { background: rgba(52, 211, 153, .14); color: var(--green); border-color: rgba(52, 211, 153, .3); }
.badge-amber { background: rgba(251, 191, 36, .14); color: var(--amber); border-color: rgba(251, 191, 36, .3); }
.badge-red { background: rgba(248, 113, 113, .14); color: var(--red); border-color: rgba(248, 113, 113, .3); }
.badge-cyan { background: rgba(34, 211, 238, .14); color: var(--cyan); border-color: rgba(34, 211, 238, .3); }

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px; border-radius: var(--radius-pill);
  background: var(--surface); border: 1px solid var(--border);
  font-size: 13px; font-weight: 600; color: var(--text-soft); transition: var(--transition);
}
.chip:hover { border-color: var(--border-strong); color: var(--text); transform: translateY(-1px); }
.chip.active { background: var(--grad-soft); border-color: rgba(139, 92, 246, .5); color: var(--text); }

/* Category tiles */
.category-tile {
  display: flex; flex-direction: column; gap: 10px; padding: 20px;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  transition: var(--transition); position: relative; overflow: hidden;
}
.category-tile::after {
  content: ""; position: absolute; inset: auto -30% -60% auto; width: 140px; height: 140px;
  background: radial-gradient(circle, var(--tile-accent, var(--violet)), transparent 65%);
  opacity: .22; transition: var(--transition);
}
.category-tile:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.category-tile:hover::after { opacity: .4; }
.category-tile .cat-icon {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  background: var(--grad-soft); color: var(--text); border: 1px solid var(--border);
}
.category-tile h3 { font-size: 15.5px; }
.category-tile p { font-size: 13px; color: var(--text-muted); }
.category-tile .count { font-size: 12px; font-weight: 700; color: var(--cyan); }

/* ----------------------------- Hero ------------------------------- */
.hero { position: relative; padding-block: 92px 72px; overflow: hidden; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); letter-spacing: -.035em; margin-bottom: 20px; }
.hero p.lede { font-size: 18px; color: var(--text-soft); max-width: 560px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-stats { display: flex; gap: 36px; flex-wrap: wrap; }
.hero-stat strong { display: block; font-size: 26px; letter-spacing: -.03em; }
.hero-stat span { font-size: 13px; color: var(--text-muted); }

.hero-visual { position: relative; }
.orb {
  position: absolute; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(139, 92, 246, .9), rgba(34, 211, 238, .5) 45%, transparent 70%);
  filter: blur(38px); opacity: .75; z-index: -1;
  animation: float 12s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-18px, 22px) scale(1.05); } }

.app-preview {
  border-radius: var(--radius-lg); border: 1px solid var(--border-strong);
  background: var(--surface-solid); box-shadow: var(--glow); overflow: hidden;
  transform: perspective(1200px) rotateY(-8deg) rotateX(3deg);
  transition: transform .5s cubic-bezier(.22, 1, .36, 1);
}
.app-preview:hover { transform: perspective(1200px) rotateY(-2deg) rotateX(1deg); }
.app-preview-bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid var(--border); background: var(--surface); }
.app-preview-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); }
.app-preview-bar i:nth-child(1) { background: #ff5f57; } .app-preview-bar i:nth-child(2) { background: #febc2e; } .app-preview-bar i:nth-child(3) { background: #28c840; }
.app-preview-body { padding: 20px; display: grid; gap: 14px; }
.skeleton-row { height: 44px; border-radius: 11px; background: var(--surface-2); position: relative; overflow: hidden; }
.skeleton-row::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.07), transparent); animation: shine 2.4s infinite; }
@keyframes shine { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* ---------------------------- Forms ------------------------------- */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13.5px; font-weight: 650; margin-bottom: 7px; color: var(--text-soft); }
.form-label .req { color: var(--violet); }
.form-hint { font-size: 12.5px; color: var(--text-muted); margin-top: 6px; }
.form-error { font-size: 12.5px; color: var(--red); margin-top: 6px; }
.input, .select, .textarea, input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="url"], input[type="search"], textarea, select {
  width: 100%; padding: 12px 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  transition: var(--transition);
}
.input:focus, .select:focus, .textarea:focus, textarea:focus, select:focus {
  border-color: var(--violet); box-shadow: 0 0 0 4px var(--ring); outline: none; background: var(--surface-2);
}
.input.invalid, textarea.invalid { border-color: var(--red); }
textarea { resize: vertical; min-height: 110px; line-height: 1.6; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238a8fab' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
::placeholder { color: var(--text-faint); }

.input-icon { position: relative; }
.input-icon .input { padding-left: 44px; }
.input-icon svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.input-icon .toggle-vis { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); pointer-events: auto; }

.checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text-soft); cursor: pointer; }
.checkbox input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--violet); flex-shrink: 0; }

.switch { position: relative; display: inline-flex; align-items: center; gap: 11px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch .track { width: 44px; height: 25px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border-strong); position: relative; transition: var(--transition); flex-shrink: 0; }
.switch .track::after { content: ""; position: absolute; left: 3px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; border-radius: 50%; background: var(--text-muted); transition: var(--transition); }
.switch input:checked + .track { background: var(--grad); border-color: transparent; }
.switch input:checked + .track::after { left: 22px; background: #0a0b12; }

fieldset { border: none; padding: 0; margin: 0 0 22px; }
legend { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: 14px; }

/* ---------------------------- Alerts ------------------------------ */
.alert {
  display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface); font-size: 14px; margin-bottom: 16px;
  align-items: flex-start;
}
.alert svg { flex-shrink: 0; margin-top: 1px; }
.alert-success { border-color: rgba(52, 211, 153, .35); background: rgba(52, 211, 153, .1); color: var(--green); }
.alert-error { border-color: rgba(248, 113, 113, .35); background: rgba(248, 113, 113, .1); color: var(--red); }
.alert-warning { border-color: rgba(251, 191, 36, .35); background: rgba(251, 191, 36, .1); color: var(--amber); }
.alert-info { border-color: rgba(34, 211, 238, .35); background: rgba(34, 211, 238, .1); color: var(--cyan); }

/* ---------------------------- Stars ------------------------------- */
.stars { display: inline-flex; gap: 1px; }
.star { color: var(--text-faint); }
.star.is-full { color: var(--amber); }
.star.is-half { color: var(--amber); opacity: .6; }
.star .star-svg { fill: currentColor; }

/* --------------------------- Product page ------------------------- */
.product-hero { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: start; padding-block: 44px; }
.product-icon { width: 84px; height: 84px; border-radius: 22px; background: var(--grad-soft); border: 1px solid var(--border-strong); display: grid; place-items: center; overflow: hidden; font-size: 32px; font-weight: 900; }
.product-icon img { width: 100%; height: 100%; object-fit: cover; }
.product-title { font-size: clamp(1.8rem, 3.6vw, 2.6rem); letter-spacing: -.03em; }
.product-meta-row { display: flex; flex-wrap: wrap; gap: 10px 18px; color: var(--text-muted); font-size: 13.5px; }
.product-meta-row span { display: inline-flex; align-items: center; gap: 7px; }

.gallery { display: grid; gap: 12px; }
.gallery-main { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--surface); aspect-ratio: 16/9; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.gallery-thumbs img { width: 108px; height: 64px; object-fit: cover; border-radius: 9px; border: 1px solid var(--border); cursor: pointer; opacity: .6; transition: var(--transition); flex-shrink: 0; }
.gallery-thumbs img:hover, .gallery-thumbs img.active { opacity: 1; border-color: var(--violet); }

.download-row { display: flex; align-items: center; gap: 14px; padding: 15px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); transition: var(--transition); }
.download-row:hover { border-color: var(--border-strong); background: var(--surface-2); }
.download-row + .download-row { margin-top: 10px; }
.platform-glyph { width: 42px; height: 42px; border-radius: 11px; background: var(--surface-2); display: grid; place-items: center; color: var(--text-soft); flex-shrink: 0; border: 1px solid var(--border); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 26px; overflow-x: auto; }
.tab { padding: 13px 16px; font-weight: 650; font-size: 14.5px; color: var(--text-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: var(--transition); white-space: nowrap; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); border-color: var(--violet); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeUp .35s ease both; }

.prose { color: var(--text-soft); line-height: 1.8; }
.prose h2 { color: var(--text); font-size: 1.4rem; margin: 28px 0 12px; }
.prose h3 { color: var(--text); font-size: 1.1rem; margin: 22px 0 10px; }
.prose p { margin-bottom: 14px; }
.prose ul { list-style: none; display: grid; gap: 9px; margin-bottom: 16px; }
.prose ul li { position: relative; padding-left: 26px; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }
.prose a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.prose code { font-family: var(--mono); font-size: .9em; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; }

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

/* --------------------------- Review CTA --------------------------- */
.feature-item { display: flex; gap: 14px; align-items: flex-start; }
.feature-item .fi-icon { width: 40px; height: 40px; border-radius: 11px; background: var(--grad-soft); display: grid; place-items: center; flex-shrink: 0; border: 1px solid var(--border); }
.feature-item h3 { font-size: 15px; margin-bottom: 3px; }
.feature-item p { font-size: 13.5px; color: var(--text-muted); }

/* --------------------------- Donations ---------------------------- */
.amount-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.amount-opt { position: relative; }
.amount-opt input { position: absolute; opacity: 0; }
.amount-opt span {
  display: grid; place-items: center; padding: 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface); font-weight: 750; font-size: 16px;
  transition: var(--transition); cursor: pointer;
}
.amount-opt input:checked + span { background: var(--grad-soft); border-color: var(--violet); box-shadow: 0 0 0 3px var(--ring); }
.amount-opt span:hover { border-color: var(--border-strong); }

.progress { height: 12px; border-radius: 999px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--border); }
.progress > span { display: block; height: 100%; background: var(--grad); border-radius: 999px; transition: width .8s cubic-bezier(.22, 1, .36, 1); }

.donor-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.donor-chip { padding: 16px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); }
.donor-chip .amount { font-weight: 800; color: var(--cyan); }
.donor-chip p { font-size: 13px; color: var(--text-muted); margin-top: 6px; font-style: italic; }

/* ---------------------------- Tables ------------------------------ */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table.data { font-size: 14px; min-width: 620px; }
table.data th {
  text-align: left; padding: 14px 16px; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted);
  border-bottom: 1px solid var(--border); background: var(--surface-2); white-space: nowrap;
}
table.data td { padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.data tr:last-child td { border-bottom: none; }
table.data tbody tr { transition: var(--transition); }
table.data tbody tr:hover { background: var(--surface); }
.table-actions { display: flex; gap: 6px; justify-content: flex-end; }

/* --------------------------- Pagination --------------------------- */
.pagination { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.pagination a, .pagination span {
  min-width: 42px; height: 42px; padding: 0 12px; border-radius: 11px;
  display: grid; place-items: center; border: 1px solid var(--border);
  background: var(--surface); font-weight: 650; font-size: 14px; transition: var(--transition);
}
.pagination a:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.pagination .current { background: var(--grad); color: #0a0b12; border-color: transparent; }
.pagination .disabled { opacity: .4; pointer-events: none; }

/* ---------------------------- Footer ------------------------------ */
.site-footer { border-top: 1px solid var(--border); margin-top: 70px; padding-block: 56px 30px; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; margin-bottom: 42px; }
.footer-grid h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: var(--text-muted); margin-bottom: 16px; }
.footer-links { display: grid; gap: 10px; }
.footer-links a { color: var(--text-soft); font-size: 14px; transition: var(--transition); }
.footer-links a:hover { color: var(--cyan); }
.footer-bottom { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding-top: 26px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 13px; }
.social-row { display: flex; gap: 8px; }

/* ----------------------------- Auth ------------------------------- */
.auth-shell { display: grid; grid-template-columns: 1fr 1fr; min-height: 100dvh; }
.auth-side { position: relative; padding: 54px; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(160deg, #12122a, #0a0b12 60%); overflow: hidden; border-right: 1px solid var(--border); }
.auth-side::before { content: ""; position: absolute; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, rgba(139,92,246,.6), rgba(34,211,238,.3) 50%, transparent 70%); filter: blur(46px); top: -80px; right: -80px; }
.auth-side::after { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(244,114,182,.35), transparent 70%); filter: blur(46px); bottom: -60px; left: -40px; }
.auth-side > * { position: relative; z-index: 1; }
.auth-side h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 16px; }
.auth-quote { border-left: 2px solid var(--violet); padding-left: 18px; color: var(--text-soft); font-style: italic; }
.auth-main { display: grid; place-items: center; padding: 44px 22px; }
.auth-form { width: 100%; max-width: 420px; }
.auth-form h1 { font-size: 1.9rem; margin-bottom: 8px; }
.auth-form > p { color: var(--text-muted); margin-bottom: 28px; }
.divider { display: flex; align-items: center; gap: 14px; color: var(--text-faint); font-size: 12.5px; margin: 22px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.btn-google { background: var(--surface-2); border-color: var(--border-strong); color: var(--text); font-weight: 650; }
.btn-google:hover { background: var(--surface); }

/* OTP input */
.otp-input { letter-spacing: .5em; font-size: 1.6rem; text-align: center; font-family: var(--mono); font-weight: 700; }

/* ---------------------------- Charts ------------------------------ */
.bar-chart { display: flex; align-items: flex-end; gap: 4px; height: 120px; }
.bar-chart .bar { flex: 1; border-radius: 4px 4px 0 0; background: var(--grad); min-height: 3px; opacity: .85; transition: var(--transition); position: relative; }
.bar-chart .bar:hover { opacity: 1; }
.bar-chart .bar::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--surface-solid); border: 1px solid var(--border-strong); padding: 4px 8px; border-radius: 7px; font-size: 11px; white-space: nowrap; opacity: 0; pointer-events: none; transition: var(--transition); }
.bar-chart .bar:hover::after { opacity: 1; }

/* ---------------------------- Admin ------------------------------- */
.admin-shell { display: grid; grid-template-columns: 258px 1fr; min-height: 100dvh; }
.admin-side {
  position: sticky; top: 0; height: 100dvh; overflow-y: auto;
  background: var(--bg-2); border-right: 1px solid var(--border); padding: 22px 16px; display: flex; flex-direction: column; gap: 8px;
}
.admin-side .brand { padding: 6px 10px 18px; }
.admin-nav { display: grid; gap: 3px; }
.admin-nav .group-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-faint); padding: 16px 12px 6px; }
.admin-nav a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 620; color: var(--text-soft); transition: var(--transition); }
.admin-nav a:hover { background: var(--surface); color: var(--text); }
.admin-nav a.active { background: var(--grad-soft); color: var(--text); border: 1px solid rgba(139,92,246,.3); }
.admin-nav .badge { margin-left: auto; }
.admin-main { min-width: 0; }
.admin-topbar { position: sticky; top: 0; z-index: 30; height: 64px; display: flex; align-items: center; gap: 16px; padding-inline: 26px; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
.admin-content { padding: 28px 26px 60px; }
.admin-content h1 { font-size: 1.6rem; }
.stat-card { padding: 20px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); position: relative; overflow: hidden; }
.stat-card .label { font-size: 12.5px; color: var(--text-muted); font-weight: 650; text-transform: uppercase; letter-spacing: .04em; }
.stat-card .value { font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; margin: 6px 0 2px; }
.stat-card .delta { font-size: 12.5px; color: var(--text-muted); }
.stat-icon { position: absolute; right: 16px; top: 16px; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--grad-soft); color: var(--text); }

/* --------------------------- Utilities ---------------------------- */
.empty { text-align: center; padding: 60px 22px; border: 1px dashed var(--border-strong); border-radius: var(--radius); background: var(--surface); }
.empty svg { margin: 0 auto 16px; color: var(--text-faint); }
.empty h3 { margin-bottom: 8px; }
.empty p { color: var(--text-muted); max-width: 420px; margin: 0 auto 20px; }

.page-header { padding-block: 44px 30px; }
.page-header h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 10px; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--text-muted); margin-bottom: 16px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--cyan); }

.sidebar-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; }
.filter-panel { position: sticky; top: calc(var(--header-h) + 20px); }
.filter-group { padding: 18px 0; border-bottom: 1px solid var(--border); }
.filter-group:last-child { border-bottom: none; }
.filter-group h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: 12px; }
.filter-list { display: grid; gap: 3px; }
.filter-list a { display: flex; justify-content: space-between; gap: 10px; padding: 8px 11px; border-radius: 9px; font-size: 14px; color: var(--text-soft); transition: var(--transition); }
.filter-list a:hover { background: var(--surface); color: var(--text); }
.filter-list a.active { background: var(--grad-soft); color: var(--text); }
.filter-list a .n { font-size: 12px; color: var(--text-faint); }

.tag { display: inline-block; padding: 3px 9px; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--border); font-size: 12px; color: var(--text-muted); }
.tag:hover { color: var(--cyan); border-color: rgba(34,211,238,.4); }

.section-title { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 26px; flex-wrap: wrap; }
.section-title h2 { font-size: clamp(1.4rem, 3vw, 1.95rem); }
.section-title p { color: var(--text-muted); font-size: 14.5px; margin-top: 6px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); margin-bottom: 12px; }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--grad); }

.divider-line { height: 1px; background: var(--border); margin-block: 34px; }
.kbd { font-family: var(--mono); font-size: 11.5px; padding: 2px 7px; border-radius: 6px; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text-soft); }
.copy-field { display: flex; gap: 8px; }
.copy-field input { font-family: var(--mono); letter-spacing: .04em; }

/* ------------------------- Animations ----------------------------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.reveal { animation: fadeUp .55s cubic-bezier(.22, 1, .36, 1) both; }
.reveal-1 { animation-delay: .05s; } .reveal-2 { animation-delay: .1s; } .reveal-3 { animation-delay: .15s; } .reveal-4 { animation-delay: .2s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .orb { animation: none; }
}

/* --------------------------- Responsive --------------------------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { max-width: 520px; }
  .product-hero { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: fixed; z-index: 80; width: 260px; transform: translateX(-100%); transition: var(--transition); }
  .admin-side.open { transform: none; }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .nav-toggle { display: grid; }
  .header-search { display: none; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sidebar-layout { grid-template-columns: 1fr; }
  .filter-panel { position: static; }
}
@media (max-width: 620px) {
  .section { padding-block: 52px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding-block: 60px 40px; }
  .hero-stats { gap: 22px; }
  .amount-grid { grid-template-columns: repeat(2, 1fr); }
  .card { padding: 18px; }
  .admin-content { padding: 20px 16px 50px; }
  .auth-main { padding: 30px 18px; }
}

/* Print */
@media print {
  .site-header, .site-footer, .header-actions, .nav-toggle { display: none !important; }
  body { background: #fff; color: #000; }
}
