/* ─── Design Tokens ─── */
:root {
    --bg-body:    #000000;
    --bg-card:    #0d0d0d;
    --bg-modal:   #111111;
    --bg-surface: #181818;
    --primary:    #a855f7;
    --primary-dim: rgba(168, 85, 247, 0.15);
    --primary-glow: rgba(168, 85, 247, 0.35);
    --text-main:  #f5f5f5;
    --text-muted: #888888;
    --text-sub:   #555555;
    --border:     rgba(255,255,255,0.07);
    --border-hover: rgba(168,85,247,0.5);
    --radius-sm:  6px;
    --radius-md:  10px;
    --radius-lg:  16px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-body);
    color: var(--text-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100dvh;
    overscroll-behavior-y: none;
    line-height: 1.5;
}

#app-container { display: none; }

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 6px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ─── Navbar ─── */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4%;
    background: linear-gradient(180deg, rgba(0,0,0,0.85) 0%, transparent 100%);
    z-index: 1000;
    transition: background var(--transition), backdrop-filter var(--transition);
}
nav.scrolled {
    background: rgba(0,0,0,0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.logo {
    font-size: 1.7rem;
    font-weight: 900;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -1.5px;
    flex-shrink: 0;
    text-shadow: 0 0 30px var(--primary-glow);
    transition: filter var(--transition);
}
.logo:hover { filter: brightness(1.2); }

.nav-links { display: flex; gap: 1.6rem; list-style: none; }
.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color var(--transition);
    position: relative;
    padding-bottom: 2px;
}
.nav-links a::after {
    content: '';
    position: absolute; bottom: -2px; left: 0; right: 0;
    height: 2px; background: var(--primary);
    transform: scaleX(0); transition: transform var(--transition);
    border-radius: 99px;
}
.nav-links a:hover, .nav-links a.active { color: var(--text-main); }
.nav-links a.active::after, .nav-links a:hover::after { transform: scaleX(1); }

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 8px;
    margin-right: -10px;
}
.mobile-toggle i { width: 24px; height: 24px; }
@media (max-width: 768px) {
    .mobile-toggle { display: block; }
}
.search-container {
    display: flex;
    align-items: center;
    background: transparent;
    border: 1px solid transparent;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}
.search-container.active {
    border-color: rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(10px);
}
#search-input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-main);
    width: 0;
    transition: all var(--transition);
    font-size: 0.85rem;
    font-family: 'Outfit', sans-serif;
}
.search-container.active #search-input { width: 200px; margin-left: 8px; }
@media (max-width: 768px) {
    .search-container.active #search-input { width: 130px; }
}

/* ─── Hero Banner ─── */
main { min-height: 100vh; padding-bottom: 6rem; background: var(--bg-body); }

.hero {
    position: relative;
    height: 88vh;
    display: flex;
    align-items: center;
    padding: 0 4%;
    overflow: hidden;
    margin-bottom: 1rem;
}
@media (max-width: 768px) {
    .hero { height: 65vh; padding-top: 80px; align-items: flex-end; padding-bottom: 2rem; }
}

.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center top;
    z-index: -1;
    transform: scale(1.04);
    transition: transform 8s ease;
}
.hero:hover .hero-bg { transform: scale(1); }

.hero-bg.no-cover { background: #0a0a0a; }
.hero-bg.no-cover::after {
    content: 'SEM CAPA'; font-size: 5rem; font-weight: 900;
    color: rgba(255,255,255,0.03); letter-spacing: 15px;
    display: flex; align-items: center; justify-content: center; height: 100%;
}

.hero-mask {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(0,0,0,0.55) 0%, transparent 60%),
        linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0) 100%),
        linear-gradient(0deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 40%);
    z-index: 0;
}

.hero-content {
    max-width: 620px;
    z-index: 10;
    opacity: 0;
    transform: translateY(24px);
    transition: all 1.3s cubic-bezier(0.19, 1, 0.22, 1);
}
.hero-content.visible { opacity: 1; transform: translateY(0); }

