/* ========================================== */
/* GENERAL THEME & SYSTEM DESIGN */
/* ========================================== */
:root {
    --bg-dark: #07080a;
    --bg-surface: #0f1115;
    --bg-card: rgba(18, 20, 26, 0.65);
    
    --color-primary: #6366f1;
    --color-purple: #8b5cf6;
    --color-magenta: #d946ef;
    
    --color-text-main: #f3f4f6;
    --color-text-sub: #9ca3af;
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-glow: rgba(99, 102, 241, 0.25);
    
    --color-green: #10b981;
    --color-blue: #3b82f6;
    --color-pink: #ec4899;
    --color-yellow: #f59e0b;
    --color-red: #ef4444;
    
    --grad-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-purple) 50%, var(--color-magenta) 100%);
    --grad-blue: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    --grad-pink: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
    --grad-green: linear-gradient(135deg, #10b981 0%, #047857 100%);
    --grad-dark: linear-gradient(180deg, #111318 0%, #08090d 100%);
    
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --shadow-main: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

body {
    background-color: var(--bg-dark);
    color: var(--color-text-main);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}
body.dashboard-active {
    overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ========================================== */
/* REUSABLE UTILITIES & GLASSMORPHISM */
/* ========================================== */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: var(--shadow-main);
    transition: var(--transition);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.hover-glow:hover {
    box-shadow: var(--shadow-glow);
    border-color: var(--color-border-glow);
}

.gradient-text {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-bg {
    background: var(--grad-primary);
}

.underline-glow {
    position: relative;
}
.underline-glow::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--grad-primary);
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.5);
    border-radius: 2px;
}

/* Glow Orbs */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(130px);
    z-index: 0;
    opacity: 0.15;
    pointer-events: none;
    animation: orb-float 15s infinite alternate ease-in-out;
}
.orb-1 { width: 400px; height: 400px; background: var(--color-primary); top: -100px; right: -50px; }
.orb-2 { width: 350px; height: 350px; background: var(--color-magenta); top: 300px; left: -100px; }
.orb-3 { width: 450px; height: 450px; background: var(--color-purple); bottom: 100px; right: -150px; }
.orb-4 { width: 300px; height: 300px; background: var(--color-primary); top: 10%; left: 30%; }

@keyframes orb-float {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(30px) scale(1.1); }
}

/* Badges */
.badge-pro {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 6px;
    background: var(--grad-primary);
    color: white;
    margin-left: 8px;
    vertical-align: middle;
    letter-spacing: 0.05em;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
}

.stream-badge-green {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 20px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--color-green);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
    text-decoration: none;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
    border-radius: 12px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: 8px;
}

.btn-primary {
    background: var(--grad-primary);
    color: white;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--color-border);
    color: var(--color-text-main);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border-color: var(--color-primary);
    color: var(--color-text-main);
}
.btn-outline:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

.btn-text {
    background: transparent;
    color: var(--color-text-sub);
}
.btn-text:hover {
    color: var(--color-text-main);
}

.btn-full {
    width: 100%;
}

.btn-glow {
    position: relative;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
}
.btn-glow:hover {
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.6);
}

/* ========================================== */
/* VIEW SYSTEM */
/* ========================================== */
.view {
    display: none;
}
.view.active {
    display: block;
}

/* ========================================== */
/* LANDING PAGE */
/* ========================================== */
.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(7, 8, 10, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
}
.logo-icon {
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    gap: 32px;
}
.nav-links a {
    color: var(--color-text-sub);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}
.nav-links a:hover {
    color: var(--color-text-main);
}

.hero-section {
    position: relative;
    padding: 140px 24px 80px 24px;
    max-width: 1200px;
    margin: 0 auto;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
    z-index: 1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-badge {
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-purple);
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 900;
}

.hero-subtitle {
    color: var(--color-text-sub);
    font-size: 1.1rem;
    line-height: 1.6;
}

.hero-actions-group {
    display: flex;
    gap: 16px;
    margin-top: 10px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-top: 20px;
}
.stat-item {
    display: flex;
    flex-direction: column;
}
.stat-val {
    font-size: 1.8rem;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--color-text-main);
}
.stat-lbl {
    color: var(--color-text-sub);
    font-size: 0.8rem;
}
.hero-stats .divider {
    height: 40px;
    width: 1px;
    background: var(--color-border);
}

