:root {
    --bg: #141414;
    --text: #dadada;
    --muted: #a3a3a3;
    --dimmed: #525252;
    --rule: #2a2a2a;
    --accent: #5894f4;
    --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    font-size: 17px;
}

body {
    font-family: var(--sans);
    line-height: 1.55;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }

/* ─────── Header / masthead ─────── */
header {
    max-width: 880px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}
@media (max-width: 760px) {
    header { padding-bottom: 0.5rem; }
}
header .masthead h1 {
    margin: 0;
    line-height: 0;
}
header .masthead h1 a {
    text-decoration: none;
}
header .masthead h1 a.masthead-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}
.masthead-icon {
    display: block;
    height: 56px;
    width: 56px;
    flex-shrink: 0;
}
.masthead-lockup {
    display: block;
    height: 84px;
    width: auto;
    max-width: 100%;
}
@media (max-width: 600px) {
    .masthead-lockup { height: 60px; }
    .masthead-icon { height: 42px; width: 42px; }
    .masthead-link { gap: 0.55rem; }
}
header .masthead .subtitle {
    font-size: 0.7rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-top: 0.6rem;
}
header .nav {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}
header .nav a,
header .nav form button {
    color: var(--muted);
    text-decoration: none;
    background: none;
    border: none;
    font-family: var(--sans);
    font-size: inherit;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    cursor: pointer;
    padding: 0;
    transition: color 0.15s;
}
header .nav a:hover,
header .nav form button:hover { color: var(--text); }

/* ─────── Hamburger + mobile drawer ─────── */
.hamburger-btn {
    display: inline-flex;
    background: none;
    border: none;
    padding: 0.4rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}
.hamburger-btn.has-new::after {
    content: '';
    position: absolute;
    top: 2px;
    right: 2px;
    width: 9px;
    height: 9px;
    background: var(--accent);
    border-radius: 50%;
    border: 2px solid var(--bg);
}
header .nav { display: none; }
.hamburger-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
}

.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99;
    opacity: 0;
    transition: opacity 0.2s;
}
.drawer-backdrop.show { opacity: 1; }
.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(85vw, 360px);
    background: #1a1a1a;
    border-left: 1px solid var(--rule);
    z-index: 100;
    overflow-y: auto;
    padding: 1.25rem 1.25rem 2rem;
    transform: translateX(100%);
    transition: transform 0.2s ease-out;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.5);
}
.mobile-drawer.open { transform: translateX(0); }
.drawer-close {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    margin-left: auto;
    display: block;
}
.drawer-close:hover { color: var(--text); }

.drawer-account {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 0 1.25rem;
    border-bottom: 1px solid var(--rule);
    text-decoration: none;
}
.drawer-account-avatar {
    display: block;
    line-height: 0;
    text-decoration: none;
    transition: opacity 0.15s;
}
.drawer-account-avatar:hover { opacity: 0.85; }
.drawer-account-meta {
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.15s;
}
.drawer-account-meta:hover { opacity: 0.85; }
.drawer-username {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.01em;
}
.drawer-account-link {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    margin-top: 0.25rem;
}

.drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--rule);
}
.drawer-nav a,
.drawer-nav form button {
    display: block;
    padding: 0.65rem 0;
    background: none;
    border: none;
    color: var(--text);
    text-decoration: none;
    font-family: var(--sans);
    font-size: 0.95rem;
    text-align: left;
    cursor: pointer;
    width: 100%;
}
.drawer-nav a:hover,
.drawer-nav form button:hover { color: var(--accent); }
.drawer-nav form { margin: 0; }

.drawer-upcoming { padding-top: 1.25rem; }
.drawer-upcoming h3 {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 500;
    color: var(--muted);
    margin: 0 0 0.85rem;
}
.drawer-upcoming ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.drawer-upcoming li {
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--rule);
}
.drawer-upcoming li:last-child { border-bottom: none; }
.drawer-upcoming-artist {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    display: block;
}
.drawer-upcoming-artist:hover { color: var(--accent); }
.drawer-upcoming-meta {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-top: 0.2rem;
}
.drawer-upcoming-empty {
    font-size: 0.85rem;
    color: var(--dimmed);
    font-style: italic;
    margin: 0;
}
.drawer-popular {
    padding-top: 1.5rem;
    margin-top: 1.25rem;
    border-top: 1px solid var(--rule);
}
.drawer-popular h3 {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 500;
    color: var(--muted);
    margin: 0 0 0.85rem;
}
.drawer-popular ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.drawer-popular li {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--rule);
}
.drawer-popular li:last-child { border-bottom: none; }
.drawer-popular-artist {
    display: block;
    font-size: 0.95rem;
    color: var(--text);
    font-weight: 500;
    text-decoration: none;
    line-height: 1.3;
}
.drawer-popular-artist:hover { color: var(--accent); }
.drawer-popular-meta {
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 0.15rem;
}
.drawer-popular-starrers {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem;
    margin-top: 0.5rem;
}
.starrer-avatar {
    display: inline-block;
    line-height: 0;
    border-radius: 50%;
    transition: transform 0.15s;
}
.starrer-avatar:hover {
    transform: translateY(-1px);
}
.drawer-popular-starrers .starrer-avatar .avatar {
    width: 24px;
    height: 24px;
    font-size: 0.7rem;
}

