/* ============================================================
   AVEX Auth — admin panel
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html, body { height: 100%; }
/* Atrybut [hidden] MUSI wygrywac z .shell/.modal-root { display: grid } */
[hidden] { display: none !important; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    overflow: hidden;
    font-size: 14px;
    position: relative;
}
/* Global bg layer — kropki, bloby, grid nad plaskim bg, pod contentem */
.app-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background: radial-gradient(ellipse at top, #0a1425 0%, var(--bg) 55%),
                radial-gradient(ellipse at bottom left, #0a1730 0%, transparent 60%);
}
.app-bg canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Gate i Shell siedza NAD tlem */
#gate  { z-index: 10; }
#shell { position: relative; z-index: 5; }
button { font-family: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
input, textarea, select { font-family: inherit; color: inherit; font-size: inherit; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
svg { display: block; }
table { border-collapse: collapse; width: 100%; }
kbd {
    font: 500 11px/1 'JetBrains Mono', Consolas, monospace;
    background: rgba(255,255,255,0.08);
    border: 1px solid var(--border-hi);
    border-bottom-width: 2px;
    padding: 2px 5px;
    border-radius: 4px;
    color: var(--text-mute);
}
code {
    font: 500 12px/1 'JetBrains Mono', Consolas, monospace;
    background: rgba(255,255,255,0.06);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--accent);
}

/* --- Tokens --- */
:root {
    --bg:            #08080c;
    --bg-2:          #0d0d14;
    --bg-3:          #12121a;
    --panel:         #0f0f17;
    --panel-hi:      #14141d;
    --border:        rgba(255, 255, 255, 0.06);
    --border-hi:     rgba(255, 255, 255, 0.12);
    --border-strong: rgba(255, 255, 255, 0.2);
    --text:          #f0f0f4;
    --text-mute:     #8b8b98;
    --text-dim:      #56566a;
    --accent:        #3b82f6;
    --accent-2:      #2563eb;
    --accent-hi:     #60a5fa;
    --accent-glow:   rgba(59, 130, 246, 0.4);
    --accent-soft:   rgba(59, 130, 246, 0.1);
    --danger:        #ef4444;
    --warn:          #f59e0b;
    --ok:            #22c55e;
    --info:          #3b82f6;
    --radius-sm: 6px;
    --radius:    10px;
    --radius-lg: 14px;
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.08);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.16); background-clip: padding-box; border: 2px solid transparent; }
::selection { background: var(--accent-soft); color: white; }

/* Brand mark */
.brand-mark {
    width: 32px; height: 32px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border-radius: 8px;
    font-size: 17px; font-weight: 900;
    color: white;
    box-shadow: 0 6px 20px -6px var(--accent-glow);
    flex-shrink: 0;
}

/* ============================================================
   GATE (login)
   ============================================================ */
.gate {
    position: fixed; inset: 0;
    display: grid; place-items: center;
    padding: 24px;
    z-index: 10;
}
.gate-bg {
    position: absolute; inset: 0;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(ellipse at top, #0a1425 0%, var(--bg) 55%);
}
.grid-overlay {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, black 25%, transparent 70%);
}

.gate-card {
    width: 100%; max-width: 420px;
    background: var(--panel);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: 0 30px 80px -20px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.04);
    display: flex; flex-direction: column; gap: 24px;
    position: relative;
    isolation: isolate;
}

/* Ramka bazowa — statyczna */
.gate-card::before {
    content: '';
    position: absolute; inset: 0;
    border: 1px solid var(--border);
    border-radius: inherit;
    pointer-events: none;
    z-index: 1;
}

/* Animowana ramka — plynacy niebieski pasek dookola */
@property --beam-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.gate-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: conic-gradient(
        from var(--beam-angle),
        transparent 0deg,
        transparent 260deg,
        rgba(96, 165, 250, 0.35) 300deg,
        #60a5fa 335deg,
        #93c5fd 350deg,
        #ffffff 360deg
    );
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: borderFlow 8s linear infinite;
    pointer-events: none;
    z-index: 2;
    filter: drop-shadow(0 0 6px rgba(96, 165, 250, 0.6));
}

@keyframes borderFlow {
    from { --beam-angle: 0deg; }
    to   { --beam-angle: 360deg; }
}

/* Fallback dla przegladarek bez @property (Firefox <128) — brak animacji, statyczny border-glow */
@supports not (background: conic-gradient(from 0deg, red, blue)) {
    .gate-card::after { display: none; }
}
.gate-brand {
    display: flex; justify-content: center; margin-bottom: 8px;
}
.brand-logo-wrap {
    position: relative;
    width: 80px; height: 80px;
    display: grid; place-items: center;
    animation: brandFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.brand-logo {
    width: 80px; height: 80px;
    position: relative; z-index: 2;
}
@keyframes brandFadeIn {
    0% { opacity: 0; transform: scale(0.6); }
    100% { opacity: 1; transform: scale(1); }
}

/* Hex outer draw-in */
.brand-logo .hex-outer {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: strokeDraw 1.5s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
@keyframes strokeDraw {
    to { stroke-dashoffset: 0; }
}

/* Fingerprint lines - each one animates in sequence */
.brand-logo .fp-lines path {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: fpDraw 0.6s cubic-bezier(0.65, 0, 0.35, 1) forwards;
    opacity: 0;
}
.brand-logo .fp-1 { animation-delay: 0.4s; }
.brand-logo .fp-2 { animation-delay: 0.6s; }
.brand-logo .fp-3 { animation-delay: 0.8s; }
.brand-logo .fp-4 { animation-delay: 1.0s; }
@keyframes fpDraw {
    0% { stroke-dashoffset: 50; opacity: 0; }
    30% { opacity: 1; }
    100% { stroke-dashoffset: 0; opacity: 1; }
}

/* Center dot pulse */
.brand-logo .fp-dot {
    opacity: 0;
    animation: dotPulse 2s ease-in-out 1.2s infinite;
    transform-origin: center;
}
@keyframes dotPulse {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.4); }
}

/* Orbiting ring around logo */
.brand-orbit {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1px solid transparent;
    border-top-color: rgba(96, 165, 250, 0.5);
    border-right-color: rgba(59, 130, 246, 0.3);
    animation: orbitSpin 4s linear infinite;
    opacity: 0;
    animation-delay: 1.5s;
    animation-fill-mode: forwards;
}
@keyframes orbitSpin {
    0% { transform: rotate(0deg); opacity: 0; }
    20% { opacity: 0.7; }
    100% { transform: rotate(360deg); opacity: 0.7; }
}

