/* ==========================================================================
   Avaliando Trecos - Design System & Styling
   ========================================================================== */

:root {
    /* Color Palette */
    --bg-dark: #080b14;
    --bg-card: rgba(16, 23, 41, 0.72);
    --bg-card-hover: rgba(24, 34, 60, 0.85);
    --bg-card-glass: rgba(15, 22, 38, 0.82);
    --bg-input: rgba(10, 15, 28, 0.8);
    
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.18);
    --border-accent: rgba(99, 102, 241, 0.4);

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    /* Accents */
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-glow: rgba(99, 102, 241, 0.35);

    --color-a: #ec4899;
    --color-a-glow: rgba(236, 72, 153, 0.3);
    --color-a-light: #fdf2f8;
    --color-a-bg: rgba(236, 72, 153, 0.12);

    --color-g: #3b82f6;
    --color-g-glow: rgba(59, 130, 246, 0.3);
    --color-g-light: #eff6ff;
    --color-g-bg: rgba(59, 130, 246, 0.12);

    --gold: #f59e0b;
    --gold-glow: rgba(245, 158, 11, 0.35);
    --silver: #cbd5e1;
    --bronze: #ea580c;
    --lanterninha: #ef4444;

    --success: #10b981;
    --whatsapp: #25d366;
    --whatsapp-hover: #1ebd5a;

    /* Radii & Shadows */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);

    /* Typography */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

img, video {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   UNIVERSAL SLEEK DARK SCROLLBARS (Linux / Windows / Mac / Chrome / Firefox)
   ========================================================================== */
html, body, div, section, main, aside, nav, ul, ol, form, pre, code, table, textarea,
*, *::before, *::after {
    scrollbar-width: thin !important;
    scrollbar-color: rgba(255, 255, 255, 0.22) rgba(15, 23, 42, 0.4) !important;
}

::-webkit-scrollbar,
*::-webkit-scrollbar,
html::-webkit-scrollbar,
body::-webkit-scrollbar,
div::-webkit-scrollbar,
section::-webkit-scrollbar {
    width: 6px !important;
    height: 6px !important;
}

::-webkit-scrollbar-track,
*::-webkit-scrollbar-track,
html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
div::-webkit-scrollbar-track,
section::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.35) !important;
    border-radius: 8px !important;
}

::-webkit-scrollbar-thumb,
*::-webkit-scrollbar-thumb,
html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
div::-webkit-scrollbar-thumb,
section::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: 8px !important;
    border: none !important;
    transition: background 0.2s ease !important;
}

::-webkit-scrollbar-thumb:hover,
*::-webkit-scrollbar-thumb:hover,
html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover,
div::-webkit-scrollbar-thumb:hover,
section::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.38) !important;
}

::-webkit-scrollbar-thumb:active,
*::-webkit-scrollbar-thumb:active {
    background: var(--primary) !important;
}

::-webkit-scrollbar-corner,
*::-webkit-scrollbar-corner {
    background: transparent !important;
}

/* Hide horizontal scrollbar on streaming carousels for clean native touch feel */
.home-carousel,
.streaming-filter-bar,
.filter-pills {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}
.home-carousel::-webkit-scrollbar,
.streaming-filter-bar::-webkit-scrollbar,
.filter-pills::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

html, body {
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100vw;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.5;
    min-height: 100vh;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Ambient luminous glow circles */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.45;
}

.glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.35) 0%, transparent 70%);
    top: -200px;
    left: -150px;
}

.glow-2 {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.3) 0%, transparent 70%);
    top: 40%;
    right: -200px;
}

.glow-3 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
    bottom: -200px;
    left: 20%;
}

.container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* App Header - Modern Unified Glassmorphic Bar */
.app-header {
    background: rgba(8, 11, 20, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 20px;
    gap: 16px;
    flex-wrap: nowrap;
    min-height: 54px;
    box-sizing: border-box;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    flex-shrink: 0;
    user-select: none;
    transition: opacity 0.2s ease;
}

.brand:hover {
    opacity: 0.9;
}

.brand-icon {
    font-size: 24px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(236, 72, 153, 0.25));
    padding: 3px 8px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-text {
    min-width: 0;
    overflow: hidden;
}

.brand-text h1 {
    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 30%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 0;
}

.brand-subtitle {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    display: block;
}

/* Unified Desktop Navigation Bar (Center) */
.header-nav-desktop {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    padding: 4px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
}

.header-nav-desktop .nav-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.header-nav-desktop .nav-link-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.header-nav-desktop .nav-link-btn.active {
    color: #fff;
    background: var(--primary);
    box-shadow: 0 4px 14px var(--primary-glow);
}

.header-nav-desktop .tab-count {
    font-size: 11px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
}

.header-nav-desktop .nav-link-btn.active .tab-count {
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.btn-rate-header {
    background: linear-gradient(135deg, var(--primary) 0%, #4338ca 100%) !important;
    color: #fff !important;
    box-shadow: 0 2px 10px var(--primary-glow);
    padding: 7px 16px !important;
    border-radius: var(--radius-full) !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    border: none !important;
}

.btn-rate-header:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.5) !important;
}

.btn-quick-switch {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
}

.btn-quick-switch:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.network-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 24, 40, 0.8);
    border: 1px solid var(--border-subtle);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.network-badge:hover {
    border-color: var(--primary);
    color: var(--text-primary);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--success);
    box-shadow: 0 0 8px var(--success);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #4f46e5);
    color: #fff;
    box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: rgba(30, 41, 59, 0.7);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
    background: rgba(51, 65, 85, 0.8);
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

.btn-whatsapp {
    background: linear-gradient(135deg, var(--whatsapp), #16a34a);
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Nav Tabs */
.nav-tabs-wrapper {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.nav-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 20px 4px 20px;
    scrollbar-width: none;
}

.nav-tabs::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.tab-btn.active {
    color: #fff;
    background: rgba(99, 102, 241, 0.12);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 18px;
    right: 18px;
    height: 3px;
    background: var(--primary);
    border-radius: var(--radius-full);
    box-shadow: 0 0 10px var(--primary);
}

.tab-count {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.tab-btn.active .tab-count {
    background: var(--primary);
    color: #fff;
}

/* Main Content Area */
.main-content {
    padding-top: 28px;
    padding-bottom: 60px;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Toolbar & Filters */
.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 240px;
}

.search-box input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    transition: all 0.2s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: var(--text-muted);
}

.btn-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
}

.filters-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-pills {
    display: flex;
    background: rgba(15, 23, 42, 0.8);
    padding: 3px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
}

.pill {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s ease;
}

.pill:hover {
    color: var(--text-primary);
}

.pill.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px var(--primary-glow);
}

.sort-select-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.custom-select {
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 13px;
    cursor: pointer;
}

.custom-select:focus {
    outline: none;
    border-color: var(--primary);
}

.view-switch {
    display: flex;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 3px;
}

.view-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 6px 10px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    font-size: 14px;
}

.view-btn.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Filter status bar */
.filter-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 13px;
}

/* ==========================================================================
   ENTRIES GRID & POSTER CARDS (Modern Visual Letterboxd Style)
   ========================================================================== */

.entries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.entry-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-sm);
}

.entry-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4), 0 0 24px rgba(99, 102, 241, 0.15);
}

/* Poster Container */
.card-poster,
.card-poster-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #0f172a;
}

.card-poster img,
.card-poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.entry-card:hover .card-poster img,
.entry-card:hover .card-poster-img {
    transform: scale(1.05);
}

/* Fallback poster when image is missing or fails */
.card-poster-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    background: linear-gradient(135deg, #1e1b4b, #312e81, #0f172a);
    color: #fff;
}

.fallback-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.8;
}

.fallback-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
}

/* Rank Badge Overlays */
.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 6px 12px;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-gold {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    box-shadow: 0 4px 14px var(--gold-glow);
}

