/* ══════════════════════════════════════════════════════════════════════════════
   Fundradar – Stylesheet
   ══════════════════════════════════════════════════════════════════════════════ */

:root {
    --bg: #fafaf8;
    --white: #ffffff;
    --ink: #1a1d24;
    --text: #3a3d45;
    --dim: #6b6e78;
    --muted: #a0a3ab;
    --line: #e6e7eb;
    --accent: #e95420;
    --accent-soft: #fef0ea;
    --accent-hover: #d44a1a;
    --success: #1b7a4a;
    --success-soft: #edf7f1;
    --warning: #d97706;
    --warning-soft: #fef3cd;
    --error: #dc2626;
    --error-soft: #fee2e2;
    --info: #2563eb;
    --info-soft: #dbeafe;

    --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --radius: 11px;
    --radius-sm: 8px;
    --radius-lg: 16px;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.1);

    --nav-height: 64px;
    --bottom-nav-height: 60px;
}

/* ── Reset ─────────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    min-height: 100dvh;
}

a { color: var(--accent); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent-hover); }

img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4, h5, h6 {
    color: var(--ink);
    font-weight: 700;
    line-height: 1.25;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ── Layout ────────────────────────────────────────────────────────────────── */

.container {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-content {
    padding-top: calc(var(--nav-height) + 24px);
    padding-bottom: 48px;
    min-height: 100dvh;
}

@media (max-width: 768px) {
    .main-content {
        padding-top: calc(56px + 16px);
        padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom) + 24px);
    }
}

.grid-2, .grid-3, .grid-4 {
    display: grid;
    gap: 20px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ── Top Navigation ────────────────────────────────────────────────────────── */

.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(250, 250, 248, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    z-index: 100;
    transition: box-shadow 0.3s;
}

.top-nav.scrolled {
    box-shadow: var(--shadow-sm);
}

.top-nav-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--ink);
    text-decoration: none;
    flex-shrink: 0;
}
.nav-brand:hover { color: var(--ink); }
.nav-brand svg { color: var(--accent); flex-shrink: 0; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    color: var(--dim);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s, background 0.15s;
    white-space: nowrap;
    position: relative;
}
.nav-links a:hover {
    color: var(--ink);
    background: rgba(0,0,0,0.04);
}
.nav-links a.active {
    color: var(--accent);
}
.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 14px;
    right: 14px;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* User dropdown (desktop) */
.user-menu {
    position: relative;
}

.user-menu-trigger {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: var(--white);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.user-menu-trigger:hover,
.user-menu-trigger:focus {
    border-color: var(--accent);
    outline: none;
}

.user-menu-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    padding: 6px;
    z-index: 200;
}

.user-menu:focus-within .user-menu-dropdown {
    display: block;
}

.user-menu-dropdown a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.15s;
}
.user-menu-dropdown a:hover {
    background: var(--accent-soft);
    color: var(--accent);
}

.user-menu-dropdown .divider {
    height: 1px;
    background: var(--line);
    margin: 4px 0;
}

/* ── Mobile: compact top header ────────────────────────────────────────────── */

@media (max-width: 768px) {
    .top-nav {
        height: 56px;
    }
    .nav-links {
        display: none;
    }
    .nav-brand span {
        font-size: 1rem;
    }
}

/* ── Bottom Navigation (mobile only) ──────────────────────────────────────── */

.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--white);
    border-top: 1px solid var(--line);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    z-index: 100;
}

.bottom-nav-inner {
    display: flex;
    height: 100%;
}

.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    flex: 1;
    text-decoration: none;
    color: var(--muted);
    font-size: 0.65rem;
    font-weight: 600;
    transition: color 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.bottom-nav a.active {
    color: var(--accent);
}
.bottom-nav a svg {
    width: 22px;
    height: 22px;
}

@media (max-width: 768px) {
    .bottom-nav { display: block; }
    .bottom-nav-inner { display: flex; }
}