/* Continuous logo glow pulse */
.brand-logo-wrap::after {
    content: '';
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.25) 0%, transparent 60%);
    z-index: 1;
    animation: logoGlow 3s ease-in-out infinite;
    pointer-events: none;
}
@keyframes logoGlow {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}
.gate-head {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    text-align: center;
}
.gate-title {
    font-size: 22px; font-weight: 800; letter-spacing: -0.4px;
    font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
    min-height: 30px;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #f0f0f4 0%, #93c5fd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.gate-sub {
    font-size: 12px; color: var(--text-mute); font-weight: 500;
    letter-spacing: 1.5px; text-transform: uppercase;
    font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
    min-height: 18px;
    display: inline-flex; align-items: center; justify-content: center;
}
.tw-cursor {
    color: var(--accent-hi);
    animation: cursorBlink 0.8s steps(1) infinite;
    margin-left: 2px;
    text-shadow: 0 0 8px var(--accent-hi);
    -webkit-background-clip: initial;
    background-clip: initial;
    -webkit-text-fill-color: var(--accent-hi);
}
@keyframes cursorBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}
.gate-warn {
    display: flex; gap: 10px;
    padding: 10px 12px;
    margin-bottom: 20px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: #fcd34d;
    line-height: 1.5;
}
.gate-warn svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }
.gate-hint { text-align: center; font-size: 12px; color: var(--text-dim); margin-top: 14px; }
.gate-hint code { font-size: 11px; }


/* ============================================================
   SHELL layout
   ============================================================ */
.shell {
    display: grid;
    grid-template-columns: 240px 1fr;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar — glass, kropki widoczne z tylu */
.sidebar {
    background: rgba(13, 13, 20, 0.72);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border-right: 1px solid var(--border);
    display: flex; flex-direction: column;
    padding: 18px 12px;
    overflow-y: auto;
}
.side-brand {
    display: flex; align-items: center; gap: 12px;
    padding: 6px 8px 20px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--border);
}
.brand-mark-wrap {
    position: relative; flex-shrink: 0;
    width: 40px; height: 40px;
    display: grid; place-items: center;
}
.side-logo {
    width: 40px; height: 40px;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.5));
    position: relative;
    z-index: 2;
}
.side-logo circle {
    animation: dotPulse 2s ease-in-out infinite;
    transform-origin: center;
    transform-box: fill-box;
}
.brand-mark-wrap::after {
    content: '';
    position: absolute; inset: -6px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 60%);
    z-index: 1;
    animation: logoGlow 3s ease-in-out infinite;
    pointer-events: none;
}
.brand-ring {
    position: absolute;
    inset: -4px;
    border: 1px solid transparent;
    border-top-color: rgba(96, 165, 250, 0.7);
    border-right-color: rgba(59, 130, 246, 0.4);
    border-radius: 50%;
    animation: spinRing 3.6s linear infinite;
    opacity: 0.8;
    pointer-events: none;
    z-index: 3;
}
@keyframes spinRing { to { transform: rotate(360deg); } }
.brand-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.side-title {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.3px;
    line-height: 1;
    color: var(--text);
}
.side-title span {
    font-weight: 500;
    color: var(--text-mute);
    letter-spacing: 0;
    margin-left: 3px;
}
.side-tag {
    display: inline-flex; align-items: center; gap: 6px;
    font: 600 10px/1 'JetBrains Mono', Consolas, monospace;
    color: var(--text-dim);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.live-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--ok);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18), 0 0 8px var(--ok);
    animation: livePulse 2.2s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes livePulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18), 0 0 8px var(--ok); }
    50%      { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.05), 0 0 12px var(--ok); }
}

.side-nav { flex: 1; margin-top: 14px; }
.side-cat {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-dim);
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 14px 8px 8px;
}
.side-item {
    display: flex; align-items: center; gap: 10px;
    width: 100%;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    color: var(--text-mute);
    font-size: 13.5px;
    font-weight: 500;
    transition: color 0.15s ease, background 0.15s ease;
    text-align: left;
    margin-bottom: 2px;
    position: relative;
}
.side-item svg { width: 16px; height: 16px; flex-shrink: 0; opacity: 0.8; }
.side-item:hover { color: var(--text); background: rgba(255,255,255,0.03); }
.side-item.active {
    color: var(--text);
    background: linear-gradient(135deg, var(--accent-soft), transparent);
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 7px 9px;
}
.side-item.active svg { color: var(--accent); opacity: 1; }
.side-count {
    margin-left: auto;
    font: 700 10px/1 'JetBrains Mono', Consolas, monospace;
    padding: 3px 6px;
    background: rgba(255,255,255,0.06);
    border-radius: 4px;
    color: var(--text-mute);
    min-width: 22px; text-align: center;
}
.side-item.active .side-count { background: var(--accent-soft); color: var(--accent); }

.side-foot { border-top: 1px solid var(--border); padding-top: 12px; }
.side-me {
    display: flex; align-items: center; gap: 10px;
    padding: 6px;
    border-radius: var(--radius-sm);
}
.me-avatar {
    width: 34px; height: 34px;
    border-radius: 8px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(37, 99, 235, 0.08));
    border: 1px solid rgba(96, 165, 250, 0.25);
    box-shadow: 0 4px 12px -4px rgba(59, 130, 246, 0.35), inset 0 1px 0 rgba(255,255,255,0.05);
    flex-shrink: 0;
    padding: 5px;
    position: relative;
    overflow: hidden;
}
.me-avatar svg {
    width: 100%; height: 100%;
    filter: drop-shadow(0 0 4px rgba(96, 165, 250, 0.6));
}
.me-avatar svg circle {
    animation: dotPulse 2.5s ease-in-out infinite;
    transform-origin: center;
    transform-box: fill-box;
}
.me-info { flex: 1; min-width: 0; }
.me-name { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-role { font-size: 10px; color: var(--accent); letter-spacing: 0.5px; text-transform: uppercase; font-weight: 700; margin-top: 1px; }

/* Main — przezroczyste, kropki z app-bg widoczne */
.main {
    display: flex; flex-direction: column;
    overflow: hidden;
    background: transparent;
}

/* Topbar — glass */
.topbar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 20px;
    padding: 0 24px;
    height: 56px;
    border-bottom: 1px solid var(--border);
    background: rgba(8, 8, 12, 0.55);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}
.crumb { font-size: 14px; font-weight: 600; letter-spacing: -0.1px; }
.topbar-right { display: flex; align-items: center; gap: 10px; }

.search-wrap {
    position: relative;
    display: flex; align-items: center;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding-left: 10px;
    transition: border-color 0.15s, background 0.15s;
    min-width: 320px;
}
.search-wrap svg { width: 14px; height: 14px; color: var(--text-dim); }
.search-wrap input {
    flex: 1;
    padding: 7px 10px;
    background: transparent;
    border: 0;
    outline: 0;
    font-size: 13px;
    min-width: 0;
}
.search-wrap input::placeholder { color: var(--text-dim); }
.search-wrap:focus-within { border-color: rgba(59, 130, 246, 0.4); background: var(--bg-3); }
.search-wrap:focus-within svg { color: var(--accent); }
.search-wrap kbd { margin-right: 6px; }