.popular-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.popular-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--rule);
}
.popular-item:last-child { border-bottom: none; }
.popular-rank {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
    min-width: 1.5em;
}
.popular-artist {
    display: block;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    line-height: 1.25;
}
.popular-artist:hover { color: var(--accent); }
.popular-meta {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 0.25rem;
}
.popular-starrers {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.6rem;
}
.drawer-nav a.drawer-ig-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--muted);
}
.drawer-nav a.drawer-ig-link:hover { color: var(--accent); }
.drawer-nav a.drawer-ig-link .ig-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Hide the desktop sidebar on mobile — its contents move into the drawer. */
@media (max-width: 760px) {
    .layout-two-col .sidebar { display: none; }
    .layout-two-col {
        grid-template-columns: 1fr;
    }
}

/* Cap Recommended at 5 items via JS-applied class. */
.hidden-extra { display: none !important; }

/* ─────── Error bar ─────── */
.error-bar {
    max-width: 880px;
    margin: 0 auto;
    padding: 0.85rem 1.5rem;
    font-size: 0.75rem;
    color: var(--accent);
    border-bottom: 1px solid var(--rule);
}

/* ─────── Layout / two-column ─────── */
.layout {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.layout-one-col {
    max-width: 600px;
}
.layout-two-col {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 3rem;
    align-items: start;
}
.layout-two-col .sidebar {
    grid-column: 2;
    grid-row: 1;
    position: sticky;
    top: 1.5rem;
}
.layout-two-col .main-col {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
}
@media (max-width: 760px) {
    .layout-two-col {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
    .layout-two-col .sidebar {
        grid-column: 1;
        grid-row: auto;
        position: static;
    }
    .layout-two-col .main-col {
        grid-column: 1;
        grid-row: auto;
    }
}

/* ─────── Sections ─────── */
.section {
    padding: 1.25rem 0 0;
}
.section h2 {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 500;
    color: var(--muted);
    margin-bottom: 1.5rem;
}

/* Highlighted "Recommended" section */
.section.highlights {
    margin-top: 0;
    padding: 1.5rem 1.75rem 0.5rem;
    background: rgba(88, 148, 244, 0.06);
    border: 1px solid rgba(88, 148, 244, 0.15);
    border-radius: 10px;
}
.section.highlights h2 {
    color: var(--accent);
    margin-bottom: 0.4rem;
}
.section.highlights .section-help {
    color: var(--muted);
    font-size: 0.8rem;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}
.section.highlights .card {
    border-bottom-color: rgba(88, 148, 244, 0.12);
}
.section.highlights .card:last-child { border-bottom: none; }

/* Indicator chips on Recommended cards (friend avatar / stats.fm icon).
   Sit inline with the dismiss × and promote ★ buttons at the top-right. */
/* Artist row: artist headline + friend/stats.fm chips share the row. */
.card-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
}
.card-row h3 {
    flex: 1;
    min-width: 0;
}
.match-source {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}
.match-chip {
    display: inline-flex;
    border-radius: 50%;
    text-decoration: none;
    transition: transform 0.15s;
}
.match-chip:hover { transform: translateY(-1px); }
.match-chip .avatar-sm { border: none; background: transparent; }

/* ─────── Homepage hero with text overlay (anon visitors only) ─────── */
.homepage-hero {
    position: relative;
    margin: 0.75rem 0 0;
    border-radius: 10px;
    overflow: hidden;
}
.homepage-hero img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 380px;
    max-height: 520px;
    object-fit: cover;
}
.hero-content {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.65) 60%, rgba(0, 0, 0, 0.85) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2.25rem 1.75rem;
    color: #fff;
}
.hero-content .callout-heading {
    color: #fff;
    font-size: 1.85rem;
    line-height: 1.15;
    margin: 0 0 0.75rem;
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.5);
}
.hero-content .hero-body {
    color: rgba(255, 255, 255, 0.94);
    font-size: 1rem;
    line-height: 1.55;
    max-width: 30rem;
    margin: 0 0 1.4rem;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}
.hero-content .anon-actions { margin-top: 0; }
.hero-content .hero-signin {
    margin: 0.95rem 0 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
}
.hero-content .hero-signin a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s;
}
.hero-content .hero-signin a:hover { border-bottom-color: var(--accent); }

@media (max-width: 480px) {
    .hero-content .callout-heading { font-size: 1.45rem; }
    .hero-content .hero-body { font-size: 0.92rem; }
}

/* ─────── Anonymous callout ─────── */
.anon-callout {
    margin: 2.5rem 0 0;
    padding: 1.75rem 1.75rem 1.5rem;
    background: rgba(88, 148, 244, 0.06);
    border: 1px solid rgba(88, 148, 244, 0.15);
    border-radius: 10px;
    color: var(--muted);
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.6;
}
.anon-callout p { margin: 0; }
.anon-callout .callout-heading {
    color: var(--text);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.2;
    margin: 0 0 0.75rem;
}
.anon-callout .brand {
    color: var(--text);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.anon-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}
