/* Custom styles for Streamer Growth Network */

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #60a5fa;
    --secondary-color: #10b981;
    --secondary-dark: #059669;
    --accent-color: #f59e0b;
    --bg-dark: #111827;
    --bg-secondary: #1a2234;
    --bg-card: #1e2d45;
    --text-primary: #f1f5f9;
    --text-secondary: #d1d5e0;
    --text-muted: #8fa3bd;
    --border-color: rgba(255, 255, 255, 0.09);
}

body {
    min-height: 100vh;
    background-color: var(--bg-dark);
    color: var(--text-primary);
}

/* ── Site Navigation ─────────────────────────────────────────────────────── */

.site-nav {
    height: 58px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1030;
    display: flex;
    align-items: center;
}

.site-nav-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 1rem;
}

.site-nav-left {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.site-nav-center {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.nav-public-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.nav-public-link:hover {
    color: var(--primary-light);
}

.site-nav-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-sidebar-toggle {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.nav-sidebar-toggle:hover {
    background: var(--bg-card);
    color: var(--text-secondary);
    border-color: rgba(255, 255, 255, 0.15);
}

@media (min-width: 768px) {
    .nav-sidebar-toggle {
        display: none;
    }
}

.site-nav-brand {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    /* stylelint-disable-next-line declaration-no-important -- overrides bootstrap nav link color */
    color: var(--text-primary) !important;
    text-decoration: none;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.site-nav-brand i {
    color: #60a5fa;
    font-size: 1.1rem;
}

.site-nav-brand:hover {
    /* stylelint-disable-next-line declaration-no-important -- overrides bootstrap nav link color */
    color: white !important;
}

.nav-user-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.65rem 0.25rem 0.25rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: 'Outfit', sans-serif;
}

.nav-user-btn::after {
    display: none;
}

.nav-user-btn:hover,
.nav-user-btn[aria-expanded="true"] {
    border-color: rgba(255, 255, 255, 0.18);
    background: var(--bg-card);
    color: var(--text-primary);
}

.nav-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.nav-user-initial {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #9147ff);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    flex-shrink: 0;
}

.nav-user-name {
    font-size: 0.875rem;
    font-weight: 500;
}

.nav-chevron {
    font-size: 0.6rem;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

.nav-user-btn[aria-expanded="true"] .nav-chevron {
    transform: rotate(180deg);
}

.nav-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: rgba(145, 71, 255, 0.15);
    border: 1px solid rgba(145, 71, 255, 0.35);
    color: #c084fc;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.nav-login-btn:hover {
    background: rgba(145, 71, 255, 0.25);
    border-color: #c084fc;
    color: #e9d5ff;
}

/* ── Site Footer ─────────────────────────────────────────────────────────── */

.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 2.5rem 0 1.5rem;
}

.site-footer-inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.site-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.site-footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.site-footer-logo i {
    color: #60a5fa;
}

.site-footer-tagline {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0;
}

.site-footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.site-footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.site-footer-col-heading {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.site-footer-col a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.site-footer-col a:hover {
    color: var(--primary-light);
}

.site-footer-copy {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
}

.btn-success {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-success:hover {
    background-color: var(--secondary-dark);
    border-color: var(--secondary-dark);
}

.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.card-title {
    color: var(--text-primary);
}

.card-text {
    color: var(--text-secondary);
}

.clip-card {
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.clip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25), 0 0 0 1px rgba(96, 165, 250, 0.15);
}

.clip-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    background-color: var(--bg-secondary);
}

footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    margin-top: auto;
    padding: 2rem 0;
}

.text-muted {
    /* stylelint-disable-next-line declaration-no-important -- overrides bootstrap utility */
    color: var(--text-muted) !important;
}

a {
    color: var(--primary-light);
    text-decoration: none;
}

a:hover {
    color: var(--primary-color);
}

.badge {
    background-color: var(--accent-color);
    color: var(--bg-dark);
}

.form-control,
.form-select {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.form-control:focus,
.form-select:focus {
    background-color: var(--bg-secondary);
    border-color: var(--primary-color);
    color: var(--text-primary);
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.25);
}

.form-label {
    color: var(--text-secondary);
}


/* Dropdown Menu Styling */
.dropdown-menu {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.dropdown-item {
    color: var(--text-secondary);
    transition: background-color 0.2s;
}

.dropdown-item:hover {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.dropdown-divider {
    border-color: var(--border-color);
}

/* Content Wrapper - contains sidebar and main content */
.content-wrapper {
    position: relative;
}

/* ============================================================
   Sidebar
   ============================================================ */

.sidebar {
    width: 248px;
    background-color: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

/* Mobile: sidebar is hidden and positioned fixed when toggled */
@media (max-width: 767px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: -248px;
        height: 100vh;
        z-index: 1060;
        transition: left 0.28s ease;
    }

    .sidebar.active {
        left: 0;
    }
}

/* Tablet and above: sidebar is always visible */
@media (min-width: 768px) {
    .sidebar {
        position: relative;
    }
}

/* --- User Profile --- */
.sb-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.1rem 1rem;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.sb-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.sb-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: block;
}

.sb-avatar-placeholder {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
}

.sb-online-pip {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--secondary-color);
    border: 2px solid var(--bg-secondary);
}

.sb-user-info {
    flex: 1;
    min-width: 0;
}

.sb-username {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.sb-followers {
    font-family: 'Figtree', sans-serif;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

/* --- Navigation --- */
.sb-nav {
    padding: 0.75rem 0.5rem;
    flex: 1;
}

.sb-nav-label {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    padding: 0.5rem 0.6rem 0.4rem;
    opacity: 0.6;
}

.sb-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-family: 'Figtree', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background-color 0.15s ease, color 0.15s ease;
    margin-bottom: 1px;
}

.sb-link:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    text-decoration: none;
}

.sb-link--active {
    background-color: rgba(37, 99, 235, 0.14);
    color: var(--primary-light);
    font-weight: 600;
}

.sb-link--active:hover {
    background-color: rgba(37, 99, 235, 0.18);
    color: var(--primary-light);
}

.sb-link-icon {
    font-size: 1rem;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
    opacity: 0.85;
}

.sb-link--active .sb-link-icon {
    opacity: 1;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1050;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Hide overlay on tablet and above */
@media (min-width: 768px) {
    .sidebar-overlay {
        display: none;
    }
}


/* Viewer Progress Bar */
.viewer-progress {
    position: relative;
    height: 12px;
    background-color: var(--bg-secondary);
    border-radius: 999px;
    overflow: hidden;
    width: 100%;
    border: 1px solid var(--border-color);
}

.viewer-progress__bar {
    height: 100%;
    width: var(--p, 0%);
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 999px;
    transition: width 300ms ease;
}

.viewer-progress-label {
    position: absolute;
    top: -32px;
    transform: translateX(-50%);
    transition: left 300ms ease;
}

.viewer-progress-label .badge {
    font-size: 0.875rem;
    padding: 0.35rem 0.65rem;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

/* Alpha Callout Banner */
.alpha-callout {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(16, 185, 129, 0.15) 100%);
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.alpha-callout::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.alpha-callout-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.alpha-callout-content {
    color: var(--text-primary);
}

.alpha-callout-title {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.alpha-callout-text {
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.6;
}

/* ── Shared Page Header (ph-*) ───────────────────────────────────────────── */

.ph-header {
    position: relative;
    overflow: hidden;
    padding: 2.5rem 0 2rem;
    background: linear-gradient(165deg, var(--bg-secondary) 0%, var(--bg-dark) 65%);
    border-bottom: 1px solid var(--border-color);
}

.ph-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.ph-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.ph-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Icon tile (tool pages) */
.ph-icon-tile {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    border: 1px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

/* Avatar (personal pages) */
.ph-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
    flex-shrink: 0;
}

.ph-avatar-placeholder {
    background: linear-gradient(135deg, var(--primary-color), #9147ff);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    box-shadow: 0 0 0 4px rgba(145, 71, 255, 0.15);
}

.ph-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.ph-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.4rem, 3.5vw, 1.9rem);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
}

.ph-subtitle {
    font-family: 'Figtree', sans-serif;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.ph-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-family: 'Figtree', sans-serif;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
}

.ph-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.ph-name-gradient {
    background: linear-gradient(95deg, #93c5fd 0%, #38bdf8 55%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Page header compact stage strip (DTF-02) */
.ph-stage-strip {
    flex-basis: 100%;
    width: 100%;
    margin-top: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.ph-stage-row {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    flex-wrap: wrap;
}

.ph-stage-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
    background: rgba(96, 165, 250, 0.15);
    border: 1px solid var(--primary-light);
    color: var(--primary-light);
    font-family: 'Figtree', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
}

.ph-stage-stats {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    flex-wrap: wrap;
}

.ph-stage-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.ph-stage-stat-num {
    font-family: 'Outfit', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary);
}

.ph-stage-stat-label {
    font-family: 'Figtree', sans-serif;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.ph-stage-stat-divider {
    width: 1px;
    height: 18px;
    background: var(--border-color);
}

.ph-stage-spacer {
    flex: 1 1 auto;
}

.ph-stage-next-label {
    font-family: 'Figtree', sans-serif;
    font-size: 0.6875rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.ph-stage-progress {
    position: relative;
    width: 100%;
    height: 5px;
    background: var(--bg-secondary);
    border-radius: 999px;
    overflow: hidden;
}

.ph-stage-progress .stage-progress-fill {
    height: 100%;
    width: 0;
    background: var(--primary-color);
    border-radius: 999px;
    transition: width 0.6s ease;
}

@media (max-width: 575.98px) {
    .ph-stage-row {
        gap: 0.5rem;
    }

    .ph-stage-spacer {
        display: none;
    }

    .ph-stage-next-label {
        flex-basis: 100%;
    }
}

/* Shared page body — use alongside Bootstrap .container on every page */
.page-body {
    padding-top: 1.75rem;
    padding-bottom: 3rem;
}

/* ── Discord Servers ─────────────────────────────────────────────────────── */

.ds-refresh-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.ds-refresh-btn:hover {
    border-color: #818cf8;
    color: #818cf8;
    background: rgba(88, 101, 242, 0.08);
}

.ds-refresh-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* Empty States */
.ds-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
}

.ds-empty-icon {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: block;
}

.ds-empty-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.ds-empty-text {
    color: var(--text-secondary);
    max-width: 440px;
    margin: 0 auto 1.5rem;
}

/* Notice Banners */
.ds-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1.25rem;
    border-radius: 0.625rem;
    border-left: 3px solid;
}

.ds-notice p {
    margin: 0.25rem 0 0;
    font-size: 0.875rem;
    line-height: 1.6;
}

.ds-notice strong {
    font-family: 'Outfit', sans-serif;
    font-size: 0.925rem;
    display: block;
}

.ds-notice--warning {
    background: rgba(245, 158, 11, 0.08);
    border-color: #f59e0b;
    color: var(--text-secondary);
}

.ds-notice--warning .ds-notice-icon {
    color: #f59e0b;
}

.ds-notice--warning strong {
    color: #fbbf24;
}

.ds-notice--info {
    background: rgba(88, 101, 242, 0.08);
    border-color: #5865f2;
    color: var(--text-secondary);
}

.ds-notice--info .ds-notice-icon {
    color: #818cf8;
}

.ds-notice--info strong {
    color: #a5b4fc;
}

.ds-notice-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.ds-notice-link {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ds-link {
    color: #818cf8;
    text-decoration: none;
}

.ds-link:hover {
    text-decoration: underline;
    color: #a5b4fc;
}

/* Section Headers */
.ds-section-header {
    margin-bottom: 1.25rem;
}

.ds-section-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.5rem;
}

.ds-section-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.ds-section-icon--focus {
    background: rgba(139, 92, 246, 0.18);
    color: #a78bfa;
}

.ds-section-icon--other {
    background: rgba(100, 116, 139, 0.18);
    color: var(--text-muted);
}

.ds-section-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-primary);
    margin: 0;
}

.ds-section-title--muted {
    color: var(--text-secondary);
}

.ds-section-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

/* Server Cards */
.ds-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1rem 1.125rem;
    position: relative;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.ds-card:hover {
    transform: translateY(-2px);
    border-color: rgba(88, 101, 242, 0.35);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

.ds-card--community {
    border-color: rgba(16, 185, 129, 0.45);
    box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.2);
}

.ds-card--community:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.25);
}