.pulse-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--ok);
    box-shadow: 0 0 0 3px rgba(34,197,94,0.2);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.6; } }

/* Views */
.view { display: none; padding: 24px; overflow-y: auto; flex: 1; }
.view.active { display: block; animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ============================================================
   OVERVIEW
   ============================================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}
.stat-card {
    padding: 18px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.15s;
}
.stat-card:hover { border-color: var(--border-hi); }
.stat-head {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 12px;
    color: var(--text-mute);
    font-weight: 500;
    letter-spacing: 0.2px;
    margin-bottom: 10px;
}
.stat-head svg { width: 14px; height: 14px; color: var(--text-dim); }
.stat-big {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1;
}
.stat-delta {
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-mute);
}
.stat-delta.ok { color: var(--ok); }
.stat-delta.muted { color: var(--text-mute); }
.stat-delta span { font-weight: 700; }

.row-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 14px;
}
.panel {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex; flex-direction: column;
}
.panel.danger { border-color: rgba(239, 68, 68, 0.25); }
.panel-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,0.015);
}
.panel-head h3 { font-size: 13px; font-weight: 600; letter-spacing: 0.1px; }
.chart-wrap { padding: 18px; min-height: 220px; }
#chart { width: 100%; height: 200px; }
#chart .bar { fill: var(--accent); opacity: 0.85; transition: opacity 0.15s; }
#chart .bar:hover { opacity: 1; }
#chart .grid-line { stroke: rgba(255,255,255,0.05); stroke-width: 1; }
#chart .axis-label { fill: var(--text-dim); font: 500 10px/1 'JetBrains Mono', monospace; }

.activity { padding: 8px 0; max-height: 320px; overflow-y: auto; }
.activity li {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    padding: 10px 18px;
    align-items: center;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}
.activity li:last-child { border-bottom: 0; }
.activity .act-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--accent); flex-shrink: 0;
}
.activity .act-dot.ok { background: var(--ok); }
.activity .act-dot.warn { background: var(--warn); }
.activity .act-dot.err { background: var(--danger); }
.activity .act-msg { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity .act-msg b { color: var(--accent); font-weight: 600; }
.activity .act-time { font-size: 11px; color: var(--text-dim); font-family: 'JetBrains Mono', Consolas, monospace; }

/* ============================================================
   TOOLBAR + FILTERS
   ============================================================ */
.toolbar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.toolbar-left, .toolbar-right { display: flex; align-items: center; gap: 8px; }

.filter-tabs {
    display: flex; align-items: center;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 3px;
    gap: 2px;
}
.filter-tabs button {
    padding: 6px 12px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-mute);
    border-radius: 5px;
    transition: color 0.15s, background 0.15s;
    display: inline-flex; align-items: center; gap: 6px;
    white-space: nowrap;
}
.filter-tabs button:hover { color: var(--text); background: rgba(255,255,255,0.03); }
.filter-tabs button.active { color: var(--text); background: rgba(59, 130, 246, 0.12); }
.filter-tabs button span {
    font: 700 10px/1 'JetBrains Mono', Consolas, monospace;
    padding: 2px 5px;
    background: rgba(255,255,255,0.06);
    border-radius: 3px;
    color: var(--text-dim);
    min-width: 16px; text-align: center;
}
.filter-tabs button.active span { background: var(--accent-soft); color: var(--accent); }

/* ============================================================
   TABLES
   ============================================================ */
.table-wrap {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.tbl thead th {
    text-align: left;
    padding: 12px 16px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-mute);
    letter-spacing: 0.4px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,0.015);
    white-space: nowrap;
}
.tbl tbody td {
    padding: 12px 16px;
    font-size: 13px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background 0.1s ease; }
.tbl tbody tr:hover { background: rgba(255,255,255,0.02); }

.mono { font-family: 'JetBrains Mono', Consolas, monospace; font-size: 12px; letter-spacing: 0.1px; }
.key-cell {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-size: 12px;
    color: var(--text);
    background: rgba(255,255,255,0.04);
    padding: 4px 8px;
    border-radius: 5px;
    border: 1px solid var(--border);
}
.key-cell button {
    color: var(--text-dim);
    display: grid; place-items: center;
    transition: color 0.15s;
}
.key-cell button:hover { color: var(--accent); }
.key-cell button svg { width: 12px; height: 12px; }

.badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
}
.badge.ok      { background: rgba(34,197,94,0.1);  color: #86efac; border: 1px solid rgba(34,197,94,0.22); }
.badge.warn    { background: rgba(245,158,11,0.1); color: #fcd34d; border: 1px solid rgba(245,158,11,0.22); }
.badge.err     { background: rgba(239,68,68,0.1);  color: #fca5a5; border: 1px solid rgba(239,68,68,0.22); }
.badge.info    { background: rgba(59,130,246,0.1); color: #93c5fd; border: 1px solid rgba(59,130,246,0.22); }
.badge.accent  { background: var(--accent-soft);   color: #93c5fd; border: 1px solid rgba(59,130,246,0.25); }
.badge.dim     { background: rgba(255,255,255,0.04); color: var(--text-mute); border: 1px solid var(--border-hi); }

.hwid-cell {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-size: 11px;
    color: var(--text-mute);
    max-width: 200px;
}
.hwid-cell.empty { color: var(--text-dim); font-style: italic; font-family: inherit; }

.row-actions {
    display: flex; align-items: center; gap: 4px;
    justify-content: flex-end;
}
.row-actions .icon-btn { width: 28px; height: 28px; }
.row-actions .icon-btn svg { width: 14px; height: 14px; }

.empty {
    padding: 60px 20px;
    text-align: center;
    color: var(--text-dim);
    font-size: 13px;
}
.empty b { color: var(--accent); }

/* ============================================================
   SETTINGS
   ============================================================ */
.panels-col { display: flex; flex-direction: column; gap: 14px; max-width: 800px; }
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    padding: 18px;
}
.s-field { display: flex; flex-direction: column; gap: 6px; }
.s-field > span {
    font-size: 11px;
    color: var(--text-mute);
    letter-spacing: 0.3px;
    text-transform: uppercase;
    font-weight: 600;
}
.s-field input, .s-field select {
    padding: 9px 12px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    outline: 0;
    transition: border-color 0.15s, background 0.15s;
    width: 100%;
}
.s-field input:focus, .s-field select:focus { border-color: rgba(59, 130, 246, 0.4); background: var(--bg-3); }
.s-field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b8b98' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 14px; padding-right: 32px; }

.btn-row-r {
    display: flex; justify-content: flex-end; gap: 8px;
    padding: 14px 18px;
    border-top: 1px solid var(--border);
    background: rgba(255,255,255,0.015);
}
.danger-text { padding: 14px 18px; color: var(--text-mute); font-size: 13px; }
.danger-text + .btn-row-r { border-top: 1px solid rgba(239, 68, 68, 0.15); }

/* ============================================================
   FORM COMMON
   ============================================================ */
.field {
    display: flex; flex-direction: column; gap: 8px;
    margin-bottom: 16px;
    animation: fadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.field > label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-mute);
    letter-spacing: 0.4px;
    text-transform: uppercase;
    transition: color 0.2s ease;
}
.field:focus-within > label {
    color: var(--accent-hi);
}
.input-wrap {
    position: relative;
    display: flex; align-items: center;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease, box-shadow 0.3s ease;
}
.input-wrap:hover {
    border-color: rgba(59, 130, 246, 0.25);
    background: rgba(13, 13, 20, 0.4);
}
.input-wrap:focus-within {
    border-color: rgba(59, 130, 246, 0.6);
    background: var(--bg-3);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1), inset 0 0 1px rgba(59, 130, 246, 0.2);
}
.input-ico {
    width: 16px; height: 16px;
    color: var(--text-dim);
    margin-left: 12px;
    flex-shrink: 0;
}
.input-wrap:focus-within .input-ico { color: var(--accent); }
.input-wrap input {
    flex: 1;
    background: transparent;
    border: 0; outline: 0;
    padding: 11px 12px;
    font-size: 13.5px;
    color: var(--text);
    min-width: 0;
    caret-color: var(--accent);
}
.input-wrap input::placeholder { color: var(--text-dim); }
.input-wrap input:focus {
    caret-color: var(--accent-hi);
}
.gate-card .input-wrap input {
    animation: caretBlink 0.8s steps(1, start) infinite;
}
@keyframes caretBlink {
    0%, 49% { caret-color: var(--accent); }
    50%, 100% { caret-color: transparent; }
}
.input-btn {
    display: grid; place-items: center;
    width: 34px; height: 34px;
    color: var(--text-dim);
    margin-right: 3px;
    border-radius: 5px;
}
.input-btn:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.input-btn svg { width: 14px; height: 14px; }

.form-msg {
    font-size: 12.5px;
    padding: 0; max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease, padding 0.2s ease, margin 0.2s ease;
    border-radius: var(--radius-sm);
    margin-bottom: 0;
}
.form-msg.show { padding: 9px 12px; max-height: 120px; margin-bottom: 12px; }
.form-msg.error { background: rgba(239, 68, 68, 0.08); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.22); }
.form-msg.ok    { background: rgba(34, 197, 94, 0.08); color: #86efac; border: 1px solid rgba(34, 197, 94, 0.22); }
.form-msg.warn  { background: rgba(245, 158, 11, 0.08); color: #fcd34d; border: 1px solid rgba(245, 158, 11, 0.22); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 6px;
    padding: 9px 14px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 13px;
    line-height: 1;
    transition: transform 0.08s, box-shadow 0.15s, background 0.15s, border-color 0.15s, color 0.15s;
    position: relative;
    white-space: nowrap;
    user-select: none;
}
.btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.btn:active { transform: scale(0.98); }
.btn.tiny { padding: 6px 10px; font-size: 12px; }
.btn.block { width: 100%; }

.btn.primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: white;
    box-shadow: 0 4px 16px -4px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.15);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, background 0.2s ease;
    position: relative;
    overflow: hidden;
}
.btn.primary::before {
    content: '';
    position: absolute; top: 0; left: -100%; bottom: 0;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}
.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px -6px var(--accent-glow);
}
.btn.primary:hover::before { left: 100%; }
.btn.ghost {
    background: var(--bg-2);
    border: 1px solid var(--border-hi);
    color: var(--text);
}
.btn.ghost:hover { background: var(--bg-3); border-color: var(--border-strong); }
.btn.danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}
.btn.danger:hover { background: rgba(239, 68, 68, 0.18); color: #fecaca; }

.btn[disabled], .btn.loading { pointer-events: none; opacity: 0.6; }
.btn.loading .btn-label { opacity: 0; }
.btn-spinner {
    position: absolute;
    width: 14px; height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    opacity: 0;
    animation: spin 0.7s linear infinite;
}
.btn.loading .btn-spinner { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }

.icon-btn {
    width: 32px; height: 32px;
    display: grid; place-items: center;
    border-radius: 6px;
    color: var(--text-mute);
    transition: color 0.15s, background 0.15s;
    flex-shrink: 0;
}
.icon-btn:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.icon-btn.danger:hover { color: var(--danger); background: rgba(239, 68, 68, 0.1); }
.icon-btn svg { width: 15px; height: 15px; }

/* ============================================================
   MODAL
   ============================================================ */
.modal-root {
    position: fixed; inset: 0;
    z-index: 100;
    display: grid; place-items: center;
    padding: 20px;
}
.modal-backdrop {
    position: absolute; inset: 0;
    background: rgba(4, 4, 8, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: fadeIn 0.15s ease;
}
.modal {
    position: relative;
    width: 100%; max-width: 480px;
    background: var(--panel);
    border: 1px solid var(--border-hi);
    border-radius: var(--radius);
    box-shadow: 0 30px 80px -20px rgba(0,0,0,0.7);
    animation: modalIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: calc(100vh - 40px);
    display: flex; flex-direction: column;
    overflow: hidden;
}
@keyframes modalIn {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to { opacity: 1; transform: none; }
}
.modal-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
}
.modal-head h3 { font-size: 15px; font-weight: 700; letter-spacing: -0.1px; }
.modal-body { padding: 18px; overflow-y: auto; }
.modal-body p { color: var(--text-mute); font-size: 13.5px; margin-bottom: 12px; }
.modal-body p:last-child { margin-bottom: 0; }
.modal-body .field:last-child { margin-bottom: 0; }
.modal-foot {
    display: flex; justify-content: flex-end; gap: 8px;
    padding: 14px 18px;
    border-top: 1px solid var(--border);
    background: rgba(255,255,255,0.015);
}

.gen-preview {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    max-height: 200px;
    overflow-y: auto;
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-size: 11.5px;
    color: var(--accent);
    line-height: 1.7;
}

.detail-list { display: flex; flex-direction: column; gap: 10px; }
.detail-row {
    display: grid; grid-template-columns: 130px 1fr; gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    align-items: center;
}
.detail-row:last-child { border-bottom: 0; }
.detail-row > span:first-child { color: var(--text-mute); font-size: 12px; }
.detail-row > span:last-child { color: var(--text); }

/* ============================================================
   TOAST
   ============================================================ */
.toast-wrap {
    position: fixed;
    bottom: 20px; right: 20px;
    display: flex; flex-direction: column; gap: 8px;
    z-index: 200;
    pointer-events: none;
}
.toast {
    padding: 11px 14px;
    background: var(--panel-hi);
    border: 1px solid var(--border-hi);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 13px;
    min-width: 220px;
    max-width: 360px;
    display: flex; align-items: center; gap: 10px;
    box-shadow: 0 12px 40px -10px rgba(0,0,0,0.6);
    animation: toastIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
}
.toast.leaving { animation: toastOut 0.2s ease forwards; }
.toast.ok  { border-left: 3px solid var(--ok); }
.toast.err { border-left: 3px solid var(--danger); }
.toast.warn { border-left: 3px solid var(--warn); }
.toast .ic { width: 16px; height: 16px; flex-shrink: 0; }
.toast.ok .ic  { color: var(--ok); }
.toast.err .ic { color: var(--danger); }
.toast.warn .ic { color: var(--warn); }
@keyframes toastIn  { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(20px); } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .shell { grid-template-columns: 1fr; }
    .sidebar {
        position: fixed; bottom: 0; left: 0; right: 0; top: auto;
        flex-direction: row; padding: 8px;
        height: auto;
        border-right: 0;
        border-top: 1px solid var(--border);
        z-index: 20;
        overflow-x: auto; overflow-y: hidden;
    }
    .side-brand, .side-cat, .side-foot, .side-count { display: none; }
    .side-nav { display: flex; gap: 4px; margin: 0; flex: 1; }
    .side-item { flex-direction: column; gap: 2px; padding: 8px 12px; font-size: 10px; }
    .row-grid { grid-template-columns: 1fr; }
    .main { padding-bottom: 60px; }
    .search-wrap { min-width: 0; flex: 1; }
}
@media (max-width: 600px) {
    .view { padding: 14px; }
    .topbar { padding: 0 14px; }
    .toolbar { flex-direction: column; align-items: stretch; }
    .filter-tabs { overflow-x: auto; }
    .tbl { font-size: 12px; }
    .tbl thead th, .tbl tbody td { padding: 10px 12px; }
}

