/* ============================================
   AvaChord HQ – Dashboard Styles
   Brand: AvaChord (B2B) | HitVatar (B2C)
   Light Theme – Warm & Friendly
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&family=Space+Grotesk:wght@500;600;700&display=swap');

/* --- CSS Custom Properties (Design Tokens) --- */
/* Theme: Studio-Console (Mission Control / Mixer-Look)
   Komplementaere Neon-Akzente: Cyan + Pink. Glassmorphism-Cards. */
:root {
    /* AvaChord Brand Colors */
    --color-primary: #8b6dff;
    --color-primary-dark: #6a4ee0;
    --color-primary-light: #a48cff;
    --color-secondary: #00d9ff;
    --color-accent: #ff2d92;

    /* HitVatar Brand Colors */
    --color-hitvatar: #ff2d92;
    --color-hitvatar-glow: rgba(255, 45, 146, 0.25);

    /* Neon-Komplementaerpaar (Console-Look) */
    --neon-cyan: #00d9ff;
    --neon-pink: #ff2d92;
    --neon-amber: #ffb547;
    --neon-lime: #b8ff5c;

    /* Neutrals – Studio-Dark */
    --color-bg: #0a0e1a;
    --color-bg-deep: #060912;
    --color-surface: rgba(255, 255, 255, 0.04);
    --color-surface-elevated: rgba(255, 255, 255, 0.06);
    --color-surface-hover: rgba(255, 255, 255, 0.09);
    --color-text: #e6e8ec;
    --color-text-muted: #8a93a4;
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-strong: rgba(255, 255, 255, 0.16);

    /* Status Colors – Neon-tauglich auf dunkel */
    --color-success: #5cffaf;
    --color-warning: #ffb547;
    --color-error: #ff5c7a;
    --color-info: #00d9ff;

    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    /* Glow + Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.5);
    --shadow-glow-primary: 0 0 30px rgba(139, 109, 255, 0.35);
    --shadow-glow-hitvatar: 0 0 30px rgba(255, 45, 146, 0.30);
    --shadow-glow-cyan: 0 0 24px rgba(0, 217, 255, 0.45);
    --shadow-glow-pink: 0 0 24px rgba(255, 45, 146, 0.45);

    /* Transitions */
    --transition: 200ms ease;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background:
        radial-gradient(ellipse 80% 60% at 18% 0%, rgba(139, 109, 255, 0.10) 0%, transparent 60%),
        radial-gradient(ellipse 70% 60% at 92% 18%, rgba(255, 45, 146, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 60% 60% at 60% 100%, rgba(0, 217, 255, 0.06) 0%, transparent 60%),
        var(--color-bg-deep);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}
/* Subtile Grid-Texture als Studio-Mixer-Pattern */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
    background-size: 32px 32px;
    z-index: 0;
}
header nav, main { position: relative; z-index: 1; }

a { color: var(--neon-cyan); text-decoration: none; transition: color var(--transition); }
a:hover { color: #66e8ff; text-shadow: 0 0 12px rgba(0, 217, 255, 0.5); }

/* --- Navigation --- */
header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-xl);
    background: rgba(10, 14, 26, 0.7);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.brand {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--neon-cyan), var(--color-primary-light), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: filter var(--transition);
}
.brand:hover { filter: brightness(1.2) drop-shadow(0 0 8px rgba(0, 217, 255, 0.5)); }

.label-badge {
    font-size: 0.65rem;
    padding: 4px 12px;
    background: linear-gradient(135deg, rgba(255, 45, 146, 0.20), rgba(139, 109, 255, 0.18));
    border: 1px solid rgba(255, 45, 146, 0.40);
    border-radius: var(--radius-full);
    color: var(--neon-pink);
    font-weight: 600;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    box-shadow: 0 0 12px rgba(255, 45, 146, 0.18);
}

.nav-links {
    display: flex;
    gap: var(--space-sm);
}
.nav-link {
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: all var(--transition);
    border: 1px solid transparent;
}
.nav-link:hover {
    color: var(--neon-cyan);
    background: rgba(0, 217, 255, 0.08);
    border-color: rgba(0, 217, 255, 0.25);
}

