/* ══════════════════════════════════════════════════════════
   Bewerbercheck-Pro – Dark SaaS UI (OIS Branding 2026)
   ══════════════════════════════════════════════════════════ */

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

:root {
    --primary: #00f0b5;
    --primary-light: #33f5c7;
    --primary-dark: #00d4aa;
    --primary-glow: rgba(0, 240, 181, .15);
    --success: #00f0b5;
    --success-light: rgba(0, 240, 181, .1);
    --warning: #f59e0b;
    --warning-light: rgba(245, 158, 11, .12);
    --danger: #ef4444;
    --danger-light: rgba(239, 68, 68, .12);
    --bg-body: #0a1628;
    --bg-card: #0d1f3c;
    --bg-elevated: #122a4a;
    --gray-50: #0e1a2e;
    --gray-100: #142236;
    --gray-200: rgba(0, 240, 181, .12);
    --gray-300: rgba(0, 240, 181, .2);
    --gray-400: #5a7a90;
    --gray-500: #7a9ab0;
    --gray-600: #94b4c8;
    --gray-700: #b8d4e3;
    --gray-800: #d4e6f0;
    --gray-900: #ffffff;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-xs: 0 1px 2px rgba(0,0,0,.2);
    --shadow: 0 1px 3px rgba(0,0,0,.3), 0 1px 2px rgba(0,0,0,.2);
    --shadow-md: 0 4px 12px rgba(0,0,0,.3), 0 2px 4px rgba(0,0,0,.2);
    --shadow-lg: 0 12px 40px rgba(0,0,0,.4), 0 4px 12px rgba(0,0,0,.2);
    --shadow-glow: 0 0 0 1px rgba(0,240,181,.08), 0 4px 16px rgba(0,240,181,.1);
    --glow: 0 0 20px rgba(0, 240, 181, 0.3), 0 0 60px rgba(0, 240, 181, 0.1);
    --glass-bg: rgba(13, 31, 60, .7);
    --glass-border: rgba(0, 240, 181, .1);
    --transition: .2s cubic-bezier(.4,0,.2,1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    color: var(--gray-700);
    background: var(--bg-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-light); }

/* ── Layout ──────────────────────────────────────────────── */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── Navbar ──────────────────────────────────────────────── */
.navbar {
    background: var(--bg-card);
    border-bottom: 1px solid var(--gray-200);
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    height: 56px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand a,
.nav-brand-link {
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    text-decoration: none;
    letter-spacing: -.01em;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.nav-logo {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: .25rem;
}

.nav-links a {
    font-size: .85rem;
    color: var(--gray-500);
    padding: .4rem .75rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    font-weight: 500;
}
.nav-links a:hover { color: var(--primary); background: rgba(0,240,181,.06); }
.nav-links a.active { color: var(--primary); background: rgba(0,240,181,.1); }
.nav-link-subtle { opacity: .6; }
.nav-link-subtle:hover { opacity: 1; }

.nav-links .btn-primary {
    color: var(--bg-body) !important;
    opacity: 1;
    margin-left: .5rem;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .55rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: .875rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none !important;
    transition: all var(--transition);
    white-space: nowrap;
    letter-spacing: -.01em;
}

.btn-primary {
    background: var(--primary);
    color: var(--bg-body);
    border-color: var(--primary);
    box-shadow: 0 1px 2px rgba(0,240,181,.3), inset 0 1px 0 rgba(255,255,255,.1);
}
.btn-primary:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    box-shadow: var(--glow);
    transform: translateY(-1px);
    color: var(--bg-body);
}

.btn-outline {
    background: var(--bg-card);
    color: var(--gray-700);
    border-color: var(--gray-200);
    box-shadow: var(--shadow-xs);
}
.btn-outline:hover {
    background: var(--bg-elevated);
    border-color: var(--gray-300);
    color: var(--gray-800);
}

.btn-sm { padding: .35rem .75rem; font-size: .8rem; border-radius: 6px; }
.btn-lg { padding: .75rem 2rem; font-size: 1rem; border-radius: var(--radius); }
.btn-full { width: 100%; }

.btn-danger-outline {
    background: var(--bg-card);
    color: var(--danger);
    border-color: var(--danger-light);
}
.btn-danger-outline:hover {
    background: var(--danger-light);
    border-color: var(--danger);
}

/* ── Alerts ──────────────────────────────────────────────── */
.alerts { padding: 1rem 0 0; }
.alert {
    padding: .875rem 1.25rem;
    border-radius: var(--radius-sm);
    margin-bottom: .75rem;
    font-size: .875rem;
    font-weight: 500;
    border: 1px solid transparent;
    animation: slideDown .3s ease;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.alert-success { background: var(--success-light); color: var(--success); border-color: rgba(0,240,181,.15); }
.alert-danger { background: var(--danger-light); color: var(--danger); border-color: rgba(239,68,68,.15); }
.alert-warning { background: var(--warning-light); color: var(--warning); border-color: rgba(245,158,11,.15); }
.alert-info { background: rgba(0,240,181,.08); color: var(--primary); border-color: var(--primary-glow); }

/* ── Cards ───────────────────────────────────────────────── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow);
    transition: box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--gray-300);
}

/* ── Glass Card (for special sections) ───────────────────── */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

/* ── Page Header ─────────────────────────────────────────── */
.page-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 2rem 0 1.25rem;
    flex-wrap: wrap;
}
.page-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    flex: 1;
    letter-spacing: -.02em;
    color: var(--gray-900);
}

/* ── Auth Pages ──────────────────────────────────────────── */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 85vh;
    padding: 4rem 1rem;
    background: radial-gradient(ellipse at 50% 0%, rgba(0,240,181,.06) 0%, var(--bg-body) 70%);
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-lg);
}

