:root {
    --bg: #050505;
    --panel: rgba(255,255,255,.06);
    --accent: #ff2d2d;
    --text: #f5f5f5;
    --muted: rgba(255,255,255,.65);
    --border: rgba(255,255,255,.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: linear-gradient(to bottom,#050505,#0d1117);
    color: var(--text);
    font-family: Inter,Arial,sans-serif;
    overflow-x: hidden;
}

/* NAVBAR */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 40px;
    background: rgba(5,5,5,.72);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
}

.logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 2px;
}

nav {
    display: flex;
    align-items: center;
}

    nav a {
        color: white;
        text-decoration: none;
        margin-left: 24px;
        font-weight: 600;
        transition: .2s ease;
    }

        nav a:hover {
            color: var(--accent);
        }

/* HERO */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 80px;
    background: linear-gradient(rgba(0,0,0,.72),rgba(0,0,0,.85)), url('https://images.unsplash.com/photo-1436491865332-7a61a109cc05?q=80&w=1800');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

    .hero::after {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at top right, rgba(255,45,45,.18), transparent 35%);
        pointer-events: none;
    }

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: var(--accent);
    border-radius: 999px;
    font-weight: 700;
    margin-bottom: 24px;
    box-shadow: 0 0 20px rgba(255,45,45,.4);
}

    .live-badge::before {
        content: '';
        width: 10px;
        height: 10px;
        background: white;
        border-radius: 50%;
    }

.hero h1 {
    font-size: 92px;
    line-height: .95;
    margin: 0 0 28px;
    font-weight: 900;
    letter-spacing: -3px;
}

.hero p {
    font-size: 22px;
    line-height: 1.7;
    color: var(--muted);
    max-width: 640px;
}

.cta-row {
    display: flex;
    gap: 20px;
    margin-top: 42px;
    flex-wrap: wrap;
}

.primary-btn,
.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 30px;
    border-radius: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: .25s ease;
}

.primary-btn {
    background: var(--accent);
    color: white;
    box-shadow: 0 10px 30px rgba(255,45,45,.28);
}

    .primary-btn:hover {
        transform: translateY(-3px);
    }

.secondary-btn {
    background: rgba(255,255,255,.06);
    color: white;
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

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

/* GENERIC SECTIONS */

.identity-page {
    min-height: 100vh;
    padding: 140px 20px 60px 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    box-sizing: border-box;
}

/*.section {
    padding: 5px 90px 80px;
}*/

.section-title {
    font-size: 48px;
    margin-bottom: 36px;
    letter-spacing: -1px;
}

/* STREAM GRID */

.stream-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(320px,1fr));
    gap: 28px;
}

.stream-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 26px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    transition: .25s ease;
}

    .stream-card:hover {
        transform: translateY(-8px);
        border-color: rgba(255,255,255,.16);
    }

.stream-thumb {
    height: 240px;
    background-size: cover;
    background-position: center;
    position: relative;
}

    .stream-thumb::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(0,0,0,.75), transparent 45%);
    }

.stream-info {
    padding: 24px;
}

    .stream-info h3 {
        margin: 0 0 12px;
        font-size: 24px;
    }

    .stream-info p {
        margin: 0;
        color: var(--muted);
        line-height: 1.6;
    }

.live-dot {
    width: 10px;
    height: 10px;
    background: #00ff88;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    box-shadow: 0 0 10px #00ff88;
}

.stream-meta {
    margin-top: 16px;
    font-size: 14px;
    opacity: .75;
}

/* CAMERA GRID */

.camera-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 24px;
    padding: 120px 40px 40px;
}

.camera-panel {
    background: var(--panel);
    border: 1px solid var(--border);
    padding: 22px;
    border-radius: 28px;
    backdrop-filter: blur(18px);
}

.camera-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

    .camera-header h2 {
        margin: 0;
        font-size: 24px;
    }

    .camera-header p {
        margin: 6px 0 0;
        opacity: .7;
    }

.online-badge {
    background: #00d26a;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #001b0d;
}

.camera-video {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 18px;
    overflow: hidden;
    background: #000;
}

.camera-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 18px;
    font-size: 14px;
    opacity: .75;
}

/* ANALYTICS */

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(240px,1fr));
    gap: 24px;
}

.analytics-card {
    background: var(--panel);
    padding: 32px;
    border-radius: 24px;
    border: 1px solid var(--border);
    backdrop-filter: blur(18px);
}

    .analytics-card p {
        margin: 0 0 10px;
        opacity: .75;
    }

    .analytics-card h2 {
        font-size: 54px;
        margin: 0;
    }

/* MEMBERSHIP */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(340px,1fr));
    gap: 28px;
}