.anon-actions a {
    display: inline-block;
    padding: 0.65rem 1.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border-radius: 2px;
    text-decoration: none;
    border-bottom: none;
    transition: opacity 0.15s, background 0.15s, border-color 0.15s, color 0.15s;
}
.anon-actions a:hover { border-bottom: none; }
.anon-actions .btn-primary {
    background: var(--accent);
    color: var(--bg);
    border: 1px solid var(--accent);
}
.anon-actions .btn-primary:hover { opacity: 0.88; }
.anon-actions .btn-secondary {
    background: transparent;
    color: var(--accent);
    border: 1px solid rgba(88, 148, 244, 0.3);
}
.anon-actions .btn-secondary:hover { border-color: var(--accent); }
.anon-callout .anon-signin {
    margin-top: 0.85rem;
    font-size: 0.85rem;
    color: var(--muted);
}
.anon-callout .anon-signin a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s;
}
.anon-callout .anon-signin a:hover { border-bottom-color: var(--accent); }

/* ─────── Cards (main column) ─────── */
.card {
    position: relative;
    padding: 1.4rem 0;
    border-bottom: 1px solid var(--rule);
}
.card:last-child { border-bottom: none; }

.card .kicker {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    margin-bottom: 0.5rem;
    padding-left: 2.5rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
/* Sidebar uses grid layout, so the kicker doesn't need its own padding. */
.sidebar .card .kicker { padding-left: 0; }
.card .kicker .sep { color: var(--dimmed); }

.card h3 {
    font-family: var(--sans);
    font-size: 1.45rem;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.015em;
    color: var(--text);
    padding-left: 2.5rem;
    padding-right: 0;
}
.card h3 a {
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s;
}
.card h3 a:hover { border-bottom-color: currentColor; }

.card.matched h3 { color: var(--accent); }
.card.matched h3 a:hover { border-bottom-color: var(--accent); }

.opener {
    font-size: 0.9rem;
    color: var(--muted);
    margin-top: 0.35rem;
    padding-left: 2.5rem;
    padding-right: 0;
}
.card.matched .opener { padding-right: 4.5rem; }

.sold-out-badge {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--bg);
    background: var(--accent);
    padding: 0.18rem 0.45rem;
    border-radius: 2px;
    vertical-align: middle;
}

/* Spotify search link next to artist names */
.spotify-link {
    display: inline-block;
    vertical-align: middle;
    margin-left: 0.45rem;
    line-height: 0;
    text-decoration: none;
    border-bottom: none !important;
    opacity: 0.55;
    transition: opacity 0.15s, transform 0.15s;
}
.spotify-link:hover {
    opacity: 1;
    transform: translateY(-1px);
    border-bottom: none !important;
}
.spotify-icon {
    width: 17px;
    height: 17px;
    display: block;
}
.sidebar .spotify-link { display: none; }
.feed-card .spotify-icon { width: 17px; height: 17px; }

/* ─────── Star + dismiss buttons ─────── */
.card-actions-left {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    align-items: center;
}
.promote-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.3rem;
    color: var(--dimmed);
    transition: color 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.promote-btn svg { width: 18px; height: 18px; }
.promote-btn:hover { color: var(--text); }
.promote-btn.active { color: #f5b800; }
.promote-btn.active svg { fill: #f5b800; }

.dismiss-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.3rem;
    color: var(--dimmed);
    transition: color 0.15s, background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dismiss-btn svg { width: 18px; height: 18px; }
.dismiss-btn:hover {
    color: #f87171;
    background: rgba(248, 113, 113, 0.1);
    border-radius: 999px;
}
.kbd-x {
    display: inline-block;
    min-width: 1.2em;
    padding: 0 0.25em;
    border: 1px solid var(--rule);
    border-radius: 3px;
    color: var(--muted);
    font-weight: 700;
    font-size: 0.9em;
    line-height: 1.2;
    text-align: center;
}

/* ─────── Sidebar (compact Upcoming list) ─────── */
.sidebar .section { padding-top: 1.5rem; }
.sidebar .section h2 { margin-bottom: 0.75rem; }
.sidebar .card {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--rule);
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
        "star  kicker"
        "star  artist"
        "star  opener";
    column-gap: 0.5rem;
    align-items: center;
    align-content: center;
}
.sidebar .card:last-child { border-bottom: none; }
.sidebar .card .kicker { grid-area: kicker; }
.sidebar .card .kicker {
    font-size: 0.6rem;
    margin-bottom: 0.2rem;
    letter-spacing: 0.1em;
}
.sidebar .card .kicker .venue,
.sidebar .card .kicker .sep { display: none; }
.sidebar .card h3 {
    grid-area: artist;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.3;
    padding-left: 0;
    padding-right: 0;
    letter-spacing: 0;
    color: var(--text);
    min-width: 0;
}
.sidebar .card .opener { display: none; }
.sidebar .card .sold-out-badge {
    font-size: 0.55rem;
    padding: 0.1rem 0.35rem;
}
.sidebar .card .card-actions-left {
    position: static;
    transform: none;
    grid-area: star;
    align-self: center;
}
.sidebar .card .promote-btn {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
    padding: 0.15rem;
    margin-top: 0;
}
.sidebar .card .promote-btn svg { width: 12px; height: 12px; }
.sidebar .empty {
    font-size: 0.8rem;
    padding: 0.5rem 0;
    text-align: left;
    color: var(--dimmed);
}

@media (max-width: 760px) {
    .sidebar .section { padding-top: 1.25rem; }
    .sidebar .section h2 { margin-bottom: 1rem; }
}

/* Anonymous sidebar CTA — mirrors the upcoming list's plain layout
   (no box), just the muted kicker heading with a short CTA below. */
.sidebar-cta-body {
    font-style: italic;
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.5;
    text-align: center;
    margin: 0 0 1rem;
    padding: 0.5rem 0 0.25rem;
}
.sidebar-cta-btn {
    display: block;
    text-align: center;
    padding: 0.55rem 0.85rem;
    background: var(--accent);
    color: var(--bg);
    border-radius: 2px;
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-decoration: none;
    transition: opacity 0.15s;
}
.sidebar-cta-btn:hover { opacity: 0.88; }

/* ─────── New followers sidebar card ─────── */
.new-followers-card {
    position: relative;
    margin-bottom: 1.5rem;
    padding: 1rem 1.1rem 1.25rem;
    background: rgba(88, 148, 244, 0.07);
    border: 1px solid rgba(88, 148, 244, 0.22);
    border-radius: 8px;
}
.new-followers-card h3 {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 500;
    color: var(--accent);
    margin: 0 0 0.85rem;
}
.new-followers-dismiss {
    position: absolute;
    top: 0.4rem;
    right: 0.5rem;
    background: none;
    border: none;
    color: var(--dimmed);
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.2rem 0.4rem;
}
.new-followers-dismiss:hover { color: var(--text); }
.new-followers-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.new-follower-row {
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(88, 148, 244, 0.12);
}
.new-follower-row:last-child { border-bottom: none; }
.new-follower-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--text);
    min-width: 0;
}
.new-follower-link:hover { color: var(--accent); }
.new-follower-username {
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 1;
}
.new-follower-followback,
.new-follower-chip {
    display: block;
    margin: 0.5rem 0 0 calc(30px + 0.6rem);
    padding: 0.35rem 0.7rem;
    border-radius: 2px;
    font-family: var(--sans);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    cursor: pointer;
    font-weight: 700;
    transition: opacity 0.15s;
    white-space: nowrap;
    text-align: center;
    width: max-content;
}
.new-follower-followback {
    background: var(--accent);
    color: var(--bg);
    border: 1px solid var(--accent);
}
.new-follower-followback:hover { opacity: 0.88; }
.new-follower-followback:disabled { opacity: 0.5; cursor: default; }
.new-follower-chip {
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--rule);
    cursor: default;
    font-weight: 500;
}

