/* Cherries website - shared styles (matches the desktop app) */
:root {
  color-scheme: dark;
  --accent: #e26a97;        /* rose pink */
  --accent-deep: #c23e70;   /* deep rose */
  --accent-cyan: #00f0ff;   /* secondary accent */
  --accent-gold: #ffc24b;   /* tertiary accent */
  --bg: #0b0b0e;
  --panel: rgba(21, 21, 26, 0.72);
  --card: rgba(16, 16, 20, 0.86);
  --field: #101014;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8e8ee;
  --muted: #8a8a96;
  --danger: #f2616e;
  --ok: #4ade80;
  --radius: 14px;
  --ease: 200ms cubic-bezier(.4, 0, .2, 1);
}
:root[data-theme="light"] {
  color-scheme: light;
  --accent: #bf3470;
  --accent-deep: #8f2153;
  --bg: #fff;
  --panel: #f8f4f6;
  --card: #fff;
  --field: #fcf9fb;
  --border: rgba(34, 33, 48, .14);
  --text: #25282b;
  --muted: #4c5155;
  --danger: #922f3b;
  --ok: #1c6841;
}
@font-face {
  font-family: "Aquino";
  src: url("aquino.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; transition: color var(--ease); }
a:hover { color: #f0a5c2; }

/* animated network background */
#bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; }

/* top bar */
.nav {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 40px; max-width: 1200px; margin: 0 auto;
}
.nav-index { justify-content: flex-end; }
.logo { font-family: "Aquino", sans-serif; font-size: 24px; font-weight: 400; letter-spacing: 0; color: #f1f1f5; }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 10px; align-items: center; }
:root[data-theme="light"] .logo { color: #272633; }
:root[data-theme="light"] a:hover { color: var(--accent-deep); }
:root[data-theme="light"] #bg { opacity: .92; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; cursor: pointer;
  padding: 10px 18px; border-radius: 10px; border: 1px solid transparent;
  transition: background var(--ease), border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent-deep); color: #fff; }
:root[data-theme="light"] .btn-ghost:hover { background: rgba(191, 52, 112, .08); color: var(--text); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent-deep), var(--accent)); color: #fff;
  box-shadow: 0 6px 20px rgba(226, 106, 151, .32);
}
.btn-primary:hover { box-shadow: 0 8px 26px rgba(226, 106, 151, .5); }
:root[data-theme="light"] .btn-primary { box-shadow: 0 6px 20px rgba(191, 52, 112, .2); }
:root[data-theme="light"] .btn-primary:hover { box-shadow: 0 8px 26px rgba(191, 52, 112, .3); }
.btn-block { width: 100%; padding: 13px; font-size: 15px; }

/* hero (landing) */
.hero {
  position: relative; z-index: 1;
  max-width: 860px; margin: 0 auto; padding: 90px 24px 60px; text-align: center;
}
.hero-brand { display: grid; min-height: calc(100vh - 72px); place-items: center; padding-top: 0; padding-bottom: 72px; }
.hero-brand-lockup { display: flex; flex-direction: column; align-items: center; }
.hero-wordmark {
  display: block; width: min(660px, 84vw); height: 140px; max-width: 100%;
  user-select: none; -webkit-user-select: none; pointer-events: none;
}
.hero-invite { margin: -4px 0 0; }
.badge {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); background: rgba(226, 106, 151, .12);
  border: 1px solid rgba(226, 106, 151, .3); padding: 6px 14px; border-radius: 999px; margin-bottom: 26px;
}
:root[data-theme="light"] .badge { background: rgba(191, 52, 112, .09); border-color: rgba(191, 52, 112, .25); }
.hero h1 { font-size: 54px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; margin-bottom: 20px; }
.hero h1 .grad { background: linear-gradient(120deg, var(--accent), var(--accent-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 18px; color: var(--muted); max-width: 620px; margin: 0 auto 34px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* auth card (login / register) */
.auth-wrap { position: relative; z-index: 1; min-height: calc(100vh - 80px);
  display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.card {
  width: 100%; max-width: 420px;
  background: var(--card); backdrop-filter: blur(12px);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 36px 34px; box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}
.card .logo { display: block; text-align: center; margin-bottom: 4px; }
.card .sub { text-align: center; color: var(--muted); margin-bottom: 26px; font-size: 14px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 7px; }
.field input {
  width: 100%; font: inherit; color: var(--text);
  background: var(--field); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.field input::placeholder { color: #555560; }
.field input:focus { outline: none; border-color: var(--accent-deep); box-shadow: 0 0 0 3px rgba(226, 106, 151, .18); }
:root[data-theme="light"] .field input:focus { box-shadow: 0 0 0 3px rgba(191, 52, 112, .16); }
.field input.mono { letter-spacing: .18em; text-transform: uppercase; }

.msg { font-size: 14px; padding: 10px 14px; border-radius: 10px; margin-bottom: 16px; display: none; }
.msg.show { display: block; }
.msg.error { color: var(--danger); background: rgba(242, 97, 110, .1); border: 1px solid rgba(242, 97, 110, .3); }
.msg.ok { color: var(--ok); background: rgba(74, 222, 128, .1); border: 1px solid rgba(74, 222, 128, .3); }

.card .foot { text-align: center; color: var(--muted); font-size: 14px; margin-top: 18px; }
.hint { font-size: 12.5px; color: #70707c; margin-top: -6px; margin-bottom: 16px; }

/* dashboard */
.dashboard-shell {
  position: relative; z-index: 1; max-width: 1200px; margin: 50px auto; padding: 0 20px;
}
.dashboard-grid {
  display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 22px; align-items: stretch;
}
.panel {
  background: rgba(16, 16, 20, 0.9); border: 1px solid var(--border); border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  transition: border-color var(--ease), box-shadow var(--ease);
}
:root[data-theme="light"] .panel { background: var(--panel); box-shadow: 0 16px 38px rgba(28, 27, 40, .16); }
.sidebar-panel {
  padding: 28px 22px; display: flex; flex-direction: column; gap: 22px;
}
:root[data-theme="light"] .user-chip,
:root[data-theme="light"] .user-card,
:root[data-theme="light"] .stat-card,
:root[data-theme="light"] .setting-item,
:root[data-theme="light"] .invite-row,
:root[data-theme="light"] .feature {
  background: rgba(31, 30, 45, .035);
}
:root[data-theme="light"] .side-nav a:hover,
:root[data-theme="light"] .side-nav a.active { color: var(--text); }
:root[data-theme="light"] .side-nav a.active { background: rgba(191, 52, 112, .08); border-color: rgba(191, 52, 112, .22); }
.main-panel { padding: 28px 26px; }

.sidebar-panel .logo { font-size: 30px; }
.user-chip {
  display: flex; align-items: center; gap: 12px; padding: 12px 10px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.02); border: 1px solid var(--border);
}
.user-chip strong, .user-card h1 { display: block; font-size: 1.1rem; }
.user-chip small, .muted, .eyebrow { color: var(--muted); }
.user-chip small { display: block; font-size: 12px; }
.avatar, .profile-avatar {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep)); color: white; font-weight: 700;
}
.profile-avatar { width: 64px; height: 64px; font-size: 1.5rem; }

.side-nav { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.side-nav a {
  display: block; padding: 10px 12px; border-radius: 10px; color: var(--muted); border: 1px solid transparent;
  transition: color var(--ease);
}
.side-nav a:hover, .side-nav a.active {
  color: white;
}
.side-nav a span { position: relative; display: inline-block; }
.side-nav a span::after {
  position: absolute; bottom: -3px; left: 50%; width: 0; height: 2px; content: "";
  background: linear-gradient(90deg, var(--accent-deep), var(--accent));
  transform: translateX(-50%); transition: width var(--ease);
}
.side-nav a:hover span::after, .side-nav a.active span::after {
  width: 100%;
}

.panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-bottom: 18px;
}
.user-card {
  display: flex; align-items: center; gap: 18px; padding: 18px 18px 20px; margin-bottom: 22px;
  border: 1px solid var(--border); border-radius: 14px; background: rgba(255, 255, 255, 0.02);
  transition: border-color var(--ease), box-shadow var(--ease);
}
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.user-card p { color: var(--muted); }

.stats-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
}
.secondary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat-card {
  padding: 18px 16px; border: 1px solid var(--border); border-radius: 14px; background: rgba(255, 255, 255, 0.02);
  transition: border-color var(--ease), box-shadow var(--ease);
}
.compact-card { padding: 16px 14px; }
.stat-card span, .stat-card small { display: block; color: var(--muted); }
.stat-card strong { display: block; font-size: 1.3rem; margin: 6px 0; }

.panel-section { margin-top: 30px; }
.panel-section h2 { font-size: 1.05rem; margin-bottom: 14px; }
.action-row { display: flex; gap: 12px; flex-wrap: wrap; }
.updates-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.updates-column { min-width: 0; height: 360px; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; padding-right: 8px; }
.updates-column h2 { position: sticky; top: 0; z-index: 1; margin-bottom: 8px; padding: 5px 0 0; background: var(--card); font-size: 18px; }
.updates-column h2::after {
  display: block; width: 100%; height: 3px; margin-top: 10px; border-radius: 2px;
  background: var(--accent-deep); content: "";
}
.update-entry {
  margin: 10px 0; padding: 13px 14px; border: 1px solid rgba(226, 106, 151, .18); border-radius: 9px;
  background: rgba(226, 106, 151, .07);
}
:root[data-theme="light"] .update-entry {
  border-color: rgba(191, 52, 112, .14);
  background: rgba(191, 52, 112, .045);
}
.update-entry-heading { display: flex; align-items: center; gap: 9px; }
.update-entry h3 { font-size: 15px; font-weight: 600; }
.update-delete {
  display: grid; flex: 0 0 30px; width: 30px; height: 30px; place-items: center; margin-left: auto;
  border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--muted);
  cursor: pointer; opacity: 0; pointer-events: none; transition: opacity var(--ease), color var(--ease), background var(--ease), border-color var(--ease);
}
.update-delete svg { width: 16px; height: 16px; }
.update-entry:hover .update-delete, .update-entry:focus-within .update-delete { opacity: 1; pointer-events: auto; }
.update-delete:hover { border-color: rgba(242, 97, 110, .3); background: rgba(242, 97, 110, .1); color: var(--danger); }
.update-delete:focus-visible { opacity: 1; outline: 2px solid var(--accent-deep); outline-offset: 2px; pointer-events: auto; }
.update-version { flex: 0 0 auto; padding: 2px 7px; border-radius: 6px; background: rgba(226, 106, 151, .12); color: var(--accent); font-size: 11px; font-weight: 700; }
:root[data-theme="light"] .update-version { background: rgba(191, 52, 112, .09); }
.update-body { margin-top: 7px; color: var(--text); font-size: 14px; overflow-wrap: anywhere; white-space: pre-wrap; }
.update-meta, .updates-empty { margin-top: 9px; color: var(--muted); font-size: 12px; }
.updates-empty { margin-top: 0; }

.settings-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px;
}
.setting-item {
  display: flex; flex-direction: column; gap: 8px;
  min-height: 96px; padding: 18px 16px; border: 1px solid var(--border); border-radius: 14px; background: rgba(255, 255, 255, 0.02);
  transition: border-color var(--ease), box-shadow var(--ease);
}
.setting-item span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.setting-item strong { font-size: 1rem; }
.appearance-section { max-width: 420px; }
.theme-setting { min-height: 0; gap: 9px; }
.theme-setting label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.theme-select {
  width: 100%; min-height: 42px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 9px;
  background: var(--field); color: var(--text); font: inherit;
}
.theme-select:focus-visible { outline: 3px solid rgba(226, 106, 151, .24); outline-offset: 2px; border-color: var(--accent-deep); }
:root[data-theme="light"] .theme-select:focus-visible { outline-color: rgba(191, 52, 112, .2); }

.admin-shell { max-width: 1200px; }
.admin-intro {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 24px 26px; margin-bottom: 20px;
}
.admin-intro h1 { font-size: 2.1rem; margin-top: 10px; }
.admin-stats { margin-bottom: 22px; }
.admin-grid {
  display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 22px;
}
.admin-panel { padding: 20px 18px; }
:root[data-theme="light"] .admin-panel { background: var(--card); }
.admin-panel h2 { margin-bottom: 16px; }
.admin-panel-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.admin-panel-head h2 { margin: 0 auto 0 0; }
.admin-search, .admin-filter, .admin-table select {
  min-height: 36px; border: 1px solid var(--border); border-radius: 8px; padding: 7px 10px;
  background: rgba(255, 255, 255, 0.04); color: var(--text); font: inherit;
}
.admin-search { width: min(100%, 260px); }
.admin-filter { min-width: 120px; }
.admin-table select { min-width: 92px; }
.admin-table select:disabled { opacity: 0.55; }
.admin-actions { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.table-wrap { overflow-x: auto; }
.admin-table {
  width: 100%; border-collapse: collapse; min-width: 860px; font-size: 14px;
}
.admin-table th, .admin-table td {
  text-align: left; padding: 12px 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
:root[data-theme="light"] .admin-table th,
:root[data-theme="light"] .admin-table td { border-bottom-color: rgba(34, 33, 48, .1); }
:root[data-theme="light"] .admin-search,
:root[data-theme="light"] .admin-filter,
:root[data-theme="light"] .admin-table select { background: var(--field); }
.admin-table th { color: var(--muted); font-weight: 600; }
.admin-table tbody tr { transition: background var(--ease); }
.admin-table tbody tr:hover { background: rgba(226, 106, 151, .06); }
:root[data-theme="light"] .admin-table tbody tr:hover { background: rgba(191, 52, 112, .05); }
.small-btn { padding: 7px 10px; font-size: 12px; }
.btn-danger { border: 1px solid rgba(239, 68, 68, 0.35); color: #fca5a5; }
:root[data-theme="light"] .btn-danger { color: #a52c3b; }
.btn-danger:hover:not(:disabled) { background: rgba(239, 68, 68, 0.12); }
.btn-danger:disabled { opacity: .45; cursor: not-allowed; }
.admin-actions button:disabled { opacity: 0.45; cursor: not-allowed; }
.admin-history { margin-top: 22px; }
.invite-history-head { margin-bottom: 8px; }
.invite-history-head h2 { margin: 0; }
.history-scroll.is-scrollable { max-height: 248px; overflow: auto; scrollbar-gutter: stable; }
.invite-history-scroll.is-scrollable .admin-table { min-width: 940px; }
.invite-history-scroll.is-scrollable .admin-table thead th { position: sticky; top: 0; z-index: 1; background: var(--card); }
.admin-form .field { margin-bottom: 14px; }
.admin-form textarea {
  display: block; width: 100%; min-height: 120px; padding: 11px 13px; resize: vertical;
  border: 1px solid var(--border); border-radius: 9px; background: var(--field); color: var(--text); font: inherit;
}
.admin-form textarea:focus { outline: none; border-color: var(--accent-deep); box-shadow: 0 0 0 3px rgba(226, 106, 151, .16); }
:root[data-theme="light"] .admin-form textarea:focus { box-shadow: 0 0 0 3px rgba(191, 52, 112, .12); }
.admin-content-grid { margin-top: 22px; }
.admin-content-grid .admin-panel { padding: 16px; }
.admin-content-grid .admin-panel h2 { margin-bottom: 10px; }
.admin-content-grid .admin-form .field { margin-bottom: 10px; }
.admin-content-grid .admin-form textarea { min-height: 82px; }
.form-feedback { min-height: 20px; margin-top: 8px; color: var(--muted); font-size: 12px; }
.form-feedback.success { color: var(--ok); }
.form-feedback.error { color: var(--danger); }
.invite-list { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.invite-row {
  display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.02); border: 1px solid var(--border); font-size: 13px;
}
.invite-row.empty { justify-content: center; color: var(--muted); }

.panel:not(.sidebar-panel):hover:not(:has(:hover)), .stat-card:hover, .user-card:hover, .setting-item:hover, .feature:hover {
  border-color: rgba(226, 106, 151, .55);
  box-shadow: 0 0 0 1px rgba(226, 106, 151, .18), 0 0 18px rgba(194, 62, 112, .12);
}
:root[data-theme="light"] .panel:not(.sidebar-panel):hover:not(:has(:hover)),
:root[data-theme="light"] .stat-card:hover,
:root[data-theme="light"] .user-card:hover,
:root[data-theme="light"] .setting-item:hover,
:root[data-theme="light"] .feature:hover {
  border-color: rgba(191, 52, 112, .48);
  box-shadow: 0 0 0 1px rgba(191, 52, 112, .14), 0 0 18px rgba(191, 52, 112, .1);
}

@media (max-width: 760px) {
  .hero h1 { font-size: 38px; }
  .hero { padding-top: 64px; }
  .hero-wordmark { height: 98px; }
  .nav { padding: 18px 20px; }
  .dashboard-shell { margin: 24px auto; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .main-panel, .sidebar-panel { padding: 20px 16px; }
  .admin-intro h1 { font-size: 1.6rem; }
  .stats-grid, .secondary-grid, .settings-grid, .admin-grid, .updates-grid { grid-template-columns: 1fr; }
  .updates-column { height: 300px; }
  .update-delete { opacity: 1; pointer-events: auto; }
  .film-section { padding-left: 20px; padding-right: 20px; }
}

/* product downloads + admin product management */
.dl-actions { margin-top: 18px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.dl-note { margin-top: 10px; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.status-dot.undetected { background: #34d399; }
.status-dot.testing { background: #fbbf24; }
.status-dot.updating { background: #fb923c; }
.status-dot.disabled { background: #f87171; }
.status-dot.locked { background: #8a8a96; }
.sub-chip { display: inline-flex; align-items: center; gap: 4px; margin-right: 8px; white-space: nowrap; }
.product-row { margin-bottom: 14px; }
.product-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.product-controls { display: flex; gap: 8px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.product-upload { margin-top: 8px; }

/* ---- global polish ---- */
:root { scrollbar-width: thin; scrollbar-color: rgba(226, 106, 151, .45) transparent; }
:root[data-theme="light"] { scrollbar-color: rgba(191, 52, 112, .4) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(226, 106, 151, .32); border: 2px solid transparent;
  border-radius: 8px; background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: rgba(226, 106, 151, .58); background-clip: padding-box; border: 2px solid transparent; }
:root[data-theme="light"] ::-webkit-scrollbar-thumb { background: rgba(191, 52, 112, .3); background-clip: padding-box; border: 2px solid transparent; }
:root[data-theme="light"] ::-webkit-scrollbar-thumb:hover { background: rgba(191, 52, 112, .5); background-clip: padding-box; border: 2px solid transparent; }

::selection { background: rgba(226, 106, 151, .38); color: #fff; }
:root[data-theme="light"] ::selection { background: rgba(191, 52, 112, .22); color: inherit; }

a:focus-visible, button:focus-visible, .btn:focus-visible, .side-nav a:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px;
}

/* glassy panels */
.panel { backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }

/* card entrance */
@keyframes rise-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.auth-wrap .card, .dashboard-shell .panel, .admin-shell .panel { animation: rise-in .5s cubic-bezier(.2, .7, .2, 1) both; }
.dashboard-shell .main-panel, .admin-shell .admin-grid { animation-delay: .08s; }

/* skeleton shimmer for loading states */
.skeleton {
  position: relative; overflow: hidden; color: transparent !important;
  background: rgba(255, 255, 255, .05); border-radius: 8px; pointer-events: none;
}
.skeleton::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(226, 106, 151, .14) 50%, transparent 80%);
  animation: shimmer 1.4s infinite;
}
:root[data-theme="light"] .skeleton { background: rgba(31, 30, 45, .06); }
.sk-entry { height: 64px; margin: 10px 0; }
.sk-card { min-height: 92px; }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

@media (prefers-reduced-motion: reduce) {
  .auth-wrap .card, .dashboard-shell .panel, .admin-shell .panel { animation: none; }
  .skeleton::after { animation: none; }
}

.logo-plain { text-decoration: none; }

/* brand lockup image (cherries mascot + wordmark) with styled-text fallback */
.logo-img { height: 34px; width: auto; display: block; }
.nav .logo-img { height: 28px; }
.card .logo-img { margin: 0 auto 4px; }
.sidebar-panel .logo-img { height: 38px; }
.logo .logo-text-fallback { display: none; }
:root[data-theme="light"] .logo-img { filter: drop-shadow(0 1px 2px rgba(34, 33, 48, .25)); }

/* ---- index: scroll-driven brand film ---- */
#scene {
  position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0;
  pointer-events: none;
}
.film { position: relative; z-index: 1; }
.film-section {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 12vh 24px; text-align: center;
}
.film-inner { max-width: 780px; }
.film-inner h1, .film-inner h2 {
  font-size: clamp(34px, 5.4vw, 58px); line-height: 1.08; font-weight: 800;
  letter-spacing: -.02em; margin-bottom: 18px;
}
.film-inner h1 .grad, .film-inner h2 .grad {
  background: linear-gradient(120deg, var(--accent), var(--accent-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.film-inner p { font-size: 18px; color: var(--muted); max-width: 600px; margin: 0 auto 30px; }
.film-cards { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.film-tagline {
  font-size: clamp(20px, 2.6vw, 28px); font-weight: 600; letter-spacing: .02em;
  color: var(--text); margin-bottom: 28px;
}
.film-tagline span { color: var(--accent); }
/* feature cards reuse the hover glow from .feature */
.feature {
  flex: 1 1 200px; max-width: 250px; padding: 20px 18px; text-align: left;
  border: 1px solid var(--border); border-radius: 14px; background: var(--card);
  transition: border-color var(--ease), box-shadow var(--ease);
}
.feature h3 { font-size: 15px; margin-bottom: 6px; }
.feature p { font-size: 13px; color: var(--muted); margin: 0; }
/* section reveal animation */
.film-section .film-inner > * { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.film-section.is-visible .film-inner > * { opacity: 1; transform: none; }
.film-section.is-visible .film-inner > *:nth-child(2) { transition-delay: .08s; }
.film-section.is-visible .film-inner > *:nth-child(3) { transition-delay: .16s; }
.film-section.is-visible .film-inner > *:nth-child(4) { transition-delay: .24s; }
.film-section.is-visible .film-inner > *:nth-child(5) { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  #scene { display: none; }
  .film-section { min-height: auto; padding: 16vh 24px; }
  .film-section .film-inner > * { opacity: 1; transform: none; transition: none; }
}
@media (max-width: 760px) {
  .film-inner p { font-size: 16px; }
}

/* film grain overlay (index only) — static, near-invisible texture */
.film-page::after {
  content: ""; position: fixed; inset: 0; z-index: 4; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-reduced-motion: reduce) { .film-page::after { display: none; } }

/* scroll progress rail (built by scenes.js only when the film runs) */
.film-rail {
  position: fixed; right: 26px; top: 50%; transform: translateY(-50%); z-index: 3;
  display: flex; flex-direction: column; gap: 18px;
}
.film-dot {
  position: relative; width: 12px; height: 12px; padding: 0; border-radius: 50%;
  border: 1.5px solid rgba(226, 106, 151, .5); background: transparent; cursor: pointer;
  transition: background var(--ease), transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.film-dot:hover { transform: scale(1.25); }
.film-dot.active { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 12px rgba(226, 106, 151, .8); }
.film-dot-label {
  position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  white-space: nowrap; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); opacity: 0; transition: opacity var(--ease); pointer-events: none;
}
.film-dot:hover .film-dot-label, .film-dot.active .film-dot-label, .film-dot:focus-visible .film-dot-label { opacity: 1; }
@media (max-width: 760px) {
  .film-rail { right: 12px; gap: 14px; }
  .film-dot-label { display: none; }
}