.hero-visual {
    position: relative;
}

/* Mockup CSS */
.mockup-container {
    width: 100%;
    overflow: hidden;
    border-color: rgba(255, 255, 255, 0.1);
}
.mockup-header {
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--color-border);
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.dot.red { background: var(--color-red); }
.dot.yellow { background: var(--color-yellow); }
.dot.green { background: var(--color-green); }
.mockup-url {
    margin-left: 20px;
    font-size: 0.75rem;
    color: var(--color-text-sub);
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 16px;
    border-radius: 10px;
    font-family: monospace;
}
.mockup-body {
    padding: 20px;
}

/* Showcase dashboard components inside hero */
.dashboard-preview {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.preview-header h3 { font-size: 1rem; }
.preview-plan {
    font-size: 0.75rem;
    background: rgba(99, 102, 241, 0.15);
    color: var(--color-primary);
    padding: 2px 8px;
    border-radius: 6px;
}
.preview-progress {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--color-text-sub);
}
.progress-bar-container {
    height: 6px;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    background: var(--grad-primary);
    border-radius: 4px;
}
.upload-dropzone-preview {
    border: 1px dashed var(--color-border);
    border-radius: 12px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: rgba(0,0,0,0.1);
}
.upload-dropzone-preview h4 { font-size: 0.9rem; }
.upload-dropzone-preview p { font-size: 0.75rem; color: var(--color-text-sub); }
.cloud-icon { font-size: 2rem; color: var(--color-primary); }

.preview-file-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.video-icon { font-size: 1.4rem; color: var(--color-pink); }
.preview-file-item .file-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.preview-file-item .file-name {
    font-size: 0.8rem;
    font-weight: 600;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.preview-file-item .file-size {
    font-size: 0.7rem;
    color: var(--color-text-sub);
}

/* Features grid styling */
.features-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
}
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.section-header h2 {
    font-size: 2.2rem;
}
.section-header p {
    color: var(--color-text-sub);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}
.feature-card {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
}
.feature-icon.bg-purple { background: var(--grad-primary); }
.feature-icon.bg-blue { background: var(--grad-blue); }
.feature-icon.bg-pink { background: var(--grad-pink); }
.feature-icon.bg-green { background: var(--grad-green); }

.feature-card h3 { font-size: 1.2rem; }
.feature-card p { color: var(--color-text-sub); font-size: 0.9rem; line-height: 1.6; }

/* Pricing elements */
.pricing-section {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    align-items: stretch;
    z-index: 1;
    position: relative;
}
.pricing-card {
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: relative;
}
.pricing-card.featured {
    border-color: var(--color-primary);
    box-shadow: 0 15px 35px -5px rgba(99, 102, 241, 0.25);
    background: linear-gradient(180deg, rgba(20, 22, 32, 0.8) 0%, rgba(10, 11, 15, 0.8) 100%);
}
.popular-tag {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--grad-primary);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.05em;
    color: white;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
}
.plan-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.plan-header h3 { font-size: 1.4rem; }
.plan-desc { color: var(--color-text-sub); font-size: 0.85rem; }
.price {
    display: flex;
    align-items: baseline;
    margin-top: 10px;
}
.price .currency { font-size: 1.5rem; font-weight: 700; color: var(--color-text-sub); }
.price .amount { font-size: 3rem; font-weight: 900; line-height: 1; }
.price .period { font-size: 0.9rem; color: var(--color-text-sub); margin-left: 4px; }

.plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-size: 0.9rem;
    flex: 1;
}
.plan-features li {
    display: flex;
    align-items: center;
    gap: 10px;
}
.text-green { color: var(--color-green); }
.text-red { color: var(--color-red); }

.landing-footer {
    border-top: 1px solid var(--color-border);
    padding: 40px 24px;
    text-align: center;
    color: var(--color-text-sub);
    font-size: 0.85rem;
}

/* ========================================== */
/* AUTHENTICATION PAGE */
/* ========================================== */
#auth-page {
    min-height: 100vh;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
}
#auth-page.active {
    display: flex;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    z-index: 1;
}

