/* ═══════════════════════════════════════════════════════════════════════════════
   EPISODE ONE — MAIN
   main.css
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ── Nav shell ───────────────────────────────────────────────────────────────── */
.eo-nav {
    background: linear-gradient(180deg, #E8C547 0%, #D4AF37 40%, #B8960C 100%);
    box-shadow: 0 2px 15px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.3);
    border-bottom: 1px solid rgba(0,0,0,0.15);
    height: 90px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1000;
}

/* ── Logo ────────────────────────────────────────────────────────────────────── */
.eo-nav-brand { flex-shrink: 0; display: flex; align-items: center; margin-right: 20px; }

.eo-nav-logo {
    height: 65px;
    width: auto;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
}

.eo-nav-logo:hover { opacity: 0.9; transform: scale(1.02); }

/* ── Nav links ───────────────────────────────────────────────────────────────── */
.eo-nav-links {
    display: flex;
    align-items: stretch;
    height: 100%;
}

.eo-nav-link {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(0,0,0,0.75);
    text-decoration: none;
    padding: 0 12px;
    display: flex;
    align-items: center;
    position: relative;
    transition: color 0.2s, letter-spacing 0.2s;
    background: none;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.eo-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #1a1a1a;
    transition: width 0.3s ease, left 0.3s ease;
}

.eo-nav-link:hover { color: #1a1a1a; letter-spacing: 2.5px; text-decoration: none; }
.eo-nav-link:hover::after { width: 100%; left: 0; }

.eo-caret {
    font-size: 8px;
    margin-left: 4px;
    transition: transform 0.2s;
    display: inline-block;
}

/* ── Dropdowns ───────────────────────────────────────────────────────────────── */
.eo-dropdown { position: relative; display: flex; align-items: stretch; }

.eo-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    background: #111;
    border-top: 2px solid #D4AF37;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    z-index: 9999;
    flex-direction: column;
}

.eo-dropdown:hover .eo-dropdown-menu { display: flex; }
.eo-dropdown:hover .eo-caret { transform: rotate(180deg); }

.eo-user-dropdown .eo-dropdown-menu {
    left: auto;
    right: 0;
    transform: none;
    width: max-content;
}

.eo-dropdown-item {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #aaa;
    text-decoration: none;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #1e1e1e;
    transition: color 0.15s, background 0.15s;
    white-space: nowrap;
}

.eo-dropdown-item:last-child { border-bottom: none; }
.eo-dropdown-item:hover { color: #f0ece4; background: #1a1a1a; text-decoration: none; }
.eo-dropdown-divider { height: 1px; background: #2a2a2a; margin: 4px 0; }

/* ── User trigger ────────────────────────────────────────────────────────────── */
.eo-user-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 0 0 12px;
    height: 100%;
    outline: none;
}

.eo-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid rgba(0,0,0,0.25);
    display: block;
}

.eo-user-avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0,0,0,0.15);
    border: 1.5px solid rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
}