/* --- Main Content --- */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-xl);
}

/* --- Page Header --- */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-xl);
}

.page-header h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    background: linear-gradient(120deg, var(--neon-cyan) 0%, var(--color-primary-light) 50%, var(--neon-pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 24px rgba(139, 109, 255, 0.25));
}
/* Eyebrow-Akzentlinie unter h1 -- Mixer-Slider-Asthetik */
.page-header h1::after {
    content: '';
    display: block;
    width: 64px;
    height: 3px;
    margin-top: 8px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink));
    border-radius: 2px;
    box-shadow: 0 0 12px rgba(0, 217, 255, 0.4);
}

.subtitle {
    color: var(--color-text-muted);
    margin-top: var(--space-xs);
}

.back-link {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    display: inline-block;
    margin-bottom: var(--space-sm);
    transition: color var(--transition);
}
.back-link:hover { color: var(--color-primary-light); }

.header-meta {
    display: flex;
    gap: var(--space-md);
    align-items: center;
    margin-top: var(--space-sm);
    flex-wrap: wrap;
}

.meta-text {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

/* --- Stats Grid --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.stat-card {
    position: relative;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    text-align: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all var(--transition);
    overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
    opacity: 0;
    transition: opacity var(--transition);
}
.stat-card:hover {
    border-color: var(--color-border-strong);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), var(--shadow-glow-primary);
}
.stat-card:hover::before { opacity: 1; }

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--color-primary-light);
    text-shadow: 0 0 24px rgba(139, 109, 255, 0.4);
    letter-spacing: -0.02em;
}
.stat-active .stat-number { color: var(--neon-amber); text-shadow: 0 0 24px rgba(255, 181, 71, 0.45); }
.stat-done .stat-number { color: var(--color-success); text-shadow: 0 0 24px rgba(92, 255, 175, 0.45); }

.stat-label {
    display: block;
    font-size: 0.78rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-top: var(--space-xs);
    font-weight: 600;
}

/* --- Cards (Glassmorphism) --- */
.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-lg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.card h2 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
    color: var(--color-text);
    letter-spacing: -0.01em;
}

.card:hover { border-color: var(--color-border-strong); box-shadow: var(--shadow-md); }

/* --- Create Campaign Form --- */
.create-card {
    border-color: rgba(139, 109, 255, 0.3);
    background: linear-gradient(135deg, rgba(139, 109, 255, 0.08), rgba(0, 217, 255, 0.04));
    box-shadow: var(--shadow-glow-primary);
}

.create-form {
    display: flex;
    gap: var(--space-md);
}

/* --- Inputs (Studio-Console-Look: dark bg, neon focus-ring) --- */
.input-theme,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
textarea,
select {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font-family: var(--font-main);
    font-size: 0.95rem;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.input-theme {
    flex: 1;
    padding: var(--space-md);
}
.input-theme:focus,
input:focus,
textarea:focus,
select:focus {
    border-color: var(--neon-cyan);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.15);
}
.input-theme::placeholder, input::placeholder, textarea::placeholder {
    color: var(--color-text-muted);
}
select option { background: var(--color-bg); color: var(--color-text); }

/* --- Buttons (Neon-Glow on Hover) --- */
.btn {
    position: relative;
    padding: var(--space-sm) var(--space-lg);
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), #5e3fe0);
    color: white;
    box-shadow: 0 4px 14px rgba(139, 109, 255, 0.25);
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(139, 109, 255, 0.45), 0 0 28px rgba(139, 109, 255, 0.30);
    filter: brightness(1.08);
}

.btn-secondary {
    background: var(--color-surface-elevated);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.btn-secondary:hover {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    box-shadow: 0 0 16px rgba(0, 217, 255, 0.20);
}

.btn-accent {
    background: linear-gradient(135deg, var(--color-hitvatar), var(--color-accent));
    color: white;
    box-shadow: 0 4px 14px rgba(255, 45, 146, 0.25);
}
.btn-accent:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 45, 146, 0.45), var(--shadow-glow-hitvatar);
    filter: brightness(1.08);
}

