/* ==========================================================================
   VisionTV Web Player — Stylesheet (Dark Netflix/HBO Max Futuristic Aesthetic)
   ========================================================================== */

:root {
    --bg-main: #0B0715;
    --bg-surface: #140D24;
    --bg-surface-elevated: #1D1333;
    --bg-surface-highlight: #281B46;
    
    --primary: #9C27B0;
    --primary-light: #BA68C8;
    --secondary: #00E5FF;
    --accent: #E040FB;
    --success: #00E676;
    --warning: #FFD600;
    --error: #FF5252;
    
    --text-primary: #FFFFFF;
    --text-secondary: #B3ADC5;
    --text-muted: #7A7290;
    
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-active: rgba(0, 229, 255, 0.4);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --shadow-glow: 0 0 25px rgba(156, 39, 176, 0.35);
    --shadow-cyan: 0 0 20px rgba(0, 229, 255, 0.25);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
}

/* App Layout */
.app-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    background: rgba(11, 7, 21, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 100;
    gap: 16px;
}

.header-left, .header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    cursor: pointer;
}

.brand-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 15px rgba(156, 39, 176, 0.4);
}

.brand-title {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #fff;
}

.brand-accent {
    color: var(--secondary);
}

.brand-tag {
    display: block;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-muted);
}

/* Navigation Tabs */
.nav-tabs {
    display: flex;
    gap: 6px;
    background: rgba(255, 255, 255, 0.04);
    padding: 4px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-subtle);
}

.nav-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-tab:hover {
    color: #fff;
}

.nav-tab.active {
    background: linear-gradient(135deg, var(--primary), #7B1FA2);
    color: #fff;
    box-shadow: 0 2px 10px rgba(156, 39, 176, 0.4);
}

/* Search Bar */
.search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    padding: 8px 14px;
    border-radius: var(--radius-full);
    width: 260px;
    transition: all 0.2s ease;
}

.search-bar:focus-within {
    border-color: var(--secondary);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.2);
    width: 320px;
}

.search-bar svg {
    color: var(--text-muted);
}

.search-bar input {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 13px;
    width: 100%;
    outline: none;
}

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

.clear-search-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
}

/* User Actions */
.user-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-plans {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(224, 64, 251, 0.15), rgba(0, 229, 255, 0.15));
    border: 1px solid rgba(224, 64, 251, 0.4);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 7px 16px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-plans:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(224, 64, 251, 0.3);
}

.badge-pulse {
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--secondary);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.5; }
}

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

.user-avatar {
    width: 34px;
    height: 34px;
    background: var(--bg-surface-highlight);
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    color: var(--secondary);
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}

.user-status {
    font-size: 10px;
    color: var(--success);
}

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

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

/* Main Content Area */
.main-content {
    flex: 1;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Player Section */
.player-section {
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), var(--shadow-glow);
    position: relative;
}

.player-wrapper {
    position: relative;
    width: 100%;
    height: 480px;
    background: #000;
}

#videoPlayer {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

/* Player Overlay */
.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.75) 0%, transparent 20%, transparent 70%, rgba(0, 0, 0, 0.85) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.player-wrapper:hover .player-overlay,
.player-overlay.force-show {
    opacity: 1;
}