.ds-card--focus {
    background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
                linear-gradient(135deg, #5865f2, #8b5cf6, #a855f7) border-box;
    border: 1px solid transparent;
    box-shadow: 0 0 18px rgba(139, 92, 246, 0.25), 0 0 36px rgba(139, 92, 246, 0.08);
}

.ds-card--focus:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 24px rgba(139, 92, 246, 0.4), 0 0 48px rgba(139, 92, 246, 0.15);
}

.ds-card-identity {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    min-width: 0;
}

.ds-server-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.ds-server-icon-placeholder {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--bg-secondary), rgba(88, 101, 242, 0.2));
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.ds-card-info {
    flex: 1;
    min-width: 0;
}

.ds-server-name {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.35rem;
}

.ds-badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.ds-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.01em;
    line-height: 1;
}

.ds-badge--community {
    background: rgba(16, 185, 129, 0.18);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.ds-badge--focus {
    background: rgba(139, 92, 246, 0.18);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.ds-badge--owner {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.ds-members {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

/* Set Community Button */
.set-community-btn {
    position: absolute;
    top: 0.625rem;
    right: 0.625rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    border: 1px solid rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    line-height: 1;
}

.set-community-btn:hover {
    background: rgba(16, 185, 129, 0.22);
    border-color: #34d399;
    color: #6ee7b7;
}

.set-community-btn:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(16, 185, 129, 0.25);
}

/* Spin animation (shared) */
.spinning {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Skeleton Loading Styles */
.skeleton {
    background: linear-gradient(90deg,
            var(--bg-secondary) 25%,
            rgba(148, 163, 184, 0.15) 50%,
            var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

.skeleton-circle {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    flex-shrink: 0;
}

.skeleton-text {
    height: 1rem;
    width: 100%;
}

.skeleton-text-sm {
    height: 0.75rem;
    width: 80%;
}

@keyframes skeleton-loading {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.min-width-0 {
    min-width: 0;
}

@media (max-width: 767px) {
    .set-community-btn {
        font-size: 0.7rem;
        padding: 0.35rem 0.55rem;
    }
}

/* Modal styling for dark theme */
.modal-content {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
}

.modal-header {
    border-bottom-color: var(--border-color);
}

.modal-footer {
    border-top-color: var(--border-color);
}

.btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Alert link styling for dark theme */
.alert-warning a {
    color: #ffc107;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.alert-warning a:hover {
    color: #ffda6a;
}

.alert-info a {
    color: #0dcaf0;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.alert-info a:hover {
    color: #6edff6;
}

/* ============================================================
   Guide Pages
   ============================================================ */

/* Page header — edge-to-edge, matches ph-* visual language */
.guide-page-header {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #111827 0%, #0f1e38 50%, #111827 100%);
    border-bottom: 1px solid var(--border-color);
    padding: 2.5rem 0;
}

.guide-page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 8% 50%, rgba(37, 99, 235, 0.14) 0%, transparent 65%),
        radial-gradient(ellipse 38% 60% at 88% 30%, rgba(16, 185, 129, 0.09) 0%, transparent 60%);
    pointer-events: none;
}

.guide-page-header-inner {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.guide-page-icon-tile {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    background: rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(37, 99, 235, 0.3);
    color: #60a5fa;
    margin-top: 0.2rem;
}

.guide-page-header-text {
    flex: 1;
    min-width: 0;
}

.guide-page-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.4rem, 3.5vw, 1.9rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.guide-intro {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.75;
    max-width: 70ch;
}

.guide-intro p {
    margin-bottom: 0.625rem;
}

.guide-intro p:last-child {
    margin-bottom: 0;
}

/* Guide two-column layout */
.guide-layout {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.guide-main {
    flex: 1;
    min-width: 0;
}

/* Guide sections */
.guide-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.guide-section:first-child {
    padding-top: 0;
}

.guide-section:last-child {
    border-bottom: none;
}

.guide-section h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.guide-section h2::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 1.1em;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 2px;
    flex-shrink: 0;
}

.guide-section p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.guide-section p:last-child {
    margin-bottom: 0;
}

.guide-section code {
    background-color: var(--bg-secondary);
    color: var(--primary-light);
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    font-size: 0.875em;
    font-family: 'Consolas', 'Monaco', monospace;
    border: 1px solid var(--border-color);
}

.guide-section strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Callout boxes */
.guide-callout {
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin: 1.25rem 0;
    background: rgba(37, 99, 235, 0.07);
    border-left: 3px solid rgba(37, 99, 235, 0.5);
}

.guide-callout p {
    margin-bottom: 0;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.guide-callout-icon {
    color: #60a5fa;
    margin-right: 0.4rem;
}

.guide-tip {
    background: rgba(16, 185, 129, 0.07);
    border-left-color: rgba(16, 185, 129, 0.5);
}

.guide-tip .guide-callout-icon {
    color: var(--secondary-color);
}

.guide-warning {
    background: rgba(245, 158, 11, 0.07);
    border-left-color: rgba(245, 158, 11, 0.5);
}

.guide-warning .guide-callout-icon {
    color: var(--accent-color);
}

/* Final / closing section */
.guide-final {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(16, 185, 129, 0.08) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.75rem;
    margin-top: 0.5rem;
}

.guide-final h2::before {
    background: linear-gradient(180deg, #60a5fa 0%, var(--secondary-color) 100%);
}

/* Table of Contents sidebar */
.guide-toc-sidebar {
    width: 220px;
    flex-shrink: 0;
    display: none;
}

.guide-toc {
    position: sticky;
    top: calc(58px + 1.5rem);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
}

.guide-toc-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.875rem;
}

.guide-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.guide-toc-list li {
    margin-bottom: 0;
}

.guide-toc-list a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    line-height: 1.4;
    transition: all 0.2s ease;
    display: block;
    padding: 0.4rem 0.625rem;
    border-radius: 6px;
    margin-bottom: 1px;
}

.guide-toc-list a:hover {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
    text-decoration: none;
}

.guide-toc-list a.active {
    color: var(--primary-light);
    background: rgba(37, 99, 235, 0.12);
}

/* Show TOC sidebar on large screens */
@media (min-width: 1024px) {
    .guide-toc-sidebar {
        display: block;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .guide-page-header {
        padding: 2rem 0;
    }

    .guide-page-icon-tile {
        display: none;
    }

    .guide-page-title {
        font-size: 1.375rem;
    }

    .guide-section p {
        font-size: 0.9375rem;
    }

    .site-nav-center {
        display: none;
    }

    .site-footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ============================================================
   Vote on Clips Page
   ============================================================ */

.vote-coming-soon {
    text-align: center;
    padding: 3rem 1rem 2.5rem;
}

.vote-soon-icon {
    font-size: 3.5rem;
    color: #f472b6;
    margin-bottom: 1.25rem;
    opacity: 0.9;
}

.vote-soon-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.vote-soon-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 52ch;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.vote-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    max-width: 720px;
    margin: 0 auto;
}

.vote-feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem 1.25rem;
    text-align: center;
}

.vote-feature-icon {
    font-size: 2rem;
    color: var(--primary-light);
    margin-bottom: 0.875rem;
    display: block;
}

.vote-feature-icon--vote {
    color: #4ade80;
}

.vote-feature-icon--trophy {
    color: #fbbf24;
}

.vote-feature-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.375rem;
}

.vote-feature-desc {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

.vote-streamer-notice {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(37, 99, 235, 0.07);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 10px;
    padding: 0.875rem 1.25rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 1.5rem;
}

.vote-streamer-notice-icon {
    color: var(--primary-light);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.vote-streamer-notice-link {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 500;
}

.vote-streamer-notice-link:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .vote-feature-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   My Clips Page
   ============================================================ */

.clip-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.clip-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.clip-card-thumb {
    background: var(--bg-secondary);
}

.clip-card-thumb img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.clip-card-body {
    padding: 0.875rem 1rem 0.625rem;
    flex: 1;
}

.clip-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.5rem;
}

.clip-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-size: 0.775rem;
    color: var(--text-muted);
}

.clip-card-footer {
    padding: 0.625rem 1rem 0.875rem;
    display: flex;
    gap: 0.5rem;
}

.clip-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8125rem;
    font-weight: 500;
    transition: background 0.2s ease;
    text-decoration: none;
    padding: 0.45rem 0.875rem;
}

.clip-card-btn--primary {
    background: var(--primary-color);
    color: #fff;
    flex: 1;
    justify-content: center;
}

.clip-card-btn--primary:hover {
    background: var(--primary-dark);
    color: #fff;
}

.clip-card-btn--icon {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 0.45rem 0.75rem;
}

.clip-card-btn--icon:hover {
    background: rgba(255, 255, 255, 0.1);
}

.clips-empty {
    text-align: center;
    padding: 4rem 1rem;
}

.clips-empty-icon {
    font-size: 3.5rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 1.25rem;
    opacity: 0.6;
}

.clips-empty-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.625rem;
}

.clips-empty-desc {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    max-width: 44ch;
    margin: 0 auto 1.5rem;
}

.clips-empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-color);
    color: #fff;
    border-radius: 8px;
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease;
}

.clips-empty-btn:hover {
    background: var(--primary-dark);
    color: #fff;
}

/* ============================================================
   Watch Stream Page
   ============================================================ */

.watch-stream-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.watch-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
    flex-shrink: 0;
}