.btn-sm { padding: var(--space-xs) var(--space-md); font-size: 0.8rem; }

.btn-vote {
    width: 100%;
    padding: var(--space-md);
    background: var(--color-surface-elevated);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    margin-top: var(--space-md);
}
.btn-vote:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}
.btn-winner {
    background: linear-gradient(135deg, var(--color-hitvatar), var(--color-accent));
    border-color: var(--color-hitvatar);
    color: white;
}

/* --- Campaign List --- */
.campaign-list { display: flex; flex-direction: column; gap: var(--space-sm); }

.campaign-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    color: var(--color-text);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.campaign-row:hover {
    border-color: rgba(139, 109, 255, 0.4);
    background: rgba(139, 109, 255, 0.06);
    transform: translateX(4px);
    box-shadow: 0 0 24px rgba(139, 109, 255, 0.10);
}

.campaign-info { display: flex; align-items: center; gap: var(--space-md); }
.campaign-id { color: var(--color-text-muted); font-size: 0.85rem; font-weight: 600; }
.campaign-theme { font-weight: 600; }
.campaign-meta { display: flex; align-items: center; gap: var(--space-md); }
.campaign-date { color: var(--color-text-muted); font-size: 0.8rem; }

/* --- Status Badges --- */
.status-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.status-pending_generation { background: rgba(0, 217, 255, 0.12); color: var(--neon-cyan); border: 1px solid rgba(0, 217, 255, 0.25); }
.status-waiting_for_human { background: rgba(255, 181, 71, 0.12); color: var(--neon-amber); border: 1px solid rgba(255, 181, 71, 0.25); }
.status-voting { background: rgba(139, 109, 255, 0.14); color: var(--color-primary-light); border: 1px solid rgba(139, 109, 255, 0.30); }
.status-pr_generating { background: rgba(255, 45, 146, 0.14); color: var(--neon-pink); border: 1px solid rgba(255, 45, 146, 0.30); }
.status-pr_completed { background: rgba(92, 255, 175, 0.12); color: var(--color-success); border: 1px solid rgba(92, 255, 175, 0.25); }
.status-pr_pending_approval { background: rgba(255, 181, 71, 0.16); color: var(--neon-amber); border: 1px solid rgba(255, 181, 71, 0.35); }

/* --- Drafts Grid --- */
.drafts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.draft-card { position: relative; }
.draft-winner {
    border-color: var(--color-hitvatar) !important;
    box-shadow: var(--shadow-glow-hitvatar);
}

.draft-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.draft-number {
    font-weight: 700;
    color: var(--color-primary-light);
}

.winner-badge {
    background: linear-gradient(135deg, var(--color-hitvatar), var(--color-accent));
    color: white;
    padding: 2px 10px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* --- Field Groups --- */
.field-group {
    margin-bottom: var(--space-md);
}

.field-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-xs);
}

.field-group label small {
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
}

/* --- Copy Fields --- */
.copy-field {
    position: relative;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: var(--space-md);
    padding-right: 70px;
}

.prompt-text, .lyrics-text, .avatar-text, .pr-text {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--color-text);
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0;
    background: none;
}

.prompt-text { color: var(--color-primary); }

.btn-copy {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    padding: 4px 10px;
    background: var(--color-surface-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text-muted);
    font-family: var(--font-main);
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}
.btn-copy:hover {
    border-color: var(--color-primary);
    color: var(--color-primary-light);
}
.btn-copy.copied {
    background: var(--color-success);
    border-color: var(--color-success);
    color: white;
}

