/* -------------------------------------------------------------
 * GOGOISHARE - PREMIUM STYLE SYSTEM
 * Modern, Glassmorphic Dark Space Layout with Violet & Emerald Accents
 * ------------------------------------------------------------- */

:root {
    --bg-dark: #0a0b10;
    --card-bg: rgba(18, 20, 29, 0.65);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    /* Branding color tokens */
    --primary: #8b5cf6;         /* Vivid Violet */
    --primary-hover: #7c3aed;
    --secondary: #10b981;       /* Emerald Mint */
    --secondary-hover: #059669;
    --accent: #f43f5e;          /* Rose Pink */
    --warning: #f59e0b;
    
    --shadow-premium: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    position: relative;
}

/* Background animated nodes canvas */
#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

#app-container {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 2;
}

/* Glass Card Definition */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(20px) saturate(110%);
    -webkit-backdrop-filter: blur(20px) saturate(110%);
    border-radius: 20px;
    box-shadow: var(--shadow-premium);
    padding: 24px;
    transition: all 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(139, 92, 246, 0.2);
    box-shadow: 0 20px 45px -8px rgba(139, 92, 246, 0.12);
}

/* Buttons */
.btn {
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #6366f1);
    color: white;
    box-shadow: 0 6px 15px -4px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -3px rgba(139, 92, 246, 0.6);
    filter: brightness(1.08);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.btn-success {
    background: var(--secondary);
    color: white;
    box-shadow: 0 6px 15px -4px rgba(16, 185, 129, 0.4);
}

.btn-success:hover {
    background: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -3px rgba(16, 185, 129, 0.6);
}

.btn-danger {
    background: var(--accent);
    color: white;
}

.btn-danger:hover {
    background: #e11d48;
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: 8px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.05rem;
    border-radius: 14px;
}

/* Form Controls */
.form-group {
    margin-bottom: 20px;
    width: 100%;
}

label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.input-with-icon {
    position: relative;
    width: 100%;
}

.input-with-icon i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

input[type="text"],
input[type="email"] {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 12px 16px 12px 42px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

/* Badge Styles */
.badge {
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--secondary);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-pulse {
    background: rgba(244, 63, 94, 0.15);
    color: var(--accent);
    border: 1px solid rgba(244, 63, 94, 0.3);
    animation: alertPulse 2s infinite;
}

/* View transitions */
.view {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.98);
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.view.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
    z-index: 10;
}

/* -------------------------------------------------------------
 * 1. LOGIN SCREEN STYLES
 * ------------------------------------------------------------- */
#login-screen {
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at top right, rgba(139, 92, 246, 0.12), transparent 50%),
                radial-gradient(circle at bottom left, rgba(16, 185, 129, 0.08), transparent 50%),
                var(--bg-dark);
}

.login-card {
    width: 100%;
    max-width: 450px;
    text-align: center;
}

.logo-area {
    margin-bottom: 24px;
}

.logo-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary), #6366f1);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
    font-size: 2.1rem;
    color: white;
    box-shadow: 0 10px 25px -4px rgba(139, 92, 246, 0.4);
}

h1 {
    font-family: var(--font-heading);
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #fff, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 4px;
}

.auth-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 24px;
}