/* ── Mobile user avatar ────────────────────────────────────────────────────── */

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: box-shadow 0.15s;
}
.user-avatar:hover { box-shadow: 0 0 0 2px var(--accent); }

/* ── Footer ────────────────────────────────────────────────────────────────── */

.site-footer {
    border-top: 1px solid var(--line);
    padding: 32px 0;
    color: var(--dim);
    font-size: 0.85rem;
}
.footer-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-links {
    display: flex;
    gap: 20px;
    list-style: none;
}
.footer-links a { color: var(--dim); }
.footer-links a:hover { color: var(--accent); }

@media (max-width: 768px) {
    .site-footer { display: none; }
}

/* ── Buttons ───────────────────────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    line-height: 1.4;
    white-space: nowrap;
}
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
}
.btn-primary:hover:not(:disabled) {
    background: var(--accent-hover);
    color: var(--white);
}

.btn-secondary {
    background: var(--ink);
    color: var(--white);
}
.btn-secondary:hover:not(:disabled) {
    background: #2a2d34;
    color: var(--white);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--line);
}
.btn-ghost:hover:not(:disabled) {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-danger {
    background: var(--error);
    color: var(--white);
}
.btn-danger:hover:not(:disabled) {
    background: #b91c1c;
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}
.btn-outline:hover:not(:disabled) {
    background: var(--accent);
    color: #fff;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.82rem;
}
.btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
}
.btn-block {
    width: 100%;
}

/* ── Forms ─────────────────────────────────────────────────────────────────── */

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ink);
}
.form-label .required {
    color: var(--error);
    margin-left: 2px;
}

.form-hint {
    display: block;
    margin-top: 4px;
    font-size: 0.8rem;
    color: var(--dim);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 0.9rem;
    color: var(--ink);
    background: var(--white);
    transition: border-color 0.15s, box-shadow 0.15s;
    appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--muted);
}
.form-input.error,
.form-select.error {
    border-color: var(--error);
}
.form-input.error:focus,
.form-select.error:focus {
    box-shadow: 0 0 0 3px var(--error-soft);
}

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b6e78' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    accent-color: var(--accent);
    cursor: pointer;
}

/* Toggle switch */
.toggle {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}
.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}
.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--line);
    border-radius: 24px;
    cursor: pointer;
    transition: background 0.2s;
}
.toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    background: var(--white);
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: var(--shadow-sm);
}
.toggle input:checked + .toggle-slider {
    background: var(--accent);
}
.toggle input:checked + .toggle-slider::before {
    transform: translateX(20px);
}

/* File upload */
.file-upload {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    border: 2px dashed var(--line);
    border-radius: var(--radius);
    cursor: pointer;
    color: var(--dim);
    font-size: 0.875rem;
    transition: border-color 0.15s, background 0.15s;
}
.file-upload:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
}

/* ── Cards ─────────────────────────────────────────────────────────────────── */

.card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.card:hover {
    box-shadow: var(--shadow-md);
}
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
}

/* KPI cards */
.kpi-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
}
.kpi-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--dim);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}
.kpi-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.2;
}
.kpi-sub {
    font-size: 0.8rem;
    color: var(--dim);
    margin-top: 4px;
}

/* ── Alerts ────────────────────────────────────────────────────────────────── */

.alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.5;
}
.alert svg { flex-shrink: 0; margin-top: 1px; }

.alert-success {
    background: var(--success-soft);
    color: var(--success);
    border: 1px solid rgba(27, 122, 74, 0.2);
}
.alert-warning {
    background: var(--warning-soft);
    color: #92400e;
    border: 1px solid rgba(217, 119, 6, 0.2);
}
.alert-error {
    background: var(--error-soft);
    color: var(--error);
    border: 1px solid rgba(220, 38, 38, 0.2);
}
.alert-info {
    background: var(--info-soft);
    color: var(--info);
    border: 1px solid rgba(37, 99, 235, 0.2);
}

/* ── Score Bar ─────────────────────────────────────────────────────────────── */

