/* ═══════════ Faxama Ticket — "Midnight" theme ═══════════
 * Midnight black · pure white · red accent buttons. Inspired by clean, animated UI kits.
 * Loaded after style.css and overrides it. */
:root {
  --a-rgb: 239, 35, 60;
  --bg: #05060a;
  --surface: #0b0c11;
  --surface-2: #12131a;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .12);
  --text: #fafafa;
  --muted: #8b8d98;
  --dim: #565864;
  --white: #ffffff;
  --r: 16px;
}
body { background: var(--bg); font-family: "Geist", "Inter", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, sans-serif; letter-spacing: -.006em; }
h1, h2, h3, .page-head h1 { letter-spacing: -.03em; }

/* ── background: subtle dots + soft glows (no heavy liquid) ── */
.fx .blob { opacity: .22; filter: blur(120px); mix-blend-mode: normal; }
.b1 { background: radial-gradient(circle, rgba(var(--a-rgb), .55), transparent 65%); }
.b2 { background: radial-gradient(circle, rgba(255, 255, 255, .22), transparent 65%); opacity: .08; }
.b3 { background: radial-gradient(circle, rgba(var(--a-rgb), .35), transparent 65%); opacity: .12; }
.gridlines { background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px); background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 5%, transparent 65%); -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 5%, transparent 65%); }
.vignette { background: radial-gradient(ellipse at center, transparent 45%, var(--bg) 100%); }

/* ── surfaces ── */
.glass { background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .008)), rgba(11, 12, 17, var(--glass-alpha, .78));
  border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 1px 2px rgba(0, 0, 0, .5), 0 30px 60px -30px rgba(0, 0, 0, .9); }
.glass::before { background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 35%); }
.card:hover, .stat:hover { border-color: var(--line-2); }
.hero { background: radial-gradient(ellipse at 85% 10%, rgba(var(--a-rgb), .22), transparent 50%), radial-gradient(ellipse at 10% 120%, rgba(255, 255, 255, .06), transparent 50%), var(--surface); }
.red { color: var(--a); text-shadow: none; }