.pricing-card {
    background: var(--panel);
    border-radius: 28px;
    padding: 42px;
    border: 1px solid var(--border);
    backdrop-filter: blur(18px);
}

    .pricing-card h1 {
        font-size: 62px;
        margin: 20px 0;
    }

    .pricing-card ul {
        padding-left: 20px;
        line-height: 2;
        color: var(--muted);
    }

.featured-tier {
    border: 1px solid var(--accent);
    box-shadow: 0 0 40px rgba(255,45,45,.18);
    transform: scale(1.02);
}

/* ADMIN */

.admin-toolbar {
    margin-bottom: 30px;
}

.admin-table {
    background: var(--panel);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.admin-row {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr 1fr 1fr;
    padding: 22px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    align-items: center;
}

.admin-header {
    font-weight: 700;
    background: rgba(255,255,255,.04);
}

/* VIDEO.JS */

.video-js {
    border-radius: 18px !important;
    overflow: hidden;
}

/* MOBILE */

@media(max-width:1100px) {

    .hero h1 {
        font-size: 68px;
    }

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

@media(max-width:768px) {

    .navbar {
        padding: 16px 20px;
        flex-direction: column;
        gap: 16px;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
    }

        nav a {
            margin: 6px 10px;
        }

    .hero {
        padding: 140px 24px 80px;
    }

        .hero h1 {
            font-size: 52px;
        }

        .hero p {
            font-size: 18px;
        }

    .section {
        padding: 60px 24px;
    }

    .section-title {
        font-size: 36px;
    }

    .camera-grid {
        padding: 120px 20px 40px;
    }

    .admin-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}
.account-area {
    margin-left: 30px;
    position: relative;
}

.account-dropdown {
    position: relative;
}

.account-button {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
    padding: 10px 16px;
    border-radius: 999px;
    color: white;
    cursor: pointer;
    backdrop-filter: blur(12px);
}

.account-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #ff2d2d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.account-name {
    font-weight: 600;
    font-size: 14px;
}

.account-chevron {
    font-size: 11px;
    opacity: .7;
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: 60px;
    width: 240px;
    background: #111;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 20px;
    padding: 12px;
    display: none;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
    z-index: 9999;
}

.account-dropdown:hover .dropdown-menu {
    display: flex;
}

.dropdown-menu a {
    padding: 14px 16px;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    transition: .2s ease;
}

    .dropdown-menu a:hover {
        background: rgba(255,255,255,.06);
    }

.logout-button {
    width: 100%;
    margin-top: 8px;
    padding: 14px;
    background: #ff2d2d;
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 700;
    cursor: pointer;
}

.guest-actions {
    display: flex;
    gap: 12px;
    margin-left: 24px;
}

.login-btn,
.register-btn {
    padding: 12px 20px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    transition: .2s ease;
}

.login-btn {
    background: rgba(255,255,255,.06);
    color: white;
    border: 1px solid rgba(255,255,255,.08);
}

.register-btn {
    background: #ff2d2d;
    color: white;
}

.camera-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(380px,1fr));
    gap: 32px;
    padding: 40px 0;
}

.camera-card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 28px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    transition: .3s ease;
    position: relative;
}

    .camera-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 30px 80px rgba(0,0,0,.35);
    }

.camera-thumbnail {
    position: relative;
    height: 260px;
    overflow: hidden;
}

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

.camera-lock-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.75);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
}

.lock-content {
    max-width: 300px;
}

.lock-icon {
    font-size: 52px;
    margin-bottom: 16px;
}

.lock-content h3 {
    font-size: 28px;
    margin-bottom: 12px;
}

.lock-content p {
    opacity: .75;
    line-height: 1.7;
    margin-bottom: 24px;
}

.unlock-btn {
    display: inline-block;
    padding: 14px 22px;
    background: #ff2d2d;
    color: white;
    text-decoration: none;
    border-radius: 14px;
    font-weight: 700;
}

.camera-status {
    position: absolute;
    top: 18px;
    left: 18px;
    background: #00d26a;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.camera-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
}

    .camera-info h2 {
        margin: 0;
        font-size: 24px;
    }

    .camera-info p {
        margin-top: 8px;
        opacity: .7;
    }

.camera-tier {
    background: rgba(255,255,255,.08);
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.watch-btn {
    display: block;
    margin: 0 24px 24px;
    padding: 16px;
    background: #ff2d2d;
    border-radius: 16px;
    text-align: center;
    text-decoration: none;
    color: white;
    font-weight: 700;
    transition: .2s ease;
}

    .watch-btn:hover {
        transform: scale(1.02);
    }
.danger-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 30px;
    border-radius: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: .25s ease;
}

.danger-btn {
    background: grey;
    color: white;
    box-shadow: 0 10px 30px rgba(255,45,45,.28);
}

    .danger-btn:hover {
        transform: translateY(-3px);
    }

.membership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.membership-card {
    background: rgba(255,255,255,0.05);
    border-radius: 24px;
    padding: 32px;
    position: relative;
    border: 1px solid rgba(255,255,255,0.08);
}