.score-bar {
    height: 8px;
    background: var(--line);
    border-radius: 4px;
    overflow: hidden;
}
.score-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.score-value {
    font-weight: 700;
    font-size: 0.9rem;
}

/* ── Match Card ────────────────────────────────────────────────────────────── */

.match-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    gap: 16px;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.match-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}
.match-card-image {
    width: 120px;
    height: 90px;
    border-radius: var(--radius-sm);
    background: var(--line);
    flex-shrink: 0;
    object-fit: cover;
}
.match-card-body { flex: 1; min-width: 0; }
.match-card-title {
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.match-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.82rem;
    color: var(--dim);
    flex-wrap: wrap;
}

/* ── Job Card ──────────────────────────────────────────────────────────────── */

.job-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: box-shadow 0.2s;
}
.job-card:hover { box-shadow: var(--shadow-md); }

.job-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.job-card-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.job-card-info { flex: 1; min-width: 0; }
.job-card-title {
    font-weight: 700;
    color: var(--ink);
    font-size: 0.95rem;
}
.job-card-subtitle {
    font-size: 0.82rem;
    color: var(--dim);
}

/* ── Tables ────────────────────────────────────────────────────────────────── */

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}
.table th {
    background: var(--bg);
    font-weight: 600;
    color: var(--dim);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    padding: 10px 16px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}
.table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    color: var(--text);
}
.table tr:last-child td { border-bottom: none; }
.table tr:nth-child(even) { background: rgba(0,0,0,0.015); }
.table tr:hover { background: var(--accent-soft); }

/* ── Pagination ────────────────────────────────────────────────────────────── */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 24px;
}
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s;
}
.pagination a {
    color: var(--text);
    border: 1px solid var(--line);
}
.pagination a:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.pagination .active {
    background: var(--accent);
    color: var(--white);
    border: 1px solid var(--accent);
}
.pagination .disabled {
    color: var(--muted);
    pointer-events: none;
}

/* ── Badges ────────────────────────────────────────────────────────────────── */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    white-space: nowrap;
}
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-error   { background: var(--error-soft);   color: var(--error); }
.badge-info    { background: var(--info-soft);     color: var(--info); }
.badge-muted   { background: #f0f0f0;             color: var(--dim); }
.badge-accent  { background: var(--accent-soft);   color: var(--accent); }

/* Badge count (red dot) */
.badge-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 100px;
    background: var(--accent);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 700;
}

/* ── Status badge ──────────────────────────────────────────────────────────── */

.status-active   { background: var(--success-soft); color: var(--success); border: 1px solid var(--success); }
.status-paused   { background: var(--warning-soft); color: var(--warning); border: 1px solid var(--warning); }
.status-expired  { background: #f0f0f0;             color: var(--dim);     border: 1px solid var(--muted); }
.status-cancelled { background: var(--error-soft);  color: var(--error);   border: 1px solid var(--error); }

/* ── Icon + Text ───────────────────────────────────────────────────────────── */

.icon-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ── Hero Section ──────────────────────────────────────────────────────────── */

.hero {
    text-align: center;
    padding: 60px 0 48px;
}
.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 16px;
    line-height: 1.15;
}
.hero p {
    font-size: 1.15rem;
    color: var(--dim);
    max-width: 560px;
    margin: 0 auto 32px;
}
.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .hero h1 { font-size: 1.75rem; }
    .hero p { font-size: 1rem; }
    .hero { padding: 40px 0 32px; }
}

/* Stats row */
.stats-row {
    display: flex;
    justify-content: center;
    gap: 48px;
    padding: 32px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin: 32px 0;
}
.stats-row .stat { text-align: center; }
.stats-row .stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--ink);
}
.stats-row .stat-label {
    font-size: 0.8rem;
    color: var(--dim);
    margin-top: 2px;
}

@media (max-width: 640px) {
    .stats-row { gap: 24px; flex-wrap: wrap; }
    .stats-row .stat-value { font-size: 1.25rem; }
}