/* --- Media Inputs --- */
.media-input form {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.input-media {
    padding: var(--space-sm) var(--space-md);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font-family: var(--font-main);
    font-size: 0.85rem;
    outline: none;
    transition: border-color var(--transition);
}
.input-media:focus { border-color: var(--color-primary); }
.input-media::placeholder { color: var(--color-text-muted); }

/* --- Audio Player --- */
.audio-player {
    width: 100%;
    border-radius: var(--radius-sm);
    outline: none;
}

/* --- Avatar Preview --- */
.avatar-preview {
    max-width: 100%;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

/* --- Voting --- */
.voting-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.voting-card { text-align: center; }

.voting-avatar {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    border: 2px solid var(--color-border);
    transition: border-color var(--transition);
}
.voting-card:hover .voting-avatar { border-color: var(--color-primary); }

.avatar-placeholder {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-surface-elevated);
    border-radius: var(--radius-md);
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.votes-count {
    color: var(--color-text-muted);
    font-size: 0.8rem;
}

.prompt-text-sm {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-secondary);
    display: block;
    margin: var(--space-sm) 0;
}

.no-media {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    padding: var(--space-md);
}

/* --- PR Card --- */
.pr-card {
    border-color: var(--color-hitvatar);
    background: linear-gradient(135deg, var(--color-surface), rgba(232, 67, 147, 0.03));
}

.pr-card h2 {
    background: linear-gradient(135deg, var(--color-hitvatar), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pr-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

/* --- Status Card (Loading) --- */
.status-card {
    text-align: center;
    padding: var(--space-2xl);
}

.status-card h3 {
    margin: var(--space-md) 0 var(--space-sm);
    font-weight: 600;
}

.status-card p {
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
}

/* --- Spinner --- */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- Empty State --- */
.empty-state {
    text-align: center;
    padding: var(--space-2xl);
    color: var(--color-text-muted);
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: var(--space-xl);
    color: var(--color-text-muted);
    font-size: 0.8rem;
    border-top: 1px solid var(--color-border);
    margin-top: var(--space-2xl);
}

/* --- Login Page --- */
.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(145deg, #F5F3FF 0%, #EDE7F6 50%, #FCE4EC 100%);
}

.login-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
}

/* Animated Background Orbs */
.login-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.25;
    animation: orb-float 12s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}
.login-orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(108, 92, 231, 0.4);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}
.login-orb-2 {
    width: 350px;
    height: 350px;
    background: rgba(232, 67, 147, 0.3);
    bottom: -80px;
    right: -80px;
    animation-delay: -4s;
}
.login-orb-3 {
    width: 250px;
    height: 250px;
    background: rgba(0, 181, 173, 0.25);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -8s;
    opacity: 0.15;
}

@keyframes orb-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -40px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(15px, 30px) scale(1.02); }
}

/* Login Card */
.login-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl) var(--space-xl);
    box-shadow: 0 8px 40px rgba(108, 92, 231, 0.1), var(--shadow-glow-primary);
    animation: card-appear 0.6s ease-out;
}

@keyframes card-appear {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.login-logo {
    text-align: center;
    margin-bottom: var(--space-sm);
}

.login-logo-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: var(--space-sm);
    animation: logo-pulse 3s ease-in-out infinite;
}

@keyframes logo-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.login-title {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--color-primary), var(--color-hitvatar));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-badge {
    display: inline-block;
    font-size: 0.65rem;
    padding: 3px 10px;
    background: linear-gradient(135deg, var(--color-hitvatar), var(--color-accent));
    border-radius: var(--radius-full);
    color: white;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-top: var(--space-xs);
}

.login-subtitle {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin-bottom: var(--space-xl);
}

/* Login Error */
.login-error {
    background: rgba(229, 57, 53, 0.08);
    border: 1px solid rgba(229, 57, 53, 0.25);
    border-radius: var(--radius-sm);
    padding: var(--space-sm) var(--space-md);
    color: var(--color-error);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

/* Login Form */
.login-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.login-field {
    position: relative;
}

.login-field label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-xs);
}

.login-field input {
    width: 100%;
    padding: var(--space-md);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font-family: var(--font-main);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.login-field input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.12);
}

.login-field input::placeholder {
    color: var(--color-text-muted);
}

.login-field-line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-hitvatar));
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.login-field input:focus ~ .login-field-line {
    transform: scaleX(1);
}