.featured-tier {
    border: 2px solid #4ea1ff;
}

.premium-tier {
    border: 2px solid #ffd700;
}

.membership-tier {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.membership-price {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 24px;
}

.membership-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

    .membership-features li {
        margin-bottom: 12px;
    }

.current-plan,
.included-plan {
    background: rgba(255,255,255,0.1);
    padding: 12px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
}

.membership-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: #4ea1ff;
    color: white;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.membership-footer {
    margin-top: 40px;
    text-align: center;
}

.section-subtitle {
    opacity: 0.8;
    margin-top: 10px;
}

.admin-thumb {
    width: 140px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.admin-table td,
.admin-table th {
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 10px;
}

.page-content {
    padding-top: 50px;
}

.admin-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.admin-form-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 28px;
    padding: 36px;
    max-width: 1100px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-group {
    margin-bottom: 24px;
}

    .form-group label {
        display: block;
        margin-bottom: 10px;
        font-weight: 700;
        opacity: 0.9;
    }

    .form-group input,
    .form-group select {
        width: 100%;
        padding: 16px;
        border-radius: 16px;
        border: 1px solid rgba(255,255,255,0.08);
        background: rgba(255,255,255,0.05);
        color: white;
    }

.checkbox-grid {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.checkbox-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 14px 18px;
    border-radius: 16px;
}

.form-actions {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

.thumbnail-preview {
    margin-bottom: 24px;
}

    .thumbnail-preview img {
        width: 320px;
        height: 180px;
        object-fit: cover;
        border-radius: 18px;
        border: 1px solid rgba(255,255,255,0.08);
    }

@media (max-width: 900px) {

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

    .admin-page-header {
        flex-direction: column;
    }

    .form-actions {
        flex-direction: column;
    }
}

.stream-page {
    padding: 30px;
}

.stream-layout {
    max-width: 1800px;
    margin: 0 auto;
}

.stream-main {
    width: 100%;
}

.stream-player-wrapper {
    position: relative;
    width: 100%;
    background: black;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 20px 80px rgba(0,0,0,0.45);
}

.stream-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    background: black;
}

.stream-meta {
    margin-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.stream-title {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 6px;
}

.stream-airport {
    opacity: 0.75;
    font-size: 18px;
}

.stream-tier {
    background: rgba(255,255,255,0.08);
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 700;
}

@media (max-width: 900px) {

    .stream-page {
        padding: 14px;
    }

    .stream-title {
        font-size: 28px;
    }

    .stream-meta {
        flex-direction: column;
        align-items: flex-start;
    }
}

input[type="file"] {
    width: 100%;
    padding: 18px;
    border-radius: 18px;
    border: 1px dashed rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.04);
    color: white;
}

.thumbnail-preview img {
    width: 320px;
    height: 180px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.08);
    margin-top: 12px;
}
.online-badge {
    color: #6dff9a;
    font-weight: 700;
}

.offline-badge {
    color: #ff7b7b;
    font-weight: 700;
}

.admin-error {
    color: #ffb347;
    max-width: 260px;
    word-break: break-word;
}

.health-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 24px;
}

.health-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    padding: 28px;
}

.health-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.health-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.health-stat {
    background: rgba(255,255,255,0.04);
    padding: 16px;
    border-radius: 18px;
}

    .health-stat label {
        display: block;
        opacity: 0.7;
        margin-bottom: 8px;
        font-size: 13px;
    }

    .health-stat strong {
        font-size: 24px;
    }

.health-error {
    margin-top: 20px;
    padding: 14px;
    border-radius: 14px;
    background: rgba(255,123,123,0.12);
    color: #ff7b7b;
    font-size: 14px;
    word-break: break-word;
}

.noc-dropdown {
    position: relative;
}

.noc-dropdown-btn {
    background: rgba(255,255,255,0.08);
    color: white;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    transition: 0.2s ease;
}

    .noc-dropdown-btn:hover {
        background: rgba(255,255,255,0.14);
    }

.noc-arrow {
    font-size: 11px;
    opacity: 0.7;
}

.noc-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 240px;
    background: rgba(15,20,35,0.96);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(18px);
    box-shadow: 0 20px 80px rgba(0,0,0,0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.2s ease;
    z-index: 9999;
}

.noc-dropdown:hover .noc-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.noc-dropdown-menu a {
    display: block;
    padding: 16px 20px;
    transition: 0.2s ease;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

    .noc-dropdown-menu a:last-child {
        border-bottom: none;
    }

    .noc-dropdown-menu a:hover {
        background: rgba(255,255,255,0.08);
    }

.admin-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 40px;
}

.admin-dashboard-title h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 8px;
}

.admin-dashboard-title p {
    opacity: 0.7;
    font-size: 18px;
}