/* Feature cards */
.feature-card {
    text-align: center;
    padding: 32px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--white);
}
.feature-card-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}
.feature-card h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}
.feature-card p {
    font-size: 0.875rem;
    color: var(--dim);
}

/* ── Auth pages ────────────────────────────────────────────────────────────── */

.auth-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100dvh - var(--nav-height));
    padding: 24px 20px;
}
.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    box-shadow: var(--shadow-md);
}
.auth-card-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 8px;
}
.auth-card-logo svg { color: var(--accent); }
.auth-card-subtitle {
    text-align: center;
    color: var(--dim);
    font-size: 0.9rem;
    margin-bottom: 28px;
}
.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--dim);
}

@media (max-width: 480px) {
    .auth-card {
        padding: 28px 20px;
        border: none;
        box-shadow: none;
        background: transparent;
    }
}

/* ── Empty state ───────────────────────────────────────────────────────────── */

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--dim);
}
.empty-state svg {
    margin: 0 auto 16px;
    color: var(--muted);
}
.empty-state h3 {
    color: var(--ink);
    margin-bottom: 8px;
}
.empty-state p {
    max-width: 400px;
    margin: 0 auto;
    font-size: 0.9rem;
}

/* ── HTMX ──────────────────────────────────────────────────────────────────── */

.htmx-indicator {
    display: none;
}
.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
    display: inline-flex;
}

.htmx-indicator-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid var(--line);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* Swap animation */
.htmx-added {
    animation: fadeIn 0.2s ease-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.htmx-swapping {
    opacity: 0.5;
    transition: opacity 0.15s;
}

/* ── Utilities ─────────────────────────────────────────────────────────────── */

.text-muted  { color: var(--dim); }
.text-accent { color: var(--accent); }
.text-success { color: var(--success); }
.text-error  { color: var(--error); }
.text-ink    { color: var(--ink); }
.text-sm     { font-size: 0.82rem; }
.text-xs     { font-size: 0.75rem; }
.text-center { text-align: center; }
.text-right  { text-align: right; }

.font-bold   { font-weight: 700; }
.font-medium { font-weight: 500; }

.flex        { display: flex; }
.flex-col    { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-wrap   { flex-wrap: wrap; }
.flex-1      { flex: 1; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-5 { gap: 20px; }
.gap-6 { gap: 24px; }

.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 20px; }
.mt-6 { margin-top: 24px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 20px; }
.mb-6 { margin-bottom: 24px; }

.w-full { width: 100%; }
.hidden { display: none; }

.truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* Divider */
.divider {
    height: 1px;
    background: var(--line);
    margin: 24px 0;
}

/* Section heading */
.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.section-heading h2 { margin: 0; }

/* ── Category Grid (Suchauftrag) ───────────────────────────────────────────── */

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
}
.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 12px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
}
.category-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.category-card.active {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent);
}
.category-card svg { color: var(--dim); transition: color 0.2s; }
.category-card:hover svg,
.category-card.active svg { color: var(--accent); }

/* ── Steps/Progress ────────────────────────────────────────────────────────── */

.steps {
    display: flex;
    margin-bottom: 32px;
    border-bottom: 2px solid var(--line);
}
.step {
    flex: 1;
    text-align: center;
    padding: 12px 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted);
    position: relative;
}
.step.active {
    color: var(--accent);
}
.step.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
}
.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--line);
    color: var(--dim);
    font-size: 0.72rem;
    font-weight: 700;
    margin-right: 6px;
}
.step.active .step-number {
    background: var(--accent);
    color: var(--white);
}

/* ── Form section ──────────────────────────────────────────────────────────── */

.form-section {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 24px;
}
.form-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── Plan Cards ────────────────────────────────────────────────────────────── */