.badge-silver {
    background: linear-gradient(135deg, #e2e8f0, #94a3b8);
    color: #0f172a;
}

.badge-bronze {
    background: linear-gradient(135deg, #fb923c, #c2410c);
    color: #fff;
}

.badge-lanterninha {
    background: linear-gradient(135deg, #ef4444, #991b1b);
    color: #fff;
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
}

.badge-regular {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    color: var(--text-secondary);
    border-color: var(--border-subtle);
    font-size: 13px;
    padding: 4px 10px;
}

/* Total Combined Score Badge Top Right */
.total-score-pill {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    background: rgba(10, 15, 28, 0.88);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 15px;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.total-score-pill span {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
}

/* Card Body */
.card-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 12px;
}

.card-title-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-right: 76px; /* Protect against overlap with top-right .card-type-badge */
}

.card-title {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.card-meta-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.meta-type-tag {
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

/* Evaluator Ratings Row */
.evaluators-score-row {
    display: flex;
    gap: 8px;
    background: rgba(10, 15, 28, 0.6);
    padding: 10px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
}

.eval-score-chip {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.eval-chip-avatar {
    font-size: 16px;
}

.eval-chip-data {
    display: flex;
    flex-direction: column;
}

.eval-chip-name {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.eval-chip-val {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.1;
}

.val-a {
    color: var(--color-a);
}

.val-g {
    color: var(--color-g);
}

.eval-score-separator {
    width: 1px;
    background: var(--border-subtle);
}

/* Reviews snippets */
.card-reviews-summary {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: rgba(255, 255, 255, 0.02);
    padding: 8px;
    border-radius: var(--radius-sm);
    border-left: 2px solid var(--primary);
}

.review-line {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Card Actions */
.card-footer-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    margin-top: auto;
}

.diff-indicator {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: var(--radius-full);
}

.diff-harmony {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.diff-treta {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.card-action-btns {
    display: flex;
    gap: 6px;
}

.btn-icon-only {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    padding: 6px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-icon-only:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.btn-icon-only.btn-delete:hover {
    color: var(--lanterninha);
    background: rgba(239, 68, 68, 0.15);
}

/* Compact List View Mode */
.entries-grid.list-view {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.entries-grid.list-view .entry-card {
    flex-direction: row;
    align-items: center;
    padding: 12px 16px;
    gap: 16px;
}

.entries-grid.list-view .card-poster-wrapper {
    width: 60px;
    height: 90px;
    aspect-ratio: auto;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.entries-grid.list-view .rank-badge {
    position: static;
    margin-right: 8px;
}

.entries-grid.list-view .total-score-pill {
    position: static;
    font-size: 18px;
}

.entries-grid.list-view .card-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    width: 100%;
}

/* Watchlist Grid */
.watchlist-banner {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(16, 185, 129, 0.08));
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 24px;
}

.watchlist-banner strong {
    font-family: var(--font-heading);
    font-size: 16px;
    color: #fff;
    display: block;
    margin-bottom: 4px;
}

.watchlist-banner span {
    font-size: 13px;
    color: var(--text-secondary);
}

.watchlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.watchlist-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    gap: 14px;
    padding: 12px;
    transition: all 0.2s ease;
}

.watchlist-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.watchlist-poster {
    width: 80px;
    height: 120px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: #0f172a;
    flex-shrink: 0;
}

.watchlist-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.watchlist-title {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

.watchlist-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.watchlist-notes {
    font-size: 11px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 8px;
    border-radius: 4px;
    color: var(--text-secondary);
    margin-top: 6px;
    display: inline-block;
}

.watchlist-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.btn-rate-now {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-rate-now:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* ==========================================================================
   STATS DASHBOARD & COUPLE INSIGHTS
   ========================================================================== */

.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.stat-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.stat-icon, .eval-avatar {
    font-size: 24px;
}

.stat-title {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--text-secondary);
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 6px;
}

.stat-subtitle {
    font-size: 12px;
    color: var(--text-muted);
}

.stat-badge {
    margin-top: 14px;
    display: inline-block;
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.stat-meta {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 8px;
}

.stat-couple {
    border-color: rgba(99, 102, 241, 0.3);
}

.stat-evaluator-a {
    border-color: rgba(236, 72, 153, 0.3);
}

.stat-evaluator-a .stat-value {
    color: var(--color-a);
}

.stat-evaluator-g {
    border-color: rgba(59, 130, 246, 0.3);
}

.stat-evaluator-g .stat-value {
    color: var(--color-g);
}

/* Deep Dive Highlights Grid */
.stats-deep-dive {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.dive-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.dive-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.dive-icon {
    font-size: 28px;
}

.dive-header h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.dive-header p {
    font-size: 12px;
    color: var(--text-muted);
}

.dive-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

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

.dive-item-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.dive-item-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

/* Settings Grid */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 24px;
}

.settings-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.settings-card-header {
    margin-bottom: 20px;
}

.settings-card-header h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.settings-card-header p {
    font-size: 13px;
    color: var(--text-muted);
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.profile-edit-box {
    background: rgba(10, 15, 28, 0.6);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 14px;
}

.profile-box-title {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.form-row {
    display: flex;
    gap: 12px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input, .form-group select, .form-group textarea {
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 14px;
    transition: all 0.2s ease;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.text-center {
    text-align: center;
}

.flex-1 { flex: 1; }
.flex-2 { flex: 2; }

.tmdb-help-box {
    font-size: 12px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    padding: 12px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
}

.tmdb-help-box a {
    color: var(--primary);
    text-decoration: underline;
}

.form-actions-inline {
    display: flex;
    gap: 10px;
}

.test-result-box {
    margin-top: 10px;
    padding: 10px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
}

.test-result-box.success {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.test-result-box.error {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.wifi-share-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wifi-url-display {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(10, 15, 28, 0.8);
    padding: 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    width: 100%;
    box-sizing: border-box;
}

.url-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.wifi-input-row {
    display: flex;
    gap: 8px;
    align-items: center;
    width: 100%;
}

.wifi-input-row input {
    flex: 1;
    min-width: 0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    color: #34d399;
    font-family: monospace;
    font-size: 13px;
    font-weight: 600;
}

.wifi-input-row input:focus {
    outline: none;
    border-color: var(--primary);
}

.wifi-tip {
    font-size: 12px;
    color: var(--text-muted);
}

.backup-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* ==========================================================================
   MODALS & DIALOGS
   ========================================================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 7, 14, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: modalFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-card {
    background: #0d1322;
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    animation: modalSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-card.modal-large {
    max-width: 820px;
}

@keyframes modalSlideUp {
    from { transform: translateY(20px) scale(0.97); }
    to { transform: translateY(0) scale(1); }
}

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-subtle);
}

.modal-header h2 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.modal-header p, .modal-header span {
    font-size: 13px;
    color: var(--text-muted);
}

.modal-close {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--text-muted);
    font-size: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.modal-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.modal-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Selected Media Header (Read-Only Preview in Rate Modal) */
.selected-media-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(16, 23, 41, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    box-sizing: border-box;
    width: 100%;
}

.selected-media-poster {
    width: 72px;
    height: 108px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #0f172a;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.selected-media-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.selected-media-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.selected-media-badges {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.selected-media-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(236, 72, 153, 0.25));
    color: #c7d2fe;
    border: 1px solid rgba(99, 102, 241, 0.35);
    line-height: 1.2;
}

.selected-media-year {
    display: inline-flex;
    align-items: center;
    padding: 3px 7px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
}

.selected-media-title {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    margin: 2px 0 0 0;
    word-break: break-word;
}

.selected-media-genre {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.3;
    margin: 0;
}

.rate-manual-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(16, 23, 41, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 14px;
    box-sizing: border-box;
    width: 100%;
}

/* Item preview banner in Rate modal (legacy fallback) */
.item-preview-banner {
    display: flex;
    gap: 16px;
    background: rgba(16, 23, 41, 0.8);
    padding: 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
}

.preview-poster {
    width: 84px;
    height: 126px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #0f172a;
    flex-shrink: 0;
}

.preview-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Dual Rating Section */
.dual-rate-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.rate-card {
    background: rgba(15, 23, 42, 0.7);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid var(--border-subtle);
}

.rate-card-a {
    border-color: rgba(236, 72, 153, 0.35);
    background: linear-gradient(180deg, rgba(236, 72, 153, 0.08) 0%, rgba(15, 23, 42, 0.8) 100%);
}

.rate-card-g {
    border-color: rgba(59, 130, 246, 0.35);
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.08) 0%, rgba(15, 23, 42, 0.8) 100%);
}

.rate-user-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.user-avatar {
    font-size: 20px;
}

.user-name {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
}

.rate-card-a .user-name { color: var(--color-a); }
.rate-card-g .user-name { color: var(--color-g); }

.rate-value-display {
    margin: 8px 0;
}

.score-number {
    font-family: var(--font-heading);
    font-size: 38px;
    font-weight: 800;
    line-height: 1;
}

.rate-card-a .score-number { color: var(--color-a); }
.rate-card-g .score-number { color: var(--color-g); }

.score-max {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
}

.stepper-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-top: 6px;
}

.btn-step {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-subtle);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 12px;
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.btn-step:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
}

.stepper-controls input[type="range"] {
    flex: 1;
    cursor: pointer;
    accent-color: var(--primary);
}

/* Combined Score Live Gauge */
.combined-score-live {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(16, 185, 129, 0.15));
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.live-label {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
}

.live-score {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    color: #fff;
}

.live-max {
    font-size: 14px;
    color: var(--text-muted);
}

.live-average {
    font-size: 13px;
    color: var(--text-secondary);
}

.live-diff-tag {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 10px;
}

/* Search Hero in Search Modal */
.search-hero {
    position: relative;
    width: 100%;
}

.search-hero input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    background: var(--bg-input);
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-md);
    color: #fff;
    font-family: var(--font-body);
    font-size: 16px;
    transition: all 0.2s ease;
}

.search-hero input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.25);
}

.search-hero-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: var(--text-muted);
}

.spinner {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: translateY(-50%) rotate(360deg); }
}

.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
    max-height: 58vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 4px;
    margin-top: 14px;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 600px) {
    .search-results-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        max-height: 52vh;
        padding: 4px 2px;
    }
}

.search-result-card {
    display: flex;
    flex-direction: column;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

.search-result-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 10px 28px rgba(99, 102, 241, 0.3);
    background: rgba(24, 34, 60, 0.95);
}

.result-poster {
    width: 100%;
    aspect-ratio: 2 / 3;
    background: #090d16;
    overflow: hidden;
    position: relative;
}

.result-poster img {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.35s ease;
}

.search-result-card:hover .result-poster img {
    transform: scale(1.06);
}

.result-type-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #fff;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(4px);
    padding: 2px 7px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.result-year-badge {
    position: absolute;
    bottom: 6px;
    right: 6px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    padding: 2px 6px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.result-info {
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
    background: rgba(15, 23, 42, 0.75);
    flex: 1;
}

.result-title {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.result-meta {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-empty {
    text-align: center;
    padding: 36px 16px;
    color: var(--text-muted);
    font-size: 14px;
    grid-column: 1 / -1;
}

.manual-add-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    font-size: 13px;
    color: var(--text-muted);
}

/* WhatsApp Modal Subtabs */
.tab-switcher-inline {
    display: flex;
    gap: 8px;
    background: rgba(15, 23, 42, 0.8);
    padding: 4px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    margin-bottom: 16px;
}

.subtab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    padding: 8px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s ease;
}

.subtab-btn.active {
    background: var(--primary);
    color: #fff;
}

.code-textarea {
    width: 100%;
    background: #080c16;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: #e2e8f0;
    font-family: monospace;
    font-size: 13px;
    padding: 14px;
    line-height: 1.6;
    resize: vertical;
}

.section-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-hover);
    color: #fff;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    z-index: 2000;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.empty-icon {
    font-size: 56px;
    opacity: 0.6;
}

.empty-state h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    color: #fff;
}

.empty-state p {
    font-size: 14px;
    color: var(--text-muted);
    max-width: 400px;
    margin-bottom: 8px;
}

/* ==========================================================================
   MOBILE & RESPONSIVE BREAKPOINTS
   ========================================================================== */

@media (max-width: 768px) {
    .header-inner {
        padding: 12px 16px;
    }

    .brand-text h1 {
        font-size: 19px;
    }

    .brand-subtitle {
        font-size: 10px;
    }

    #btnOpenNewSearch .btn-text {
        display: none;
    }

    .btn {
        padding: 8px 12px;
    }

    .nav-tabs {
        padding: 6px 12px;
        gap: 4px;
    }

    .tab-btn {
        padding: 8px 12px;
        font-size: 13px;
    }

    .toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .filters-group {
        justify-content: space-between;
    }

    .entries-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .card-content {
        padding: 12px;
        gap: 8px;
    }

    .card-title {
        font-size: 14px;
    }

    .dual-rate-container {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .score-number {
        font-size: 32px;
    }

    .combined-score-live {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }

    .backup-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .entries-grid {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================================
   V2.0: MULTI-USER, BLIND RATING, NOTIFICATIONS & PROFILE STYLES
   ========================================================================== */

/* Header User & Notif Bar */
.user-header-box {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-profile-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.user-profile-pill:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

.user-profile-pill .user-avatar {
    font-size: 18px;
}

.notif-wrapper {
    position: relative;
}

.notif-btn {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.notif-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--border-hover);
}

.notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: white;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
    animation: pulse 2s infinite;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

/* Auth Modal & Quick Switch */
.modal-auth {
    max-width: 440px;
}

.quick-login-box {
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-md);
    padding: 12px;
    margin-bottom: 18px;
}

.quick-login-box span {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quick-login-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.quick-user-pill {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.quick-user-pill:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-1px);
}

.btn-block {
    width: 100%;
}

.color-picker-input {
    height: 42px;
    padding: 4px;
    cursor: pointer;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    width: 100%;
}

/* Mode Selector (Solo vs Dupla/Grupo) */
.mode-selector-wrapper {
    margin-bottom: 18px;
}

.section-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.mode-toggle-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.mode-btn {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    cursor: pointer;
    color: var(--text-primary);
    text-align: left;
    transition: all 0.2s ease;
}

.mode-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-hover);
}