.player-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.badge-live {
    display: inline-block;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    background: var(--error);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.now-playing-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.now-playing-category {
    font-size: 12px;
    color: var(--secondary);
}

.player-header-actions {
    display: flex;
    gap: 10px;
}

.btn-player-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-player-icon:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.player-center-status {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    background: rgba(11, 7, 21, 0.85);
    padding: 16px 28px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--secondary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.player-bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.controls-left, .controls-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-player-control {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.btn-player-control:hover {
    color: var(--secondary);
    transform: scale(1.1);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.volume-slider {
    width: 80px;
    accent-color: var(--secondary);
    cursor: pointer;
}

/* Categories Section */
.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 14px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

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

.categories-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--bg-surface-highlight) transparent;
}

.categories-scroll::-webkit-scrollbar {
    height: 4px;
}

.categories-scroll::-webkit-scrollbar-thumb {
    background: var(--bg-surface-highlight);
    border-radius: var(--radius-full);
}

/* Category Visual Card (Netflix Style) */
.cat-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 150px;
    text-align: left;
}

.cat-card:hover {
    background: var(--bg-surface-highlight);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.cat-card.active {
    background: var(--bg-surface-elevated);
    border-color: var(--secondary);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
}

.cat-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.cat-all { background: linear-gradient(135deg, #7C4DFF, #651FFF); color: #fff; }
.cat-favs { background: linear-gradient(135deg, #FFB300, #FF6F00); color: #fff; }
.cat-recents { background: linear-gradient(135deg, #00B0FF, #0091EA); color: #fff; }
.cat-sports { background: linear-gradient(135deg, #00E676, #00C853); color: #fff; }
.cat-movies { background: linear-gradient(135deg, #651FFF, #3D5AFE); color: #fff; }
.cat-news { background: linear-gradient(135deg, #2979FF, #1565C0); color: #fff; }
.cat-kids { background: linear-gradient(135deg, #FF9100, #FF3D00); color: #fff; }
.cat-adult { background: linear-gradient(135deg, #D50000, #880E4F); color: #fff; }
.cat-default { background: linear-gradient(135deg, #536DFE, #304FFE); color: #fff; }

.cat-info {
    display: flex;
    flex-direction: column;
}

.cat-title {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}

.cat-sub {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
}

/* Media Grid */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 16px;
}

/* Channel / Media Card */
.channel-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.channel-card:hover {
    transform: translateY(-4px);
    background: var(--bg-surface-elevated);
    border-color: rgba(156, 39, 176, 0.5);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), var(--shadow-glow);
}

.channel-card.playing {
    border-color: var(--secondary);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
}

.channel-thumb {
    height: 120px;
    background: #05030A;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 12px;
}

.channel-logo {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.channel-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-surface-highlight);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.badge-res {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    border: 1px solid var(--border-subtle);
    color: var(--secondary);
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
}

.fav-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    color: var(--warning);
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    padding: 4px;
    display: flex;
}

.channel-details {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.channel-name {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

/* ==========================================================================
   Cinema Netflix-Style Login Screen
   ========================================================================== */
.login-screen-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #0B0715;
    overflow-y: auto;
}

.login-backdrop {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(156, 39, 176, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 229, 255, 0.18) 0%, transparent 50%),
        linear-gradient(180deg, rgba(11, 7, 21, 0.7) 0%, #0B0715 100%);
    pointer-events: none;
}

.login-card {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 440px;
    background: rgba(20, 13, 36, 0.85);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 40px 36px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(156, 39, 176, 0.2);
    animation: loginFadeIn 0.4s ease-out;
}

@keyframes loginFadeIn {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.login-header {
    text-align: center;
    margin-bottom: 28px;
}

.login-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.brand-icon-large {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 6px 20px rgba(156, 39, 176, 0.5);
}

.brand-title-large {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 0.5px;
    color: #fff;
}

.login-heading {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
}

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

.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

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

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

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(11, 7, 21, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 0 14px;
    transition: all 0.2s ease;
}

.input-wrapper:focus-within {
    border-color: var(--secondary);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.25);
    background: #0B0715;
}

.input-wrapper svg {
    color: var(--text-muted);
    flex-shrink: 0;
}

.input-wrapper input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    padding: 14px 10px;
    font-size: 14px;
    color: #fff;
}

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

.toggle-password-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    display: flex;
}

.toggle-password-btn:hover {
    color: #fff;
}

/* Servidor Avançado Toggle */
.advanced-server-toggle {
    text-align: right;
}

.btn-text-toggle {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 11px;
    cursor: pointer;
    transition: color 0.2s;
}

.btn-text-toggle:hover {
    color: var(--secondary);
}

.advanced-server-block {
    margin-top: 8px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.advanced-server-block label {
    font-size: 11px;
    color: var(--text-muted);
}

.advanced-server-block input {
    background: rgba(11, 7, 21, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 12px;
    color: #fff;
    font-size: 12px;
    outline: none;
}

/* Checkbox Lembrar-me */
.remember-me-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    font-size: 12px;
    color: var(--text-secondary);
    user-select: none;
    gap: 8px;
}

.checkbox-container input {
    opacity: 0;
    position: absolute;
    cursor: pointer;
}

.checkmark {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-block;
    position: relative;
    transition: all 0.2s ease;
}

.checkbox-container input:checked ~ .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-container input:checked ~ .checkmark:after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.btn-login-submit {
    width: 100%;
    padding: 15px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.3px;
    border-radius: 12px;
    margin-top: 4px;
}

.login-footer-actions {
    text-align: center;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

.link-highlight {
    background: transparent;
    border: none;
    color: var(--secondary);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
}

.link-highlight:hover {
    text-decoration: underline;
}

.link-subtle {
    color: var(--text-muted);
    font-size: 11px;
    text-decoration: none;
}

.link-subtle:hover {
    color: var(--text-secondary);
}

/* Modals */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 440px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), var(--shadow-glow);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.modal-brand h2 {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
}

.modal-sub {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-top: 6px;
}

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

.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 {
    background: var(--bg-main);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
}

.form-group input:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

.login-error {
    background: rgba(255, 82, 82, 0.15);
    border: 1px solid var(--error);
    color: #ff8a80;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    color: #fff;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(156, 39, 176, 0.4);
}

.btn-primary:hover {
    brightness: 1.1;
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-subtle);
    color: #fff;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.modal-footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
}

.btn-link {
    background: transparent;
    border: none;
    color: var(--primary-light);
    font-size: 12px;
    cursor: pointer;
    text-decoration: none;
}

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

/* Plans Modal */
.plans-modal-card {
    max-width: 480px;
}

.plan-card-item {
    background: var(--bg-surface-elevated);
    border: 1.5px solid var(--secondary);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    box-shadow: 0 8px 30px rgba(0, 229, 255, 0.15);
}

.plan-badge {
    position: absolute;
    top: -10px;
    left: 20px;
    background: linear-gradient(135deg, var(--secondary), #00B0FF);
    color: #000;
    font-size: 10px;
    font-weight: 900;
    padding: 2px 10px;
    border-radius: var(--radius-full);
    letter-spacing: 0.5px;
}

.plan-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.plan-title-row h3 {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
}

.plan-price .curr {
    font-size: 14px;
    color: var(--secondary);
    font-weight: 700;
}

.plan-price .val {
    font-size: 28px;
    font-weight: 900;
    color: #fff;
}

.plan-price .period {
    font-size: 12px;
    color: var(--text-muted);
}

.plan-screens {
    font-size: 12px;
    color: var(--secondary);
    font-weight: 600;
}

.plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.plan-features li {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.plan-features svg {
    color: var(--success);
    flex-shrink: 0;
}

.btn-whatsapp {
    background: #25D366;
    color: #fff;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.2s ease;
}

.btn-whatsapp:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* PIN Modal */
.pin-card {
    max-width: 360px;
    text-align: center;
    align-items: center;
}

.pin-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 82, 82, 0.15);
    color: var(--error);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pin-input {
    letter-spacing: 16px;
    font-size: 24px;
    text-align: center;
    background: var(--bg-main);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 12px;
    color: #fff;
    width: 180px;
    outline: none;
}

.pin-input:focus {
    border-color: var(--secondary);
}

.pin-error {
    font-size: 12px;
    color: var(--error);
    font-weight: 600;
}

.pin-actions {
    display: flex;
    gap: 12px;
    width: 100%;
}

.pin-actions button {
    flex: 1;
}

/* Empty State */
.empty-state {
    padding: 60px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
}

.empty-icon {
    color: var(--text-muted);
    opacity: 0.5;
}

.empty-state h4 {
    font-size: 16px;
    color: #fff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .app-header {
        flex-direction: column;
        align-items: stretch;
        padding: 12px 16px;
    }

    .header-left, .header-right {
        justify-content: space-between;
    }

    .search-bar {
        width: 100%;
    }

    .search-bar:focus-within {
        width: 100%;
    }

    .player-wrapper {
        height: 240px;
    }

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

    .channel-thumb {
        height: 90px;
    }
}