.plan-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
@media (max-width: 768px) {
    .plan-grid { grid-template-columns: repeat(2, 1fr); }
}
.plan-card {
    position: relative;
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--white);
}
.plan-card:hover { border-color: var(--ink); }
.plan-card.selected {
    border-color: var(--accent);
    background: var(--accent-soft);
    box-shadow: 0 0 0 1px var(--accent);
}
.plan-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.plan-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 100px;
    white-space: nowrap;
    letter-spacing: 0.02em;
}
.plan-price {
    font-weight: 800;
    font-size: 1.75rem;
    color: var(--ink);
    line-height: 1.2;
}
.plan-price-suffix {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--dim);
}
.plan-period {
    font-size: 0.78rem;
    color: var(--dim);
    margin-top: 4px;
}

/* ── Tabs ──────────────────────────────────────────────────────────────────── */

.tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid var(--line);
    margin-bottom: 24px;
}
.tab {
    padding: 10px 18px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dim);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    gap: 6px;
}
.tab:hover { color: var(--ink); }
.tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* ── Filter Bar ────────────────────────────────────────────────────────────── */

.filter-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.filter-bar select {
    padding: 8px 36px 8px 12px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.85rem;
    background: var(--white);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b6e78' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    appearance: none;
    cursor: pointer;
}
.filter-bar select:focus {
    outline: none;
    border-color: var(--accent);
}

/* ── Match Card (enhanced) ─────────────────────────────────────────────────── */

.match-card {
    border: 1.5px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
    background: var(--white);
    transition: all 0.2s;
}
.match-card:hover { box-shadow: var(--shadow-md); }
.match-card.confirmed { border-color: var(--success); background: var(--success-soft); }
.match-card.dismissed { opacity: 0.5; }

.match-header {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 16px;
    margin-bottom: 14px;
}
@media (max-width: 640px) {
    .match-header { grid-template-columns: 80px 1fr; }
}
.match-thumb {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius-sm);
    background: var(--line);
}
.match-thumb-placeholder {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    background: var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
}
.match-title {
    font-weight: 700;
    color: var(--ink);
    font-size: 0.95rem;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.match-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 0.82rem;
    color: var(--dim);
}

/* Score bar (enhanced) */
.score-bar-lg {
    position: relative;
    height: 26px;
    background: var(--line);
    border-radius: 13px;
    overflow: hidden;
    margin: 14px 0;
}
.score-bar-lg .score-fill {
    height: 100%;
    border-radius: 13px;
    transition: width 0.5s ease;
}
.score-bar-lg .score-label {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--white);
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.match-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

/* Score details (aufklappbar) */
.score-details { margin-top: 10px; }
.score-details summary {
    cursor: pointer;
    font-size: 0.82rem;
    color: var(--dim);
    font-weight: 600;
    list-style: none;
}
.score-details summary::-webkit-details-marker { display: none; }
.score-details summary::before {
    content: '\25B6';
    display: inline-block;
    margin-right: 6px;
    font-size: 0.65rem;
    transition: transform 0.2s;
}
.score-details[open] summary::before {
    transform: rotate(90deg);
}
.score-details summary:hover { color: var(--accent); }

.score-breakdown {
    padding: 12px 0;
}
.score-factor {
    display: grid;
    grid-template-columns: 90px 1fr 40px;
    gap: 8px;
    align-items: center;
    margin-bottom: 6px;
    font-size: 0.8rem;
}
.factor-name { color: var(--dim); }
.factor-bar {
    height: 6px;
    background: var(--line);
    border-radius: 3px;
    overflow: hidden;
}
.factor-fill {
    height: 100%;
    border-radius: 3px;
}
.factor-value {
    text-align: right;
    font-weight: 600;
    color: var(--ink);
}