.watch-stream-info {
    min-width: 0;
}

.watch-stream-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.375rem;
}

.watch-stream-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.watch-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #f87171;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
}

.watch-live-pip {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #f87171;
    animation: rf-pip-pulse 2s ease-in-out infinite;
}

.watch-stream-title {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.watch-offline {
    text-align: center;
    padding: 4rem 1rem;
}

.watch-offline-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
    margin-bottom: 1rem;
}

.watch-offline-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.watch-offline-notice {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.875rem;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.watch-offline-icon {
    font-size: 1.5rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* ============================================================
   Dashboard Styles
   ============================================================ */

.dashboard-header {
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.dashboard-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.dashboard-icon-wrap {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 10px;
    background: rgba(37, 99, 235, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--primary-light);
}

.dashboard-section-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0;
}

.dashboard-action-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    height: 100%;
}

.dashboard-action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(37, 99, 235, 0.4);
    color: var(--text-primary);
}

.dashboard-action-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.dashboard-action-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
    color: var(--text-primary);
}

.dashboard-action-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ============================================================
   Dashboard v2 — Redesigned Styles
   ============================================================ */

/* --- Dash Cards --- */
.dash-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.dash-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.dash-card-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 9px;
    background: rgba(37, 99, 235, 0.14);
    color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.dash-card-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
    margin: 0;
}