/* ─────── Onboarding tip (sidebar) ─────── */
.onboarding-tip {
    position: relative;
    margin-top: 2rem;
    padding: 1.1rem 1.1rem 1.25rem;
    background: rgba(88, 148, 244, 0.06);
    border: 1px solid rgba(88, 148, 244, 0.18);
    border-radius: 8px;
}
.onboarding-dismiss {
    position: absolute;
    top: 0.4rem;
    right: 0.5rem;
    background: none;
    border: none;
    color: var(--dimmed);
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    padding: 0.2rem 0.4rem;
    transition: color 0.15s;
}
.onboarding-dismiss:hover { color: var(--text); }
.onboarding-tip h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 0.4rem;
    letter-spacing: -0.01em;
}
.onboarding-tip p {
    font-size: 0.82rem;
    color: var(--muted);
    margin: 0 0 0.85rem;
    line-height: 1.5;
}
.onboarding-btn {
    display: inline-block;
    padding: 0.5rem 0.95rem;
    background: var(--accent);
    color: var(--bg);
    border-radius: 2px;
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    text-decoration: none;
    transition: opacity 0.15s;
}
.onboarding-btn:hover { opacity: 0.88; }

/* ─────── Empty state ─────── */
.empty {
    color: var(--muted);
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.95rem;
}

/* ─────── Search bar ─────── */
.search-bar { margin: 0 0 0.75rem; }
#search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: rgba(88, 148, 244, 0.06);
    color: var(--text);
    border: 1px solid rgba(88, 148, 244, 0.18);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: var(--sans);
    transition: border-color 0.15s;
    -webkit-appearance: none;
}
#search-input:hover { border-color: rgba(88, 148, 244, 0.32); }
#search-input:focus {
    outline: none;
    border-color: rgba(88, 148, 244, 0.45);
}
#search-input::placeholder { color: var(--muted); }
#search-input::-webkit-search-cancel-button { cursor: pointer; }

/* ─────── Venue filter ─────── */
.venue-filter {
    width: 100%;
    padding: 0.55rem 2rem 0.55rem 0.85rem;
    margin-bottom: 0;
    background-color: rgba(88, 148, 244, 0.06);
    color: var(--text);
    border: 1px solid rgba(88, 148, 244, 0.18);
    border-radius: 6px;
    font-size: 0.75rem;
    font-family: var(--sans);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path fill='%235894f4' d='M6 9L1 4h10z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
}
.venue-filter:hover { border-color: rgba(88, 148, 244, 0.32); }
.venue-filter:focus { outline: none; border-color: rgba(88, 148, 244, 0.45); }

/* ─────── Footer ─────── */
.footer {
    max-width: 880px;
    margin: 4rem auto 0;
    padding: 1.5rem;
    text-align: center;
}
.footer .updated {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--dimmed);
}
.footer .updated a {
    color: var(--dimmed);
    text-decoration: none;
    transition: color 0.15s;
}
.footer .updated a:hover { color: var(--text); }

/* Accent borders for any kind of promotion. Sponsor promos render as
   their own card via .card.promo below; concert promos overlay the
   existing event card via .card.promo-highlighted. */