/* Police info */
.police-info { margin-top: 10px; }
.police-info summary {
    cursor: pointer;
    font-size: 0.82rem;
    color: var(--dim);
    font-weight: 600;
    list-style: none;
}
.police-info summary::-webkit-details-marker { display: none; }
.police-info summary::before {
    content: '\25B6';
    display: inline-block;
    margin-right: 6px;
    font-size: 0.65rem;
    transition: transform 0.2s;
}
.police-info[open] summary::before { transform: rotate(90deg); }
.police-info summary:hover { color: var(--accent); }
.police-steps {
    padding: 12px 0;
    font-size: 0.85rem;
    color: var(--text);
}
.police-steps ol {
    padding-left: 20px;
    margin-bottom: 12px;
}
.police-steps li { margin-bottom: 6px; }

/* ── Job Card (enhanced) ───────────────────────────────────────────────────── */

.job-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
    transition: box-shadow 0.2s;
}
.job-card:hover { box-shadow: var(--shadow-md); }
.job-card-clickable {
    cursor: pointer;
}

.job-card-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 12px;
}
.job-card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.job-card-info { flex: 1; min-width: 0; }
.job-card-title {
    font-weight: 700;
    color: var(--ink);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.job-card-subtitle {
    font-size: 0.82rem;
    color: var(--dim);
    margin-top: 2px;
}
.job-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.82rem;
    color: var(--dim);
    margin-bottom: 12px;
}
.job-card-progress {
    height: 4px;
    background: var(--line);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 12px;
}
.job-card-progress-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.3s;
}
.job-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ── Consent checkbox ──────────────────────────────────────────────────────── */

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--dim);
    cursor: pointer;
    line-height: 1.4;
}
.consent-label input[type="checkbox"] {
    margin-top: 2px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: var(--accent);
}

/* ── Range slider ──────────────────────────────────────────────────────────── */

.range-group {
    display: flex;
    align-items: center;
    gap: 12px;
}
.range-group input[type="range"] {
    flex: 1;
    accent-color: var(--accent);
    height: 6px;
}
.range-value {
    min-width: 50px;
    text-align: right;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--ink);
}

/* ── Field hint (enhanced) ─────────────────────────────────────────────────── */

.field-hint {
    font-size: 0.78rem;
    color: var(--dim);
    margin-top: 4px;
}
.field-hint-success {
    font-size: 0.78rem;
    color: var(--success);
    margin-top: 4px;
}

/* ── Optional block (details/summary) ──────────────────────────────────────── */

.optional-block {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    overflow: hidden;
}
.optional-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 18px 28px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dim);
    cursor: pointer;
    list-style: none;
    user-select: none;
}
.optional-toggle::-webkit-details-marker { display: none; }
.optional-toggle:hover { color: var(--ink); }
details[open] .optional-toggle svg { transform: rotate(45deg); transition: transform 0.2s; }
.optional-toggle svg { transition: transform 0.2s; flex-shrink: 0; }
.optional-content {
    padding: 0 28px 24px;
    border-top: 1px solid var(--line);
}
.optional-intro {
    font-size: 0.85rem;
    color: var(--dim);
    line-height: 1.6;
    margin: 16px 0 20px;
}

/* ── Field error + has-error ────────────────────────────────────────────────── */

.field-error {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    color: var(--error);
    font-size: 0.8rem;
    margin-top: 4px;
}
.field-error svg { flex-shrink: 0; margin-top: 2px; }
input.has-error, select.has-error, textarea.has-error {
    border-color: var(--error) !important;
}

/* ── Info bubble + tooltip ──────────────────────────────────────────────────── */

.field-with-info { position: relative; }
.input-row {
    display: flex;
    gap: 8px;
    align-items: center;
}
.input-row input { flex: 1; }
.info-bubble {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--dim);
    position: relative;
    flex-shrink: 0;
    line-height: 1;
}
.info-bubble:hover { color: var(--ink); }
.info-tooltip {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 8px;
    background: var(--ink);
    color: var(--white);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    line-height: 1.5;
    width: 300px;
    max-width: 80vw;
    z-index: 50;
    box-shadow: var(--shadow-lg);
    text-align: left;
    font-weight: 400;
}
.info-bubble:focus .info-tooltip,
.info-bubble:hover .info-tooltip { display: block; }
[data-theme="dark"] .info-tooltip {
    background: var(--line);
    color: var(--ink);
}