/* ============================================================
   ANIMATIONS & MICRO-INTERACTIONS
   ============================================================ */

/* Fade-up dla wchodzacych elementow */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: none; }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.94); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes shimmer {
    from { background-position: -200% 0; }
    to   { background-position: 200% 0; }
}

/* Stagger dla dzieci — cards, table rows */
.stagger > * {
    animation: fadeUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.stagger > *:nth-child(1) { animation-delay:   0ms; }
.stagger > *:nth-child(2) { animation-delay:  40ms; }
.stagger > *:nth-child(3) { animation-delay:  80ms; }
.stagger > *:nth-child(4) { animation-delay: 120ms; }
.stagger > *:nth-child(5) { animation-delay: 160ms; }
.stagger > *:nth-child(6) { animation-delay: 200ms; }
.stagger > *:nth-child(7) { animation-delay: 240ms; }
.stagger > *:nth-child(8) { animation-delay: 280ms; }

/* View switch — bardziej wyrazny slide-up */
.view.active {
    animation: fadeUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Stat card — hover glow + magnetic tilt via CSS */
.stat-card {
    position: relative;
    overflow: hidden;
    cursor: default;
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.stat-card::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 50%),
                rgba(59, 130, 246, 0.09) 0%, transparent 45%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.stat-card::after {
    content: '';
    position: absolute; inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, transparent, rgba(59, 130, 246, 0.35), transparent);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s;
    filter: blur(10px);
}
.stat-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -12px rgba(59, 130, 246, 0.25);
}
.stat-card:hover::before, .stat-card:hover::after { opacity: 1; }

/* Counter number tick anim */
.stat-big {
    display: inline-block;
    background: linear-gradient(135deg, var(--text) 0%, var(--accent-hi) 100%);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.stat-card:hover .stat-big { transform: translateY(-1px); }

/* Chart bars — grow from bottom */
#chart .bar {
    animation: barGrow 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
    transform-origin: bottom;
}
@keyframes barGrow {
    from { transform: scaleY(0); }
    to   { transform: scaleY(1); }
}
#chart .bar {
    fill: url(#barGrad);
}

/* Sidebar item — left accent bar slide in on hover/active */
.side-item {
    transition: transform 0.15s ease, color 0.15s, background 0.15s;
}
.side-item::before {
    content: '';
    position: absolute; left: -12px; top: 50%;
    width: 3px; height: 0;
    background: linear-gradient(180deg, var(--accent), var(--accent-2));
    border-radius: 0 3px 3px 0;
    transform: translateY(-50%);
    transition: height 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 12px var(--accent-glow);
}
.side-item.active::before { height: 60%; }
.side-item:hover:not(.active) { transform: translateX(3px); }
.side-item:hover:not(.active)::before { height: 30%; opacity: 0.6; }

/* Row hover — subtle slide + accent border-left */
.tbl tbody tr {
    transition: background 0.15s, box-shadow 0.15s;
    position: relative;
}
.tbl tbody tr:hover {
    background: rgba(59, 130, 246, 0.04);
    box-shadow: inset 3px 0 0 var(--accent);
}

/* Primary button — shine sweep on hover */
.btn.primary {
    position: relative;
    overflow: hidden;
}
.btn.primary::before {
    content: '';
    position: absolute; top: 0; bottom: 0; left: -100%;
    width: 60%;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.25) 50%, transparent 100%);
    transition: left 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}
.btn.primary:hover::before { left: 130%; }
.btn.primary:hover { transform: translateY(-1px); }

/* Icon button — soft rotate on click */
.icon-btn { transition: color 0.15s, background 0.15s, transform 0.15s; }
.icon-btn:active { transform: scale(0.9); }
.icon-btn[data-user-hwid]:hover svg { animation: spin360 0.8s ease; }
@keyframes spin360 { to { transform: rotate(360deg); } }

/* Badge subtle pulse when 'accent' (Lifetime marker) */
.badge.accent {
    background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(37,99,235,0.15));
    border-color: rgba(59, 130, 246, 0.35);
    color: var(--accent-hi);
}
.badge.accent::before {
    content: '★ ';
    color: var(--accent-hi);
    font-size: 9px;
}

/* Toast bounce entrance */
@keyframes toastIn {
    0%   { opacity: 0; transform: translateX(30px) scale(0.9); }
    60%  { opacity: 1; transform: translateX(-4px) scale(1.02); }
    100% { opacity: 1; transform: translateX(0) scale(1); }
}