.tab-btn {
    flex: 1;
    padding: 10px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn.active {
    background: rgba(255, 255, 255, 0.06);
    color: white;
}

.tab-content {
    display: none;
    text-align: left;
}

.tab-content.active {
    display: block;
    animation: tabFadeIn 0.3s ease;
}

.tab-desc {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-bottom: 20px;
    text-align: center;
}

.client-id-config {
    margin-bottom: 20px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.help-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.help-text code {
    background: rgba(255, 255, 255, 0.06);
    padding: 1px 4px;
    border-radius: 4px;
    color: var(--primary);
}

#btn-save-client-id {
    margin-top: 10px;
    width: 100%;
}

.divider {
    display: flex;
    align-items: center;
    color: var(--text-muted);
    margin: 20px 0;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.divider span {
    padding: 0 10px;
}

.google-btn-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.error-msg {
    color: var(--accent);
    font-size: 0.82rem;
    margin-top: 10px;
}

/* -------------------------------------------------------------
 * 2. DASHBOARD SCREEN STYLES
 * ------------------------------------------------------------- */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
    border-bottom: 1px solid var(--card-border);
    background: rgba(10, 11, 16, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 10;
}

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

.brand i {
    font-size: 1.7rem;
    color: var(--primary);
}

.brand h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    padding: 4px 4px 4px 12px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-pic {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    object-fit: cover;
}

.profile-pic.large {
    width: 80px;
    height: 80px;
    border-width: 3px;
    margin-bottom: 12px;
}

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

.user-name {
    font-size: 0.88rem;
    font-weight: 600;
}

.user-email {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.log-out-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(244, 63, 94, 0.1);
    color: var(--accent);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.log-out-btn:hover {
    background: var(--accent);
    color: white;
}

/* Dashboard Grid */
.dashboard-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 24px;
    padding: 24px 32px;
    max-width: 1500px;
    width: 100%;
    margin: 0 auto;
    overflow-y: auto;
}

.dashboard-panel {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.side-panel {
    min-width: 300px;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 16px;
}

/* Address copy panel */
.address-card h3,
.connection-card h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.address-copy-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 16px;
}

.my-email-val {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    word-break: break-all;
    padding-right: 6px;
}

.btn-copy {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1rem;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.2s;
}

.btn-copy:hover {
    background: rgba(255, 255, 255, 0.06);
    color: white;
}

/* Status Indicator */
.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.green { background-color: var(--secondary); }
.status-dot.orange { background-color: var(--warning); }
.status-dot.red { background-color: var(--accent); }

.pulse {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: statusPulse 2s infinite;
}

/* Connected peer info panel */
.connected-peer-badge {
    display: none;
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 14px;
    padding: 16px;
    margin-top: 16px;
    animation: fadeIn 0.3s ease;
}

.connected-peer-badge.active {
    display: block;
}

.peer-badge-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.btn-disconnect {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-disconnect:hover {
    color: var(--accent);
}

.peer-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.peer-profile img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--secondary);
    object-fit: cover;
}

.peer-meta h4 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: white;
}

.peer-meta span {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Right Panel Tabs Container */
.panel-tabs-card {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 500px;
    padding: 0;
    overflow: hidden;
}

.panel-tabs-header {
    display: flex;
    background: rgba(10, 11, 16, 0.3);
    border-bottom: 1px solid var(--card-border);
}

.tab-header-btn {
    flex: 1;
    padding: 16px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.tab-header-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.02);
}

.tab-header-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: rgba(139, 92, 246, 0.04);
}

/* Panel Lock Overlay */
.panel-locked-overlay {
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    height: calc(100% - 50px);
    background: rgba(15, 17, 26, 0.92);
    backdrop-filter: blur(8px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    transition: opacity 0.3s ease;
}

.panel-locked-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.locked-content i {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.locked-content h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.locked-content p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    max-width: 320px;
    margin: 0 auto;
    line-height: 1.4;
}

/* Tabs Content Area */
.work-tab-content {
    flex: 1;
    display: none;
    padding: 24px;
    overflow-y: auto;
}

.work-tab-content.active {
    display: block;
    animation: tabFadeIn 0.4s ease;
}

.tab-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    height: 100%;
}

/* Drag Drop Uploader */
.upload-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.drag-drop-zone {
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.01);
    transition: all 0.3s ease;
}

.drag-drop-zone:hover,
.drag-drop-zone.dragover {
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.03);
}

.drag-drop-zone i {
    font-size: 2.5rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    transition: color 0.3s, transform 0.3s;
}

.drag-drop-zone:hover i {
    color: var(--primary);
    transform: translateY(-4px);
}

.drag-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
}

.drag-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Selected File Card */
.selected-file-card {
    display: none;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 16px;
}

.selected-file-card.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.file-details {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    position: relative;
}

.file-details i {
    font-size: 1.8rem;
    color: var(--primary);
}

.file-info-text {
    flex: 1;
    overflow: hidden;
}

.file-info-text h4 {
    font-size: 0.88rem;
    color: white;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.file-info-text span {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.btn-clear-file {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
}

.btn-clear-file:hover {
    color: var(--accent);
}

/* Progress card */
.transfer-progress-card {
    display: none;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 16px;
}

.transfer-progress-card.active {
    display: block;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.progress-title i {
    color: var(--primary);
    margin-right: 4px;
}

.progress-percentage {
    font-family: monospace;
    color: white;
}

.progress-track {
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 10px;
    transition: width 0.1s linear;
}

.progress-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* Received Section */
.received-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    padding-left: 24px;
}

.received-section h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
}

.received-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 280px;
    overflow-y: auto;
}

.empty-list-state {
    text-align: center;
    padding: 30px 10px;
    color: var(--text-muted);
}

.empty-list-state i {
    font-size: 2rem;
    margin-bottom: 8px;
}