.mode-btn.active {
    background: rgba(99, 102, 241, 0.12);
    border-color: var(--primary);
    box-shadow: 0 0 16px rgba(99, 102, 241, 0.2);
}

.mode-icon {
    font-size: 24px;
    line-height: 1;
}

.mode-texts strong {
    display: block;
    font-size: 14px;
    margin-bottom: 3px;
    color: var(--text-primary);
}

.mode-texts span {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.3;
}

/* Group Participants Section */
.group-participants-box {
    background: rgba(15, 23, 42, 0.6);
    border: 1px dashed rgba(99, 102, 241, 0.35);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 18px;
}

.group-box-header {
    font-size: 13px;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.participants-checkbox-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.participant-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid var(--border-subtle);
    padding: 10px 16px;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

.participant-pill-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

.participant-pill-btn.selected {
    background: rgba(99, 102, 241, 0.25);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 14px rgba(99, 102, 241, 0.4);
}

.participant-pill-btn .p-avatar {
    font-size: 18px;
    line-height: 1;
}

.participant-pill-btn .p-name {
    font-size: 14px;
}

.participant-pill-btn .p-check {
    font-size: 11px;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    margin-left: 4px;
    transition: all 0.2s ease;
}

.participant-pill-btn.selected .p-check {
    background: var(--primary);
    color: #fff;
}

.blind-notice-badge {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font-size: 12px;
    line-height: 1.45;
    color: #fbbf24;
}

/* Single Rate Card */
.single-rate-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 18px;
}

.rate-badge-pill {
    font-size: 11px;
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    margin-left: auto;
}

/* View / Blind Rating Unseal Modal */
.view-blind-banner {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(239, 68, 68, 0.1) 100%);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
    margin-bottom: 20px;
}

.view-blind-banner .blind-title {
    font-size: 16px;
    font-weight: 700;
    color: #fbbf24;
    margin-bottom: 4px;
}

.view-completed-banner {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(99, 102, 241, 0.15) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
    margin-bottom: 20px;
}

.view-completed-banner .completed-title {
    font-size: 18px;
    font-weight: 800;
    color: #34d399;
    margin-bottom: 4px;
}

.participants-ratings-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.participant-rating-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    transition: all 0.2s ease;
}

.participant-rating-row.is-hidden {
    border-style: dashed;
    border-color: rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.04);
}

.participant-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.participant-avatar {
    font-size: 24px;
}