.auth-logo {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: .25rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: .5rem;
}
.auth-logo-img {
    border-radius: 10px;
}
.auth-card h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: .25rem;
    letter-spacing: -.02em;
    color: var(--gray-900);
}
.auth-subtitle {
    color: var(--gray-500);
    font-size: .9rem;
    margin-bottom: 1.75rem;
}
.auth-footer {
    text-align: center;
    margin-top: 1rem;
    font-size: .875rem;
    color: var(--gray-500);
}

/* ── Forms ───────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: .4rem;
    color: var(--gray-700);
}
.form-control {
    width: 100%;
    padding: .65rem .875rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: .9rem;
    font-family: inherit;
    background: var(--bg-elevated);
    color: var(--gray-800);
    transition: all var(--transition);
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}
.form-control::placeholder {
    color: var(--gray-400);
}
textarea.form-control { resize: vertical; min-height: 100px; line-height: 1.7; }
.form-hint { font-size: .78rem; color: var(--gray-400); margin-top: .35rem; display: block; }

/* ── Dashboard Table ─────────────────────────────────────── */
.table-wrapper {
    overflow-x: auto;
    margin-top: .75rem;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
}
.applications-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
}
.applications-table th {
    background: var(--gray-50);
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--gray-500);
    padding: .75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}
.applications-table td {
    padding: .875rem 1rem;
    border-bottom: 1px solid var(--gray-100);
    font-size: .875rem;
    vertical-align: middle;
}
.application-row {
    transition: background var(--transition);
}
.application-row:hover { background: var(--bg-elevated); }
.application-row:last-child td { border-bottom: none; }
.name-cell { font-weight: 600; color: var(--gray-900); }
.date-cell { color: var(--gray-400); white-space: nowrap; font-size: .8rem; }

/* ── Score Badges ────────────────────────────────────────── */
.score-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .25rem .7rem;
    border-radius: 99px;
    font-size: .78rem;
    font-weight: 700;
    min-width: 54px;
    letter-spacing: -.01em;
}
.score-high { background: var(--success-light); color: var(--success); }
.score-mid { background: var(--warning-light); color: var(--warning); }
.score-low { background: var(--danger-light); color: var(--danger); }
.score-lg { font-size: 1rem; padding: .4rem 1.25rem; }

/* ── Skill Tags ──────────────────────────────────────────── */
.skill-tag {
    display: inline-block;
    background: var(--bg-elevated);
    color: var(--gray-600);
    padding: .2rem .55rem;
    border-radius: 6px;
    font-size: .75rem;
    font-weight: 500;
    margin: .1rem;
    transition: background var(--transition);
}
.skill-tag:hover { background: var(--gray-100); }
.skill-tag-lg { font-size: .82rem; padding: .3rem .7rem; }
.skill-more { background: var(--gray-100); color: var(--gray-500); }
.skills-container { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .5rem; }
.skills-cell { max-width: 260px; }

