@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
    /* Light theme — the site's default face. Base matched to Gifting Butler (2026-11-03):
       FULL Gifting Butler scheme (user's call, 2026-11-03): #F7F7F7 background, white cards,
       #111 ink, plum #5B2D8E as the primary accent; gold survives only as GB's secondary
       accent on the coupon elements (#FDF3D8 / #C49A28 / #8A6A10). */
    --bg-body:      #F4F1F9;
    --bg-card:      #ffffff;
    --bg-header:    rgba(244, 241, 249, 0.88);
    --text-primary: #111111;
    --text-secondary:#595959;
    --highlight:    #5B2D8E;
    --highlight-hover:#4D2F86;
    --silver:       #64748b;
    --border-color: rgba(91,45,142,0.13);
    --shadow-md:    0 12px 40px rgba(40,20,70,0.14);
    --font-main:    'Inter', sans-serif;
    --border-radius: 12px; /* unified border radius */
    --font-display: 'Poppins', sans-serif;

    /* Apple-Style Glassmorphism & Metallic Gold tokens */
    --glass-bg:     rgba(255,255,255,0.6);
    --glass-border: rgba(0,0,0,0.07);
    --glass-shine:  rgba(255,255,255,0.6);
    --glass-blur:   blur(20px);
    --gold-gradient:linear-gradient(135deg, #7C3AED 0%, #5B2D8E 50%, #3B1D63 100%);
    --glass-inner-border: inset 0 0 0 1px rgba(0,0,0,0.03);
    
    /* Logo Colors */
    --silver-logo:  #6b7280;
    --gold-logo:    #5B2D8E;

    color-scheme: light;
}

/* Dark theme — kept for anyone who saved it; no longer the default. */
body.dark-mode {
    --bg-body:      #0A0A0A;
    --bg-card:      #121212;
    --bg-header:    rgba(10, 10, 10, 0.75);
    --text-primary: #ffffff;
    --text-secondary:#a1a1aa;
    --highlight:    #D4AF37;
    --highlight-hover:#E0C04A;
    --silver:       #cbd5e1;
    --border-color: rgba(255,255,255,0.08);
    --shadow-md:    0 12px 40px rgba(0,0,0,0.65);
    --glass-bg:     rgba(20,20,20,0.55);
    --glass-border: rgba(255,255,255,0.1);
    --glass-shine:  rgba(255,255,255,0.15);
    --gold-gradient:linear-gradient(135deg, #F6E8A8 0%, #D4AF37 50%, #B37F15 100%);
    --glass-inner-border: inset 0 0 0 1px rgba(255,255,255,0.05);
    --silver-logo:  #b0b0b0;
    --gold-logo:    #D4AF37;
    color-scheme: dark;
}



/* ── Theme Toggle Icons via CSS (no JS display juggling) ─────── */
/* Dark mode  → show sun (click to go light)  */
/* Light mode → show moon (click to go dark)  */
.theme-btn .sun-icon  { display: none;   }
.theme-btn .moon-icon { display: inline; }
body.dark-mode .theme-btn .sun-icon  { display: inline; }
body.dark-mode .theme-btn .moon-icon { display: none;   }

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body      { font-family: var(--font-main); background-color: var(--bg-body); color: var(--text-primary); line-height: 1.6; transition: background-color 0.3s, color 0.3s; position: relative; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display, var(--font-main)); }
a         { text-decoration: none; color: inherit; transition: color 0.2s; }
ul        { list-style: none; }
.container{ max-width: 1440px; margin: 0 auto; padding: 0 20px; }

/* ── Custom Scrollbar ───────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(128,128,128,0.3); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(128,128,128,0.5); }

/* ── Liquid Glass Mixin ─────────────────────────────────────── */
.glass {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow:
        0 8px 32px rgba(0,0,0,0.3),
        inset 0 1.5px 0 var(--glass-shine),
        inset 0 -1px 0 rgba(0,0,0,0.1),
        var(--glass-inner-border);
    overflow: hidden;
}
body:not(.dark-mode) .glass {
    box-shadow:
        0 8px 32px rgba(40,20,70,0.08),
        inset 0 1.5px 0 var(--glass-shine),
        inset 0 -1px 0 rgba(0,0,0,0.03),
        var(--glass-inner-border);
}

/* ── Testing-mode banner ────────────────────────────────────── */
/* Slim notice in normal flow above the header on every page while
   the site is out for testing (the giveaway is not live yet). Not
   dismissible; scrolls away with the page, so the sticky header and
   the layout's sticky offsets are unaffected. */
.testing-banner { background: #EDE5F8; color: #5B2D8E; text-align: center; font-size: 0.85rem; line-height: 1.45; padding: 0.55rem 1rem; }

/* ── Header ─────────────────────────────────────────────────── */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background-color: var(--bg-header);
    backdrop-filter: blur(28px) saturate(200%);
    -webkit-backdrop-filter: blur(28px) saturate(200%);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 18px rgba(40,20,70,0.06);
    padding: 1rem 0;
    transition: background-color 0.3s;
}

.header-content { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

/* Logo Styling */
.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    color: inherit;
    transition: transform 0.2s ease, opacity 0.2s ease;
    cursor: pointer;
    flex-shrink: 0;
}
.logo-link:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}
.logo-container {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}
.logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo-text-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.logo-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    line-height: 1.05;
}
.logo-tagline {
    font-family: var(--font-display);
    font-size: 0.52rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: var(--highlight);
    margin-top: 0.15rem;
    text-transform: uppercase;
}
.txt-white {
    color: var(--text-primary);
}
.txt-silver {
    color: var(--silver-logo);
}
.txt-shiny {
    color: var(--highlight);
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 8px rgba(255,255,255,0.15));
}

.highlight  { color: var(--highlight); }

.gold-text, .shiny-text {
    background: var(--gold-gradient);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--highlight); /* fallback */
    text-shadow: 0 2px 10px rgba(255,255,255,0.15);
    /* animation removed */
}

.cent-sign  { display: inline-block; position: relative; }
.cent-sign::after {
    content: ''; position: absolute; top: 18%; bottom: 18%; left: 50%;
    width: 2px; background-color: currentColor; transform: translateX(-50%);
}

/* ── Liquid Glass Theme Button ──────────────────────────────── */
.theme-btn {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow:
        0 4px 16px rgba(0,0,0,0.25),
        inset 0 1.5px 0 var(--glass-shine),
        inset 0 -1px 0 rgba(0,0,0,0.1),
        var(--glass-inner-border);
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1);
    flex-shrink: 0;
    filter: brightness(1.02);
}
.theme-btn:hover {
    transform: scale(1.12);
    box-shadow:
        0 8px 24px rgba(0,0,0,0.35),
        inset 0 1.5px 0 var(--glass-shine),
        0 0 0 1px var(--highlight);
    color: var(--highlight);
    filter: brightness(1.06);
}
.theme-btn svg { width: 18px; height: 18px; }

/* ── Search Bar ─────────────────────────────────────────────── */
.search-bar { flex: 1; max-width: 500px; position: relative; display: flex; align-items: center; margin: 0 auto; }
.search-bar input {
    width: 100%; padding: 0.75rem 1rem; padding-right: 3rem;
    border-radius: 9999px !important;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    color: var(--text-primary);
    box-shadow:
        inset 0 1.5px 0 var(--glass-shine),
        inset 0 -1px 0 rgba(0,0,0,0.08),
        var(--glass-inner-border),
        0 4px 16px rgba(0,0,0,0.1);
    transition: border-color 0.2s, box-shadow 0.2s;
    filter: brightness(1.01);
}
.search-bar input:focus {
    outline: none;
    border-color: var(--highlight);
    box-shadow: inset 0 1.5px 0 var(--glass-shine), 0 0 0 3px rgba(212,175,55,0.18);
    filter: brightness(1.03);
}
.search-bar button { position: absolute; right: 0.5rem; background: none; border: none; color: var(--text-secondary); cursor: pointer; padding: 0.5rem; display: flex; align-items: center; }

/* ── Mobile Nav ─────────────────────────────────────────────── */
.main-nav { display: none; }

/* ── Layout ─────────────────────────────────────────────────── */
.main-content {
    display: grid; grid-template-columns: 250px 1fr;
    gap: 1.75rem; align-items: start; padding-top: 2rem; padding-bottom: 2rem;
}
/* Ad-blocker fallback (JS adds .no-ads when the sponsor rail is not actually visible): the deals take the rail's space back so the layout looks normal. */
.main-content.no-ads { grid-template-columns: 250px 1fr; }
/* Sponsored slot (the CR Design ad from the emails). Owner,
   2026-11-15: moved out of the side rail to a centred strip at
   the bottom, under the deals and the pagination — the same
   placement phones already had. The side column is valuable
   space; while there is one sponsor, the bottom keeps the ad
   seen on every page without costing the deals their width.
   When more sponsors arrive, the rail can come back. */
.ad-rail { position: static; grid-column: 1 / -1; width: 100%; max-width: 430px; margin: 0.5rem auto 0; }
.ad-rail-label {
    font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--text-secondary); margin-bottom: 0.5rem;
}
.ad-rail img {
    width: 100%; height: auto; display: block; border-radius: 14px;
    border: 1px solid var(--border-color); box-shadow: 0 8px 22px rgba(40,20,70,0.10);
}
.ad-rail-contact { display: flex; flex-direction: column; gap: 0.3rem; margin-top: 0.65rem; }
.ad-rail-contact a { color: var(--text-secondary); text-decoration: none; font-size: 0.85rem; }
.ad-rail-contact a:hover { color: var(--highlight); }
@media (max-width: 1150px) {
    .main-content { grid-template-columns: 250px 1fr; }
    /* Ads must work on tablets and phones too (owner, 2026-11-12:
       most visitors are on phones) — below this width the rail stops
       being a side column and becomes a centered strip under the
       deals instead of disappearing. */
    .ad-rail { position: static; grid-column: 1 / -1; width: 100%; max-width: 430px; margin: 0 auto; }
    .main-content.no-ads .ad-rail { display: none; }
}
.sidebar {
    position: sticky; top: 6rem;
    max-height: calc(100vh - 7rem); overflow-y: auto;
    scrollbar-width: none;
    padding-right: 2px;
}
.sidebar::-webkit-scrollbar { display: none; }
/* ── Sidebar scroll hint ──────────────────────────────────────
   The sidebar scrolls internally with its scrollbar hidden, so
   nothing tells the visitor more sits below (owner, 2026-11-15).
   The wrap is a zero-height sticky strip at the end of the
   sidebar's content: while the sidebar is scrolled up it pins the
   button to the visible bottom edge; at the very bottom it rests
   in place and app.js has already faded the button out. Only the
   button itself takes clicks (the wrap never blocks the content
   under it). Desktop only in effect — the sidebar is display:none
   on phones, which takes the button with it. */
