* {
    box-sizing: border-box;
}

:root {
    --bg: #08070b;
    --bg-light: #0d0b12;

    --purple-dark: #3b176f;
    --purple: #9146ff;
    --purple-light: #b477ff;
    --purple-glow: rgba(145, 70, 255, 0.28);

    --gold-dark: #b88719;
    --gold: #f4c95d;
    --gold-light: #ffe59a;
    --gold-glow: rgba(244, 201, 93, 0.22);

    --panel: #12101a;
    --panel-purple: #181126;
    --panel-gold: #19150d;
    --panel-hover: #201733;

    --border: #302342;
    --border-purple: rgba(145, 70, 255, 0.45);
    --border-gold: rgba(244, 201, 93, 0.30);

    --text: #faf9ff;
    --text-secondary: #d3cede;
    --muted: #938d9e;

    --success: #45d483;
    --warning: #f2bd5b;
    --danger: #f16b6b;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;

    background:
        radial-gradient(
            circle at 8% 10%,
            rgba(145, 70, 255, 0.12),
            transparent 28%
        ),
        radial-gradient(
            circle at 90% 8%,
            rgba(244, 201, 93, 0.09),
            transparent 24%
        ),
        radial-gradient(
            circle at 50% 100%,
            rgba(145, 70, 255, 0.08),
            transparent 35%
        ),
        var(--bg);

    color: var(--text);

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    font-size: 14px;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

/* =========================================
   APP
========================================= */

.app-shell {
    min-height: 100vh;
    display: flex;
}

/* =========================================
   SIDEBAR
========================================= */

.sidebar {
    position: sticky;
    top: 0;

    width: 250px;
    height: 100vh;

    flex-shrink: 0;

    padding: 22px 15px;

    border-right: 1px solid var(--border-purple);

    background:
        linear-gradient(
            180deg,
            #130d20 0%,
            #0b0810 55%,
            #100c08 100%
        );

    box-shadow:
        15px 0 45px rgba(0, 0, 0, 0.25);

    display: flex;
    flex-direction: column;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 9px 10px 30px;
}

.brand-mark {
    width: 44px;
    height: 44px;

    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            var(--purple-light) 0%,
            var(--purple) 55%,
            var(--purple-dark) 100%
        );

    display: grid;
    place-items: center;

    color: white;

    font-size: 17px;
    font-weight: 900;

    box-shadow:
        0 0 28px var(--purple-glow);
}

.brand strong {
    display: block;

    color: #ffffff;

    font-size: 17px;
    font-weight: 800;

    letter-spacing: -0.03em;
}

.brand span {
    display: block;

    margin-top: 2px;

    color: var(--gold);

    font-size: 11px;
    font-weight: 700;
}

/* =========================================
   NAVIGATION
========================================= */

.navigation {
    display: grid;
    gap: 6px;
}

.nav-item {
    position: relative;

    display: flex;
    align-items: center;

    min-height: 45px;

    padding: 0 14px;

    border: 1px solid transparent;
    border-radius: 11px;

    color: var(--text-secondary);

    font-size: 13px;
    font-weight: 650;

    transition:
        background 0.18s ease,
        color 0.18s ease,
        border-color 0.18s ease,
        transform 0.18s ease;
}

.nav-item:hover {
    transform: translateX(2px);

    background:
        linear-gradient(
            90deg,
            rgba(145, 70, 255, 0.15),
            rgba(244, 201, 93, 0.035)
        );

    border-color: var(--border-purple);

    color: white;
}

.nav-item.active {
    border-color: var(--border-purple);

    background:
        linear-gradient(
            90deg,
            rgba(145, 70, 255, 0.28),
            rgba(145, 70, 255, 0.10)
        );

    color: white;

    box-shadow:
        inset 3px 0 0 var(--gold),
        0 8px 25px rgba(145, 70, 255, 0.12);
}

.nav-item.active::after {
    content: "";

    position: absolute;

    right: 13px;

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: var(--gold);

    box-shadow:
        0 0 12px var(--gold-glow);
}

.sidebar-footer {
    margin-top: auto;

    padding: 16px 10px 3px;

    border-top: 1px solid var(--border);

    color: var(--muted);

    font-size: 11px;
}

.sidebar-footer span {
    display: block;

    color: var(--gold-light);

    font-weight: 650;
}

.sidebar-footer small {
    display: block;

    margin-top: 3px;

    color: var(--muted);
}

/* =========================================
   MAIN
========================================= */

.main-content {
    width: 100%;
    max-width: 1500px;

    margin: 0 auto;

    padding: 35px 42px 80px;
}

/* =========================================
   TOPBAR
========================================= */

.topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 24px;

    margin-bottom: 31px;
}