.card.promo,
.card.promo-highlighted {
    border-top: 1px solid var(--accent);
    border-bottom: 1px solid var(--accent);
}
.card.promo {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}
.card.promo .promo-main { flex: 1; min-width: 0; }
.card.promo .promo-pill {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 0.05rem 0.4rem;
    border-radius: 2px;
    margin-right: 0.25rem;
    vertical-align: 1px;
}
.card.promo .promo-body {
    font-size: 0.9rem;
    color: var(--muted);
    margin: 0.4rem 0 0;
    line-height: 1.5;
}
/* Image becomes the brand-mark column on the left of the card. */
.card.promo .promo-thumb-link {
    flex-shrink: 0;
    display: block;
    line-height: 0;
    border-bottom: none !important;
}
.card.promo .promo-thumb {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    flex-shrink: 0;
    transition: opacity 0.15s;
}
.card.promo .promo-thumb-link:hover .promo-thumb { opacity: 0.88; }
.card.promo .promo-main { min-width: 0; }
/* No-image promos inherit the star-column indent from base .card so the
   text aligns with concert cards above and below. The body explicitly
   matches that indent too. */
.card.promo .promo-body { padding-left: 2.5rem; }
/* When an image is present, it acts as the brand mark on the left; pull
   the text flush against it instead of stacking two indents. */
.card.promo.has-image .kicker,
.card.promo.has-image h3,
.card.promo.has-image .promo-body { padding-left: 0; }
.card.promo .promo-cta {
    display: inline-block;
    margin: 0 1rem 0 0;
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--bg);
    background: var(--accent);
    text-decoration: none;
    border: 1px solid var(--accent);
    padding: 0.4rem 0.85rem;
    border-radius: 2px;
    transition: opacity 0.15s;
}
.card.promo .promo-cta:hover { opacity: 0.88; }

/* Instagram link (footer + contact page) */
.ig-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    text-decoration: none;
    color: inherit;
    vertical-align: middle;
}
.ig-icon {
    width: 1em;
    height: 1em;
    display: inline-block;
    vertical-align: -0.12em;
}
.contact-instagram {
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 1.5rem;
}
.contact-instagram .ig-link { color: var(--accent); }
.contact-instagram .ig-link:hover { text-decoration: underline; }

/* ─────── Toast ─────── */
#toast-container {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 1.5rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    pointer-events: none;
}
.toast {
    background: #1f1f1f;
    color: var(--text);
    border: 1px solid rgba(88, 148, 244, 0.35);
    border-radius: 999px;
    padding: 0.65rem 1.1rem;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.2s, transform 0.2s;
    max-width: calc(100% - 2rem);
    text-align: center;
    pointer-events: auto;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ─────── Auth / settings / admin forms ─────── */
.form-wrap {
    max-width: 420px;
    margin: 1.25rem auto 4rem;
    padding: 0 1.5rem;
}
.form-wrap h1,
.page-h1 {
    font-size: 1.85rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0 0 0.5rem;
    color: var(--text);
    line-height: 1.2;
}
.form-wrap h2 {
    font-size: 1.55rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    margin: 0 0 0.4rem;
    color: var(--text);
    line-height: 1.2;
}
.form-wrap .lead {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}
.form-wrap form { display: flex; flex-direction: column; gap: 1rem; }
.form-wrap label {
    font-size: 0.7rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: -0.5rem;
}
.form-wrap input[type="email"],
.form-wrap input[type="password"],
.form-wrap input[type="text"] {
    padding: 0.55rem 0;
    background: transparent;
    color: var(--text);
    border: none;
    border-bottom: 1px solid var(--rule);
    border-radius: 0;
    font-size: 1rem;
    font-family: var(--sans);
    transition: border-color 0.15s;
}
.form-wrap input:focus {
    outline: none;
    border-bottom-color: var(--accent);
}
.form-wrap button[type="submit"] {
    padding: 0.8rem;
    background: var(--accent);
    color: var(--bg);
    border: none;
    border-radius: 2px;
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
    margin-top: 1rem;
    transition: opacity 0.15s;
}
.form-wrap button[type="submit"]:hover { opacity: 0.88; }
.form-wrap .alt {
    text-align: center;
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 1.75rem;
}
.form-wrap .alt a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s;
}
.form-wrap .alt a:hover { border-bottom-color: var(--accent); }
.form-wrap .err {
    border-left: 2px solid var(--accent);
    padding: 0.5rem 0 0.5rem 0.85rem;
    color: var(--accent);
    font-size: 0.85rem;
}
.form-wrap .ok {
    border-left: 2px solid #9bb87c;
    padding: 0.5rem 0 0.5rem 0.85rem;
    color: #9bb87c;
    font-size: 0.85rem;
}
.form-wrap .hint {
    font-size: 0.75rem;
    color: var(--dimmed);
    margin-top: -0.4rem;
    line-height: 1.5;
}