.sidebar-scroll-hint-wrap {
    position: sticky; bottom: 0.6rem; height: 0; z-index: 6;
    pointer-events: none;
}
.sidebar-scroll-hint {
    position: absolute; bottom: 0; left: 50%;
    transform: translate(-50%, 6px);
    /* Arrow only (owner, 2026-11-15: keep the site simple — the
       chevron alone, in the same soft plum circle the "More below"
       pill used to stretch into). */
    width: 34px; height: 34px; padding: 0;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--highlight); color: #fff;
    border: none; cursor: pointer; pointer-events: none;
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(91,45,142,0.35);
    opacity: 0; visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}
.sidebar-scroll-hint.show {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translate(-50%, 0);
}
.sidebar-scroll-hint:hover { background: #4A2473; }
.sidebar-scroll-hint svg { flex: none; animation: sidebarHintBob 1.8s ease-in-out infinite; }
@keyframes sidebarHintBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(2px); }
}
.sidebar-widget {
    margin-bottom: 2rem; background: #F9F6FD;
    border: 1px solid rgba(91,45,142,0.09); border-radius: 16px; padding: 1.1rem 1.1rem 1.2rem;
}
.sidebar-widget > h3 {
    font-size: 1rem; margin-bottom: 0.85rem; color: var(--text-primary);
    border-bottom: 1px solid var(--border-color); padding-bottom: 0.5rem; display: block;
    letter-spacing: 0.03em;
}

/* ── Category List with Liquid Glass Hover ──────────────────── */
.category-list li { margin-bottom: 0.25rem; }
.category-list a {
    color: var(--text-secondary);
    display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
    padding: 0.45rem 1rem; border-radius: 9999px !important;
    transition: all 0.2s; border: 1px solid transparent;
    font-size: 0.9rem;
}
.category-list a .cat-count {
    background: #EDE5F8; color: var(--highlight);
    border-radius: 999px; font-size: 0.75rem; font-weight: 600;
    padding: 0.08rem 0.55rem; line-height: 1.5; flex: none;
}
.category-list a:hover,
.category-list a.active {
    background:  var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-color: var(--glass-border);
    box-shadow: inset 0 1px 0 var(--glass-shine), var(--glass-inner-border), 0 4px 16px rgba(0,0,0,0.15);
    color: var(--highlight);
    padding-left: 1.25rem;
}

/* ── Giveaway Sidebar Widget ────────────────────────────────── */
.giveaway-sidebar-widget {
    background: #F9F6FD;
    border: 1px solid rgba(91,45,142,0.09);
    border-radius: var(--border-radius);
    padding: 1.25rem;
    box-shadow: none;
}
.giveaway-sidebar-badge {
    font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em;
    color: var(--highlight); margin-bottom: 0.5rem;
    text-transform: uppercase;
}
.giveaway-sidebar-title {
    font-size: 1.15rem; font-weight: 700; color: var(--text-primary);
    line-height: 1.3; margin-bottom: 0.6rem;
}
.giveaway-sidebar-prize {
    font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 1rem;
}
.giveaway-sidebar-btn {
    background: linear-gradient(135deg, var(--highlight) 0%, var(--highlight-hover) 100%);
    color: #fff; font-weight: 700; font-size: 0.85rem;
    border: none; border-radius: var(--border-radius); padding: 0.65rem 1rem;
    cursor: pointer; transition: all 0.2s; letter-spacing: 0.02em;
    box-shadow: 0 2px 12px rgba(91,45,142,0.28);
}
.giveaway-sidebar-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 18px rgba(91,45,142,0.4); }
body.dark-mode .giveaway-sidebar-btn { color: #000; }

/* ── Giveaway Coming-Soon Teaser (sidebar + modal) ─────────── */
/* Branded gift mark (SVG symbol #gwGiftMark in index.html): sidebar
   teaser 44px, modal teaser 54px, modal header chip 30px. */
.gw-soon-icon { margin-bottom: 0.35rem; }
.gw-gift-mark { display: block; margin: 0 auto; width: 44px; height: 44px; }
.giveaway-soon-block .gw-gift-mark { width: 54px; height: 54px; }
.giveaway-header-bar .gw-gift-mark { width: 30px; height: 30px; margin: 0 0.5rem 0 0; }
.gw-soon-pill {
    display: inline-block; background: #EDE5F8; color: var(--highlight);
    border-radius: 999px; padding: 0.3rem 0.85rem; margin: 0.1rem 0 0.55rem;
    font-size: 0.68rem; font-weight: 800; letter-spacing: 0.09em;
}
.gw-soon-line { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; margin: 0.35rem 0 0.6rem; }
.gw-soon-ready { font-weight: 800; color: var(--highlight); margin-top: 0.55rem; }
.giveaway-soon-block { text-align: center; padding: 0.5rem 0 0.25rem; }
/* Launch-waitlist email capture inside the teasers (2026-11-14). */
.gw-waitlist-form { margin-top: 0.35rem; }
.gw-waitlist-input { margin-bottom: 0.55rem; }
.gw-waitlist-err { color: #dc2626; font-size: 0.78rem; line-height: 1.45; margin: -0.15rem 0 0.5rem; }
.gw-soon-promise { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.5; margin-top: 0.5rem; }
.gw-waitlist-done { font-weight: 700; color: var(--highlight); font-size: 0.88rem; line-height: 1.55; margin-top: 0.55rem; }
.gw-soon-alt { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.55; margin-top: 0.65rem; }
.gw-soon-alt-btn {
    background: none; border: none; padding: 0; font: inherit;
    color: var(--highlight); font-weight: 700; cursor: pointer;
    text-decoration: underline; text-underline-offset: 2px;
}

/* ── Giveaway Nav Link ──────────────────────────────────────── */
.giveaway-nav-link {
    background: linear-gradient(135deg, var(--highlight), var(--highlight-hover));
    color: #fff !important; font-weight: 700 !important; font-size: 0.82rem;
    padding: 0.3rem 0.8rem !important; border-radius: 20px;

    letter-spacing: 0.03em;
}


/* ── Custom Dropdown ────────────────────────────────────────── */
.custom-dropdown {
    position: relative;
    width: 220px;
}
.dropdown-selected {
    padding: 0.6rem 1.25rem; border-radius: 9999px !important;
    background: var(--glass-bg); backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    color: var(--text-primary); border: 1px solid var(--glass-border);
    box-shadow: inset 0 1px 0 var(--glass-shine), var(--glass-inner-border), 0 4px 16px rgba(0,0,0,0.1);
    cursor: pointer; display: flex; justify-content: space-between; align-items: center;
    user-select: none; font-weight: 500;
}

.dropdown-selected svg { margin-left: 10px; opacity: 0.7; transition: transform 0.2s; }
.dropdown-items.show + .dropdown-selected svg { transform: rotate(180deg); }

.dropdown-items {
    position: absolute; top: calc(100% + 5px); left: 0; right: 0;
    background: var(--glass-bg); backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border); box-shadow: inset 0 1px 0 var(--glass-shine), var(--glass-inner-border), 0 8px 32px rgba(0,0,0,0.5);
    border-radius: 22px !important;
    overflow: hidden; z-index: 100; padding: 6px;
    display: none;
    flex-direction: column;
}
.dropdown-items.show { display: flex; }
.dropdown-item {
    padding: 0.7rem 1rem; cursor: pointer; color: var(--text-primary);
    transition: all 0.25s ease; font-size: 0.95rem;
    border-radius: 14px;
}
.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}
body:not(.dark-mode) .dropdown-item:hover {
    background: rgba(15, 23, 42, 0.04);
    box-shadow: inset 0 1px 0 rgba(15, 23, 42, 0.05), inset 0 0 0 1px rgba(15, 23, 42, 0.02);
}
.dropdown-item.active {
    background: rgba(212, 175, 55, 0.12);
    color: var(--highlight);
    font-weight: 600;
    border-left-color: var(--highlight);
}

/* ── Feed ───────────────────────────────────────────────────── */
.feed-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }


/* ── Deal Grid ──────────────────────────────────────────────── */
.deal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 1250px) { .deal-grid { grid-template-columns: repeat(2, 1fr); } }

