:root {
    --bg: #060b16;
    --bg-secondary: #0d1729;
    --panel: rgba(15, 23, 42, 0.76);
    --panel-strong: rgba(15, 23, 42, 0.92);
    --border: rgba(148, 163, 184, 0.18);
    --text: #edf5ff;
    --muted: #b8c5dc;
    --accent: #7c3aed;
    --accent-2: #22d3ee;
    --accent-3: #f59e0b;
    --shadow: 0 28px 55px rgba(2, 8, 23, 0.5);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(124, 58, 237, 0.22), transparent 28%),
        radial-gradient(circle at bottom right, rgba(34, 211, 238, 0.18), transparent 22%),
        var(--bg);
}

img {
    max-width: 100%;
    display: block;
}

.hide-mobile {
    display: none;
}

.wrap {
    width: min(1200px, calc(100% - 2rem));
    margin: 0 auto;
    flex: 1;
}

body > p {
    margin: 0;
    padding: 1.25rem 1rem 2rem;
    text-align: center;
    color: rgba(184, 197, 220, 0.7);
    font-size: 0.8rem;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0 0.5rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.header-left a {
    text-decoration: none;
    color: var(--text);
}

.header-left .divider {
    width: 1px;
    height: 40px;
    background: rgba(148, 163, 184, 0.25);
}

.header-left .home {
    font-weight: 600;
    letter-spacing: 0.04em;
}

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

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: fixed;
    z-index: 1001;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(82vw, 340px);
    background: rgba(9, 15, 28, 0.96);
    border-left: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 1rem 1.25rem 1.5rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

nav ul.open {
    transform: translateX(0);
}

nav ul li {
    margin: 0;
}

nav ul li a {
    display: block;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

nav ul li a:hover {
    background: rgba(148, 163, 184, 0.08);
    transform: translateX(2px);
}

nav ul li.hide-desktop {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.5rem;
}

.menu-open,
.menu-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    background: rgba(148, 163, 184, 0.06);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 12px;
    color: var(--text);
    cursor: pointer;
}

.menu-open img,
.menu-close img {
    width: 1.25rem;
    height: 1.25rem;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-top: auto;
    padding: 0.5rem 0.5rem 0;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    border: 0;
    padding: 0;
}

.social-links img {
    width: 2.2rem;
    height: 2.2rem;
}

.menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(1, 4, 11, 0.48);
    border: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

nav.menu-active .menu-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body.navigation-open {
    overflow: hidden;
}

main {
    padding: clamp(1.5rem, 3vw, 3rem) 0 2rem;
}

.hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    min-height: 70vh;
}

.hero-copy,
.dashboard-card {
    background: rgba(15, 23, 42, 0.52);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.eyebrow {
    margin: 0 0 1rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent-2);
}

h1,
p {
    text-align: left;
}

h1 {
    margin: 0;
    font-size: clamp(2.8rem, 6vw, 5rem);
    line-height: 0.95;
    letter-spacing: -0.06em;
}

.gradient {
    background: linear-gradient(135deg, #8b5cf6 0%, #22d3ee 45%, #f59e0b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.subhead {
    margin: 1.2rem 0 0;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.9;
    max-width: 60ch;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.primary-cta,
.secondary-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    padding: 0.9rem 1.5rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-cta {
    background: linear-gradient(135deg, var(--accent) 0%, #4f46e5 100%);
    color: white;
    box-shadow: 0 18px 25px rgba(79, 70, 229, 0.28);
}

.secondary-cta {
    color: var(--text);
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.primary-cta:hover,
.secondary-cta:hover {
    transform: translateY(-2px);
}

.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.6rem;
}

.badge {
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.15);
    background: rgba(148, 163, 184, 0.06);
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 600;
}

.profile-panel {
    position: relative;
}

.profile-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.7), rgba(8, 15, 28, 0.9));
    box-shadow: var(--shadow);
}

.profile-card::before {
    content: "";
    position: absolute;
    inset: -20% auto auto -10%;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.28), transparent 65%);
}

.profile-photo-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 1.25rem 1.25rem 0.5rem;
}

.profile-photo-wrap img {
    width: min(340px, 100%);
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.45);
}

.profile-meta {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    padding: 1rem 1.2rem 1.2rem;
}