/* Input with a ghosted prefix (e.g. @ for stats.fm username). */
.input-with-prefix {
    position: relative;
    display: block;
}
.input-with-prefix .input-prefix {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--dimmed);
    font-size: 1rem;
    pointer-events: none;
    user-select: none;
}
.input-with-prefix input[type="text"],
.input-with-prefix input[type="email"] {
    padding-left: 1.25rem;
    width: 100%;
}
.form-wrap .hint a { color: var(--muted); border-bottom: 1px solid var(--rule); text-decoration: none; }
.form-wrap .hint a:hover { color: var(--text); border-bottom-color: var(--text); }
.form-wrap .hint.over { color: #ff6b6b; }

/* ─────── Privacy toggle ─────── */
.toggle-row {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.85rem 0;
    cursor: pointer;
    margin-bottom: 0;
}
.toggle-row input[type="checkbox"] {
    flex-shrink: 0;
    margin-top: 0.2rem;
    accent-color: var(--accent);
    width: 1.05rem;
    height: 1.05rem;
}
.toggle-row .toggle-label {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.toggle-row .toggle-label strong {
    color: var(--text);
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
}
.toggle-row .toggle-hint {
    color: var(--dimmed);
    font-size: 0.78rem;
    line-height: 1.45;
}

/* ─────── Friends ─────── */
.friend-add { margin-bottom: 1.5rem; }
.autocomplete-wrap { position: relative; }
.autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.3rem;
    background: var(--bg);
    border: 1px solid var(--rule);
    border-radius: 6px;
    max-height: 260px;
    overflow-y: auto;
    z-index: 10;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.autocomplete-results .ac-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.55rem 0.85rem;
    background: transparent;
    border: none;
    text-align: left;
    color: var(--text);
    font-family: var(--sans);
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.1s;
}
.autocomplete-results .ac-row:hover {
    background: rgba(88, 148, 244, 0.08);
}
.autocomplete-results .ac-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    min-width: 0;
}
.autocomplete-results .ac-username {
    color: var(--text);
    font-weight: 500;
}
.autocomplete-results .ac-name {
    font-size: 0.78rem;
    color: var(--muted);
}

.friend-list { list-style: none; padding: 0; margin: 0; }
.friend-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--rule);
}
.friend-list li:last-child { border-bottom: none; }
.friend-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text);
    transition: opacity 0.15s;
}
.friend-link:hover { opacity: 0.85; }
.friend-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    min-width: 0;
}
.friend-username {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
}
.friend-name {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 0.1rem;
}
.friend-ig {
    display: inline-flex;
    align-items: center;
    color: var(--muted);
    text-decoration: none;
    margin-left: auto;
    margin-right: 0.65rem;
    transition: color 0.15s;
}
.friend-ig:hover { color: var(--accent); }
.friend-ig .ig-icon { width: 18px; height: 18px; }
.friend-remove {
    background: none;
    border: 1px solid var(--rule);
    color: var(--muted);
    padding: 0.3rem 0.7rem;
    border-radius: 2px;
    font-family: var(--sans);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
}
.friend-remove:hover { color: var(--accent); border-color: var(--accent); }
.friend-mutual {
    color: var(--muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.3rem 0.7rem;
    border: 1px solid var(--rule);
    border-radius: 2px;
}
.friend-followback {
    background: var(--accent);
    color: var(--bg);
    border: 1px solid var(--accent);
    padding: 0.3rem 0.7rem;
    border-radius: 2px;
    font-family: var(--sans);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    cursor: pointer;
    font-weight: 700;
    transition: opacity 0.15s;
}
.friend-followback:hover { opacity: 0.88; }

/* ─────── Feed ─────── */
.feed-intro { margin-top: 1.25rem; }
.feed-add-link {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s;
    margin-left: 0.4rem;
}
.feed-add-link:hover { border-bottom-color: var(--accent); }

.feed-list { list-style: none; padding: 0; margin: 0; }
.feed-card {
    position: relative;
    padding: 1.4rem 0;
    border-bottom: 1px solid var(--rule);
}
.feed-card:last-child { border-bottom: none; }
.feed-card .kicker {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    margin-bottom: 0.45rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.feed-card .kicker .sep { color: var(--dimmed); }
.feed-card .kicker { padding-left: 2.5rem; }
.feed-card .opener { padding-left: 2.5rem; padding-right: 0; }
.feed-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    padding-left: 2.5rem;
}
.feed-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.015em;
    color: var(--text);
    margin: 0;
    flex: 1;
    min-width: 0;
}
.feed-card h3 a {
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s;
}
.feed-card h3 a:hover { border-bottom-color: currentColor; }
.feed-card .opener {
    font-size: 0.9rem;
    color: var(--muted);
    margin: 0.35rem 0 0;
}
.feed-attendees {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}
.feed-star {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.3rem;
    color: var(--dimmed);
    transition: color 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.feed-star svg { width: 18px; height: 18px; }
.feed-star:hover { color: var(--text); }
.feed-star.active { color: #f5b800; }
.feed-star.active svg { fill: #f5b800; }
.feed-attendee {
    display: inline-flex;
    border-radius: 50%;
    text-decoration: none;
    transition: transform 0.15s;
}
.feed-attendee:hover { transform: translateY(-2px); }

/* ─────── Page tabs (admin, account) ─────── */
.admin-tabs {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--rule);
}
.admin-tabs a {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    text-decoration: none;
    padding: 0.5rem 0;
    margin-bottom: -1px;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}
.admin-tabs a:hover { color: var(--text); }
.admin-tabs a.active {
    color: var(--text);
    border-bottom-color: var(--accent);
}

/* ─────── Avatar ─────── */
.avatar {
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    object-fit: cover;
    background: rgba(88, 148, 244, 0.12);
    border: 1px solid rgba(88, 148, 244, 0.18);
}
.avatar-large { width: 88px; height: 88px; }
.avatar-xl { width: 140px; height: 140px; }
.avatar-nav { width: 28px; height: 28px; display: inline-block; vertical-align: middle; }
.avatar-nav.avatar-initials { font-size: 0.75rem; }
.avatar-sm { width: 30px; height: 30px; display: inline-block; }
.avatar-sm.avatar-initials { font-size: 0.85rem; }
.avatar-xs { width: 22px; height: 22px; display: inline-block; }
.avatar-xs.avatar-initials { font-size: 0.7rem; }
.nav-avatar-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: opacity 0.15s;
}
.nav-avatar-link:hover { opacity: 0.85; }
.nav-username {
    color: var(--muted);
    transition: color 0.15s;
}
.nav-avatar-link:hover .nav-username { color: var(--text); }
@media (max-width: 480px) {
    .nav-username { display: none; }
}
.avatar-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--accent);
    font-size: 2rem;
    text-transform: uppercase;
}
.avatar-xl.avatar-initials { font-size: 3rem; }