.hero-title {
    font-size: 3.8rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.05;
    color: #fff;
    letter-spacing: -0.5px;
}
@media (max-width: 768px) { .hero-title { font-size: 2.2rem; } }

.hero-plot {
    font-size: 1rem;
    color: rgba(255,255,255,0.75);
    margin-bottom: 2rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 300;
    max-width: 500px;
}
@media (max-width: 768px) {
    .hero-plot { font-size: 0.9rem; -webkit-line-clamp: 2; line-clamp: 2; }
}

/* ─── Buttons ─── */
.btn {
    padding: 0.75rem 1.8rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    transition: all var(--transition);
    border: none;
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: #fff;
    color: #000;
    box-shadow: 0 4px 20px rgba(255,255,255,0.15);
}
.btn-primary:hover {
    background: rgba(255,255,255,0.88);
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(255,255,255,0.2);
}

.btn-secondary {
    background: rgba(255,255,255,0.1);
    color: var(--text-main);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.17);
    border-color: rgba(255,255,255,0.2);
}

/* Botão discreto (VLC, ações secundárias) */
.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.45rem 1rem;
    border-radius: 99px;
    letter-spacing: 0.03em;
}
.btn-ghost:hover {
    color: var(--text-main);
    border-color: rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.05);
}
.btn-ghost i { width: 13px; height: 13px; }

.btn-circle {
    width: 40px; height: 40px;
    border-radius: 50%; padding: 0;
    border: 1px solid rgba(255,255,255,0.3);
    justify-content: center;
    background: rgba(255,255,255,0.08);
}
.btn-circle:hover { background: rgba(255,255,255,0.15); }

/* ─── Rows & Carousel ─── */
.row { margin-bottom: 0.5rem; padding: 0 4%; }
.row-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.2px;
}

.grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1.5rem 0.5rem 2rem;
    overscroll-behavior-x: contain;
    width: 100%;
}
.grid::-webkit-scrollbar { height: 6px; }
.grid::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 99px; }
.grid::-webkit-scrollbar-track { background: transparent; }

/* Fade edge */
.row-container {
    position: relative;
    display: flex;
    align-items: center;
    margin: 0 -4%;
    padding: 0 4%;
    overflow: hidden;
}
.row-container::after {
    content: ''; position: absolute; top: 0; right: 0; bottom: 0;
    width: 60px;
    background: linear-gradient(90deg, transparent, var(--bg-body));
    pointer-events: none; z-index: 2;
}
@media (max-width: 768px) { .row-container::after { width: 24px; } }

/* Carousel arrows */
.nav-arrow {
    position: absolute; 
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    cursor: pointer; 
    z-index: 50;
    display: flex; 
    align-items: center; 
    justify-content: center;
    opacity: 0;
    transition: all var(--transition);
    backdrop-filter: blur(8px);
    border-radius: 50% !important;
}
.row-container:hover .nav-arrow { opacity: 1; }
.nav-arrow:hover { 
    background: var(--primary); 
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
}
.nav-arrow.left { left: 1rem; }
.nav-arrow.right { right: 1rem; }
.nav-arrow i { width: 20px; height: 20px; transition: transform 0.15s; }
.nav-arrow:hover i { transform: scale(1.1); }
.nav-arrow:active i { transform: scale(0.9); }

/* ─── Vertical Grid ─── */
.vertical-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.2rem;
    padding: 0.5rem 0;
}
.vertical-grid .card { flex: none; width: 100%; aspect-ratio: 16/9; }

/* ─── Cards ─── */
.card {
    flex: 0 0 220px;
    aspect-ratio: 16/9;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease, z-index 0s;
    position: relative;
    border: 1px solid rgba(255,255,255,0.04);
}
.card:hover {
    transform: scale(1.18);
    z-index: 100;
    box-shadow: 0 20px 60px rgba(0,0,0,0.85), 0 0 0 1px var(--primary-dim);
}

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

