/* =====================================================================
   Suhaag — Honeymoon Planner Stylesheet
   Aesthetic: editorial-luxury, warm-romantic, magazine-like.
   Palette: ink, parchment, brass, sindoori, sage.
   Typography: Cormorant Garamond (display) + Spectral (body).
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
    --ink:        #1a1612;
    --ink-soft:   #2c2620;
    --parchment:  #f4eee3;
    --parchment-2:#ebe3d4;
    --cream:      #faf6ed;
    --brass:      #c89b56;
    --brass-deep: #a87f3e;
    --sindoori:   #b04a2f;
    --sindoori-soft: #d68468;
    --sage:       #8a9a7b;
    --slate:      #5b6770;
    --rule:       rgba(26, 22, 18, 0.12);
    --rule-strong:rgba(26, 22, 18, 0.32);

    --serif:      'Spectral', Georgia, serif;
    --display:    'Cormorant Garamond', 'Spectral', Georgia, serif;

    --shadow-1:   0 1px 2px rgba(26, 22, 18, 0.06), 0 4px 12px rgba(26, 22, 18, 0.06);
    --shadow-2:   0 2px 6px rgba(26, 22, 18, 0.08), 0 12px 32px rgba(26, 22, 18, 0.10);
    --shadow-3:   0 6px 18px rgba(26, 22, 18, 0.14), 0 24px 60px rgba(26, 22, 18, 0.18);

    --rad-sm:     2px;
    --rad-md:     4px;
    --rad-lg:     12px;

    --t-fast:     180ms cubic-bezier(.22,.61,.36,1);
    --t-med:      360ms cubic-bezier(.22,.61,.36,1);
    --t-slow:     620ms cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    background: var(--parchment);
    color: var(--ink);
    font-family: var(--serif);
    font-weight: 400;
    font-size: 17px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

/* ---------- Atmospheric background ---------- */
body::before {
    content: '';
    position: fixed; inset: 0;
    background:
      radial-gradient(circle at 12% 10%, rgba(200,155,86,.10) 0%, transparent 40%),
      radial-gradient(circle at 90% 84%, rgba(176,74,47,.07)  0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}
#app { position: relative; z-index: 1; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; margin: 0; line-height: 1.1; letter-spacing: -0.005em; }
.serif-italic { font-style: italic; font-family: var(--display); font-weight: 400; }
.eyebrow {
    font-family: var(--serif);
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--slate);
}
.numeral {
    font-family: var(--display);
    font-style: italic;
    font-weight: 400;
    color: var(--brass);
}

/* ---------- Ornaments ---------- */
.ornament {
    text-align: center;
    color: var(--brass);
    letter-spacing: 0.6em;
    font-size: 10px;
    margin: 1.5em 0;
}
.rule {
    border: 0;
    height: 1px;
    background: var(--rule);
    margin: 2em 0;
}

/* ---------- Boot screen ---------- */
.boot {
    min-height: 100vh;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 18px;
}
.boot__ornament { color: var(--brass); letter-spacing: 0.6em; font-size: 11px; }
.boot__text { font-style: italic; color: var(--slate); margin: 0; }

/* =====================================================================
   VIEW: SPLASH
   ===================================================================== */
.splash {
    min-height: 100vh;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 48px 24px;
    text-align: center;
    animation: fadein var(--t-slow) both;
}
.splash__brand {
    font-family: var(--display);
    font-weight: 500;
    font-size: clamp(64px, 16vw, 132px);
    letter-spacing: -0.02em;
    line-height: 0.9;
    color: var(--ink);
}
.splash__brand em { font-style: italic; color: var(--brass); }
.splash__sub {
    margin-top: 12px;
    font-style: italic;
    color: var(--slate);
    font-size: clamp(15px, 3.6vw, 19px);
}
.splash__date {
    margin-top: 38px;
    font-family: var(--display);
    font-style: italic;
    font-size: clamp(18px, 4.5vw, 24px);
    color: var(--ink-soft);
}
.splash__date span { font-style: normal; color: var(--brass); padding: 0 0.4em; }
.splash__lead {
    max-width: 520px;
    margin: 38px auto 0;
    font-family: var(--serif);
    font-size: clamp(15px, 3.6vw, 17px);
    line-height: 1.65;
    color: var(--ink-soft);
}
.splash__cta { margin-top: 44px; }