.admin-dashboard-actions {
    display: flex;
    gap: 16px;
}

.operations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 36px;
}

.operations-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    padding: 28px;
}

    .operations-card label {
        display: block;
        opacity: 0.7;
        margin-bottom: 12px;
    }

    .operations-card strong {
        font-size: 42px;
        font-weight: 800;
    }

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

.admin-page {
    max-width: 1800px;
    margin: 0 auto;
}

.admin-table-wrapper {
    overflow-x: auto;
    border-radius: 24px;
}

.warning-text {
    color: #ffb347;
}

.success-text {
    color: #6dff9a;
}

.danger-text {
    color: #ff7b7b;
}

.auth-page {
    min-height: calc(100vh - 120px);
    display: flex;
    background: radial-gradient(circle at top, rgba(255,255,255,0.08), transparent 60%);
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-card {
    width: 100%;
    max-width: 520px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 32px;
    padding: 42px;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 80px rgba(0,0,0,0.45);
}

.auth-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 10px;
}

.auth-subtitle {
    opacity: 0.7;
    margin-bottom: 36px;
    line-height: 1.6;
}

.auth-form .form-group {
    margin-bottom: 24px;
}

.auth-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
}

.auth-form input {
    width: 100%;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.05);
    color: white;
    font-size: 16px;
}

    .auth-form input:focus {
        outline: none;
        border-color: rgba(255,255,255,0.25);
        background: rgba(255,255,255,0.08);
    }

.auth-btn {
    width: 100%;
    padding: 18px;
    border-radius: 18px;
    border: none;
    background: white;
    color: black;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s ease;
}

    .auth-btn:hover {
        transform: translateY(-2px);
    }

.auth-links {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

    .auth-links a {
        opacity: 0.8;
        transition: 0.2s ease;
    }

        .auth-links a:hover {
            opacity: 1;
        }

.validation-summary-errors {
    margin-bottom: 20px;
    padding: 16px;
    border-radius: 16px;
    background: rgba(255,123,123,0.12);
    color: #ff7b7b;
}

.field-validation-error {
    display: block;
    margin-top: 8px;
    color: #ff7b7b;
    font-size: 14px;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

    .checkbox-row input {
        width: auto;
    }

@media (max-width: 700px) {

    .auth-card {
        padding: 28px;
    }

    .auth-title {
        font-size: 32px;
    }
}

.account-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 32px;
}

.account-sidebar {
    background: rgba(255,255,255,0.05);
    border-radius: 32px;
    padding: 32px;
    border: 1px solid rgba(255,255,255,0.08);
}

.account-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.account-card {
    background: rgba(255,255,255,0.05);
    border-radius: 32px;
    padding: 32px;
    border: 1px solid rgba(255,255,255,0.08);
}

.account-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient( 180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
    border: 2px solid rgba(255,255,255,0.10);
    margin: 0 auto 22px auto;
}

    .account-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
    }

.avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    font-weight: 800;
}

.membership-badge {
    margin-top: 18px;
    margin-bottom: 28px;
    display: inline-block;
    padding: 10px 18px;
    border-radius: 999px;
    background: white;
    color: black;
    font-weight: 700;
}

.account-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

    .account-nav a {
        padding: 14px 18px;
        border-radius: 16px;
        background: rgba(255,255,255,0.04);
        transition: 0.2s ease;
    }

        .account-nav a:hover {
            background: rgba(255,255,255,0.08);
        }

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

    .profile-grid label {
        display: block;
        opacity: 0.6;
        margin-bottom: 8px;
        font-size: 14px;
    }

@media (max-width: 1000px) {

    .account-layout {
        grid-template-columns: 1fr;
    }
}

.logout-btn {
    width: 100%;
    padding: 14px 18px;
    border-radius: 16px;
    border: none;
    background: rgba(255,123,123,0.15);
    color: #ff7b7b;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

    .logout-btn:hover {
        background: rgba(255,123,123,0.22);
    }

.account-form {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

    .account-form .form-group {
        display: flex;
        flex-direction: column;
    }

    .account-form label {
        margin-bottom: 10px;
        font-weight: 700;
    }

    .account-form input,
    .account-form textarea,
    .account-form select {
        width: 100%;
        padding: 16px 18px;
        border-radius: 18px;
        border: 1px solid rgba(255,255,255,0.08);
        background: rgba(255,255,255,0.05);
        color: white;
        font-size: 15px;
    }

    .account-form textarea {
        resize: vertical;
    }

        .account-form input:focus,
        .account-form textarea:focus,
        .account-form select:focus {
            outline: none;
            border-color: rgba(255,255,255,0.25);
            background: rgba(255,255,255,0.08);
        }

.account-card-header {
    margin-bottom: 32px;
}

.settings-grid {
    display: grid;
    gap: 16px;
}

.setting-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255,255,255,0.04);
}

    .setting-toggle input {
        width: auto;
    }