.card-info {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 0.8rem 0.8rem 0.6rem;
    background: linear-gradient(0deg, rgba(0,0,0,0.96) 0%, transparent 100%);
    opacity: 1;
    transition: opacity 0.25s;
}
.card:hover .card-info { opacity: 1; }
.card-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card.no-cover {
    background: linear-gradient(145deg, #1a1a1a 0%, #0d0d0d 100%);
    display: flex; align-items: center; justify-content: center;
    border: 1px solid #1e1e1e;
}
.no-cover-text {
    font-size: 0.65rem; font-weight: 800;
    color: var(--text-sub);
    text-transform: uppercase; letter-spacing: 3px;
}

/* Progress bar */
.progress-container {
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 3px; background: rgba(255,255,255,0.15);
    border-radius: 0; overflow: hidden;
    transition: height 0.2s;
}
.card:hover .progress-container { height: 4px; }
.progress-bar { height: 100%; background: var(--primary); transition: width 0.3s ease; }

/* ─── Preview Modal ─── */
.modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.88);
    display: flex; align-items: flex-start; justify-content: center;
    z-index: 2000;
    overflow-y: auto;
    padding: 3.5rem 1rem 3rem;
    backdrop-filter: blur(12px);
}

.modal-content {
    background: var(--bg-modal);
    width: 100%; max-width: 860px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 120px rgba(0,0,0,0.9), 0 0 0 1px var(--border);
    min-height: 70vh;
    animation: modalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.close-btn {
    position: absolute; top: 16px; right: 16px;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(0,0,0,0.65);
    border: 1px solid var(--border);
    color: var(--text-muted);
    cursor: pointer;
    z-index: 100;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--transition);
    backdrop-filter: blur(8px);
}
.close-btn:hover { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.2); }
.close-btn i { width: 16px; height: 16px; }

.preview-hero {
    height: 420px;
    background-size: cover;
    background-position: center top;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 2.5rem 2.5rem 2rem;
}
.preview-hero-mask {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background:
        linear-gradient(0deg, var(--bg-modal) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.8) 100%),
        radial-gradient(circle at 50% 50%, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.6) 100%);
    backdrop-filter: blur(2px);
}
.preview-hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    display: flex;
    gap: 30px;
    align-items: flex-end;
}

.preview-poster-container {
    flex: 0 0 170px;
    aspect-ratio: 2/3;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    border: 1px solid rgba(255,255,255,0.1);
    transform: translateY(10px);
}

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

.preview-info {
    flex: 1;
}

.preview-info h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1px;
}
@media (max-width: 768px) {
    .preview-hero { height: auto; min-height: 400px; padding: 2rem 1.5rem 1.5rem; }
    .preview-hero-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }
    .preview-poster-container {
        flex: 0 0 140px;
        transform: translateY(0);
    }
    .preview-info h1 { font-size: 1.8rem; }
    .meta { justify-content: center; }
    .actions { justify-content: center; }
}