.participant-names strong {
    display: block;
    font-size: 14px;
    color: var(--text-primary);
}

.participant-names span {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
}

.participant-score-box {
    text-align: right;
}

.participant-score-val {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
}

.participant-score-secret {
    font-size: 13px;
    font-weight: 600;
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.15);
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.share-invite-box {
    background: rgba(37, 211, 102, 0.08);
    border: 1px solid rgba(37, 211, 102, 0.25);
    border-radius: var(--radius-md);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.share-invite-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--whatsapp);
}

/* Notifications List */
.notif-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-subtle);
}

.btn-danger-link {
    color: #f87171 !important;
    font-size: 13px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.15s ease;
}

.btn-danger-link:hover {
    color: #ef4444 !important;
    text-decoration: underline;
}

.notif-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
}

.notif-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

.notif-item:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--border-hover);
}

.notif-item.unread {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.35);
}

.notif-icon-col {
    font-size: 22px;
    flex-shrink: 0;
}

.notif-content-col {
    flex: 1;
    min-width: 0;
}

.notif-content-col h4 {
    font-size: 14px;
    margin-bottom: 2px;
    color: var(--text-primary);
}

.notif-content-col p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 4px;
}

.notif-time {
    font-size: 11px;
    color: var(--text-muted);
}

.notif-del-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 16px;
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    margin-left: auto;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.notif-del-btn:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
}

/* ==========================================================================
   FRIENDS VIEW & STYLES
   ========================================================================== */

.friends-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 780px;
    margin: 0 auto;
    width: 100%;
}

.friends-card {
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow-sm);
}

.friends-card-header {
    margin-bottom: 16px;
}

.friends-card-header h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.friends-card-header p {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.friend-search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-md);
    padding: 6px 12px;
    width: 100%;
    box-sizing: border-box;
}

.friend-search-input-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.at-symbol {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    flex-shrink: 0;
}

.friend-search-input-wrap input {
    flex: 1;
    min-width: 0;
    width: 100%;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 14px;
    outline: none;
    padding: 6px 0;
}

.friend-search-results {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 250px;
    overflow-y: auto;
}

.friends-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.friend-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.friend-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-hover);
}

.friend-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.friend-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.friend-details {
    display: flex;
    flex-direction: column;
}

.friend-name {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.friend-username {
    font-size: 12px;
    color: var(--text-muted);
}

.friend-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge-count {
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
}

.btn-remove-friend {
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-remove-friend:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
    color: #ef4444;
}

.btn-accept-friend {
    background: #10b981;
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-accept-friend:hover {
    background: #059669;
}

.btn-decline-friend {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    border: 1px solid var(--border-subtle);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-decline-friend:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.empty-friends-msg {
    text-align: center;
    padding: 28px 16px;
    color: var(--text-muted);
    font-size: 14px;
}

.empty-friends-notice {
    background: rgba(99, 102, 241, 0.08);
    border: 1px dashed rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
}

.empty-friends-notice span {
    font-weight: 700;
    color: #818cf8;
    font-size: 14px;
}

.empty-friends-notice p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

.notif-time {
    font-size: 11px;
    color: var(--text-muted);
}

/* ==========================================================================
   SOCIAL NETWORK PROFILE (Letterboxd Style)
   ========================================================================== */
.social-profile-container {
    width: 100%;
}

.social-profile-header {
    position: relative;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.85) 100%);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.social-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

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

.social-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    border: 2px solid var(--border-hover);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.social-status-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background: #10b981;
    border: 2px solid #0f172a;
    border-radius: 50%;
}

.social-user-details {
    flex: 1;
    min-width: 0;
}

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

.social-names-row h2 {
    font-size: 26px;
    font-weight: 800;
    margin: 0;
    color: #fff;
    font-family: var(--font-heading);
}

.social-badge {
    font-size: 11px;
    font-weight: 700;
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.35);
    padding: 2px 8px;
    border-radius: 12px;
}

.social-username {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 3px;
    font-weight: 500;
}

.social-header-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

/* Social Stats Bar (Letterboxd Style Metric Row) */
.social-stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    background: rgba(10, 15, 28, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 12px 16px;
}

.social-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.social-stat-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.social-stat-num {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    font-family: var(--font-heading);
    line-height: 1.1;
}

.social-stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 3px;
    font-weight: 500;
}

/* Sub-Navigation Inside Profile */
.social-subtabs-nav {
    display: flex;
    gap: 10px;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 12px;
    margin-bottom: 22px;
    overflow-x: auto;
    scrollbar-width: none;
}

.social-subtab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.social-subtab-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.social-subtab-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.subtab-badge {
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
}

.social-subtab-pane {
    animation: fadeIn 0.25s ease;
}

@media (max-width: 600px) {
    .social-header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    .social-header-actions {
        width: 100%;
        display: flex;
    }
    .social-header-actions .btn {
        flex: 1;
    }
    .social-stats-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .social-subtabs-nav {
        gap: 6px;
    }
    .social-subtab-btn {
        padding: 7px 14px;
        font-size: 12px;
    }
}

/* Fallback legacy classes */
.profile-hero-card {
    display: none;
}

/* Badges for cards */
.card-type-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    left: auto;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    z-index: 2;
    backdrop-filter: blur(8px);
}

.badge-solo {
    background: rgba(59, 130, 246, 0.75);
    color: white;
}

.badge-group {
    background: rgba(168, 85, 247, 0.75);
    color: white;
}

.badge-pending {
    background: rgba(245, 158, 11, 0.85);
    color: #0f172a;
}


/* ==========================================================================
   MOBILE BOTTOM NAVIGATION & RESPONSIVE LAYOUT
   ========================================================================== */

.mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    .header-nav-desktop {
        display: none !important;
    }
}

