:root {
    --bg: #f4ede4;
    --panel: rgba(255, 255, 255, 0.78);
    --ink: #221814;
    --muted: #6d5d55;
    --accent: #b5543f;
    --accent-strong: #8f3e2c;
    --line: rgba(34, 24, 20, 0.12);
    --shadow: 0 20px 60px rgba(44, 25, 14, 0.16);
    --radius-xl: 32px;
    --radius-md: 16px;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: "Manrope", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(197, 161, 95, 0.22), transparent 30%),
        radial-gradient(circle at top right, rgba(181, 84, 63, 0.18), transparent 26%),
        linear-gradient(180deg, #f8f2ea 0%, #f4ede4 100%);
}
.app-shell { max-width: 1320px; margin: 0 auto; padding: 24px 20px 60px; }
.eyebrow {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(34, 24, 20, 0.08);
    color: var(--accent-strong);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
h1, h2, h3, h4 { margin: 0; font-family: "Fraunces", serif; line-height: 1.02; }
h1 { font-size: clamp(2.8rem, 5vw, 5.2rem); margin-bottom: 18px; }
h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); }
.lead { max-width: 620px; margin: 0 0 28px; color: var(--muted); font-size: 1.08rem; line-height: 1.7; }
.hero, .dashboard-grid { display: grid; gap: 28px; }
.hero { grid-template-columns: 1.1fr 0.9fr; min-height: 90vh; align-items: center; }
.dashboard-grid { grid-template-columns: minmax(0, 1.15fr) 360px; align-items: start; }
.app-topbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 26px; }
.topbar-actions, .view-switch, .swipe-actions { display: flex; gap: 12px; align-items: center; }
.user-chip { display: grid; gap: 3px; padding: 12px 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.7); border: 1px solid var(--line); }
.user-chip span { color: var(--muted); font-size: 0.92rem; }
.section, .auth-card {
    padding: 28px;
    border: 1px solid rgba(34, 24, 20, 0.08);
    border-radius: var(--radius-xl);
    background: var(--panel);
    box-shadow: var(--shadow);
}
.sidebar-stack { display: grid; gap: 20px; }
.compact-head { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin-bottom: 18px; }
.filter-pill { padding: 10px 14px; background: rgba(34, 24, 20, 0.06); border-radius: 999px; }
.view-switch-btn, .primary-btn, .secondary-btn, .action-btn {
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
}
.view-switch-btn { padding: 12px 18px; background: rgba(255, 255, 255, 0.6); color: var(--ink); }
.view-switch-btn.is-active, .primary-btn { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%); color: #fff; }
.primary-btn, .secondary-btn { padding: 15px 22px; }
.secondary-btn { background: rgba(255, 255, 255, 0.55); color: var(--ink); border: 1px solid var(--line); }
.auth-form.is-hidden { display: none; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 18px 0; }
.form-grid label { display: grid; gap: 8px; font-weight: 700; }
.form-grid label.full { grid-column: 1 / -1; }
.checkbox-row {
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 12px;
    font-weight: 600;
}
.checkbox-row input {
    width: 18px;
    height: 18px;
    margin-top: 3px;
}
input, select, textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(34, 24, 20, 0.12);
    border-radius: 16px;
    background: #fff;
    color: var(--ink);
    font: inherit;
}
.helper-copy, .form-feedback, .inline-feedback { color: var(--muted); }
.phone-frame {
    width: min(100%, 420px);
    padding: 18px;
    border-radius: 42px;
    background: linear-gradient(180deg, #2f241f 0%, #120d0b 100%);
    box-shadow: 0 38px 80px rgba(20, 10, 6, 0.38);
}
.phone-frame-wide { width: 100%; max-width: 460px; margin: 0 auto; }
.phone-topbar { display: flex; justify-content: space-between; padding: 2px 8px 18px; color: rgba(255,255,255,.72); font-size: .82rem; }
.trust-board, .stack-list { display: grid; gap: 14px; }
.trust-item, .list-card, .empty-list, .empty-state {
    padding: 18px;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,.08);
    color: #fff5ed;
    border: 1px solid rgba(255,255,255,.1);
}
.sidebar-panel .list-card, .sidebar-panel .empty-list {
    color: var(--ink);
    background: rgba(255,255,255,.72);
    border: 1px solid var(--line);
}
.trust-score-card {
    display: grid;
    gap: 6px;
    padding: 18px;
    margin-bottom: 14px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(181, 84, 63, 0.14) 0%, rgba(197, 161, 95, 0.16) 100%);
    border: 1px solid rgba(181, 84, 63, 0.14);
}
.trust-score-card strong {
    font-family: "Fraunces", serif;
    font-size: 2.2rem;
}
.sidebar-panel .list-card span, .sidebar-panel .empty-list, .trust-item p, .empty-state p { color: var(--muted); }
.mini-btn {
    margin-top: 12px;
    padding: 10px 14px;
    border: 0;
    border-radius: 999px;
    background: rgba(34, 24, 20, 0.08);
    color: var(--ink);
    font: inherit;
    cursor: pointer;
}
.deck { position: relative; min-height: 640px; }
.profile-card { position: relative; min-height: 640px; overflow: hidden; border-radius: 30px; box-shadow: var(--shadow); }
.profile-card img, .card-gradient { position: absolute; inset: 0; width: 100%; height: 100%; }
.profile-card img { object-fit: cover; }
.card-gradient { background: linear-gradient(180deg, rgba(10,10,10,.06) 0%, rgba(10,10,10,.68) 68%, rgba(10,10,10,.84) 100%); }
.card-content { position: absolute; inset: auto 0 0; padding: 28px; color: #fff9f3; }
.compatibility { display: block; font-size: 1.25rem; font-weight: 800; }
.card-content h2 { margin-top: 10px; font-size: 2.2rem; }
.meta, .headline { margin: 10px 0 0; line-height: 1.6; }
.headline { color: rgba(255,249,243,.88); }
.chips, .badges { display: flex; flex-wrap: wrap; gap: 12px; }
.chips span, .badges li { padding: 9px 12px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.12); font-size: .85rem; }
.badges { padding: 0; margin: 18px 0 0; list-style: none; }
.swipe-actions { justify-content: center; margin-top: 18px; }
.action-btn { width: 68px; height: 68px; font-size: 1.6rem; background: rgba(255,255,255,.92); box-shadow: var(--shadow); }
.action-btn.reject { color: #93443d; }
.action-btn.accept { color: #8f3e2c; }
.action-btn.info { color: #5d534d; }

@media (max-width: 980px) {
    .hero, .dashboard-grid { grid-template-columns: 1fr; }
    .hero { min-height: auto; }
}

@media (max-width: 640px) {
    .app-shell { padding-inline: 14px; }
    .section, .auth-card { padding: 22px; }
    .form-grid { grid-template-columns: 1fr; }
    .app-topbar { flex-direction: column; align-items: start; }
}
