/* Tiktok Game server panel - the backstage of tiktokgame.xyz: the website's stage, type, buttons and glass. */
@font-face {
  font-family: "Outfit";
  src: url("/static/fonts/outfit.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #06060c;
  --cyan: #25f4ee;
  --pink: #fe2c55;
  --violet: #7c5cff;
  --text: #ffffff;
  --muted: #adadc2;
  --dim: #7d7d96;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --field: rgba(10, 10, 20, 0.7);
  --green: #3ee08f;
  --amber: #ffb547;
  --red: #ff4d6a;
  --radius: 16px;
  --tt-grad: linear-gradient(92deg, #0fb9d4 0%, #7c5cff 50%, #fe2c55 100%);
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font: 400 15px/1.5 "Outfit", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "rlig" 1, "calt" 1;
}
button, input, select { font: inherit; color: inherit; }
::selection { background: rgba(254, 44, 85, 0.35); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.error { color: var(--red); min-height: 1.3em; margin: 0; font-weight: 600; font-size: 14px; }
h1, h2, h3 { letter-spacing: -0.02em; margin: 0; }

/* ---------------------------------------------------------------- the stage (same as the website) */
.stage { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: var(--ink); }
.aurora { position: absolute; width: 75vmax; height: 75vmax; border-radius: 50%; will-change: transform; }
.aurora-cyan { top: -38vmax; left: -28vmax; background: radial-gradient(circle, rgba(37, 244, 238, 0.24), rgba(37, 244, 238, 0) 62%); animation: drift-a 26s ease-in-out infinite alternate; }
.aurora-pink { top: -34vmax; right: -30vmax; background: radial-gradient(circle, rgba(254, 44, 85, 0.26), rgba(254, 44, 85, 0) 62%); animation: drift-b 30s ease-in-out infinite alternate; }
.aurora-violet { bottom: -45vmax; left: 5vw; background: radial-gradient(circle, rgba(124, 58, 237, 0.2), rgba(124, 58, 237, 0) 62%); animation: drift-c 34s ease-in-out infinite alternate; }
.grid-floor {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 25%, transparent 75%);
}
.noise {
  position: absolute; inset: 0; opacity: 0.06;
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes drift-a { to { transform: translate3d(12vw, 8vh, 0) scale(1.15); } }
@keyframes drift-b { from { transform: scale(1.1); } to { transform: translate3d(-10vw, 12vh, 0) scale(0.95); } }
@keyframes drift-c { to { transform: translate3d(8vw, -10vh, 0) scale(1.1); } }

/* ---------------------------------------------------------------- type + brand */
.text-gradient { background: linear-gradient(92deg, #25f4ee 0%, #a78bfa 48%, #fe2c55 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* the TikTok logo look: cyan and pink copies just behind the letters */
.glitch { text-shadow: -0.045em -0.03em 0 rgba(37, 244, 238, 0.75), 0.045em 0.03em 0 rgba(254, 44, 85, 0.8); }
.brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand img { width: 34px; height: 34px; filter: drop-shadow(0 6px 14px rgba(254, 44, 85, 0.35)); }
.brand b { font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.brand em { font-style: normal; font-weight: 700; font-size: 12px; color: var(--ink); background: var(--cyan); border-radius: 99px; padding: 2px 9px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; width: max-content; border-radius: 99px; border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04); padding: 5px 14px; font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cyan);
}
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 10px var(--pink); }

/* ---------------------------------------------------------------- buttons (the website's) */
.btn-tiktok, .btn-tt, .btn-ghost, .btn-link { cursor: pointer; border: 0; white-space: nowrap; transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s, opacity 0.2s; }
/* white TikTok pill with the logo's cyan / pink edges */
.btn-tiktok {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 99px; padding: 12px 26px;
  background: #fff; color: var(--ink); font-weight: 800; font-size: 16px;
  box-shadow: -3px -2px 0 var(--cyan), 3px 2px 0 var(--pink), 0 16px 40px -14px rgba(254, 44, 85, 0.7);
}
.btn-tiktok:hover { transform: translateY(-2px); box-shadow: -4px -3px 0 var(--cyan), 4px 3px 0 var(--pink), 0 20px 50px -14px rgba(254, 44, 85, 0.85); }
.btn-tiktok:active { transform: translateY(0) scale(0.98); }
.btn-tiktok.wide { width: 100%; padding: 14px; }
.btn-tiktok.danger { background: var(--pink); color: #fff; box-shadow: -3px -2px 0 var(--cyan), 0 16px 40px -14px rgba(254, 44, 85, 0.8); }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 99px; padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.15); background: rgba(255, 255, 255, 0.04); color: #fff; font-weight: 700;
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.09); }
.btn-ghost.small { padding: 7px 14px; font-size: 13px; }
.btn-ghost.danger { color: #ff8da1; border-color: rgba(254, 44, 85, 0.4); }
.btn-ghost.danger:hover { background: rgba(254, 44, 85, 0.14); }
.btn-link { background: none; color: var(--muted); font-weight: 700; padding: 6px 8px; }
.btn-link:hover { color: #fff; }
button:disabled { opacity: 0.5; cursor: default; transform: none; }

/* ---------------------------------------------------------------- surfaces */
.panel {
  background: linear-gradient(180deg, rgba(22, 22, 36, 0.78), rgba(12, 12, 22, 0.78)); border: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: 24px; padding: 22px;
}
/* 1px gradient border around a child */
.glow-frame {
  background: linear-gradient(135deg, rgba(37, 244, 238, 0.9), rgba(124, 92, 255, 0.55) 45%, rgba(254, 44, 85, 0.9));
  padding: 1px; border-radius: 28px;
  box-shadow: 0 30px 120px -30px rgba(254, 44, 85, 0.45), 0 20px 100px -40px rgba(37, 244, 238, 0.4);
}
.glow-frame > * { border-radius: 27px; }
.panel-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.panel-head h2 { font-size: 22px; font-weight: 800; }
.panel-head .muted { font-size: 14px; }

/* ---------------------------------------------------------------- stickers (die-cut TikTok gifts) */
.sticker {
  position: absolute; pointer-events: none; user-select: none;
  filter: drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff) drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff) drop-shadow(0 12px 16px rgba(0, 0, 0, 0.5));
  animation: bob 6s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(-10px) rotate(var(--tilt, 0deg)); } }

/* ---------------------------------------------------------------- sign-in = the website's hero */
.login { min-height: 100vh; display: flex; flex-direction: column; padding: 22px clamp(16px, 5vw, 72px) 40px; }
.login-hero { flex: 1; display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; max-width: 1240px; width: 100%; margin: 0 auto; }
.login-copy { display: flex; flex-direction: column; gap: 22px; }
.hero-title { font-size: clamp(46px, 7.2vw, 96px); line-height: 0.95; font-weight: 900; letter-spacing: -0.045em; }
.hero-title .line { display: block; padding-bottom: 0.04em; }
.hero-lead { margin: 0; max-width: 34ch; color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; }
.login-stage { position: relative; display: grid; place-items: center; padding: 70px 30px; }
.login-frame { width: min(420px, 100%); position: relative; z-index: 2; }
.login-card {
  display: flex; flex-direction: column; gap: 18px; padding: 30px;
  background: linear-gradient(180deg, rgba(20, 20, 34, 0.92), rgba(10, 10, 20, 0.94));
}
.login-card h2 { font-size: 28px; font-weight: 800; }
.s-rose { width: 108px; top: 4%; left: -2%; --tilt: -8deg; animation-delay: -1s; }
.s-gun { width: 118px; top: -2%; right: 6%; --tilt: 6deg; animation-delay: -3s; }
.s-gg { width: 116px; top: 40%; right: -6%; --tilt: 8deg; animation-delay: -2s; z-index: 3; }
.s-heart { width: 92px; bottom: 6%; left: -4%; --tilt: -6deg; animation-delay: -4s; z-index: 3; }
.s-donut { width: 96px; bottom: -2%; right: 12%; --tilt: 10deg; animation-delay: -5s; }

/* the one orchestrated moment: the hero arrives */
.login:not(.hidden) .hero-title .line { animation: rise-in 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.login:not(.hidden) .hero-title .line:nth-child(2) { animation-delay: 0.08s; }
.login:not(.hidden) .hero-title .line:nth-child(3) { animation-delay: 0.16s, 0.9s; animation-name: rise-in, flicker; animation-duration: 0.7s, 0.5s; }
.login:not(.hidden) .login-frame { animation: rise-in 0.8s 0.15s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.login:not(.hidden) .sticker { animation: pop 0.6s cubic-bezier(0.3, 1.5, 0.5, 1) both, bob 6s 0.6s ease-in-out infinite; }
.login:not(.hidden) .s-gun { animation-delay: 0.3s, 0.9s; }
.login:not(.hidden) .s-rose { animation-delay: 0.38s, 1s; }
.login:not(.hidden) .s-gg { animation-delay: 0.46s, 1.1s; }
.login:not(.hidden) .s-heart { animation-delay: 0.54s, 1.2s; }
.login:not(.hidden) .s-donut { animation-delay: 0.62s, 1.3s; }
@keyframes rise-in { from { opacity: 0; transform: translateY(26px); } }
@keyframes pop { from { opacity: 0; transform: scale(0.3) rotate(-20deg); } }
@keyframes flicker {
  0%, 100% { text-shadow: -0.045em -0.03em 0 rgba(37, 244, 238, 0.75), 0.045em 0.03em 0 rgba(254, 44, 85, 0.8); }
  25% { text-shadow: -0.12em 0 0 rgba(37, 244, 238, 0.9), 0.12em 0 0 rgba(254, 44, 85, 0.9); }
  50% { text-shadow: 0.06em -0.05em 0 rgba(37, 244, 238, 0.8), -0.06em 0.05em 0 rgba(254, 44, 85, 0.8); }
}

/* ---------------------------------------------------------------- fields */
label { display: flex; flex-direction: column; gap: 7px; font-weight: 700; font-size: 14px; color: #e6e6f2; }
label small { font-weight: 400; color: var(--dim); font-size: 12.5px; line-height: 1.35; }
input, select {
  width: 100%; background: var(--field); border: 1px solid var(--line-2); border-radius: 14px; padding: 11px 14px; outline: none;
  transition: border-color 0.15s, box-shadow 0.15s; font-weight: 500;
}
input::placeholder { color: #5f5f78; }
input:focus, select:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(37, 244, 238, 0.16); }
select { appearance: none; padding-right: 36px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
select option { background: #14141f; }
.pw-row { display: flex; gap: 8px; align-items: center; }
.pw-row input { flex: 1; min-width: 0; }

/* ---------------------------------------------------------------- app chrome (the website's nav) */
.nav {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  padding: 14px clamp(16px, 4vw, 48px); background: rgba(6, 6, 12, 0.72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.tabs { display: flex; gap: 6px; flex: 1; flex-wrap: wrap; justify-content: center; }
.tabs button { white-space: nowrap; cursor: pointer; border: 1px solid transparent; background: none; color: var(--muted); font-weight: 700; padding: 8px 16px; border-radius: 99px; transition: color 0.15s, background 0.15s, border-color 0.15s; }
.tabs button:hover { color: #fff; }
.tabs button.on { color: #fff; background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.14); box-shadow: inset 0 -2px 0 var(--pink); }
.count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 4px; border-radius: 99px; background: var(--pink); color: #fff; font-size: 12px; font-weight: 800; box-shadow: 0 0 12px rgba(254, 44, 85, 0.7); }
.me { display: flex; align-items: center; gap: 8px; }
.who { font-weight: 700; font-size: 14px; padding: 7px 14px; border-radius: 99px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-2); }
.who.admin { color: var(--cyan); border-color: rgba(37, 244, 238, 0.4); }

/* live band: who is playing, like the website's gift band */
.ticker { overflow: hidden; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgba(37, 244, 238, 0.06), rgba(254, 44, 85, 0.08)); }
.ticker-track { display: flex; gap: 12px; width: max-content; padding: 9px 12px; animation: ticker 40s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.tick { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px; border-radius: 99px; background: rgba(12, 12, 22, 0.75); border: 1px solid var(--line-2); font-weight: 700; font-size: 14px; white-space: nowrap; }
.tick .k { font-family: var(--mono); font-weight: 600; font-size: 13px; color: var(--muted); }
.tick .t { color: var(--dim); font-weight: 600; font-size: 13px; }
@keyframes ticker { to { transform: translateX(-50%); } }

main { max-width: 1280px; margin: 0 auto; padding: 28px clamp(16px, 4vw, 48px) 60px; display: flex; flex-direction: column; gap: 26px; }
.tab { display: flex; flex-direction: column; gap: 26px; }

/* the "make" panel (keys / sellers) */
.maker { position: relative; padding: 28px 30px; background: linear-gradient(180deg, rgba(20, 20, 34, 0.9), rgba(10, 10, 20, 0.9)); overflow: visible; }
.maker .peek { width: 92px; top: -34px; right: 26px; --tilt: 8deg; }
.maker-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 22px; padding-right: 110px; }
.title { font-size: clamp(30px, 3.6vw, 44px); font-weight: 900; letter-spacing: -0.035em; line-height: 1; }
.lead { margin: 0; color: var(--muted); font-size: 16px; max-width: 60ch; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px 18px; align-items: start; }
.form-grid .wide-2 { grid-column: span 2; }
.form-end { display: flex; align-items: flex-end; align-self: end; padding-bottom: 2px; }

/* new keys drop in as tickets */
.tickets { margin-top: 24px; padding-top: 20px; border-top: 1px dashed rgba(255, 255, 255, 0.14); }
.tickets-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.tickets-head b { font-size: 17px; font-weight: 800; }
.ticket-list { display: flex; flex-wrap: wrap; gap: 12px; }
.ticket {
  position: relative; cursor: pointer; display: inline-flex; align-items: center; gap: 12px; padding: 12px 18px 12px 16px;
  border-radius: 14px; border: 1px solid rgba(37, 244, 238, 0.35);
  background: radial-gradient(circle at 0 50%, transparent 7px, rgba(37, 244, 238, 0.1) 7.5px), linear-gradient(92deg, rgba(37, 244, 238, 0.08), rgba(254, 44, 85, 0.1));
  font-family: var(--mono); font-weight: 700; font-size: 15px; letter-spacing: 0.02em; color: #fff;
  animation: drop 0.5s cubic-bezier(0.3, 1.4, 0.5, 1) both;
}
.ticket::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.ticket:hover { border-color: var(--cyan); }
.ticket.copied { border-color: var(--green); }
@keyframes drop { from { opacity: 0; transform: translateY(-14px) scale(0.92); } }

/* ---------------------------------------------------------------- toolbar + bulk */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar input { flex: 1 1 260px; width: auto; }
.toolbar select { width: auto; flex: 0 1 200px; }
.bulk { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 10px 14px; margin-bottom: 14px; border-radius: 18px;
  background: linear-gradient(92deg, rgba(37, 244, 238, 0.08), rgba(254, 44, 85, 0.08)); border: 1px solid rgba(37, 244, 238, 0.3); }
.bulk b { margin-right: 6px; font-weight: 800; }

/* ---------------------------------------------------------------- tables */
.table { width: 100%; border-collapse: separate; border-spacing: 0; }
.table th { text-align: left; font-size: 12.5px; color: var(--dim); font-weight: 700; padding: 8px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); vertical-align: middle; font-size: 14.5px; }
.table tbody tr { transition: background 0.15s; }
.table tbody tr:hover td { background: rgba(255, 255, 255, 0.03); }
.table tr.sel td { background: rgba(37, 244, 238, 0.06); }
.table .chk { width: 36px; }
.table input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--pink); cursor: pointer; }
.keytxt { font-family: var(--mono); font-weight: 700; font-size: 14px; cursor: pointer; letter-spacing: 0.02em; }
.keytxt:hover { color: var(--cyan); }
.badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 99px; padding: 3px 11px; font-size: 12.5px; font-weight: 800; white-space: nowrap; border: 1px solid transparent; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.b-active { color: var(--green); background: rgba(62, 224, 143, 0.1); border-color: rgba(62, 224, 143, 0.25); }
.b-unused { color: var(--cyan); background: rgba(37, 244, 238, 0.08); border-color: rgba(37, 244, 238, 0.25); }
.b-forever { color: #c4b5fd; background: rgba(124, 92, 255, 0.14); border-color: rgba(124, 92, 255, 0.3); }
.b-expired { color: var(--amber); background: rgba(255, 181, 71, 0.1); border-color: rgba(255, 181, 71, 0.25); }
.b-off, .b-nopw { color: #ff8da1; background: rgba(254, 44, 85, 0.1); border-color: rgba(254, 44, 85, 0.3); }
.live { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; padding: 2px 9px; border-radius: 6px; background: var(--pink); color: #fff; font-size: 11.5px; font-weight: 800; letter-spacing: 0.04em; box-shadow: 0 0 14px rgba(254, 44, 85, 0.6); }
.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.sub { color: var(--muted); font-size: 13.5px; }
.dots { cursor: pointer; background: none; border: 1px solid transparent; color: var(--muted); border-radius: 10px; width: 34px; height: 32px; font-size: 18px; line-height: 1; }
.dots:hover { border-color: var(--line-2); color: #fff; background: rgba(255, 255, 255, 0.06); }
.empty { text-align: center; color: var(--muted); padding: 40px 12px; font-size: 15px; }
.empty b { display: block; color: #fff; font-size: 18px; margin-bottom: 4px; }

/* playing now: LIVE cards */
.plays { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.play { position: relative; padding: 18px; border-radius: 20px; background: linear-gradient(160deg, rgba(254, 44, 85, 0.12), rgba(37, 244, 238, 0.06) 60%, rgba(12, 12, 22, 0.6)); border: 1px solid rgba(254, 44, 85, 0.3); display: flex; flex-direction: column; gap: 8px; }
.play .live { margin: 0; width: max-content; }
.play h3 { font-size: 22px; font-weight: 900; letter-spacing: -0.03em; }
.play .row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); }
.play .row b { color: #fff; font-weight: 700; }
.play .keytxt { font-size: 13.5px; }

/* activity */
.acts { display: flex; flex-direction: column; }
.act { display: grid; grid-template-columns: 150px 140px 1fr; gap: 14px; padding: 12px 6px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); align-items: baseline; }
.act .when { color: var(--dim); font-size: 13.5px; }
.act .by { font-weight: 800; color: var(--cyan); font-size: 14px; }
.act .what b { font-weight: 700; }
.act .what span { display: block; color: var(--muted); font-size: 13.5px; }

/* ---------------------------------------------------------------- menu, modal, toasts */
.menu { position: fixed; z-index: 30; min-width: 210px; padding: 6px; border-radius: 16px; background: rgba(20, 20, 34, 0.96); border: 1px solid var(--line-2); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.menu button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 10px 12px; border-radius: 10px; cursor: pointer; font-weight: 600; }
.menu button:hover { background: rgba(255, 255, 255, 0.07); }
.menu button.danger { color: #ff8da1; }
.modal { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 16px; background: rgba(4, 4, 10, 0.78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal-frame { width: min(480px, 100%); animation: rise-in 0.25s ease-out both; }
.modal-card { padding: 24px; background: linear-gradient(180deg, rgba(22, 22, 36, 0.98), rgba(10, 10, 20, 0.98)); }
.modal-card h3 { font-size: 22px; font-weight: 800; margin-bottom: 12px; }
.modal-card p { margin: 0 0 10px; color: #dcdcea; }
.modal-card label { margin-top: 12px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.quick { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 4px; }
.preview { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--field); border: 1px solid var(--line-2); font-size: 14px; font-weight: 600; }
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 50; display: flex; flex-direction: column; gap: 10px; }
.toast { position: relative; overflow: hidden; padding: 12px 16px 12px 20px; max-width: 360px; border-radius: 14px; background: rgba(20, 20, 34, 0.96); border: 1px solid var(--line-2); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55); font-weight: 600; animation: rise-in 0.25s ease-out both; white-space: pre-line; }
.toast::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--tt-grad); }
.toast.bad::before { background: var(--red); }

/* ---------------------------------------------------------------- phones */
@media (max-width: 900px) {
  .login-hero { grid-template-columns: 1fr; }
  .login-stage { padding: 56px 8px 40px; }
  .s-gg, .s-donut, .s-heart { display: none; }
}
@media (max-width: 760px) {
  .nav { gap: 10px; padding: 10px 14px; }
  .tabs { order: 3; flex-basis: 100%; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
  .me { margin-left: auto; }
  .who { display: none; }
  main { padding: 18px 12px 40px; gap: 18px; }
  .maker { padding: 22px 18px; }
  .maker-head { padding-right: 70px; }
  .maker .peek { width: 70px; top: -26px; right: 14px; }
  .form-grid .wide-2 { grid-column: auto; }
  .panel { padding: 16px; border-radius: 20px; }
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { position: relative; margin-bottom: 12px; padding: 8px 4px; border: 1px solid var(--line-2); border-radius: 16px; background: rgba(12, 12, 22, 0.5); }
  .table td { border: 0; padding: 5px 12px; display: flex; justify-content: space-between; gap: 12px; }
  .table td::before { content: attr(data-l); color: var(--dim); font-size: 12.5px; font-weight: 700; }
  .table td.chk { position: absolute; top: 10px; right: 10px; width: auto; padding: 0; }
  .table td.chk::before, .table td.first::before { content: none; }
  .table td.first { padding-right: 48px; flex-wrap: wrap; }
  .act { grid-template-columns: 1fr; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