@media (max-width: 600px) {
    /* Hide top nav tabs and show bottom nav on mobile */
    .nav-tabs-wrapper {
        display: none !important;
    }

    /* Ambient glow circles kill battery and cause horizontal phantom scroll on mobile */
    .ambient-glow {
        display: none !important;
    }

    /* Generous bottom padding to ensure content NEVER gets cut off by the fixed bottom navigation bar */
    .main-content {
        padding-top: 10px !important;
        padding-bottom: calc(150px + env(safe-area-inset-bottom, 24px)) !important;
    }

    .tab-pane {
        padding-bottom: 30px !important;
    }

    .entries-grid,
    .watchlist-grid {
        margin-bottom: 60px !important;
        padding-bottom: 25px !important;
    }

    .home-container,
    .social-profile-container {
        padding-bottom: 65px !important;
        margin-bottom: 50px !important;
    }

    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: calc(58px + env(safe-area-inset-bottom, 10px));
        background: rgba(10, 15, 28, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        z-index: 1000;
        justify-content: space-around;
        align-items: center;
        padding: 0 4px env(safe-area-inset-bottom, 10px) 4px;
        box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.6);
        box-sizing: border-box;
    }

    .mobile-nav-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        background: none;
        border: none;
        color: var(--text-muted);
        font-family: var(--font-body);
        font-size: 10px;
        font-weight: 600;
        flex: 1;
        height: 100%;
        cursor: pointer;
        transition: all 0.2s ease;
        padding: 4px 0;
    }

    .mobile-nav-btn .m-icon {
        font-size: 18px;
        line-height: 1;
        transition: transform 0.2s ease;
    }

    .mobile-nav-btn.active {
        color: var(--primary);
    }

    .mobile-nav-btn.active .m-icon {
        transform: scale(1.15);
    }

    /* Mobile Bottom Navigation Button Center Rate Action */
    .mobile-nav-rate-btn {
        position: relative;
        flex: 1.1;
    }

    .mobile-nav-rate-btn .m-icon-rate-wrap {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--primary) 0%, #ec4899 100%);
        box-shadow: 0 4px 14px rgba(99, 102, 241, 0.45);
        margin-bottom: 2px;
        transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
    }

    .mobile-nav-rate-btn .m-icon-rate {
        font-size: 17px;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-nav-rate-btn:active .m-icon-rate-wrap {
        transform: scale(0.92);
        box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
    }

    .mobile-nav-rate-btn .m-label {
        font-weight: 700;
        color: #c7d2fe;
    }

    /* Mobile Header Compact & Clean - No Overlap Guaranteed */
    .app-header .header-inner {
        padding: 8px 12px;
        gap: 10px;
        flex-wrap: nowrap !important;
        min-height: 52px;
        justify-content: space-between;
    }

    .brand {
        gap: 8px;
        min-width: 0;
        flex: 1 1 auto;
        overflow: visible;
    }

    .brand-icon {
        font-size: 20px;
        padding: 3px 6px;
        flex-shrink: 0;
    }

    .brand-text {
        min-width: 0;
        overflow: visible;
        flex: 1 1 auto;
    }

    .brand-text h1 {
        font-size: 16px;
        font-weight: 800;
        white-space: nowrap;
        overflow: visible;
        text-overflow: clip;
        letter-spacing: -0.02em;
        margin: 0;
    }

    .brand-subtitle {
        display: none !important;
    }

    .header-actions {
        gap: 6px;
        align-items: center;
        flex-shrink: 0;
    }

    /* Mobile rate action is located in bottom bar: hide header button so title is never cut */
    .btn-rate-header {
        display: none !important;
    }

    .user-profile-pill {
        padding: 4px 8px;
        font-size: 12px;
        gap: 6px;
    }

    .user-profile-pill .user-avatar {
        font-size: 15px;
    }

    .user-profile-pill .user-name {
        max-width: 70px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .auth-header-box {
        gap: 6px;
        align-items: center;
    }

    .auth-header-box .btn-sm {
        padding: 5px 9px;
        font-size: 12px;
    }

    /* Mobile Modal Auth (Login & Register) - Clean Full View */
    .modal-card.modal-auth {
        max-height: 90vh !important;
        overflow-y: auto !important;
        padding: 18px 16px !important;
        margin: 10px !important;
        width: calc(100% - 20px) !important;
        border-radius: 18px !important;
    }

    .modal-auth .modal-header h2 {
        font-size: 18px !important;
    }

    .modal-auth .modal-header p {
        font-size: 12px !important;
    }

    /* Stack fields vertically in register modal so labels & inputs have full width */
    .modal-auth .form-row:not(.auth-avatar-color-row) {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .modal-auth .auth-avatar-color-row {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }

    .modal-auth .form-group {
        margin-bottom: 11px !important;
    }

    .modal-auth label {
        font-size: 12px !important;
        margin-bottom: 4px !important;
    }

    .modal-auth input[type="text"],
    .modal-auth input[type="email"],
    .modal-auth input[type="password"] {
        padding: 10px 12px !important;
        font-size: 14px !important;
    }

    .modal-auth .field-hint {
        font-size: 11px !important;
        line-height: 1.3 !important;
        color: var(--text-muted) !important;
    }

    .modal-auth .btn-block {
        padding: 12px !important;
        font-size: 14px !important;
    }

    /* Toolbar & Search */
    .toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin-bottom: 14px;
        width: 100%;
        box-sizing: border-box;
    }

    .filters-group {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        width: 100%;
    }

    .filter-pills {
        display: flex;
        justify-content: stretch;
        width: 100%;
        gap: 6px;
    }

    .filter-pills .pill {
        flex: 1;
        text-align: center;
        padding: 7px 4px;
        font-size: 12px;
    }

    .sort-select-wrapper {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    .sort-select-wrapper label {
        font-size: 11px;
        color: var(--text-muted);
    }

    .custom-select {
        width: 100%;
        box-sizing: border-box;
    }

    .btn-whatsapp {
        width: 100%;
        justify-content: center;
        padding: 9px;
        font-size: 13px;
        box-sizing: border-box;
    }

    /* Compact & Elegant Cards on Mobile */
    .entries-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        width: 100%;
    }

    .entry-card {
        flex-direction: row;
        align-items: flex-start;
        padding: 10px;
        gap: 12px;
        min-height: unset;
        width: 100%;
        background: rgba(16, 23, 41, 0.85);
        border: 1px solid var(--border-subtle);
        border-radius: var(--radius-md);
        box-sizing: border-box;
    }

    .entry-card .card-poster {
        width: 85px;
        min-width: 85px;
        max-width: 85px;
        height: 128px;
        aspect-ratio: 2 / 3;
        flex-shrink: 0;
        position: relative;
        border-radius: var(--radius-sm);
        overflow: hidden;
        align-self: flex-start;
        background: #090d16;
    }

    .entry-card .card-poster img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .entry-card .card-content {
        padding: 0;
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        gap: 4px;
        box-sizing: border-box;
    }

    .entry-card .card-title-row {
        padding-right: 68px;
    }

    .entry-card .card-title {
        font-size: 14px;
        font-weight: 700;
        line-height: 1.25;
        word-break: break-word;
    }

    .entry-card .card-meta {
        font-size: 11px;
        gap: 6px;
    }

    .entry-card .card-ratings-block {
        margin: 2px 0;
        gap: 4px;
    }

    .entry-card .card-combined-score {
        margin-top: 2px;
        padding-top: 4px;
    }

    .card-type-badge {
        font-size: 9px;
        padding: 2px 6px;
        top: 6px;
        right: 6px;
        left: auto;
    }

    .rank-badge {
        font-size: 11px;
        top: 6px;
        left: 6px;
        bottom: auto;
        right: auto;
        padding: 2px 6px;
        width: fit-content;
        height: fit-content;
    }

    /* Modals Mobile Bottom Sheet */
    .modal-overlay {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100%;
        align-items: flex-end;
        padding: 0;
        box-sizing: border-box;
    }

    .modal-card {
        border-radius: 20px 20px 0 0;
        max-height: 88vh;
        width: 100%;
        max-width: 100%;
        border-bottom: none;
        box-sizing: border-box;
    }

    .modal-header {
        padding: 14px 16px;
    }

    .modal-body {
        padding: 14px 16px 24px 16px;
        gap: 12px;
        box-sizing: border-box;
    }

    .selected-media-card {
        padding: 10px;
        gap: 12px;
    }

    .selected-media-poster {
        width: 64px;
        height: 96px;
    }

    .selected-media-title {
        font-size: 15px;
    }

    .selected-media-genre {
        font-size: 11px;
    }

    .item-preview-banner {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        padding: 10px;
        gap: 12px;
        width: 100%;
        box-sizing: border-box;
    }

    .preview-poster {
        width: 75px;
        min-width: 75px;
        max-width: 75px;
        height: 112px;
        aspect-ratio: 2 / 3;
        margin: 0;
        flex-shrink: 0;
        border-radius: var(--radius-sm);
        overflow: hidden;
    }

    .preview-meta {
        flex: 1;
        min-width: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .preview-meta .form-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        width: 100%;
    }

    .preview-meta .form-row .form-group.flex-2 {
        grid-column: 1 / -1;
        width: 100%;
    }

    .mode-toggle-group {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .mode-btn {
        padding: 8px 10px;
    }

    .mode-texts strong {
        font-size: 13px;
    }

    .mode-texts span {
        font-size: 11px;
    }

    .stepper-controls {
        gap: 8px;
        width: 100%;
    }

    .stepper-controls .btn-step {
        width: 46px;
        height: 42px;
        font-size: 14px;
        flex-shrink: 0;
    }

    .score-number {
        font-size: 36px;
    }

    .modal-actions {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    .modal-actions .btn {
        width: 100%;
        padding: 10px;
    }

    /* Prevent iOS auto-zoom on inputs */
    input[type="text"],
    input[type="password"],
    input[type="number"],
    input[type="url"],
    input[type="date"],
    select,
    textarea {
        font-size: 16px !important;
    }

    /* Watchlist Mobile */
    .watchlist-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        width: 100%;
    }

    .watchlist-card {
        padding: 10px;
        gap: 12px;
        width: 100%;
        box-sizing: border-box;
    }

    .watchlist-poster {
        width: 70px;
        min-width: 70px;
        height: 105px;
        aspect-ratio: 2 / 3;
        flex-shrink: 0;
    }

    /* Profile hero mobile */
    .profile-hero-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 16px;
        width: 100%;
        box-sizing: border-box;
    }

    .profile-hero-actions {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }

    .profile-hero-actions .btn {
        width: 100%;
    }

    .profile-privacy-box {
        padding: 14px;
        width: 100%;
        box-sizing: border-box;
    }

    /* Stats Mobile Dashboard */
    .stats-overview {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-bottom: 16px;
        width: 100%;
    }

    .stat-card {
        padding: 12px 14px;
        border-radius: var(--radius-md);
        box-sizing: border-box;
    }

    .stat-value {
        font-size: 26px;
    }

    .stat-subtitle {
        font-size: 11px;
    }

    /* Settings Tab Mobile Responsive Fixes */
    .settings-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        width: 100%;
    }

    .settings-card {
        padding: 14px;
        width: 100%;
        box-sizing: border-box;
    }

    .form-actions-inline {
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    .form-actions-inline .btn {
        width: 100%;
    }

    .backup-actions {
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    .backup-actions .btn {
        width: 100%;
    }

    .wifi-url-display {
        width: 100%;
        box-sizing: border-box;
    }

    .wifi-input-row {
        display: flex;
        gap: 8px;
        width: 100%;
        box-sizing: border-box;
    }

    .wifi-input-row input {
        flex: 1;
        min-width: 0;
        width: 100%;
        box-sizing: border-box;
    }

    /* Friends Tab Mobile */
    .friends-card {
        padding: 14px;
        width: 100%;
        box-sizing: border-box;
    }

    .friend-search-box {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 10px;
        width: 100%;
        box-sizing: border-box;
    }

    .friend-search-input-wrap {
        display: flex;
        align-items: center;
        gap: 8px;
        width: 100%;
    }

    .friend-search-input-wrap input {
        flex: 1;
        min-width: 0;
        width: 100%;
    }

    #btnSendFriendRequest {
        width: 100%;
    }

    .friend-item {
        padding: 10px 12px;
        gap: 8px;
        width: 100%;
        box-sizing: border-box;
    }

    /* Home Mobile Tweaks & Seamless Carousels */
    .home-container {
        gap: 20px;
        padding-bottom: 20px;
        width: 100%;
        box-sizing: border-box;
    }

    .home-hero-banner {
        min-height: 220px;
        padding: 16px;
        margin-bottom: 12px;
        border-radius: var(--radius-md);
        box-sizing: border-box;
    }

    .hero-title {
        font-size: 20px;
    }

    .hero-overview {
        font-size: 12px;
        -webkit-line-clamp: 2;
    }

    .hero-actions {
        flex-direction: row;
        gap: 8px;
        flex-wrap: wrap;
    }

    .hero-actions .btn {
        padding: 8px 12px;
        font-size: 12px;
    }

    .home-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .home-section-header h2 {
        font-size: 17px;
    }

    .home-section-header p {
        font-size: 11px;
    }

    .home-carousel {
        gap: 10px;
        padding: 4px 0 10px 0;
        scrollbar-width: none !important;
        -webkit-overflow-scrolling: touch;
    }

    .home-carousel::-webkit-scrollbar {
        display: none !important;
    }

    .home-media-card {
        flex: 0 0 115px;
        min-width: 115px;
    }

    .streaming-filter-bar {
        scrollbar-width: none !important;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }

    .streaming-filter-bar::-webkit-scrollbar {
        display: none !important;
    }

    /* Container & Dual Column Mobile Responsiveness */
    .container {
        padding: 0 12px !important;
    }

    .home-dual-col {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 16px !important;
        width: 100% !important;
    }

    .home-section {
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .home-activity-card {
        padding: 8px 10px !important;
        gap: 10px !important;
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .activity-poster {
        width: 40px !important;
        height: 60px !important;
    }

    .activity-title {
        font-size: 13px !important;
    }

    .activity-score-badge {
        padding: 3px 6px !important;
        font-size: 12px !important;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
        margin-left: auto !important;
    }

    /* Toast notification above bottom nav */
    .toast-container,
    .live-toast,
    .toast-notification {
        bottom: calc(68px + env(safe-area-inset-bottom, 12px)) !important;
        left: 14px !important;
        right: 14px !important;
        max-width: calc(100vw - 28px) !important;
        box-sizing: border-box;
    }
}

/* ==========================================================================
   HOME PAGE (TENDÊNCIAS, LANÇAMENTOS, STREAMING, COMUNIDADE)
   ========================================================================== */

.home-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding-bottom: 40px;
}

/* Hero Banner */
.home-hero-banner {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 380px;
    display: flex;
    align-items: flex-end;
    padding: 36px;
    background-size: cover;
    background-position: center top;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-subtle);
}

.home-hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #080b14 10%, rgba(8, 11, 20, 0.75) 50%, rgba(8, 11, 20, 0.3) 100%),
                linear-gradient(to right, #080b14 25%, rgba(8, 11, 20, 0.85) 50%, transparent 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 620px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-badge-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.hero-platform-tag {
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 6px;
    text-transform: uppercase;
}

.hero-genre-tag {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 6px;
    backdrop-filter: blur(8px);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.hero-overview {
    font-size: 14px;
    color: #cbd5e1;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

/* Home Section Layouts */
.home-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.home-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.home-section-header h2 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.home-section-header p {
    font-size: 13px;
    color: var(--text-muted);
}

/* Horizontal Carousels */
.home-carousel {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 8px 4px 18px 4px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.home-media-card {
    flex: 0 0 155px;
    min-width: 155px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.home-media-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55), 0 0 20px rgba(99, 102, 241, 0.2);
    background: rgba(22, 31, 54, 0.95);
}

.home-card-poster {
    width: 100%;
    aspect-ratio: 2 / 3;
    background: #090d16;
    overflow: hidden;
    position: relative;
}

.home-card-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.home-media-card:hover .home-card-poster img {
    transform: scale(1.05);
}

.home-platform-pill {
    position: absolute;
    top: 6px;
    left: 6px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #fff;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(4px);
    padding: 2px 7px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-transform: uppercase;
}

.home-platform-pill.pill-netflix {
    background: rgba(229, 9, 20, 0.9) !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 2px 8px rgba(229, 9, 20, 0.4);
}

.home-platform-pill.pill-prime {
    background: rgba(0, 168, 225, 0.9) !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 2px 8px rgba(0, 168, 225, 0.4);
}

.home-platform-pill.pill-disney {
    background: rgba(17, 60, 207, 0.9) !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 2px 8px rgba(17, 60, 207, 0.4);
}

.home-platform-pill.pill-max {
    background: rgba(94, 43, 255, 0.9) !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 2px 8px rgba(94, 43, 255, 0.4);
}

.home-platform-pill.pill-appletv {
    background: rgba(20, 27, 44, 0.92) !important;
    color: #f1f5f9 !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.home-platform-pill.pill-cinema {
    background: rgba(245, 158, 11, 0.95) !important;
    color: #0f172a !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    font-weight: 900 !important;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.home-platform-pill.pill-tv {
    background: rgba(99, 102, 241, 0.9) !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
}

.home-platform-pill.pill-rating {
    background: rgba(15, 23, 42, 0.92) !important;
    color: #fbbf24 !important;
    border-color: rgba(251, 191, 36, 0.4) !important;
}

.home-card-year {
    position: absolute;
    bottom: 6px;
    right: 6px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    padding: 2px 6px;
    border-radius: 5px;
}

.home-card-info {
    padding: 10px 10px 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: left;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.6) 0%, rgba(10, 15, 28, 0.95) 100%);
    flex: 1;
}

.home-card-title {
    font-family: var(--font-heading);
    font-size: 13.5px;
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.home-card-genre {
    font-size: 11px;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

/* Streaming Filter Pills */
.streaming-filter-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 2px 6px 2px;
}

.streaming-pill-btn {
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.09);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.streaming-pill-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.streaming-pill-btn.active {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

/* Home Dual Column: Community Top & Friends Activity */
.home-dual-col {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    width: 100%;
    box-sizing: border-box;
}

.home-activity-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.home-activity-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(16, 23, 41, 0.72);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.home-activity-card:hover {
    background: rgba(24, 34, 60, 0.9);
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.community-rank-num {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-muted);
    min-width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.community-rank-num.rank-podium {
    font-size: 17px;
}

.activity-poster {
    width: 44px;
    height: 64px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: #090d16;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.activity-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.activity-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
}

.activity-user-row {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--text-muted);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.activity-user-badge {
    font-weight: 700;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.activity-title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    width: 100%;
    max-width: 100%;
}

.activity-meta-line {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-review-snippet {
    font-size: 11px;
    color: var(--text-secondary);
    font-style: italic;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 100%;
}

.activity-score-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #f59e0b;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
    margin-left: auto;
    letter-spacing: 0.3px;
}

/* ==========================================================================
   USER PROFILE POPUP MODAL & PRIVACY
   ========================================================================== */

.up-profile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.up-user-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.up-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    background: rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.up-names h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.up-names span {
    font-size: 13px;
    color: var(--text-muted);
}

#userProfileModal {
    z-index: 1200;
}

.up-relationship-pill {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid transparent;
}

.up-relationship-pill.friends {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.4);
}

.up-relationship-pill.self {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    border-color: rgba(99, 102, 241, 0.4);
}

/* Locked private profile box */
.up-locked-box {
    text-align: center;
    padding: 48px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.up-lock-icon {
    font-size: 48px;
    margin-bottom: 4px;
}

.up-locked-box h4 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.up-locked-box p {
    font-size: 14px;
    color: var(--text-muted);
    max-width: 400px;
}

/* Profile Privacy Toggle in Profile Tab */
.profile-privacy-box {
    margin-top: 16px;
    padding: 16px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.privacy-header-label {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.privacy-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.privacy-pill-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.15s ease;
}

.privacy-pill-label:hover {
    background: rgba(255, 255, 255, 0.08);
}

.privacy-pill-label input[type="radio"]:checked + span {
    color: #fff;
    font-weight: 700;
}

.privacy-pill-label:has(input[type="radio"]:checked) {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--primary);
    color: #fff;
}

@media (max-width: 768px) {
    .home-hero-banner {
        min-height: 280px;
        padding: 20px;
    }

    .hero-title {
        font-size: 26px;
    }

    .home-media-card {
        flex: 0 0 120px;
        min-width: 120px;
    }

    .home-dual-col {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 20px;
        width: 100%;
    }

    .privacy-options {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   PASSWORD TOGGLE & STRENGTH METER (COMMERCIAL REGISTRATION)
   ========================================================================== */
.password-input-wrap {
    position: relative;
    width: 100%;
}

.password-input-wrap input {
    width: 100%;
    padding-right: 44px !important;
}

.btn-toggle-pw {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    opacity: 0.6;
    transition: opacity 0.2s ease, transform 0.15s ease;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-toggle-pw:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.field-hint {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
    display: block;
}

.required-star {
    color: var(--color-a);
    font-weight: 700;
}

.pw-strength-container {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pw-strength-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
}

.pw-strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 4px;
    transition: width 0.3s ease, background 0.3s ease;
}

.pw-strength-text {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}

/* ==========================================================================
   MEDIA PREVIEW MODAL (HOME QUICK VIEW WITH SYNOPSIS & ACTIONS)
   ========================================================================== */
.modal-media-preview {
    max-width: 680px;
    overflow: hidden;
    padding: 0;
}

.preview-hero-banner {
    position: relative;
    height: 160px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #0c101d;
}

.preview-hero-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(13, 19, 34, 0.2) 0%, rgba(13, 19, 34, 0.95) 100%),
                linear-gradient(to right, rgba(13, 19, 34, 0.8) 0%, transparent 60%);
}

.preview-hero-banner .modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.preview-modal-body {
    padding: 0 24px 24px 24px;
}

.preview-layout-main {
    display: flex;
    gap: 20px;
    margin-top: -65px;
    position: relative;
    z-index: 5;
}

.preview-poster-col {
    flex: 0 0 135px;
    width: 135px;
}

.preview-poster-shadow {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 2px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65);
    background: #090d16;
}

.preview-details-col {
    flex: 1;
    min-width: 0;
    padding-top: 6px;
}

.preview-badge-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.preview-type-badge {
    font-size: 10px;
    font-weight: 800;
    color: #fff;
    background: rgba(99, 102, 241, 0.85);
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.preview-year-badge {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 8px;
    border-radius: 6px;
}

.preview-platform-badge {
    font-size: 10px;
    font-weight: 800;
    color: #fff;
    background: rgba(236, 72, 153, 0.8);
    padding: 3px 8px;
    border-radius: 6px;
}

.preview-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 2px;
}

.preview-orig-title {
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
    display: block;
    margin-bottom: 8px;
}

.preview-genre-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.preview-genre-pill {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}

.preview-synopsis-box {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    max-height: 140px;
    overflow-y: auto;
}

.synopsis-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
    display: block;
    margin-bottom: 4px;
}

.synopsis-text {
    font-size: 13px;
    line-height: 1.6;
    color: #cbd5e1;
}

.preview-actions-footer {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--border-subtle);
}