/* ── Pagination ─────────────────────────────────────────────── */
.pagination { display: flex; justify-content: center; align-items: center; gap: 0.45rem; flex-wrap: wrap; margin-top: 1.75rem; }
.page-btn {
    background: var(--bg-card); color: var(--highlight);
    border: 1.5px solid var(--highlight); border-radius: 999px;
    padding: 0.45rem 0.95rem; font-weight: 700; font-size: 0.9rem;
    cursor: pointer; transition: all 0.2s; font-family: inherit;
}
.page-btn:not(.page-nav) { min-width: 2.5rem; }
.page-btn:hover:not(:disabled) { background: var(--highlight); color: #fff; }
.page-btn.active { background: linear-gradient(135deg, var(--highlight), var(--highlight-hover)); color: #fff; border-color: transparent; }
body.dark-mode .page-btn.active { color: #000; }
.page-btn:disabled { opacity: 0.4; cursor: default; }
.page-gap { padding: 0 0.15rem; color: #6b6b7a; user-select: none; }

/* ── Deal Card ──────────────────────────────────────────────── */
.deal-card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius); overflow: hidden;
    border: 1px solid var(--border-color);
    transition: box-shadow 0.22s, border-color 0.22s;
    display: flex; flex-direction: column; cursor: pointer; position: relative;
}
.deal-card:hover {
    box-shadow: 0 8px 24px rgba(91,45,142,0.16), 0 0 0 1px var(--highlight);
    border-color: var(--highlight);
}

.card-image { height: 210px; background-color: #fff; position: relative; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: contain; padding: 0.5rem; background-color: #fff; }
.card-content { padding: 1rem; flex: 1; display: flex; flex-direction: column; }
.card-meta { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; flex-wrap: nowrap; }
.card-source { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--highlight); font-weight: 700; flex: none; }
.card-category {
    font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em;
    color: var(--text-secondary); font-weight: 600;
    min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.card-category::before { content: "\00B7"; margin-right: 0.5rem; font-weight: 700; }
.card-desc {
    color: var(--text-secondary); font-size: 0.88rem; line-height: 1.45;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; margin: 0.3rem 0 0.8rem; min-height: 2.55rem;
}
.card-title {
    font-size: 1.05rem; font-weight: 600; margin-bottom: 0.5rem;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    min-height: 2.75rem;
}
.card-price { display: flex; align-items: baseline; gap: 0.5rem; margin-bottom: 0.85rem; flex-wrap: wrap; }
.original-price { font-size: 0.88rem; text-decoration: line-through; color: var(--text-secondary); }
.discount-badge {
    background: rgba(203,162,88,0.12); color: var(--highlight);
    padding: 0.2rem 0.45rem; border-radius: var(--border-radius); font-size: 0.75rem; font-weight: 700;
}
.view-deal-btn {
    background: linear-gradient(135deg, var(--highlight) 0%, var(--highlight-hover) 100%);
    color: #fff; border: none; padding: 0.6rem 1rem; border-radius: 999px;
    font-weight: 700; cursor: pointer; transition: all 0.2s; text-align: center;
    box-shadow: 0 2px 10px rgba(91,45,142,0.25);
}
body.dark-mode .view-deal-btn { color: #000; }
.view-deal-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(91,45,142,0.4); }
/* flex-wrap is the guarantee the row can never spill out of the card:
   the four buttons (up / down / Share / Save) cannot shrink below
   their content width, so on narrow cards an unwrapped row overflowed
   and the card's overflow:hidden clipped Save mid-word (owner's phone
   screenshot, 2026-11-15). Wrapping changes nothing where the row
   already fits on one line. */
.vote-container { display: flex; align-items: center; gap: 0.5rem; padding-top: 0.75rem; flex-wrap: wrap; }
.view-deal-btn { margin-top: auto; }
.vote-btn {
    background: none; border: none; color: var(--text-secondary);
    cursor: pointer; display: flex; align-items: center; gap: 0.25rem;
    font-size: 0.9rem; transition: all 0.2s; padding: 0.25rem 0.55rem;
    border-radius: 999px;
}
.vote-btn:hover { color: var(--text-primary); }
.vote-btn.active.upvote-btn   { color: var(--highlight); background: rgba(91,45,142,0.12); }
.vote-btn.active.downvote-btn { color: #dc2626; background: rgba(220,38,38,0.10); }
@keyframes votePop { 0% { transform: scale(1); } 40% { transform: scale(1.28); } 100% { transform: scale(1); } }
.vote-btn.pop { animation: votePop 0.35s ease; }

/* ── Save deals (bookmark on cards + detail modal) ──────── */
.save-btn.saved { color: var(--highlight); background: rgba(91,45,142,0.12); }
.save-btn.saved svg { fill: currentColor; }
.save-modal-btn { background: rgba(91,45,142,0.12); color: var(--highlight); }
.save-modal-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(91,45,142,0.25); }
.save-modal-btn.saved { background: var(--highlight); color: #fff; }
.save-modal-btn.saved svg { fill: currentColor; }
.gone-badge {
    position: absolute; top: 10px; left: 10px; z-index: 2;
    background: #6b7280; color: #fff;
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em;
    padding: 0.25rem 0.55rem; border-radius: 999px;
}

/* ── Share (deal cards + detail modal) ──────────────────── */
.share-btn { margin-left: auto; }
.share-modal-btn { background: rgba(91,45,142,0.12); color: var(--highlight); }
.share-modal-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(91,45,142,0.25); }
.share-menu-ov { position: fixed; inset: 0; z-index: 1200; background: rgba(30,20,50,0.45); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.share-menu { background: var(--bg-card); border-radius: 1rem; box-shadow: 0 24px 64px rgba(0,0,0,0.25); padding: 0.6rem; min-width: 270px; max-width: 330px; width: 100%; }
.share-menu-head { display: flex; justify-content: space-between; align-items: center; padding: 0.4rem 0.6rem 0.6rem; }
.share-menu-head strong { font-size: 0.95rem; color: var(--text-primary); }
.share-menu-close { background: none; border: none; font-size: 1.1rem; line-height: 1; cursor: pointer; color: var(--text-secondary); }
.share-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.72rem 0.9rem; border-radius: 0.7rem; text-decoration: none; color: var(--text-primary); font-weight: 600; font-size: 0.92rem; cursor: pointer; background: none; border: none; width: 100%; text-align: left; font-family: inherit; box-sizing: border-box; }
.share-row:hover { background: rgba(91,45,142,0.10); }
.share-ico { font-size: 1.2rem; width: 1.6rem; text-align: center; }
/* The ••• "More options" glyph is a text character, not an emoji: at the
   emoji size (1.2rem) it renders far heavier than the other rows' icons.
   Shrink it into the same 1.6rem box at emoji-comparable visual weight. */
.share-ico-dots { font-size: 0.95rem; letter-spacing: 0.08em; line-height: 1; color: #5B2D8E; display: inline-flex; align-items: center; justify-content: center; height: 1.2rem; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn { display: inline-block; padding: 0.75rem 1.5rem; border-radius: 999px; font-weight: 600; cursor: pointer; transition: all 0.2s; border: none; text-align: center; }
.btn-primary { background: linear-gradient(135deg, var(--highlight), var(--highlight-hover)); color: #fff; }
body.dark-mode .btn-primary { color: #000; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(91,45,142,0.35); }
.full-width { width: 100%; }

/* ── Modal Base ─────────────────────────────────────────────── */
.modal {
    display: none; position: fixed; z-index: 1000; inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    justify-content: center; align-items: flex-start; overflow-y: auto;
}
.modal-content {
    background-color: var(--bg-card);
    margin: 5% auto; padding: 2rem;
    border: 1px solid var(--glass-border);
    box-shadow: inset 0 1px 0 var(--glass-shine), 0 30px 60px rgba(0,0,0,0.5);
    width: 90%; max-width: 700px; border-radius: var(--border-radius); position: relative;
}
.close-modal {
    position: absolute; right: 1.25rem; top: 0.9rem; font-size: 2rem;
    font-weight: 700; color: var(--text-secondary); cursor: pointer; transition: color 0.2s; line-height: 1;
}
.close-modal:hover { color: var(--text-primary); }

/* ── Classy Giveaway Modal ──────────────────────────────────── */
.giveaway-modal-content {
    max-width: 480px;
    padding: 0;
    overflow: hidden;
    background: var(--bg-card);
}
.giveaway-header-bar {
    background: #EDE5F8;
    border-bottom: 1px solid rgba(91,45,142,0.18);
    padding: 1rem 1.75rem 0.85rem;
    display: flex; align-items: center; justify-content: center;
}
.giveaway-badge-tag {
    font-size: 0.65rem; font-weight: 800; letter-spacing: 0.18em;
    color: var(--highlight); text-transform: uppercase;
    background: rgba(255,255,255,0.65);
    padding: 0.3rem 0.85rem; border-radius: var(--border-radius);
    border: 1px solid rgba(91,45,142,0.28);
}
.giveaway-body { padding: 1.75rem; text-align: center; }
.giveaway-title {
    font-size: 1.6rem; font-weight: 700; line-height: 1.2;
    color: var(--text-primary); margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}
.giveaway-subtitle { font-size: 0.88rem; color: var(--text-secondary); margin-bottom: 1.5rem; }

/* Prize block */
.giveaway-prize-block {
    background: linear-gradient(135deg, #7C3AED 0%, #5B2D8E 55%, #3B1D63 100%);
    border: none;
    border-radius: var(--border-radius); padding: 1.25rem; margin-bottom: 1.5rem;
    box-shadow: 0 10px 28px rgba(59,29,99,0.35), inset 0 1px 0 rgba(255,255,255,0.18);
}
.prize-label {
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em;
    color: rgba(255,255,255,0.75); margin-bottom: 0.35rem;
}
.prize-amount {
    font-size: 3.2rem; font-weight: 800; color: #5B2D8E;
    line-height: 1; margin-bottom: 1rem; letter-spacing: -0.03em;
    background: #EDE5F8;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: var(--border-radius);
    padding: 0.5rem 1.5rem;
    display: inline-block;
    box-shadow: 0 8px 22px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.55);
}
.prize-scale-note { font-size: 0.8rem; color: rgba(255,255,255,0.85); margin-bottom: 0.85rem; }
.prize-scale-note strong { color: #fff; }
.prize-scale-bar {
    display: flex; justify-content: space-between; gap: 4px;
}
.prize-tier {
    flex: 1; font-size: 0.72rem; font-weight: 700; padding: 0.3rem 0 0.35rem;
    border-radius: var(--border-radius); text-align: center;
    background: rgba(255,255,255,0.10);
    color: rgba(255,255,255,0.72); border: 1px solid rgba(255,255,255,0.18);
    transition: all 0.2s; line-height: 1.25;
}
.prize-tier .tier-need {
    display: block; font-size: 0.52rem; font-weight: 600;
    letter-spacing: 0.02em; opacity: 0.75; margin-top: 0.1rem;
}
.prize-tier.active {
    background: #EDE5F8;
    color: #5B2D8E; border-color: #EDE5F8;
}
.prize-progress {
    height: 8px; border-radius: 999px; margin-top: 0.85rem;
    background: rgba(255,255,255,0.18); overflow: hidden;
}
.prize-progress-fill {
    height: 100%; width: 0%; border-radius: 999px;
    background: #C9A8F0;
    transition: width 0.5s ease;
}
.prize-next { font-size: 0.78rem; color: rgba(255,255,255,0.88); margin-top: 0.55rem; min-height: 1em; }
.entry-circles { display: flex; justify-content: center; gap: 0.45rem; margin: 0.9rem 0 0.5rem; flex-wrap: wrap; }
.ec-dot {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; font-weight: 800; color: #fff;
    background: linear-gradient(135deg, #7C3AED, #5B2D8E);
    box-shadow: 0 4px 12px rgba(91,45,142,0.35), inset 0 1px 0 rgba(255,255,255,0.3);
}
.ec-dot.base { background: linear-gradient(135deg, #7C3AED, #5B2D8E); color: #fff; box-shadow: 0 4px 12px rgba(91,45,142,0.35), inset 0 1px 0 rgba(255,255,255,0.3); }
.ec-dot.empty {
    background: transparent; color: rgba(91,45,142,0.4);
    border: 2px dashed rgba(91,45,142,0.35); box-shadow: none;
}

/* Form */
.giveaway-form-block { text-align: left; }
.giveaway-input {
    width: 100%; padding: 0.85rem 1.25rem;
    border-radius: 999px;
    background: var(--glass-bg); backdrop-filter: var(--glass-blur);
    color: var(--text-primary); font-size: 0.95rem; margin-bottom: 0.75rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.giveaway-input:focus { outline: none; border-color: var(--highlight); box-shadow: 0 0 0 3px rgba(91,45,142,0.15); }
.giveaway-submit-btn {
    width: 100%; padding: 0.9rem;
    background: linear-gradient(135deg, var(--highlight) 0%, var(--highlight-hover) 100%);
    color: #fff; font-weight: 700; font-size: 0.95rem; letter-spacing: 0.02em;
    border: none;    border-radius: 999px;
    transition: all 0.2s; box-shadow: 0 4px 18px rgba(91,45,142,0.3);
}
.giveaway-submit-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(91,45,142,0.4); }
body.dark-mode .giveaway-submit-btn { color: #000; }
.giveaway-legal {
    font-size: 0.72rem; color: var(--text-secondary); text-align: center;
    margin-top: 0.85rem; line-height: 1.5;
}

/* Success */
.giveaway-success-block { text-align: center; padding: 0.5rem 0; }
.success-checkmark {
    width: 56px; height: 56px; border-radius: var(--border-radius);
    background: linear-gradient(135deg, rgba(91,45,142,0.14), rgba(91,45,142,0.06));
    border: 2px solid rgba(91,45,142,0.35);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; color: var(--highlight);
    margin: 0 auto 1rem; font-weight: 700;
}
.success-title { font-size: 1.3rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.4rem; }
.success-subtitle { font-size: 0.88rem; color: var(--text-secondary); margin-bottom: 1.25rem; }
.amazon-browse-btn {
    display: inline-block; padding: 0.7rem 1.5rem;
    background: linear-gradient(135deg, var(--highlight), var(--highlight-hover));
    color: #fff; font-weight: 700; font-size: 0.9rem;
    border-radius: var(--border-radius); text-decoration: none;
    box-shadow: 0 3px 14px rgba(91,45,142,0.32);
    transition: all 0.2s; margin-bottom: 0.65rem;
}
.amazon-browse-btn:hover { transform: translateY(-1px); box-shadow: 0 5px 20px rgba(91,45,142,0.45); }
body.dark-mode .amazon-browse-btn { color: #000; }
.success-note { font-size: 0.75rem; color: var(--text-secondary); }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer { background-color: var(--bg-card); border-top: 1px solid var(--border-color); padding: 3rem 0; margin-top: 4rem; }
.footer-content { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.5rem; }
.footer-brand { font-size: 1.2rem; font-weight: 700; color: var(--text-primary); }
.footer-tagline { color: var(--text-secondary); font-size: 0.9rem; }
.footer-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.footer-nav a { color: var(--text-secondary); font-size: 0.9rem; }
.footer-nav a:hover { color: var(--highlight); }
.footer-copyright { color: var(--text-secondary); font-size: 0.8rem; }
.footer-disclosure {
    max-width: 750px; margin: 0 auto; padding: 0.85rem 1.25rem;
    background: rgba(203,162,88,0.04); border: 1px solid rgba(203,162,88,0.1);
    border-radius: var(--border-radius); font-size: 0.82rem; color: var(--text-secondary); line-height: 1.5; text-align: center;
}

/* ── No Results ─────────────────────────────────────────────── */
.no-results {
    grid-column: 1 / -1; text-align: center; padding: 3rem;
    color: var(--text-secondary); font-size: 1.1rem;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
    .main-content { grid-template-columns: 1fr; }
    .sidebar { display: none; }
    /* Account menu: on phone widths the avatar sits at the left of the
       header, so a menu right-aligned to the avatar ran off the left
       edge of the screen (only its right-side chips stayed visible —
       seen in the owner's 2026-11-12 phone video). Anchor the menu to
       the sticky header itself instead: full-width header, menu pinned
       to its right edge just below it, never wider than the screen. */
    .auth-area { position: static; }
    .auth-menu, .notes-panel { top: calc(100% + 6px); right: 8px; width: min(300px, calc(100vw - 16px)); }
    .deal-grid { grid-template-columns: 1fr; }
    .header-content { flex-wrap: wrap; }
    /* One fixed phone header at every width (owner's video,
       2026-11-12: sign-out and search kept swapping sides and the
       search got cut off). The base .search-bar is flex:1 — basis 0% —
       which silently beat the old width:100% and let the search
       squeeze onto whatever row had room. Now: logo + sign-in always
       share row 1 (the logo shrinks a touch so they always fit),
       search always gets its own full-width row, nav strip under it. */
    .header-content { row-gap: 0.6rem; column-gap: 0.5rem; }
    /* The logo must NEVER shrink (owner, 2026-11-12: on phones the
       "CENTS" end of COMMONCENTS got cut off — the shrinkable
       logo-link let the auth column squeeze it). The logo is a fixed
       block now, a touch smaller, with nowrap on both lines, sized
       so logo + sign-in always fit side by side down to 360px. */
    .logo-link { flex: 0 0 auto; }
    .logo-container { gap: 0.5rem; }
    .logo-text-group { flex: none; }
    .logo-mark-img { height: 32px; }
    .logo-title { font-size: 1rem; white-space: nowrap; }
    .logo-tagline { font-size: 0.42rem; letter-spacing: 0.12em; white-space: nowrap; }
    .auth-btn { padding: 0.38rem 0.85rem; font-size: 0.8rem; }
    .auth-area { flex: 0 0 auto; }
    /* The search no longer runs side to side (owner on Pixel 8 and
       folding phones, 2026-11-12: full-width still looked too big;
       88% still read as "almost end to end" on the iPhone 16 Pro, and
       72% still read as "loooong" — alone on its row it was the
       widest thing in the header). It is now a compact centered pill,
       at most 270px and never wider than 60% of the screen — reads as
       a search box, not a banner. Where it fits beside the logo
       (wide tablets) it sits between logo and sign-in; otherwise it
       wraps to its own centered row. */
    .search-bar { order: 3; flex: 0 1 270px; width: min(60%, 270px); max-width: 270px; min-width: 0; margin: 0.4rem auto 0; }
    /* The search kept its chunky desktop padding on phones and read
       as a big empty lozenge floating on its own row (owner: "the big
       search bar looks funny", 2026-11-12). Slimmer profile here. */
    .search-bar input { padding: 0.55rem 0.9rem; padding-right: 2.6rem; font-size: 0.92rem; }
    .search-bar button { right: 0.3rem; padding: 0.35rem; }
    /* Pagination must stay on ONE line at phone widths (owner's SE
       shot, 2026-11-12: "Next" wrapped under the numbers at 375px
       while it fit at 393px). Tighter buttons + no wrap. */
    .pagination { flex-wrap: nowrap; gap: 0.3rem; }
    .page-btn { padding: 0.45rem 0.55rem; font-size: 0.88rem; }
    .page-btn:not(.page-nav) { min-width: 2.1rem; }
    /* Card vote row (owner's phone screenshots, 2026-11-15): first
       Save was clipped at the card edge; once wrapping stopped the
       clip, Save instead folded ALONE onto a second line at the
       left of a 392px phone — stranded under up / down / Share.
       The row is now sized to fit on ONE line at phone widths.
       The math (0.85rem labels, 16px icons, worst case of two-digit
       counts + "Saved"): up ≈ 48px + down ≈ 48px + Share ≈ 70px +
       Saved ≈ 70px + three 4px row gaps ≈ 248px total, against the
       card's inner width of 286px at a 360px viewport (360 − 40
       container padding − 2 card border − 32 card-content padding)
       and 356px at 430px — headroom even if a phone renders text a
       tenth wider than the model. The base rule's flex-wrap stays
       as the safety net for the 560–900px two-column band, where
       cards are narrower than a phone's single column. */
    .vote-container { gap: 0.25rem; }
    .vote-btn { padding: 0.3rem 0.35rem; font-size: 0.85rem; white-space: nowrap; }
    /* Compact list rows (owner, 2026-11-15 — the SlickDeals and
       Dan's Deals phone views show 5–7 deals per screen; ours showed
       ONE giant card). In every browsing view (All Deals, My Feed,
       categories, search, Free Stuff) the card becomes a horizontal
       row: the deal's clean picture as a ~104px thumbnail on the
       left, then the store/category line, title, price row and the
       vote row. No description and no View Deal button — the row
       itself opens the same modal as always (the card's own click
       handler), and the modal keeps its Get This Deal button. Share
       and Save go icon-only so the vote row fits on ONE line beside
       the thumbnail. The Saved view is a personal shelf, not a
       scanning feed, so it keeps the big cards — renderDeals marks
       its grid .saved-view and every rule here steps aside for it. */
    .deal-grid { gap: 0.6rem; }
    .deal-grid:not(.saved-view) .deal-card { flex-direction: row; }
    /* The thumbnail box is FIXED at 104x104 (owner's video,
       2026-11-15): with height:auto a tall thin picture (a water
       bottle) stretched its whole row to card height. The img rule
       above already fits the picture inside with object-fit:contain
       on white, so every row is now the same height whatever shape
       the picture is — portrait, landscape or square. */
    .deal-grid:not(.saved-view) .card-image { flex: 0 0 104px; width: 104px; height: 104px; }
    .deal-grid:not(.saved-view) .card-image img { padding: 0.35rem; }
    .deal-grid:not(.saved-view) .card-content { padding: 0.6rem 0.75rem 0.65rem 0.3rem; min-width: 0; }
    .deal-grid:not(.saved-view) .card-meta { margin-bottom: 0.25rem; }
    .deal-grid:not(.saved-view) .card-title { font-size: 0.95rem; min-height: 0; margin-bottom: 0.3rem; }
    .deal-grid:not(.saved-view) .card-desc { display: none; }
    .deal-grid:not(.saved-view) .card-price { margin-bottom: 0.4rem; }
    .deal-grid:not(.saved-view) .card-date { display: none; }
    .deal-grid:not(.saved-view) .view-deal-btn,
    .deal-grid:not(.saved-view) .freebie-btn { display: none; }
    .deal-grid:not(.saved-view) .dead-note { display: none; }
    .deal-grid:not(.saved-view) .freebie-when { margin: 0.05rem 0 0.4rem; }
    .deal-grid:not(.saved-view) .new-badge,
    .deal-grid:not(.saved-view) .expired-badge,
    .deal-grid:not(.saved-view) .free-badge,
    .deal-grid:not(.saved-view) .gone-badge { top: 6px; left: 6px; }
    .deal-grid:not(.saved-view) .new-badge-freebie { left: auto; right: 6px; }
    .deal-grid:not(.saved-view) .vote-btn { padding: 0.25rem 0.3rem; }
    .deal-grid:not(.saved-view) .vote-btn.share-btn span,
    .deal-grid:not(.saved-view) .vote-btn .save-label { display: none; }
    /* "Today's Best Deals" carries an inline 1.5rem size; at phone
       widths it wrapped into a tall stack next to the sort control. */
    .feed-header { gap: 0.5rem 0.75rem; }
    .feed-header h1 { font-size: 1.22rem !important; }
    /* The nav strip is RETIRED on phones (owner, 2026-11-15): it ate
       a full row of the screen. Everything it showed now lives in
       the hamburger's menu panel (.mobile-nav-panel), and the top
       row is just hamburger + logo + the round icon buttons. The
       .nav-link rules below stay for the strip markup, which remains
       in the page (desktop hides it too, as it always has). */
    .main-nav { display: none; }
    .auth-row { gap: 0.35rem; }
    .nav-link {
        color: var(--text-secondary); font-weight: 500; font-size: 0.88rem;
        padding: 0.4rem 1rem; border-radius: 9999px !important; transition: all 0.2s;
    }
    .nav-link.active {
        background: var(--glass-bg); backdrop-filter: var(--glass-blur);
        -webkit-backdrop-filter: var(--glass-blur);
        border: 1px solid var(--glass-border);
        color: var(--highlight) !important;
    }
    .modal-content { margin: 2% auto; }
}

/* Page headings on small phones (owner's SE screenshot, 2026-11-12):
   every subpage h1 carries an inline 2.2rem, so "CommonCents" in
   "About CommonCents" overflowed the card and lost its last letters.
   Shrink all h1s at phone widths — the feed's own h1 rule has higher
   specificity and is unaffected. */
@media (max-width: 640px) {
    h1 { font-size: 1.55rem !important; }
}

/* Tablet band (owner's Tab S4 shot, 2026-11-12): at 560–900px the
   one-card-per-row phone layout stretched each card across the whole
   tablet and the search bar ran screen-wide. Two cards per row here,
   and the search keeps a sane centered width. Since 2026-11-15 the
   browsing views are compact full-width rows at every phone/tablet
   width, so the two-up grid survives only in the Saved view, whose
   big cards are the ones that used to stretch. */
@media (min-width: 560px) and (max-width: 900px) {
    .deal-grid { grid-template-columns: 1fr; }
    .deal-grid.saved-view { grid-template-columns: repeat(2, 1fr); }
}

/* ── Tailored feed: interest picker + NEW badge ─────────────────── */
.interest-picker {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1rem 1.1rem 0.8rem;
    margin-bottom: 1.25rem;
    /* Keep the picker's top clear of the sticky site header when scrolled to. */
    scroll-margin-top: 6.5rem;
}
.interest-picker-head {
    display: flex; justify-content: space-between; align-items: center;
    gap: 1rem; flex-wrap: wrap; margin-bottom: 0.7rem;
}
.interest-picker-title { font-family: var(--font-display); font-weight: 700; font-size: 0.98rem; }
.my-feed-btn {
    background: transparent; color: var(--highlight);
    border: 1.5px solid var(--highlight); border-radius: 999px;
    padding: 0.4rem 1.1rem; font-weight: 700; font-size: 0.85rem; cursor: pointer;
}
.my-feed-btn:hover { background: var(--highlight); color: #fff; }
.interest-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.interest-chip {
    background: var(--bg-card); color: var(--text-secondary);
    border: 1px solid var(--border-color); border-radius: 999px;
    padding: 0.42rem 0.95rem; font-size: 0.85rem; cursor: pointer;
}
.interest-chip:hover { border-color: var(--highlight); color: var(--text-primary); }
.interest-chip.active {
    background: var(--gold-gradient); color: #ffffff;
    border-color: transparent; font-weight: 700;
}
/* ── Free Stuff ────────────────────────────────────────────────── */
.freebies-intro {
    background: #EDE5F8; border: 1px solid var(--border-color);
    border-radius: var(--border-radius); color: var(--text-primary);
    padding: 0.8rem 1rem; margin-bottom: 1.25rem; font-size: 0.92rem;
}
.free-badge {
    position: absolute; top: 10px; left: 10px; z-index: 2;
    background: var(--highlight); color: #ffffff;
    font-size: 13px; font-weight: 800; letter-spacing: 0.06em;
    padding: 0.35rem 0.8rem; border-radius: 999px;
}
.free-badge-inline { position: static; display: inline-block; margin-bottom: 0.55rem; }
.freebie-howto { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.45; }
.freebie-when {
    font-size: 0.78rem; font-weight: 700; color: var(--highlight);
    text-transform: uppercase; letter-spacing: 0.05em; margin: 0.35rem 0 0.65rem;
}
/* Pinned to the card bottom exactly like a deal card's .view-deal-btn,
   so every button in a row lines up (owner, 2026-11-15). */
.freebie-btn { margin-top: auto; margin-bottom: 0.25rem; }
.freebie-modal-btn { margin-left: auto; }
/* A saved freebie whose entry left the Free Stuff list renders from
   its snapshot with this tag (never "no longer live" wording). */
.saved-freebie-badge {
    position: absolute; top: 10px; right: 10px; z-index: 2;
    background: #6b7280; color: #fff;
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em;
    padding: 0.25rem 0.55rem; border-radius: 999px;
}
.saved-freebie-badge-inline { position: static; display: inline-block; margin: 0 0 0.55rem 0.4rem; }

.audience-row { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.7rem; }
.audience-label { font-weight: 600; font-size: 0.88rem; color: var(--text-primary); }
.feed-status { color: var(--text-secondary); font-size: 0.83rem; margin: 0.65rem 0 0.2rem; }
.feed-note { color: var(--text-secondary); font-size: 0.8rem; margin: 0.35rem 0 0.2rem; }
/* Picker footer: the "Your feed:" summary and the Done button share
   one row at the bottom of the panel — Done as the primary plum pill
   at the right, beside the line that names it, instead of stranded
   up in the panel head (owner, 2026-11-15). */
.interest-picker-foot {
    display: flex; align-items: center; gap: 1rem;
    margin-top: 0.7rem; padding-top: 0.7rem;
    border-top: 1px solid var(--border-color);
}
.interest-picker-foot .feed-status { margin: 0; flex: 1; }
.interest-picker-foot .my-feed-btn {
    flex: none;
    background: var(--highlight); border-color: var(--highlight); color: #fff;
}
.interest-picker-foot .my-feed-btn:hover { background: var(--highlight); filter: brightness(0.9); color: #fff; }
/* Narrow screens: the footer stacks — summary above, Done full-width below. */
@media (max-width: 640px) {
    .interest-picker-foot { flex-direction: column; align-items: stretch; gap: 0.6rem; }
    .interest-picker-foot .my-feed-btn { width: 100%; }
}
.sponsored-tag { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--highlight); border: 1px solid var(--highlight); padding: 0.08rem 0.45rem; border-radius: 999px; flex: none; }
.new-badge {
    position: absolute; top: 10px; left: 10px; z-index: 2;
    background: var(--gold-gradient); color: #ffffff;
    font-size: 11px; font-weight: 800; letter-spacing: 0.05em;
    padding: 0.28rem 0.65rem; border-radius: 999px;
}
/* A freebie's NEW badge (owner, 2026-11-16) sits at the picture's
   top-right — the top-left corner already carries its FREE badge. */
.new-badge-freebie { left: auto; right: 10px; }
.new-badge-inline { position: static; display: inline-block; margin: 0 0 0.55rem 0.4rem; }

/* ── Accounts: header sign-in + auth modal ──────────────────────── */
.auth-area { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; margin-left: auto; position: relative; }
/* Bell + avatar share one row at the top of the auth column. */
.auth-row { display: flex; align-items: center; gap: 0.45rem; }
/* Notifications bell (owner, 2026-11-15 — like Gifting Butler's):
   a soft plum circle next to the avatar, plum bell glyph, the red
   unread badge hanging off its rim (the .cc-note-badge rule below —
   it rode the avatar until today). On phones the circle goes away
   (see the max-width:900px block below): just the bare bell glyph
   with its badge, SlickDeals-style. */
.cc-bell {
    position: relative; width: 32px; height: 32px; border-radius: 50%;
    background: #EDE5F8; color: var(--highlight); border: none; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; padding: 0;
    box-shadow: 0 3px 10px rgba(91,45,142,0.18);
}
.cc-bell:hover { background: #E1D1F8; }
.cc-bell svg { display: block; }
/* Phone header pieces (owner, 2026-11-15 — SlickDeals-style): the
   hamburger and the menu panel live in the DOM at every width, but
   only phones ever show them — the button stays display:none above
   900px and the panel is pinned shut there outright, so the desktop
   header is exactly what it was. */
.hamburger-btn {
    display: none; width: 36px; height: 36px; flex: 0 0 auto;
    border: none; border-radius: 50%; background: #EDE5F8; color: var(--highlight);
    cursor: pointer; padding: 0; align-items: center; justify-content: center;
    box-shadow: 0 3px 10px rgba(91,45,142,0.18);
}
.hamburger-btn:hover { background: #E1D1F8; }
.hamburger-btn svg { display: block; }
/* The phone rules for the header MUST live after the base rules
   above: the selectors are single-class, so at equal specificity
   the later rule in the file wins. The show-rules used to sit in
   the max-width:900px block far above, and the base display:none
   quietly overrode them — the hamburger never appeared at ANY
   width (owner's phone test, 2026-11-15). Keep this block below
   the base rules. Inside it, the header slims down the way the
   owner asked after seeing both previews (2026-11-15): the
   hamburger is BARE plum lines (no circle, no disc, no shadow —
   SlickDeals just shows the lines), the bell is a bare glyph with
   its badge, the giveaway gift icon is gone from the top row
   entirely (it lives in the menu panel and the sidebar now), and
   the header itself goes flat white — no tinted glass band, no
   blur, no shadow, so the top stops reading as one big box. */
@media (max-width: 900px) {
    .hamburger-btn { display: inline-flex; background: none; border-radius: 0; box-shadow: none; }
    .hamburger-btn:hover { background: none; }
    .cc-bell { background: none; box-shadow: none; }
    .cc-bell:hover { background: none; }
    .site-header { background-color: #ffffff; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
}
/* The panel drops from the sticky header's bottom edge, full width,
   one clean card: big tappable rows for the feed destinations, then
   the page links in two quiet columns. */
.mobile-nav-panel {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 120;
    background: var(--bg-card); border-bottom: 1px solid var(--border-color);
    box-shadow: 0 18px 40px rgba(40,20,70,0.18);
    padding: 0.6rem 20px 0.9rem;
}
@media (min-width: 901px) {
    .mobile-nav-panel { display: none !important; }
}
.mobile-nav-list { list-style: none; margin: 0; padding: 0; }
.mobile-nav-list a {
    display: flex; align-items: center; min-height: 48px;
    padding: 0.5rem 0.9rem; border-radius: 12px;
    color: var(--text-primary); font-weight: 600; font-size: 0.98rem; text-decoration: none;
}
.mobile-nav-list a.active { background: #EDE5F8; color: var(--highlight); }
/* The panel's Weekly Giveaway row carries the gift mark inline,
   sized to the row (the base .gw-gift-mark is a big centred mark). */
.mobile-nav-list a .gw-gift-mark { width: 26px; height: 26px; margin: 0 0.6rem 0 0; }
/* The second-design panel (owner, 2026-11-15) groups its rows:
   .mobile-nav-rows lists (My Feed on top, the Giveaway row) share
   the category list's row look without being the category list,
   and the panel's own button rows (Sign in, Notifications,
   Deals ▾) match them. Count pills ride at the right edge of a
   row — the same plum pill the sidebar's .cat-count paints, here
   for panel links and the Notifications row alike. */
.mobile-nav-rows { list-style: none; margin: 0; padding: 0; }
.mobile-nav-rows a {
    display: flex; align-items: center; min-height: 48px;
    padding: 0.5rem 0.9rem; border-radius: 12px;
    color: var(--text-primary); font-weight: 600; font-size: 0.98rem; text-decoration: none;
}
.mobile-nav-rows a.active { background: #EDE5F8; color: var(--highlight); }
.mobile-nav-rows a .gw-gift-mark { width: 26px; height: 26px; margin: 0 0.6rem 0 0; }
/* The small state line under the panel's Weekly Giveaway row
   (owner, 2026-11-15, third pass): while the giveaway is off it
   reads "Coming soon" in small muted type under the row — the
   account menu's own giveaway row is hidden inside the drawer
   (it duplicated this one), so this line carries the state here;
   while the giveaway is on it shows the entered state in the same
   small type, or hides. The left padding lines it up with the
   row's text (row padding + gift mark + its gap). */
.mnav-gw-status {
    padding: 0.05rem 0.9rem 0.35rem calc(0.9rem + 26px + 0.6rem);
    font-size: 0.78rem; font-weight: 500; color: var(--text-secondary); line-height: 1.35;
}
.mnav-row {
    display: flex; align-items: center; width: 100%; min-height: 48px;
    padding: 0.5rem 0.9rem; border: none; background: none; border-radius: 12px;
    color: var(--text-primary); font: inherit; font-weight: 600; font-size: 0.98rem;
    cursor: pointer; text-align: left; box-sizing: border-box;
}
.mnav-row-label { flex: 1 1 auto; min-width: 0; }
.mnav-count {
    margin-left: auto; flex: none;
    background: #EDE5F8; color: var(--highlight);
    border-radius: 999px; font-size: 0.75rem; font-weight: 600;
    padding: 0.08rem 0.55rem; line-height: 1.5;
}
.mnav-count:empty { display: none; }
.mobile-nav-panel a .cat-count {
    margin-left: auto; flex: none;
    background: #EDE5F8; color: var(--highlight);
    border-radius: 999px; font-size: 0.75rem; font-weight: 600;
    padding: 0.08rem 0.55rem; line-height: 1.5;
}
.mnav-arrow { margin-left: auto; flex: none; color: var(--highlight); transition: transform 0.15s; }
.mnav-deals-toggle[aria-expanded="true"] .mnav-arrow { transform: rotate(180deg); }
.mnav-close {
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; margin-left: auto;
    border: none; border-radius: 50%; background: #EDE5F8; color: var(--highlight);
    font-size: 0.85rem; font-weight: 700; cursor: pointer; line-height: 1;
}
.mnav-close:hover { background: #E1D1F8; }
.mnav-account { border-bottom: 1px solid var(--border-color); padding-bottom: 0.35rem; margin-bottom: 0.3rem; }
.mnav-signout-slot { margin-top: 0.6rem; }
.mobile-nav-pages {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0.15rem 0.5rem;
    border-top: 1px solid var(--border-color); margin-top: 0.45rem; padding-top: 0.45rem;
}
.mobile-nav-pages a {
    display: flex; align-items: center; min-height: 44px;
    padding: 0.4rem 0.9rem; border-radius: 12px;
    color: var(--text-secondary); font-weight: 600; font-size: 0.92rem; text-decoration: none;
}
.auth-menu {
    position: absolute; top: calc(100% + 8px); right: 0; width: 300px; z-index: 130;
    background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px;
    box-shadow: 0 18px 40px rgba(40,20,70,0.18); padding: 1rem; text-align: left;
}
/* The notifications panel hangs off the header like the account
   menu (same card, same anchor). The note rows inside reuse the
   .auth-menu-note styles — they were born in the menu and kept
   their names when the notes moved here. */
.notes-panel {
    position: absolute; top: calc(100% + 8px); right: 0; width: 300px; z-index: 130;
    background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px;
    box-shadow: 0 18px 40px rgba(40,20,70,0.18); padding: 1rem; text-align: left;
}
.notes-panel.is-empty .auth-menu-notes-head { display: none; }
.auth-menu-email { font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 0; word-break: break-all; padding-right: 1.6rem; }
/* One even rhythm for the whole menu (owner, 2026-11-13: "why are those
   buttons not evenly spaced?"): a single gap rule for every direct
   child, instead of margins sprinkled per element — the ✕ is absolutely
   positioned, so it is excluded as a spacing source. */
.auth-menu > :not(.auth-menu-close) + * { margin-top: 0.45rem; }
/* Close X's (owner, 2026-11-12: "there's no X's anywhere" — every
   page and panel gets a clear way out). */
.auth-menu-close {
    position: absolute; top: 0.45rem; right: 0.55rem; width: 28px; height: 28px;
    border: none; border-radius: 50%; background: #EDE5F8; color: var(--highlight);
    font-size: 0.8rem; font-weight: 700; cursor: pointer; line-height: 1;
    display: flex; align-items: center; justify-content: center;
}
.auth-menu-close:hover { background: #E1D1F8; }
.page-close {
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; margin-left: auto; margin-bottom: 0.5rem;
    border-radius: 50%; background: #EDE5F8; color: var(--highlight);
    font-size: 1rem; font-weight: 700; text-decoration: none; line-height: 1;
}
.page-close:hover { background: #E1D1F8; }
.picker-x {
    width: 30px; height: 30px; flex: none;
    border: none; border-radius: 50%; background: #EDE5F8; color: var(--highlight);
    font-size: 0.82rem; font-weight: 700; cursor: pointer; line-height: 1;
    display: inline-flex; align-items: center; justify-content: center;
}
.picker-x:hover { background: #E1D1F8; }
.auth-menu-label { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 0.35rem; }
.auth-menu input {
    width: 100%; box-sizing: border-box; padding: 0.55rem 0.9rem; border-radius: 999px;
    border: 1px solid var(--border-color); background: var(--bg-card);
    color: var(--text-primary); font-size: 0.9rem; margin-bottom: 0.55rem;
}
.auth-menu input:focus { outline: none; border-color: var(--highlight); box-shadow: 0 0 0 3px rgba(91,45,142,0.15); }
.auth-menu-save { width: 100%; padding: 0.55rem; font-size: 0.88rem; }
#authMenuNameEditor { margin-top: 0.15rem; }
.auth-menu-cancel { display: block; background: none; border: none; padding: 0.45rem 0.2rem 0; font: inherit; font-size: 0.8rem; color: var(--text-secondary); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.auth-menu-msg { font-size: 0.8rem; margin-top: 0.5rem; }
.auth-menu-note { font-size: 0.75rem; color: var(--text-secondary); line-height: 1.45; }
.auth-email.as-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: linear-gradient(135deg, #7C3AED, #5B2D8E);
    color: #fff; font-weight: 800; font-size: 0.9rem;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 3px 10px rgba(91,45,142,0.35);
    /* Visible, not hidden (owner, 2026-11-15): the notification badge
       hangs off the circle's rim, and overflow:hidden clipped it to an
       unreadable red sliver inside the circle. The photo clips itself
       (border-radius on the img), so the container no longer needs to. */
    overflow: visible;
}
.auth-email.as-avatar { cursor: pointer; position: relative; }
/* Menu hint v3 (owner, 2026-11-12): v1 (white notch on the photo)
   washed out on light photos; v2 (white badge on the corner) looked
   odd AND sat right above the Sign out pill, so taps aimed at it hit
   Sign out. v3: the arrow is PLUM, bottom-center INSIDE the circle —
   plum shows on light photos, a white halo keeps it readable on
   dark ones, and it's inside the button, so a tap on the arrow is a
   tap on the picture: the menu opens. */
/* Notification badge (engagement plan, 2026-11-13) + the note
   rows. Red badge = the standard "you have something new" signal.
   The badge rode the avatar until 2026-11-15; it now hangs on the
   header bell next to the avatar, and the notes live in the bell's
   own panel (.notes-panel above) instead of the account menu.
   Opening the panel clears the badge. */
.cc-note-badge { position: absolute; top: -7px; right: -7px; min-width: 22px; height: 22px; border-radius: 999px; background: #dc2626; color: #fff; font-size: .74rem; font-weight: 700; line-height: 1; display: flex; align-items: center; justify-content: center; padding: 0 5px; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.28); z-index: 4; }
.auth-menu-notes { border-top: 1px solid var(--border-color); margin-top: 0; padding-top: .5rem; }
.auth-menu-notes.is-empty { border-top: none; padding-top: 0; }
.auth-menu-notes.is-empty .auth-menu-notes-head { display: none; }
.auth-menu-note.auth-menu-notes-empty { background: #EDE5F8; border-bottom: none; border-radius: 999px; padding: 0.5rem 0.9rem; font-size: 0.82rem; font-weight: 600; color: var(--highlight); }
.auth-menu-notes-head { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-secondary); margin: 0 0 .35rem; }
.auth-menu-note { font-size: .85rem; padding: .35rem 0; border-bottom: 1px solid var(--border-color); color: var(--text-primary); line-height: 1.45; }
.auth-menu-note:last-child { border-bottom: none; }
.auth-menu-note .an-site { color: var(--highlight); font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }
.auth-menu-note .an-text { color: var(--text-secondary); }
.auth-menu-note .an-when { color: var(--text-secondary); font-size: .75rem; white-space: nowrap; }
.auth-menu-notes-toggle { width: 100%; margin: 0 0 .3rem; }
.auth-menu-note.auth-menu-notes-off { display: block; width: 100%; text-align: left; border: none; cursor: pointer; font-family: inherit; }
.auth-menu-note.auth-menu-notes-off:hover { background: #E2D5F5; }
/* Clickable notifications (owner, 2026-11-15): a note is a button —
   tapping it closes the menu and opens the deal (and the comment)
   it points at. */
.auth-menu-note.an-click { display: block; width: 100%; text-align: left; background: none; border: none; border-bottom: 1px solid var(--border-color); cursor: pointer; font-family: inherit; }
.auth-menu-note.an-click:hover { background: #EDE5F8; }
.auth-menu-note.an-click:last-child { border-bottom: none; }
/* The comment a notification pointed at flashes plum once it has
   been scrolled into view, so the eye lands on it. */
.cmt-row { border-radius: 8px; }
.cmt-row.cmt-flash { animation: cmtFlash 2.4s ease-out; }
@keyframes cmtFlash { 0%, 55% { background-color: #EDE5F8; } 100% { background-color: transparent; } }
/* Plain spoken note for a tap that can't open anything (a deal that
   is no longer live and was never saved). */
.cc-toast { position: fixed; left: 50%; bottom: 1.4rem; transform: translateX(-50%) translateY(1rem); background: #5B2D8E; color: #fff; font-size: 0.9rem; font-weight: 600; padding: 0.65rem 1.2rem; border-radius: 999px; box-shadow: 0 10px 30px rgba(40,20,70,0.35); opacity: 0; pointer-events: none; transition: opacity 0.25s ease, transform 0.25s ease; z-index: 3000; max-width: 92vw; text-align: center; }
.cc-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.cmt-reply-btn { background: none; border: none; color: var(--highlight); font-weight: 600; font-size: .82rem; cursor: pointer; padding: .2rem 0 0; font-family: inherit; }
.auth-email.as-avatar::before {
    content: ''; position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
    border-left: 4px solid transparent; border-right: 4px solid transparent;
    border-top: 5px solid var(--highlight);
    filter: drop-shadow(0 0 2px rgba(255,255,255,0.95)) drop-shadow(0 0 1px rgba(255,255,255,0.95));
    pointer-events: none; z-index: 2;
}
.auth-email { color: var(--text-secondary); font-size: 0.85rem; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auth-btn {
    background: transparent; color: var(--highlight);
    border: 1.5px solid var(--highlight); border-radius: 999px;
    padding: 0.42rem 1.1rem; font-weight: 700; font-size: 0.85rem; cursor: pointer;
    white-space: nowrap;
}
.auth-btn:hover { background: var(--highlight); color: #fff; }
.auth-modal-content { max-width: 420px; }
.auth-title { font-family: var(--font-display); margin-bottom: 0.4rem; }
.auth-sub { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 1.1rem; line-height: 1.45; }
.auth-google-btn {
    width: 100%; background: #fff; color: #1f1f1f; border: 1px solid #dadce0; border-radius: 999px;
    padding: 0.7rem 1rem; font-weight: 600; font-size: 0.95rem; cursor: pointer; margin-bottom: 0.9rem;
    display: flex; align-items: center; justify-content: center; gap: 0.6rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.06);
    transition: background 0.15s, box-shadow 0.15s;
}
.auth-google-btn:hover { background: #f8f9fa; box-shadow: 0 2px 6px rgba(0,0,0,0.12); }
.auth-google-btn .g-logo { width: 18px; height: 18px; flex: none; display: block; }
.auth-divider { display: flex; align-items: center; gap: 0.8rem; color: var(--text-secondary); font-size: 0.8rem; margin-bottom: 0.9rem; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border-color); }
.auth-modal-content .giveaway-input { width: 100%; margin-bottom: 0.7rem; box-sizing: border-box; }
.auth-modal-content .giveaway-submit-btn { width: 100%; }
.auth-toggle { background: none; border: none; color: var(--highlight); cursor: pointer; font-size: 0.88rem; margin-top: 0.9rem; padding: 0; }
.auth-toggle:hover { text-decoration: underline; }
.giveaway-account-note { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 0.8rem; line-height: 1.45; }

/* ── Tailored feed: slim bar (picker collapsed) ─────────────────── */
.feed-slim { display: none; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.feed-slim-text { font-weight: 600; color: var(--text-primary); font-size: 0.95rem; }
.feed-slim-actions { display: flex; gap: 0.5rem; }
.feed-slim-btn {
    background: transparent; color: var(--highlight);
    border: 1.5px solid var(--highlight); border-radius: 999px;
    padding: 0.32rem 0.95rem; font-weight: 700; font-size: 0.8rem; cursor: pointer;
}
.feed-slim-btn:hover { background: var(--highlight); color: #fff; }
/* With picks saved, the picker hides completely — the sidebar's
   "Your Feed" widget carries the status and the Change button. */
.interest-picker.slim { display: none; }
.feed-widget-text { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.55; margin-bottom: 0.7rem; }
.feed-widget-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* ===== Expired deals: shown honestly, never passed off as live ===== */
.deal-card.deal-expired .card-image img { filter: grayscale(1); opacity: 0.5; }
.expired-badge {
    position: absolute; top: 10px; left: 10px;
    background: #6b7280; color: #fff;
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em;
    padding: 0.25rem 0.55rem; border-radius: 999px;
}
.expired-price { text-decoration: line-through; color: var(--text-secondary); }
.expired-btn { opacity: 0.5; pointer-events: none; }
.dead-note { font-size: 0.8rem; color: var(--text-secondary); margin: 0 0 0.75rem; }
.card-date { color: var(--text-secondary); font-size: 0.78rem; margin-left: auto; flex: none; white-space: nowrap; align-self: center; }

/* ===== Promo code on a deal (posted price needs the code) ===== */
/* Card face: just a small tag; the code itself lives in the detail modal. */
.modal-buy-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.modal-buy-row .card-price { margin-bottom: 0; flex-wrap: nowrap; }
.modal-deal-btn { margin-left: auto; }
/* The buy row's three buttons live in ONE group (owner's modal
   screenshot, 2026-11-15: the price + Get This Deal + Share filled
   the first line and Save dropped ALONE onto a second line at the
   left — his arrow: Save belongs up with the other buttons). The
   group is a single flex child of .modal-buy-row, so the row can
   only ever break BETWEEN the price and the group: the trio wraps
   together, right-aligned, never one button at a time. */
.modal-buy-actions { display: flex; align-items: center; gap: 0.75rem; flex-wrap: nowrap; margin-left: auto; }
@media (max-width: 640px) {
    /* Slimmer trio, so the group still shares one line with — or
       under — the price as far down as ~480px: at these metrics the
       group is ≈317px wide (Get This Deal ≈134 + Share ≈88 + Save
       ≈80 + two 8px gaps), inside a ≈366px modal inner width at a
       481px viewport (modal is 90% wide, less 2×2rem padding). */
    .modal-buy-actions { gap: 0.5rem; }
    .modal-buy-actions .btn { padding: 0.6rem 0.75rem; font-size: 0.92rem; }
}
@media (max-width: 480px) {
    /* Inside a small-phone modal the trio cannot share one line at
       any readable size, so the group takes the full row under the
       price as one block: the primary button spans the row and
       Share + Save sit paired on the next line at the right. Save
       is grouped with Share, never stranded alone on a line. */
    .modal-buy-actions { flex-wrap: wrap; width: 100%; margin-left: 0; justify-content: flex-end; }
    .modal-buy-actions .modal-deal-btn, .modal-buy-actions .freebie-modal-btn { flex: 1 1 100%; margin-left: 0; }
}
.comments-section { border-top: 1px solid var(--border-color); margin-top: 1.25rem; padding-top: 1.1rem; }
.modal-media-banner {
    /* White, not plum: product photos sit on white backgrounds, so a
       colored panel made every picture look like a white box floating
       on lavender. White lets the photo blend in seamlessly. */
    background: #fff; border-radius: 14px; height: 280px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.25rem; overflow: hidden;
}
.modal-media-banner img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 1rem; }
/* Deal-window picture gallery (owner, 2026-11-15 — clean product
   shots only): when a deal carries extra pictures, the banner holds
   a swipeable track, main picture first, with position dots under
   it (the SlickDeals pattern). A deal with one picture keeps the
   plain banner above, no dots. Cards and list rows never gallery —
   they keep the single main picture. */
.modal-media-banner.modal-gallery { display: block; }
.modal-gallery-track {
    display: flex; height: 100%; overflow-x: auto;
    scroll-snap-type: x mandatory; scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.modal-gallery-track::-webkit-scrollbar { display: none; }
.modal-media-banner .modal-gallery-track img {
    flex: 0 0 100%; width: 100%; height: 100%; max-width: none;
    object-fit: contain; scroll-snap-align: center;
}
.modal-gallery-dots { display: flex; justify-content: center; gap: 6px; margin: -0.6rem 0 1rem; }
.modal-gallery-dot { width: 7px; height: 7px; border-radius: 50%; background: #D9CCEE; transition: background 0.15s; }
.modal-gallery-dot.active { background: var(--highlight); }
.deal-note strong { color: var(--highlight); }
.deal-note-tag {
    display: inline-flex; align-items: center; flex: none;
    font-size: 0.62rem; font-weight: 700; letter-spacing: 0.02em;
    padding: 0.12rem 0.5rem; border-radius: 999px;
    background: #EDE5F8; color: #5B2D8E; border: 1px solid rgba(91,45,142,0.25);
}
.deal-code-tag {
    display: inline-flex; align-items: center; flex: none;
    font-size: 0.62rem; font-weight: 700; letter-spacing: 0.02em;
    padding: 0.12rem 0.5rem; border-radius: 999px;
    background: #FDF3D8; color: #8A6A10; border: 1px solid #C49A28;
}
/* Modal: coupon-clip box. Tap copies; the box visibly flips to a clipped state. */
.deal-code {
    display: flex; align-items: center; justify-content: center; gap: 0.6rem;
    border: 1.5px dashed #C49A28; background: #FDF3D8; color: #8A6A10;
    border-radius: 8px; padding: 0.8rem 1rem; margin-bottom: 0.5rem;
    font-size: 0.95rem; text-align: center; cursor: pointer; user-select: none;
}
.deal-code .code-clip-icon { font-size: 1.05rem; line-height: 1; }
.deal-code .code-main strong { letter-spacing: 0.05em; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.deal-code .code-action {
    font-size: 0.66rem; font-weight: 700; letter-spacing: 0.06em;
    border: 1px solid currentColor; border-radius: 999px; padding: 0.18rem 0.5rem; white-space: nowrap;
}
.deal-code.copied { background: #ecfdf5; border: 1.5px solid #059669; color: #065f46; }
.code-helper { font-size: 0.8rem; color: var(--text-secondary); margin: 0 0 1.5rem; }

/* Own-comment actions (pencil / trash on comments you posted) */
.cmt-actions { display: inline-flex; gap: 0.1rem; margin-left: 0.35rem; }
.cmt-act-btn {
    background: none; border: none; cursor: pointer; color: var(--text-secondary);
    padding: 0.28rem; border-radius: 6px; display: inline-flex; align-items: center;
    transition: color 0.15s, background 0.15s;
}
.cmt-act-btn:hover { color: var(--highlight); background: rgba(91,45,142,0.08); }
.cmt-act-btn.del:hover { color: #dc2626; background: rgba(220,38,38,0.08); }

/* Info (i) button beside "Commenting as ___" — reveals how to change the name */
.cmt-info-btn {
    background: none; border: none; cursor: pointer; color: var(--text-secondary);
    padding: 0.15rem; border-radius: 50%; display: inline-flex; align-items: center;
    vertical-align: -0.2em; transition: color 0.15s, background 0.15s;
    position: relative;
}
.cmt-info-btn:hover { color: var(--highlight); background: rgba(91,45,142,0.08); }
.cmt-tip {
    position: absolute; bottom: calc(100% + 8px); left: 50%;
    transform: translateX(-50%) translateY(2px);
    width: max-content; max-width: 240px; white-space: normal; text-align: left;
    background: #2A1A45; color: #fff; font-size: 0.75rem; font-weight: 400;
    line-height: 1.45; padding: 0.5rem 0.7rem; border-radius: 10px;
    box-shadow: 0 8px 22px rgba(30,15,55,0.35);
    opacity: 0; pointer-events: none; transition: opacity 0.15s, transform 0.15s;
    z-index: 60;
}
.cmt-info-btn:hover .cmt-tip, .cmt-info-btn:focus-visible .cmt-tip, .cmt-info-btn.tip-show .cmt-tip {
    opacity: 1; transform: translateX(-50%) translateY(0);
}

/* Logo mark (his uploaded tag art), avatar-menu rows, house ad */
.logo-mark-img { height: 46px; width: auto; display: block; }
/* No divider above the link rows: the old border-top + 0.8rem margin +
   0.55rem padding dated from when a permanently-open editor block sat
   above this wrapper; with the editor collapsed into a pill row it left
   a stray line and a double-size gap between the Comment name pill and
   the My feed picks pill. Top spacing now equals the row gap (0.45rem)
   so all three pills stack evenly, spacing only, no line. */
.auth-menu-links { margin-top: 0; display: flex; flex-direction: column; gap: 0.45rem; }
/* Both menu rows are the same pill button (user ruling, 2026-11-09):
   full-width, light-plum fill, plum text, 999px radius — a matched
   pair that clearly reads as clickable. */
.auth-menu-link { background: #EDE5F8; border: none; text-align: left; font: inherit; font-size: 0.82rem; font-weight: 600; color: var(--highlight); padding: 0.5rem 0.9rem; border-radius: 999px; cursor: pointer; white-space: nowrap; width: 100%; box-sizing: border-box; transition: background 0.15s; }
.auth-menu-link:hover { background: #E1D1F8; }
/* Sign out lives in the menu now (owner, 2026-11-12: the standalone
   pill under the avatar kept getting tapped by mistake). A quiet red
   tint marks it as the exit without shouting. */
.auth-menu-signout { margin-top: 0; background: #FDECEC; color: #B3261E; text-align: center; }
.auth-menu-signout:hover { background: #FAD9D9; }
.auth-menu-link-row { display: flex; align-items: center; justify-content: space-between; gap: 0.4rem; width: 100%; box-sizing: border-box; font-size: 0.78rem; padding: 0.5rem 0.8rem; }
.auth-menu-link-label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auth-menu-link-count { flex: 0 0 auto; white-space: nowrap; font-weight: 700; }
/* Giveaway count = a counter badge, not run-on text (user, 2026-11-09):
   a small white pill with plum bold text, clearly separated from the
   label by the row gap. When the visitor hasn't entered, auth.js leaves
   the span empty — it must not leave an empty white chip behind. */
#authMenuGiveawayCount { background: #fff; color: #5B2D8E; font-weight: 700; font-size: 0.75rem; border-radius: 999px; padding: 0.1rem 0.55rem; }
#authMenuGiveawayCount:empty { display: none; }
/* "Change" gets its own little button (user, 2026-11-09: "a small circle
   around it") — a white pill chip with a plum-tinted outline on the two
   Change rows. Purely visual affordance: the whole pill row is still
   the button and clicks exactly as before. Scoped to its own class so
   the giveaway count badge above is NOT styled like it. */
.auth-menu-change-chip { background: #fff; border: 1px solid rgba(91,45,142,0.35); color: #5B2D8E; border-radius: 999px; padding: 0.12rem 0.6rem; font-weight: 600; font-size: 0.75rem; }
.auth-menu-link:hover .auth-menu-change-chip { background: #EDE5F8; border-color: rgba(91,45,142,0.55); }
.house-ad { margin-top: 1.25rem; }
.house-ad a { display: block; }
.house-ad img { width: 100%; height: auto; display: block; border-radius: 16px; border: 1px solid rgba(91,45,142,0.16); }

/* Sister-site ad as a card inside the deal feed (owner, 2026-11-15:
   "sister ads as cards in the feed too"). app.js drops ONE of these
   into the grid on page 1 of the browse views, after the 6th deal;
   it is not a deal and never enters any count. It borrows the deal
   cards' shell (white, radius, border, same hover lift) so it sits
   naturally among them. The "Our sister site" label it launched
   with was removed at the owner's word (2026-11-15: "i dont want
   our sister site") — the card is now the picture alone. It is
   deliberately NOT a .deal-card, so the phone list-row rules step
   aside for it: at phone widths the grid is a single column and
   this stays a full-width card block between the rows, never a
   compact row. */
.feed-ad-card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius); overflow: hidden;
    border: 1px solid var(--border-color);
    display: flex; flex-direction: column; position: relative;
    transition: box-shadow 0.22s, border-color 0.22s;
}
.feed-ad-card:hover {
    box-shadow: 0 8px 24px rgba(91,45,142,0.16), 0 0 0 1px var(--highlight);
    border-color: var(--highlight);
}
.gb-feed-link { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 0.55rem; padding: 1.6rem 1.1rem; text-decoration: none; text-align: center; }
.gb-feed-mark { height: 104px; width: auto; display: block; }
.gb-feed-name { font-family: Georgia, 'Times New Roman', serif; font-size: 1.45rem; font-weight: 700; color: var(--highlight); line-height: 1.15; }
.gb-feed-line { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.35; }
.gb-feed-btn { margin-top: 0.45rem; background: var(--highlight); color: #fff; font-weight: 700; font-size: 0.88rem; padding: 0.55rem 1.15rem; border-radius: 999px; }

/* Phone header, second slimming pass (owner, 2026-11-15 — his
   screenshot of the already-slimmed header with the logo block
   underlined: "also too much"). The bulk he was pointing at: the
   logo was TWO lines — COMMONCENTS with MAKING EVERY CENT COUNT
   under it — so the top row stood tall and text-heavy next to
   SlickDeals/Dan's, who show just the name on one line. On phones
   the tagline line goes away (the tagline stays in the footer and
   everywhere else it lives), the mark and title drop a notch, and
   the header's vertical padding, row gap and search offset shrink
   so the whole top block (header row + search row) sits visibly
   slimmer. This block lives at the END of the file on purpose:
   the base .logo-mark-img rule above sits far below the earlier
   phone blocks and quietly outranked their 32px (the same
   later-rule-wins lesson as the hamburger cascade bug), so these
   rules must come last to win at phone widths. Desktop is
   untouched: nothing here applies above 900px. */
@media (max-width: 900px) {
    .logo-tagline { display: none; }
    .logo-mark-img { height: 28px; }
    .logo-title { font-size: 0.95rem; }
    .site-header { padding: 0.55rem 0; }
    .header-content { row-gap: 0.35rem; }
    .search-bar { margin: 0.2rem auto 0; }
}

/* Phone menu, second design (owner, 2026-11-15 — "everything looks
   very messy on both sites... put everything in the three bars"):
   the bell and the avatar LEAVE the top row — the whole auth area
   is gone from the phone header — and the three lines move to the
   RIGHT side of the row (the logo stays left; controls split
   left/right "makes no sense"). The lines are the one menu now:
   their badge carries the unread count the bell used to show.
   The panel itself stops being a drop-down hanging off the sticky
   header — that was the scroll bug: pinned to the header, its
   bottom rows (Saved, Advertise, About) sat below the screen with
   no way to reach them. It is now a full-height drawer opening
   from the right with its OWN scroll, so every row is reachable.
   The account menu and the notes panel move inside it on phones
   (auth.js relocates the real elements), so in the drawer they
   sit flat and static — no dropdown card, no shadow, no absolute
   anchor. This block lives at the END of the file on purpose: the
   base .mobile-nav-panel / .auth-menu / .notes-panel rules sit far
   above, and these must win at phone widths (the same
   later-rule-wins lesson as the hamburger cascade bug). Desktop is
   untouched: nothing here applies above 900px, and the panel stays
   pinned shut there outright. */
@media (max-width: 900px) {
    .auth-area { display: none; }
    .hamburger-btn { order: 2; margin-left: auto; position: relative; }
    .mobile-nav-panel {
        position: fixed; top: 0; right: 0; left: auto;
        width: min(330px, 88vw); height: 100%; height: 100dvh;
        overflow-y: auto; overscroll-behavior: contain;
        border-bottom: none; border-left: 1px solid var(--border-color);
        box-shadow: -18px 0 40px rgba(40,20,70,0.18);
        padding: 0.75rem 16px 1.25rem; z-index: 200;
    }
    .mobile-nav-panel .auth-menu,
    .mobile-nav-panel .notes-panel {
        position: static; width: auto; max-height: none;
        background: transparent; border: none; border-radius: 0;
        box-shadow: none; padding: 0.25rem 0 0.35rem;
    }
    .mobile-nav-panel .auth-menu-close { display: none; }
    /* In the drawer the email line also lines up with the row
       text (0.9rem in from the panel edge, like every row). */
    .mobile-nav-panel .auth-menu-email { padding-right: 0; padding-left: 0.9rem; }
    /* Uniform rows (owner, 2026-11-15, fourth pass — the order
       "looks very neat", but the styling read patchwork: My Feed
       was a big tinted box (its .active fill), the middle rows
       were plain white, the account rows were purple pills
       again, and the page links sat in two columns — colour on
       top, colour on the bottom, none in the middle, then white
       again. Now EVERY row in the panel wears the same clothes:
       plain white, 48px, the same plum semibold text, counts at
       the right edge. The current view loses its filled box —
       inside the panel the active row is just plum text like
       every other row. The account menu's rows drop their pill
       fill while they live in the drawer and stack flush like
       the rest (the Change chip stays a small outlined pill —
       it is a button; the masked email stays the plain line it
       already was), and the page links go single column. Sign
       out keeps its pale red bar: it is the one action row, and
       the owner did not object to it. Desktop is untouched —
       these rules live in the phone block, scoped to the panel,
       and the desktop menu keeps its pills. */
    .mobile-nav-panel .mobile-nav-rows a,
    .mobile-nav-panel .mobile-nav-list a,
    .mobile-nav-panel .mnav-row,
    .mobile-nav-panel .mobile-nav-pages a {
        background: transparent; color: var(--highlight);
        font-size: 0.98rem; font-weight: 600;
        min-height: 48px; padding: 0.5rem 0.9rem;
    }
    .mobile-nav-panel .mobile-nav-rows a.active,
    .mobile-nav-panel .mobile-nav-list a.active { background: transparent; }
    .mobile-nav-panel .mobile-nav-pages { display: flex; flex-direction: column; gap: 0; }
    .mobile-nav-panel .auth-menu-links { gap: 0; }
    .mobile-nav-panel .auth-menu-link {
        background: transparent; color: var(--highlight);
        font-size: 0.98rem; font-weight: 600;
        min-height: 48px; padding: 0.5rem 0.9rem;
        display: flex; align-items: center;
    }
    .mobile-nav-panel .auth-menu-link:hover { background: transparent; }
    .mobile-nav-panel .auth-menu-link.auth-menu-signout {
        background: #FDECEC; color: #B3261E; justify-content: center;
    }
    .mobile-nav-panel .auth-menu-link.auth-menu-signout:hover { background: #FAD9D9; }
}