/* =====================================================================
   BUTTONS (shared)
   ===================================================================== */
.btn {
    display: inline-flex; align-items: center; gap: 12px;
    background: var(--ink);
    color: var(--cream);
    border: 1px solid var(--ink);
    padding: 16px 28px;
    font-family: var(--serif);
    font-size: 14px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 500;
    border-radius: var(--rad-sm);
    transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-2); background: #2a221b; }
.btn:active { transform: translateY(0); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn--ghost:hover { background: rgba(26,22,18,0.04); }
.btn--brass { background: var(--brass); color: var(--ink); border-color: var(--brass); }
.btn--brass:hover { background: var(--brass-deep); border-color: var(--brass-deep); color: var(--cream); }
.btn--small { padding: 10px 18px; font-size: 12px; letter-spacing: 0.16em; }

/* =====================================================================
   VIEW: PASSWORD / ROLE / NAME
   ===================================================================== */
.gate {
    min-height: 100vh;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 48px 24px;
    text-align: center;
    animation: fadein var(--t-med) both;
}
.gate__title {
    font-family: var(--display);
    font-size: clamp(36px, 9vw, 56px);
    margin-bottom: 8px;
}
.gate__sub { font-style: italic; color: var(--slate); margin-bottom: 32px; max-width: 480px; }
.gate__form { display: flex; flex-direction: column; align-items: center; gap: 16px; width: 100%; max-width: 360px; }
.gate__error { color: var(--sindoori); font-style: italic; min-height: 1.4em; font-size: 14px; }

.input {
    width: 100%;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--rule-strong);
    padding: 12px 4px;
    font-family: var(--display);
    font-size: 22px;
    text-align: center;
    color: var(--ink);
    outline: none;
    transition: border-color var(--t-fast);
}
.input:focus { border-bottom-color: var(--brass); }

.role-pick {
    display: grid; grid-template-columns: 1fr; gap: 18px;
    width: 100%; max-width: 480px;
}
@media (min-width: 600px) { .role-pick { grid-template-columns: 1fr 1fr; } }
.role-card {
    background: var(--cream);
    border: 1px solid var(--rule);
    padding: 36px 24px;
    text-align: center;
    cursor: pointer;
    transition: transform var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast);
}
.role-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--brass); }
.role-card__label { font-family: var(--display); font-style: italic; color: var(--slate); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; }
.role-card__name { font-family: var(--display); font-size: 38px; margin-top: 12px; }
.role-card__last { margin-top: 8px; font-size: 12px; color: var(--slate); font-style: italic; }

/* =====================================================================
   VIEW: VIBE QUIZ
   ===================================================================== */
.quiz { padding: 48px 24px 100px; max-width: 720px; margin: 0 auto; animation: fadein var(--t-med) both; }
.quiz__progress { display: flex; gap: 6px; justify-content: center; margin-bottom: 32px; }
.quiz__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rule); transition: background var(--t-fast); }
.quiz__dot--active { background: var(--brass); }
.quiz__step h2 { font-family: var(--display); font-size: clamp(28px, 6vw, 40px); margin-bottom: 6px; }
.quiz__step p { color: var(--slate); font-style: italic; margin-bottom: 28px; }

.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice {
    border: 1px solid var(--rule-strong);
    background: transparent;
    padding: 12px 18px;
    border-radius: 999px;
    font-family: var(--serif);
    font-size: 15px;
    color: var(--ink);
    cursor: pointer;
    transition: all var(--t-fast);
}
.choice:hover { border-color: var(--ink); }
.choice--selected { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.quiz__nav { margin-top: 36px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }

/* =====================================================================
   APP CHROME (top bar + bottom nav)
   ===================================================================== */
.topbar {
    position: sticky; top: 0; z-index: 50;
    background: rgba(244, 238, 227, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--rule);
    padding: 14px 18px;
    display: flex; align-items: center; justify-content: space-between;
}
.topbar__brand { font-family: var(--display); font-weight: 500; font-size: 22px; letter-spacing: -0.01em; }
.topbar__brand em { font-style: italic; color: var(--brass); }
.topbar__user { display: flex; align-items: center; gap: 10px; font-style: italic; color: var(--slate); font-size: 13px; }
.topbar__avatar {
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--brass); color: var(--cream);
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--display); font-style: italic; font-size: 14px;
}