/* ── Settings ────────────────────────────────────────────── */
.settings-card {
    margin-bottom: 1.5rem;
}
.settings-card h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: .75rem;
    color: var(--gray-900);
    letter-spacing: -.01em;
}
.email-display-box {
    display: flex;
    align-items: center;
    gap: .75rem;
    background: var(--bg-elevated);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: .75rem 1rem;
    margin: .75rem 0;
}
.email-display-box code {
    flex: 1;
    font-size: .9rem;
    word-break: break-all;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    color: var(--primary);
    font-weight: 500;
}
.setup-steps p { margin-bottom: .75rem; font-size: .9rem; color: var(--gray-600); }
.setup-steps strong { color: var(--gray-800); }

/* ── Status Labels ───────────────────────────────────────── */
.status-active {
    color: var(--success);
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.status-trial {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.status-inactive {
    color: var(--danger);
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

/* ── Trial Banner ────────────────────────────────────────── */
.trial-banner {
    display: flex;
    align-items: center;
    gap: .75rem;
    background: rgba(0,240,181,.08);
    color: var(--primary);
    padding: .5rem 1rem;
    border-radius: 99px;
    font-size: .85rem;
    font-weight: 600;
    border: 1px solid rgba(0,240,181,.15);
}

/* ── Empty State ─────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    margin-top: 1rem;
    box-shadow: var(--shadow);
}
.empty-icon { font-size: 3.5rem; margin-bottom: 1.25rem; }
.empty-state h2 {
    font-size: 1.35rem;
    margin-bottom: .5rem;
    font-weight: 700;
    color: var(--gray-900);
    letter-spacing: -.02em;
}
.empty-state p { color: var(--gray-500); margin-bottom: 2rem; font-size: .95rem; }
.email-display { display: flex; align-items: center; justify-content: center; gap: .75rem; margin-bottom: 2rem; }

/* ── Detail Page ─────────────────────────────────────────── */
.score-card {
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary);
    background: linear-gradient(to right, rgba(0,240,181,.04), var(--bg-card));
}
.score-card h3 { font-size: .9rem; margin-bottom: .5rem; color: var(--gray-500); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
.detail-section { margin-bottom: 1.5rem; }
.detail-section h3 {
    font-size: .85rem;
    color: var(--gray-500);
    margin-bottom: .75rem;
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: .5rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-weight: 600;
}
.detail-list { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1.25rem; }
.detail-list dt { font-weight: 600; font-size: .85rem; color: var(--gray-500); white-space: nowrap; }
.detail-list dd { font-size: .9rem; color: var(--gray-800); }
.text-block {
    background: var(--bg-elevated);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    font-size: .875rem;
    white-space: pre-wrap;
    line-height: 1.8;
    color: var(--gray-700);
}
.original-text { margin-top: 1.5rem; }
.original-text summary {
    cursor: pointer;
    font-size: .875rem;
    color: var(--gray-500);
    padding: .5rem 0;
    font-weight: 500;
    transition: color var(--transition);
}
.original-text summary:hover { color: var(--gray-700); }
.original-text .text-block { margin-top: .75rem; }

/* ── Landing Page ────────────────────────────────────────── */
.hero {
    text-align: center;
    padding: 6rem 1rem 4rem;
    position: relative;
}
.hero::before {
    content: '';
    position: absolute;
    top: -56px;
    left: 0;
    right: 0;
    height: calc(100% + 56px);
    background: radial-gradient(ellipse at 50% 0%, rgba(0,240,181,.08) 0%, var(--bg-body) 70%);
    z-index: -1;
}
.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -.03em;
    color: var(--gray-900);
}
.highlight {
    background: linear-gradient(135deg, var(--primary), #00d4aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: 1.15rem;
    color: var(--gray-500);
    max-width: 560px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}
.hero-cta { display: flex; flex-direction: column; align-items: center; gap: .75rem; }
.hero-note { font-size: .8rem; color: var(--gray-400); font-weight: 500; }

.features { padding: 4rem 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 2rem 1.75rem;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    opacity: 0;
    transition: opacity var(--transition);
}
.feature-card:hover {
    box-shadow: var(--glow);
    transform: translateY(-2px);
    border-color: var(--gray-300);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon { font-size: 2.25rem; margin-bottom: 1rem; }
.feature-card h3 {
    font-size: 1.05rem;
    margin-bottom: .5rem;
    font-weight: 700;
    color: var(--gray-900);
    letter-spacing: -.01em;
}
.feature-card p { font-size: .9rem; color: var(--gray-500); line-height: 1.6; }
.feature-card code {
    background: var(--bg-elevated);
    padding: .15rem .45rem;
    border-radius: 4px;
    font-size: .8rem;
    color: var(--primary);
    font-weight: 500;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}

.how-it-works { padding: 4rem 0; }
.how-it-works h2 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--gray-900);
}
.steps { list-style: none; display: flex; flex-direction: column; gap: 1.5rem; }
.steps li {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 1.25rem;
    border-radius: var(--radius);
    transition: background var(--transition);
}
.steps li:hover { background: var(--bg-card); }
.step-number {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--primary);
    color: var(--bg-body);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .9rem;
    box-shadow: 0 0 20px rgba(0,240,181,.3);
}
.steps strong { display: block; margin-bottom: .25rem; color: var(--gray-900); font-weight: 700; }
.steps p { font-size: .9rem; color: var(--gray-500); margin: 0; line-height: 1.6; }

.pricing { padding: 4rem 0 5rem; }
.pricing h2 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--gray-900);
}
.pricing-card {
    max-width: 400px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 2px solid var(--primary-dark);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-glow);
    transition: all var(--transition);
}
.pricing-card:hover {
    box-shadow: var(--glow);
    transform: translateY(-4px);
}
.pricing-header {
    background: linear-gradient(135deg, #00f0b5, #00d4aa);
    color: var(--bg-body);
    padding: 2rem;
    text-align: center;
}
.pricing-header h3 { font-size: 1.25rem; margin-bottom: .5rem; font-weight: 600; opacity: .9; }
.price { font-size: 3rem; font-weight: 800; letter-spacing: -.03em; }
.price span { font-size: 1rem; font-weight: 400; opacity: .7; }
.pricing-features {
    list-style: none;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: .875rem;
}
.pricing-features li {
    font-size: .9rem;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: .5rem;
}
.pricing-features li::before {
    content: '';
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--success-light);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2300f0b5' viewBox='0 0 16 16'%3E%3Cpath d='M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}
.pricing-card .btn {
    margin: 0 2rem 2rem;
    width: calc(100% - 4rem);
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
    text-align: center;
    padding: 2.5rem 2rem;
    font-size: .8rem;
    color: var(--gray-400);
    margin-top: 3rem;
    border-top: 1px solid var(--gray-200);
}
.footer a { color: var(--gray-400); }
.footer a:hover { color: var(--primary); }