.meta {
    margin-bottom: 1rem;
    display: flex; gap: 0.75rem; align-items: center;
    flex-wrap: wrap;
    font-size: 0.82rem; font-weight: 600;
    color: #46d369;
}
.meta .type {
    border: 1px solid rgba(255,255,255,0.25);
    padding: 0.1rem 0.5rem;
    color: var(--text-muted);
    font-size: 0.7rem;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.meta .year { color: var(--text-muted); font-weight: 500; }

.plot {
    color: rgba(255,255,255,0.65);
    line-height: 1.65;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 300;
}

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

/* ─── Episodes ─── */
.episodes-section {
    padding: 2rem 2.5rem 2.5rem;
    border-top: 1px solid var(--border);
}
.episodes-section h3 {
    font-size: 1.15rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
}

.episode-item {
    display: flex; align-items: center; gap: 1.2rem;
    padding: 1rem 0.75rem;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background var(--transition), border-radius var(--transition);
    border-radius: var(--radius-sm);
}
.episode-item:last-child { border-bottom: none; }
.episode-item:hover { background: rgba(255,255,255,0.05); }

.ep-num { font-size: 1.2rem; color: var(--text-sub); font-weight: 700; min-width: 28px; text-align: center; }
.ep-info .ep-title { font-weight: 600; margin-bottom: 0.25rem; font-size: 0.9rem; }
.ep-info .ep-plot { font-size: 0.78rem; color: var(--text-muted); line-height: 1.4; }

/* ─── Login Screen ─── */
.login-screen {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: url('/static/assets/login-bg.png') no-repeat center center;
    background-size: cover;
    display: flex; align-items: center; justify-content: center;
    z-index: 5000;
}
.login-screen::before {
    content: '';
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(6px);
}

.login-card {
    position: relative;
    background: rgba(0,0,0,0.8);
    border: 1px solid var(--border);
    padding: 52px 60px 44px;
    width: 100%; max-width: 440px;
    border-radius: var(--radius-md);
    z-index: 10;
    backdrop-filter: blur(16px);
    box-shadow: 0 0 80px rgba(168,85,247,0.08);
}
@media (max-width: 768px) { .login-card { width: 92%; max-width: 400px; padding: 40px 28px; } }

.login-card h2 {
    font-size: 1.9rem;
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}
.login-card .login-subtitle { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 32px; }

.form-group { margin-bottom: 14px; position: relative; }
.form-group label {
    display: block; font-size: 0.72rem; color: var(--text-muted);
    margin-bottom: 7px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1.2px;
}
.form-group input {
    width: 100%; padding: 14px 18px;
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.09) !important;
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-size: 0.95rem;
    font-family: 'Outfit', sans-serif;
    outline: none;
    transition: all var(--transition);
}
.form-group input:focus {
    border-color: var(--primary) !important;
    background: rgba(168,85,247,0.05) !important;
    box-shadow: 0 0 0 3px var(--primary-dim);
}
.form-group input::placeholder { color: var(--text-sub); }

.login-btn {
    width: 100%; padding: 14px;
    background: var(--primary);
    color: #fff; border: none;
    border-radius: var(--radius-sm);
    font-weight: 700; font-size: 1rem;
    font-family: 'Outfit', sans-serif;
    margin-top: 22px;
    cursor: pointer;
    transition: all var(--transition);
    letter-spacing: 0.03em;
    box-shadow: 0 4px 20px rgba(168,85,247,0.35);
}
.login-btn:hover {
    background: #b168f8;
    transform: translateY(-1px);
    box-shadow: 0 8px 28px rgba(168,85,247,0.45);
}
.login-btn:active { transform: translateY(0); }

.login-footer { margin-top: 1.5rem; font-size: 0.82rem; color: var(--text-muted); text-align: center; }
.login-footer a { color: var(--text-main); font-weight: 600; text-decoration: none; }
.login-footer a:hover { color: var(--primary); }