.eyebrow,
.section-label {
    margin: 0 0 8px;

    color: var(--gold);

    font-size: 10px;
    font-weight: 850;

    letter-spacing: 0.14em;

    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 9px;

    background:
        linear-gradient(
            90deg,
            #ffffff 0%,
            var(--gold-light) 45%,
            var(--purple-light) 100%
        );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;

    font-size: clamp(31px, 4vw, 46px);

    line-height: 1.05;

    letter-spacing: -0.045em;
}

h2 {
    margin-bottom: 10px;

    color: #ffffff;

    font-size: 24px;

    letter-spacing: -0.025em;
}

h3 {
    margin-bottom: 7px;

    color: #ffffff;

    font-size: 15px;
}

.subtitle {
    max-width: 720px;

    margin-bottom: 0;

    color: var(--text-secondary);

    font-size: 14px;
}

/* =========================================
   STATUS
========================================= */

.status-pill {
    display: inline-flex;
    align-items: center;

    padding: 8px 13px;

    border: 1px solid rgba(244, 201, 93, 0.28);

    border-radius: 999px;

    background:
        linear-gradient(
            135deg,
            rgba(244, 201, 93, 0.08),
            rgba(145, 70, 255, 0.08)
        );

    color: var(--gold-light);

    font-size: 11px;
    font-weight: 700;

    white-space: nowrap;
}

.status-pill span {
    width: 7px;
    height: 7px;

    margin-right: 8px;

    border-radius: 50%;

    background: var(--success);

    box-shadow:
        0 0 0 4px rgba(69, 212, 131, 0.08),
        0 0 13px rgba(69, 212, 131, 0.5);
}

/* =========================================
   PANELS
========================================= */

.hero-card,
.dashboard-card,
.workspace-card {
    position: relative;

    border: 1px solid var(--border);

    border-radius: 19px;

    background:
        linear-gradient(
            145deg,
            rgba(145, 70, 255, 0.08),
            rgba(244, 201, 93, 0.025) 48%,
            rgba(0, 0, 0, 0) 85%
        ),
        var(--panel);

    box-shadow:
        0 20px 55px rgba(0, 0, 0, 0.3);
}

.hero-card {
    overflow: hidden;

    padding: 31px;

    margin-bottom: 20px;
}

.hero-card::before {
    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    right: -180px;
    top: -220px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(145, 70, 255, 0.26),
            transparent 68%
        );

    pointer-events: none;
}

.hero-card::after {
    content: "";

    position: absolute;

    width: 280px;
    height: 280px;

    right: 25%;
    bottom: -240px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(244, 201, 93, 0.09),
            transparent 70%
        );

    pointer-events: none;
}

.hero-card > div:first-child {
    position: relative;

    z-index: 1;

    max-width: 780px;
}

.hero-card p {
    color: var(--text-secondary);
}

/* =========================================
   VOD FORM
========================================= */

.vod-form {
    position: relative;

    z-index: 2;

    margin-top: 26px;
}

.vod-form label {
    display: block;

    margin-bottom: 8px;

    color: var(--gold-light);

    font-size: 11px;
    font-weight: 700;
}

.input-row {
    display: flex;

    gap: 9px;
}

input,
select,
textarea {
    width: 100%;

    border: 1px solid var(--border);

    border-radius: 10px;

    outline: none;

    background:
        linear-gradient(
            180deg,
            rgba(145, 70, 255, 0.035),
            rgba(0, 0, 0, 0)
        ),
        #090b10;

    color: var(--text);

    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
}

input {
    min-width: 0;

    padding: 14px 15px;

    font-size: 13px;
}

input::placeholder {
    color: #626878;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--purple);

    background:
        rgba(145, 70, 255, 0.07),
        #090b10;

    box-shadow:
        0 0 0 3px rgba(145, 70, 255, 0.12),
        0 0 25px rgba(145, 70, 255, 0.08);
}

/* =========================================
   BUTTONS
========================================= */

button {
    min-height: 46px;

    border: 0;

    border-radius: 10px;

    padding: 0 21px;

    background:
        linear-gradient(
            135deg,
            var(--purple-light) 0%,
            var(--purple) 52%,
            var(--purple-dark) 100%
        );

    color: white;

    font-size: 12px;

    font-weight: 780;

    box-shadow:
        0 10px 27px rgba(145, 70, 255, 0.30);

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        filter 0.18s ease;
}

button:hover {
    transform: translateY(-1px);

    box-shadow:
        0 14px 34px rgba(145, 70, 255, 0.40);

    filter: brightness(1.08);
}

button:active {
    transform: translateY(0);
}

/* =========================================
   DASHBOARD CARDS
========================================= */

.dashboard-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 15px;

    margin-bottom: 20px;
}

.dashboard-card {
    min-height: 165px;

    padding: 23px;

    box-shadow: none;

    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease;
}

.dashboard-card:hover {
    transform: translateY(-3px);

    border-color: var(--border-purple);

    background:
        linear-gradient(
            145deg,
            rgba(145, 70, 255, 0.13),
            rgba(244, 201, 93, 0.04)
        ),
        var(--panel-hover);

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.28),
        0 0 0 1px rgba(145, 70, 255, 0.07);
}