.login-btn {
    width: 100%;
    padding: var(--space-md);
    font-size: 1rem;
    justify-content: center;
    margin-top: var(--space-xs);
}

.login-hint {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.75rem;
    margin-top: var(--space-lg);
    opacity: 0.6;
}

.login-footer {
    position: relative;
    z-index: 1;
    color: var(--color-text-muted);
    font-size: 0.75rem;
    margin-top: var(--space-2xl);
    opacity: 0.5;
}

/* --- Role Badge & Nav Auth --- */
.nav-auth {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.role-badge {
    font-size: 0.65rem;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.role-admin {
    background: linear-gradient(135deg, rgba(139, 109, 255, 0.20), rgba(139, 109, 255, 0.08));
    color: var(--color-primary-light);
    border: 1px solid rgba(139, 109, 255, 0.40);
    box-shadow: 0 0 12px rgba(139, 109, 255, 0.25);
}

.role-user {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.20), rgba(0, 217, 255, 0.08));
    color: var(--neon-cyan);
    border: 1px solid rgba(0, 217, 255, 0.40);
    box-shadow: 0 0 12px rgba(0, 217, 255, 0.25);
}

.btn-logout {
    padding: 5px 14px;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text-muted);
    font-family: var(--font-main);
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-logout:hover {
    border-color: var(--color-error);
    color: var(--color-error);
    background: rgba(255, 92, 122, 0.08);
    box-shadow: 0 0 14px rgba(255, 92, 122, 0.20);
}

/* --- PR Approval Card --- */
.approval-card {
    border-color: var(--color-warning);
    background: linear-gradient(135deg, var(--color-surface), rgba(240, 160, 48, 0.05));
}
.approval-card h3 {
    color: var(--color-warning);
    font-size: 1.1rem;
    margin-bottom: var(--space-md);
}
.approval-info {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}
.approval-stat {
    text-align: center;
    padding: var(--space-md) var(--space-lg);
    background: var(--color-surface-elevated);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}
.approval-stat .value {
    font-size: 1.3rem;
    font-weight: 800;
    display: block;
    font-family: var(--font-mono);
}
.approval-stat .label {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.approval-actions {
    display: flex;
    gap: var(--space-md);
    align-items: center;
}
.approval-note {
    color: var(--color-text-muted);
    font-size: 0.8rem;
    font-style: italic;
    margin-top: var(--space-sm);
}
.btn-approve {
    background: linear-gradient(135deg, var(--color-success), #00C9A7);
    color: white;
    padding: var(--space-sm) var(--space-xl);
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}
.btn-approve:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 168, 132, 0.25);
}

/* --- Agent Edit Modal --- */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(26, 26, 46, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fade-in 0.2s ease;
}
.modal-overlay.active {
    display: flex;
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 16px 60px rgba(108, 92, 231, 0.15);
    animation: modal-slide-up 0.3s ease;
}

@keyframes modal-slide-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--color-border);
}
.modal-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-primary), var(--color-hitvatar));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: color var(--transition);
}
.modal-close:hover {
    color: var(--color-error);
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}
.modal-field {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}
.modal-field label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.modal-field input,
.modal-field textarea,
.modal-field select {
    padding: var(--space-sm) var(--space-md);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font-family: var(--font-main);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    resize: vertical;
}
.modal-field input:focus,
.modal-field textarea:focus,
.modal-field select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}
.modal-field textarea {
    min-height: 80px;
    font-size: 0.85rem;
}
.modal-field .temp-row {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}
.modal-field .temp-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: var(--color-border);
    outline: none;
    padding: 0;
    border: none;
    box-shadow: none;
}
.modal-field .temp-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--color-primary);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(108, 92, 231, 0.3);
}
.modal-field .temp-value {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
    min-width: 40px;
    text-align: center;
}
.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-md);
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border);
}