.bottomnav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    background: rgba(26, 22, 18, 0.96);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255,255,255,0.06);
    display: grid; grid-template-columns: repeat(4, 1fr);
    padding: 10px 4px calc(10px + env(safe-area-inset-bottom)) 4px;
}
.bottomnav__btn {
    background: transparent; border: 0;
    color: rgba(244,238,227,0.6);
    padding: 8px 4px;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    font-family: var(--serif); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
    transition: color var(--t-fast);
}
.bottomnav__btn--active { color: var(--brass); }
.bottomnav__sym { font-family: var(--display); font-style: italic; font-size: 18px; line-height: 1; }
.bottomnav__count {
    background: var(--sindoori); color: var(--cream);
    font-size: 9px; font-style: normal; padding: 1px 5px; border-radius: 9px;
    margin-left: 4px;
}

main.has-chrome { padding-bottom: 88px; }

/* =====================================================================
   VIEW: HOME (FLOWCHART)
   ===================================================================== */
.home { padding: 32px 20px 24px; max-width: 880px; margin: 0 auto; animation: fadein var(--t-med) both; }
.home__hero { text-align: center; margin-bottom: 36px; }
.home__hero h1 {
    font-family: var(--display); font-style: italic;
    font-size: clamp(34px, 8vw, 54px);
    margin-bottom: 8px;
}
.home__hero p { color: var(--slate); font-style: italic; max-width: 540px; margin: 0 auto; }

.flowchart { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 720px) { .flowchart { grid-template-columns: 1fr 1fr; gap: 22px; } }

.quad {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--rad-md);
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--t-med), box-shadow var(--t-med);
    color: var(--cream);
}
.quad:hover { transform: translateY(-4px); box-shadow: var(--shadow-3); }
.quad__bg { position: absolute; inset: 0; transition: transform var(--t-slow); }
.quad:hover .quad__bg { transform: scale(1.05); }
.quad__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.05) 30%, rgba(0,0,0,0.6) 100%); }
.quad__content { position: absolute; inset: 0; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; }
.quad__category { font-family: var(--serif); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.85; }
.quad__title { font-family: var(--display); font-size: clamp(28px, 5.5vw, 40px); font-weight: 500; }
.quad__count { font-family: var(--display); font-style: italic; opacity: 0.85; font-size: 14px; }