@media (max-width: 600px) {
    .preview-hero-banner {
        height: 120px;
    }

    .preview-layout-main {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-top: -50px;
        gap: 12px;
    }

    .preview-poster-col {
        flex: 0 0 110px;
        width: 110px;
    }

    .preview-badge-row {
        justify-content: center;
    }

    .preview-genre-tags {
        justify-content: center;
    }

    .preview-actions-footer {
        flex-direction: column;
    }
}

/* ==========================================================================
   HERO CAROUSEL ROTATING BLOCKBUSTERS
   ========================================================================== */
.hero-carousel-wrapper {
    position: relative;
    width: 100%;
    height: 350px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 32px;
    background: #090d16;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

.hero-carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-carousel-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s;
    background-size: cover;
    background-position: right center;
    display: flex;
    align-items: center;
    padding: 32px 68px;
    box-sizing: border-box;
}

.hero-carousel-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    /* Cinematic vignette: dark on left for text legibility, transparent on center/right for poster */
    background: linear-gradient(90deg, rgba(9, 13, 22, 0.95) 0%, rgba(9, 13, 22, 0.8) 45%, rgba(9, 13, 22, 0.25) 75%, rgba(9, 13, 22, 0.75) 100%),
                linear-gradient(0deg, rgba(9, 13, 22, 0.65) 0%, transparent 40%);
    pointer-events: none;
}