/* ── Error Table in Dashboard ────────────────────────────── */
.alert .applications-table {
    background: transparent;
    box-shadow: none;
}
.alert .applications-table th {
    background: transparent;
    border-color: rgba(245,158,11,.15);
}
.alert .applications-table td {
    border-color: rgba(245,158,11,.1);
}

/* ── Copy Feedback ───────────────────────────────────────── */
.btn-copied {
    background: var(--success-light) !important;
    color: var(--success) !important;
    border-color: var(--success) !important;
}

/* ── Toast Notifications ────────────────────────────────── */
.toast-container {
    position: fixed;
    top: 72px;
    right: 1.5rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    max-width: 420px;
}
.toast {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .875rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: .875rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    animation: toastIn .3s ease;
    background: var(--bg-card);
    border: 1px solid var(--gray-200);
}
.toast-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    font-weight: 700;
    flex-shrink: 0;
}
.toast-success .toast-icon { background: var(--success-light); color: var(--success); }
.toast-danger .toast-icon { background: var(--danger-light); color: var(--danger); }
.toast-warning .toast-icon { background: var(--warning-light); color: var(--warning); }
.toast-info .toast-icon { background: rgba(0,240,181,.08); color: var(--primary); }
.toast-message { flex: 1; color: var(--gray-800); }
.toast-close {
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0 .25rem;
    line-height: 1;
}
.toast-close:hover { color: var(--gray-600); }
@keyframes toastIn {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes toastOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(40px); }
}

/* ── Loading Spinner ────────────────────────────────────── */
.btn-loading {
    opacity: .7;
    pointer-events: none;
}
.spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .6s linear infinite;
    display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Stats Bar ──────────────────────────────────────────── */
.stats-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.stat-item {
    background: var(--bg-card);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: .875rem 1.25rem;
    flex: 1;
    min-width: 120px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xs);
}
.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -.02em;
    line-height: 1.2;
}
.stat-highlight { color: var(--success); }
.stat-warn .stat-value { color: var(--warning); }
.stat-label {
    font-size: .78rem;
    color: var(--gray-500);
    font-weight: 500;
    margin-top: .15rem;
}

/* ── Clickable Rows ─────────────────────────────────────── */
.clickable-row {
    cursor: pointer;
}
.clickable-row:hover {
    background: var(--bg-elevated);
}
.clickable-row:active {
    background: var(--gray-100);
}
.email-cell {
    color: var(--gray-600);
    font-size: .82rem;
}