.avatar-row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}
.avatar-controls {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.avatar-controls label {
    font-size: 0.7rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}
.avatar-controls input[type="file"] {
    font-size: 0.85rem;
    color: var(--muted);
    background: transparent;
    border: none;
    padding: 0;
}
.avatar-controls input[type="file"]::file-selector-button {
    background: transparent;
    color: var(--accent);
    border: 1px solid rgba(88, 148, 244, 0.3);
    border-radius: 2px;
    padding: 0.35rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-right: 0.75rem;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.avatar-controls input[type="file"]::file-selector-button:hover {
    border-color: var(--accent);
    background: rgba(88, 148, 244, 0.06);
}

/* ─────── Profile link on /account ─────── */
.profile-link-row {
    background: rgba(88, 148, 244, 0.06);
    border: 1px solid rgba(88, 148, 244, 0.15);
    border-radius: 8px;
    padding: 0.9rem 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.profile-link-label {
    font-size: 0.65rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}
.profile-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.85rem;
    word-break: break-all;
}
.profile-link:hover { text-decoration: underline; }

/* ─────── Account form additions ─────── */
.account-form .form-section { margin-bottom: 1.5rem; }
.account-form textarea {
    padding: 0.65rem 0.85rem;
    background: transparent;
    color: var(--text);
    border: 1px solid var(--rule);
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: var(--sans);
    line-height: 1.5;
    resize: vertical;
    min-height: 8rem;
    width: 100%;
    transition: border-color 0.15s;
}
.account-form textarea:focus { outline: none; border-color: var(--accent); }
.word-counter {
    float: right;
    font-size: 0.65rem;
    color: var(--dimmed);
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
}
.word-counter.over { color: var(--accent); }

.account-actions {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--rule);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.account-actions form { margin: 0; }
/* High-specificity overrides — beat `.form-wrap button[type="submit"]`. */
.account-actions button.btn-secondary {
    width: 100%;
    margin-top: 0;
    padding: 0.7rem;
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--rule);
    border-radius: 2px;
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
}
.account-actions button.btn-secondary:hover {
    color: var(--text);
    border-color: var(--muted);
}
.delete-account-form { text-align: center; margin-top: 0.5rem; }
.account-actions button.link-danger {
    width: auto;
    margin-top: 0;
    padding: 0;
    background: none;
    border: none;
    color: #ff6b6b;
    font-family: var(--sans);
    font-size: 0.8rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.15s;
}
.account-actions button.link-danger:hover {
    text-decoration: underline;
    opacity: 0.85;
}

/* ─────── Profile page ─────── */
.profile-page {
    max-width: 880px;
    margin: 2.5rem auto;
    padding: 0 1.5rem;
}
.profile-head {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--rule);
}
.profile-titles { flex: 1; min-width: 0; }
.profile-username {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    margin: 0;
    color: var(--text);
}
.profile-realname {
    margin-top: 0.25rem;
    font-size: 0.95rem;
    color: var(--muted);
}
.profile-social {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1rem 0 1.5rem;
    padding: 0.75rem 0;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
}
.profile-social-peek {
    display: flex;
    align-items: center;
}
.profile-social-peek .social-peek-avatar {
    display: inline-block;
    margin-left: -0.5rem;
    border: 2px solid var(--bg);
    border-radius: 50%;
    line-height: 0;
    transition: transform 0.15s;
}
.profile-social-peek .social-peek-avatar:first-child { margin-left: 0; }
.profile-social-peek .social-peek-avatar:hover {
    transform: translateY(-2px);
    z-index: 1;
}
.profile-social-peek .social-peek-more {
    margin-left: 0.6rem;
    font-size: 0.8rem;
    color: var(--muted);
}
.profile-social-private {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--muted);
    font-size: 0.8rem;
}
.profile-social-counts {
    font-size: 0.9rem;
    color: var(--muted);
}
.profile-social-counts strong {
    color: var(--text);
    font-weight: 600;
}
.profile-social-counts a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s;
}
.profile-social-counts a:hover { color: var(--accent); }
.profile-social-counts a:hover strong { color: var(--accent); }
.profile-social-counts .sep {
    color: var(--dimmed);
    margin: 0 0.4rem;
}
.social-list-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.social-list-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}
.social-list-mode { color: var(--muted); font-weight: 500; }
.social-list-count {
    color: var(--dimmed);
    font-weight: 500;
    margin-left: 0.25rem;
}
.social-list-back {
    font-size: 0.85rem;
    color: var(--muted);
    text-decoration: none;
}
.social-list-back:hover { color: var(--text); }