/* Filter tabs — active pill smoothly moves */
.filter-tabs button {
    transition: color 0.2s, background 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s;
}
.filter-tabs button.active {
    box-shadow: 0 3px 12px -3px var(--accent-glow);
}

/* Modal backdrop smoother */
.modal-backdrop { animation: fadeIn 0.2s ease; }

/* Search wrap — subtle glow when focused */
.search-wrap:focus-within {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12), 0 4px 20px -8px var(--accent-glow);
}

/* Brand mark — subtle pulse (once on load) */
.brand-mark {
    animation: brandPop 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes brandPop {
    0%   { transform: scale(0.85); opacity: 0; }
    60%  { transform: scale(1.08); opacity: 1; }
    100% { transform: scale(1); }
}

/* Gate card entrance */
.gate-card {
    animation: gateIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes gateIn {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to   { opacity: 1; transform: none; }
}

/* Panel entrance */
.panel { animation: fadeUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) both; }

/* Skeleton shimmer helper */
.skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.6s ease-in-out infinite;
    border-radius: 4px;
    color: transparent !important;
}

/* Third blob dla wiekszej glebi tla */
.blob-3 { width: 380px; height: 380px; background: #1e40af; top: 40%; left: 45%; opacity: 0.28; animation: b3 38s ease-in-out infinite; }
@keyframes b3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-60px, 40px) scale(1.15); } }

/* ============================================================
   PLAN CHIPS (filtr po planie)
   ============================================================ */
.plan-chips-row {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 14px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
    flex-wrap: wrap;
    animation: fadeUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.plan-chips-label {
    font-size: 11px;
    color: var(--text-mute);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding-right: 6px;
    border-right: 1px solid var(--border);
    margin-right: 4px;
}
.plan-chip {
    padding: 5px 11px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-mute);
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-hi);
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex; align-items: center; gap: 6px;
    transition: color 0.15s, background 0.15s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.15s, box-shadow 0.2s, transform 0.15s;
    white-space: nowrap;
    line-height: 1;
}
.plan-chip:hover {
    color: var(--text);
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(59, 130, 246, 0.05);
    transform: translateY(-1px);
}
.plan-chip.active {
    color: white;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border-color: transparent;
    box-shadow: 0 4px 14px -3px var(--accent-glow);
    transform: translateY(-1px);
}
.plan-chip-count {
    font: 700 10px/1 'JetBrains Mono', Consolas, monospace;
    padding: 3px 6px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 4px;
    color: inherit;
    min-width: 20px;
    text-align: center;
}
.plan-chip:not(.active) .plan-chip-count {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-dim);
}

/* ============================================================
   BREAKDOWN PANEL (rozklad kluczy per plan)
   ============================================================ */
.breakdown-panel { margin-bottom: 20px; }
.breakdown-body { padding: 0; }
.breakdown-grid {
    display: grid;
    grid-template-columns: minmax(140px, 1.4fr) repeat(5, minmax(70px, 1fr));
    gap: 0;
}
.breakdown-head, .breakdown-row { display: contents; }
.breakdown-cell {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    display: flex; align-items: center;
    transition: background 0.15s;
}
.breakdown-row:hover .breakdown-cell { background: rgba(59, 130, 246, 0.04); }
.breakdown-row:last-child .breakdown-cell { border-bottom: 0; }
.breakdown-head .breakdown-cell {
    font-size: 10px;
    color: var(--text-mute);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    background: rgba(255, 255, 255, 0.015);
    border-bottom: 1px solid var(--border);
}
.breakdown-cell.num {
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-weight: 600;
    color: var(--text-mute);
    font-size: 13px;
    justify-content: flex-start;
}
.breakdown-cell.num.hi    { color: var(--accent-hi); }
.breakdown-cell.num.ok    { color: #86efac; }
.breakdown-cell.num.warn  { color: #fcd34d; }
.breakdown-cell.num.err   { color: #fca5a5; }
.breakdown-cell.num.dim   { color: var(--text-dim); }
.breakdown-cell.plan-name { font-weight: 600; color: var(--text); }
.breakdown-cell.plan-name .plan-dot {
    width: 8px; height: 8px; border-radius: 50%;
    margin-right: 10px;
    background: var(--accent);
    box-shadow: 0 0 8px currentColor;
}

/* ============================================================
   QUICK PLAN PRESETS (w modalu generatora)
   ============================================================ */
.quick-plans {
    display: flex; gap: 6px; flex-wrap: wrap;
    margin-bottom: 14px;
}
.qp-btn {
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-mute);
    background: var(--bg-2);
    border: 1px solid var(--border-hi);
    border-radius: 6px;
    transition: all 0.15s;
    letter-spacing: 0.2px;
}
.qp-btn:hover {
    color: var(--text);
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(59, 130, 246, 0.06);
}
.qp-btn.active {
    color: white;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border-color: transparent;
    box-shadow: 0 4px 14px -3px var(--accent-glow);
}

/* ============================================================
   VERIFY OWNER PANEL (Settings)
   ============================================================ */
.verify-body { padding: 18px; }
.verify-lead {
    color: var(--text-mute);
    font-size: 13px;
    line-height: 1.65;
    margin-bottom: 18px;
    padding: 12px 14px;
    background: rgba(245, 158, 11, 0.05);
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--warn);
}
.verify-lead b { color: #fcd34d; }
.verify-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
    margin-bottom: 22px;
}
.verify-tier {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: border-color 0.2s, background 0.2s;
}
.verify-tier:hover {
    border-color: rgba(59, 130, 246, 0.25);
    background: rgba(59, 130, 246, 0.02);
}
.tier-head {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.015);
}
.tier-num {
    width: 24px; height: 24px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: white;
    font-weight: 800;
    font-size: 12px;
    border-radius: 6px;
    box-shadow: 0 4px 12px -4px var(--accent-glow);
}
.tier-name { font-weight: 700; font-size: 13px; flex: 1; }
.tier-status {
    font: 700 10px/1 'JetBrains Mono', monospace;
    padding: 3px 7px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.tier-status.ok   { background: rgba(34, 197, 94, 0.12);  color: #86efac; border: 1px solid rgba(34, 197, 94, 0.25); }
.tier-status.warn { background: rgba(245, 158, 11, 0.12); color: #fcd34d; border: 1px solid rgba(245, 158, 11, 0.25); }
.tier-status.dim  { background: rgba(255, 255, 255, 0.04); color: var(--text-mute); border: 1px solid var(--border-hi); }
.verify-tier ul {
    padding: 12px 14px;
    display: flex; flex-direction: column; gap: 8px;
    flex: 1;
}
.verify-tier li {
    font-size: 12.5px;
    color: var(--text-mute);
    line-height: 1.55;
    padding-left: 14px;
    position: relative;
}
.verify-tier li::before {
    content: '';
    position: absolute;
    left: 0; top: 8px;
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--accent);
}
.verify-tier li b { color: var(--text); font-weight: 600; }
.verify-config {
    padding: 16px;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}
.verify-config h4 {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-mute);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 14px;
}

/* ============================================================
   CLIENT PAGES — register / login / panel additions
   ============================================================ */

/* ============ Auth forms container (login <-> register toggle) ============ */
.auth-forms {
    position: relative;
}
.auth-form {
    display: none;
    animation: authFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.auth-form.active {
    display: block;
}
.auth-form.leaving {
    display: block;
    animation: authFadeOut 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes authFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
}
@keyframes authFadeOut {
    to { opacity: 0; transform: translateY(-8px); }
}

/* Footer link w gate */
.gate-footer {
    text-align: center;
    font-size: 12.5px;
    color: var(--text-mute);
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.gate-link {
    color: var(--accent-hi);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s, text-shadow 0.15s;
}
.gate-link:hover {
    color: #dbeafe;
    text-shadow: 0 0 12px var(--accent-glow);
}

/* Password strength meter */
.pass-strength {
    margin-top: 6px;
    display: flex; align-items: center; gap: 10px;
    font-size: 11px;
    color: var(--text-mute);
}
.pass-bar {
    flex: 1; height: 3px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    overflow: hidden;
}
.pass-fill {
    height: 100%; width: 0%;
    background: #ef4444;
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
    border-radius: 999px;
    box-shadow: 0 0 8px currentColor;
}
#pass-label {
    font: 700 10px/1 'JetBrains Mono', Consolas, monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 60px;
    text-align: right;
}

/* ============================================================
   CLIENT PANEL — new minimal layout (nav + account card)
   ============================================================ */
.client-panel {
    position: relative;
    z-index: 5;
    min-height: 100vh;
    display: flex; flex-direction: column;
}

/* ============ HEADER NAV ============ */
.cp-nav {
    background: rgba(13, 13, 20, 0.72);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0;
    z-index: 10;
}
.cp-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 40px;
    padding: 14px 32px;
    height: 64px;
}

.cp-nav-logo {
    display: grid; place-items: center;
    width: 34px; height: 34px;
    text-decoration: none;
    transition: transform 0.2s;
}
.cp-nav-logo:hover { transform: scale(1.05); }
.cp-nav-logo svg {
    width: 34px; height: 34px;
    filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.5));
}
.cp-nav-logo svg circle {
    animation: dotPulse 2s ease-in-out infinite;
    transform-origin: center;
    transform-box: fill-box;
}