/* Agent card edit button */
.agent-edit-btn {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 4px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    z-index: 5;
    opacity: 0;
}
.agent-card:hover .agent-edit-btn {
    opacity: 1;
}
.agent-edit-btn:hover {
    color: var(--color-primary);
    background: var(--color-surface-elevated);
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    background: var(--color-success);
    color: white;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(0, 168, 132, 0.3);
    animation: toast-slide 0.3s ease;
    z-index: 2000;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-success { background: var(--color-success); }
.toast-error {
    background: #dc3545;
    box-shadow: 0 4px 16px rgba(220, 53, 69, 0.3);
}
.toast-warning {
    background: #f0ad4e;
    box-shadow: 0 4px 16px rgba(240, 173, 78, 0.3);
    color: #2b2400;
}

@keyframes toast-slide {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ─── Echtzeit Activity Feed ─── */
.activity-card {
    background:
        linear-gradient(135deg, rgba(0, 217, 255, 0.04), rgba(255, 45, 146, 0.03)),
        rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-2xl);
    overflow: hidden;
    box-shadow: 0 0 32px rgba(0, 217, 255, 0.05);
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-xl);
    border-bottom: 1px solid var(--color-border);
    background: rgba(0, 0, 0, 0.25);
}

.activity-header h2 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin: 0;
    letter-spacing: -0.01em;
}

.activity-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-text-muted);
    transition: background 0.3s ease;
}
.activity-live-dot.connected {
    background: var(--color-success);
    box-shadow: 0 0 8px rgba(92, 255, 175, 0.5);
    animation: live-pulse 1.5s ease-in-out infinite;
}
.activity-live-dot.disconnected {
    background: var(--color-error);
}

@keyframes live-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(92, 255, 175, 0.55), 0 0 8px rgba(92, 255, 175, 0.5); }
    50% { box-shadow: 0 0 0 6px rgba(92, 255, 175, 0), 0 0 12px rgba(92, 255, 175, 0.7); }
}

.activity-status-text {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.activity-feed {
    max-height: 320px;
    overflow-y: auto;
    scroll-behavior: smooth;
    padding: var(--space-sm) 0;
}

/* Scrollbar Styling */
.activity-feed::-webkit-scrollbar {
    width: 4px;
}
.activity-feed::-webkit-scrollbar-track {
    background: transparent;
}
.activity-feed::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 2px;
}
.activity-feed::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-muted);
}

.activity-entry {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: 6px var(--space-xl);
    transition: background 0.2s ease;
    animation: entry-slide-in 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.activity-entry:last-child { border-bottom: none; }
.activity-entry:hover {
    background: rgba(0, 217, 255, 0.04);
}
/* Letzter (= neuester) Eintrag glüht */
.activity-feed > .activity-entry:first-child .activity-message {
    color: var(--neon-cyan);
    text-shadow: 0 0 8px rgba(0, 217, 255, 0.3);
}

@keyframes entry-slide-in {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.activity-time {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--color-text-muted);
    min-width: 60px;
    flex-shrink: 0;
    line-height: 1.55;
    padding-top: 1px;
}

.activity-icon {
    font-size: 1.05rem;
    flex-shrink: 0;
    line-height: 1.5;
}

.activity-message {
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--color-text);
    flex: 1;
    font-weight: 500;
}

/* Agent-Color coding (Komplementaer-Akzente) */
.activity-entry[data-agent="ceo"] .activity-message { color: var(--color-primary-light); }
.activity-entry[data-agent="producer"] .activity-message { color: var(--neon-cyan); }
.activity-entry[data-agent="art_director"] .activity-message { color: var(--neon-pink); }
.activity-entry[data-agent="pr_agency"] .activity-message { color: var(--neon-amber); }
.activity-entry[data-agent="content_manager"] .activity-message { color: var(--neon-lime); }
.activity-entry[data-agent="system"] .activity-message { color: var(--color-text-muted); font-style: italic; }

.activity-empty {
    text-align: center;
    padding: var(--space-xl);
    color: var(--color-text-muted);
    font-size: 0.85rem;
    font-style: italic;
}

