/* ============================================================
   wacha.net shared design tokens
   Included by index.php and chat.php so both pages share one
   palette, radius scale and button language.
   ============================================================ */
:root {
    /* Brand */
    --wacha-orange: #f16329;
    --wacha-orange-hover: #ff7a3d;
    --wacha-orange-deep: #d9521c;
    --wacha-orange-glow: rgba(241, 99, 41, 0.35);

    /* Neutral surfaces: lifted slightly off pure black so layers separate */
    --bg: #09090b;
    --bg-deep: var(--bg);
    --surface: #111114;
    --surface-2: #17171b;
    --surface-3: #1e1e23;
    --surface-accent: var(--surface-2);

    /* Hairlines and glass */
    --line: rgba(255, 255, 255, 0.07);
    --line-strong: rgba(255, 255, 255, 0.12);
    --glass: rgba(255, 255, 255, 0.05);

    /* Text */
    --text-main: #f4f4f5;
    --text-dim: #a1a1aa;
    --text-faint: #71717a;

    /* Status */
    --live: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;

    /* Shape and depth */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-glow: 0 0 0 1px rgba(241, 99, 41, 0.45), 0 10px 30px rgba(241, 99, 41, 0.18);

    /* Motion */
    --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
    --dur: 180ms;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* --- Buttons ------------------------------------------------ */
.btn-accent,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
                color var(--dur) var(--ease), transform var(--dur) var(--ease),
                box-shadow var(--dur) var(--ease);
}

.btn-accent {
    background: var(--wacha-orange);
    color: #fff;
    box-shadow: 0 4px 14px rgba(241, 99, 41, 0.25);
}
.btn-accent:hover {
    background: var(--wacha-orange-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(241, 99, 41, 0.35);
}
.btn-accent:active { transform: translateY(0); }

.btn-ghost {
    background: var(--glass);
    border-color: var(--line-strong);
    color: var(--text-main);
}
.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateY(-1px);
}

.btn-accent:focus-visible,
.btn-ghost:focus-visible {
    outline: 2px solid var(--wacha-orange);
    outline-offset: 2px;
}

/* --- Chips -------------------------------------------------- */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--glass);
    border: 1px solid var(--line);
    color: var(--text-dim);
}
.chip i { font-size: 0.6rem; }
.chip-live {
    background: rgba(241, 99, 41, 0.14);
    border-color: rgba(241, 99, 41, 0.35);
    color: #ffb08a;
}
.chip-live::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--wacha-orange);
    box-shadow: 0 0 0 0 var(--wacha-orange-glow);
    animation: chip-pulse 1.8s var(--ease) infinite;
}
.chip-warn { color: #fcd34d; border-color: rgba(245, 158, 11, 0.35); background: rgba(245, 158, 11, 0.12); }
.chip-danger { color: #fca5a5; border-color: rgba(239, 68, 68, 0.35); background: rgba(239, 68, 68, 0.12); }

@keyframes chip-pulse {
    0%   { box-shadow: 0 0 0 0 var(--wacha-orange-glow); }
    70%  { box-shadow: 0 0 0 6px rgba(241, 99, 41, 0); }
    100% { box-shadow: 0 0 0 0 rgba(241, 99, 41, 0); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
