:root {
--bg: #03060c;
--bg-1: #060b15;
--bg-2: #0a1220;
--panel: rgba(9, 17, 31, 0.72);
--panel-solid: #0a1322;
--panel-2: rgba(14, 25, 44, 0.82);
--panel-3: rgba(20, 34, 58, 0.9);
--line: rgba(120, 190, 255, 0.09);
--line-2: rgba(120, 190, 255, 0.16);
--line-3: rgba(120, 200, 255, 0.3);
--text: #eaf6ff;
--text-2: #a3b5c9;
--text-3: #6a7e95;
--accent: #27c6ff;
--accent-rgb: 39, 198, 255;
--accent-2: #0a7cff;
--accent-3: #8ff3ff;
--accent-ink: #001623;
--violet: #a855f7;
--amber: #fbbf24;
--green: #2ee6a6;
--green-rgb: 46, 230, 166;
--red: #ff5d7a;
--red-rgb: 255, 93, 122;
--orange: #fb923c;
--radius-xs: 8px;
--radius-sm: 11px;
--radius: 16px;
--radius-lg: 22px;
--radius-xl: 30px;
--shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.8);
--shadow-lg: 0 40px 100px -30px rgba(0, 0, 0, 0.9);
--glow: 0 0 0 1px rgba(var(--accent-rgb), 0.35), 0 0 28px -6px rgba(var(--accent-rgb), 0.6);
--font: 'Readex Pro', system-ui, 'Segoe UI', Tahoma, sans-serif;
--font-display: 'Orbitron', 'Readex Pro', system-ui, sans-serif;
--font-mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
--ease: cubic-bezier(0.2, 0.8, 0.2, 1);
--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
--ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
--mx: 50%;
--my: 50%;
color-scheme: dark;
}
[data-portal='admin'] {
--accent: #b38cff;
--accent-rgb: 179, 140, 255;
--accent-2: #7c3aed;
--accent-3: #e4d0ff;
--accent-ink: #12052b;
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
min-height: 100dvh;
font-family: var(--font);
font-size: 15px;
line-height: 1.6;
color: var(--text);
background:
radial-gradient(1200px 700px at 88% -12%, rgba(var(--accent-rgb), 0.13), transparent 60%),
radial-gradient(900px 640px at -5% 110%, rgba(168, 85, 247, 0.1), transparent 60%),
var(--bg);
background-attachment: fixed;
-webkit-font-smoothing: antialiased;
overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
::selection { background: rgba(var(--accent-rgb), 0.35); color: #fff; }
[hidden] { display: none !important; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.mono { font-family: var(--font-mono); letter-spacing: 0.02em; }
.sr-only {
position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
:focus-visible {
outline: 2px solid rgba(var(--accent-rgb), 0.9);
outline-offset: 3px;
border-radius: 8px;
}
* { scrollbar-width: thin; scrollbar-color: rgba(var(--accent-rgb), 0.25) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb {
background: rgba(var(--accent-rgb), 0.2);
border-radius: 99px; border: 3px solid transparent; background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background-color: rgba(var(--accent-rgb), 0.4); }
.fx-layer {
position: fixed; inset: 0; width: 100%; height: 100%;
pointer-events: none; z-index: 0;
}
.fx-layer--bright {
-webkit-mask-image: radial-gradient(300px circle at var(--mx) var(--my), #000 0%, transparent 72%);
mask-image: radial-gradient(300px circle at var(--mx) var(--my), #000 0%, transparent 72%);
}
.fx-vignette {
position: fixed; inset: 0; pointer-events: none; z-index: 0;
background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.65) 100%);
}
.fx-scan {
position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: 0.35;
background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 3px);
}
.display { font-family: var(--font-display); letter-spacing: 0.04em; }
.eyebrow {
display: inline-flex; align-items: center; gap: 8px;
font-size: 12.5px; font-weight: 600; letter-spacing: 0.02em;
color: var(--accent-3);
padding: 6px 12px 6px 14px;
border-radius: 99px;
background: rgba(var(--accent-rgb), 0.08);
border: 1px solid rgba(var(--accent-rgb), 0.22);
}
.eyebrow .dot {
width: 7px; height: 7px; border-radius: 50%;
background: var(--accent); box-shadow: 0 0 10px var(--accent);
animation: pulse-dot 1.8s ease-in-out infinite;
}
.text-grad, .text-chrome {
display: inline-block; padding-block: 0.22em; margin-block: -0.22em; padding-inline: 0.04em;
}
.text-grad {
background: linear-gradient(100deg, #ffffff 0%, var(--accent-3) 35%, var(--accent) 60%, var(--accent-2) 100%);
-webkit-background-clip: text; background-clip: text; color: transparent;
}
.text-chrome {
background: linear-gradient(180deg, #ffffff 0%, #d7e3ef 38%, #8fa4b8 52%, #e9f2fa 70%, #9fb2c4 100%);
-webkit-background-clip: text; background-clip: text; color: transparent;
}
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.btn {
--btn-h: 44px;
position: relative; isolation: isolate;
display: inline-flex; align-items: center; justify-content: center; gap: 9px;
height: var(--btn-h); padding: 0 20px;
border-radius: 13px;
font-weight: 600; font-size: 14.5px; white-space: nowrap;
color: var(--text);
background: rgba(255, 255, 255, 0.04);
border: 1px solid var(--line-2);
transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, box-shadow 0.3s, color 0.25s, opacity 0.2s;
overflow: hidden;
user-select: none;
-webkit-tap-highlight-color: transparent;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { background: rgba(255, 255, 255, 0.07); border-color: var(--line-3); }
.btn:active { transform: scale(0.97); }
.btn:disabled, .btn[aria-disabled='true'] { opacity: 0.45; pointer-events: none; }
.btn-primary {
color: var(--accent-ink);
border-color: transparent;
background: linear-gradient(135deg, var(--accent-3) 0%, var(--accent) 45%, var(--accent-2) 100%);
box-shadow: 0 10px 30px -10px rgba(var(--accent-rgb), 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.btn-primary:hover {
background: linear-gradient(135deg, #ffffff 0%, var(--accent-3) 35%, var(--accent) 100%);
box-shadow: 0 14px 40px -10px rgba(var(--accent-rgb), 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.btn-primary::after {
content: ''; position: absolute; inset: -2px auto -2px -60%; width: 45%;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
transform: skewX(-20deg);
animation: beam 3.6s var(--ease) infinite;
z-index: -1;
}
.btn-gold {
color: #2a1a00; border-color: transparent;
background: linear-gradient(135deg, #fff3cc 0%, #fbbf24 45%, #f59e0b 100%);
box-shadow: 0 12px 34px -12px rgba(251, 191, 36, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.btn-gold:hover { background: linear-gradient(135deg, #ffffff 0%, #fde68a 40%, #fbbf24 100%); box-shadow: 0 16px 44px -12px rgba(251, 191, 36, 1); }
.btn-gold::after {
content: ''; position: absolute; inset: -2px auto -2px -60%; width: 45%; z-index: -1;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent); transform: skewX(-20deg);
animation: beam 3.2s var(--ease) infinite;
}
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); border-color: var(--line); }
.btn-outline { background: rgba(var(--accent-rgb), 0.06); border-color: rgba(var(--accent-rgb), 0.35); color: var(--accent-3); }
.btn-outline:hover { background: rgba(var(--accent-rgb), 0.12); border-color: rgba(var(--accent-rgb), 0.6); box-shadow: var(--glow); }
.btn-danger { background: rgba(var(--red-rgb), 0.1); border-color: rgba(var(--red-rgb), 0.35); color: #ff9db0; }
.btn-danger:hover { background: rgba(var(--red-rgb), 0.18); border-color: rgba(var(--red-rgb), 0.6); }
.btn-success { background: rgba(var(--green-rgb), 0.1); border-color: rgba(var(--green-rgb), 0.35); color: #8af5cf; }
.btn-success:hover { background: rgba(var(--green-rgb), 0.18); }
.btn-sm { --btn-h: 36px; padding: 0 14px; font-size: 13.5px; border-radius: 11px; }
.btn-lg { --btn-h: 54px; padding: 0 28px; font-size: 16px; border-radius: 16px; }
.btn-xl { --btn-h: 62px; padding: 0 34px; font-size: 17px; border-radius: 18px; }
.btn-block { width: 100%; }
.btn-icon { width: var(--btn-h); padding: 0; }
.btn-icon.btn-sm { --btn-h: 34px; }
.btn .spinner { display: none; }
.btn.is-loading { pointer-events: none; }
.btn.is-loading .spinner { display: inline-block; }
.btn.is-loading .btn-label, .btn.is-loading > svg { opacity: 0.35; }
.spinner {
width: 18px; height: 18px; border-radius: 50%;
border: 2px solid currentColor; border-top-color: transparent; border-inline-start-color: transparent;
animation: spin 0.7s linear infinite;
}
.ripple {
position: absolute; border-radius: 50%; pointer-events: none;
background: radial-gradient(circle, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 70%);
transform: translate(-50%, -50%) scale(0); animation: ripple 0.7s var(--ease-out) forwards; z-index: 0;
}
.card {
position: relative;
border-radius: var(--radius-lg);
background:
linear-gradient(var(--panel), var(--panel)) padding-box,
linear-gradient(140deg, rgba(255, 255, 255, 0.16), rgba(var(--accent-rgb), 0.18) 30%, rgba(255, 255, 255, 0.03) 60%, rgba(var(--accent-rgb), 0.12)) border-box;
border: 1px solid transparent;
box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
-webkit-backdrop-filter: blur(18px) saturate(140%);
backdrop-filter: blur(18px) saturate(140%);
}
.card-pad { padding: 22px; }
.spot { position: relative; overflow: hidden; }
.spot::before {
content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
opacity: 0; transition: opacity 0.35s;
background: radial-gradient(380px circle at var(--sx, 50%) var(--sy, 50%), rgba(var(--accent-rgb), 0.12), transparent 45%);
}
.spot:hover::before { opacity: 1; }
.spot > * { position: relative; z-index: 1; }
.beam-border { position: relative; isolation: isolate; }
.beam-border::after {
content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; z-index: -1;
background: conic-gradient(from var(--beam-angle, 0deg), transparent 0deg, rgba(var(--accent-rgb), 0.95) 40deg, transparent 90deg, transparent 180deg, rgba(168, 85, 247, 0.7) 220deg, transparent 270deg);
-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
-webkit-mask-composite: xor; mask-composite: exclude;
animation: beam-rotate 6s linear infinite;
pointer-events: none;
}
@property --beam-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.field { display: grid; gap: 8px; }
.field-label {
display: flex; align-items: center; justify-content: space-between; gap: 10px;
font-size: 13.5px; font-weight: 600; color: var(--text-2);
}
.field-hint { font-size: 12.5px; color: var(--text-3); }
.field-error { font-size: 12.5px; color: #ff9db0; min-height: 0; }
.input-wrap {
position: relative; display: flex; align-items: center;
height: 52px; border-radius: 14px;
background: rgba(3, 8, 16, 0.65);
border: 1px solid var(--line-2);
transition: border-color 0.25s, box-shadow 0.3s, background 0.25s;
}
.input-wrap:hover { border-color: var(--line-3); }
.input-wrap:focus-within {
border-color: rgba(var(--accent-rgb), 0.7);
box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.12), 0 0 30px -10px rgba(var(--accent-rgb), 0.6);
background: rgba(3, 10, 20, 0.85);
}
.input-wrap.is-invalid { border-color: rgba(var(--red-rgb), 0.65); box-shadow: 0 0 0 4px rgba(var(--red-rgb), 0.1); }
.input-wrap.is-valid { border-color: rgba(var(--green-rgb), 0.5); }
.input-wrap > .lead-icon { width: 19px; height: 19px; margin-inline: 16px 4px; color: var(--text-3); flex: none; transition: color 0.25s; }
.input-wrap:focus-within > .lead-icon { color: var(--accent); }
.input {
flex: 1; min-width: 0; height: 100%;
background: transparent; border: 0; outline: 0;
padding-inline: 12px;
font-size: 15px; color: var(--text);
}
.input::placeholder { color: var(--text-3); }
.input.mono { font-size: 15px; letter-spacing: 0.06em; }
.input-actions { display: flex; align-items: center; gap: 4px; padding-inline: 6px; }
.input-action {
width: 38px; height: 38px; display: grid; place-items: center;
border-radius: 10px; color: var(--text-3);
transition: background 0.2s, color 0.2s, transform 0.25s var(--ease-spring);
}
.input-action svg { width: 18px; height: 18px; }
.input-action:hover { background: rgba(var(--accent-rgb), 0.12); color: var(--accent-3); }
.input-action:active { transform: scale(0.9); }
.input-action.spin-once svg { animation: spin-once 0.6s var(--ease-out); }
textarea.input { padding: 12px 14px; resize: vertical; min-height: 88px; line-height: 1.6; }
.input-wrap.is-textarea { height: auto; align-items: stretch; }
select.input { appearance: none; cursor: pointer; }
select.input option { background: var(--panel-solid); color: var(--text); }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); outline: none; }
.range::-webkit-slider-thumb {
-webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%;
background: radial-gradient(circle at 35% 30%, #fff, var(--accent) 60%, var(--accent-2));
box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.18), 0 0 16px rgba(var(--accent-rgb), 0.8); cursor: pointer;
}
.range::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 50%; background: var(--accent); box-shadow: 0 0 16px rgba(var(--accent-rgb), 0.8); cursor: pointer; }
.switch { position: relative; display: inline-flex; flex: none; width: 48px; height: 28px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.switch .track {
position: absolute; inset: 0; border-radius: 99px;
background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line-2);
transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.switch .thumb {
position: absolute; top: 4px; inset-inline-start: 4px; width: 20px; height: 20px; border-radius: 50%;
background: #9fb2c4; transition: transform 0.35s var(--ease-spring), background 0.3s, box-shadow 0.3s;
}
.switch input:checked ~ .track { background: rgba(var(--accent-rgb), 0.28); border-color: rgba(var(--accent-rgb), 0.7); box-shadow: 0 0 18px -4px rgba(var(--accent-rgb), 0.8); }
.switch input:checked ~ .thumb { transform: translateX(-20px); background: #fff; box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.9); }
[dir='ltr'] .switch input:checked ~ .thumb { transform: translateX(20px); }
.switch input:focus-visible ~ .track { outline: 2px solid rgba(var(--accent-rgb), 0.9); outline-offset: 2px; }
.switch input:disabled ~ .track, .switch input:disabled ~ .thumb { opacity: 0.45; }
.check-chip {
display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px;
border-radius: 10px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03);
font-size: 13px; color: var(--text-2); cursor: pointer; user-select: none; transition: all 0.2s;
}
.check-chip input { accent-color: var(--accent); }
.check-chip:has(input:checked) { border-color: rgba(var(--accent-rgb), 0.5); color: var(--text); background: rgba(var(--accent-rgb), 0.08); }
.strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.strength i { height: 5px; border-radius: 99px; background: rgba(255, 255, 255, 0.07); transition: background 0.4s, box-shadow 0.4s; }
.strength[data-level='1'] i:nth-child(-n + 1) { background: var(--red); box-shadow: 0 0 10px rgba(var(--red-rgb), 0.7); }
.strength[data-level='2'] i:nth-child(-n + 2) { background: var(--orange); box-shadow: 0 0 10px rgba(251, 146, 60, 0.7); }
.strength[data-level='3'] i:nth-child(-n + 3) { background: var(--amber); box-shadow: 0 0 10px rgba(251, 191, 36, 0.6); }
.strength[data-level='4'] i { background: var(--green); box-shadow: 0 0 10px rgba(var(--green-rgb), 0.7); }
.pill {
display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px;
border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap;
border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04); color: var(--text-2);
}
.pill svg { width: 13px; height: 13px; }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; display: none; }
.pill.dot::before { display: block; }
.pill-green { color: #6ff2c4; background: rgba(var(--green-rgb), 0.08); border-color: rgba(var(--green-rgb), 0.3); }
.pill-red { color: #ff9db0; background: rgba(var(--red-rgb), 0.08); border-color: rgba(var(--red-rgb), 0.3); }
.pill-amber { color: #fcd56b; background: rgba(251, 191, 36, 0.08); border-color: rgba(251, 191, 36, 0.3); }
.pill-accent { color: var(--accent-3); background: rgba(var(--accent-rgb), 0.08); border-color: rgba(var(--accent-rgb), 0.3); }
.pill-violet { color: #d4b2ff; background: rgba(168, 85, 247, 0.1); border-color: rgba(168, 85, 247, 0.35); }
.kbd {
display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px;
border-radius: 6px; font-family: var(--font-mono); font-size: 11px; color: var(--text-2);
background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-2); border-bottom-width: 2px;
}
.ball {
--c: #f5b700; --size: 56px;
position: relative; display: inline-block; vertical-align: middle;
width: var(--size); height: var(--size); border-radius: 50%; flex: none;
background:
radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.95) 0 4%, rgba(255, 255, 255, 0.35) 9%, transparent 22%),
radial-gradient(circle at 50% 120%, rgba(var(--accent-rgb), 0.55), transparent 55%),
radial-gradient(circle at 40% 35%, var(--c) 0%, color-mix(in srgb, var(--c) 70%, #000) 60%, color-mix(in srgb, var(--c) 25%, #000) 100%);
box-shadow: inset -6px -8px 16px rgba(0, 0, 0, 0.55), 0 14px 30px -8px rgba(0, 0, 0, 0.8), 0 0 30px -6px color-mix(in srgb, var(--c) 70%, transparent);
}
.ball.stripe {
background:
radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.95) 0 4%, rgba(255, 255, 255, 0.35) 9%, transparent 22%),
radial-gradient(circle at 50% 120%, rgba(var(--accent-rgb), 0.45), transparent 55%),
linear-gradient(180deg, #e9eef3 0 24%, var(--c) 24% 76%, #cfd6dd 76% 100%);
}
.ball > b {
position: absolute; inset: 27%; border-radius: 50%; display: grid; place-items: center;
background: radial-gradient(circle at 40% 35%, #fff, #dfe6ec);
color: #0b0f14; font-family: var(--font-display); font-weight: 800; font-size: calc(var(--size) * 0.2);
box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.25);
}
.ball.eight { --c: #10151c; box-shadow: inset -6px -8px 16px rgba(0, 0, 0, 0.7), 0 14px 30px -8px rgba(0, 0, 0, 0.8), 0 0 40px -6px rgba(var(--accent-rgb), 0.7); }
.ball.cue { --c: #f2f6fa; }
.toast-stack {
position: fixed; z-index: 1000; inset-block-end: 22px; inset-inline-end: 22px;
display: grid; gap: 10px; width: min(380px, calc(100vw - 32px));
pointer-events: none;
}
.toast {
pointer-events: auto;
display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
padding: 13px 14px; border-radius: 15px;
background: rgba(10, 18, 32, 0.92);
border: 1px solid var(--line-2);
box-shadow: var(--shadow-lg);
-webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
animation: toast-in 0.5s var(--ease-spring);
overflow: hidden; position: relative;
}
.toast.is-leaving { animation: toast-out 0.35s var(--ease) forwards; }
.toast-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(var(--accent-rgb), 0.12); color: var(--accent); }
.toast-icon svg { width: 18px; height: 18px; }
.toast-title { font-weight: 600; font-size: 14px; }
.toast-msg { font-size: 13px; color: var(--text-2); }
.toast-close { color: var(--text-3); width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; }
.toast-close:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.toast-close svg { width: 15px; height: 15px; }
.toast::after {
content: ''; position: absolute; inset-block-end: 0; inset-inline-start: 0; height: 2px; width: 100%;
background: currentColor; color: var(--accent); transform-origin: right; animation: toast-timer var(--t, 4s) linear forwards; opacity: 0.7;
}
.toast.success .toast-icon { background: rgba(var(--green-rgb), 0.12); color: var(--green); }
.toast.success::after { color: var(--green); }
.toast.error .toast-icon { background: rgba(var(--red-rgb), 0.12); color: var(--red); }
.toast.error::after { color: var(--red); }
.toast.warn .toast-icon { background: rgba(251, 191, 36, 0.12); color: var(--amber); }
.toast.warn::after { color: var(--amber); }
.modal-root { position: fixed; inset: 0; z-index: 900; display: grid; place-items: center; padding: 16px; }
.modal-backdrop {
position: absolute; inset: 0; background: rgba(1, 4, 9, 0.7);
-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
animation: fade-in 0.3s var(--ease);
}
.modal {
position: relative; width: min(480px, 100%); max-height: calc(100dvh - 32px); overflow: auto;
padding: 26px; border-radius: 24px;
background: linear-gradient(180deg, rgba(14, 24, 42, 0.97), rgba(7, 13, 24, 0.97));
border: 1px solid var(--line-2);
box-shadow: var(--shadow-lg), 0 0 0 1px rgba(var(--accent-rgb), 0.08), 0 0 80px -30px rgba(var(--accent-rgb), 0.5);
animation: modal-in 0.5s var(--ease-spring);
}
.modal.wide { width: min(640px, 100%); }
.modal-root.is-leaving .modal { animation: modal-out 0.25s var(--ease) forwards; }
.modal-root.is-leaving .modal-backdrop { animation: fade-out 0.25s var(--ease) forwards; }
.modal-head { display: flex; align-items: flex-start; gap: 14px; margin-block-end: 14px; }
.modal-icon { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 14px; background: rgba(var(--accent-rgb), 0.12); color: var(--accent); border: 1px solid rgba(var(--accent-rgb), 0.25); }
.modal-icon.danger { background: rgba(var(--red-rgb), 0.12); color: var(--red); border-color: rgba(var(--red-rgb), 0.3); }
.modal-icon svg { width: 22px; height: 22px; }
.modal-title { font-size: 18px; font-weight: 700; }
.modal-text { color: var(--text-2); font-size: 14px; margin-block-start: 4px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-block-start: 22px; flex-wrap: wrap; }
.modal-close { position: absolute; inset-block-start: 14px; inset-inline-start: 14px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: var(--text-3); }
.modal-close:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.modal-close svg { width: 18px; height: 18px; }
.curtain {
position: fixed; inset: 0; z-index: 2000; pointer-events: none;
background:
radial-gradient(circle at var(--cx, 50%) var(--cy, 50%), rgba(var(--accent-rgb), 0.35), transparent 40%),
var(--bg);
clip-path: circle(0 at var(--cx, 50%) var(--cy, 50%));
transition: clip-path 0.75s cubic-bezier(0.7, 0, 0.2, 1);
}
.curtain.is-on { clip-path: circle(150vmax at var(--cx, 50%) var(--cy, 50%)); pointer-events: auto; }
.curtain-logo {
position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; translate: -50% -50%;
opacity: 0; transition: opacity 0.3s 0.35s; filter: drop-shadow(0 0 24px rgba(var(--accent-rgb), 0.8));
}
.curtain.is-on .curtain-logo { opacity: 1; animation: logo-breathe 1.2s ease-in-out infinite; }
.curtain.is-opening { clip-path: circle(150vmax at 50% 50%); transition: none; }
.curtain.is-opening.go { clip-path: circle(0 at 50% 50%); transition: clip-path 0.8s cubic-bezier(0.7, 0, 0.2, 1); }
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); transition-delay: var(--d, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal='scale'] { transform: scale(0.94); }
[data-reveal='scale'].is-in { transform: none; }
.stagger > * { animation: rise 0.7s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 70ms); }
.skeleton {
border-radius: 10px; min-height: 14px;
background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0%, rgba(var(--accent-rgb), 0.1) 50%, rgba(255, 255, 255, 0.04) 100%);
background-size: 200% 100%; animation: shimmer 1.4s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-once { from { transform: rotate(0); } to { transform: rotate(-360deg); } }
@keyframes beam { 0% { left: -60%; } 55%, 100% { left: 130%; } }
@keyframes beam-rotate { to { --beam-angle: 360deg; } }
@keyframes pulse-dot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(0.75); } }
@keyframes ripple { to { transform: translate(-50%, -50%) scale(1); opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes modal-in { from { opacity: 0; transform: translateY(24px) scale(0.94); } }
@keyframes modal-out { to { opacity: 0; transform: translateY(12px) scale(0.97); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(20px) scale(0.9); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(-30px) scale(0.95); } }
@keyframes toast-timer { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes float-y { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes logo-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes shake { 10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(4px); } 30%, 50%, 70% { transform: translateX(-7px); } 40%, 60% { transform: translateX(7px); } }
@keyframes glitch {
0%, 100% { clip-path: inset(0 0 0 0); transform: none; }
20% { clip-path: inset(20% 0 55% 0); transform: translate(-3px, 1px); }
40% { clip-path: inset(60% 0 10% 0); transform: translate(3px, -1px); }
60% { clip-path: inset(40% 0 35% 0); transform: translate(-2px, 0); }
80% { clip-path: inset(10% 0 75% 0); transform: translate(2px, 1px); }
}
.shake { animation: shake 0.5s var(--ease); }
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
[data-reveal] { opacity: 1; transform: none; }
}