/* --- Stage Card --- */
.dash-stage-card {
    background: linear-gradient(150deg, var(--bg-card) 0%, rgba(37, 99, 235, 0.05) 100%);
}

/* Colored top accent stripe */
.dash-stage-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color) 0%, #38bdf8 100%);
}

.stage-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.6rem;
}

.stage-eyebrow {
    font-family: 'Figtree', sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.stage-name-pill {
    font-family: 'Figtree', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.65rem;
    background: rgba(37, 99, 235, 0.15);
    color: var(--primary-light);
    border-radius: 20px;
    border: 1px solid rgba(37, 99, 235, 0.25);
}

.stage-description {
    font-family: 'Figtree', sans-serif;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    line-height: 1.55;
}

/* Two-stat layout */
.stage-stats-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.stage-stat {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.stage-stat-sep {
    width: 1px;
    height: 2.75rem;
    background: var(--border-color);
    flex-shrink: 0;
}

.stage-stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.9rem, 4.5vw, 2.6rem);
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(95deg, #93c5fd 0%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stage-stat-unit {
    font-family: 'Figtree', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Follower tracking — delta indicator */
.ft-delta {
    display: inline-flex;
    align-items: center;
    gap: 0.1rem;
    font-family: 'Figtree', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1;
    margin-top: 0.25rem;
}

.ft-delta i {
    font-size: 1rem;
}

.ft-delta--up {
    color: var(--secondary-color);
}

.ft-delta--down {
    color: #ef4444;
}

.ft-delta--neutral {
    color: var(--text-muted);
}

.ft-delta-value {
    white-space: nowrap;
}

.stage-progress-area {
    margin-top: auto;
}

.stage-progress-track {
    position: relative;
    height: 7px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.stage-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-color) 0%, #38bdf8 100%);
    border-radius: 999px;
    transition: width 800ms cubic-bezier(0.4, 0, 0.2, 1);
}

.stage-progress-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Figtree', sans-serif;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.stage-next-label {
    display: flex;
    align-items: center;
    gap: 0.05rem;
    color: var(--primary-light);
    font-weight: 500;
}