/* ── Error List (Dashboard) ─────────────────────────────── */
.error-list {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin-top: .75rem;
}
.error-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .5rem .75rem;
    background: rgba(13,31,60,.5);
    border-radius: 6px;
    font-size: .85rem;
}
.error-date {
    font-weight: 600;
    white-space: nowrap;
    color: var(--gray-700);
    min-width: 80px;
}
.error-msg {
    flex: 1;
    color: var(--gray-600);
    font-size: .82rem;
}

/* ── Onboarding Card (Empty State) ──────────────────────── */
.onboarding-card {
    background: var(--bg-card);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    margin-top: 1rem;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.onboarding-header {
    text-align: center;
    padding: 3rem 2rem 1.5rem;
}
.onboarding-header h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--gray-900);
    letter-spacing: -.02em;
    margin-bottom: .35rem;
}
.onboarding-header p { color: var(--gray-500); font-size: .95rem; }
.onboarding-steps {
    padding: 0 2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.onboarding-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-100);
    transition: all var(--transition);
}
.onboarding-step:hover { border-color: var(--gray-200); }
.step-done { background: var(--bg-elevated); }
.step-pending { background: var(--bg-card); border-color: var(--gray-200); }
.step-check {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: .1rem;
}
.step-done .step-check {
    background: var(--success);
    color: var(--bg-body);
}
.step-pending .step-check {
    background: var(--bg-elevated);
    color: var(--gray-600);
}
.step-content strong {
    display: block;
    font-size: .9rem;
    color: var(--gray-900);
    margin-bottom: .15rem;
}
.step-content p {
    font-size: .82rem;
    color: var(--gray-500);
    margin: 0;
}
.onboarding-footer {
    text-align: center;
    padding: 1.5rem 2rem 2.5rem;
    border-top: 1px solid var(--gray-100);
    margin-top: .5rem;
}
.onboarding-footer code {
    font-size: 1rem;
    color: var(--primary);
    font-weight: 600;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}

/* ── Quick Actions (Detail Page) ────────────────────────── */
.quick-actions {
    display: flex;
    gap: .5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.text-muted { color: var(--gray-400); }

/* ── Keyboard Hint ──────────────────────────────────────── */
.keyboard-hint {
    text-align: center;
    padding: 2rem 0;
    font-size: .82rem;
    color: var(--gray-400);
}
kbd {
    background: var(--bg-elevated);
    border: 1px solid var(--gray-200);
    border-radius: 4px;
    padding: .15rem .4rem;
    font-size: .75rem;
    font-family: inherit;
    color: var(--gray-600);
}

/* ── Setup Progress (Settings) ──────────────────────────── */
.setup-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: .75rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-xs);
}
.progress-bar {
    flex: 1;
    height: 6px;
    background: var(--bg-elevated);
    border-radius: 99px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 99px;
    transition: width .5s ease;
}
.progress-label {
    font-size: .82rem;
    font-weight: 600;
    color: var(--gray-600);
    white-space: nowrap;
}

/* ── Settings Header ────────────────────────────────────── */
.settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .75rem;
}
.settings-header h2 { margin-bottom: 0; }
.check-done {
    font-size: .78rem;
    font-weight: 600;
    color: var(--success);
    background: var(--success-light);
    padding: .2rem .6rem;
    border-radius: 99px;
}
.check-pending {
    font-size: .78rem;
    font-weight: 600;
    color: var(--gray-500);
    background: var(--bg-elevated);
    padding: .2rem .6rem;
    border-radius: 99px;
}
.label-badge {
    color: var(--success);
    font-weight: 600;
    font-size: .85em;
}

/* ── Mobile Hamburger ───────────────────────────────────── */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: .5rem;
    flex-direction: column;
    gap: 4px;
}
.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--gray-400);
    border-radius: 2px;
    transition: all var(--transition);
}

/* ── Trust Bar (Landing) ────────────────────────────────── */
.trust-bar {
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 1rem;
}
.trust-item {
    text-align: center;
}
.trust-item strong {
    display: block;
    font-size: .9rem;
    color: var(--gray-800);
    font-weight: 700;
}
.trust-item span {
    font-size: .8rem;
    color: var(--gray-400);
}

/* ── Hero Badge (Landing) ───────────────────────────────── */
.hero-badge {
    display: inline-block;
    background: var(--primary-glow);
    color: var(--primary);
    font-size: .82rem;
    font-weight: 600;
    padding: .35rem 1rem;
    border-radius: 99px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0,240,181,.15);
}