.card-icon {
    width: 35px;
    height: 35px;

    display: grid;

    place-items: center;

    margin-bottom: 24px;

    border: 1px solid var(--border-gold);

    border-radius: 9px;

    background:
        linear-gradient(
            135deg,
            rgba(145, 70, 255, 0.13),
            rgba(244, 201, 93, 0.10)
        );

    color: var(--gold-light);

    font-size: 10px;

    font-weight: 850;

    box-shadow:
        0 0 20px rgba(244, 201, 93, 0.045);
}

.dashboard-card p {
    max-width: 330px;

    margin-bottom: 0;

    color: var(--muted);

    font-size: 13px;
}

/* =========================================
   WORKSPACE
========================================= */

.workspace-card {
    padding: 27px;

    box-shadow: none;
}

.project-list {
    display: grid;

    gap: 10px;

    margin-top: 19px;
}

.project-item {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding: 17px 18px;

    border: 1px solid var(--border);

    border-radius: 13px;

    background:
        linear-gradient(
            90deg,
            rgba(145, 70, 255, 0.035),
            rgba(244, 201, 93, 0.015)
        ),
        var(--panel-soft);

    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        transform 0.18s ease;
}

.project-item:hover {
    border-color: var(--border-purple);

    background:
        linear-gradient(
            90deg,
            rgba(145, 70, 255, 0.10),
            rgba(244, 201, 93, 0.035)
        ),
        var(--panel-hover);

    transform: translateY(-1px);
}

.project-main {
    min-width: 0;
}

.project-name {
    margin-bottom: 5px;

    color: #ffffff;

    font-size: 14px;
}

.project-vod {
    max-width: 700px;

    margin: 0;

    overflow: hidden;

    color: var(--muted);

    font-size: 12px;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.project-meta {
    display: flex;

    align-items: center;

    gap: 9px;

    flex-shrink: 0;
}

.project-status {
    padding: 5px 10px;

    border: 1px solid var(--border-gold);

    border-radius: 999px;

    background:
        linear-gradient(
            90deg,
            rgba(244, 201, 93, 0.08),
            rgba(145, 70, 255, 0.07)
        );

    color: var(--gold-light);

    font-size: 10px;

    font-weight: 700;
}

.project-duration {
    color: var(--muted);

    font-size: 11px;
}

/* =========================================
   EMPTY STATE
========================================= */

.empty-state {
    margin-top: 18px;

    padding: 45px 30px;

    border: 1px dashed var(--border-light);

    border-radius: 14px;

    background:
        radial-gradient(
            circle at center,
            rgba(145, 70, 255, 0.07),
            transparent 65%
        );

    text-align: center;
}

.empty-state strong {
    display: block;

    margin-bottom: 7px;

    color: var(--gold-light);

    font-size: 14px;
}

.empty-state span {
    display: block;

    color: var(--muted);

    font-size: 12px;
}

/* =========================================
   FORM MESSAGE
========================================= */

.form-message {
    display: none;

    margin-top: 11px;

    padding: 11px 13px;

    border-radius: 10px;

    font-size: 12px;
}

.form-message.success {
    display: block;

    border: 1px solid rgba(69, 212, 131, 0.22);

    background: rgba(69, 212, 131, 0.06);

    color: #a9efc6;
}

.form-message.error {
    display: block;

    border: 1px solid rgba(241, 107, 107, 0.22);

    background: rgba(241, 107, 107, 0.06);

    color: #ffb0b0;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1050px) {
    .sidebar {
        width: 215px;
    }

    .main-content {
        padding: 30px 30px 60px;
    }
}

@media (max-width: 850px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-card {
        min-height: auto;
    }
}

@media (max-width: 700px) {
    .app-shell {
        display: block;
    }

    .sidebar {
        position: static;

        width: 100%;

        height: auto;

        min-height: auto;

        border-right: 0;

        border-bottom: 1px solid var(--border-purple);

        padding: 18px;
    }

    .brand {
        padding: 0 3px 18px;
    }

    .navigation {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .sidebar-footer {
        margin-top: 18px;

        padding: 13px 3px 0;
    }

    .main-content {
        padding: 25px 17px 45px;
    }

    .topbar {
        display: block;
    }

    .status-pill {
        margin-top: 15px;
    }

    .input-row {
        display: block;
    }

    button {
        width: 100%;

        margin-top: 9px;
    }

    .hero-card {
        padding: 22px;
    }

    .workspace-card {
        padding: 21px;
    }

    .project-item {
        display: block;
    }

    .project-meta {
        margin-top: 12px;
    }

    .project-vod {
        max-width: 100%;
    }
}

@media (max-width: 420px) {
    h1 {
        font-size: 30px;
    }

    h2 {
        font-size: 21px;
    }

    .navigation {
        grid-template-columns: 1fr;
    }
}