.hero-carousel-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 580px;
}

.hero-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(13, 19, 34, 0.85);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

.hero-carousel-arrow:hover {
    background: var(--primary);
    transform: translateY(-50%) scale(1.08);
    border-color: #fff;
}

.hero-prev {
    left: 14px;
}

.hero-next {
    right: 14px;
}

.hero-carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
    background: rgba(15, 23, 42, 0.65);
    padding: 4px 12px;
    border-radius: 20px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.35);
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 0;
}

.hero-dot.active {
    width: 22px;
    background: var(--primary);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.8);
}

@media (max-width: 600px) {
    .hero-carousel-wrapper {
        height: 290px;
        min-height: 290px;
        border-radius: 14px;
        margin-bottom: 24px;
    }
    .hero-carousel-slide {
        padding: 20px 48px;
    }
    .hero-carousel-slide::before {
        background: linear-gradient(180deg, rgba(9, 13, 22, 0.3) 0%, rgba(9, 13, 22, 0.88) 60%, rgba(9, 13, 22, 0.98) 100%);
    }
    .hero-carousel-arrow {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    .hero-prev { left: 8px; }
    .hero-next { right: 8px; }
    .hero-title {
        font-size: 22px;
        margin-bottom: 6px;
    }
    .hero-overview {
        -webkit-line-clamp: 2;
        font-size: 12px;
        margin-bottom: 12px;
    }
    .hero-actions .btn {
        padding: 7px 12px;
        font-size: 12px;
    }
}
        height: 34px;
        font-size: 18px;
    }
    .hero-prev { left: 8px; }
    .hero-next { right: 8px; }
}

/* ==========================================================================
   PODIUM BADGES & LANTERNINHA HUMOR
   ========================================================================== */
.badge-podium-gold {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: #fff !important;
    font-weight: 800 !important;
    border: 1px solid #fef3c7 !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.5) !important;
}