/* ─── Premium Form States ─── */
.btn-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn-loading::after {
    content: ''; position: absolute; top: 50%; left: 50%;
    width: 18px; height: 18px; margin: -9px;
    border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff;
    border-radius: 50%; animation: spin 0.7s linear infinite;
}
.success-msg { color: #46d369; font-size: 0.85rem; margin-top: 10px; display: none; }
.error-msg { color: var(--red, #ef4444); font-size: 0.85rem; margin-top: 8px; display: none; }

/* ─── Utility / Loader ─── */
#loader {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: #000; z-index: 10000;
    display: flex; align-items: center; justify-content: center;
}
.spinner {
    width: 44px; height: 44px;
    border: 2.5px solid rgba(168,85,247,0.12);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.animate-in { animation: fadeIn 0.45s ease-out both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

/* ─── Profile & Dropdown ─── */
.profile-container { position: relative; display: flex; align-items: center; }

.user-avatar {
    width: 34px; height: 34px;
    background: var(--primary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 0.9rem;
    overflow: hidden; position: relative;
    transition: transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 0 0 0 var(--primary-dim);
}
.profile-container:hover .user-avatar {
    transform: scale(1.08);
    box-shadow: 0 0 0 3px var(--primary-dim);
}

.profile-dropdown {
    position: absolute; top: calc(100% + 12px); right: 0;
    width: 250px;
    background: rgba(10,10,10,0.98);
    border: 1px solid var(--border);
    border-top: 2px solid var(--primary);
    border-radius: var(--radius-md);
    opacity: 0; visibility: hidden;
    transform: translateY(-8px) scale(0.97);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1100;
    backdrop-filter: blur(25px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.95);
    overflow: hidden;
}
.profile-container:hover .profile-dropdown {
    opacity: 1; visibility: visible;
    transform: translateY(0) scale(1);
}

.dropdown-active-profile {
    padding: 16px 20px;
    background: rgba(168, 85, 247, 0.08);
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid var(--border);
}
.active-avatar {
    width: 42px; height: 42px;
    border-radius: 6px;
    background: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; color: #fff;
    border: 2px solid var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
    overflow: hidden; flex-shrink: 0;
}
.active-avatar img { width: 100%; height: 100%; object-fit: cover; }
.active-info { overflow: hidden; display: flex; flex-direction: column; }
.active-info span { 
    font-size: 0.95rem; font-weight: 700; color: #fff; 
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; 
}
.active-info small { font-size: 0.65rem; color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-top: 1px; }

.dropdown-quick-switch {
    list-style: none;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.dropdown-quick-switch li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background var(--transition);
}
.dropdown-quick-switch li:hover { background: rgba(255,255,255,0.06); }
.list-avatar {
    width: 32px; height: 32px;
    border-radius: 4px;
    background: #333;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem; font-weight: 700; color: #fff;
    overflow: hidden; flex-shrink: 0;
}
.list-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dropdown-quick-switch li span { font-size: 0.85rem; color: #ccc; transition: color var(--transition); }
.dropdown-quick-switch li:hover span { color: #fff; }

.dropdown-menu { list-style: none; padding: 10px 0; }
.dropdown-menu li a {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 20px;
    color: #bbb;
    text-decoration: none; font-size: 0.88rem;
    transition: all var(--transition);
}
.dropdown-menu li a:hover {
    background: rgba(255,255,255,0.06);
    color: #fff;
}
.dropdown-menu i { width: 16px; height: 16px; flex-shrink: 0; }

/* ─── Settings ─── */
.settings-container {
    max-width: 780px; margin: 90px auto; padding: 2rem;
    animation: fadeIn 0.5s ease;
}
.settings-header { margin-bottom: 2.5rem; }
.settings-header h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 6px; letter-spacing: -0.5px; }
.settings-header p { color: var(--text-muted); font-size: 0.9rem; }

.settings-group {
    background: rgba(255,255,255,0.025);
    border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 1.8rem; margin-bottom: 1.5rem;
    transition: border-color var(--transition);
}
.settings-group:hover { border-color: rgba(255,255,255,0.1); }
.settings-group h2 {
    font-size: 1.05rem; margin-bottom: 1.4rem;
    display: flex; align-items: center; gap: 10px;
    color: var(--text-main); font-weight: 700;
}
.settings-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
}
.settings-item:last-child { border-bottom: none; }
.item-info label { display: block; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 3px; }
.item-info span { font-weight: 600; font-size: 0.95rem; }

.plan-badge {
    background: var(--primary);
    color: #fff; padding: 4px 14px;
    border-radius: 99px; font-size: 0.72rem; font-weight: 800;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 12px var(--primary-glow);
}
.plan-expires { color: #46d369; font-weight: 600; font-size: 0.82rem; }
.settings-form input {
    width: 100%; border: 1px solid var(--border);
    background: rgba(255,255,255,0.04);
    padding: 10px 15px; border-radius: var(--radius-sm);
    color: var(--text-main); margin-bottom: 1rem;
    font-family: 'Outfit', sans-serif; font-size: 0.9rem;
    outline: none; transition: border-color var(--transition);
}
.settings-form input:focus { border-color: var(--primary); }

/* ─── Plans Page ─── */
.plans-container {
    max-width: 1080px; margin: 90px auto; padding: 2rem;
    text-align: center; animation: fadeIn 0.7s ease;
}
.plans-header h1 { font-size: 2.8rem; font-weight: 900; margin-bottom: 0.8rem; letter-spacing: -1px; }
.plans-header p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 3.5rem; }

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 1.5rem;
}
@media (max-width: 768px) { .plans-grid { grid-template-columns: 1fr; } }

.plan-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 2.5rem 2rem;
    transition: all var(--transition);
    display: flex; flex-direction: column; align-items: center;
    position: relative; overflow: hidden;
}
.plan-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0; transition: opacity var(--transition);
}
.plan-card:hover { transform: translateY(-8px); background: rgba(255,255,255,0.05); border-color: var(--border-hover); }
.plan-card:hover::before { opacity: 1; }
.plan-card.active { border: 1.5px solid var(--primary); background: var(--primary-dim); }
.plan-card.active::before { opacity: 1; }

.plan-name { font-size: 1.3rem; font-weight: 800; margin-bottom: 1.2rem; text-transform: uppercase; letter-spacing: 2.5px; color: var(--text-muted); }
.plan-price { font-size: 2.8rem; font-weight: 900; margin-bottom: 1.8rem; letter-spacing: -2px; }
.plan-price span { font-size: 0.9rem; font-weight: 400; color: var(--text-muted); letter-spacing: 0; }
.plan-features { list-style: none; padding: 0; margin-bottom: 2.5rem; width: 100%; text-align: left; }
.plan-features li {
    padding: 9px 0; border-bottom: 1px solid var(--border);
    font-size: 0.88rem; display: flex; align-items: center; gap: 10px;
    color: var(--text-muted);
}
.plan-features li:last-child { border-bottom: none; }
.plan-features li i { color: #46d369; flex-shrink: 0; }

/* ─── Checkout ─── */
.checkout-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.96); z-index: 10000;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    backdrop-filter: blur(12px); animation: fadeIn 0.4s ease;
    gap: 1.5rem;
}
.checkout-icon {
    width: 90px; height: 90px; border-radius: 50%;
    background: rgba(70,211,105,0.1);
    display: flex; align-items: center; justify-content: center;
    color: #46d369;
    border: 1.5px solid rgba(70,211,105,0.25);
}
.checkout-text p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; text-align: center; }