.auth-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.auth-header h2 { font-size: 1.6rem; }
.auth-header p { color: var(--color-text-sub); font-size: 0.85rem; }

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}
.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-main);
}
.input-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.input-icon {
    position: absolute;
    left: 14px;
    color: var(--color-text-sub);
    font-size: 0.9rem;
}
.input-icon-wrapper input {
    width: 100%;
    padding: 12px 14px 12px 40px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    color: var(--color-text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
}
.input-icon-wrapper input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.25);
    background: rgba(0, 0, 0, 0.6);
}

.demo-accounts-notice {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 10px;
    padding: 12px;
    font-size: 0.75rem;
    color: var(--color-yellow);
    line-height: 1.4;
    margin-bottom: 10px;
}
.notice-title { font-weight: 700; margin-bottom: 4px; display: block; }
.demo-accounts-notice ul { list-style: none; padding-left: 4px; }

.auth-footer {
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-text-sub);
}
.auth-footer a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-text-sub) !important;
    font-weight: 500 !important;
}
.back-link:hover {
    color: var(--color-text-main) !important;
}

/* ========================================== */
/* DASHBOARD VIEW */
/* ========================================== */
.dashboard-wrapper {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

.dashboard-sidebar {
    background: var(--bg-surface);
    border-right: 1px solid var(--color-border);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    height: 100vh;
    position: sticky;
    top: 0;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.3rem;
}

.user-profile-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-color: rgba(255, 255, 255, 0.05);
}
.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--grad-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.95rem;
}
.profile-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.profile-name {
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}
.profile-tier {
    font-size: 0.7rem;
    color: var(--color-primary);
    font-weight: 600;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--color-text-sub);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 10px;
    transition: var(--transition);
}
.nav-item i {
    font-size: 1rem;
    width: 20px;
}
.nav-item:hover, .nav-item.active {
    color: var(--color-text-main);
    background: rgba(255, 255, 255, 0.04);
}
.nav-item.active {
    background: rgba(99, 102, 241, 0.1);
    color: var(--color-primary);
    border-left: 3px solid var(--color-primary);
    border-radius: 0 10px 10px 0;
    padding-left: 13px;
}

.dashboard-content {
    padding: 40px;
    overflow-y: auto;
    height: 100vh;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 16px;
}
.content-header h2 { font-size: 1.8rem; }

.status-indicator-green {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--color-green);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}
.status-indicator-green .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-green);
}

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

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

/* Overview Summary Cards */
.summary-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.metric-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-text-sub);
    font-size: 0.85rem;
    font-weight: 600;
}
.metric-header i { font-size: 1.1rem; }
.metric-value {
    font-size: 2rem;
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1;
}
.metric-subtitle {
    color: var(--color-text-sub);
    font-size: 0.75rem;
}

/* Dashboard main layouts */
.dashboard-main-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 30px;
}

.uploader-container {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.card-subtitle {
    color: var(--color-text-sub);
    font-size: 0.85rem;
    margin-top: -10px;
    margin-bottom: 10px;
}

.upload-dropzone {
    border: 2px dashed var(--color-border);
    border-radius: 12px;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
}
.upload-dropzone:hover {
    border-color: var(--color-primary);
    background: rgba(99, 102, 241, 0.05);
}
.upload-dropzone h4 { font-size: 1.05rem; }
.upload-dropzone p { font-size: 0.8rem; color: var(--color-text-sub); }
.upload-dropzone .cloud-icon { font-size: 3rem; color: var(--color-primary); }

/* Upload progress */
.upload-progress-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.progress-box-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}
.uploading-file-name { font-weight: 600; }
.uploading-percentage { color: var(--color-primary); font-weight: 700; }
.progress-status { font-size: 0.75rem; color: var(--color-text-sub); text-align: center; }

/* Upload result */
.upload-result-box {
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.result-header {
    display: flex;
    align-items: center;
    gap: 10px;
}
.generated-link-box {
    display: flex;
    gap: 10px;
}
.generated-link-box input {
    flex: 1;
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--color-border);
    color: var(--color-text-main);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-family: monospace;
}
.upload-result-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Storage circle gauge */
.storage-container {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.radial-gauge-wrapper {
    display: flex;
    justify-content: center;
    padding: 10px 0;
}
.radial-gauge-circle {
    width: 140px;
    height: 140px;
    position: relative;
}
.circular-chart {
    width: 100%;
    height: 100%;
}
.circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.04);
    stroke-width: 2.8;
}
.circle {
    fill: none;
    stroke-width: 2.8;
    stroke-linecap: round;
    stroke: var(--color-primary);
    animation: progress 1s ease-out forwards;
}
.percentage-inside {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
}