.profile-instagram {
    margin-top: 0.4rem;
    font-size: 0.85rem;
}
.profile-instagram a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--muted);
    text-decoration: none;
}
.profile-instagram a:hover { color: var(--accent); }
.profile-instagram .ig-icon { width: 16px; height: 16px; }

.profile-stats-fm {
    margin-top: 0.35rem;
    font-size: 0.75rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.profile-stats-fm a {
    color: var(--accent);
    text-decoration: none;
}
.profile-stats-fm a:hover { text-decoration: underline; }
.profile-follow-btn {
    margin-top: 0.85rem;
    padding: 0.5rem 1.25rem;
    background: var(--accent);
    color: var(--bg);
    border: 1px solid var(--accent);
    border-radius: 2px;
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: opacity 0.15s, background 0.15s, color 0.15s;
}
.profile-follow-btn:hover { opacity: 0.88; }
.profile-follow-btn.following {
    background: transparent;
    color: var(--muted);
    border-color: var(--rule);
}
.profile-follow-btn.following:hover {
    color: var(--accent);
    border-color: var(--accent);
}
.profile-follow-btn:disabled { opacity: 0.5; cursor: default; }
.profile-bio {
    white-space: pre-wrap;
    color: var(--text);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 2rem;
}
.profile-section { margin-top: 2.25rem; }
.profile-section h3 {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 500;
    color: var(--muted);
    margin-bottom: 1rem;
}
.profile-empty {
    color: var(--dimmed);
    font-size: 0.9rem;
    padding: 0.5rem 0;
}
@media (max-width: 500px) {
    .profile-head { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

/* ─────── Help / FAQ page ─────── */
.about-page {
    max-width: 880px;
    margin: 1.25rem auto 4rem;
    padding: 0 1.5rem;
}
.about-page h1 {
    font-size: 1.85rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text);
    margin: 0 0 0.5rem;
}
.help-lead {
    color: var(--muted);
    font-size: 1rem;
    margin: 0 0 1.5rem;
    line-height: 1.6;
}
.help-toc {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 1.5rem;
    padding: 1rem 1.25rem;
    margin: 0 0 2.75rem;
    background: rgba(88, 148, 244, 0.06);
    border: 1px solid rgba(88, 148, 244, 0.15);
    border-radius: 8px;
    font-size: 0.8rem;
}
.help-toc a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s;
}
.help-toc a:hover { border-bottom-color: var(--accent); }
.about-page section {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--rule);
    scroll-margin-top: 1.5rem;
}
.about-page section:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}
.about-page section h2 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 500;
    color: var(--accent);
    margin: 0 0 1.5rem;
}
.about-page section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin: 1.5rem 0 0.5rem;
    letter-spacing: -0.01em;
}
.about-page section h3:first-of-type { margin-top: 0; }
.about-page section p {
    color: var(--text);
    line-height: 1.65;
    margin: 0 0 0.9rem;
    font-size: 0.95rem;
}
.about-page section p strong { color: var(--text); font-weight: 600; }
.about-page section p a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s;
}
.about-page section p a:hover { border-bottom-color: var(--accent); }
.about-page section p code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
    font-size: 0.85em;
    background: rgba(88, 148, 244, 0.08);
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
    color: var(--text);
}
.about-page .alt {
    margin-top: 3rem;
    color: var(--muted);
    font-size: 0.9rem;
}
/* Backwards-compat alias if anything still references the old class. */
.help-page { max-width: 880px; margin: 1.25rem auto 4rem; padding: 0 1.5rem; }

/* Family pucks on the About page. */
.family-pucks {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1.25rem;
}
.family-puck {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text);
    transition: opacity 0.15s;
}
.family-puck:hover { opacity: 0.85; }
.family-puck .avatar-xl {
    width: 96px;
    height: 96px;
    font-size: 2rem;
}
.family-puck-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
}

/* Inline contact form on the About page. */
.about-contact-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.25rem;
}
.about-contact-form label {
    font-size: 0.8rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: -0.25rem;
}
.about-contact-form input[type="text"],
.about-contact-form input[type="email"],
.about-contact-form textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    background: transparent;
    color: var(--text);
    border: 1px solid var(--rule);
    border-radius: 4px;
    font-family: var(--sans);
    font-size: 0.95rem;
    resize: vertical;
}
.about-contact-form input:focus,
.about-contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}
.about-contact-form button[type="submit"] {
    align-self: flex-start;
    padding: 0.6rem 1.25rem;
    background: var(--accent);
    color: var(--bg);
    border: none;
    border-radius: 2px;
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: opacity 0.15s;
}
.about-contact-form button[type="submit"]:hover { opacity: 0.88; }
.about-page .alt a {
    color: var(--accent);
    text-decoration: none;
}
.about-page .alt a:hover { text-decoration: underline; }

/* ─────── Past concerts list ─────── */
.past-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.past-list li {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--rule);
}
.past-list li:last-child { border-bottom: none; }
.past-artist {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    line-height: 1.3;
}
.past-meta {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-top: 0.3rem;
}
