/* ── Nav icon buttons ────────────────────────────────────────────────────── */
.nav-icon-btn {
    transition: all 0.2s ease;
    opacity: 0.65;
    cursor: pointer;
}
.nav-icon-btn:hover  { opacity: 1; transform: scale(1.1); }
.heart-btn:hover     { color: #ec4899; }
.trash-btn:hover     { color: #ef4444; }
.save-btn:hover      { color: #f59e0b; }

/* ── Heart pop ── */
.heart-pop {
    color: #ec4899 !important;
    opacity: 1 !important;
    animation: heartPop 0.65s ease-out forwards;
}
@keyframes heartPop {
    0%   { transform: scale(1);   }
    40%  { transform: scale(1.4); }
    70%  { transform: scale(0.9); }
    100% { transform: scale(1);   }
}

/* ── Trash shake ── */
.trash-shake {
    color: #ef4444 !important;
    opacity: 1 !important;
    animation: trashShake 0.55s ease-out forwards;
}
@keyframes trashShake {
    0%   { transform: rotate(0deg)   scale(1);    }
    20%  { transform: rotate(-12deg) scale(1.15); }
    40%  { transform: rotate(10deg)  scale(1.1);  }
    60%  { transform: rotate(-8deg)  scale(1.05); }
    80%  { transform: rotate(5deg)   scale(1);    }
    100% { transform: rotate(0deg)   scale(1);    }
}

/* ── Category pills (nav row 2) ────────────────────────────────────────── */
.category-pill {
    padding: 3px 10px;
    border-radius: 20px;
    background: #f8fafc;
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid #e2e8f0;
    transition: all 0.15s;
    white-space: nowrap;
    user-select: none;
}
.category-pill:hover:not(.active) { background: #e0e7ff; border-color: #a5b4fc; color: #4338ca; }
.category-pill.active             { background: #4f46e5; color: white; border-color: #4f46e5; }

/* ── Subscriptions panel ────────────────────────────────────────────────── */
#subs-panel {
    position: fixed;
    top: 104px;
    right: 16px;
    width: 260px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    z-index: 200;
    padding: 16px;
}

/* ── Vote toast ─────────────────────────────────────────────────────────── */
.vote-toast {
    position: fixed; bottom: 28px; left: 50%;
    transform: translateX(-50%) translateY(16px);
    padding: 10px 20px; border-radius: 999px;
    font-size: 13px; font-weight: 600; white-space: nowrap;
    opacity: 0; pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 200; box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.vote-toast--visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.vote-toast--love    { background: #fdf2f8; color: #9d174d; border: 1px solid #fbcfe8; }
.vote-toast--trash   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.vote-toast--neutral { background: #f8fafc; color: #475569; border: 1px solid #e2e8f0; }

/* ── Weight display pill ────────────────────────────────────────────────── */
#weight-display {
    font-size: 11px; font-weight: 700; font-family: monospace;
    padding: 3px 10px; border-radius: 20px; letter-spacing: 0.04em;
    transition: background 0.3s, color 0.3s; white-space: nowrap;
}
#weight-display.weight-loved   { background: #fce7f3; color: #be185d; border: 1px solid #fbcfe8; }
#weight-display.weight-trashed { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }
#weight-display.weight-neutral { background: #f1f5f9; color: #64748b; border: 1px solid #e2e8f0; }

/* ══════════════════════════════════════════════════════════════════════════
   ── Rabbit Hole Overlay ─────────────────────────────────────────────────
   ══════════════════════════════════════════════════════════════════════════ */
#rabbit-hole-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(10, 8, 28, 0.72);
    backdrop-filter: blur(4px);
    z-index: 600;
    align-items: center; justify-content: center;
    animation: rhFadeIn 0.35s ease;
}
#rabbit-hole-overlay.visible { display: flex; }

@keyframes rhFadeIn { from { opacity: 0; } to { opacity: 1; } }

#rabbit-hole-card {
    background: #0f0b2a;
    border: 1px solid rgba(139, 92, 246, 0.45);
    border-radius: 24px; padding: 40px 44px 36px;
    max-width: 420px; width: calc(100% - 48px);
    text-align: center;
    box-shadow: 0 0 0 1px rgba(139,92,246,0.15), 0 0 60px rgba(109,40,217,0.35), 0 32px 80px rgba(0,0,0,0.5);
    animation: rhCardIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative; overflow: hidden;
}
#rabbit-hole-card::before {
    content: '';
    position: absolute; top: 0; left: -100%; width: 300%; height: 2px;
    background: linear-gradient(90deg, transparent, #a78bfa, #818cf8, #a78bfa, transparent);
    animation: rhShimmer 2.8s linear infinite;
}
@keyframes rhShimmer { to { left: 100%; } }
#rabbit-hole-card::after {
    content: '';
    position: absolute; bottom: -80px; left: 50%; transform: translateX(-50%);
    width: 280px; height: 160px;
    background: radial-gradient(ellipse, rgba(109,40,217,0.2) 0%, transparent 70%);
    pointer-events: none;
}
@keyframes rhCardIn {
    from { opacity: 0; transform: scale(0.88) translateY(20px); }
    to   { opacity: 1; transform: scale(1)    translateY(0);    }
}

.rh-icon { font-size: 48px; line-height: 1; margin-bottom: 16px; display: block; animation: rhFloat 3s ease-in-out infinite; }
@keyframes rhFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.rh-eyebrow  { font-size: 10px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: #a78bfa; margin-bottom: 10px; }
.rh-title    { font-size: 1.6rem; font-weight: 800; color: #f5f3ff; line-height: 1.25; margin-bottom: 8px; }
.rh-subtitle { font-size: 0.85rem; color: #94a3b8; margin-bottom: 28px; line-height: 1.5; }
.rh-topic-badge {
    display: inline-block;
    background: rgba(139,92,246,0.18); border: 1px solid rgba(139,92,246,0.4);
    color: #c4b5fd; border-radius: 20px; padding: 3px 14px;
    font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
    text-transform: uppercase; margin-bottom: 24px;
}
.rh-btn-row { display: flex; gap: 12px; justify-content: center; }
#rh-go-btn {
    background: linear-gradient(135deg, #7c3aed, #4f46e5); color: white;
    border: none; border-radius: 50px; padding: 12px 28px;
    font-size: 14px; font-weight: 800; cursor: pointer; letter-spacing: 0.03em;
    box-shadow: 0 4px 20px rgba(109,40,217,0.45); transition: all 0.2s;
    position: relative; overflow: hidden;
}
#rh-go-btn:hover  { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(109,40,217,0.6); }
#rh-go-btn:active { transform: scale(0.97); }
#rh-pass-btn {
    background: rgba(255,255,255,0.06); color: #94a3b8;
    border: 1px solid rgba(255,255,255,0.12); border-radius: 50px;
    padding: 12px 22px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s;
}
#rh-pass-btn:hover { background: rgba(255,255,255,0.1); color: #cbd5e1; }

/* ── Rabbit Hole active bar ── */
#rabbit-hole-bar {
    display: none; position: fixed; bottom: 0; left: 0; right: 0;
    background: linear-gradient(135deg, #1e1040, #1e1b4b);
    border-top: 1px solid rgba(139,92,246,0.3);
    padding: 10px 20px; z-index: 400;
    align-items: center; justify-content: space-between; gap: 12px; font-size: 13px;
}
#rabbit-hole-bar.visible { display: flex; }
.rh-bar-label { display: flex; align-items: center; gap: 8px; color: #c4b5fd; font-weight: 600; white-space: nowrap; }
.rh-depth-dots { display: flex; gap: 5px; align-items: center; }
.rh-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(139,92,246,0.3); transition: background 0.3s; }
.rh-dot.active { background: #a78bfa; box-shadow: 0 0 6px #a78bfa; }
.rh-subtopic-name { color: #e2e8f0; font-size: 12px; font-style: italic; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#rh-exit-btn {
    background: rgba(139,92,246,0.15); border: 1px solid rgba(139,92,246,0.35);
    color: #c4b5fd; border-radius: 20px; padding: 5px 16px;
    font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; transition: all 0.2s; flex-shrink: 0;
}
#rh-exit-btn:hover { background: rgba(139,92,246,0.3); color: #e9d5ff; }

/* ── Whitelist Overlay ── */
#whitelist-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(10, 8, 30, 0.72); backdrop-filter: blur(6px);
    z-index: 600; align-items: center; justify-content: center;
}
#whitelist-overlay.visible { display: flex; animation: wlFadeIn 0.25s ease; }
@keyframes wlFadeIn { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: scale(1); } }
#whitelist-card {
    background: linear-gradient(160deg, #1e1b4b 0%, #0f172a 100%);
    border: 1px solid rgba(139,92,246,0.25); border-radius: 24px;
    padding: 44px 40px 36px; max-width: 400px; width: calc(100% - 40px);
    text-align: center;
    box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(139,92,246,0.1);
}
.wl-icon { font-size: 44px; display: block; margin-bottom: 16px; animation: wlPulse 2.5s ease-in-out infinite; }
@keyframes wlPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.08); opacity: 0.85; } }
.wl-eyebrow  { font-size: 10px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: #a78bfa; margin-bottom: 10px; }
.wl-title    { font-size: 1.5rem; font-weight: 800; color: #f5f3ff; line-height: 1.25; margin-bottom: 12px; }
.wl-subtitle { font-size: 0.875rem; color: #94a3b8; line-height: 1.6; margin-bottom: 30px; }
.wl-subtitle strong { color: #c4b5fd; font-weight: 600; }
.wl-btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
#wl-yes-btn {
    background: linear-gradient(135deg, #7c3aed, #4f46e5); color: white;
    border: none; border-radius: 50px; padding: 12px 26px;
    font-size: 14px; font-weight: 800; cursor: pointer; letter-spacing: 0.02em;
    box-shadow: 0 4px 20px rgba(109,40,217,0.45); transition: all 0.2s;
}
#wl-yes-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(109,40,217,0.6); }
#wl-yes-btn:active { transform: scale(0.97); }
#wl-no-btn {
    background: rgba(255,255,255,0.06); color: #94a3b8;
    border: 1px solid rgba(255,255,255,0.12); border-radius: 50px;
    padding: 12px 22px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s;
}
#wl-no-btn:hover { background: rgba(255,255,255,0.1); color: #cbd5e1; }