/* ── Price range row ────────────────────────────────────────────────────────── */

.price-range-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.price-range-row input { flex: 1; }
.price-range-sep {
    color: var(--dim);
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* ── Plan feature tag ──────────────────────────────────────────────────────── */

.plan-feature {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--success);
    margin-top: 8px;
    justify-content: center;
}

/* ── Addon area ───────────────────────────────────────────────────────────── */

.addon-area {
    padding: 16px 20px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.addon-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
}
.addon-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}
.addon-hint {
    font-size: 0.78rem;
    color: var(--dim);
    margin-top: 6px;
    margin-left: 26px;
    line-height: 1.5;
}

/* ── Image search badge ───────────────────────────────────────────────────── */

.badge-image-search {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 2px 8px;
    border-radius: 10px;
}

/* ── Price hint ────────────────────────────────────────────────────────────── */

.price-hint {
    padding: 8px 12px;
    background: var(--info-soft);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    color: var(--info);
    margin-top: 8px;
}

/* ── Image preview ─────────────────────────────────────────────────────────── */

.image-preview-grid {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.image-preview-item {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    border: 1px solid var(--line);
}

/* ── Spinner ───────────────────────────────────────────────────────────────── */

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--line);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: inline-block;
}
.htmx-request .htmx-hide { display: none; }

/* ── Match Card Full ──────────────────────────────────────────────────────── */

.match-card-full {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
    transition: box-shadow 0.2s;
}
.match-card-full:hover { box-shadow: var(--shadow-md); }

.match-card-full-header {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.match-card-full-image {
    display: block;
    width: 120px;
    height: 120px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg);
}
.match-card-full-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.match-card-full-image-empty {
    display: flex;
    align-items: center;
    justify-content: center;
}
.match-card-full-info { flex: 1; min-width: 0; }
.match-card-full-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--ink);
    margin-bottom: 6px;
}
.match-card-full-title a { color: inherit; text-decoration: none; }
.match-card-full-title a:hover { color: var(--accent); }
.match-card-full-status { flex-shrink: 0; }
.match-card-full-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}
.ml-auto { margin-left: auto; }

/* Score bar fill (for score-bar-lg) */
.score-bar-lg-fill {
    height: 100%;
    border-radius: 13px;
    transition: width 0.5s ease;
}
.score-bar-lg-label {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--white);
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Score factor name/value (for match_card_full) */
.score-factor-name { color: var(--dim); font-size: 0.8rem; }
.score-factor-value { text-align: right; font-weight: 600; }

/* Progress bar group (for job_list) */
.progress-bar-group {
    display: flex;
    align-items: center;
    gap: 10px;
}
.progress-bar {
    flex: 1;
    height: 4px;
    background: var(--line);
    border-radius: 2px;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.3s;
}

/* Police info (match card variant) */
.match-card-full .police-info {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: var(--info-soft);
    border-radius: var(--radius-sm);
    color: var(--info);
    flex: 1;
}
.match-card-full .police-info p { margin: 0; }
.text-link { color: var(--accent); text-decoration: underline; font-weight: 600; }
.text-link:hover { color: var(--accent-hover); }

/* Filter bar select small */
.form-select-sm {
    padding: 6px 10px;
    font-size: 0.82rem;
    height: auto;
}

/* Job list container */
.job-list, .match-list { display: flex; flex-direction: column; }

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 20px 0;
    margin-top: 8px;
}
.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s;
}
.pagination-btn:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
}
.pagination-info {
    font-size: 0.82rem;
    color: var(--dim);
    font-weight: 500;
}

@media (max-width: 640px) {
    .match-card-full-header { flex-direction: column; }
    .match-card-full-image { width: 100%; height: 180px; }
    .match-card-full-actions { flex-direction: column; }
    .ml-auto { margin-left: 0; }
    .filter-bar { flex-direction: column; }
}