.cp-nav-links {
    display: flex; align-items: center; justify-content: center;
    gap: 6px;
}
.cp-nav-link {
    position: relative;
    padding: 10px 16px;
    color: var(--text-mute);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: color 0.2s, background 0.2s;
}
.cp-nav-link:hover {
    color: var(--text);
    background: rgba(255,255,255,0.03);
}
.cp-nav-link.active {
    color: var(--accent-hi);
}
.cp-nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -14px;
    left: 20%; right: 20%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    box-shadow: 0 0 10px var(--accent-glow);
    animation: fadeIn 0.3s ease;
}

.cp-nav-user {
    display: flex; align-items: center;
}
.cp-avatar-btn {
    width: 38px; height: 38px;
    display: grid; place-items: center;
    background: var(--bg-2);
    border: 1px solid var(--border-hi);
    border-radius: var(--radius-sm);
    color: var(--text-mute);
    transition: color 0.15s, background 0.15s, border-color 0.15s, transform 0.15s;
}
.cp-avatar-btn svg { width: 18px; height: 18px; }
.cp-avatar-btn:hover {
    color: var(--accent-hi);
    background: var(--bg-3);
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
}

/* ============ MAIN ============ */
.cp-main {
    flex: 1;
    padding: 40px 32px 60px;
    overflow-y: auto;
}
.cp-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex; flex-direction: column;
    gap: 24px;
}

/* Welcome */
.cp-welcome {
    padding: 8px 0 14px;
    animation: fadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.cp-welcome-title {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.8px;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--accent-hi) 0%, #93c5fd 40%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.cp-welcome-name {
    background: linear-gradient(135deg, #dbeafe 0%, #60a5fa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ============ CARD ============ */
.cp-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    animation: fadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.1s;
    transition: border-color 0.2s, box-shadow 0.25s;
}
.cp-card:hover {
    border-color: rgba(59, 130, 246, 0.2);
    box-shadow: 0 12px 40px -20px rgba(59, 130, 246, 0.15);
}
.cp-card-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    gap: 20px;
}
.cp-card-head h3 {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.1px;
    margin-bottom: 4px;
}
.cp-card-sub {
    font-size: 12.5px;
    color: var(--text-dim);
    margin: 0;
}
.cp-card-body {
    padding: 24px;
    min-height: 100px;
    background: radial-gradient(circle at 30% 50%, rgba(59, 130, 246, 0.03) 0%, transparent 60%);
    display: flex; flex-direction: column;
    gap: 18px;
}

/* Info rows */
.cp-info-row {
    display: flex; flex-direction: column;
    gap: 6px;
}
.cp-info-label {
    font: 700 10px/1 'JetBrains Mono', Consolas, monospace;
    color: var(--text-dim);
    letter-spacing: 1.2px;
    text-transform: uppercase;
}
.cp-info-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.1px;
}
.cp-info-value.mono {
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-size: 15px;
    color: var(--accent-hi);
    letter-spacing: 0.5px;
}

/* Slim card variant */
.cp-card-slim .cp-card-head {
    padding: 16px 24px;
    border-bottom: 0;
}

@media (max-width: 700px) {
    .cp-nav-inner {
        grid-template-columns: auto 1fr auto;
        gap: 20px;
        padding: 12px 16px;
    }
    .cp-nav-link { padding: 8px 10px; font-size: 13px; }
    .cp-nav-link.active::after { bottom: -12px; }
    .cp-main { padding: 24px 16px 40px; }
    .cp-welcome-title { font-size: 26px; }
    .cp-card-head { flex-direction: column; align-items: flex-start; }
}

