/* ─── Base ─────────────────────────────────────────────────── */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: #f4f4f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ─── Navbar ────────────────────────────────────────────────── */
.fw-navbar {
    box-shadow: 0 2px 14px rgba(0,0,0,0.5);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
}

/* ─── Inline search expand ──────────────────────────────────── */
.fw-inline-search {
    width: 0;
    opacity: 0;
    overflow: hidden;
    transition: width 0.3s ease, opacity 0.25s ease;
    display: flex;
    align-items: center;
    flex-shrink: 1;
}

.fw-inline-search.expanded {
    width: 280px;
    opacity: 1;
}

.fw-inline-search-form {
    display: flex;
    align-items: center;
    width: 100%;
    background: #1c1c1c;
    border: 1px solid rgba(250,188,44,0.55);
    border-radius: 4px;
    padding: 0 4px 0 10px;
}

.fw-inline-search-input {
    background: transparent;
    border: none;
    color: #f0f0f0;
    font-size: 0.84rem;
    padding: 7px 4px;
    flex: 1;
    min-width: 0;
    width: 100%;
    outline: none;
    font-family: inherit;
    /* suppress browser default search styling */
    -webkit-appearance: none;
}

.fw-inline-search-input::placeholder { color: #666; }

.fw-inline-search-input::-webkit-search-cancel-button { display: none; }

.fw-inline-search-clear {
    background: transparent;
    border: none;
    color: #666;
    padding: 6px 6px;
    font-size: 0.72rem;
    cursor: pointer;
    flex-shrink: 0;
    line-height: 1;
    transition: color 0.15s;
}

.fw-inline-search-clear:hover { color: #ccc; }

/* Mobile inline search: allowed to grow wider */
@media (max-width: 991.98px) {
    .fw-inline-search.expanded {
        width: min(260px, calc(100vw - 130px));
    }
}

/* ─── Search icon button ────────────────────────────────────── */
.fw-search-icon-btn {
    color: #bbb;
    background: transparent;
    border: none;
    font-size: 0.92rem;
    padding: 6px 6px;
    line-height: 1;
    transition: color 0.2s;
}

.fw-search-icon-btn:hover,
.fw-search-icon-btn:focus {
    color: #FABC2C;
    outline: none;
    box-shadow: none;
}

/* ─── Social icons ──────────────────────────────────────────── */
.social-icon-link {
    font-size: 1rem;
    color: #bbb !important;
    transition: color 0.2s;
}

.social-icon-link:hover { color: #FABC2C !important; }

/* ─── Auth elements ─────────────────────────────────────────── */
.auth-username {
    color: #FABC2C;
    font-size: 0.825rem;
    font-weight: 600;
    white-space: nowrap;
}

.auth-btn {
    color: #ccc;
    font-size: 0.78rem;
    padding: 5px 13px;
    border: 1px solid #555;
    border-radius: 4px;
    text-decoration: none;
    background: transparent;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    line-height: 1.5;
    white-space: nowrap;
    letter-spacing: 0.01em;
    display: inline-block;
}

.auth-btn:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
    text-decoration: none;
}

.auth-btn-signup {
    background: #FABC2C;
    border-color: #FABC2C;
    color: #000;
    font-weight: 700;
}

.auth-btn-signup:hover {
    background: #e0a820;
    border-color: #e0a820;
    color: #000;
}

/* ─── User dropdown ──────────────────────────────────────────── */
.fw-user-dropdown-toggle::after {
    border-top-color: #FABC2C;
    opacity: 0.7;
    vertical-align: 0.18em;
}
.fw-user-dropdown {
    background: #111;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.65);
    min-width: 165px;
    padding: 6px 0;
}
.fw-dropdown-item {
    color: #ccc;
    font-size: 0.83rem;
    padding: 9px 16px;
    transition: background 0.15s, color 0.15s;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}
.fw-dropdown-item:hover,
.fw-dropdown-item:focus {
    background: rgba(250,188,44,0.13) !important;
    color: #FABC2C !important;
}
.fw-dropdown-divider {
    border-color: #2a2a2a;
    margin: 4px 0;
}

/* ─── Category bar ──────────────────────────────────────────── */
/* Outer: holds background, border, and the fixed-edge fade overlay */
.fw-category-bar-outer {
    position: relative;
    background-color: #FABC2C;
    border-bottom: 2px solid #e0a820;
}

/* Inner: the actual horizontal scroll container */
.fw-category-bar {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.fw-category-bar::-webkit-scrollbar { display: none; }

/* Mobile: remove side padding so links start at the screen edge */
@media (max-width: 991.98px) {
    .fw-cat-container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* Fade hint — only visible when JS adds .fw-cat-faded (bar has unscrolled overflow) */
.fw-category-bar-outer::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 48px;
    background: linear-gradient(to right, transparent, #FABC2C 85%);
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.fw-category-bar-outer.fw-cat-faded::after {
    opacity: 1;
}
/* Extra right padding so "Fly Fishing" can scroll clear of the fade */
@media (max-width: 991.98px) {
    .fw-category-nav {
        padding-right: 40px;
    }
}

.fw-category-nav {
    flex-wrap: nowrap;
    min-width: max-content;
}

.fw-category-link {
    color: #000 !important;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 9px 16px !important;
    text-decoration: none;
    white-space: nowrap;
    border-right: 1px solid rgba(0,0,0,0.1);
    transition: background-color 0.15s;
    display: inline-block;
}

.fw-category-link:last-child { border-right: none; }
.fw-category-link:hover { background-color: rgba(0,0,0,0.1); color: #000 !important; }
.fw-category-link--active {
    background-color: #FABC2C;
    color: #000 !important;
    border-bottom: 3px solid #000;
}

/* ─── Category filter page heading ─────────────────────────── */
.fw-category-heading {
    font-size: 1.35rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-left: 4px solid #FABC2C;
    padding-left: 12px;
    margin-bottom: 0;
}

/* ─── Tagline bar ───────────────────────────────────────────── */
.tagline-bar {
    background-color: #111;
    color: #999;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ─── Article grid container ────────────────────────────────── */
.container-xl {
    max-width: 1340px;
}

.articles-wrapper {
    max-width: 1140px;
}

/* ─── Article cards ─────────────────────────────────────────── */
.fw-card {
    border: none;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    transition: box-shadow 0.25s ease, transform 0.2s ease;
    background: #fff;
}

.fw-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.13);
    transform: translateY(-3px);
}

.fw-card-img {
    height: 185px;
    object-fit: cover;
    background-color: #0a0a0a;
    width: 100%;
    display: block;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

.fw-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.45;
    margin-bottom: 0;
    color: #111;
    letter-spacing: -0.01em;
}

/* ─── Card footer: Read More | ♡ | Date ─────────────────────── */
.fw-card-footer {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.5rem;
    gap: 4px;
}
/* Read More and heart: fixed to content width, never shrink */
.fw-read-more  { flex: 0 0 auto; }
.fw-fav-btn    { flex: 0 0 auto; min-width: 28px; }
/* Date: elastic right slot — same font scale as Read More so it fits narrow cards */
.fw-card-date {
    flex: 1 1 auto;
    min-width: 0;
    margin-left: auto;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.72rem;
    letter-spacing: 0.01em;
    color: #888;
}

.fw-read-more {
    color: #FABC2C;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    border: 1.5px solid rgba(250, 188, 44, 0.5);
    border-radius: 4px;
    padding: 4px 10px;
    background: rgba(250, 188, 44, 0.07);
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
    display: inline-block;
    line-height: 1.4;
}
.fw-read-more:hover {
    color: #c89a15;
    border-color: #FABC2C;
    background: rgba(250, 188, 44, 0.14);
    text-decoration: none;
    transform: scale(1.15);
}

/* ─── Load More button ──────────────────────────────────────── */
.fw-load-more-btn {
    background-color: #111;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition: background-color 0.2s;
    min-width: 140px;
}

.fw-load-more-btn:hover,
.fw-load-more-btn:focus {
    background-color: #2e2e2e;
    color: #fff;
    outline: none;
}

/* ─── Auth / Contact card (shared) ─────────────────────────── */
.auth-page {
    flex: 1;
}

.auth-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 28px rgba(0,0,0,0.1);
    padding: 2.75rem 2.5rem;
    width: 100%;
    max-width: 460px;
}

@media (max-width: 480px) {
    .auth-card {
        padding: 2rem 1.5rem;
    }
}

.auth-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 1.75rem;
    padding-bottom: 0.55rem;
    border-bottom: 3px solid #FABC2C;
    display: inline-block;
}

.fw-auth-input {
    border: 1.5px solid #ddd;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 0.9rem;
    color: #111;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.fw-auth-input:focus {
    border-color: #FABC2C;
    box-shadow: 0 0 0 3px rgba(250,188,44,0.2);
    outline: none;
}

.fw-auth-input.is-invalid {
    border-color: #dc3545;
}

/* Style the topic select (rendered by Django widget directly) */
.auth-card select {
    display: block;
    width: 100%;
    border: 1.5px solid #ddd;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 0.9rem;
    color: #111;
    background-color: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: auto;
}

.auth-card select:focus {
    border-color: #FABC2C;
    box-shadow: 0 0 0 3px rgba(250,188,44,0.2);
    outline: none;
}

.auth-help-text {
    font-size: 0.75rem;
    color: #999;
    margin-top: 5px;
    line-height: 1.5;
}

.fw-auth-link {
    color: #FABC2C;
    font-weight: 600;
    text-decoration: none;
}

.fw-auth-link:hover {
    color: #c89a15;
    text-decoration: underline;
}

/* ─── Social login buttons ──────────────────────────────────── */
.fw-social-btn {
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 6px;
    padding: 10px 16px;
    border: 1.5px solid #ddd;
    background: #fff;
    color: #333;
    transition: background 0.2s, border-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fw-social-btn:hover { background: #f5f5f5; border-color: #bbb; color: #111; }

.fw-social-btn-google { border-color: #dadce0; }
.fw-social-btn-google:hover { background: #f8f9ff; border-color: #4285f4; }
.fw-social-btn-google i { color: #4285f4; }

.fw-social-btn-facebook { border-color: #1877f2; background: #1877f2; color: #fff; }
.fw-social-btn-facebook:hover { background: #166fe5; border-color: #166fe5; color: #fff; }

/* OR divider */
.fw-or-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #bbb;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.fw-or-divider::before,
.fw-or-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e5e5;
}

/* ─── Interest chip grid (profile_edit) ────────────────────── */
.fw-interest-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.fw-interest-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    color: #444;
    background: #eef0f4;
    transition: background 0.18s, color 0.18s, transform 0.15s, box-shadow 0.15s;
    user-select: none;
    box-shadow: none;
}

.fw-interest-chip input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.fw-interest-chip .fw-chip-check {
    display: none;
    font-size: 0.75rem;
    font-weight: 900;
    line-height: 1;
}

.fw-interest-chip:has(input:checked),
.fw-interest-chip.active {
    background: #4338CA;
    color: #fff;
    box-shadow: 0 2px 8px rgba(67,56,202,0.35);
}

.fw-interest-chip:has(input:checked) .fw-chip-check,
.fw-interest-chip.active .fw-chip-check {
    display: inline;
}

.fw-interest-chip:hover {
    background: #dde1ea;
    color: #111;
    transform: translateY(-1px);
}

.fw-interest-chip:has(input:checked):hover,
.fw-interest-chip.active:hover {
    background: #3730a3;
    color: #fff;
    transform: translateY(-1px);
}

/* ─── Benefits block (login / signup cards) ─────────────────── */
.fw-benefits-block {
    background: #fffbf0;
    border: 1.5px solid #FABC2C;
    border-radius: 8px;
    padding: 0.9rem 1.1rem 0.75rem;
    margin-bottom: 1.5rem;
}

.fw-benefits-heading {
    font-size: 0.72rem;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #111;
    margin-bottom: 0.65rem;
}

.fw-benefits-list {
    list-style: none;
    padding: 0;
    margin: 0 0 0.5rem;
    font-size: 0.82rem;
    color: #333;
    line-height: 1.45;
}

.fw-benefits-list li {
    padding: 3px 0;
}

.fw-benefits-footer {
    font-size: 0.75rem;
    color: #888;
}

.fw-gold-text {
    color: #c89a15;
    font-weight: 600;
}

/* ─── Signup nudge modal ────────────────────────────────────── */
.fw-nudge-dialog {
    max-width: 480px;
}

.fw-nudge-dismiss {
    font-size: 0.82rem;
    color: #999 !important;
    padding: 4px 0;
    line-height: 1.4;
}

.fw-nudge-dismiss:hover {
    color: #555 !important;
}

/* ─── Homepage signup CTA banner ────────────────────────────── */
.fw-signup-cta {
    background: #111;
    border-bottom: 2px solid #FABC2C;
    color: #ddd;
    font-size: 0.88rem;
    overflow: hidden;
    max-height: 120px;
    opacity: 1;
    transform: translateY(0);
    transition: max-height 0.6s ease, opacity 0.6s ease, transform 0.6s ease;
}

.fw-signup-cta--hidden {
    max-height: 0;
    opacity: 0;
    transform: translateY(-100%);
    border-bottom-width: 0;
}

.fw-signup-cta strong {
    color: #fff;
}

.fw-banner-close {
    opacity: 0.6;
    font-size: 0.75rem;
}

.fw-banner-close:hover {
    opacity: 1;
}

/* ─── Article detail auth nudge ─────────────────────────────── */
.fw-article-nudge {
    background: #fffbf0;
    border: 1.5px solid #FABC2C;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    color: #333;
}

/* ─── Article detail hero ───────────────────────────────────── */
.hero-image {
    max-width: 100%;
    max-height: 380px;
    width: auto;
    height: auto;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 2rem;
    display: block;
}

/* ─── Footer ────────────────────────────────────────────────── */
.site-footer {
    background-color: #0a0a0a;
    color: #666;
    text-align: center;
    width: 100%;
    margin-top: auto;
    font-size: 0.78rem;
    letter-spacing: 0.03em;
    border-top: 1px solid #1e1e1e;
}

.fw-footer-link {
    color: #666;
    font-size: 0.78rem;
    padding: 0.15rem 0.55rem;
    letter-spacing: 0.02em;
    transition: color 0.18s ease;
}
.fw-footer-link:hover,
.fw-footer-link:focus {
    color: #FABC2C;
    text-decoration: none;
}

/* ─── Static / legal pages ──────────────────────────────────── */
.fw-static-page {
    background: #f7f8fa;
    min-height: 60vh;
}
.fw-static-content {
    line-height: 1.85;
    font-size: 1.05rem;
    color: #2c2c2c;
}
.fw-static-content p { margin-bottom: 1.1rem; }
.fw-static-content ul,
.fw-static-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}
.fw-static-content li { margin-bottom: 0.4rem; }
.fw-static-content a { color: #FABC2C; text-decoration: underline; }
.fw-static-content a:hover { color: #d4a017; }
.fw-static-content h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.65rem;
    color: #1a1a1a;
}
.fw-static-content h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}
.fw-static-content em { color: #555; }
.fw-static-content hr { border-color: #e5e5e5; margin: 1.5rem 0; }

body.fw-dark .fw-static-page { background: #141414; }
body.fw-dark .fw-static-page .card { background: #1e1e1e; border-color: #2a2a2a; }
body.fw-dark .fw-static-content { color: #ccc; }
body.fw-dark .fw-static-content h2,
body.fw-dark .fw-static-content h3 { color: #e8e8e8; }
body.fw-dark .fw-static-content em { color: #999; }
body.fw-dark .fw-static-content hr { border-color: #2a2a2a; }

/* ─── Favourite button (card + detail) ─────────────────────── */
/* Card hearts — circular badge so they pop on every card */
.fw-fav-btn {
    background: rgba(220, 70, 60, 0.07);
    border: 1.5px solid rgba(220, 70, 60, 0.38);
    border-radius: 4px;
    width: auto;
    height: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    cursor: pointer;
    color: #c0392b;
    font-size: 0.82rem;
    line-height: 1;
    flex-shrink: 0;
    transition: color 0.2s, transform 0.15s, background 0.2s, border-color 0.2s;
}
.fw-fav-btn:hover {
    color: #e74c3c;
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.14);
    transform: scale(1.15);
}
.fw-fav-btn.fw-fav-active {
    color: #e74c3c;
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.12);
}
.fw-fav-btn.fw-fav-active:hover { color: #c0392b; border-color: #c0392b; }

/* Article detail page Save button — overrides fw-fav-btn base sizing */
.fw-fav-detail {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border: 2px solid rgba(231, 76, 60, 0.55);
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    color: #c0392b;
    background: rgba(231, 76, 60, 0.05);
    transition: all 0.2s;
    cursor: pointer;
    width: auto;
    height: auto;
}
.fw-fav-detail:hover {
    border-color: #e74c3c;
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}
.fw-fav-detail.fw-fav-active {
    border-color: #e74c3c;
    background: #fff5f5;
    color: #e74c3c;
}

/* Fade-out animation when removing a favourite card from the dashboard */
@keyframes fw-fav-out {
    0%   { opacity: 1; transform: scale(1); }
    60%  { opacity: 0; transform: scale(0.88); }
    100% { opacity: 0; transform: scale(0.88); }
}
.fw-fav-fade-out {
    animation: fw-fav-out 0.35s ease forwards;
    pointer-events: none;
}

/* ─── Dashboard page wrapper ────────────────────────────────── */
.fw-dashboard {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ─── Dashboard hero band ───────────────────────────────────── */
.fw-dash-hero {
    background: #fff;
    border-bottom: 2px solid #f0f0f0;
    position: sticky;
    top: 0;
    z-index: 10;
}

/* ─── Section card ──────────────────────────────────────────── */
.fw-section-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.06);
    padding: 1.5rem;
    border: 1px solid rgba(0,0,0,0.06);
}

.fw-section-title {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #666;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.6rem;
    margin-bottom: 1rem;
}

/* ─── Interest display tags (profile dashboard) ─────────────── */
.fw-interest-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: #FABC2C;
    color: #000;
    font-weight: 700;
    font-size: 0.82rem;
    border-radius: 20px;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}
.fw-interest-tag:hover {
    background: #e0a820;
    color: #000;
    transform: translateY(-1px);
    text-decoration: none;
}

/* ─── Profile hero / avatar / header ───────────────────────── */
.fw-profile-header { border-bottom: 1px solid #eee; padding-bottom: 1.5rem; }

.fw-profile-avatar {
    width: 80px;
    height: 80px;
    background: #FABC2C;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 900;
    color: #000;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(250,188,44,0.45), 0 0 0 4px rgba(250,188,44,0.15);
    letter-spacing: -0.02em;
}

.fw-profile-username {
    font-size: 1.9rem;
    font-weight: 900;
    color: #111;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.fw-hero-since {
    font-size: 0.78rem;
    color: #888;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 4px;
}

/* ─── Stat cards ────────────────────────────────────────────── */
.fw-stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem 0.75rem;
    border: 1px solid #f0f0f0;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s, transform 0.2s;
}
.fw-stat-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}
.fw-stat-icon {
    font-size: 1.1rem;
    margin-bottom: 6px;
    color: #FABC2C;
    line-height: 1;
}
.fw-stat-num {
    font-size: 1.6rem;
    font-weight: 800;
    color: #111;
    line-height: 1;
    margin-bottom: 4px;
}
.fw-stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #999;
    font-weight: 700;
}

/* ─── Profile tabs ──────────────────────────────────────────── */
.fw-profile-tabs {
    gap: 6px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0;
}
.fw-profile-tabs .nav-link {
    color: #555;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 8px 8px 0 0;
    padding: 8px 18px;
    border: 2px solid transparent;
    border-bottom: none;
    transition: color 0.2s, background 0.2s;
    margin-bottom: -2px;
}
.fw-profile-tabs .nav-link:hover { color: #111; background: #f8f8f8; }
.fw-profile-tabs .nav-link.active {
    background: #fff;
    color: #111;
    border-color: #f0f0f0 #f0f0f0 #fff;
    font-weight: 700;
}

/* ─── Settings form toggles ─────────────────────────────────── */
.fw-settings-toggle {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 4px 0;
}
.fw-settings-toggle .form-check-input {
    width: 2.5em;
    height: 1.4em;
    flex-shrink: 0;
    margin-top: 2px;
    cursor: pointer;
}
.fw-settings-toggle .form-check-input:checked {
    background-color: #FABC2C;
    border-color: #FABC2C;
}
.fw-settings-toggle .form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(250,188,44,0.25);
    border-color: #FABC2C;
}
.fw-settings-toggle .form-check-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #222;
    cursor: pointer;
}
.fw-settings-toggle .form-text {
    font-size: 0.78rem;
    color: #888;
    margin-top: 2px;
}

/* ─── Dark mode ─────────────────────────────────────────────── */
body.fw-dark {
    background-color: #111;
    color: #ddd;
}
body.fw-dark .fw-dash-hero { background: #1a1a1a; border-color: #2a2a2a; }
body.fw-dark .fw-section-card {
    background: #1e1e1e;
    border-color: #2a2a2a;
    box-shadow: 0 1px 6px rgba(0,0,0,0.4);
}
body.fw-dark .fw-section-title { color: #888; border-color: #2a2a2a; }
body.fw-dark .fw-stat-card {
    background: #1e1e1e;
    border-color: #2a2a2a;
}
body.fw-dark .fw-stat-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.4); }
body.fw-dark .fw-stat-num { color: #eee; }
body.fw-dark .fw-card,
body.fw-dark .auth-card {
    background: #1e1e1e;
    border-color: #2a2a2a;
}
body.fw-dark .fw-card-title,
body.fw-dark .card-title { color: #e4e4e4; }
body.fw-dark .fw-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.5); }
body.fw-dark .fw-profile-username { color: #eee; }
body.fw-dark .text-dark  { color: #e4e4e4 !important; }
body.fw-dark .text-muted { color: #777 !important; }
body.fw-dark .tagline-bar { background-color: #1a1a1a; }
body.fw-dark .fw-profile-header { border-color: #2a2a2a; }
body.fw-dark .fw-profile-tabs { border-color: #2a2a2a; }
body.fw-dark .fw-profile-tabs .nav-link { color: #aaa; }
body.fw-dark .fw-profile-tabs .nav-link:hover { background: #222; color: #eee; }
body.fw-dark .fw-profile-tabs .nav-link.active {
    background: #1e1e1e;
    color: #eee;
    border-color: #2a2a2a #2a2a2a #1e1e1e;
}
body.fw-dark .fw-interest-chip {
    background: #242638;
    border: none;
    color: #aaa;
}
body.fw-dark .fw-interest-chip:has(input:checked),
body.fw-dark .fw-interest-chip.active {
    background: #4338CA;
    border: none;
    color: #fff;
}
body.fw-dark .fw-interest-chip:hover {
    background: #2d3048;
    color: #eee;
}
body.fw-dark .fw-settings-toggle .form-check-label { color: #ddd; }
body.fw-dark .fw-settings-toggle .form-text { color: #666; }
body.fw-dark .border-top { border-color: #2a2a2a !important; }
body.fw-dark .auth-card-title { color: #eee; }
body.fw-dark .fw-auth-input { background: #1a1a1a; border-color: #333; color: #ddd; }
body.fw-dark .fw-auth-input:focus { border-color: #FABC2C; }

@media (max-width: 767px) {
    .fw-profile-tabs .nav-link {
        font-size: 0.78rem;
        padding: 7px 12px;
    }
    .fw-section-card { padding: 1.1rem; }
    /* hero: on mobile, drop sticky so it doesn't pin above the content */
    .fw-dash-hero { position: relative; }
}

/* ── Toastify overrides ──────────────────────────────────────── */
.toastify {
    border-radius: 10px !important;
    box-shadow: 0 6px 24px rgba(0,0,0,0.18) !important;
    font-family: inherit !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    padding: 0.75rem 1.1rem !important;
    border-left: 4px solid rgba(255,255,255,0.35) !important;
    letter-spacing: 0.01em;
}
.toastify.on { opacity: 1 !important; }
@media (max-width: 575px) {
    .toastify { border-radius: 8px !important; font-size: 0.82rem !important; }
}

/* ═══════════════════════════════════════════════════════════════
   PROFILE: HERO BAND POLISH
════════════════════════════════════════════════════════════════ */
/* Override: gold underline + overflow clip for wave SVG */
.fw-dash-hero {
    border-bottom: 3px solid #FABC2C;
    overflow: hidden;
}

.fw-hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    pointer-events: none;
}

.fw-logout-btn {
    font-weight: 600;
    font-size: 0.8rem;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

body.fw-dark .fw-hero-since { color: #666; }

/* ═══════════════════════════════════════════════════════════════
   PROFILE: ACCORDION (div/button, animated via JS max-height)
════════════════════════════════════════════════════════════════ */
.fw-accordion-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 2rem;
}

.fw-accordion {
    width: 100%;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e8e8e8;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    overflow: hidden;
    transition: box-shadow 0.25s, border-color 0.25s;
}

.fw-acc--open {
    box-shadow: 0 6px 24px rgba(0,0,0,0.09);
    border-color: #FABC2C;
}

.fw-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.05rem 1.4rem;
    background: none;
    border: none;
    cursor: pointer;
    user-select: none;
    font-weight: 700;
    font-size: 1rem;
    color: #1a1a1a;
    text-align: left;
    transition: background 0.15s;
    gap: 12px;
    font-family: inherit;
}

.fw-accordion-header:hover { background: #fafafa; }
.fw-accordion-header:focus-visible {
    outline: 2px solid #FABC2C;
    outline-offset: -2px;
}

.fw-acc--open > .fw-accordion-header {
    border-bottom: 1px solid #f0f0f0;
    background: #fffdf5;
}

.fw-acc-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fw-accordion-arrow {
    color: #ccc;
    font-size: 0.7rem;
    flex-shrink: 0;
    transition: transform 0.32s cubic-bezier(0.34,1.2,0.64,1), color 0.2s;
}

.fw-acc--open .fw-accordion-arrow {
    transform: rotate(180deg);
    color: #FABC2C;
}

.fw-accordion-body {
    position: relative;
    padding: 1.4rem 1.4rem 1.6rem;
    transition: max-height 0.34s ease;
}

/* ─── Skeleton loader (Saved / History open animation) ──────── */
@keyframes fw-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.55; }
}

.fw-skeleton-overlay {
    display: none;
    position: absolute;
    inset: 0;
    padding: 1.4rem 1.4rem 1.6rem;
    background: #fff;
    z-index: 4;
    border-radius: 0 0 14px 14px;
}

.fw-skeleton-card {
    background: #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    animation: fw-pulse 1.5s ease-in-out infinite;
}

.fw-skeleton-img {
    width: 100%;
    height: 140px;
    background: #e2e2e2;
}

.fw-skeleton-body {
    padding: 1rem;
}

.fw-skeleton-line {
    height: 13px;
    background: #e2e2e2;
    border-radius: 6px;
    margin-bottom: 10px;
}
.fw-skeleton-line--med   { width: 75%; }
.fw-skeleton-line--short { width: 40%; }

/* Dark mode */
body.fw-dark .fw-skeleton-overlay { background: #1e1e1e; }
body.fw-dark .fw-skeleton-card    { background: #2a2a2a; }
body.fw-dark .fw-skeleton-img,
body.fw-dark .fw-skeleton-line    { background: #333; }

/* ─── Display label inside Interests body ───────────────────── */
.fw-display-label {
    font-size: 0.78rem;
    color: #999;
    margin-bottom: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ─── Empty state (Saved / History) ─────────────────────────── */
.fw-empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #bbb;
}
.fw-empty-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
    opacity: 0.25;
}
.fw-empty-text {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

/* ─── Card hover lift + scale ───────────────────────────────── */
.fw-card {
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.fw-card:hover {
    transform: translateY(-4px) scale(1.015);
    box-shadow: 0 10px 28px rgba(0,0,0,0.11);
    z-index: 1;
}

/* ─── Dark mode: accordion ───────────────────────────────────── */
body.fw-dark .fw-accordion {
    background: #1e1e1e;
    border-color: #2a2a2a;
    box-shadow: 0 1px 4px rgba(0,0,0,0.35);
}

body.fw-dark .fw-acc--open {
    box-shadow: 0 6px 24px rgba(0,0,0,0.5);
    border-color: #FABC2C;
}

body.fw-dark .fw-accordion-header { color: #e0e0e0; }
body.fw-dark .fw-accordion-header:hover { background: #252525; }
body.fw-dark .fw-acc--open > .fw-accordion-header {
    border-color: #2a2a2a;
    background: #1f1c10;
}
body.fw-dark .fw-accordion-arrow { color: #444; }
body.fw-dark .fw-accordion-body { color: #ccc; }
body.fw-dark .fw-display-label { color: #555; }
body.fw-dark .fw-empty-text { color: #555; }
body.fw-dark .fw-card:hover { box-shadow: 0 10px 28px rgba(0,0,0,0.55); }

/* ─── Feed toggle pills ──────────────────────────────────────── */
.fw-feed-pills {
    display: inline-flex;
    align-items: center;
    background: #ebebeb;
    border-radius: 50px;
    padding: 3px;
    gap: 0;
}
.fw-feed-pill {
    padding: 6px 22px;
    border: none;
    background: transparent;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    color: #666;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}
.fw-feed-pill.active {
    background: #f9c800;
    color: #1a1a1a;
    box-shadow: 0 2px 8px rgba(249,200,0,0.4);
}
.fw-feed-pill:hover:not(.active) {
    background: rgba(249,200,0,0.18);
    color: #1a1a1a;
}
.fw-feed-label {
    font-size: 0.8rem;
    color: #888;
}
.fw-feed-setup-link {
    color: #c9a800;
    text-decoration: none;
    font-weight: 600;
}
.fw-feed-setup-link:hover { text-decoration: underline; color: #a88c00; }

body.fw-dark .fw-feed-pills  { background: #2a2a2a; }
body.fw-dark .fw-feed-pill   { color: #aaa; }
body.fw-dark .fw-feed-pill.active { background: #f9c800; color: #1a1a1a; }
body.fw-dark .fw-feed-pill:hover:not(.active) { background: rgba(249,200,0,0.1); color: #eee; }
body.fw-dark .fw-feed-label  { color: #666; }

/* ─── Guest heart button ─────────────────────────────────────── */
.fw-fav-btn.fw-fav-guest {
    color: #c0392b;
    border-color: rgba(220, 70, 60, 0.38);
    background: rgba(220, 70, 60, 0.07);
}
.fw-fav-btn.fw-fav-guest:hover {
    color: #e74c3c;
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.14);
    transform: scale(1.15);
}

/* ─── Heart pop animation (on save) ─────────────────────────── */
@keyframes fw-heart-pop {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.5); }
    70%  { transform: scale(0.9); }
    100% { transform: scale(1); }
}
.fw-fav-pop {
    animation: fw-heart-pop 0.38s cubic-bezier(.17,.67,.45,1.42) forwards;
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 767px) {
    .fw-accordion-header {
        padding: 0.9rem 1rem;
        font-size: 0.9rem;
    }
    .fw-accordion-body {
        padding: 1rem 1rem 1.25rem;
    }
    .fw-acc-title { gap: 6px; }
}