/* --- Section Heading --- */
.dash-section-head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.dash-section-label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    color: var(--text-muted);
    white-space: nowrap;
}

.dash-section-rule {
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

/* --- Action Cards --- */
.dash-action {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    text-decoration: none;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
    height: 100%;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.dash-action:hover {
    color: var(--text-primary);
    text-decoration: none;
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--action-color, #3b82f6) 40%, transparent);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.dash-action-glow {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    background: radial-gradient(ellipse 90% 120% at 15% 50%, var(--action-color, #3b82f6) 0%, transparent 60%);
}

.dash-action:hover .dash-action-glow {
    opacity: 0.09;
}

.dash-action-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.dash-action-body {
    flex: 1;
    min-width: 0;
}

.dash-action-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.dash-action-desc {
    font-family: 'Figtree', sans-serif;
    font-size: 0.77rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.dash-action-arrow {
    color: var(--text-muted);
    font-size: 1rem;
    flex-shrink: 0;
    transition: transform 0.2s ease, color 0.2s ease;
}

.dash-action:hover .dash-action-arrow {
    transform: translateX(4px);
    color: var(--text-secondary);
}

/* --- Your Streamers Live Now — sl-* styles (DTF-04) --- */

.sl-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.sl-card {
    background: var(--bg-card);
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.sl-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
    border-color: rgba(37, 99, 235, 0.35);
}

.sl-thumb-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg-secondary);
}

.sl-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.sl-card:hover .sl-thumb {
    transform: scale(1.04);
}

.sl-body {
    padding: 0.75rem 0.85rem 0.55rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.sl-username {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.sl-game {
    font-family: 'Figtree', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--primary-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sl-raid-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-family: 'Figtree', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-top: 0.15rem;
}

.sl-footer {
    padding: 0.5rem 0.75rem 0.75rem;
}

.sl-watch-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 100%;
    padding: 0.45rem 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-family: 'Figtree', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.sl-watch-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    text-decoration: none;
}

.sl-save-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 100%;
    padding: 0.45rem 0.6rem;
    background: var(--primary-color);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-family: 'Figtree', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
}

.sl-save-btn:hover {
    background: var(--primary-dark);
}

.sl-save-btn--saved {
    background: rgba(16, 185, 129, 0.15);
    color: var(--secondary-color);
    cursor: default;
}

.sl-save-btn--saved:hover {
    background: rgba(16, 185, 129, 0.15);
}

/* Context banners */
.sl-context-banner {
    font-family: 'Figtree', sans-serif;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    padding: 0.65rem 1rem;
    background: rgba(26, 34, 52, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

.sl-context-banner--fallback {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.sl-browse-link {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary-light);
    text-decoration: none;
    white-space: nowrap;
}

.sl-browse-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Empty state */
.sl-empty {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
}

.sl-empty-icon {
    font-size: 1.5rem;
    color: var(--text-muted);
}

.sl-empty-title {
    font-family: 'Figtree', sans-serif;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.sl-empty-sub {
    font-family: 'Figtree', sans-serif;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    margin-bottom: 0;
}

.sl-empty-link {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--primary-light);
    font-family: 'Figtree', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
}

.sl-empty-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.sl-empty-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

/* Skeleton loading */
.sl-card--skeleton .sl-thumb-wrap {
    background: var(--bg-secondary);
}

.sl-sk-line {
    height: 10px;
    border-radius: 4px;
}

.sl-sk-line--name {
    width: 65%;
    height: 12px;
}

.sl-sk-line--game {
    width: 45%;
}

.sl-sk-btn {
    height: 34px;
    border-radius: 8px;
}

/* Responsive grid */
@media (max-width: 767.98px) {
    .sl-grid { grid-template-columns: repeat(2, 1fr); }
}


/* ============================================================
   Raid Finder — rf-* styles
   ============================================================ */

/* --- Live Status Pill --- */
.rf-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font-family: 'Figtree', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.rf-status-pill--live {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.rf-status-pill--offline {
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
}

.rf-status-pip {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5);
    animation: rf-pip-pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes rf-pip-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
    60% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
}

/* --- Notice Banners --- */
.rf-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-family: 'Figtree', sans-serif;
    font-size: 0.875rem;
    line-height: 1.5;
    border: 1px solid transparent;
}

.rf-notice i {
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.rf-notice--info {
    background: rgba(6, 182, 212, 0.06);
    border-color: rgba(6, 182, 212, 0.2);
    color: var(--text-secondary);
}

.rf-notice--info i {
    color: #06b6d4;
}

.rf-notice--guide {
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.125rem;
    border-radius: 8px;
    background: rgba(37, 99, 235, 0.07);
    border: none;
    border-left: 3px solid rgba(37, 99, 235, 0.5);
    color: #94a3b8;
}

.rf-notice--guide i {
    color: var(--primary-light);
}

.rf-notice--guide .rf-notice-link {
    color: #94a3b8;
    text-decoration: underline;
    text-decoration-color: rgba(148, 163, 184, 0.3);
    text-underline-offset: 2px;
}

.rf-notice--guide .rf-notice-link:hover {
    color: var(--primary-light);
    text-decoration-color: var(--primary-light);
}

.rf-notice--guide .rf-notice-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.3);
    color: var(--primary-light);
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
    margin-left: auto;
    flex-shrink: 0;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.rf-notice--guide .rf-notice-pill:hover {
    background: rgba(37, 99, 235, 0.18);
    border-color: rgba(37, 99, 235, 0.5);
}

.rf-notice--warning {
    background: rgba(245, 158, 11, 0.06);
    border-color: rgba(245, 158, 11, 0.2);
    color: var(--text-secondary);
}

.rf-notice--warning i {
    color: var(--accent-color);
}

/* --- Empty State --- */
.rf-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 4rem 1rem 3rem;
}

.rf-empty-icon {
    font-size: 3rem;
    color: var(--text-muted);
    opacity: 0.4;
    margin-bottom: 1.25rem;
    line-height: 1;
}

.rf-empty-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
}