.account-actions {
    display: flex;
    justify-content: flex-end;
}

.success-alert {
    margin-bottom: 24px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(109,255,154,0.12);
    color: #6dff9a;
}

.membership-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
}

.current-tier-badge {
    padding: 14px 24px;
    border-radius: 999px;
    background: white;
    color: black;
    font-weight: 800;
    font-size: 15px;
}

.membership-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.membership-status-card {
    padding: 24px;
    border-radius: 24px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
}

    .membership-status-card label {
        display: block;
        opacity: 0.65;
        margin-bottom: 12px;
    }

.plans-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 36px;
    flex-wrap: wrap;
    margin-top: 36px;
}

.plan-card {
    width: 360px;
    min-height: 640px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    padding: 42px 36px;
    border-radius: 36px;
    background: linear-gradient( 180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
    border: 1px solid rgba(255,255,255,0.08);
    transition: 0.25s ease;
    overflow: hidden;
}

    .plan-card:hover {
        transform: translateY(-8px);
    }

.featured-plan {
    border: 1px solid rgba(255,255,255,0.22);
    transform: scale(1.03);
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

    .featured-plan:hover {
        transform: scale(1.03) translateY(-8px);
    }

.premium-plan {
    background: linear-gradient( 180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04));
}

.active-plan {
    box-shadow: 0 0 0 2px rgba(255,255,255,0.18);
}

.plan-header {
    margin-bottom: 36px;
}

    .plan-header h2 {
        font-size: 38px;
        margin-bottom: 12px;
        font-weight: 800;
    }

.plan-price {
    font-size: 42px;
    font-weight: 900;
    line-height: 1;
}

    .plan-price span {
        font-size: 16px;
        opacity: 0.65;
    }

.plan-features {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 42px;
    padding-left: 22px;
    flex-grow: 1;
}

    .plan-features li {
        line-height: 1.6;
        opacity: 0.92;
    }

.plan-btn {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    padding: 18px;
    border-radius: 18px;
    background: white;
    color: black;
    font-weight: 800;
    transition: 0.2s ease;
}

    .plan-btn:hover {
        transform: translateY(-2px);
    }

.current-plan-btn {
    opacity: 0.65;
    cursor: default;
}

    .current-plan-btn:hover {
        transform: none;
    }

@media (max-width: 1200px) {

    .plans-grid {
        gap: 28px;
    }

    .plan-card {
        width: 100%;
        max-width: 420px;
    }

    .featured-plan {
        transform: none;
    }

        .featured-plan:hover {
            transform: translateY(-8px);
        }
}

.plan-card {
    position: relative;
    padding: 36px;
    border-radius: 32px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    transition: 0.25s ease;
}

    .plan-card:hover {
        transform: translateY(-6px);
    }

.featured-plan {
    border: 1px solid rgba(255,255,255,0.18);
}

.premium-plan {
    background: linear-gradient( 180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
}

.active-plan {
    box-shadow: 0 0 0 2px rgba(255,255,255,0.2);
}

.plan-header {
    margin-bottom: 28px;
}

    .plan-header h2 {
        font-size: 32px;
        margin-bottom: 10px;
    }

.plan-price {
    font-size: 24px;
    font-weight: 700;
}

.plan-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 32px;
    padding-left: 18px;
}

.plan-btn {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    padding: 18px;
    border-radius: 18px;
    background: white;
    color: black;
    font-weight: 800;
    transition: 0.2s ease;
}

    .plan-btn:hover {
        transform: translateY(-2px);
    }

.current-plan-btn {
    opacity: 0.65;
    cursor: default;
}

.membership-actions {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

@media (max-width: 900px) {

    .membership-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

.billing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
}

.billing-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.billing-status-card {
    padding: 24px;
    border-radius: 24px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
}

    .billing-status-card label {
        display: block;
        opacity: 0.65;
        margin-bottom: 10px;
    }

.billing-alert {
    padding: 22px;
    border-radius: 24px;
    margin-bottom: 28px;
}

.danger-alert {
    background: rgba(255,90,90,0.12);
    border: 1px solid rgba(255,90,90,0.22);
}

.warning-alert {
    background: rgba(255,180,70,0.12);
    border: 1px solid rgba(255,180,70,0.22);
}

.billing-alert strong {
    display: block;
    margin-bottom: 10px;
}

.billing-alert p {
    opacity: 0.85;
    line-height: 1.6;
}

.billing-section-title {
    margin-bottom: 28px;
    font-size: 24px;
}

.billing-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.billing-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

    .billing-info-grid label {
        display: block;
        opacity: 0.65;
        margin-bottom: 10px;
    }

@media (max-width: 900px) {

    .billing-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

.security-section {
    margin-bottom: 42px;
}

    .security-section h2 {
        margin-bottom: 24px;
        font-size: 24px;
    }

.security-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

    .security-info-grid label {
        display: block;
        opacity: 0.65;
        margin-bottom: 10px;
    }

.preferences-section {
    margin-bottom: 42px;
}

    .preferences-section h2 {
        margin-bottom: 24px;
        font-size: 24px;
    }

.account-form select {
    width: 100%;
    padding: 14px 18px;
    border-radius: 14px;
    background: rgba(255,255,255,0.08);
    color: white;
    border: 1px solid rgba(255,255,255,0.10);
    outline: none;
}

    .account-form select:hover {
        background: rgba(255,255,255,0.08);
    }

    .account-form select option {
        background: #0f172a;
        color: white;
    }

.account-form option {
    background: #111827;
    color: white;
}

.activity-header {
    margin-bottom: 32px;
}

.activity-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.activity-stat-card {
    padding: 24px;
    border-radius: 24px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
}

    .activity-stat-card label {
        display: block;
        opacity: 0.65;
        margin-bottom: 10px;
    }

.activity-table-wrapper {
    overflow-x: auto;
}

.activity-table {
    width: 100%;
    border-collapse: collapse;
}

    .activity-table th {
        text-align: left;
        padding: 18px;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        opacity: 0.65;
    }

    .activity-table td {
        padding: 20px 18px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .activity-table tr:hover {
        background: rgba(255,255,255,0.03);
    }

.empty-activity {
    padding: 40px;
    text-align: center;
    opacity: 0.65;
}

.muted-text {
    opacity: 0.6;
}

.profile-avatar-section {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-bottom: 42px;
    flex-wrap: wrap;
}

.profile-avatar-wrapper {
    position: relative;
}

.profile-avatar-preview,
.profile-avatar-placeholder {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    object-fit: cover;
    object-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
    font-weight: 800;
    background: linear-gradient( 180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
    border: 2px solid rgba(255,255,255,0.10);
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
}

.avatar-upload-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.avatar-upload-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
    border-radius: 18px;
    background: white;
    color: black;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

    .avatar-upload-btn:hover {
        transform: translateY(-2px);
    }

.avatar-upload-hint {
    opacity: 0.6;
    font-size: 14px;
}

.avatar-crop-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.82);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 5000;
    padding: 30px;
}

.avatar-crop-container {
    width: 900px;
    max-width: 95vw;
    max-height: 92vh;
    overflow-y: auto;
    background: #111827;
    padding: 28px;
    border-radius: 28px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

    .avatar-crop-container img {
        max-width: 100%;
        display: block;
    }

.avatar-drop-zone {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    border-radius: 24px;
    border: 2px dashed rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.03);
}

    .avatar-drop-zone.dragging {
        border-color: rgba(255,255,255,0.35);
    }

.avatar-drop-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    font-size: 24px;
    font-weight: 700;
    opacity: 0.25;
    z-index: 1;
}

.avatar-tools {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.avatar-tool-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.avatar-slider-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

    .avatar-slider-group input {
        width: 100%;
    }

.avatar-preview-section {
    display: flex;
    justify-content: center;
}

.avatar-preview-circle {
    width: 160px;
    height: 160px;
    overflow: hidden;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.10);
}

.preview {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#cameraFeed {
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
}

#cropperImage {
    display: block;
    max-width: 100%;
    max-height: 600px;
}

.cropper-container {
    width: 100% !important;
    height: 100% !important;
}

.cropper-view-box,
.cropper-face {
    border-radius: 50%;
}

.cropper-view-box {
    outline: 2px solid rgba(255,255,255,0.8);
}

.cropper-actions {
    margin-top: 24px;
    display: flex;
    justify-content: flex-end;
}

.navbar-avatar,
.navbar-avatar-placeholder {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    object-fit: cover;
    object-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: linear-gradient( 180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04));
    border: 1px solid rgba(255,255,255,0.08);
    font-size: 15px;
    font-weight: 700;
    color: white;
}