/* Fallback for OLD topbar/stats layout (kept for graceful degradation) */
.cp-topbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 32px;
    background: rgba(13, 13, 20, 0.72);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0;
    z-index: 10;
}
.cp-brand {
    display: flex; align-items: center; gap: 12px;
}
.cp-brand-logo {
    width: 36px; height: 36px;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.5));
}
.cp-brand-logo circle {
    animation: dotPulse 2s ease-in-out infinite;
    transform-origin: center;
    transform-box: fill-box;
}
.cp-brand-text { display: flex; flex-direction: column; gap: 2px; }
.cp-brand-title {
    font-size: 15px; font-weight: 800;
    letter-spacing: -0.3px;
    line-height: 1;
}
.cp-brand-title span {
    font-weight: 500; color: var(--text-mute);
    margin-left: 3px;
}
.cp-brand-sub {
    font: 600 10px/1 'JetBrains Mono', Consolas, monospace;
    color: var(--text-dim);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.cp-user {
    display: flex; align-items: center; gap: 12px;
}
.cp-user-info {
    text-align: right;
    display: flex; flex-direction: column; gap: 2px;
}
.cp-user-name { font-size: 13px; font-weight: 600; }
.cp-user-role {
    font: 700 10px/1 'JetBrains Mono', Consolas, monospace;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Main */
.cp-main {
    flex: 1;
    padding: 32px 24px;
    overflow-y: auto;
}
.cp-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex; flex-direction: column; gap: 20px;
}

/* Welcome */
.cp-welcome { padding: 4px 0 12px; }
.cp-welcome h1 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin-bottom: 6px;
}
.cp-welcome-name {
    background: linear-gradient(135deg, var(--accent-hi) 0%, #dbeafe 100%);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
}
.cp-welcome-sub {
    color: var(--text-mute);
    font-size: 14px;
}

/* Stats grid */
.cp-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
}
.cp-stat-card {
    display: flex; gap: 14px;
    padding: 18px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.25s;
    position: relative;
    overflow: hidden;
}
.cp-stat-card::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(59, 130, 246, 0.08) 0%, transparent 45%);
    opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.cp-stat-card:hover {
    border-color: rgba(59, 130, 246, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -12px rgba(59, 130, 246, 0.2);
}
.cp-stat-card:hover::before { opacity: 1; }

.cp-stat-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(37, 99, 235, 0.08));
    border: 1px solid rgba(96, 165, 250, 0.25);
    color: var(--accent-hi);
    flex-shrink: 0;
}
.cp-stat-icon svg { width: 18px; height: 18px; }
.cp-stat-icon.warn   { background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(180, 100, 0, 0.08)); border-color: rgba(252, 211, 77, 0.25); color: #fcd34d; }
.cp-stat-icon.ok     { background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(20, 130, 60, 0.08)); border-color: rgba(134, 239, 172, 0.25); color: #86efac; }
.cp-stat-icon.info   { background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(37, 99, 235, 0.08)); border-color: rgba(147, 197, 253, 0.25); color: #93c5fd; }
.cp-stat-icon.accent { background: linear-gradient(135deg, var(--accent), var(--accent-2)); border: 0; color: white; box-shadow: 0 4px 12px -4px var(--accent-glow); }

.cp-stat-body { flex: 1; min-width: 0; }
.cp-stat-label {
    font-size: 11px;
    color: var(--text-mute);
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.cp-stat-value {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.3px;
    line-height: 1.2;
}
.cp-stat-value .cp-stat-of {
    color: var(--text-dim);
    font-weight: 500;
    font-size: 14px;
}
.cp-stat-hint {
    font-size: 11px;
    color: var(--text-dim);
    margin-top: 3px;
}

/* Two column row */
.cp-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
@media (max-width: 900px) {
    .cp-row { grid-template-columns: 1fr; }
}

/* Panel (reused for actions/activity) */
.cp-panel {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    animation: fadeUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.cp-panel-head {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,0.015);
}
.cp-panel-head h3 { font-size: 13px; font-weight: 600; letter-spacing: 0.1px; }
.cp-panel-body { padding: 8px; }

/* Actions */
.cp-action {
    display: flex; align-items: center; gap: 14px;
    padding: 12px 14px;
    width: 100%;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text);
    font-family: inherit;
    font-size: 13px;
    text-align: left;
    transition: background 0.15s, transform 0.15s;
    margin-bottom: 4px;
}
.cp-action:last-child { margin-bottom: 0; }
.cp-action:hover {
    background: rgba(59, 130, 246, 0.06);
    transform: translateX(3px);
}
.cp-action-icon {
    width: 36px; height: 36px;
    border-radius: 8px;
    display: grid; place-items: center;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-hi);
    color: var(--accent-hi);
    flex-shrink: 0;
    transition: background 0.15s, border-color 0.15s;
}
.cp-action-icon svg { width: 16px; height: 16px; }
.cp-action-icon.warn { color: #fcd34d; border-color: rgba(252, 211, 77, 0.25); background: rgba(245, 158, 11, 0.06); }
.cp-action:hover .cp-action-icon {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.4);
}
.cp-action-text { flex: 1; min-width: 0; }
.cp-action-title { font-weight: 600; font-size: 13px; }
.cp-action-sub { font-size: 11px; color: var(--text-dim); margin-top: 2px; }
.cp-action-arrow {
    width: 14px; height: 14px;
    color: var(--text-dim);
    transition: transform 0.2s, color 0.2s;
}
.cp-action:hover .cp-action-arrow {
    color: var(--accent-hi);
    transform: translateX(3px);
}

/* Activity feed */
.cp-activity { padding: 0; }
.cp-activity li {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    padding: 12px 14px;
    align-items: center;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}
.cp-activity li:last-child { border-bottom: 0; }
.cp-act-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}
.cp-act-dot.ok  { background: var(--ok); }
.cp-act-dot.err { background: var(--danger); }
.cp-act-dot.warn { background: var(--warn); }
.cp-act-msg { color: var(--text); }
.cp-act-time {
    font: 500 11px/1 'JetBrains Mono', Consolas, monospace;
    color: var(--text-dim);
}
.cp-activity-empty {
    justify-content: center !important;
    color: var(--text-dim) !important;
    padding: 28px !important;
    display: block !important;
    text-align: center;
    font-style: italic;
}

/* Detail grid */
.cp-detail-grid {
    padding: 6px 14px;
}
.cp-detail-row {
    display: flex; justify-content: space-between; align-items: center;
    gap: 20px;
    padding: 12px 4px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}
.cp-detail-row:last-child { border-bottom: 0; }
.cp-detail-row > span:first-child {
    color: var(--text-mute);
    font-size: 12px;
    font-weight: 500;
}
.cp-detail-row > span:last-child {
    color: var(--text);
    font-weight: 600;
}

/* Magnetic glow on stat cards (JS sets --mx/--my) */
.cp-stat-card {
    --mx: 50%; --my: 50%;
}

/* Responsive topbar */
@media (max-width: 600px) {
    .cp-topbar { padding: 12px 16px; }
    .cp-main   { padding: 20px 14px; }
    .cp-welcome h1 { font-size: 22px; }
    .cp-user-info { display: none; }
}

/* ============================================================
   REDUCED MOTION — respect user setting
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