.meta-stat {
    background: rgba(148, 163, 184, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 18px;
    padding: 0.9rem 1rem;
}

.meta-stat .label {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(184, 197, 220, 0.72);
    margin-bottom: 0.35rem;
}

.meta-stat .value {
    font-size: 1.25rem;
    font-weight: 700;
}

.dashboard-shell {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: stretch;
    min-height: 70vh;
    padding: 1rem 0 2rem;
}

.dashboard-card {
    background: rgba(15, 23, 42, 0.58);
    border: 1px solid var(--border);
    border-radius: 26px;
    box-shadow: var(--shadow);
}

.dashboard-card h2 {
    margin: 0.35rem 0 0;
    font-size: clamp(1.7rem, 4vw, 2.4rem);
}

.dashboard-list {
    margin-top: 1.5rem;
    display: grid;
    gap: 0.85rem;
}

.list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    background: rgba(148, 163, 184, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.list-item span {
    color: var(--muted);
}

.list-item strong {
    color: var(--text);
}

.list-item strong.status-available {
    color: #4ade80;
}

.list-item strong.status-unavailable {
    color: #f87171;
}

.page-shell {
    padding: 1.5rem 0 2rem;
}

.page-card {
    background: rgba(15, 23, 42, 0.58);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    box-shadow: var(--shadow);
}

.page-card h1 {
    margin: 0;
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 0.96;
    letter-spacing: -0.06em;
}

.page-copy {
    margin: 1.1rem 0 0;
    max-width: 62ch;
    color: var(--muted);
    line-height: 1.8;
    font-size: 1.04rem;
}

.under-construction-card {
    min-height: 440px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.live-card {
    text-align: center;
}

.live-card .eyebrow,
.live-card h1,
.live-card .page-copy {
    text-align: center;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    margin: 1.25rem auto 0;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.22);
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
}

.status-dot {
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.14);
}

.stream-frame {
    margin: 1.5rem auto 0;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: rgba(2, 6, 23, 0.7);
    max-width: 1100px;
}

.stream-frame img {
    width: 100%;
    display: block;
    margin: 0 auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.file-list {
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.85rem;
}

.file-list li {
    padding: 0.9rem 1rem;
    border-radius: 16px;
    background: rgba(148, 163, 184, 0.05);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.media-preview {
    display: block;
    width: 100%;
    max-height: 70vh;
    margin-bottom: 0.85rem;
    border-radius: 12px;
    background: rgba(2, 6, 23, 0.55);
}

.image-preview {
    object-fit: contain;
}

.video-preview {
    aspect-ratio: 16 / 9;
}

.file-entry-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.file-entry-actions span {
    overflow-wrap: anywhere;
}

.file-list a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
}

.file-list a:hover {
    color: var(--accent-2);
}

.folder-list {
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.85rem;
}

.folder-entry {
    padding: 0.9rem 1rem;
    border-radius: 16px;
    background: rgba(148, 163, 184, 0.05);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.folder-name {
    color: var(--text);
    font-weight: 600;
    cursor: pointer;
}

.folder-name:hover {
    color: var(--accent-2);
}

.folder-entry > .file-list,
.folder-entry > .folder-list {
    margin-top: 0.85rem;
}

.authorized-user-form {
    margin-top: 2rem;
}

.authorized-user-form label {
    display: block;
    margin-bottom: 0.65rem;
    color: var(--muted);
    font-weight: 600;
}

.authorized-user-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.authorized-user-controls input {
    flex: 1 1 16rem;
    min-width: 0;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.55);
    color: var(--text);
    font: inherit;
}

.authorized-user-controls .primary-cta {
    min-width: 130px;
    border: 0;
    cursor: pointer;
    font: inherit;
}

.authorized-users-heading {
    margin: 2.2rem 0 0;
    font-size: 1.4rem;
}

.authorized-user-list {
    display: grid;
    gap: 0.75rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.authorized-user-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 16px;
    background: rgba(148, 163, 184, 0.05);
}

.authorized-user-email {
    overflow-wrap: anywhere;
    font-weight: 600;
}

.admin-label {
    color: var(--accent-2);
    font-size: 0.85rem;
    font-weight: 700;
}

.remove-user-button {
    padding: 0.55rem 0.85rem;
    border: 1px solid rgba(248, 113, 113, 0.35);
    border-radius: 999px;
    background: rgba(248, 113, 113, 0.08);
    color: #fecaca;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
}

.remove-user-button:hover {
    background: rgba(248, 113, 113, 0.16);
}

.admin-notice {
    margin: 1.2rem 0 0;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(34, 211, 238, 0.25);
    border-radius: 14px;
    background: rgba(34, 211, 238, 0.08);
    color: var(--text);
}

.empty-state {
    opacity: 0.8;
}

.resume-page {
    padding: 2rem 1.4rem;
}

.resume-page h1 {
    margin-bottom: 1rem;
}

.resume-page h2 {
    margin: 2rem 0 1rem;
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    letter-spacing: -0.05em;
}

.resume-page h3 {
    margin-top: 1.8rem;
    margin-bottom: 0.7rem;
    font-size: 1.2rem;
    line-height: 1.5;
}

.resume-page p,
.resume-page li,
.resume-page ul {
    color: var(--muted);
    line-height: 1.8;
}

.resume-page .subtitle {
    display: inline-block;
    margin-top: 0.4rem;
    color: var(--accent-2);
    font-size: 0.95rem;
    font-weight: 600;
}

.resume-page ul {
    margin: 0.75rem 0 0 1.25rem;
    padding-left: 1rem;
}

.resume-page li + li {
    margin-top: 0.5rem;
}

.resume-page em {
    color: var(--text);
    font-style: italic;
}

.techImg {
    display: inline-flex;
    max-height: 2.8rem;
    width: auto;
    opacity: 0.95;
    filter: drop-shadow(0 12px 18px rgba(124, 58, 237, 0.16));
}

.sweetTitle {
    color: var(--text);
    font-weight: 800;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, #7c3aed 0%, #22d3ee 50%, #f59e0b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

@media (min-width: 768px) {
    .hide-desktop {
        display: none;
    }

    .hide-mobile {
        display: block;
    }

    nav ul {
        position: static;
        transform: none;
        background: transparent;
        border: 0;
        box-shadow: none;
        width: auto;
        height: auto;
        flex-direction: row;
        gap: 1.1rem;
        padding: 0;
    }

    nav ul li.hide-desktop {
        display: none;
    }

    nav ul li a {
        padding: 0.5rem 0.75rem;
        font-size: 0.95rem;
        color: rgba(237, 245, 255, 0.8);
    }

    .menu-backdrop {
        display: none;
    }

    .social-links {
        margin-top: 0;
        padding: 0;
    }

    .hero {
        grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    }

    .dashboard-shell {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

@media (max-width: 767px) {
    .header-left .home {
        display: none;
    }
}