.navbar-avatar {
    display: block;
}

.avatar-close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.08);
    color: white;
    cursor: pointer;
    font-size: 18px;
}

.avatar-source-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.avatar-drop-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

    .avatar-drop-content strong {
        font-size: 22px;
    }

    .avatar-drop-content span {
        opacity: 0.65;
    }

.tap-unmute {
    position: absolute;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.72);
    color: white;
    padding: 14px 22px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.12);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: auto;
    cursor: pointer;
    z-index: 10;
}

    .tap-unmute.visible {
        opacity: 1;
        transform: translateX(-50%) translateY(-6px);
    }

.stream-quality-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0,0,0,0.72);
    color: white;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.08);
    z-index: 5;
    letter-spacing: 0.5px;
}

.stream-overlay-top {
    position: absolute;
    top: 18px;
    left: 18px;
    right: 18px;
    z-index: 20;
}

.stream-overlay-status-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.stream-live-badge,
.stream-viewer-count,
.stream-quality-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,0,0,0.68);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 999px;
    padding: 8px 14px;
    color: white;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.stream-quality-badge {
    min-width: 84px;
    justify-content: center;
}

.live-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff3b30;
    box-shadow: 0 0 12px rgba(255,59,48,0.9);
}

.offline-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #777;
}

body.cinematic-mode {
    background: radial-gradient( circle at top, #111 0%, #050505 55%, #000 100%);
    overflow-x: hidden;
    transition: background 0.5s ease;
}

    /* =========================
   NAVIGATION / UI CLUTTER
========================= */

    body.cinematic-mode .navbar,
    body.cinematic-mode footer,
    body.cinematic-mode .sidebar,
    body.cinematic-mode .account-sidebar {
        opacity: 0.08;
        transition: opacity 0.35s ease, transform 0.35s ease;
        transform: translateY(0);
    }

        body.cinematic-mode .navbar:hover,
        body.cinematic-mode footer:hover {
            opacity: 1;
        }

    body.cinematic-mode .navbar {
        backdrop-filter: blur(14px);
    }

    body.cinematic-mode .navbar {
        transform: translateY(-100%);
        opacity: 0;
        transition: transform 0.35s ease, opacity 0.35s ease;
        pointer-events: none;
    }

    body.cinematic-mode::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 24px;
        z-index: 9998;
    }

    /*
==========================================
REVEAL NAVBAR
==========================================
*/

    body.cinematic-mode:hover .navbar,
    body.cinematic-mode .navbar:hover {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    /*
==========================================
KEEP NAVBAR ABOVE PLAYER
==========================================
*/

    body.cinematic-mode .navbar {
        z-index: 9999;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        backdrop-filter: blur(16px);
        background: rgba(0,0,0,0.35);
    }

    /* =========================
   STREAM LAYOUT
========================= */

    body.cinematic-mode .stream-page {
        padding: 0;
    }

    body.cinematic-mode .stream-layout {
        max-width: 100%;
        padding: 0;
    }

    body.cinematic-mode .stream-main {
        width: 100%;
    }

    /* =========================
   PLAYER EXPANSION
========================= */

    body.cinematic-mode .stream-player-wrapper {
        width: 100vw;
        max-width: 100vw;
        margin-left: calc(50% - 50vw);
        border-radius: 0;
        overflow: hidden;
        position: relative;
        background: #000;
        box-shadow: 0 0 120px rgba(0,0,0,0.85), 0 0 60px rgba(0,150,255,0.08);
        transition: all 0.45s ease;
    }

    /* =========================
   PLAYER
========================= */

    body.cinematic-mode .stream-player {
        width: 100%;
        max-height: 94vh;
        background: #000;
        object-fit: contain;
        transition: all 0.4s ease;
    }

    /* =========================
   AMBIENT GLOW
========================= */

    body.cinematic-mode .stream-player-wrapper::after {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: radial-gradient( circle, rgba(0,120,255,0.12), transparent 70%);
        mix-blend-mode: screen;
        animation: ambientPulse 6s ease-in-out infinite;
    }

@keyframes ambientPulse {

    0% {
        opacity: 0.35;
    }

    50% {
        opacity: 0.7;
    }

    100% {
        opacity: 0.35;
    }
}

/* =========================
   STREAM OVERLAYS
========================= */

body.cinematic-mode .stream-overlay-top {
    padding: 28px;
    z-index: 30;
}

body.cinematic-mode .stream-live-badge,
body.cinematic-mode .stream-viewer-count,
body.cinematic-mode .stream-quality-badge {
    background: rgba(0,0,0,0.52);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 8px 30px rgba(0,0,0,0.35);
    transition: all 0.3s ease;
}

/* =========================
   PLAYER HOVER EXPERIENCE
========================= */

body.cinematic-mode .stream-player-wrapper:hover
.stream-live-badge,
body.cinematic-mode .stream-player-wrapper:hover
.stream-viewer-count,
body.cinematic-mode .stream-player-wrapper:hover
.stream-quality-badge {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.45);
}