.quad--beaches-india    .quad__bg { background: linear-gradient(135deg, #1a5d3a 0%, #4eb89a 50%, #d2a679 100%); }
.quad--beaches-abroad   .quad__bg { background: linear-gradient(135deg, #0a4d68 0%, #2cb1bc 50%, #f4eee3 100%); }
.quad--hills-india      .quad__bg { background: linear-gradient(135deg, #4a4e69 0%, #c8d8e4 50%, #c9ada7 100%); }
.quad--hills-abroad     .quad__bg { background: linear-gradient(135deg, #8b2e2e 0%, #b87333 50%, #4a6580 100%); }

.home__backups {
    margin-top: 28px;
    text-align: center;
    color: var(--slate);
    font-style: italic;
    font-size: 14px;
}
.home__backups a { color: var(--brass-deep); border-bottom: 1px dashed var(--brass); padding-bottom: 1px; cursor: pointer; }

/* =====================================================================
   VIEW: CATEGORY (list)
   ===================================================================== */
.category { padding: 28px 20px 24px; max-width: 880px; margin: 0 auto; animation: fadein var(--t-med) both; }
.category__back {
    background: none; border: 0; padding: 6px 0;
    font-family: var(--serif); font-style: italic; color: var(--slate); margin-bottom: 14px;
}
.category__title { font-family: var(--display); font-size: clamp(34px, 8vw, 52px); }
.category__sub   { font-style: italic; color: var(--slate); margin: 4px 0 28px; }

.dest-list { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 720px) { .dest-list { grid-template-columns: 1fr 1fr; gap: 26px; } }

.dest-card {
    background: var(--cream);
    border: 1px solid var(--rule);
    border-radius: var(--rad-md);
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--t-med), box-shadow var(--t-med);
    display: flex; flex-direction: column;
}
.dest-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.dest-card__hero {
    aspect-ratio: 16 / 10;
    position: relative;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.dest-card__hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.45) 100%); }
.dest-card__num {
    position: absolute; top: 14px; left: 16px; z-index: 2;
    font-family: var(--display); font-style: italic; font-size: 28px;
    color: var(--cream); text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.dest-card__rating {
    position: absolute; top: 14px; right: 16px; z-index: 2;
    font-family: var(--serif); font-size: 11px;
    color: var(--cream); text-shadow: 0 1px 4px rgba(0,0,0,0.4);
    letter-spacing: 0.12em;
}
.dest-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.dest-card__name { font-family: var(--display); font-size: 28px; font-weight: 500; }
.dest-card__sub  { font-family: var(--display); font-style: italic; color: var(--slate); font-size: 15px; margin-top: -4px; }
.dest-card__tag  { font-family: var(--serif); font-size: 14.5px; line-height: 1.5; color: var(--ink-soft); flex: 1; }

.reactions-strip { display: flex; gap: 8px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.reaction-pill {
    font-family: var(--serif); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--rule-strong);
    color: var(--slate);
    background: transparent;
}
.reaction-pill--mine { color: var(--cream); background: var(--ink); border-color: var(--ink); }
.reaction-pill--partner { color: var(--ink); background: var(--parchment-2); border-color: transparent; font-style: italic; text-transform: none; letter-spacing: 0; }
.reaction-pill--love   { background: var(--sindoori); border-color: var(--sindoori); color: var(--cream); }
.reaction-pill--like   { background: var(--brass); border-color: var(--brass); color: var(--ink); }
.reaction-pill--maybe  { background: var(--sage); border-color: var(--sage); color: var(--cream); }
.reaction-pill--no     { background: var(--slate); border-color: var(--slate); color: var(--cream); }

/* =====================================================================
   VIEW: DESTINATION DETAIL
   ===================================================================== */
.detail { animation: fadein var(--t-med) both; padding-bottom: 40px; }
.detail__hero {
    height: 56vh; min-height: 360px; max-height: 540px;
    position: relative;
    background-size: cover; background-position: center;
    color: var(--cream);
    overflow: hidden;
}
.detail__hero::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.55) 100%);
}
.detail__hero-content {
    position: absolute; inset: auto 0 0 0;
    padding: 28px 24px;
    z-index: 2;
    max-width: 900px; margin: 0 auto; left: 0; right: 0;
}
.detail__num {
    font-family: var(--display); font-style: italic;
    font-size: 22px; opacity: 0.8;
    margin-bottom: 4px;
}
.detail__name {
    font-family: var(--display); font-size: clamp(40px, 9vw, 76px);
    line-height: 0.95; margin-bottom: 6px;
    text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}
.detail__sub {
    font-family: var(--display); font-style: italic;
    font-size: clamp(16px, 4vw, 22px);
    opacity: 0.92;
}
.detail__tag {
    margin-top: 16px;
    font-family: var(--serif); font-style: italic;
    font-size: clamp(15px, 4vw, 19px);
    max-width: 580px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.detail__back {
    position: absolute; top: 18px; left: 18px; z-index: 3;
    background: rgba(26,22,18,0.55); color: var(--cream);
    border: 0; backdrop-filter: blur(8px);
    padding: 8px 14px;
    font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
    border-radius: 999px;
}

.detail__body { max-width: 720px; margin: 0 auto; padding: 32px 24px 24px; }
.detail__lead {
    font-family: var(--display); font-style: italic;
    font-size: clamp(20px, 4.6vw, 26px);
    line-height: 1.4;
    color: var(--ink);
    margin-bottom: 28px;
}

.detail__sect { margin: 32px 0; }
.detail__sect h3 {
    font-family: var(--display); font-style: italic;
    font-size: 24px; font-weight: 500;
    margin-bottom: 8px;
    display: flex; align-items: baseline; gap: 12px;
}
.detail__sect h3::before {
    content: '✦'; color: var(--brass); font-style: normal; font-size: 12px;
}
.detail__sect p, .detail__sect li { font-size: 16px; line-height: 1.6; color: var(--ink-soft); }
.detail__sect ul { padding-left: 0; list-style: none; margin: 8px 0 0; }
.detail__sect ul li { position: relative; padding-left: 18px; margin-bottom: 6px; }
.detail__sect ul li::before { content: '–'; position: absolute; left: 0; color: var(--brass); }

.detail__weather {
    display: grid; grid-template-columns: auto 1fr; gap: 12px 18px;
    background: var(--cream);
    border: 1px solid var(--rule);
    padding: 18px 22px;
    border-radius: var(--rad-md);
}
.detail__weather dt { font-style: italic; color: var(--slate); font-size: 14px; }
.detail__weather dd { margin: 0; font-size: 15px; }

.scores { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 18px; margin-top: 12px; }
.score__label { font-style: italic; color: var(--slate); font-size: 13px; letter-spacing: 0.06em; }
.score__bar { display: flex; gap: 3px; margin-top: 4px; }
.score__pip { width: 14px; height: 4px; background: var(--rule); }
.score__pip--filled { background: var(--brass); }

.agents-list { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.agent {
    border: 1px solid var(--rule);
    background: var(--cream);
    padding: 14px 18px;
    border-radius: var(--rad-sm);
    display: grid; grid-template-columns: 1fr auto; gap: 4px 12px;
}
.agent__name { font-family: var(--display); font-size: 19px; font-weight: 500; }
.agent__rating { font-family: var(--display); font-style: italic; color: var(--brass-deep); }
.agent__specialty { grid-column: 1 / -1; color: var(--slate); font-size: 14px; font-style: italic; }

/* ----- Reaction stamps (wax-seal style) ----- */
.stamp-bar {
    position: sticky; bottom: 78px; z-index: 40;
    display: flex; gap: 8px; justify-content: center;
    margin: 28px -24px 0;
    padding: 14px 24px;
    background: linear-gradient(180deg, transparent, var(--parchment) 30%);
}
.stamp {
    flex: 1; max-width: 100px;
    aspect-ratio: 1.1 / 1;
    border-radius: 50%;
    background: var(--cream);
    border: 1px dashed var(--rule-strong);
    font-family: var(--display);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--slate);
    display: inline-flex; align-items: center; justify-content: center;
    transition: transform var(--t-fast), background var(--t-fast), color var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
    cursor: pointer;
}
.stamp:hover { transform: translateY(-2px); }
.stamp[data-r="love"].is-active   { background: var(--sindoori); color: var(--cream); border: 2px solid var(--sindoori); transform: rotate(-4deg); box-shadow: var(--shadow-2); }
.stamp[data-r="like"].is-active   { background: var(--brass);    color: var(--ink);   border: 2px solid var(--brass);    transform: rotate(2deg);  box-shadow: var(--shadow-2); }
.stamp[data-r="maybe"].is-active  { background: var(--sage);     color: var(--cream); border: 2px solid var(--sage);     transform: rotate(-2deg); box-shadow: var(--shadow-2); }
.stamp[data-r="no"].is-active     { background: var(--slate);    color: var(--cream); border: 2px solid var(--slate);    transform: rotate(3deg);  box-shadow: var(--shadow-2); }

/* ----- Comments ----- */
.comments { margin-top: 14px; }
.comment {
    border-left: 2px solid var(--brass);
    padding: 8px 0 8px 14px;
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.5;
}
.comment--partner { border-left-color: var(--sindoori); }
.comment__meta { font-style: italic; color: var(--slate); font-size: 12px; margin-bottom: 2px; }
.comment-form { display: flex; gap: 8px; margin-top: 12px; }
.comment-form textarea {
    flex: 1; resize: vertical; min-height: 56px;
    border: 1px solid var(--rule-strong);
    background: var(--cream);
    padding: 10px 12px;
    font-family: var(--serif); font-size: 15px;
    border-radius: var(--rad-sm);
}
.comment-form textarea:focus { outline: none; border-color: var(--brass); }

/* ----- Compare button (in detail) ----- */
.compare-toggle {
    margin-top: 16px; display: inline-flex; gap: 8px; align-items: center;
    background: transparent; border: 1px solid var(--rule-strong);
    padding: 8px 14px; border-radius: 999px;
    font-family: var(--serif); font-size: 13px; letter-spacing: 0.06em;
    cursor: pointer; transition: all var(--t-fast);
}
.compare-toggle:hover { border-color: var(--ink); }
.compare-toggle.is-on { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* =====================================================================
   VIEW: DASHBOARD
   ===================================================================== */
.dashboard { padding: 32px 20px 24px; max-width: 920px; margin: 0 auto; animation: fadein var(--t-med) both; }
.dashboard h2 { font-family: var(--display); font-size: clamp(34px, 7vw, 48px); margin-bottom: 4px; }
.dashboard__sub { color: var(--slate); font-style: italic; margin-bottom: 28px; }

.bucket {
    background: var(--cream);
    border: 1px solid var(--rule);
    border-radius: var(--rad-md);
    padding: 18px 20px;
    margin-bottom: 14px;
}
.bucket__head {
    display: flex; align-items: baseline; justify-content: space-between;
    margin-bottom: 12px; gap: 8px;
}
.bucket__title { font-family: var(--display); font-size: 22px; font-weight: 500; }
.bucket__title em { font-style: italic; color: var(--brass-deep); margin-right: 8px; }
.bucket__count { font-family: var(--display); font-style: italic; color: var(--slate); }
.bucket__items { display: flex; flex-direction: column; gap: 8px; }
.bucket__item {
    display: flex; justify-content: space-between; gap: 12px;
    padding: 8px 12px;
    border-left: 2px solid var(--brass);
    background: var(--parchment-2);
    border-radius: 0 var(--rad-sm) var(--rad-sm) 0;
    cursor: pointer;
    transition: transform var(--t-fast);
}
.bucket__item:hover { transform: translateX(3px); }
.bucket__item-name { font-family: var(--display); font-size: 17px; }

.bucket--both_love     { background: linear-gradient(180deg, rgba(176,74,47,.06), var(--cream)); }
.bucket--both_love .bucket__title em { color: var(--sindoori); }
.bucket--both_love .bucket__item { border-left-color: var(--sindoori); }
.bucket--conflict .bucket__title em { color: var(--slate); }
.bucket--conflict .bucket__item { border-left-color: var(--slate); }

.stats {
    display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
    margin-top: 28px;
}
.stat-card {
    background: var(--cream);
    border: 1px solid var(--rule);
    padding: 16px 18px;
    border-radius: var(--rad-md);
}
.stat-card__name { font-family: var(--display); font-style: italic; font-size: 18px; margin-bottom: 8px; }
.stat-row { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; padding: 4px 0; border-bottom: 1px dashed var(--rule); }
.stat-row:last-child { border-bottom: 0; }
.stat-row__label { color: var(--slate); font-style: italic; }
.stat-row__val { font-family: var(--display); font-weight: 500; }

/* =====================================================================
   VIEW: COMPARE
   ===================================================================== */
.compare { padding: 24px 16px 24px; max-width: 1200px; margin: 0 auto; animation: fadein var(--t-med) both; }
.compare__title { font-family: var(--display); font-size: clamp(30px, 7vw, 44px); margin-bottom: 4px; }
.compare__sub { font-style: italic; color: var(--slate); margin-bottom: 24px; }
.compare__empty { text-align: center; padding: 60px 20px; color: var(--slate); font-style: italic; }

.compare__grid { display: grid; gap: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare__grid table { width: 100%; border-collapse: collapse; min-width: 600px; }
.compare__grid th, .compare__grid td {
    text-align: left; padding: 14px 12px; vertical-align: top;
    border-bottom: 1px solid var(--rule);
    font-size: 14px; line-height: 1.5;
}
.compare__grid th {
    font-family: var(--display); font-weight: 500; font-size: 22px;
    background: var(--cream);
    border-bottom: 2px solid var(--ink);
}
.compare__grid th .sub { font-family: var(--display); font-style: italic; font-size: 13px; color: var(--slate); display: block; margin-top: 2px; }
.compare__grid .label-cell { font-style: italic; color: var(--slate); width: 120px; background: var(--parchment-2); }

/* =====================================================================
   ANIMATIONS
   ===================================================================== */
@keyframes fadein {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-4px); }
    50% { transform: translateX(4px); }
    80% { transform: translateX(-2px); }
}
.shake { animation: shake 320ms ease-in-out; }

/* =====================================================================
   UTILITIES
   ===================================================================== */
.center { text-align: center; }
.muted { color: var(--slate); }
.italic { font-style: italic; }
.small { font-size: 13px; }

.toast {
    position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%);
    background: var(--ink); color: var(--cream);
    padding: 10px 18px;
    border-radius: 999px;
    font-family: var(--serif); font-size: 13px; letter-spacing: 0.08em;
    z-index: 100;
    animation: fadein var(--t-fast) both;
}
.hidden { display: none !important; }