/* ── FAQ (Landing) ──────────────────────────────────────── */
.faq {
    padding: 3rem 0 4rem;
    max-width: 680px;
    margin: 0 auto;
}
.faq h2 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    text-align: center;
}
.faq-list {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: all var(--transition);
}
.faq-item[open] {
    box-shadow: var(--shadow-md);
    border-color: var(--gray-300);
}
.faq-item summary {
    padding: 1rem 1.25rem;
    cursor: pointer;
    font-weight: 600;
    font-size: .95rem;
    color: var(--gray-800);
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    font-size: 1.2rem;
    color: var(--gray-400);
    transition: transform var(--transition);
}
.faq-item[open] summary::after {
    content: '−';
}
.faq-item p {
    padding: 0 1.25rem 1.25rem;
    font-size: .9rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .hero { padding: 4rem 1rem 3rem; }
    .feature-grid { grid-template-columns: 1fr; }
    .detail-grid { grid-template-columns: 1fr; }
    .hide-mobile { display: none; }
    .stats-bar { gap: .5rem; }
    .stat-item { min-width: 0; padding: .75rem 1rem; }
    .stat-value { font-size: 1.25rem; }
    .trust-bar { gap: 1.5rem; flex-wrap: wrap; }

    /* Mobile Nav */
    .nav-toggle { display: flex; }
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: .25rem;
        padding: .5rem 0;
    }
    .nav-links.nav-open { display: flex; }
    .nav-links a { width: 100%; text-align: center; padding: .6rem; }
    .navbar {
        flex-wrap: wrap;
        padding: .75rem 1rem;
        height: auto;
    }

    .trial-banner { border-radius: var(--radius-sm); }
    .auth-card { padding: 2rem 1.5rem; }
    .pricing-card { margin: 0 1rem; }
    .page-header { padding: 1.5rem 0 1rem; }
    .page-header h1 { font-size: 1.25rem; }
    .onboarding-steps { padding: 0 1rem 1rem; }
    .onboarding-header { padding: 2rem 1rem 1rem; }
    .onboarding-footer { padding: 1rem 1rem 2rem; }

    .toast-container {
        right: .75rem;
        left: .75rem;
        max-width: none;
    }

    .error-item { flex-wrap: wrap; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.6rem; }
    .container { padding: 0 1rem; }
    .card { padding: 1.25rem; }
    .quick-actions { flex-direction: column; }
    .quick-actions .btn { width: 100%; }
}

/* ── Cookie Banner ────────────────────────────────────── */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    color: var(--gray-700);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    z-index: 1000;
    font-size: .85rem;
    box-shadow: 0 -4px 20px rgba(0,0,0,.3);
    border-top: 1px solid var(--gray-200);
}
.cookie-banner p { margin: 0; }

/* ── Error Pages (404, 500, 403) ──────────────────────── */
.error-page {
    text-align: center;
    padding: 6rem 2rem;
}
.error-code {
    font-size: 6rem;
    font-weight: 800;
    color: var(--gray-100);
    line-height: 1;
    letter-spacing: -.04em;
}
.error-page h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-800);
    margin: 1rem 0 .5rem;
}
.error-page p {
    color: var(--gray-500);
    margin-bottom: 2rem;
}

/* ── Pagination ────────────────────────────────────────── */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem 0;
}
.pagination-info {
    font-size: .85rem;
    color: var(--gray-500);
    font-weight: 500;
}

/* ── Danger Zone (Settings) ────────────────────────────── */
.danger-zone {
    border-color: var(--danger);
    border-style: dashed;
}
.danger-zone h2 {
    color: var(--danger);
}
.btn-danger {
    background: var(--danger);
    color: #fff;
    border: none;
    padding: .6rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: .875rem;
    cursor: pointer;
    transition: all var(--transition);
}
.btn-danger:hover {
    background: #dc2626;
}

/* ── Testimonials (Landing) ────────────────────────────── */
/* ── Legal Pages (Impressum, Datenschutz) ─────────────── */
.legal-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 0 4rem;
}
.legal-page h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 2rem;
    letter-spacing: -.02em;
}
.legal-page h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gray-800);
    margin: 2rem 0 .75rem;
}
.legal-page p, .legal-page li {
    font-size: .92rem;
    color: var(--gray-600);
    line-height: 1.8;
}
.legal-page ul {
    padding-left: 1.5rem;
    margin: .5rem 0;
}
.legal-page li {
    margin-bottom: .5rem;
}