.rf-empty-text {
    font-family: 'Figtree', sans-serif;
    font-size: 0.875rem;
    color: var(--text-muted);
    max-width: 400px;
    line-height: 1.65;
    margin: 0;
}

/* --- Offline State --- */
.rf-summary {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem 1.375rem;
    margin-bottom: 1rem;
}

.rf-summary__stats {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.rf-summary__stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.rf-summary__value {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.rf-summary__label {
    font-family: 'Figtree', sans-serif;
    font-size: 0.6875rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

.rf-summary__divider {
    width: 1px;
    height: 50px;
    background: var(--border-color);
}

.rf-summary__most {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
}

.rf-summary__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.rf-summary__pill {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    color: var(--text-secondary);
    font-family: 'Figtree', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.rf-summary__pill:hover {
    border-color: var(--primary-light);
    color: var(--text-primary);
}

.sc-btn--save-raid {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-family: 'Figtree', sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.sc-btn--save-raid:hover {
    border-color: var(--primary-light);
    color: var(--text-primary);
}

.sc-btn--save-raid.sc-card__favorite-btn--active {
    background: rgba(37, 99, 235, 0.15);
    border-color: var(--primary-color);
    color: var(--primary-light);
}

/* ============================================================
   Stream Card — sc-* styles
   ============================================================ */

.sc-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.sc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.14);
}

.sc-card--raided {
    border-color: rgba(139, 92, 246, 0.7);
    box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.25);
}

.sc-card--raided:hover {
    border-color: rgba(139, 92, 246, 0.9);
}

/* --- Thumbnail --- */
.sc-thumb-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg-secondary);
    flex-shrink: 0;
}

.sc-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.sc-card:hover .sc-thumb {
    transform: scale(1.04);
}

.sc-thumb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 50%,
        rgba(0, 0, 0, 0.65) 100%
    );
    pointer-events: none;
}

/* LIVE badge */
.sc-live-badge {
    position: absolute;
    top: 0.6rem;
    left: 0.6rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.55rem;
    background: rgba(239, 68, 68, 0.9);
    border-radius: 5px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #fff;
    backdrop-filter: blur(4px);
}

.sc-live-pip {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5);
    animation: sc-pip-pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes sc-pip-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5); }
    60% { box-shadow: 0 0 0 4px rgba(255, 255, 255, 0); }
}

/* Viewer count badge */
.sc-viewer-badge {
    position: absolute;
    bottom: 0.55rem;
    right: 0.55rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.55rem;
    background: rgba(0, 0, 0, 0.65);
    border-radius: 5px;
    font-family: 'Figtree', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
}

.sc-viewer-badge i {
    font-size: 0.68rem;
    opacity: 0.75;
}

