/* =============================================================
   Orchid Lucky Draw — shared styles
   ============================================================= */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: #0a0420; font-family: 'Manrope', system-ui, sans-serif; color: #fff; min-height: 100vh; }
button { font-family: inherit; }
input, button { outline: none; }

/* ---------- Animations ---------- */
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 40px rgba(245,209,123,.55), inset 0 0 30px rgba(245,209,123,.15); }
  50%      { box-shadow: 0 0 80px rgba(245,209,123,.95), inset 0 0 50px rgba(245,209,123,.30); }
}
@keyframes textShine {
  0%, 100% { filter: drop-shadow(0 0 14px rgba(245,209,123,.35)); }
  50%      { filter: drop-shadow(0 0 28px rgba(245,209,123,.85)); }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
@keyframes twinkle {
  0%, 100% { opacity: .2; }
  50%      { opacity: 1; }
}
@keyframes spinRing {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes confetti {
  0%   { transform: translate(0,-40px) rotate(0deg);   opacity: 0; }
  10%  { opacity: 1; }
  100% { transform: translate(var(--dx,0px),520px) rotate(720deg); opacity: 0; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Viewer frame ---------- */
.frame {
  position: relative;
  width: 1600px;
  height: 1000px;
  margin: 0 auto;
  overflow: hidden;
  background:
    radial-gradient(ellipse 1200px 700px at 50% -10%, #4a1d8a 0%, transparent 60%),
    radial-gradient(ellipse 900px 600px at 100% 100%, #6b2a9c 0%, transparent 55%),
    radial-gradient(ellipse 800px 500px at 0% 100%, #3a1570 0%, transparent 50%),
    linear-gradient(180deg, #1a0838 0%, #0d0420 100%);
}
@media (max-width: 1620px) {
  body { overflow-x: auto; }
}

.starfield { position: absolute; inset: 0; pointer-events: none; }
.star { position: absolute; border-radius: 50%; background: #E8D7FF; opacity: .4; box-shadow: 0 0 4px currentColor; animation: twinkle 3s ease-in-out infinite; }
.star.gold { background: #F5D17B; }

.skyline-wrap { position: absolute; left: 0; right: 0; bottom: 60px; height: 230px; pointer-events: none; opacity: .9; }
.skyline {
  position: absolute; left: 0; right: 0; bottom: 0; height: 170px;
  background: linear-gradient(180deg, rgba(58,21,112,.4) 0%, rgba(10,4,32,1) 90%);
  clip-path: polygon(
    0% 100%, 0% 70%,
    4% 70%, 5% 55%, 6% 70%,
    9% 70%, 10% 50%, 11% 35%, 12% 50%, 13% 70%,
    16% 70%, 17% 60%, 18% 45%, 19% 60%, 20% 70%,
    24% 70%, 25% 55%, 26% 40%, 27% 25%, 28% 40%, 29% 55%, 30% 70%,
    34% 70%, 35% 60%, 36% 70%,
    39% 70%, 40% 55%, 41% 38%, 42% 20%, 43% 38%, 44% 55%, 45% 70%,
    49% 70%, 50% 60%, 51% 45%, 52% 60%, 53% 70%,
    57% 70%, 58% 55%, 59% 40%, 60% 25%, 61% 40%, 62% 55%, 63% 70%,
    67% 70%, 68% 55%, 69% 70%,
    72% 70%, 73% 55%, 74% 40%, 75% 25%, 76% 40%, 77% 55%, 78% 70%,
    82% 70%, 83% 60%, 84% 45%, 85% 60%, 86% 70%,
    90% 70%, 91% 55%, 92% 38%, 93% 55%, 94% 70%,
    97% 70%, 98% 60%, 99% 70%, 100% 70%, 100% 100%
  );
}

/* ---------- Header ---------- */
.header { position: absolute; top: 0; left: 0; right: 0; height: 224px; display: grid; grid-template-columns: 360px 1fr 360px; align-items: center; padding: 24px 40px 0; gap: 20px; z-index: 5; }

.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo { max-height: 80px; max-width: 320px; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 2px 16px rgba(245,209,123,.35)); }
.brand-mark { width: 64px; height: 64px; position: relative; }
.brand-mark .disc { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 50% 50%, #F5D17B 0%, #B8862C 70%, transparent 71%); filter: drop-shadow(0 0 12px rgba(245,209,123,.6)); }
.brand-mark .petal { position: absolute; width: 22px; height: 32px; border-radius: 50%; background: linear-gradient(180deg, #F8E0A0, #C18A2E); box-shadow: 0 0 6px rgba(10,4,32,.4) inset; top: 50%; left: 50%; }
.brand-mark .petal.l { transform: translate(-50%,-50%) translate(-9px,-6px) rotate(-25deg); }
.brand-mark .petal.r { transform: translate(-50%,-50%) translate(9px,-6px)  rotate(25deg); }
.brand-mark .center { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%) translate(0,8px); width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle, #2A1450, #0d0420); border: 1px solid #F5D17B; }
.brand-name { font-family: 'Cinzel', serif; font-weight: 900; font-size: 34px; letter-spacing: 6px; background: linear-gradient(180deg, #FBE6A8 0%, #F5D17B 40%, #B8862C 100%); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.brand-tag  { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 15px; color: #C9B6FF; letter-spacing: 3px; margin-top: 6px; }

.hero       { text-align: center; }
.hero-title { margin: 0; display: flex; align-items: center; justify-content: center; gap: 14px; }
.hero-title h1 { margin: 0; font-family: 'Cinzel', serif; font-weight: 900; font-size: 76px; letter-spacing: 6px; background: linear-gradient(180deg, #FFF3CC 0%, #F5D17B 35%, #C18A2E 75%, #8B5A12 100%); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: 0 4px 30px rgba(245,209,123,.25); animation: textShine 3s ease-in-out infinite; }
.hero-sub   { font-weight: 800; font-size: 28px; letter-spacing: 8px; color: #fff; margin-top: 6px; text-shadow: 0 2px 16px rgba(167,139,250,.5); }
.hero-pill  { margin-top: 12px; display: inline-flex; align-items: center; gap: 16px; padding: 7px 22px; background: linear-gradient(90deg, rgba(245,209,123,0) 0%, rgba(245,209,123,.12) 50%, rgba(245,209,123,0) 100%); border-top: 1px solid rgba(245,209,123,.4); border-bottom: 1px solid rgba(245,209,123,.4); font-size: 13px; letter-spacing: 4px; color: #E8D7FF; font-weight: 600; }
.gold       { color: #F5D17B; }

.plane-wrap { display: flex; justify-content: flex-end; align-items: center; animation: floatY 6s ease-in-out infinite; }
.plane { position: relative; width: 340px; height: 140px; }
.plane .body { position: absolute; left: 30px; top: 58px; width: 280px; height: 28px; border-radius: 14px; background: linear-gradient(180deg, #E8D7FF 0%, #A78BFA 60%, #6b3fbf 100%); box-shadow: 0 8px 30px rgba(167,139,250,.4); }
.plane .nose { position: absolute; left: 6px; top: 62px; width: 50px; height: 22px; border-radius: 50% 12px 12px 50% / 50% 12px 12px 50%; background: linear-gradient(180deg, #F0E1FF 0%, #B098F5 100%); }
.plane .wing { position: absolute; left: 110px; top: 78px; width: 130px; height: 34px; background: linear-gradient(180deg, #A78BFA, #6b3fbf); clip-path: polygon(0% 0%, 100% 0%, 70% 100%, 20% 100%); opacity: .85; }
.plane .tail { position: absolute; left: 265px; top: 32px; width: 50px; height: 38px; background: linear-gradient(180deg, #F5D17B 0%, #C18A2E 100%); clip-path: polygon(0% 100%, 100% 0%, 100% 100%); }
.plane .hstab { position: absolute; left: 270px; top: 60px; width: 50px; height: 18px; background: linear-gradient(180deg, #A78BFA, #6b3fbf); clip-path: polygon(0% 50%, 100% 0%, 100% 100%); }
.plane .windows { position: absolute; left: 80px; top: 67px; width: 200px; height: 10px; border-radius: 5px; background: repeating-linear-gradient(90deg, rgba(20,5,50,.7) 0 6px, transparent 6px 14px); }
.plane .stripe { position: absolute; left: 30px; top: 78px; width: 280px; height: 3px; background: linear-gradient(90deg, transparent, #F5D17B 30%, #F5D17B 70%, transparent); }

/* ---------- Body grid ---------- */
.body-grid { position: absolute; top: 224px; left: 0; right: 0; bottom: 60px; display: grid; grid-template-columns: 360px 1fr 360px; gap: 20px; padding: 8px 40px 16px; z-index: 5; }

.panel { background: linear-gradient(180deg, rgba(35,15,70,.85) 0%, rgba(20,8,50,.75) 100%); border: 1px solid rgba(245,209,123,.25); border-radius: 14px; box-shadow: 0 10px 40px rgba(0,0,0,.4), inset 0 1px 0 rgba(245,209,123,.15); }

/* Left — participants */
.participants { padding: 18px 16px; display: flex; flex-direction: column; min-height: 0; }
.section-title { font-family: 'Cinzel', serif; font-size: 18px; font-weight: 700; letter-spacing: 3px; color: #FBE6A8; }
.search-wrap { position: relative; margin: 14px 0; }
.search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #A78BFA; }
.search-wrap input { width: 100%; padding: 11px 12px 11px 36px; background: rgba(15,5,40,.7); border: 1px solid rgba(167,139,250,.3); border-radius: 10px; color: #fff; font-family: inherit; font-size: 13px; }
.p-list { flex: 1; overflow-y: auto; padding-right: 4px; min-height: 0; }
.p-list::-webkit-scrollbar { width: 6px; }
.p-list::-webkit-scrollbar-track { background: rgba(255,255,255,.04); border-radius: 3px; }
.p-list::-webkit-scrollbar-thumb { background: rgba(245,209,123,.35); border-radius: 3px; }
.p-row { display: grid; grid-template-columns: 32px 28px 1fr auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; margin-bottom: 4px; border: 1px solid transparent; transition: background .2s; }
.p-row.winner { background: linear-gradient(90deg, rgba(245,209,123,.22), rgba(245,209,123,.08)); border-color: rgba(245,209,123,.55); }
.p-num { font-family: 'JetBrains Mono', monospace; color: #A78BFA; font-size: 11px; font-weight: 600; }
.p-avatar { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #0a0420; border: 1px solid rgba(245,209,123,.4); }
.p-name { color: #fff; font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-slot { font-family: 'JetBrains Mono', monospace; color: #F5D17B; font-size: 11px; font-weight: 600; }
.list-status { margin-top: 10px; padding-top: 12px; border-top: 1px solid rgba(245,209,123,.15); text-align: center; font-size: 11px; color: #A78BFA; letter-spacing: 1px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 8px #4ade80; animation: twinkle 1.6s ease-in-out infinite; }
.status-dot.off { background: #f87171; box-shadow: 0 0 8px #f87171; }

/* Center */
.center-col { display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.status-line { text-align: center; display: flex; align-items: center; justify-content: center; gap: 14px; font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 20px; letter-spacing: 3px; color: #E8D7FF; }
.reel-wrap { position: relative; display: flex; align-items: center; gap: 14px; }
.arrow { flex: none; width: 50px; height: 80px; border: none; background: transparent; cursor: pointer; color: #A78BFA; font-size: 42px; line-height: 1; opacity: .7; }
.arrow:hover { opacity: 1; color: #F5D17B; }
.reel { position: relative; flex: 1; height: 340px; border-radius: 18px; overflow: hidden; background: linear-gradient(180deg, rgba(25,10,60,.95) 0%, rgba(15,6,40,.98) 50%, rgba(25,10,60,.95) 100%); border: 2px solid rgba(245,209,123,.55); box-shadow: 0 0 60px rgba(245,209,123,.25), inset 0 0 80px rgba(75,30,140,.6); }
.reel-track { position: absolute; left: 0; right: 0; top: 0; will-change: transform; }
.reel-item { height: 68px; display: flex; align-items: center; justify-content: center; font-family: 'Cinzel', serif; font-weight: 600; font-size: 34px; color: #E8D7FF; letter-spacing: 2px; text-shadow: 0 2px 12px rgba(0,0,0,.6); padding: 0 20px; text-align: center; }
.reel-frame { position: absolute; left: 24px; right: 24px; top: 50%; transform: translateY(-50%); height: 84px; border-radius: 10px; border: 2px solid #F5D17B; background: linear-gradient(90deg, rgba(245,209,123,.08), rgba(245,209,123,.18), rgba(245,209,123,.08)); animation: pulseGlow 2.4s ease-in-out infinite; pointer-events: none; }
.reel-frame .corner { position: absolute; width: 16px; height: 16px; }
.reel-frame .c-tl { left: -2px; top: -2px; border-top: 3px solid #FBE6A8; border-left: 3px solid #FBE6A8; }
.reel-frame .c-tr { right: -2px; top: -2px; border-top: 3px solid #FBE6A8; border-right: 3px solid #FBE6A8; }
.reel-frame .c-bl { left: -2px; bottom: -2px; border-bottom: 3px solid #FBE6A8; border-left: 3px solid #FBE6A8; }
.reel-frame .c-br { right: -2px; bottom: -2px; border-bottom: 3px solid #FBE6A8; border-right: 3px solid #FBE6A8; }
.reel-fade-top, .reel-fade-bot { position: absolute; left: 0; right: 0; height: 100px; pointer-events: none; }
.reel-fade-top { top: 0;    background: linear-gradient(180deg, rgba(15,6,40,.98) 0%, transparent 100%); }
.reel-fade-bot { bottom: 0; background: linear-gradient(0deg,   rgba(15,6,40,.98) 0%, transparent 100%); }

.dots { display: flex; justify-content: center; gap: 8px; margin-top: -4px; }
.dot  { width: 8px; height: 8px; border-radius: 50%; background: rgba(167,139,250,.3); }
.dot.active { background: #F5D17B; }

/* Winner card */
.winner { position: relative; flex: 1; min-height: 0; border-radius: 16px; padding: 16px 24px; background: linear-gradient(180deg, rgba(35,15,70,.85) 0%, rgba(20,8,50,.85) 100%); border: 1.5px solid rgba(245,209,123,.45); box-shadow: 0 10px 40px rgba(0,0,0,.4), inset 0 0 40px rgba(245,209,123,.08); display: grid; grid-template-columns: 130px 1fr; gap: 22px; align-items: center; }
.confetti-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: 16px; }
.avatar-wrap { position: relative; width: 130px; height: 130px; }
.avatar-ring { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, #F5D17B, #C18A2E, #FBE6A8, #B8862C, #F5D17B); animation: spinRing 14s linear infinite; padding: 3px; }
.avatar-inner { width: 100%; height: 100%; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Cinzel', serif; font-weight: 700; font-size: 38px; color: #0a0420; text-shadow: 0 2px 4px rgba(255,255,255,.4); }
.orchid-a { position: absolute; left: -14px; bottom: -6px; width: 40px; height: 40px; background: radial-gradient(circle at 30% 30%, #E91E63 0%, #8B0040 80%, transparent 90%); border-radius: 50%; opacity: .85; box-shadow: 0 0 14px rgba(233,30,99,.4); }
.orchid-b { position: absolute; left: -2px; bottom: -12px; width: 28px; height: 28px; background: radial-gradient(circle at 30% 30%, #C2185B 0%, #4A0026 80%, transparent 90%); border-radius: 50%; opacity: .7; }
.congrats { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; font-family: 'Cinzel', serif; font-weight: 700; letter-spacing: 5px; font-size: 18px; background: linear-gradient(180deg, #FBE6A8, #F5D17B 60%, #C18A2E); -webkit-background-clip: text; background-clip: text; color: transparent; }
.subline { font-size: 13px; color: #C9B6FF; letter-spacing: 2px; font-weight: 600; }
.winner-name { font-family: 'Cinzel', serif; font-weight: 900; font-size: 38px; margin-top: 4px; line-height: 1.1; background: linear-gradient(180deg, #FFF3CC, #F5D17B 60%, #C18A2E); -webkit-background-clip: text; background-clip: text; color: transparent; }
.winner-slot { margin-top: 6px; font-family: 'JetBrains Mono', monospace; color: #E8D7FF; font-size: 14px; letter-spacing: 3px; }

/* Right column */
.right-col { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.stats { padding: 14px 16px; display: flex; flex-direction: column; gap: 14px; }
.stat-row { display: flex; align-items: center; gap: 14px; }
.stat-icon { width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(245,209,123,.3); background: rgba(167,139,250,.18); font-size: 22px; }
.stat-icon.green { background: rgba(74,222,128,.15); border-color: rgba(74,222,128,.4); }
.stat-icon.gold  { background: rgba(245,209,123,.15); border-color: rgba(245,209,123,.4); }
.stat-label { font-size: 11px; letter-spacing: 2px; color: #C9B6FF; font-weight: 600; }
.stat-value { font-family: 'Cinzel', serif; font-weight: 900; font-size: 30px; color: #fff; line-height: 1.1; }
.stat-value.green { color: #4ade80; text-shadow: 0 0 14px rgba(74,222,128,.4); }
.stat-value.small { font-size: 24px; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(245,209,123,.3), transparent); }
.verified-pill { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; background: rgba(74,222,128,.08); border: 1px solid rgba(74,222,128,.25); }
.verified-pill .checkmark { width: 18px; height: 18px; border-radius: 50%; background: #4ade80; color: #0a0420; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; }
.verified-pill .label { font-size: 11px; letter-spacing: 1.5px; color: #A6F4C5; font-weight: 700; }

.controls { display: flex; flex-direction: column; gap: 10px; }
.btn { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 13px; border-radius: 12px; cursor: pointer; font-family: inherit; font-weight: 700; letter-spacing: 4px; font-size: 14px; transition: filter .15s, transform .05s; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: linear-gradient(180deg, #FBE6A8 0%, #F5D17B 45%, #C18A2E 100%); border: 1.5px solid #FBE6A8; color: #1a0838; font-weight: 800; font-size: 15px; padding: 14px; box-shadow: 0 6px 20px rgba(245,209,123,.35), inset 0 1px 0 rgba(255,255,255,.5); }
.btn.primary:hover:not(:disabled) { filter: brightness(1.08); }
.btn.primary:active:not(:disabled) { transform: translateY(1px); }
.btn.ghost { background: rgba(25,10,60,.7); border: 1.5px solid rgba(245,209,123,.4); color: #E8D7FF; }
.btn.ghost:hover:not(:disabled) { border-color: #F5D17B; background: rgba(35,15,70,.85); }
.btn .ico { width: 20px; height: 20px; border-radius: 4px; display: flex; align-items: center; justify-content: center; }
.btn .ico.play  { background: #1a0838; color: #F5D17B; border-radius: 50%; width: 24px; height: 24px; font-size: 11px; }
.btn .ico.stop  { background: transparent; border: 1.5px solid #F5D17B; }
.btn .ico.stop span { width: 8px; height: 8px; background: #F5D17B; border-radius: 1px; }

.algo { padding: 12px 14px; }
.algo .head { font-size: 11px; letter-spacing: 2px; color: #C9B6FF; font-weight: 600; margin-bottom: 4px; }
.algo .name { font-family: 'JetBrains Mono', monospace; font-weight: 600; font-size: 14px; color: #4ade80; letter-spacing: 2px; margin-bottom: 8px; text-shadow: 0 0 10px rgba(74,222,128,.4); }
.algo .blocks { display: flex; gap: 5px; }
.algo .block  { flex: 1; height: 14px; border-radius: 3px; background: rgba(74,222,128,.2); }
.algo .block.lit { background: linear-gradient(180deg, #4ade80, #16a34a); }

/* Footer */
.footer { position: absolute; left: 0; right: 0; bottom: 0; height: 60px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 40px; z-index: 5; border-top: 1px solid rgba(245,209,123,.15); background: linear-gradient(0deg, rgba(10,4,32,.9), rgba(10,4,32,.3)); }
.footer-l { display: flex; align-items: center; gap: 14px; cursor: pointer; width: fit-content; }
.footer-l .ico { width: 36px; height: 36px; border-radius: 50%; background: rgba(167,139,250,.15); border: 1px solid rgba(245,209,123,.35); display: flex; align-items: center; justify-content: center; color: #F5D17B; font-size: 16px; }
.footer-l .label { font-size: 12px; letter-spacing: 3px; color: #C9B6FF; font-weight: 600; }
.footer-l .state { font-family: 'JetBrains Mono', monospace; font-size: 13px; letter-spacing: 2px; font-weight: 700; color: #4ade80; }
.footer-l .state.off { color: #A78BFA; }
.footer-c { display: flex; align-items: center; gap: 18px; font-size: 12px; letter-spacing: 4px; color: #F5D17B; font-weight: 700; }
.footer-c .sep { color: #A78BFA; font-size: 10px; }
.footer-r { display: flex; align-items: center; gap: 18px; justify-content: flex-end; font-family: 'JetBrains Mono', monospace; font-size: 16px; letter-spacing: 2px; color: #E8D7FF; font-weight: 600; }
.footer-r .pipe { color: #A78BFA; }
.footer-r .ico { color: #A78BFA; }

/* WebSocket badge */
.ws-badge { position: absolute; top: 10px; right: 12px; z-index: 10; display: flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.4); border: 1px solid rgba(74,222,128,.4); font-family: 'JetBrains Mono', monospace; font-size: 10px; color: #4ade80; letter-spacing: 1.5px; }
.ws-badge.off { border-color: rgba(248,113,113,.5); color: #f87171; }

/* ====================================================================
   ADMIN PAGE
   ==================================================================== */
.admin-body { background: linear-gradient(180deg, #1a0838 0%, #0d0420 100%); min-height: 100vh; color: #fff; padding: 32px; max-width: 1400px; margin: 0 auto; }
.admin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; padding-bottom: 18px; border-bottom: 1px solid rgba(245,209,123,.2); }
.admin-header .left { display: flex; align-items: center; gap: 16px; }
.admin-header h1 { margin: 0; font-family: 'Cinzel', serif; letter-spacing: 4px; font-size: 26px; color: #F5D17B; }
.admin-header .user { font-family: 'JetBrains Mono', monospace; color: #C9B6FF; font-size: 13px; }
.admin-header a { color: #A78BFA; text-decoration: none; font-size: 13px; margin-left: 16px; }
.admin-header a:hover { color: #F5D17B; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.card { background: linear-gradient(180deg, rgba(35,15,70,.85) 0%, rgba(20,8,50,.75) 100%); border: 1px solid rgba(245,209,123,.25); border-radius: 14px; padding: 18px 20px; }
.card h2 { margin: 0 0 14px; font-family: 'Cinzel', serif; font-size: 16px; letter-spacing: 3px; color: #FBE6A8; }
.row { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.row label { font-size: 11px; color: #C9B6FF; letter-spacing: 1.5px; min-width: 70px; }
.input, .select { padding: 9px 12px; background: rgba(15,5,40,.7); border: 1px solid rgba(167,139,250,.3); border-radius: 8px; color: #fff; font-family: inherit; font-size: 13px; flex: 1; min-width: 0; }
.btn-sm { padding: 8px 14px; border-radius: 8px; border: 1px solid rgba(245,209,123,.4); background: rgba(25,10,60,.7); color: #E8D7FF; font-family: inherit; font-size: 12px; font-weight: 700; letter-spacing: 2px; cursor: pointer; }
.btn-sm:hover { border-color: #F5D17B; background: rgba(35,15,70,.85); }
.btn-sm.primary { background: linear-gradient(180deg, #FBE6A8, #C18A2E); color: #1a0838; border-color: #FBE6A8; }
.btn-sm.danger { color: #fca5a5; border-color: rgba(248,113,113,.5); }
.btn-sm.danger:hover { background: rgba(248,113,113,.15); border-color: #f87171; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 8px 10px; text-align: left; border-bottom: 1px solid rgba(245,209,123,.1); }
th { font-size: 10px; letter-spacing: 2px; color: #A78BFA; font-weight: 700; }
td { color: #E8D7FF; }
td .mini { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: #C9B6FF; }
.scroll { max-height: 380px; overflow-y: auto; }
.scroll::-webkit-scrollbar { width: 6px; }
.scroll::-webkit-scrollbar-track { background: rgba(255,255,255,.04); }
.scroll::-webkit-scrollbar-thumb { background: rgba(245,209,123,.35); border-radius: 3px; }
.toast { position: fixed; bottom: 24px; right: 24px; padding: 12px 18px; background: rgba(74,222,128,.95); color: #0a0420; border-radius: 8px; font-weight: 700; font-size: 13px; z-index: 100; animation: fadeUp .2s ease; }
.toast.error { background: rgba(248,113,113,.95); color: #fff; }
.login-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-card { width: 420px; max-width: 100%; padding: 32px; }
.login-card h1 { font-family: 'Cinzel', serif; letter-spacing: 5px; font-size: 22px; color: #F5D17B; margin: 0 0 6px; text-align: center; }
.login-card .sub { text-align: center; color: #C9B6FF; font-size: 12px; letter-spacing: 2px; margin-bottom: 24px; }
.login-card .row { margin-bottom: 14px; }
.login-card .row label { width: 100%; margin-bottom: 4px; }
.login-card .input { flex: 1; width: 100%; }
.login-card .btn-sm.primary { width: 100%; padding: 12px; font-size: 13px; margin-top: 6px; }
.toggle { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 6px 0; }
.toggle .switch { width: 36px; height: 20px; border-radius: 10px; background: rgba(167,139,250,.25); position: relative; transition: background .2s; }
.toggle .switch::after { content: ''; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .2s; }
.toggle.on .switch { background: #4ade80; }
.toggle.on .switch::after { left: 18px; }
.toggle .text { font-size: 12px; letter-spacing: 1.5px; color: #E8D7FF; }
.hash { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: #4ade80; word-break: break-all; }