/* ─── WebSocket Connection Indicator (Header) ─── */
.ws-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.6rem;
    color: var(--color-text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ws-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-text-muted);
    transition: background 0.3s ease;
}
.ws-dot.connected {
    background: var(--color-success);
    box-shadow: 0 0 6px rgba(92, 255, 175, 0.6), 0 0 12px rgba(92, 255, 175, 0.4);
    animation: ws-pulse 2s ease-in-out infinite;
}
@keyframes ws-pulse {
    0%, 100% { box-shadow: 0 0 6px rgba(92, 255, 175, 0.5), 0 0 12px rgba(92, 255, 175, 0.3); }
    50% { box-shadow: 0 0 8px rgba(92, 255, 175, 0.8), 0 0 18px rgba(92, 255, 175, 0.6); }
}
.ws-dot.disconnected {
    background: var(--color-error);
}
.ws-dot.connecting {
    background: var(--color-warning);
    animation: ws-connecting 1s ease-in-out infinite;
}

@keyframes ws-connecting {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ─── Campaign Live Progress (replaces spinner) ─── */
.live-progress {
    text-align: center;
    padding: var(--space-xl) var(--space-2xl);
}

.live-progress-bar {
    width: 100%;
    max-width: 400px;
    height: 4px;
    background: var(--color-border);
    border-radius: 2px;
    overflow: hidden;
    margin: var(--space-md) auto;
}

.live-progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-hitvatar));
    border-radius: 2px;
    animation: progress-indeterminate 2s ease-in-out infinite;
}

@keyframes progress-indeterminate {
    0% { width: 0%; margin-left: 0; }
    50% { width: 60%; margin-left: 20%; }
    100% { width: 0%; margin-left: 100%; }
}

.live-progress h3 {
    margin-bottom: var(--space-sm);
    font-weight: 600;
}

.live-progress-status {
    color: var(--color-text);
    font-size: 1.0rem;
    font-weight: 500;
    margin-bottom: var(--space-sm);
    min-height: 1.4em;
}

.live-progress-mini-feed {
    max-height: 180px;
    overflow-y: auto;
    margin-top: var(--space-md);
    padding: var(--space-md);
    background:
        linear-gradient(180deg, rgba(0, 217, 255, 0.025) 0%, rgba(0, 0, 0, 0.20) 100%),
        rgba(0, 0, 0, 0.40);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    text-align: left;
    line-height: 1.5;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.4);
}

.live-progress-mini-feed .mini-entry {
    padding: 5px 0;
    color: var(--color-text);
    font-family: var(--font-mono);
    font-size: 0.88rem;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.06);
}
.live-progress-mini-feed .mini-entry:last-child {
    border-bottom: none;
}
/* LCD-Cursor-Effekt: Letzter Eintrag glüht subtil */
.live-progress-mini-feed .mini-entry:last-child {
    color: var(--neon-cyan);
    text-shadow: 0 0 8px rgba(0, 217, 255, 0.4);
}

/* ─── Phase Steps (Campaign Progress) ─── */
.phase-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    min-width: 140px;
    opacity: 0.5;
    transition: all 0.3s ease;
}
.phase-step.active {
    opacity: 1;
    border-color: var(--color-primary);
    background: rgba(108, 92, 231, 0.06);
}
.phase-step.done {
    opacity: 1;
    border-color: var(--color-success);
    background: rgba(0, 168, 132, 0.06);
}
.phase-icon {
    font-size: 1.2rem;
}
.phase-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-text);
}
.phase-status {
    font-size: 0.6rem;
    color: var(--color-text-muted);
    font-weight: 500;
}
.phase-step.active .phase-status {
    color: var(--color-primary);
}
.phase-step.done .phase-status {
    color: var(--color-success);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .stats-grid { grid-template-columns: 1fr; }
    .drafts-grid { grid-template-columns: 1fr; }
    .voting-grid { grid-template-columns: 1fr; }
    .pr-grid { grid-template-columns: 1fr; }
    .create-form { flex-direction: column; }
    .page-header { flex-direction: column; gap: var(--space-md); }
    main { padding: var(--space-md); }
    .approval-info { flex-direction: column; }
    .modal-card { width: 95%; padding: var(--space-lg); }
    .activity-entry { padding: var(--space-xs) var(--space-md); }
    .activity-feed { max-height: 250px; }
}

