:root {
    --bg-color: #050706;
    --bg-secondary: #0b0e0c;
    --bg-tertiary: #111513;
    --text-main: #ffffff;
    --text-muted: #9ca3af;
    --primary-color: #38bdf8;
    --primary-deep: #0284c7;
    --primary-glow: rgba(56, 189, 248, 0.35);
    --border-color: #1f2422;
    --danger: #ef4444;
    --success: #10b981;
    --warning: #f59e0b;
    --discord: #5865f2;

    --heading-font: 'Anton', 'Oswald', sans-serif;
    --body-font: 'Inter', sans-serif;
    --display-font: 'Oswald', sans-serif;
    --sidebar-width: 270px;

    --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
    --ease-io: cubic-bezier(0.87, 0, 0.13, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { background-color: var(--bg-color); color: var(--text-main); font-family: var(--body-font); overflow-x: hidden; max-width: 100vw; -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; position: relative; }
body::before {
    content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background:
        radial-gradient(circle at 85% 8%, rgba(56, 189, 248, 0.12), transparent 40%),
        radial-gradient(circle at 5% 95%, rgba(56, 189, 248, 0.05), transparent 40%),
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: auto, auto, 60px 60px, 60px 60px;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,0.35) 100%);
            mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,0.35) 100%);
}
h1, h2, h3, h4, h5 { font-family: var(--heading-font); text-transform: uppercase; letter-spacing: 0.02em; font-weight: 400; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
::selection { background: var(--primary-color); color: #001018; }

@keyframes spin-loader { 100% { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ping { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes blink { 50% { opacity: 0.35; } }
@keyframes glow-pulse { 0%, 100% { text-shadow: 0 0 0 transparent; } 50% { text-shadow: 0 0 22px var(--primary-glow); } }

#page-transition { position: fixed; inset: 0; z-index: 999999; pointer-events: none; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pt-panel { position: absolute; top: -10%; bottom: -10%; width: 120vw; transform: translateX(0) skewX(-12deg); transition: transform 0.75s var(--ease-io); }
.pt-panel-1 { left: -30vw; background: #030403; z-index: 2; }
.pt-panel-2 { left: -10vw; background: var(--primary-color); z-index: 1; transition-delay: 0.15s; }
#page-transition.loaded .pt-panel { transform: translateX(150vw) skewX(-12deg); }
#page-transition .loader-spinner { position: relative; z-index: 3; transition: opacity 0.3s; }
#page-transition.loaded .loader-spinner { opacity: 0; }
#page-transition.loaded { visibility: hidden; transition: visibility 0s linear 0.9s; }
.loader-spinner { width: 50px; height: 50px; border: 3px solid rgba(255,255,255,0.1); border-top-color: var(--primary-color); border-radius: 50%; animation: spin-loader 1s linear infinite; }

.section-label { font-family: var(--heading-font); color: var(--primary-color); font-size: 0.9rem; margin-bottom: 12px; letter-spacing: 3px; display: inline-flex; align-items: center; gap: 12px; }
.section-label::before { content: ''; width: 28px; height: 1px; background: currentColor; }

.btn { display: inline-flex; justify-content: center; align-items: center; gap: 9px; padding: 14px 28px; border: 1px solid transparent; border-radius: 2px; font-family: var(--heading-font); font-size: 1rem; letter-spacing: 0.5px; text-transform: uppercase; cursor: pointer; transition: background 0.3s, color 0.3s, transform 0.3s, box-shadow 0.3s, border-color 0.3s; position: relative; overflow: hidden; text-align: center; }
.btn-primary { background: var(--primary-color); color: #001018; }
.btn-primary::after { content: ''; position: absolute; top: 0; left: -120%; width: 60%; height: 100%; background: linear-gradient(120deg, transparent, rgba(255,255,255,0.55), transparent); transform: skewX(-20deg); transition: left 0.7s var(--ease-out); }
.btn-primary:hover:not(:disabled) { background: #fff; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(56,189,248,0.25); }
.btn-primary:hover:not(:disabled)::after { left: 150%; }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.25); color: #fff; }
.btn-outline:hover { border-color: var(--primary-color); color: var(--primary-color); background: rgba(56,189,248,0.06); }
.btn-wa { background: #25d366; color: #04210f; }
.btn-wa:hover { background: #fff; transform: translateY(-2px); }
.btn-discord { background: var(--discord); color: #fff; }
.btn-discord:hover { background: #fff; color: var(--discord); transform: translateY(-2px); }
.btn:disabled, .btn.is-disabled { background: #1a1e1c; color: #5c6560; border-color: var(--border-color); cursor: not-allowed; box-shadow: none; transform: none; pointer-events: none; }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: 0.85rem; }
.spin { animation: spin-loader 0.9s linear infinite; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-family: var(--display-font); font-size: 0.82rem; font-weight: 500; margin-bottom: 8px; color: #fff; letter-spacing: 1px; text-transform: uppercase; }
.form-group label small { color: var(--text-muted); text-transform: none; letter-spacing: 0; font-family: var(--body-font); font-weight: 400; margin-left: 6px; }
.input-wrapper { position: relative; display: flex; align-items: center; }
.input-wrapper iconify-icon { position: absolute; left: 16px; color: var(--text-muted); font-size: 1.2rem; transition: color 0.3s; pointer-events: none; }
.input-wrapper:focus-within iconify-icon { color: var(--primary-color); }
.form-control { width: 100%; background: var(--bg-color); border: 1px solid var(--border-color); color: #fff; padding: 14px 15px 14px 46px; border-radius: 2px; font-size: 0.95rem; transition: border-color 0.3s, box-shadow 0.3s; }
.form-control.no-icon { padding-left: 15px; }
.form-control::placeholder { color: #4b5350; }
.form-control:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(56,189,248,0.12); }
select.form-control { appearance: none; cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 140px; line-height: 1.6; }
.field-hint { display: flex; justify-content: space-between; gap: 10px; margin-top: 7px; font-size: 0.78rem; color: var(--text-muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.alert { padding: 14px 16px; border-radius: 2px; font-size: 0.88rem; line-height: 1.55; display: flex; gap: 10px; align-items: flex-start; margin-bottom: 22px; border: 1px solid; }
.alert iconify-icon { font-size: 1.25rem; flex-shrink: 0; margin-top: 1px; }
.alert-error { background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.3); color: #f87171; }
.alert-warn { background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.35); color: #fbbf24; }
.alert-ok { background: rgba(16,185,129,0.1); border-color: rgba(16,185,129,0.3); color: #34d399; }
.alert-info { background: rgba(56,189,248,0.08); border-color: rgba(56,189,248,0.28); color: #7dd3fc; }
.alert .alert-body { flex: 1; min-width: 0; }
.alert a.link { text-decoration: underline; font-weight: 600; }

.login-wrapper { position: relative; z-index: 2; display: flex; justify-content: center; align-items: center; min-height: 100vh; padding: 24px; }
.login-card { position: relative; width: 100%; max-width: 440px; background: rgba(9,12,11,0.78); backdrop-filter: blur(10px); border: 1px solid rgba(56,189,248,0.22); border-top: 2px solid var(--primary-color); padding: 44px 36px 36px; animation: rise 0.9s var(--ease-out) both; }
.login-head { text-align: center; margin-bottom: 30px; }
.login-head img { width: 56px; height: 56px; margin: 0 auto 16px; }
.login-head h1 { font-size: clamp(2.4rem, 8vw, 3rem); line-height: 0.95; margin-bottom: 12px; }
.login-head h1 span { color: var(--primary-color); }
.login-head p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }
.login-back { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 22px; color: var(--text-muted); font-size: 0.88rem; transition: color 0.3s; }
.login-back:hover { color: var(--primary-color); }

.app-layout { position: relative; display: flex; min-height: 100vh; }
.sidebar { width: var(--sidebar-width); background: rgba(5,7,6,0.97); border-right: 1px solid var(--border-color); position: fixed; height: 100vh; left: 0; top: 0; z-index: 100; display: flex; flex-direction: column; transition: transform 0.4s var(--ease-io); }
.sidebar-header { padding: 22px 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border-color); }
.sidebar-brand { display: flex; align-items: center; gap: 12px; font-family: var(--heading-font); font-size: 1.35rem; letter-spacing: 1px; line-height: 1; }
.sidebar-brand img { width: 30px; height: 30px; }
.sidebar-brand span { color: var(--primary-color); }
.btn-close-sidebar { display: none; background: transparent; border: none; color: #fff; font-size: 1.6rem; cursor: pointer; }
.sidebar-nav { padding: 18px 14px; display: flex; flex-direction: column; gap: 6px; flex-grow: 1; overflow-y: auto; }
.nav-group { font-family: var(--display-font); font-size: 0.7rem; letter-spacing: 3px; color: #566; padding: 14px 14px 6px; text-transform: uppercase; }
.nav-item { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; color: var(--text-muted); border-radius: 2px; font-size: 0.92rem; font-family: var(--display-font); text-transform: uppercase; font-weight: 500; transition: 0.25s; letter-spacing: 1px; }
.nav-item iconify-icon { font-size: 1.3rem; }
.nav-item:hover { background: rgba(255,255,255,0.04); color: #fff; padding-left: 18px; }
.nav-item.active { background: rgba(56,189,248,0.1); color: var(--primary-color); }
.nav-item.active::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; background: var(--primary-color); box-shadow: 0 0 10px var(--primary-color); }
.nav-item.danger:hover { background: rgba(239,68,68,0.1); color: var(--danger); }
.nav-badge { margin-left: auto; font-size: 0.7rem; padding: 3px 8px; border-radius: 20px; background: rgba(245,158,11,0.15); color: var(--warning); border: 1px solid rgba(245,158,11,0.4); letter-spacing: 0.5px; animation: blink 1.6s infinite; }
.sidebar-foot { padding: 14px 20px 18px; border-top: 1px solid var(--border-color); font-family: var(--display-font); font-size: 0.72rem; letter-spacing: 2px; color: #566; display: flex; justify-content: space-between; }
.sidebar-foot b { color: var(--primary-color); font-weight: 500; }

.main-content { flex-grow: 1; margin-left: var(--sidebar-width); display: flex; flex-direction: column; min-height: 100vh; width: calc(100% - var(--sidebar-width)); min-width: 0; }
.topbar { height: 72px; padding: 0 32px; display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--border-color); background: rgba(5,7,6,0.88); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 50; }
.menu-toggle { background: transparent; border: 1px solid var(--border-color); color: #fff; width: 40px; height: 40px; border-radius: 2px; display: none; justify-content: center; align-items: center; cursor: pointer; font-size: 1.2rem; }
.top-title { font-family: var(--heading-font); font-size: 1.3rem; letter-spacing: 1px; text-transform: uppercase; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; min-width: 0; }
.chip { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display-font); font-size: 0.8rem; letter-spacing: 1px; background: rgba(255,255,255,0.04); padding: 8px 14px; border-radius: 2px; border: 1px solid var(--border-color); text-transform: uppercase; white-space: nowrap; }
.chip iconify-icon { color: var(--primary-color); font-size: 1.1rem; }
.chip.warn { border-color: rgba(245,158,11,0.45); color: var(--warning); }
.chip.warn iconify-icon { color: var(--warning); }
.chip.user { max-width: 220px; overflow: hidden; text-overflow: ellipsis; }

.content-wrapper { padding: 40px 32px 70px; flex-grow: 1; max-width: 1380px; width: 100%; margin: 0 auto; animation: rise 0.7s var(--ease-out) both; }

.page-hd { margin-bottom: 30px; }
.page-hd h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 0.95; margin-bottom: 12px; }
.page-hd h1 span { color: var(--primary-color); }
.page-hd p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; max-width: 640px; border-left: 2px solid var(--primary-color); padding-left: 16px; }

.card { position: relative; background: rgba(9,12,11,0.7); border: 1px solid var(--border-color); padding: 30px; }
.card::before { content: ''; position: absolute; top: -1px; left: -1px; width: 70px; height: 3px; background: var(--primary-color); }
.card.c-warn::before { background: var(--warning); }
.card.c-ok::before { background: var(--success); }
.card.c-danger::before { background: var(--danger); }
.card-title { font-family: var(--heading-font); font-size: 1.25rem; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--border-color); display: flex; align-items: center; gap: 10px; }
.card-title iconify-icon { color: var(--primary-color); font-size: 1.4rem; }
.card-title .right { margin-left: auto; }
.muted { color: var(--text-muted); }

.grid-2 { display: grid; grid-template-columns: 1.35fr 1fr; gap: 24px; align-items: start; }
.grid-2.eq { align-items: stretch; }
.card.center-y { display: flex; flex-direction: column; justify-content: center; }
.grid-even { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; }
.stack { display: flex; flex-direction: column; gap: 24px; }

.status-card { display: grid; grid-template-columns: 170px 1fr; gap: 30px; align-items: center; }
.gauge { position: relative; width: 170px; height: 170px; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge circle { fill: none; stroke-width: 8; }
.gauge .bg { stroke: rgba(255,255,255,0.07); }
.gauge .fg { stroke: var(--primary-color); stroke-linecap: butt; filter: drop-shadow(0 0 6px var(--primary-glow)); transition: stroke-dasharray 1s var(--ease-out); }
.gauge.warn .fg { stroke: var(--warning); filter: drop-shadow(0 0 6px rgba(245,158,11,0.5)); }
.gauge-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.gauge-in strong { font-family: var(--heading-font); font-weight: 400; font-size: 2.8rem; line-height: 1; }
.gauge-in span { font-family: var(--display-font); font-size: 0.72rem; letter-spacing: 3px; color: var(--text-muted); margin-top: 5px; }
.status-pill { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display-font); font-size: 0.8rem; letter-spacing: 2px; color: var(--success); margin-bottom: 10px; }
.status-pill.warn { color: var(--warning); }
.dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: currentColor; animation: ping 1.8s var(--ease-out) infinite; }
.status-info h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); line-height: 1; margin-bottom: 8px; }
.status-info p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; margin-bottom: 18px; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; margin-top: 24px; }
.stat-card { background: rgba(9,12,11,0.7); border: 1px solid var(--border-color); padding: 22px; display: flex; align-items: center; gap: 18px; transition: transform 0.4s var(--ease-out), border-color 0.3s; }
.stat-card:hover { transform: translateY(-4px); border-color: rgba(56,189,248,0.4); }
.stat-icon { font-size: 1.8rem; width: 56px; height: 56px; display: flex; justify-content: center; align-items: center; flex-shrink: 0; border: 1px solid; }
.icon-green { color: var(--success); background: rgba(16,185,129,0.08); border-color: rgba(16,185,129,0.3); }
.icon-blue { color: var(--primary-color); background: rgba(56,189,248,0.08); border-color: rgba(56,189,248,0.3); }
.icon-orange { color: var(--warning); background: rgba(245,158,11,0.08); border-color: rgba(245,158,11,0.3); }
.stat-info h3 { font-size: 1.5rem; line-height: 1.1; margin-bottom: 4px; }
.stat-info p { color: var(--text-muted); font-size: 0.75rem; font-family: var(--display-font); letter-spacing: 2px; text-transform: uppercase; }

.quick { display: flex; flex-direction: column; }
.quick a { display: flex; align-items: center; gap: 14px; padding: 15px 4px; border-bottom: 1px dashed var(--border-color); transition: padding-left 0.3s var(--ease-out), color 0.3s; }
.quick a:last-child { border-bottom: none; padding-bottom: 0; }
.quick a:hover { padding-left: 10px; color: var(--primary-color); }
.quick iconify-icon.l { font-size: 1.5rem; color: var(--primary-color); }
.quick b { display: block; font-family: var(--display-font); font-weight: 500; letter-spacing: 1px; text-transform: uppercase; font-size: 0.92rem; }
.quick small { color: var(--text-muted); font-size: 0.8rem; }
.quick iconify-icon.r { margin-left: auto; color: var(--text-muted); }

.hwid-box { background: var(--bg-color); border: 1px solid var(--border-color); padding: 18px 20px; display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.hwid-box code { color: var(--primary-color); font-size: 1rem; word-break: break-all; flex: 1; min-width: 0; }
.copy-btn { background: rgba(56,189,248,0.08); border: 1px solid rgba(56,189,248,0.3); color: var(--primary-color); padding: 8px 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-family: var(--display-font); font-size: 0.75rem; letter-spacing: 1px; text-transform: uppercase; transition: 0.25s; flex-shrink: 0; }
.copy-btn:hover { background: var(--primary-color); color: #001018; }
.copy-btn.ok { background: var(--success); border-color: var(--success); color: #001018; }

.kv { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--border-color); font-size: 0.9rem; }
.kv:last-child { border-bottom: none; padding-bottom: 0; }
.kv span { color: var(--text-muted); font-family: var(--display-font); letter-spacing: 1px; font-size: 0.8rem; text-transform: uppercase; }
.kv strong { font-weight: 500; text-align: right; word-break: break-word; }

pre.changelog { background: var(--bg-color); border: 1px solid var(--border-color); padding: 18px 20px; color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; white-space: pre-wrap; word-break: break-word; font-family: var(--body-font); max-height: 320px; overflow: auto; }

.now-strip { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; background: rgba(0,0,0,0.5); border-left: 3px solid var(--primary-color); padding: 16px 20px; margin-bottom: 24px; }
.now-strip div small { display: block; font-family: var(--display-font); font-size: 0.7rem; letter-spacing: 2px; color: var(--text-muted); text-transform: uppercase; margin-bottom: 4px; }
.now-strip div strong { font-family: var(--heading-font); font-weight: 400; font-size: 1.4rem; letter-spacing: 0.5px; }
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 24px; }
.pkg { position: relative; display: block; cursor: pointer; }
.pkg input { position: absolute; opacity: 0; pointer-events: none; }
.pkg-body { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 20px 18px; background: var(--bg-color); border: 1px solid var(--border-color); transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease-out); }
.pkg:hover .pkg-body { border-color: rgba(56,189,248,0.5); transform: translateY(-3px); }
.pkg input:checked + .pkg-body { border-color: var(--primary-color); background: rgba(56,189,248,0.07); box-shadow: 0 0 0 1px var(--primary-color), 0 10px 30px rgba(56,189,248,0.1); }
.pkg input:focus-visible + .pkg-body { outline: 2px solid #fff; outline-offset: 2px; }
.pkg-check { position: absolute; top: 12px; right: 12px; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center; color: transparent; font-size: 0.9rem; transition: 0.25s; }
.pkg input:checked + .pkg-body .pkg-check { background: var(--primary-color); border-color: var(--primary-color); color: #001018; }
.pkg-name { font-family: var(--display-font); font-size: 0.82rem; letter-spacing: 2px; color: var(--text-muted); text-transform: uppercase; padding-right: 26px; }
.pkg-days { font-family: var(--heading-font); font-size: 2.2rem; line-height: 1; }
.pkg-days small { font-size: 0.45em; color: var(--text-muted); margin-left: 4px; }
.pkg-price { font-family: var(--heading-font); font-size: 1.25rem; color: var(--primary-color); margin-top: 6px; }
.pkg-old { color: #667; text-decoration: line-through; font-size: 0.8rem; margin-left: 6px; font-family: var(--body-font); }
.pkg-per { font-size: 0.75rem; color: var(--text-muted); }
.pkg-tag { position: absolute; top: -9px; left: 14px; background: var(--warning); color: #1a1000; font-family: var(--display-font); font-size: 0.65rem; font-weight: 600; letter-spacing: 1.5px; padding: 3px 9px; text-transform: uppercase; z-index: 2; }

.sum { background: rgba(0,0,0,0.5); border: 1px solid var(--border-color); padding: 18px 20px; margin-bottom: 20px; }
.sum .kv strong.big { font-family: var(--heading-font); font-weight: 400; font-size: 1.3rem; color: var(--primary-color); }
.sum .kv strong.newdate { color: var(--success); font-family: var(--heading-font); font-weight: 400; font-size: 1.15rem; }

.how { display: flex; flex-direction: column; }
.how-step { position: relative; padding: 0 0 24px 38px; }
.how-step:last-child { padding-bottom: 0; }
.how-step::before { content: ''; position: absolute; left: 0; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg-color); border: 2px solid var(--primary-color); box-shadow: 0 0 12px rgba(56,189,248,0.5); }
.how-step::after { content: ''; position: absolute; left: 6px; top: 22px; bottom: 2px; width: 1px; background: linear-gradient(180deg, var(--primary-color), rgba(56,189,248,0.05)); }
.how-step:last-child::after { display: none; }
.how-step h4 { font-size: 1.2rem; margin-bottom: 4px; }
.how-step p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; }
.example { margin-top: 22px; padding: 16px 18px; background: rgba(16,185,129,0.07); border: 1px dashed rgba(16,185,129,0.4); font-size: 0.88rem; line-height: 1.7; color: #a7f3d0; }
.example b { color: #fff; }

.rep-list { display: flex; flex-direction: column; }
.rep-item { padding: 16px 0; border-bottom: 1px dashed var(--border-color); }
.rep-item:last-child { border-bottom: none; padding-bottom: 0; }
.rep-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.rep-id { font-family: var(--heading-font); color: var(--primary-color); font-size: 1.05rem; }
.rep-cat { font-size: 0.9rem; font-weight: 500; }
.rep-meta { color: var(--text-muted); font-size: 0.78rem; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.rep-note { margin-top: 10px; padding: 10px 14px; background: rgba(56,189,248,0.07); border-left: 3px solid var(--primary-color); font-size: 0.85rem; line-height: 1.6; color: #d4e9f5; white-space: pre-wrap; }
.rep-note b { display: block; font-family: var(--display-font); font-size: 0.7rem; letter-spacing: 2px; color: var(--primary-color); text-transform: uppercase; margin-bottom: 2px; }
.st { font-family: var(--display-font); font-size: 0.68rem; letter-spacing: 1.5px; padding: 3px 9px; text-transform: uppercase; border: 1px solid; margin-left: auto; }
.st-wait { color: var(--warning); border-color: rgba(245,158,11,0.4); background: rgba(245,158,11,0.08); }
.st-prog { color: var(--primary-color); border-color: rgba(56,189,248,0.4); background: rgba(56,189,248,0.08); }
.st-done { color: var(--success); border-color: rgba(16,185,129,0.4); background: rgba(16,185,129,0.08); }
.st-closed { color: #8a918d; border-color: var(--border-color); background: rgba(255,255,255,0.03); }
.sev-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sev-seg label { margin: 0; cursor: pointer; }
.sev-seg input { position: absolute; opacity: 0; pointer-events: none; }
.sev-seg span { display: block; text-align: center; padding: 12px 6px; border: 1px solid var(--border-color); background: var(--bg-color); font-family: var(--display-font); font-size: 0.8rem; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); transition: 0.25s; }
.sev-seg input:checked + span { border-color: var(--primary-color); color: var(--primary-color); background: rgba(56,189,248,0.08); }
.sev-seg input[value="HIGH"]:checked + span { border-color: var(--danger); color: var(--danger); background: rgba(239,68,68,0.08); }
.sev-seg input[value="MEDIUM"]:checked + span { border-color: var(--warning); color: var(--warning); background: rgba(245,158,11,0.08); }
.file-drop { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px dashed rgba(255,255,255,0.2); cursor: pointer; transition: 0.3s; background: var(--bg-color); }
.file-drop:hover { border-color: var(--primary-color); background: rgba(56,189,248,0.04); }
.file-drop iconify-icon { font-size: 1.6rem; color: var(--primary-color); }
.file-drop span { font-size: 0.88rem; color: var(--text-muted); word-break: break-all; }
.file-drop input { display: none; }

.com-card { display: flex; flex-direction: column; height: 100%; transition: transform 0.4s var(--ease-out), border-color 0.3s; }
.com-card:hover { transform: translateY(-5px); border-color: rgba(56,189,248,0.4); }
.com-ico { font-size: 3.2rem; margin-bottom: 14px; line-height: 1; }
.com-card h3 { font-size: 1.5rem; margin-bottom: 10px; }
.com-card p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.7; flex-grow: 1; margin-bottom: 22px; }

.miss-head { background: rgba(239,68,68,0.1); border-bottom: 1px solid rgba(239,68,68,0.3); padding: 22px 28px; margin: -30px -30px 26px; }
.miss-head h3 { font-size: 1.35rem; line-height: 1.25; }
.miss-steps { display: flex; flex-direction: column; gap: 20px; margin: 26px 0 30px; }
.miss-step { display: flex; gap: 16px; align-items: flex-start; }
.miss-no { background: var(--danger); color: #fff; font-family: var(--heading-font); font-size: 1.1rem; width: 36px; height: 36px; display: flex; justify-content: center; align-items: center; flex-shrink: 0; }
.miss-step h4 { font-size: 1.1rem; margin-bottom: 4px; }
.miss-step p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }
.miss-step code { background: rgba(255,255,255,0.08); padding: 2px 6px; color: var(--primary-color); }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; background: var(--bg-color); padding: 14px; border: 1px solid var(--border-color); }
.shots figure { text-align: center; }
.shots img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border: 1px solid var(--border-color); margin-bottom: 8px; cursor: zoom-in; transition: transform 0.3s; }
.shots img:hover { transform: scale(1.03); }
.shots figcaption { color: var(--primary-color); font-family: var(--display-font); font-size: 0.72rem; letter-spacing: 1.5px; font-weight: 600; text-transform: uppercase; }
.faq-item { border-bottom: 1px solid var(--border-color); }
.faq-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; background: transparent; border: none; color: #fff; font-family: var(--display-font); font-weight: 500; font-size: 1rem; cursor: pointer; letter-spacing: 0.5px; text-transform: uppercase; text-align: left; transition: color 0.3s; }
.faq-btn:hover { color: var(--primary-color); }
.faq-btn iconify-icon { color: var(--primary-color); font-size: 1.4rem; transition: transform 0.4s var(--ease-out); flex-shrink: 0; }
.faq-body { max-height: 0; overflow: hidden; transition: max-height 0.45s ease-out; }
.faq-body p { padding: 0 0 18px; color: var(--text-muted); line-height: 1.7; font-size: 0.92rem; }
.faq-item.active .faq-body { max-height: 400px; }
.faq-item.active .faq-btn { color: var(--primary-color); }
.faq-item.active .faq-btn iconify-icon { transform: rotate(180deg); }

.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.82); backdrop-filter: blur(5px); z-index: 1000; display: none; justify-content: center; align-items: center; opacity: 0; transition: opacity 0.3s; padding: 20px; }
.modal-overlay.active { display: flex; opacity: 1; }
.modal-content { position: relative; background: var(--bg-secondary); border: 1px solid rgba(56,189,248,0.25); border-top: 2px solid var(--primary-color); width: 100%; max-width: 470px; padding: 30px; animation: rise 0.4s var(--ease-out) both; }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--border-color); }
.modal-header h2 { font-size: 1.5rem; }
.btn-close { background: transparent; border: none; color: var(--text-muted); font-size: 1.5rem; cursor: pointer; transition: color 0.2s; display: flex; }
.btn-close:hover { color: var(--primary-color); }
.modal-footer { margin-top: 24px; display: flex; justify-content: flex-end; gap: 10px; }

.toast { position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 30px); background: #0a0a0a; border: 1px solid var(--border-color); border-left: 3px solid var(--primary-color); color: #fff; padding: 13px 20px; font-size: 0.88rem; display: flex; align-items: center; gap: 10px; opacity: 0; pointer-events: none; transition: all 0.35s var(--ease-out); z-index: 99999; max-width: 92vw; box-shadow: 0 14px 40px rgba(0,0,0,0.6); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast iconify-icon { color: var(--primary-color); font-size: 1.2rem; flex-shrink: 0; }
.toast.err { border-left-color: var(--danger); }
.toast.err iconify-icon { color: var(--danger); }
.toast.ok { border-left-color: var(--success); }
.toast.ok iconify-icon { color: var(--success); }

.sidebar-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.8); z-index: 99; display: none; backdrop-filter: blur(2px); }
.sidebar-overlay.show { display: block; }

@media (max-width: 1100px) {
    .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 992px) {
    .sidebar { transform: translateX(-100%); width: min(290px, 85vw); }
    .sidebar.show { transform: translateX(0); }
    .main-content { margin-left: 0; width: 100%; }
    .menu-toggle { display: flex; }
    .btn-close-sidebar { display: block; }
    .topbar { padding: 0 18px; }
    .content-wrapper { padding: 28px 18px 50px; }
}
@media (max-width: 640px) {
    .status-card { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 20px; }
    .status-info .btns { justify-content: center; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .card { padding: 24px 18px; }
    .miss-head { margin: -24px -18px 22px; padding: 20px 18px; }
    .chip.hide-sm { display: none; }
    .chip.user { max-width: 150px; }
    .now-strip { gap: 14px; }
    .login-card { padding: 36px 22px 28px; }
    .btn { padding: 14px 20px; }
    .top-title { font-size: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}