/* =========================
   STREAM CONTENT
========================= */

body.cinematic-mode .stream-meta,
body.cinematic-mode .stream-stats-grid,
body.cinematic-mode .stream-description-card {
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 40px;
    padding-right: 40px;
}

/* =========================
   STATS
========================= */

body.cinematic-mode .stream-stat-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.22);
    transition: all 0.3s ease;
}

    body.cinematic-mode .stream-stat-card:hover {
        transform: translateY(-4px);
        background: rgba(255,255,255,0.05);
    }

/* =========================
   DESCRIPTION
========================= */

body.cinematic-mode .stream-description-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.28);
}

/* =========================
   SMOOTH TRANSITIONS
========================= */

body.cinematic-mode * {
    transition: background 0.25s ease, opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

/* =========================
   MOBILE OPTIMIZATION
========================= */

@media (max-width: 768px) {
    body.cinematic-mode .stream-player {
        max-height: 60vh;
    }

    body.cinematic-mode .stream-meta,
    body.cinematic-mode .stream-stats-grid,
    body.cinematic-mode .stream-description-card {
        padding-left: 18px;
        padding-right: 18px;
    }

    body.cinematic-mode .stream-overlay-top {
        padding: 14px;
    }
}
.admin-grid {
    display: grid;
    gap: 24px;
}

.admin-card {
    background: #111;
    border-radius: 18px;
    padding: 24px;
    border: 1px solid rgba(255,255,255,0.08);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

    .admin-table th,
    .admin-table td {
        padding: 14px;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        text-align: left;
    }

.danger-btn {
    background: #d62828;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
}

.success-btn {
    background: #2a9d8f;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
}

.warning-badge {
    color: #ffb703;
    font-weight: 700;
}

.success-badge {
    color: #70e000;
    font-weight: 700;
}

.account-sidebar-profile {
    padding-bottom: 24px;
    margin-bottom: 20px;
}

.account-sidebar-divider {
    height: 0px;
    background: rgba(255,255,255,0.08);
    margin-bottom: 20px;
}

.account-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/*
=========================================================
PAGE HEADER BAR
=========================================================
*/

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

    .page-header-bar h1,
    .page-header-bar h2 {
        margin: 0;
    }

/*
=========================================================
PRIMARY ACTION BUTTON
=========================================================
*/

.primary-action-btn {
    border: none;
    background: #2563eb;
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

    .primary-action-btn:hover {
        background: #1d4ed8;
        transform: translateY(-1px);
    }

/*
=========================================================
RESPONSIVE
=========================================================
*/

@media (max-width: 700px) {
    .page-header-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .primary-action-btn {
        width: 100%;
    }
}

.global-device-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

    .global-device-actions form {
        margin: 0;
    }

body.cinematic-mode .page-shell-aps {
    padding-top: 0 !important;
}

/*
=========================================================
TV MODE CHAT OVERLAY
=========================================================
*/



.tv-chat-overlay {
    position: absolute;
    right: 20px;
    bottom: 20px;
    width: 420px;
    max-height: 45vh;
    overflow: hidden;
    z-index: 5500;
    pointer-events: none;
}

.tv-chat-message {
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(0,0,0,.35);
    backdrop-filter: blur(6px);
    color: white;
    font-size: 18px;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0,0,0,.9);
}

    .tv-chat-overlay.left {
        left: 0;
        right: auto;
    }

    .tv-chat-overlay.right {
        right: 0;
        left: auto;
    }

    .tv-chat-overlay.small {
        width: 20%;
    }

    .tv-chat-overlay.medium {
        width: 30%;
    }

    .tv-chat-overlay.large {
        width: 40%;
    }

/*
=========================================================
ONLY SHOW IN THEATER MODE
=========================================================
*/

.tv-chat-overlay {
    display: none;
}

body.stream-theater-mode .tv-chat-overlay,
body.cinematic-mode .tv-chat-overlay {
    display: block;
}

/*
=========================================================
STREAM THEATER MODE
=========================================================
*/

body.stream-theater-mode {
    overflow: hidden;
}

    body.stream-theater-mode .stream-meta,
    body.stream-theater-mode .stream-stats-grid,
    body.stream-theater-mode .stream-description-card {
        display: none;
    }

    body.stream-theater-mode .stream-player-wrapper {
        position: fixed;
        inset: 0;
        width: 100vw;
        height: 100vh;
        z-index: 5000;
        background: #000;
    }

    body.stream-theater-mode .stream-player {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    body.stream-theater-mode .navbar,
    body.stream-theater-mode header {
        display: none;
    }

.stream-theater-btn,
.stream-exit-theater-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 6000;
    padding: 10px 16px;
    border-radius: 10px;
    background: rgba(0,0,0,.6);
    color: white;
    border: 1px solid rgba(255,255,255,.15);
    cursor: pointer;
}

.stream-exit-theater-btn {
    display: none;
}

body.stream-theater-mode .stream-exit-theater-btn {
    display: block;
}

body.stream-theater-mode .stream-theater-btn {
    display: none;
}

/*
=========================================================
STREAM CHAT
=========================================================
*/


.stream-chat-card {
    margin-top: 20px;
    padding: 20px;
    border-radius: 12px;
    background: rgba(255,255,255,.05);
}

.chat-messages {
    height: 300px;
    overflow-y: auto;
    margin-bottom: 15px;
}

.chat-message {
    margin-bottom: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(255,255,255,.04);
}

.chat-input-row {
    display: flex;
    gap: 10px;
}

    .chat-input-row input {
        flex: 1;
    }