.empty-list-state p {
    font-size: 0.8rem;
}

/* Received File Item Card */
.received-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 10px 14px;
}

.received-item i {
    font-size: 1.4rem;
    color: var(--secondary);
}

.received-item-meta {
    flex: 1;
    overflow: hidden;
}

.received-item-meta h5 {
    font-size: 0.82rem;
    color: white;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.received-item-meta span {
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.received-item-actions {
    display: flex;
    gap: 6px;
}

.btn-act {
    background: rgba(255, 255, 255, 0.06);
    border: none;
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: background 0.2s;
}

.btn-act:hover {
    background: rgba(255, 255, 255, 0.12);
}

.btn-act.btn-preview-trigger {
    background: rgba(139, 92, 246, 0.12);
    color: #c084fc;
}

.btn-act.btn-preview-trigger:hover {
    background: rgba(139, 92, 246, 0.25);
}

/* Media Previewer Box */
.media-preview-container {
    display: none;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
    margin-top: 16px;
    animation: fadeIn 0.4s ease;
}

.media-preview-container.active {
    display: block;
}

.preview-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.preview-box-header h4 {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-close-preview {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
}

.preview-content {
    aspect-ratio: 16/9;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

#received-video-player,
#received-image-preview {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: none;
}

#received-video-player.active,
#received-image-preview.active {
    display: block;
}

/* -------------------------------------------------------------
 * LIVE STREAM CINEMA VIEW
 * ------------------------------------------------------------- */
.cinema-layout {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.stream-setup {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    padding: 20px;
}

.cinema-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.5;
}

.video-file-picker {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.selected-movie-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    word-break: break-all;
    max-width: 300px;
}

/* Cinema Screens (Broadcast + Receiver) */
.cinema-player-box {
    display: none;
    width: 100%;
    max-width: 750px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    animation: fadeIn 0.4s ease;
}

.cinema-player-box.active {
    display: block;
}

.theater-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.theater-header h4 {
    font-size: 0.88rem;
    color: white;
}

.theater-screen {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
}

.theater-screen video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.theater-sync-status {
    padding: 10px 18px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* Broadcast receiver Alert */
.cinema-receiver-alert {
    display: none;
    max-width: 420px;
    width: 100%;
    margin: 40px auto;
    text-align: center;
    background: rgba(16, 185, 129, 0.04);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.08);
    animation: scaleIn 0.3s ease;
}

.cinema-receiver-alert.active {
    display: block;
}

.alert-glow-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin: 0 auto 16px auto;
    animation: statusPulse 1.8s infinite;
}

.cinema-receiver-alert h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    margin-bottom: 6px;
}

.cinema-receiver-alert p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.4;
}

/* -------------------------------------------------------------
 * TOAST NOTIFICATIONS & MODALS
 * ------------------------------------------------------------- */
.notification-toast {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: rgba(17, 21, 31, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: white;
    padding: 14px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 3000;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateY(120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.notification-toast.active {
    transform: translateY(0);
    opacity: 1;
}

.notification-toast.info #toast-icon { color: var(--primary); }
.notification-toast.error #toast-icon { color: var(--accent); }
.notification-toast.success #toast-icon { color: var(--secondary); }

/* Modal setup */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 6, 9, 0.85);
    backdrop-filter: blur(12px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-backdrop.active {
    display: flex;
    opacity: 1;
}

.incoming-call-card {
    width: 100%;
    max-width: 380px;
    text-align: center;
    padding: 30px 24px;
    border-radius: 24px;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-backdrop.active .incoming-call-card {
    transform: scale(1);
}

.incoming-ring {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.15);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 16px auto;
    animation: ringBounce 0.5s infinite alternate;
}

.caller-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
}

.caller-profile h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.caller-profile p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.modal-actions .btn {
    flex: 1;
    padding: 12px;
    border-radius: 12px;
}

/* -------------------------------------------------------------
 * ANIMATION DEFINITIONS
 * ------------------------------------------------------------- */
@keyframes tabFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes statusPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
    70% { transform: scale(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); }
}

@keyframes alertPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.6); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(244, 63, 94, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(244, 63, 94, 0); }
}

@keyframes ringBounce {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-6px) scale(1.05); box-shadow: 0 0 16px rgba(139, 92, 246, 0.25); }
}

/* Responsive grid modifications */
@media(max-width: 950px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        padding: 16px;
    }
    .tab-layout {
        grid-template-columns: 1fr;
    }
    .received-section {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        padding-left: 0;
        padding-top: 24px;
    }
}