/* ══════════════════════════════════════════════════════════════════════════════
   DARKMODE
   ══════════════════════════════════════════════════════════════════════════════ */

/* Manuell gesetzer Darkmode */
[data-theme="dark"] {
    --bg: #0f1117;
    --white: #1a1d24;
    --ink: #e8e9ed;
    --text: #c4c6ce;
    --dim: #8b8e98;
    --muted: #5a5d67;
    --line: #2a2d35;
    --accent: #e95420;
    --accent-soft: #2a1a12;
    --accent-hover: #f06a38;
    --success: #2dd479;
    --success-soft: #0f2a1c;
    --warning: #f0b429;
    --warning-soft: #2a2212;
    --error: #ef4444;
    --error-soft: #2a1212;
    --info: #60a5fa;
    --info-soft: #121d2a;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.3);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.4);
}

/* Auto-Modus: System-Preference respektieren */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #0f1117;
        --white: #1a1d24;
        --ink: #e8e9ed;
        --text: #c4c6ce;
        --dim: #8b8e98;
        --muted: #5a5d67;
        --line: #2a2d35;
        --accent: #e95420;
        --accent-soft: #2a1a12;
        --accent-hover: #f06a38;
        --success: #2dd479;
        --success-soft: #0f2a1c;
        --warning: #f0b429;
        --warning-soft: #2a2212;
        --error: #ef4444;
        --error-soft: #2a1212;
        --info: #60a5fa;
        --info-soft: #121d2a;
        --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
        --shadow-md: 0 4px 12px rgba(0,0,0,0.3);
        --shadow-lg: 0 8px 24px rgba(0,0,0,0.4);
    }
}

/* Darkmode-spezifische Anpassungen */
[data-theme="dark"] img,
:root:not([data-theme="light"]) img {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}
@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) img {
        border: none;
    }
}
[data-theme="dark"] .form-input,
[data-theme="dark"] .form-select,
[data-theme="dark"] .form-textarea {
    background: var(--bg);
    color: var(--text);
    border-color: var(--line);
}
[data-theme="dark"] .form-input::placeholder { color: var(--muted); }

[data-theme="dark"] .top-nav {
    background: rgba(15, 17, 23, 0.85);
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .top-nav {
        background: rgba(15, 17, 23, 0.85);
    }
}

[data-theme="dark"] .nav-links a:hover {
    background: rgba(255,255,255,0.06);
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .nav-links a:hover {
        background: rgba(255,255,255,0.06);
    }
}

/* ── Theme Switcher ──────────────────────────────────────────────────────── */

.theme-switcher {
    display: inline-flex;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.theme-option {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--dim);
    cursor: pointer;
    transition: all 0.15s;
    border-right: 1px solid var(--line);
}
.theme-option:last-child { border-right: none; }
.theme-option:hover { background: var(--bg); color: var(--ink); }
.theme-option.active {
    background: var(--accent-soft);
    color: var(--accent);
}
.theme-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* ── Checkout Result ─────────────────────────────────────────────────────── */

.checkout-result {
    text-align: center;
    padding: 60px 20px;
    max-width: 480px;
    margin: 0 auto;
}
.checkout-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}
.checkout-icon-success {
    background: var(--success-soft);
    color: var(--success);
}
.checkout-icon-info {
    background: var(--info-soft);
    color: var(--info);
}
.checkout-result h1 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

/* ── Misc utilities ──────────────────────────────────────────────────────── */

.btn-ghost {
    background: transparent;
    border: none;
    padding: 8px 14px;
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: background 0.15s;
}
.btn-ghost:hover { background: var(--bg); }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s;
}
.btn-secondary:hover {
    background: var(--white);
    border-color: var(--ink);
    color: var(--ink);
}

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    cursor: pointer;
}
.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    flex-shrink: 0;
}

.text-success { color: var(--success); }
.text-error { color: var(--error); }
.text-info { color: var(--info); }