.badge-podium-silver {
    background: linear-gradient(135deg, #94a3b8, #64748b) !important;
    color: #fff !important;
    font-weight: 800 !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 12px rgba(148, 163, 184, 0.4) !important;
}

.badge-podium-bronze {
    background: linear-gradient(135deg, #b45309, #78350f) !important;
    color: #fff !important;
    font-weight: 800 !important;
    border: 1px solid #fde68a !important;
    box-shadow: 0 4px 12px rgba(180, 83, 9, 0.4) !important;
}

.badge-lanterninha {
    background: linear-gradient(135deg, #2b1113, #18090a) !important;
    color: #f87171 !important;
    border: 1px solid #ef444477 !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3) !important;
}

.is-lanterninha-card {
    border-color: rgba(239, 68, 68, 0.4) !important;
}

.card-lanterninha-footer {
    background: rgba(239, 68, 68, 0.12);
    border-top: 1px dashed rgba(239, 68, 68, 0.35);
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 700;
    color: #fca5a5;
    text-align: center;
    border-radius: 0 0 14px 14px;
    margin: 8px -12px -12px -12px;
}

.card-revaluated-tag {
    position: absolute;
    bottom: 8px;
    right: 8px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.3px;
    background: rgba(16, 185, 129, 0.9);
    backdrop-filter: blur(4px);
    color: #fff;
    padding: 2px 7px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   RETRATAÇÃO & REAVALIAÇÃO MODAL & HISTORY
   ========================================================================== */
.revaluation-notice-box {
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 13px;
    color: #c7d2fe;
    line-height: 1.5;
}

.revaluation-history-box {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 12px;
    padding: 12px 14px;
    margin-top: 14px;
}

.revaluation-history-box .history-title {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    color: #34d399;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.revaluation-history-box .history-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #fff;
}

.revaluation-history-box .history-reason {
    font-size: 12px;
    font-style: italic;
    color: var(--text-secondary);
    margin-top: 4px;
}

.tag-revaluated {
    font-size: 10px;
    font-weight: 800;
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 1px 5px;
    border-radius: 4px;
    margin-left: 4px;
}

/* ==========================================================================
   PROFILE FRIENDS SOCIAL SECTION
   ========================================================================== */
.stat-clickable {
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.stat-clickable:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.25);
}

.profile-friends-section {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.friends-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 12px;
    margin-bottom: 14px;
}

.badge-pending {
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 10px;
    margin-left: 6px;
    letter-spacing: 0.3px;
    vertical-align: middle;
}

/* ============================================================= */
/* ADMIN & SECURITY MONITORING STYLES                           */
/* ============================================================= */

.btn-admin-header {
    background: rgba(99, 102, 241, 0.15) !important;
    border: 1px solid rgba(99, 102, 241, 0.4) !important;
    color: #a5b4fc !important;
    font-weight: 700;
}

.btn-admin-header:hover {
    background: rgba(99, 102, 241, 0.3) !important;
    border-color: #818cf8 !important;
    color: #fff !important;
}

.admin-header-card {
    background: linear-gradient(135deg, rgba(30, 27, 75, 0.7) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.admin-header-card::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, transparent 70%);
    pointer-events: none;
}

.admin-header-main {
    display: flex;
    align-items: center;
    gap: 18px;
}

.admin-icon-glow {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.4);
    flex-shrink: 0;
}

.admin-badge-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.admin-pill-badge {
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.5);
    color: #c7d2fe;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.8px;
    padding: 3px 10px;
    border-radius: 20px;
}

.admin-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #34d399;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 3px 10px;
    border-radius: 20px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.admin-header-info h2 {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 4px 0;
}

.admin-header-info p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.admin-header-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Admin Subtabs Nav */
.admin-subtabs-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 12px;
    overflow-x: auto;
    scrollbar-width: none;
}

.admin-subtabs-nav::-webkit-scrollbar {
    display: none;
}

.admin-subtab-btn {
    padding: 10px 18px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.admin-subtab-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.admin-subtab-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
}

.admin-telegram-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #64748b;
    display: inline-block;
}

.admin-telegram-dot.active {
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e;
}

/* KPI Cards */
.admin-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.admin-kpi-card {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    backdrop-filter: blur(12px);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.admin-kpi-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-hover);
}

.kpi-icon {
    font-size: 28px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
}

.kpi-content {
    flex: 1;
}

.kpi-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 4px;
}

.kpi-value {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 6px 0;
    font-family: 'Outfit', sans-serif;
}

.kpi-subtext {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.status-badge {
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}

.status-badge.s2xx { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.status-badge.s4xx { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.status-badge.s5xx { background: rgba(239, 68, 68, 0.15); color: #f87171; }

.severity-badge-mini {
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}

.severity-badge-mini.crit { background: rgba(239, 68, 68, 0.2); color: #f87171; }
.severity-badge-mini.high { background: rgba(249, 115, 22, 0.2); color: #fb923c; }

.kpi-health-text {
    color: #4ade80;
    font-weight: 600;
}

/* Two Columns Layout */
.admin-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

@media (max-width: 900px) {
    .admin-two-col {
        grid-template-columns: 1fr;
    }
}

.admin-card {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 22px;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.admin-card-header {
    margin-bottom: 18px;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 12px;
}

.admin-card-header h3 {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px 0;
}

.admin-card-header p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

.admin-card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 12px;
}

.admin-card-header-flex h3 {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px 0;
}

.admin-card-header-flex p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

/* Tables */
.admin-table-wrap {
    overflow-x: auto;
    scrollbar-width: thin;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}

.admin-table th {
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-secondary);
    font-weight: 600;
    border-bottom: 1px solid var(--border-subtle);
    white-space: nowrap;
}

.admin-table td {
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    white-space: nowrap;
}

.admin-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.endpoint-code {
    background: rgba(255, 255, 255, 0.05);
    padding: 3px 7px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 12px;
    color: #93c5fd;
}

.ip-code {
    font-family: monospace;
    color: #cbd5e1;
    font-size: 12px;
}

/* Threats Feed Cards */
.admin-threats-feed {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.threat-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    transition: all 0.2s ease;
}

.threat-card:hover {
    background: rgba(255, 255, 255, 0.04);
}

.threat-card.crit { border-left: 4px solid #ef4444; }
.threat-card.high { border-left: 4px solid #f97316; }
.threat-card.med  { border-left: 4px solid #eab308; }
.threat-card.low  { border-left: 4px solid #3b82f6; }

.threat-body {
    flex: 1;
}

.threat-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.threat-pill {
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.threat-pill.crit { background: rgba(239, 68, 68, 0.25); color: #fca5a5; }
.threat-pill.high { background: rgba(249, 115, 22, 0.25); color: #fdba74; }
.threat-pill.med  { background: rgba(234, 179, 8, 0.25); color: #fde047; }
.threat-pill.low  { background: rgba(59, 130, 246, 0.25); color: #93c5fd; }

.threat-time {
    font-size: 12px;
    color: var(--text-muted);
}

.threat-details {
    font-size: 13px;
    color: var(--text-primary);
    margin: 4px 0 8px 0;
    line-height: 1.4;
}

.threat-route-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

/* Telegram Tutorial List */
.admin-tutorial-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tutorial-step {
    display: flex;
    gap: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 14px;
}

.step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13px;
    flex-shrink: 0;
}

.step-content strong {
    display: block;
    font-size: 14px;
    color: #fff;
    margin-bottom: 4px;
}

.step-content p {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

.step-content code {
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 5px;
    border-radius: 4px;
    font-size: 11px;
    color: #93c5fd;
}

.admin-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* Custom Toggle Switch */
.custom-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.custom-toggle input {
    display: none;
}

.toggle-slider {
    width: 44px;
    height: 24px;
    background: #334155;
    border-radius: 24px;
    position: relative;
    transition: background 0.3s ease;
}

.toggle-slider::after {
    content: "";
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: transform 0.3s ease;
}

.custom-toggle input:checked + .toggle-slider {
    background: #10b981;
}

.custom-toggle input:checked + .toggle-slider::after {
    transform: translateX(20px);
}

.toggle-label {
    font-size: 14px;
    color: var(--text-primary);
}

/* Blocked IP Item */
.blocked-ip-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 12px;
}

.blocked-ip-info strong {
    color: #f87171;
    font-size: 15px;
    display: block;
    margin-bottom: 4px;
    font-family: monospace;
}

.blocked-ip-info span {
    font-size: 12px;
    color: var(--text-secondary);
}