.eo-user-name {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(0,0,0,0.7);
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eo-user-menu-header { padding: 14px 18px 10px; border-bottom: 1px solid #1e1e1e; }

.eo-user-menu-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    font-weight: 400;
    color: #f0ece4;
    display: block;
    margin-bottom: 2px;
}

.eo-user-menu-handle { font-family: 'Source Sans 3', sans-serif; font-size: 10px; color: #555; }
.eo-user-menu-links { padding: 6px 0; }
.eo-signout { color: #555 !important; }
.eo-signout:hover { color: #e07070 !important; background: rgba(180,60,60,0.06) !important; }

/* ── Badge ───────────────────────────────────────────────────────────────────── */
.eo-badge {
    background: #1a1a1a;
    color: #D4AF37;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 9px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    margin-left: auto;
    border: 1px solid #2a2a2a;
}

/* ── Nav right ───────────────────────────────────────────────────────────────── */
.eo-nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}

/* ── Auth buttons ────────────────────────────────────────────────────────────── */
.eo-nav-auth { display: flex; align-items: center; flex-shrink: 0; }

.eo-nav-signin {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(0,0,0,0.65);
    text-decoration: none;
    padding: 8px 14px;
    transition: color 0.2s;
}

.eo-nav-signin:hover { color: #1a1a1a; text-decoration: none; }

.eo-nav-join {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(0,0,0,0.75);
    text-decoration: none;
    padding: 8px 14px;
    border: 1px solid rgba(0,0,0,0.4);
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.eo-nav-join:hover { background: rgba(0,0,0,0.08); color: #1a1a1a; text-decoration: none; }

/* ── Search icon ─────────────────────────────────────────────────────────────── */
.eo-search-icon-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(0,0,0,0.7);
    transition: color 0.2s;
}

.eo-search-icon-btn:hover { color: #1a1a1a; }

/* ── Search overlay ──────────────────────────────────────────────────────────── */
.eo-search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: rgba(0,0,0,0.5);
    min-height: 100vh;
}

.eo-search-overlay.open { display: block; }

.eo-search-overlay-inner {
    background: #ffffff;
    width: 100%;
    box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}

.eo-search-overlay-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    border-bottom: 2px solid #D4AF37;
}

.eo-search-overlay-bar svg { flex-shrink: 0; }

.eo-search-overlay-bar input {
    flex: 1;
    border: none;
    outline: none;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 18px;
    font-weight: 300;
    color: #1a1a1a;
    background: transparent;
    letter-spacing: 0.3px;
}

.eo-search-overlay-bar input::placeholder { color: #bbb; font-style: italic; }

#eo-search-close {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #999;
    padding: 4px 8px;
    flex-shrink: 0;
    transition: color 0.2s;
}

#eo-search-close:hover { color: #333; }

#eo-search-results {
    display: none;
    width: 100%;
    background: white;
    border-top: 1px solid #f0f0f0;
    max-height: 60vh;
    overflow-y: auto;
}

#eo-search-results.active { display: block; }

/* ── Search result items ─────────────────────────────────────────────────────── */
.search-result-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.15s;
    cursor: pointer;
}

.search-result-item:hover,
.search-result-item.highlighted { background: #fafafa; }

.search-result-poster { width: 36px; height: 52px; flex-shrink: 0; margin-right: 12px; overflow: hidden; }
.search-result-poster img { width: 100%; height: 100%; object-fit: cover; }
.search-result-no-poster { width: 100%; height: 100%; background: #2a2a2a; }
.search-result-info { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.search-result-title { font-family: 'Source Sans 3', sans-serif; font-size: 13px; font-weight: 600; color: #1a1a1a; }
.search-result-creator { font-family: 'Source Sans 3', sans-serif; font-size: 11px; color: #999; font-weight: 300; }
.search-result-arrow { font-size: 14px; color: #D4AF37; margin-left: 10px; opacity: 0; transition: opacity 0.15s, transform 0.15s; }
.search-result-item:hover .search-result-arrow,
.search-result-item.highlighted .search-result-arrow { opacity: 1; transform: translateX(3px); }
.search-no-results { padding: 18px 15px; font-family: 'Source Sans 3', sans-serif; font-size: 13px; color: #999; font-style: italic; text-align: center; }
.search-results-footer { padding: 10px 15px; font-family: 'Source Sans 3', sans-serif; font-size: 11px; color: #bbb; border-top: 1px solid #f0f0f0; background: #fafafa; text-align: center; }

/* ── Mobile hamburger ────────────────────────────────────────────────────────── */
.eo-mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: transparent;
    border: 1px solid rgba(0,0,0,0.3);
    cursor: pointer;
}

.eo-mobile-menu-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background: #1a1a1a;
    border-radius: 1px;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   MOBILE NAV — redesigned
   ═══════════════════════════════════════════════════════════════════════════════ */

.eo-mobile-nav {
    display: none;
    width: 100%;
    background: linear-gradient(180deg, #D4AF37 0%, #B8960C 100%);
    border-top: 1px solid rgba(255,255,255,0.2);
    z-index: 999;
    padding-bottom: 8px;
}

.eo-mobile-nav.open { display: block; }

/* ── Flat list items ─────────────────────────────────────────────────────────── */
.eo-mobile-nav-list {
    list-style: none;
    padding: 8px 0 0;
    margin: 0;
}

.eo-mobile-nav-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: white;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: background 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.eo-mobile-nav-list li a:hover,
.eo-mobile-nav-list li a:active { background: rgba(0,0,0,0.08); }

/* Sign out — subtler */
.eo-mobile-signout {
    color: rgba(255,255,255,0.5) !important;
}

/* Mobile badge */
.eo-mobile-badge {
    background: rgba(0,0,0,0.25);
    color: #fff;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 9px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    margin-left: auto;
}

/* ── Accordion ───────────────────────────────────────────────────────────────── */
.eo-mobile-accordion {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.eo-mobile-accordion-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: white;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s;
}

.eo-mobile-accordion-trigger:active { background: rgba(0,0,0,0.08); }

.eo-mob-chevron {
    flex-shrink: 0;
    color: rgba(255,255,255,0.6);
    transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Open state — chevron flips, label brightens */
.eo-mobile-accordion.is-open .eo-mob-chevron {
    transform: rotate(180deg);
    color: white;
}

.eo-mobile-accordion.is-open .eo-mobile-accordion-trigger {
    background: rgba(0,0,0,0.08);
}

/* Accordion body — animates open/close */
.eo-mobile-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: rgba(0,0,0,0.1);
}

.eo-mobile-accordion.is-open .eo-mobile-accordion-body {
    max-height: 400px; /* large enough for any number of items */
}

.eo-mobile-accordion-item {
    display: block;
    padding: 13px 20px 13px 32px; /* indent to show hierarchy */
    font-family: 'Source Sans 3', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: background 0.15s, color 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.eo-mobile-accordion-item:last-child { border-bottom: none; }
.eo-mobile-accordion-item:hover,
.eo-mobile-accordion-item:active { background: rgba(255,255,255,0.08); color: white; }

/* ── Divider between nav and account section ─────────────────────────────────── */
.eo-mobile-nav-divider {
    height: 1px;
    background: rgba(255,255,255,0.15);
    margin: 8px 0 0;
}

/* ── User identity block ─────────────────────────────────────────────────────── */
.eo-mobile-nav-user {
    padding: 14px 20px 10px;
}

.eo-mobile-nav-user-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    color: #fff;
    display: block;
    margin-bottom: 2px;
}

.eo-mobile-nav-user-handle {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 10px;
    color: rgba(255,255,255,0.4);
}

/* ── Auth buttons ────────────────────────────────────────────────────────────── */
.eo-mobile-nav-auth {
    padding: 12px 20px 16px;
    display: flex;
    gap: 10px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.eo-mobile-signin,
.eo-mobile-join {
    flex: 1;
    text-align: center;
    padding: 12px;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 2px;
    transition: background 0.2s;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eo-mobile-signin { color: rgba(255,255,255,0.8); border: 1px solid rgba(255,255,255,0.3); }
.eo-mobile-signin:hover { background: rgba(255,255,255,0.08); color: #fff; text-decoration: none; }
.eo-mobile-join { color: #1a1a1a; background: rgba(255,255,255,0.9); border: 1px solid transparent; }
.eo-mobile-join:hover { background: #fff; text-decoration: none; color: #1a1a1a; }

/* ── Responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 991px) {
    .eo-nav { height: auto; min-height: 60px; padding: 8px 16px; }
    .eo-nav-logo { height: 40px; }
    .eo-nav-links { display: none; }
    .eo-nav-auth { display: none; }
    .eo-user-dropdown { display: none; }
    .eo-mobile-menu-btn { display: flex; }
    .eo-search-overlay-bar { padding: 14px 16px; }
    .eo-search-overlay-bar input { font-size: 16px; }
}

@media (max-width: 480px) {
    .eo-nav-logo { height: 34px; }
}

/* ── Back to top ─────────────────────────────────────────────────────────────── */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(180deg, #E8C547 0%, #D4AF37 40%, #B8960C 100%);
    color: white;
    border: none;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

#back-to-top.visible { opacity: 1; visibility: visible; }
#back-to-top:hover { transform: scale(1.1); filter: brightness(1.1); }

/* ── Scroll animations ───────────────────────────────────────────────────────── */
.fade-in {
    opacity: 0;
    transform: translateY(80px) scale(0.97);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.fade-in.visible { opacity: 1; transform: translateY(0) scale(1); }

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.fade-in-left.visible { opacity: 1; transform: translateX(0); }

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.fade-in-right.visible { opacity: 1; transform: translateX(0); }

.pop-in {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.pop-in.visible { opacity: 1; transform: translateY(0) scale(1); }

/* ── Homepage auth CTA ───────────────────────────────────────────────────────── */
.auth-cta-block {
    width: 100%;
    background: #fafafa;
    border-top: 3px solid #D4AF37;
    border-bottom: 3px solid #D4AF37;
}

.auth-cta-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 50px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.auth-cta-text { flex: 1; }

.auth-cta-eyebrow {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #B8960C;
    margin-bottom: 10px;
}

.auth-cta-headline {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    font-weight: 300;
    color: #1a1a1a;
    line-height: 1.2;
    margin-bottom: 8px;
}

.auth-cta-sub {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 13px;
    color: #888;
    line-height: 1.6;
    margin: 0;
}

.auth-cta-actions { display: flex; gap: 12px; flex-shrink: 0; align-items: center; }

.auth-cta-join {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    padding: 13px 28px;
    background: #1a1a1a;
    color: #f0ece4 !important;
    border: none;
    text-decoration: none;
    transition: background 0.2s;
    white-space: nowrap;
}
.auth-cta-join:hover { background: #2a2a2a; }

.auth-cta-signin {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 11px 24px;
    background: transparent;
    color: rgba(0,0,0,0.65) !important;
    border: 1px solid rgba(0,0,0,0.35);
    text-decoration: none;
    transition: background 0.2s;
    white-space: nowrap;
}
.auth-cta-signin:hover { background: rgba(0,0,0,0.06); color: #1a1a1a !important; }

@media (max-width: 767px) {
    .auth-cta-inner { flex-direction: column; padding: 40px 20px; gap: 28px; align-items: flex-start; }
    .auth-cta-actions { width: 100%; }
    .auth-cta-join, .auth-cta-signin { flex: 1; text-align: center; }
    .auth-cta-headline { font-size: 1.6rem; }
}

/* ── Tooltip dot ─────────────────────────────────────────────────────────────── */
.tooltip-dot {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 8px;
    height: 8px;
    background: #D4AF37;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    animation: tooltip-pulse 2s infinite;
}

@keyframes tooltip-pulse {
    0% { box-shadow: 0 0 0 0 rgba(212,175,55,0.6); }
    70% { box-shadow: 0 0 0 8px rgba(212,175,55,0); }
    100% { box-shadow: 0 0 0 0 rgba(212,175,55,0); }
}

/* ── Sticky layout ───────────────────────────────────────────────────────────── */
html, body { height: 100%; margin: 0; padding: 0; }
body { display: flex; flex-direction: column; }
main { flex: 1; }

/* ── Mobile account accordion ────────────────────────────────────────────────── */
.eo-mobile-account-trigger {
    padding: 12px 20px;
}

.eo-mob-account-identity {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.eo-mob-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1.5px solid rgba(255,255,255,0.3);
}

.eo-mob-avatar-placeholder {
    background: rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: white;
}

.eo-mob-account-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    text-align: left;
}

.eo-mob-account-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: white;
    letter-spacing: 0.3px;
    text-transform: none;
}

.eo-mob-account-handle {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.45);
    text-transform: none;
}

/* Sign out inside accordion — muted */
.eo-mob-signout {
    color: rgba(255,255,255,0.4) !important;
    border-top: 1px solid rgba(255,255,255,0.1) !important;
    margin-top: 4px;
}

.eo-mob-signout:hover { color: rgba(255,255,255,0.7) !important; }

/* Badge inside accordion item */
.eo-mobile-accordion-item .eo-mobile-badge {
    margin-left: auto;
}
/* ── Toast messages ──────────────────────────────────────────────────────────── */
.eo-messages {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 360px;
}
.eo-message {
    padding: 12px 36px 12px 16px;
    border-radius: 4px;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 13px;
    background: #1a1a1a;
    color: #f0ece4;
    border-left: 3px solid #D4AF37;
    position: relative;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.eo-message-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 12px;
    padding: 0;
    line-height: 1;
}
.eo-message-close:hover { color: #ccc; }
@media (max-width: 768px) {
    .eo-messages {
        top: auto;
        bottom: 20px;
        right: 12px;
        left: 12px;
        max-width: 100%;
    }
}

/* ── Profile tribe badge ─────────────────────────────────────────────────── */
.profile-tribe {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    padding: 4px 12px;
    background: rgba(212,175,55,0.08);
    border: 1px solid rgba(212,175,55,0.25);
    border-radius: 2px;
}
.profile-tribe-emblem {
    color: #D4AF37;
    font-size: 10px;
}
.profile-tribe-name {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #D4AF37;
}

/* ── Tribe recommendations ───────────────────────────────────────────────── */
.tribe-recs {
    padding: 48px 40px;
    max-width: 1200px;
    margin: 0 auto;
}
.tribe-recs-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 24px;
}
.tribe-recs-eyebrow {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #D4AF37;
    margin: 0 0 6px;
}
.tribe-recs-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 400;
    color: #1a1a1a;
    margin: 0;
}
.tribe-recs-sub {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 12px;
    color: #999;
    margin: 0;
    text-align: right;
    max-width: 240px;
}
.tribe-recs-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
}
.tribe-rec-item {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
    border-radius: 3px;
    display: block;
    text-decoration: none;
}
.tribe-rec-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.tribe-rec-item:hover img { transform: scale(1.04); }
.tribe-rec-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 10px 8px;
    opacity: 0;
    transition: opacity 0.2s;
}
.tribe-rec-item:hover .tribe-rec-overlay { opacity: 1; }
.tribe-rec-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.85rem;
    color: #f0ece4;
    margin: 0 0 2px;
    line-height: 1.2;
}
.tribe-rec-creator {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 9px;
    color: #D4AF37;
    margin: 0;
    letter-spacing: 0.5px;
}
@media (max-width: 768px) {
    .tribe-recs { padding: 32px 20px; }
    .tribe-recs-header { flex-direction: column; align-items: flex-start; }
    .tribe-recs-sub { text-align: left; max-width: 100%; }
    .tribe-recs-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ── Profile tribe block ─────────────────────────────────────────────────── */
.profile-tribe-block {
    margin-top: 8px;
    margin-bottom: 4px;
}
.profile-tribe-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    padding: 4px 12px 4px 10px;
    background: rgba(212,175,55,0.08);
    border: 1px solid rgba(212,175,55,0.25);
    border-radius: 2px;
    transition: background 0.2s;
}
.profile-tribe-link:hover {
    background: rgba(212,175,55,0.15);
    text-decoration: none;
}
.profile-tribe-emblem { color: #D4AF37; font-size: 10px; }
.profile-tribe-name {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #D4AF37;
}
.profile-tribe-arrow {
    font-size: 10px;
    color: rgba(212,175,55,0.5);
}
.profile-tribe-reason {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.95rem;
    color: #999;
    font-style: italic;
    line-height: 1.5;
    margin: 8px 0 0;
    max-width: 360px;
}
.profile-tribe-block--empty { margin-top: 8px; }
.profile-tribe-survey-btn {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #888;
    background: none;
    border: 1px solid #ddd;
    border-radius: 2px;
    padding: 6px 14px;
    cursor: pointer;
    transition: all 0.2s;
}
.profile-tribe-survey-btn:hover { border-color: #D4AF37; color: #D4AF37; }

/* ── Show page tribe signals ─────────────────────────────────────────────── */
.show-tribe-signals {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.show-tribe-signal {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px 4px 8px;
    background: rgba(212,175,55,0.08);
    border: 1px solid rgba(212,175,55,0.2);
    border-radius: 2px;
    text-decoration: none;
    transition: background 0.2s;
}
.show-tribe-signal:hover {
    background: rgba(212,175,55,0.15);
    text-decoration: none;
}
.show-tribe-signal-emblem { color: #D4AF37; font-size: 9px; }
.show-tribe-signal-name {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #D4AF37;
}
.show-tribe-signal-score {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 9px;
    color: rgba(212,175,55,0.6);
    margin-left: 2px;
}

/* ── Browse read badge & toggle ──────────────────────────────────────────── */
.browse-card-read-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #1a1600;
    background: #D4AF37;
    padding: 3px 8px;
    border-radius: 2px;
    z-index: 2;
}
.browse-card--read {
    opacity: 0.6;
}
.browse-card--read:hover {
    opacity: 1;
}
.browse-read-toggle {
    display: flex;
    align-items: center;
    margin-left: 8px;
}
.browse-read-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 12px;
    color: #888;
    cursor: pointer;
    white-space: nowrap;
}
.browse-read-label input[type="checkbox"] {
    accent-color: #D4AF37;
    width: 14px;
    height: 14px;
    cursor: pointer;
}
.browse-read-label:hover { color: #f0ece4; }

/* ── Reading Goal Strip (home feed) ─────────────────────────────────────── */
.goal-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 40px;
  background: #141414;
  border-bottom: 1px solid #1e1e1e;
}
.goal-strip-label {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #D4AF37;
  white-space: nowrap;
}
.goal-strip-track {
  flex: 1;
  max-width: 200px;
  height: 2px;
  background: #2a2a2a;
  border-radius: 2px;
  overflow: hidden;
}
.goal-strip-fill {
  height: 100%;
  background: linear-gradient(90deg, #B8960C, #D4AF37);
  border-radius: 2px;
}
.goal-strip-count {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 11px;
  color: #888;
  white-space: nowrap;
}
.goal-strip-status {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 2px 8px;
  border: 1px solid;
  white-space: nowrap;
}
.goal-strip-status--good {
  color: #6dba8a;
  border-color: rgba(109, 186, 138, 0.25);
}
.goal-strip-status--behind {
  color: #e07070;
  border-color: rgba(224, 112, 112, 0.25);
}
.goal-strip-edit {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 11px;
  color: #555;
  text-decoration: none;
  margin-left: auto;
  white-space: nowrap;
  transition: color 0.2s;
}
.goal-strip-edit:hover { color: #D4AF37; }
@media (max-width: 768px) {
  .goal-strip { padding: 10px 20px; }
  .goal-strip-track { max-width: 100px; }
  .goal-strip-status { display: none; }
}