.storage-metrics-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.storage-metric-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding-bottom: 10px;
}
.storage-metric-row span:last-child {
    font-weight: 600;
}

.upgrade-upsell-box {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(251, 191, 36, 0.02) 100%);
    border: 1px dashed rgba(245, 158, 11, 0.3);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.upsell-icon { font-size: 1.6rem; }
.upgrade-upsell-box h4 { font-size: 0.95rem; color: var(--color-yellow); }
.upgrade-upsell-box p { font-size: 0.75rem; color: var(--color-text-sub); line-height: 1.4; }

/* File manager styling */
.files-list-container {
    padding: 30px;
}
.files-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}
.search-bar {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 400px;
}
.search-bar i {
    position: absolute;
    left: 14px;
    color: var(--color-text-sub);
}
.search-bar input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-border);
    padding: 10px 14px 10px 38px;
    border-radius: 8px;
    color: var(--color-text-main);
    font-size: 0.85rem;
    transition: var(--transition);
}
.search-bar input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}
.files-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
.files-table th, .files-table td {
    padding: 16px;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--color-border);
}
.files-table th {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-text-sub);
    background: rgba(255,255,255,0.01);
}
.files-table tbody tr {
    transition: var(--transition);
}
.files-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.015);
}
.file-name-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.action-buttons {
    display: flex;
    gap: 8px;
}
.btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    background: rgba(255,255,255,0.03);
    color: var(--color-text-main);
    cursor: pointer;
    transition: var(--transition);
}
.btn-icon:hover {
    background: rgba(255,255,255,0.08);
}
.btn-icon.play-btn { color: var(--color-green); border-color: rgba(16, 185, 129, 0.2); }
.btn-icon.delete-btn { color: var(--color-red); border-color: rgba(239, 68, 68, 0.2); }
.btn-icon.play-btn:hover { background: rgba(16, 185, 129, 0.1); }
.btn-icon.delete-btn:hover { background: rgba(239, 68, 68, 0.1); }

/* Analytics performance tab */
.analytics-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}
.chart-container {
    padding: 30px;
}
.chart-wrapper {
    height: 320px;
    position: relative;
    margin-top: 20px;
}
.stat-cards-vertical {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.stat-mini-card {
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 24px;
}
.stat-mini-card h4 { font-size: 0.85rem; color: var(--color-text-sub); margin-bottom: 8px; }
.stat-mini-card .stat-value { font-size: 1.8rem; font-weight: 800; font-family: var(--font-heading); }
.stat-mini-card p { font-size: 0.75rem; color: var(--color-text-sub); margin-top: 4px; }

/* Pricing plans dashboard tab */
.pricing-headline {
    text-align: center;
    max-width: 600px;
    margin: 20px auto 40px auto;
}
.pricing-headline h2 { font-size: 2rem; margin-bottom: 8px; }
.pricing-headline p { color: var(--color-text-sub); }

/* Developer API tab layout */
.api-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.api-key-card {
    padding: 30px;
}
.api-key-box {
    display: flex;
    gap: 12px;
    margin-top: 14px;
    max-width: 600px;
}
.api-key-box input {
    flex: 1;
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--color-border);
    color: var(--color-text-main);
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: monospace;
    letter-spacing: 0.05em;
}

.api-docs-card {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.api-endpoint-box {
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.endpoint-header {
    display: flex;
    align-items: center;
    gap: 12px;
}
.badge-post {
    background: var(--color-primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 6px;
}
.badge-get {
    background: var(--color-green);
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 6px;
}
.endpoint-url {
    font-family: monospace;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-main);
}
.endpoint-desc { font-size: 0.85rem; color: var(--color-text-sub); }
.code-block {
    background: rgba(0,0,0,0.5);
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    border: 1px solid rgba(255,255,255,0.03);
}
.code-block code {
    font-family: monospace;
    font-size: 0.8rem;
    color: #e5e7eb;
    line-height: 1.5;
}

/* ========================================== */
/* MODALS & PLYRS */
/* ========================================== */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 20px;
    animation: modal-bg-in 0.3s ease;
}

.modal-container {
    width: 100%;
    max-width: 760px;
    display: flex;
    flex-direction: column;
    animation: modal-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    border-radius: 16px;
    overflow: hidden;
}

@keyframes modal-bg-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-in { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.modal-header {
    padding: 14px 20px;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.modal-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 44px);
    margin: 0;
}
.btn-close {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-sub);
    font-size: 1rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0; /* Never allow close button to shrink or warp */
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ff4d4d;
    transform: rotate(90deg);
}