/* --- Body --- */
.sc-body {
    padding: 0.9rem 1rem 0.65rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.sc-username {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.sc-game {
    font-family: 'Figtree', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--primary-light);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sc-game i {
    font-size: 0.72rem;
    flex-shrink: 0;
    opacity: 0.8;
}

.sc-title {
    font-family: 'Figtree', sans-serif;
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sc-raid-history {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-family: 'Figtree', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    color: #a78bfa;
    margin-top: 0.1rem;
}

.sc-raid-history i {
    font-size: 0.68rem;
    flex-shrink: 0;
}

/* --- Footer --- */
.sc-footer {
    display: flex;
    gap: 0.5rem;
    padding: 0.65rem 0.75rem 0.75rem;
    border-top: 1px solid var(--border-color);
}

.sc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    flex: 1;
    padding: 0.5rem 0.6rem;
    border-radius: 8px;
    font-family: 'Figtree', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
    white-space: nowrap;
}

.sc-btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.sc-btn--watch {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.sc-btn--watch:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.18);
}

.sc-btn--raid {
    background: var(--primary-color);
    color: #fff;
}

.sc-btn--raid:hover {
    background: var(--primary-dark);
    color: #fff;
}

/* ============================================================
   Account Page
   ============================================================ */

/* --- Cards --- */
.account-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.5rem;
}

.account-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.account-card-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 9px;
    background: rgba(37, 99, 235, 0.14);
    color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.account-card-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin: 0;
}

/* --- Edit button --- */
.account-edit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.8rem;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 7px;
    font-family: 'Figtree', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary-light);
    cursor: pointer;
    text-decoration: none;
    margin-left: auto;
    transition: background-color 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
}

.account-edit-btn:hover {
    background: rgba(37, 99, 235, 0.16);
    border-color: rgba(37, 99, 235, 0.35);
    color: var(--primary-light);
    text-decoration: none;
}

/* --- Fields --- */
.account-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border-color);
    gap: 1rem;
}

.account-field:last-of-type {
    border-bottom: none;
}

.account-field-label {
    font-family: 'Figtree', sans-serif;
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 500;
    flex-shrink: 0;
}

.account-field-value {
    font-family: 'Figtree', sans-serif;
    font-size: 0.875rem;
    color: var(--text-primary);
    font-weight: 500;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-field-hint {
    font-family: 'Figtree', sans-serif;
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* --- Connection badges --- */
.account-connected-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-family: 'Figtree', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--secondary-color);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 6px;
    padding: 0.2rem 0.6rem;
}

.account-connect-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-family: 'Figtree', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: #818cf8;
    background: rgba(88, 101, 242, 0.08);
    border: 1px solid rgba(88, 101, 242, 0.2);
    border-radius: 6px;
    padding: 0.2rem 0.6rem;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.account-connect-link:hover {
    background: rgba(88, 101, 242, 0.16);
    color: #818cf8;
    text-decoration: none;
}

/* --- Tag lists --- */
.account-categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.account-category-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(6, 182, 212, 0.08);
    color: #22d3ee;
    border: 1px solid rgba(6, 182, 212, 0.22);
    border-radius: 8px;
    padding: 0.35rem 0.75rem 0.35rem 0.5rem;
    font-family: 'Figtree', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
}

.account-category-art {
    width: 18px;
    height: 24px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
}

.account-lang-tag {
    display: inline-flex;
    align-items: center;
    background: rgba(16, 185, 129, 0.08);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.22);
    border-radius: 8px;
    padding: 0.35rem 0.75rem;
    font-family: 'Figtree', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
}

/* Modal category tags */
.modal-game-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(37, 99, 235, 0.15);
    color: var(--primary-light);
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: 6px;
    padding: 0.3rem 0.65rem;
    font-family: 'Figtree', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
}

.modal-game-tag .btn-close-sm {
    width: 0.6em;
    height: 0.6em;
    opacity: 0.6;
}

.modal-game-tag .btn-close-sm:hover {
    opacity: 1;
}

/* ============================================================
   Category Picker — cp-* styles
   ============================================================ */

.cp-hidden {
    /* stylelint-disable-next-line declaration-no-important -- utility class needs to override any display */
    display: none !important;
}

/* --- Root --- */
.cp-root {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

/* --- Selected area --- */
.cp-selected {
    padding: 0.8rem 0.9rem;
    background: rgba(37, 99, 235, 0.05);
    border: 1px solid rgba(37, 99, 235, 0.14);
    border-radius: 10px;
}

.cp-selected-label {
    display: block;
    font-family: 'Figtree', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--primary-light);
    margin-bottom: 0.55rem;
}

.cp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

/* Chip */
.cp-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.3rem 0.2rem 0.45rem;
    background: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(37, 99, 235, 0.25);
    border-radius: 6px;
    animation: cp-chip-in 0.18s ease;
}

@keyframes cp-chip-in {
    from { opacity: 0; transform: scale(0.88); }
    to   { opacity: 1; transform: scale(1); }
}

.cp-chip-art {
    width: 16px;
    height: 22px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
}

.cp-chip-name {
    font-family: 'Figtree', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-light);
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cp-chip-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    padding: 0;
    background: none;
    border: none;
    color: var(--primary-light);
    cursor: pointer;
    border-radius: 3px;
    font-size: 0.9rem;
    opacity: 0.55;
    transition: opacity 0.12s ease, background-color 0.12s ease, color 0.12s ease;
    flex-shrink: 0;
    line-height: 1;
}

