﻿:root {
  --bg: #07111f;
  --bg-2: #0c1b2d;
  --card: rgba(255, 255, 255, .075);
  --card-2: rgba(255, 255, 255, .115);
  --line: rgba(255, 255, 255, .12);
  --text: #f5fbff;
  --muted: #9db0c4;
  --green: #39ff88;
  --green-2: #22c55e;
  --blue: #38bdf8;
  --cyan: #67e8f9;
  --orange: #f59e0b;
  --red: #fb7185;
  --purple: #a78bfa;
  --shadow: 0 24px 80px rgba(0, 0, 0, .35);
  --radius: 28px;
  font-family: Inter, "Microsoft YaHei UI", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 12%, rgba(57,255,136,.20), transparent 30%),
    radial-gradient(circle at 86% 8%, rgba(56,189,248,.20), transparent 30%),
    radial-gradient(circle at 55% 86%, rgba(167,139,250,.12), transparent 30%),
    linear-gradient(135deg, #050b14, var(--bg) 48%, #091929);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, black, transparent 86%);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(22px);
  background: rgba(5, 11, 20, .72);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: 1220px;
  margin: 0 auto;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo { display: flex; align-items: center; gap: 12px; font-weight: 900; letter-spacing: -.03em; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 14px;
  background: conic-gradient(from 180deg, var(--green), var(--blue), var(--purple), var(--green));
  box-shadow: 0 0 28px rgba(57,255,136,.32);
  position: relative;
}
.logo-mark:after { content: ""; position: absolute; inset: 9px; border-radius: 9px; background: #06101c; }
.nav-links { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.nav-links a { color: var(--muted); padding: 10px 13px; border-radius: 999px; font-size: 14px; }
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(255,255,255,.08); }
.nav-cta { display: flex; gap: 10px; align-items: center; }

.container { max-width: 1220px; margin: 0 auto; padding: 34px 22px 80px; position: relative; z-index: 1; }
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 28px; align-items: center; min-height: calc(100vh - 110px); }
.eyebrow { display: inline-flex; gap: 9px; align-items: center; color: var(--cyan); background: rgba(103,232,249,.09); border: 1px solid rgba(103,232,249,.20); padding: 10px 14px; border-radius: 999px; font-size: 13px; font-weight: 800; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 20px var(--green); }
h1 { margin: 22px 0 18px; font-size: clamp(44px, 7vw, 92px); line-height: .92; letter-spacing: -.07em; }
.gradient-text { background: linear-gradient(120deg, var(--green), var(--cyan), #fff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: 18px; line-height: 1.8; max-width: 640px; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.btn {
  border: 1px solid var(--line); color: var(--text); background: rgba(255,255,255,.08);
  border-radius: 16px; padding: 13px 18px; cursor: pointer; font-weight: 900;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn.primary { border-color: transparent; color: #06101c; background: linear-gradient(135deg, var(--green), var(--cyan)); box-shadow: 0 18px 42px rgba(57,255,136,.22); }
.btn.warn { border-color: rgba(245,158,11,.25); background: rgba(245,158,11,.12); color: #ffd999; }
.btn.danger { border-color: rgba(251,113,133,.28); background: rgba(251,113,133,.12); color: #ffc0ca; }
.btn.ghost { background: transparent; }
.btn.full { width: 100%; }
.auth-hero { grid-template-columns: .85fr 1.15fr; align-items: center; }
.auth-grid { display: grid; grid-template-columns: repeat(2, minmax(260px, 1fr)); gap: 18px; width: 100%; }
.auth-card { min-height: 390px; }
.register-card { background: linear-gradient(180deg, rgba(56,189,248,.12), rgba(255,255,255,.06)); }
.form-status { min-height: 22px; color: #fb7185; font-weight: 900; }

.glass {
  background: linear-gradient(180deg, var(--card-2), rgba(255,255,255,.055));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}
.dashboard-card { padding: 26px; position: relative; overflow: hidden; }
.dashboard-card:before { content: ""; position: absolute; inset: -2px; background: radial-gradient(circle at 70% 20%, rgba(57,255,136,.22), transparent 32%); pointer-events: none; }
.card-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; position: relative; }
.badge { color: var(--green); background: rgba(57,255,136,.10); border: 1px solid rgba(57,255,136,.18); border-radius: 999px; padding: 7px 10px; font-size: 12px; font-weight: 900; }
.metric-big { margin: 26px 0 6px; font-size: 74px; line-height: 1; letter-spacing: -.07em; font-weight: 950; }
.metric-big span { color: var(--green); text-shadow: 0 0 30px rgba(57,255,136,.28); }
.muted { color: var(--muted); }
.ring-wrap { display: grid; grid-template-columns: 190px 1fr; gap: 20px; align-items: center; margin-top: 26px; }
.ring { width: 190px; height: 190px; border-radius: 50%; background: conic-gradient(var(--green) 0 78%, rgba(255,255,255,.08) 78%); display: grid; place-items: center; box-shadow: inset 0 0 40px rgba(0,0,0,.35), 0 0 40px rgba(57,255,136,.18); }
.ring-inner { width: 134px; height: 134px; border-radius: 50%; background: rgba(5,11,20,.92); display: grid; place-items: center; text-align: center; border: 1px solid var(--line); }
.ring-inner strong { font-size: 30px; }
.wave { height: 112px; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(57,255,136,.10), rgba(56,189,248,.04)); position: relative; overflow: hidden; }
.wave svg { width: 100%; height: 100%; }

.grid { display: grid; gap: 18px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.section { padding-top: 28px; }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
h2 { margin: 0; font-size: 34px; letter-spacing: -.04em; }
.card { padding: 22px; }
.card h3 { margin: 0 0 8px; font-size: 19px; }
.kpi { font-size: 34px; font-weight: 950; letter-spacing: -.05em; margin: 14px 0 4px; }
.kpi.green { color: var(--green); }
.kpi.blue { color: var(--blue); }
.kpi.orange { color: var(--orange); }
.kpi.red { color: var(--red); }

.form { display: grid; gap: 15px; }
.field label { display: flex; justify-content: space-between; margin: 0 0 8px; color: var(--text); font-size: 14px; font-weight: 850; }
.field small { color: var(--muted); font-weight: 500; }
.input, select {
  width: 100%; border: 1px solid var(--line); background: rgba(255,255,255,.08); color: var(--text);
  border-radius: 16px; padding: 14px 15px; outline: none;
}
.input:focus, select:focus { border-color: rgba(57,255,136,.45); box-shadow: 0 0 0 4px rgba(57,255,136,.10); }
.range-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.presets { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: rgba(255,255,255,.07); color: var(--muted); border-radius: 999px; padding: 9px 12px; font-size: 13px; font-weight: 800; }
.chip.active { color: #06101c; background: var(--green); border-color: transparent; }
.confirm-stack { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.confirm-pill { padding: 10px; border-radius: 14px; text-align: center; border: 1px solid rgba(245,158,11,.24); color: #ffd999; background: rgba(245,158,11,.08); font-size: 12px; font-weight: 900; }
.timeline { display: grid; gap: 13px; }
.step { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); }
.step i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(57,255,136,.10); border: 1px solid rgba(57,255,136,.18); color: var(--green); font-style: normal; font-size: 12px; font-weight: 900; flex: 0 0 auto; }
.step strong { color: var(--text); display: block; }

.table { width: 100%; border-collapse: collapse; overflow: hidden; }
.table th, .table td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.table th { color: var(--text); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.inline-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inline-actions .btn { padding: 8px 10px; font-size: 12px; }
.stacked { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.compact-table th, .compact-table td { padding: 10px 12px; }
.table code { color: var(--text); background: rgba(255,255,255,.06); border: 1px solid var(--line); border-radius: 8px; padding: 3px 6px; }
#users { overflow-x: auto; }
#users .table { min-width: 1180px; }
.status { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 999px; font-size: 12px; font-weight: 900; }
.status.ok { color: var(--green); background: rgba(57,255,136,.10); }
.status.wait { color: var(--orange); background: rgba(245,158,11,.10); }
.status.bad { color: var(--red); background: rgba(251,113,133,.10); }

.sidebar-layout { display: grid; grid-template-columns: 260px 1fr; gap: 20px; align-items: start; }
.sidebar { position: sticky; top: 88px; padding: 16px; }
.side-link { display: flex; justify-content: space-between; align-items: center; padding: 13px 14px; border-radius: 16px; color: var(--muted); }
.side-link.active, .side-link:hover { background: rgba(255,255,255,.08); color: var(--text); }

.love-body {
  --pink: #ff5ea8; --pink2: #ff9bd2; --violet: #a78bfa;
  background:
    radial-gradient(circle at 20% 15%, rgba(255,94,168,.35), transparent 30%),
    radial-gradient(circle at 82% 10%, rgba(167,139,250,.30), transparent 32%),
    linear-gradient(135deg, #fff0f7, #efe8ff 52%, #e8f7ff);
  color: #3a2036;
}
.love-body .topbar { background: rgba(255,255,255,.62); border-bottom-color: rgba(255,94,168,.16); }
.love-body .nav-links a, .love-body .muted { color: #865f7e; }
.love-body .glass { background: rgba(255,255,255,.68); border-color: rgba(255,94,168,.18); box-shadow: 0 24px 80px rgba(255,94,168,.18); }
.love-body .gradient-text { background: linear-gradient(120deg, var(--pink), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.love-body .btn.primary { background: linear-gradient(135deg, var(--pink), var(--violet)); color: white; }
.love-body .input { background: rgba(255,255,255,.72); color: #3a2036; border-color: rgba(255,94,168,.18); }
.heart-field { position: fixed; inset: 0; pointer-events: none; opacity: .28; background-image: radial-gradient(circle, #ff5ea8 2px, transparent 3px); background-size: 42px 42px; mask-image: linear-gradient(to bottom, black, transparent); }

.footer { color: var(--muted); border-top: 1px solid var(--line); padding: 24px 22px; text-align: center; }
.mobile-only { display: none; }

@media (max-width: 940px) {
  .hero, .grid.cols-2, .grid.cols-3, .grid.cols-4, .sidebar-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .ring-wrap { grid-template-columns: 1fr; }
  .nav { align-items: flex-start; }
  .nav-links { display: none; }
  .mobile-only { display: inline-flex; }
}
@media (max-width: 560px) {
  .container { padding-inline: 14px; }
  .nav { padding-inline: 14px; }
  h1 { font-size: 48px; }
  .metric-big { font-size: 54px; }
  .range-row, .confirm-stack { grid-template-columns: 1fr; }
}

/* Premium polish pass */
body:after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.035) 45%, transparent 55%);
  transform: translateX(-100%);
  animation: ambientSweep 9s ease-in-out infinite;
}
@keyframes ambientSweep { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.logo-mark { animation: breatheGlow 3.4s ease-in-out infinite; }
@keyframes breatheGlow { 0%, 100% { filter: saturate(1); transform: scale(1); } 50% { filter: saturate(1.45); transform: scale(1.04); } }
.glass { transition: transform .28s ease, border-color .28s ease, background .28s ease; }
.glass:hover { transform: translateY(-3px); border-color: rgba(57,255,136,.24); }
.btn { position: relative; overflow: hidden; transition: transform .22s ease, border-color .22s ease; }
.btn:hover { transform: translateY(-2px); border-color: rgba(57,255,136,.35); }
.btn:before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255,255,255,.24), transparent 34%);
  opacity: 0; transition: opacity .22s ease;
}
.btn:hover:before { opacity: 1; }
.metric-big span, .kpi.green { text-shadow: 0 0 22px rgba(57,255,136,.32); }
.hero-orb {
  position: absolute; right: 8%; top: 18%; width: 340px; height: 340px; border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(103,232,249,.75), rgba(57,255,136,.22) 32%, rgba(167,139,250,.10) 55%, transparent 72%);
  filter: blur(.2px); opacity: .42; pointer-events: none; animation: floatOrb 7s ease-in-out infinite;
}
@keyframes floatOrb { 0%,100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(-22px,18px,0) scale(1.06); } }
.command-strip {
  display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px;
  border: 1px solid var(--line); border-radius: 22px; padding: 12px; background: rgba(255,255,255,.055);
}
.command-strip span { padding: 9px 12px; border-radius: 999px; background: rgba(255,255,255,.07); color: var(--muted); font-size: 12px; font-weight: 900; }
.mini-nav { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.mini-nav a { padding: 10px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: rgba(255,255,255,.055); font-size: 13px; font-weight: 900; }
.mini-nav a.active { color: #06101c; background: linear-gradient(135deg, var(--green), var(--cyan)); border-color: transparent; }
.switch { width: 58px; height: 32px; border-radius: 999px; background: rgba(57,255,136,.28); border: 1px solid rgba(57,255,136,.35); position: relative; }
.switch:after { content:""; position:absolute; width:24px; height:24px; border-radius:50%; right:4px; top:3px; background: var(--green); box-shadow: 0 0 18px rgba(57,255,136,.45); }
.switch.off { background: rgba(255,255,255,.10); border-color: var(--line); }
.switch.off:after { left:4px; right:auto; background: var(--muted); box-shadow:none; }
.compact-copy .lead, .compact-copy .muted.long { max-width: 560px; }
.user-note { color: var(--purple); background: rgba(167,139,250,.11); border: 1px solid rgba(167,139,250,.22); padding: 7px 10px; border-radius: 999px; font-size: 12px; font-weight: 950; }
.love-body .logo-mark { background: conic-gradient(from 180deg, #ff5ea8, #ffb3d9, #a78bfa, #ff5ea8); }

.coffee-card {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 13px;
  align-items: center;
  border: 1px solid rgba(245, 158, 11, .24);
  background: linear-gradient(135deg, rgba(245,158,11,.13), rgba(255,255,255,.055));
  border-radius: 22px;
  padding: 13px;
}
.qr-slot {
  width: 74px; height: 74px; border-radius: 16px;
  display: grid; place-items: center;
  color: rgba(255,255,255,.54);
  background:
    linear-gradient(90deg, rgba(255,255,255,.18) 50%, transparent 50%) 0 0 / 12px 12px,
    linear-gradient(rgba(255,255,255,.18) 50%, transparent 50%) 0 0 / 12px 12px,
    rgba(0,0,0,.20);
  border: 1px dashed rgba(255,255,255,.26);
  font-size: 11px; font-weight: 950; text-align: center;
}
.coffee-card strong { color: #ffd999; display:block; margin-bottom: 3px; }
.coffee-card span { color: var(--muted); font-size: 12px; line-height: 1.45; }
.smtp-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; align-items: start; }
@media (max-width: 940px) { .smtp-grid { grid-template-columns: 1fr; } }

/* Ultra neon layer */
body { perspective: 1200px; }
.bg-grid:after {
  content: ""; position: fixed; inset: 0; pointer-events:none;
  background:
    radial-gradient(circle at 20% 30%, rgba(57,255,136,.18) 0 1px, transparent 2px),
    radial-gradient(circle at 70% 40%, rgba(56,189,248,.16) 0 1px, transparent 2px),
    radial-gradient(circle at 40% 80%, rgba(167,139,250,.12) 0 1px, transparent 2px);
  background-size: 80px 80px, 110px 110px, 140px 140px;
  animation: starDrift 22s linear infinite;
}
@keyframes starDrift { from { transform: translate3d(0,0,0); } to { transform: translate3d(-120px,80px,0); } }
.holo-panel {
  position: relative; isolation: isolate;
}
.holo-panel:before {
  content:""; position:absolute; inset:-1px; border-radius: inherit; z-index:-1;
  background: linear-gradient(135deg, rgba(57,255,136,.50), transparent 28%, rgba(56,189,248,.45) 55%, transparent 72%, rgba(167,139,250,.42));
  opacity:.55; filter: blur(14px);
}
.holo-panel:after {
  content:""; position:absolute; inset:0; border-radius: inherit; pointer-events:none;
  background: linear-gradient(115deg, transparent 0%, rgba(255,255,255,.10) 24%, transparent 36%);
  transform: translateX(-130%); animation: glassScan 5.8s ease-in-out infinite;
}
@keyframes glassScan { 0%, 58% { transform: translateX(-130%); } 100% { transform: translateX(130%); } }
.power-line {
  height: 1px; background: linear-gradient(90deg, transparent, var(--green), var(--cyan), transparent);
  box-shadow: 0 0 18px rgba(57,255,136,.5); margin: 18px 0;
}
.stat-orbit {
  display:grid; grid-template-columns: repeat(3,1fr); gap:10px; margin-top: 18px;
}
.stat-orbit div { border:1px solid var(--line); background:rgba(255,255,255,.06); border-radius:18px; padding:12px; }
.stat-orbit strong { display:block; font-size:22px; color:var(--green); }
.neon-title { text-shadow: 0 0 32px rgba(57,255,136,.22), 0 0 70px rgba(56,189,248,.14); }
.love-body .bg-grid:after { background-image: radial-gradient(circle, rgba(255,94,168,.35) 0 1px, transparent 2px); }

.photo-carousel {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255,94,168,.18), rgba(167,139,250,.14));
}
.photo-carousel img {
  width: 100%; height: 360px; object-fit: cover; display: block;
  filter: saturate(1.08) contrast(1.02);
}
.photo-carousel .empty-photo {
  min-height: 360px; display: grid; place-items: center; text-align:center; color:#865f7e; font-weight:900;
}
.photo-caption {
  position: absolute; left: 18px; right: 18px; bottom: 18px;
  padding: 14px 16px; border-radius: 18px;
  color: white; background: rgba(40, 20, 46, .38); backdrop-filter: blur(14px);
}
.upload-zone {
  border: 1px dashed rgba(255,94,168,.38);
  background: rgba(255,255,255,.42);
  border-radius: 22px;
  padding: 16px;
}

.princess-gallery {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 18px;
  align-items: stretch;
}
.frame-stack { display: grid; gap: 18px; }
.fancy-frame {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  padding: 10px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.9), rgba(255,255,255,.46)) padding-box,
    linear-gradient(135deg, #ff5ea8, #ffd1e7, #a78bfa, #ff8cc8) border-box;
  border: 2px solid transparent;
  box-shadow: 0 28px 80px rgba(255,94,168,.24), inset 0 0 0 1px rgba(255,255,255,.42);
}
.fancy-frame:before {
  content:""; position:absolute; inset:16px; border-radius:26px; pointer-events:none; z-index:3;
  border: 1px solid rgba(255,255,255,.58);
  box-shadow: inset 0 0 26px rgba(255,255,255,.22);
}
.fancy-frame:after {
  content:"✦"; position:absolute; right:22px; top:16px; z-index:4; color:#fff; font-size:24px;
  text-shadow: 0 0 18px rgba(255,94,168,.8); animation: twinkle 2.8s ease-in-out infinite;
}
@keyframes twinkle { 0%,100%{opacity:.45; transform:scale(.92) rotate(0deg)} 50%{opacity:1; transform:scale(1.15) rotate(12deg)} }
.fancy-frame.main { min-height: 520px; }
.fancy-frame.side { min-height: 248px; border-radius: 28px; }
.fancy-frame img { width:100%; height:100%; min-height: inherit; object-fit: cover; display:block; border-radius:24px; }
.fancy-frame.side img { border-radius:20px; }
.frame-empty {
  min-height: inherit; display:grid; place-items:center; text-align:center; border-radius:24px;
  background: linear-gradient(135deg, rgba(255,255,255,.72), rgba(255,224,240,.58)); color:#9a5d86; font-weight:950;
}
.frame-label {
  position:absolute; left:24px; bottom:22px; z-index:5; padding:12px 14px; border-radius:18px;
  color:white; background:rgba(70,28,64,.34); backdrop-filter: blur(16px); font-weight:950;
  box-shadow: 0 10px 34px rgba(0,0,0,.16);
}
.film-strip {
  margin-top: 18px;
  display:grid;
  grid-template-columns: repeat(5, minmax(90px, 1fr));
  gap: 12px;
}
.film-frame {
  height: 112px; border-radius: 20px; overflow:hidden; padding:5px;
  background: rgba(255,255,255,.62); border:1px solid rgba(255,94,168,.22);
  box-shadow: 0 12px 30px rgba(255,94,168,.14);
}
.film-frame img { width:100%; height:100%; object-fit:cover; border-radius:15px; display:block; }
.love-sparkle {
  position:absolute; inset:0; pointer-events:none; z-index:2;
  background-image: radial-gradient(circle, rgba(255,255,255,.85) 0 1px, transparent 2px);
  background-size: 38px 38px; opacity:.25; animation: starDrift 18s linear infinite;
}
@media (max-width: 940px) { .princess-gallery { grid-template-columns: 1fr; } .film-strip { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 560px) { .fancy-frame.main { min-height: 380px; } .film-strip { grid-template-columns: repeat(2,1fr); } }

.queue-banner {
  margin-top: 12px;
  border: 1px solid rgba(57,255,136,.24);
  background: linear-gradient(135deg, rgba(57,255,136,.13), rgba(56,189,248,.08));
  border-radius: 18px;
  padding: 13px 14px;
  color: var(--text);
  font-weight: 900;
}
.queue-bar { height: 8px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.12); margin-top: 10px; }
.queue-bar span { display:block; height:100%; width:42%; border-radius:999px; background: linear-gradient(90deg, var(--green), var(--cyan)); animation: queueMove 1.2s ease-in-out infinite alternate; }
@keyframes queueMove { from { transform: translateX(-20%); } to { transform: translateX(160%); } }

.schedule-title { align-items: center; }
.schedule-shell { display: grid; grid-template-columns: minmax(320px, .82fr) minmax(360px, 1.18fr); gap: 18px; align-items: start; }
.schedule-form-card, .schedule-status-card { min-height: 100%; }
.schedule-switch-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 6px; }
.schedule-switch-row h3 { margin: 0 0 5px; }
.toggle-control { position: relative; width: 64px; height: 36px; flex: 0 0 auto; cursor: pointer; }
.toggle-control input { position: absolute; opacity: 0; inset: 0; }
.toggle-control span {
  position: absolute; inset: 0; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255,255,255,.10); transition: background .2s ease, border-color .2s ease;
}
.toggle-control span:after {
  content: ""; position: absolute; width: 26px; height: 26px; border-radius: 50%; left: 4px; top: 4px;
  background: var(--muted); transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.toggle-control input:checked + span { background: rgba(57,255,136,.18); border-color: rgba(57,255,136,.38); }
.toggle-control input:checked + span:after { transform: translateX(28px); background: var(--green); box-shadow: 0 0 18px rgba(57,255,136,.35); }
.check-row {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 12px 13px;
  border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.055);
  color: var(--text); font-weight: 850;
}
.check-row input { width: 18px; height: 18px; accent-color: var(--green); flex: 0 0 auto; }
.schedule-actions { display: grid; grid-template-columns: 1fr 150px; gap: 10px; }
.schedule-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 22px 0; }
.schedule-metrics div {
  border: 1px solid var(--line); border-radius: 18px; padding: 14px;
  background: rgba(255,255,255,.055); min-width: 0;
}
.schedule-metrics strong {
  display: block; color: var(--green); font-size: clamp(22px, 2.4vw, 34px); line-height: 1.1;
  font-weight: 950; overflow-wrap: anywhere;
}
.schedule-metrics span { display: block; margin-top: 7px; color: var(--muted); font-size: 12px; font-weight: 900; }
.schedule-detail {
  min-height: 48px; border: 1px solid rgba(103,232,249,.18); border-radius: 18px;
  padding: 13px 14px; background: rgba(103,232,249,.07); color: var(--muted);
  font-size: 13px; line-height: 1.55; overflow-wrap: anywhere;
}
.schedule-timeline { margin-top: 18px; }
.schedule-timeline .step span { display: block; margin-top: 3px; overflow-wrap: anywhere; }
.dashboard-status-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 20px 0;
}
.dashboard-status-grid div {
  border: 1px solid var(--line); border-radius: 18px; padding: 14px;
  background: rgba(255,255,255,.055); min-width: 0;
}
.dashboard-status-grid strong { display: block; color: var(--cyan); font-size: 22px; line-height: 1.15; overflow-wrap: anywhere; }
.dashboard-status-grid span { display: block; margin-top: 7px; color: var(--muted); font-size: 12px; font-weight: 900; }

/* performance-lite: keep premium look, reduce GPU pressure */
body:after { animation: none !important; opacity: .35; }
.bg-grid:after { animation-duration: 55s !important; opacity: .12; }
.glass { backdrop-filter: blur(12px); }
.holo-panel:after { animation: none !important; opacity: .18; transform: none; }
.logo-mark { animation-duration: 7s !important; }
.fancy-frame:after { animation-duration: 6s !important; }
.love-sparkle { animation: none !important; opacity: .12; }
.btn:hover { transform: none; }
.glass:hover { transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { animation: none !important; transition: none !important; }
}

/* perf-lite: reduce GPU-heavy effects on low-end browsers */
@media (prefers-reduced-motion: no-preference) {
  .glass:hover { transform: translateY(-2px); }
}
@media (max-width: 900px), (pointer: coarse) {
  body:after, .bg-grid:after, .hero-orb, .love-sparkle { animation: none !important; opacity: .12; }
  .glass, .topbar, .photo-caption { backdrop-filter: none; }
  .glass:hover { transform: none; }
  .holo-panel:after { display: none; }
  .fancy-frame, .glass { box-shadow: 0 12px 34px rgba(0,0,0,.18); }
  .schedule-shell { grid-template-columns: 1fr; }
  .schedule-actions, .schedule-metrics, .dashboard-status-grid { grid-template-columns: 1fr; }
}