.modal-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 80vh;
    overflow-y: auto;
}

.video-wrapper-player {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: black;
    box-shadow: 0 5px 20px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.05);
}
.video-wrapper-player video {
    width: 100%;
    display: block;
    aspect-ratio: 16/9;
}

.player-links-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.link-row-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.link-row-group label { font-size: 0.75rem; font-weight: 700; color: var(--color-text-sub); }
.input-copy-combo {
    display: flex;
    gap: 8px;
}
.input-copy-combo input {
    flex: 1;
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--color-border);
    color: var(--color-text-sub);
    font-size: 0.8rem;
    font-family: monospace;
    padding: 8px 12px;
    border-radius: 6px;
}

.streaming-diagnostics {
    border-top: 1px solid var(--color-border);
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.diag-header { font-size: 0.75rem; font-weight: 800; color: var(--color-primary); letter-spacing: 0.05em; display: flex; align-items: center; gap: 6px; }
.diag-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.diag-item {
    display: flex;
    flex-direction: column;
    font-size: 0.75rem;
}
.diag-item span { color: var(--color-text-sub); }
.diag-item strong { color: var(--color-text-main); font-weight: 600; margin-top: 2px; }

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--bg-surface);
    border: 1px solid var(--color-primary);
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 300;
    animation: toast-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes toast-in { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ========================================== */
/* RESPONSIVE BREAKPOINTS */
/* ========================================== */
@media (max-width: 968px) {
    .dashboard-wrapper {
        grid-template-columns: 1fr;
    }
    .dashboard-sidebar {
        display: none; /* simple toggle or responsive overlay for demo */
    }
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    .hero-content h1 { font-size: 2.8rem; }
    .hero-badge, .hero-actions-group { align-self: center; }
    .hero-stats { justify-content: center; }
    .dashboard-main-grid, .analytics-grid {
        grid-template-columns: 1fr;
    }
}

/* Highly Responsive Mobile Modal Optimizations */
@media (max-width: 580px) {
    .modal-backdrop {
        padding: 12px;
    }
    .modal-container {
        max-width: 100% !important;
        border-radius: 12px;
    }
    .modal-header {
        padding: 12px 16px;
    }
    .modal-header h3 {
        font-size: 1.05rem;
    }
    .modal-body {
        padding: 16px;
        gap: 12px;
    }
    .streaming-diagnostics {
        display: none !important; /* Hide diagnostics to prevent vertical overflow and scrolling on mobile phones */
    }
}

/* ========================================== */
/* PREMIUM APP STARTUP SPLASH SCREEN */
/* ========================================== */
.splash-screen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 1;
    transition: opacity 0.5s ease, visibility 0.5s;
}
.splash-screen-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
}
.splash-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.splash-logo-container {
    position: relative;
    width: 80px;
    height: 80px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}
.splash-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--color-primary);
    filter: blur(25px);
    opacity: 0.3;
    border-radius: 24px;
    animation: pulse-glow 2s infinite ease-in-out;
}
.splash-logo-icon {
    font-size: 2.5rem;
    color: var(--color-primary);
    position: relative;
    z-index: 1;
    animation: float-logo 3s infinite ease-in-out;
}
.splash-title {
    font-size: 2rem;
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0;
}
.splash-subtitle {
    color: var(--color-text-sub);
    font-size: 0.9rem;
    margin: 0;
}
.splash-loader-bar {
    width: 160px;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 8px;
}
.splash-loader-fill {
    height: 100%;
    width: 30%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-pink));
    border-radius: 2px;
    animation: loader-slide 1.5s infinite ease-in-out;
}
@keyframes pulse-glow {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}
@keyframes float-logo {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
@keyframes loader-slide {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
    100% { transform: translateX(100%); }
}