/* ─── AvaToast: Stack unten rechts, 8s auto, sticky-mit-X ────────── */
.ava-toast-container {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    z-index: 4000;
    display: flex;
    flex-direction: column-reverse;
    gap: var(--space-xs);
    pointer-events: none;
    max-width: 380px;
}
.ava-toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: 12px 14px;
    background: rgba(20, 24, 40, 0.92);
    color: var(--color-text);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06);
    border-left: 3px solid var(--color-primary);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    font-size: 0.92rem;
    line-height: 1.4;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.32s cubic-bezier(0.18, 0.89, 0.32, 1.28), opacity 0.25s ease;
}
.ava-toast.show { transform: translateX(0); opacity: 1; }
.ava-toast.hide { transform: translateX(120%); opacity: 0; }
.ava-toast-icon { flex-shrink: 0; font-size: 1.3rem; line-height: 1; padding-top: 1px; }
.ava-toast-body { flex: 1; min-width: 0; }
.ava-toast-title { font-weight: 700; margin-bottom: 2px; }
.ava-toast-msg { color: var(--color-text); word-wrap: break-word; }
.ava-toast-close {
    flex-shrink: 0;
    cursor: pointer;
    background: none;
    border: 0;
    padding: 0 4px;
    color: var(--color-text-muted);
    font-size: 1.2rem;
    line-height: 1;
    margin-top: -2px;
}
.ava-toast-close:hover { color: var(--color-text); }
.ava-toast.success { border-left-color: var(--color-success); box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06), 0 0 28px rgba(92, 255, 175, 0.25); }
.ava-toast.success .ava-toast-icon::before { content: '✅'; }
.ava-toast.error { border-left-color: var(--color-error); box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06), 0 0 28px rgba(255, 92, 122, 0.30); }
.ava-toast.error .ava-toast-icon::before { content: '⚠️'; }
.ava-toast.info { border-left-color: var(--neon-cyan); }
.ava-toast.info .ava-toast-icon::before { content: 'ℹ️'; }
.ava-toast.human .ava-toast-icon::before { content: '🙋'; }
.ava-toast.human {
    border-left-color: var(--neon-amber);
    background: linear-gradient(135deg, rgba(255, 181, 71, 0.15), rgba(20, 24, 40, 0.92) 60%);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 181, 71, 0.25), 0 0 32px rgba(255, 181, 71, 0.20);
}
.ava-toast.sticky::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25);
}
.ava-toast { position: relative; }

/* ─── Projekt-Headline (Dashboard) ────────────────────────── */
.project-headline-link {
    font-family: var(--font-display);
    color: var(--color-text);
    text-decoration: none;
    letter-spacing: -0.01em;
    transition: color var(--transition), text-shadow var(--transition);
}
.project-headline-link:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 12px rgba(0, 217, 255, 0.5);
}
.project-headline-link::after {
    content: ' ↗';
    font-size: 0.75em;
    opacity: 0.5;
    transition: opacity var(--transition), transform var(--transition);
    display: inline-block;
}
.project-headline-link:hover::after {
    opacity: 1;
    transform: translate(2px, -2px);
}
.project-public-link {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--neon-pink);
    text-decoration: none;
    padding: 4px 12px;
    border: 1px solid rgba(255, 45, 146, 0.30);
    border-radius: var(--radius-full);
    background: rgba(255, 45, 146, 0.06);
    transition: all var(--transition);
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.project-public-link:hover {
    background: rgba(255, 45, 146, 0.14);
    border-color: var(--neon-pink);
    color: #ff7ab8;
    box-shadow: 0 0 18px rgba(255, 45, 146, 0.30);
}
.lang-pill {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 9px;
    border-radius: var(--radius-full);
    background: rgba(184, 255, 92, 0.12);
    color: var(--neon-lime);
    border: 1px solid rgba(184, 255, 92, 0.30);
    letter-spacing: 0.10em;
    font-family: var(--font-mono);
}