/* ─── Profiles ─── */
.profile-manage-btn {
    background: transparent;
    border: 1px solid var(--text-sub);
    color: var(--text-sub);
    padding: 0.5rem 1.8rem; margin-top: 4rem;
    cursor: pointer; font-size: 0.9rem; font-family: 'Outfit', sans-serif;
    text-transform: uppercase; letter-spacing: 2.5px;
    border-radius: var(--radius-sm); transition: all var(--transition);
}
.profile-manage-btn:hover { border-color: var(--text-main); color: var(--text-main); }

.add-profile-btn {
    width: 145px; height: 145px;
    background: rgba(255,255,255,0.03);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all var(--transition);
    border: 1px dashed rgba(255,255,255,0.15);
}
.add-profile-btn:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.35); }
.add-profile-btn i { font-size: 2.5rem; color: var(--text-muted); }

/* ─── Profile Selector ─── */
.profile-selector-screen {
    position: fixed; top:0; left:0; right:0; bottom:0;
    background: var(--bg-body);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    z-index: 6000;
    animation: fadeIn 0.6s ease;
}
.profile-selector-title {
    font-size: 2.2rem; color: #fff; margin-bottom: 2.5rem;
    font-weight: 700; text-align: center; letter-spacing: -0.5px;
}
.profile-grid { display: flex; gap: 2rem; flex-wrap: wrap; justify-content: center; padding: 0 1rem; }
.profile-item {
    display: flex; flex-direction: column; align-items: center;
    cursor: pointer; transition: transform var(--transition);
}
.profile-item:hover { transform: scale(1.08); }
.profile-avatar {
    width: 145px; height: 145px;
    border-radius: var(--radius-sm);
    background: #222; margin-bottom: 1rem;
    border: 3px solid transparent;
    transition: border-color var(--transition), box-shadow var(--transition);
    display: flex; align-items: center; justify-content: center;
    font-size: 2.8rem; font-weight: 900; color: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.profile-item:hover .profile-avatar {
    border-color: var(--primary);
    box-shadow: 0 8px 32px var(--primary-glow);
}
.profile-name { font-size: 1.05rem; color: var(--text-muted); font-weight: 500; }
.profile-item:hover .profile-name { color: #fff; }

/* ─── Related Content Cards ─── */
.related-card { transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition); }
.related-card:hover { 
    transform: scale(1.05); 
    border-color: var(--primary) !important; 
    box-shadow: 0 8px 24px var(--primary-glow) !important; 
}

/* ─── Badges ─── */
.role-badge {
    padding: 2px 8px; border-radius: var(--radius-sm);
    font-size: 0.6rem; font-weight: 900; color: #fff;
    text-transform: uppercase; letter-spacing: 1.2px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1);
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    nav { 
        height: 60px; 
        padding: 0 16px;
        background: rgba(0,0,0,0.96); 
        justify-content: space-between;
    }
    .nav-links { display: none; }
    .logo { font-size: 1.35rem; margin-right: auto; margin-left: 10px; }
    .nav-actions { gap: 0.5rem; flex: 0 0 auto; display: flex; align-items: center; }
    .search-container.active #search-input { width: 80px; }
    
    .row { padding: 0 3%; margin-bottom: 2rem; }
    .row-title { font-size: 1.05rem; margin-bottom: 0.7rem; }
    .grid { gap: 0.7rem; padding: 0.5rem 0 1rem; }
    .card { flex: 0 0 140px; height: auto; }
    .card:hover { transform: none; box-shadow: none; }

    .modal-overlay { padding: 0; }
    .modal-content { border-radius: 0; min-height: 100dvh; }

    .hero-content { padding-bottom: 1.5rem; }
    .btn { min-height: 46px; font-size: 0.9rem; }

    .plans-grid { gap: 1rem; }
}

/* ─── Mobile Sidebar ─── */
.mobile-sidebar {
    position: fixed; top: 0; left: -100%; width: 280px; height: 100%;
    background: rgba(10,10,10,0.98);
    backdrop-filter: blur(20px);
    z-index: 9999;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-right: 1px solid var(--border);
    display: flex; flex-direction: column;
}
.mobile-sidebar.active { left: 0; }

.sidebar-header {
    padding: 20px 24px;
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid var(--border);
}
.close-sidebar { background: transparent; border: none; color: #fff; cursor: pointer; }

.sidebar-links { list-style: none; padding: 20px 0; }
.sidebar-links li a {
    display: block; padding: 16px 24px;
    color: var(--text-muted); text-decoration: none;
    font-size: 1.05rem; font-weight: 600;
    transition: all var(--transition);
}
.sidebar-links li a:hover {
    background: rgba(168,85,247,0.1);
    color: var(--primary);
    padding-left: 32px;
}