.cp-chip-remove:hover {
    opacity: 1;
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

/* --- Search bar --- */
.cp-search-wrap {
    /* no extra margin; gap on root handles spacing */
}

.cp-search-inner {
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0 0.5rem 0 0.85rem;
    gap: 0.5rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cp-search-inner:focus-within {
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.cp-search-icon {
    color: var(--text-muted);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.cp-search-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: 'Figtree', sans-serif;
    font-size: 0.9rem;
    padding: 0.7rem 0;
    min-width: 0;
}

.cp-search-input::placeholder {
    color: var(--text-muted);
}

.cp-search-btn {
    flex-shrink: 0;
    padding: 0.35rem 0.9rem;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 7px;
    font-family: 'Figtree', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease;
    white-space: nowrap;
}

.cp-search-btn:hover {
    background: var(--primary-dark);
}

/* --- Loading --- */
.cp-loading {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 0;
    font-family: 'Figtree', sans-serif;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.cp-loading-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid var(--border-color);
    border-top-color: var(--primary-light);
    border-radius: 50%;
    animation: cp-spin 0.65s linear infinite;
    flex-shrink: 0;
}

@keyframes cp-spin {
    to { transform: rotate(360deg); }
}

/* --- Error --- */
.cp-error {
    padding: 0.6rem 0.85rem;
    background: rgba(239, 68, 68, 0.07);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    font-family: 'Figtree', sans-serif;
    font-size: 0.82rem;
    color: #f87171;
}

/* --- Results list --- */
.cp-results {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.cp-results:empty {
    border: none;
}

.cp-result-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.875rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.1s ease;
}

.cp-result-item:last-child {
    border-bottom: none;
}

.cp-result-item:hover {
    background: rgba(37, 99, 235, 0.05);
}

.cp-result-art {
    width: 34px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    background: var(--bg-card);
}

.cp-result-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cp-result-name {
    flex: 1;
    font-family: 'Figtree', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cp-result-add {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.22);
    border-radius: 7px;
    color: var(--primary-light);
    font-size: 1rem;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease, transform 0.1s ease;
    line-height: 1;
}

.cp-result-add:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    transform: scale(1.1);
}

/* --- No results --- */
.cp-no-results {
    padding: 0.9rem 1rem;
    text-align: center;
    font-family: 'Figtree', sans-serif;
    font-size: 0.83rem;
    color: var(--text-muted);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

/* ============================================================
   Skeleton Loading — sk-* styles
   ============================================================ */

@keyframes sk-shimmer {
    0%   { background-position: -600px 0; }
    100% { background-position:  600px 0; }
}

.sk-block,
.sk-line,
.sk-btn {
    background: linear-gradient(
        90deg,
        var(--bg-secondary) 25%,
        var(--border-color) 50%,
        var(--bg-secondary) 75%
    );
    background-size: 1200px 100%;
    animation: sk-shimmer 1.6s linear infinite;
    border-radius: 6px;
}

/* Fills the full thumbnail area on skeleton cards */
.sc-card--skeleton .sc-thumb-wrap.sk-block {
    border-radius: 0;
    height: 100%;
}

/* Text-row skeletons */
.sk-line {
    height: 12px;
    margin-bottom: 6px;
}

.sk-line--name  { width: 55%; height: 14px; }
.sk-line--game  { width: 40%; }
.sk-line--title { width: 80%; }

/* Button skeletons */
.sk-btn {
    flex: 1;
    height: 34px;
    border-radius: 8px;
}

/* Loading status pill */
.rf-status-pill--loading {
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
}

.rf-loading-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--text-muted);
    opacity: 0.6;
    animation: sk-shimmer 1.6s linear infinite;
    flex-shrink: 0;
}

/* ============================================================
   Shared Filter Bar & Card Enhancements — cf-filter-*, sc-card__*
   Used by both Raid Finder and Community Finder pages.
   ============================================================ */

/* ── Filter bar ───────────────────────────────── */
.cf-filter-bar {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 8px;
}

.cf-filter-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cf-filter-label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
}

.cf-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* ── Filter chips ─────────────────────────────── */
.cf-filter-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    background: rgba(255, 255, 255, 0.05);
    color: #64748b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    user-select: none;
}

.cf-filter-chip input {
    display: none;
}

.cf-filter-chip--active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.cf-filter-chip:hover:not(.cf-filter-chip--active) {
    background: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
}

/* ── Clear filters button ─────────────────────── */
.cf-filter-clear {
    background: none;
    border: none;
    color: var(--primary-light);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    align-self: flex-start;
}

.cf-filter-clear:hover {
    color: #fff;
}

/* ── Card border highlights (saved > following) ── */
.sc-card--saved {
    border-color: rgba(245, 158, 11, 0.7);
    box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.25);
}

.sc-card--following {
    border-color: rgba(16, 185, 129, 0.7);
    box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.25);
}

/* ── Card name row (username + following badge) ── */
.sc-card__name-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── Following badge ──────────────────────────── */
.sc-card__following-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 7px;
    border-radius: 99px;
    font-size: 10px;
    font-weight: 500;
    color: var(--secondary-color);
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    white-space: nowrap;
}

.sc-card__following-badge i {
    font-size: 9px;
}

/* ── Favorite button ──────────────────────────── */
.sc-card__favorite-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    min-height: 34px;
    height: 100%;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
    font-size: 16px;
}

.sc-card__favorite-btn:hover {
    color: var(--accent-color);
    border-color: rgba(245, 158, 11, 0.3);
}

.sc-card__favorite-btn--active {
    color: var(--accent-color);
}

.sc-card__favorite-btn--active:hover {
    color: #fbbf24;
}

/* ── Tag badges on cards ──────────────────────── */
.sc-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.sc-card__tag-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    color: var(--primary-light);
    background: rgba(37, 99, 235, 0.25);
    border: 1px solid rgba(96, 165, 250, 0.5);
}