/* ── buttons: white primary-pill + red accent ── */
.btn { border-radius: 11px; background: rgba(255, 255, 255, .035); border-color: var(--line-2); font-weight: 600; }
.btn:hover { background: rgba(255, 255, 255, .07); transform: translateY(-1px); }
.btn::after { background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .12) 50%, transparent 70%); }
.btn-primary { background: var(--a); border-color: rgba(255, 255, 255, .1); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 10px 28px -10px rgba(var(--a-rgb), .9); }
.btn-primary:hover { background: color-mix(in srgb, var(--a) 88%, #fff); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 14px 34px -10px rgba(var(--a-rgb), 1); }
.btn-white { background: #fff; color: #05060a; border-color: #fff; box-shadow: 0 10px 30px -12px rgba(255, 255, 255, .5); }
.btn-white:hover { background: #ececf1; color: #05060a; }
.btn-white::after { background: linear-gradient(110deg, transparent 30%, rgba(0, 0, 0, .08) 50%, transparent 70%); }
.btn-danger { background: rgba(var(--a-rgb), .1); border-color: rgba(var(--a-rgb), .35); color: #ff8091; }
.btn-ghost { background: transparent; }
.icon-btn { border-radius: 11px; background: rgba(255, 255, 255, .03); }
.icon-btn:hover { background: rgba(255, 255, 255, .08); border-color: var(--line-2); }

/* ── sidebar + sliding active indicator ── */
.sidebar { border-radius: 0 20px 20px 0; }
.brand small { color: var(--a); }
.guild { background: rgba(255, 255, 255, .03); border-color: var(--line); }
.nav-wrap { position: relative; flex: 1; overflow-y: auto; overflow-x: hidden; margin: 0 -4px; padding: 0 4px; scroll-behavior: smooth; }
.nav { flex: none; overflow: visible; margin: 0; padding: 0; position: static; }
.nav a { z-index: 1; color: var(--muted); }
.nav a:hover { background: rgba(255, 255, 255, .03); }
.nav a.active { background: transparent; box-shadow: none; color: #fff; }
.nav a.active::before { display: none; }
.nav a.active .ic { color: #fff; filter: none; }
#nav-ind { position: absolute; left: 4px; right: 4px; top: 0; height: 40px; border-radius: 11px; pointer-events: none; z-index: 0; opacity: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03)); border: 1px solid var(--line-2);
  transition: transform .5s cubic-bezier(.34, 1.36, .64, 1), height .3s, opacity .3s; }
#nav-ind::before { content: ""; position: absolute; left: -5px; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--a); box-shadow: 0 0 12px rgba(var(--a-rgb), .9); }
.nav .count { background: var(--a); box-shadow: 0 0 14px rgba(var(--a-rgb), .6); }
.group-head { color: var(--dim); }
.me { background: rgba(255, 255, 255, .025); }

/* ── segmented controls with sliding white pill ── */
.seg { position: relative; background: rgba(255, 255, 255, .03); border-color: var(--line); border-radius: 12px; }
.seg button { position: relative; z-index: 1; transition: color .3s; }
.seg button.on { background: transparent; box-shadow: none; color: #05060a; }
.seg .seg-ind { position: absolute; top: 4px; bottom: 4px; left: 4px; width: 0; border-radius: 9px; background: #fff; z-index: 0; opacity: 0;
  box-shadow: 0 4px 16px rgba(255, 255, 255, .18); transition: left .45s cubic-bezier(.34, 1.36, .64, 1), width .45s cubic-bezier(.34, 1.36, .64, 1), opacity .2s; }
.chip-filter button.on { background: #fff; color: #05060a; border-color: #fff; }

/* ── inputs ── */
input[type=text], input[type=number], input[type=search], select, textarea { background: rgba(255, 255, 255, .025); border-color: var(--line-2); border-radius: 11px; }
input:focus, select:focus, textarea:focus { border-color: rgba(255, 255, 255, .45); box-shadow: 0 0 0 4px rgba(255, 255, 255, .06); background: rgba(255, 255, 255, .04); }
.toggle input:checked + .slider { background: var(--a); box-shadow: 0 0 14px rgba(var(--a-rgb), .45); }

/* ── badges / misc ── */
.badge.claimed, .badge.admin { background: rgba(255, 255, 255, .06); color: #fff; border-color: var(--line-2); }
.badge.claimed::before, .badge.admin::before { background: var(--a); color: var(--a); }
.sec .bubble, .stat .bubble { box-shadow: inset 0 0 0 1px rgba(var(--c, var(--a-rgb)), .25); }
.sec .bubble { background: rgba(255, 255, 255, .04); color: #fff; box-shadow: inset 0 0 0 1px var(--line-2); }
.card h2 .ic { color: #fff; }
.dropdown { border-radius: 14px; }
.dd-item:hover { background: rgba(255, 255, 255, .06); }
.dd-item.danger:hover { background: rgba(var(--a-rgb), .12); }
.toast { background: rgba(12, 13, 18, .96); }
.savebar { border-color: var(--line-2); }
.msg.right .bubble-m { background: linear-gradient(135deg, color-mix(in srgb, var(--a) 85%, #fff), var(--a) 45%, color-mix(in srgb, var(--a) 70%, #000)); }

/* ── rotating words (blur-in) ── */
.rotator { display: inline-block; color: var(--a); min-width: 4ch; }
.rotator.swap { animation: wordIn .6s cubic-bezier(.2, .8, .2, 1); }
@keyframes wordIn { from { opacity: 0; filter: blur(8px); transform: translateY(12px); } }

/* ── artwork: logo with orbiting rings ── */
.art, .intro-art { position: relative; display: grid; place-items: center; }
.art { width: 190px; height: 190px; margin: -6px auto 10px; }
.art img, .intro-art img { position: relative; z-index: 1; width: 78%; height: 78%; object-fit: contain; filter: drop-shadow(0 18px 40px rgba(var(--a-rgb), .45)); animation: floaty 6s ease-in-out infinite; }
.ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .1); }
.ring::after { content: ""; position: absolute; top: -3px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--a); box-shadow: 0 0 12px 2px rgba(var(--a-rgb), .9); }
.ring.r1 { animation: orbit 9s linear infinite; }
.ring.r2 { inset: 12%; border-color: rgba(255, 255, 255, .07); animation: orbit 6s linear infinite reverse; }
.ring.r2::after { background: #fff; box-shadow: 0 0 10px 2px rgba(255, 255, 255, .7); }
.ring.r3 { inset: -14%; border-style: dashed; border-color: rgba(255, 255, 255, .05); animation: orbit 22s linear infinite; }
.ring.r3::after { display: none; }
@keyframes orbit { to { transform: rotate(360deg); } }
.hero-logo { width: 210px; height: 210px; position: relative; display: grid; place-items: center; }
.hero-logo img { width: 80%; height: 80%; position: relative; z-index: 1; }

/* ── login ── */
.login-card { padding: 34px 34px 26px; border-radius: 26px; }
.login-card h1 { font-size: 34px; margin: 14px 0 6px; }
.chip-pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 99px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line-2); font-size: 12px; color: var(--muted); }
.login .btn-lg { margin-top: 4px; }

/* ── loading intro ── */
#intro { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 40%, rgba(var(--a-rgb), .14), transparent 55%), var(--bg);
  transition: opacity .7s cubic-bezier(.2, .8, .2, 1), transform .7s cubic-bezier(.2, .8, .2, 1), visibility .7s; }
#intro.hide { opacity: 0; transform: scale(1.06); visibility: hidden; pointer-events: none; }
.intro-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; animation: introIn .9s cubic-bezier(.2, .8, .2, 1); }
.intro-art { width: 170px; height: 170px; }
.intro-title { font-weight: 800; letter-spacing: .32em; font-size: 15px; color: #fff; }
.intro-title span { color: var(--a); }
.intro-bar { width: 200px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.intro-bar i { display: block; height: 100%; width: 40%; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--a), #fff); animation: loadbar 1.1s cubic-bezier(.6, 0, .4, 1) infinite; }
.intro-sub { font-size: 12px; color: var(--muted); min-height: 1.4em; transition: opacity .3s; }
@keyframes loadbar { from { transform: translateX(-110%); } to { transform: translateX(260%); } }
@keyframes introIn { from { opacity: 0; transform: scale(.9); filter: blur(10px); } }

/* ── server requests ── */
.req { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .02); border: 1px solid var(--line); margin-bottom: 10px; animation: enter .45s var(--ease) both; }
.req .av { width: 46px; height: 46px; border-radius: 14px; }
.req .grow { flex: 1; min-width: 0; }
.req .grow b { display: block; font-size: 15px; }
.req .grow small { color: var(--muted); }
.req.pending { border-color: rgba(var(--a-rgb), .4); background: linear-gradient(90deg, rgba(var(--a-rgb), .08), transparent 60%); }
.badge.pending { background: rgba(var(--a-rgb), .12); color: #ff8091; border-color: rgba(var(--a-rgb), .35); }
.badge.approved { background: rgba(34, 197, 94, .1); color: #4ade80; border-color: rgba(34, 197, 94, .25); }
.badge.denied, .badge.expired, .badge.removed { background: rgba(255, 255, 255, .04); color: var(--muted); border-color: var(--line); }

/* ── Discord embed preview (matches the real embed) ── */
.d-embed { position: relative; }
.d-author { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 8px; }
.d-author img { width: 22px; height: 22px; border-radius: 50%; }
.d-field { margin-top: 10px; }
.d-field b { display: block; font-size: 13px; color: #fff; margin-bottom: 2px; }
.d-field div { font-size: 13.5px; white-space: pre-wrap; }
.d-foot-row { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 12px; color: #949ba4; clear: both; }
.d-foot-row img { width: 18px; height: 18px; border-radius: 50%; }
