:root {
    --background: #090909;
    --surface: #111111;
    --surface-light: #191919;
    --surface-hover: #222222;

    --border: #292929;

    --text: #f5f5f5;
    --text-muted: #999999;

    --teal: #7892bd;
    --teal-dark: #526d99;

    --amber: #d6b875;
    --danger: #ef6464;

    --sidebar-width: 245px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    background: var(--background);
    color: var(--text);
    font-family: "DM Sans", sans-serif;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.hidden {
    display: none !important;
}


/* APP LAYOUT */

.app-layout {
    min-height: 100vh;
    display: flex;
}


/* SIDEBAR */

.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 20;

    display: flex;
    flex-direction: column;

    background: #0c0c0c;
    border-right: 1px solid var(--border);
}

.brand {
    height: 76px;
    padding: 0 24px;

    display: flex;
    align-items: center;
    gap: 11px;

    color: var(--text);
    text-decoration: none;

    font-size: 17px;
    font-weight: 800;
    letter-spacing: 1.1px;

    border-bottom: 1px solid var(--border);
}

.brand-icon {
    width: 33px;
    height: 33px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;
    background: #263750;
    color: #dce7f7;

    font-size: 21px;
    font-weight: 800;
}

.sidebar-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 16px 12px;
}

.sidebar-section {
    margin-bottom: 25px;
}

.sidebar-label {
    display: block;
    padding: 0 12px;
    margin-bottom: 9px;

    color: #777777;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.3px;
}

.nav-item {
    width: 100%;
    min-height: 41px;

    display: flex;
    align-items: center;
    gap: 12px;

    padding: 0 12px;
    margin-bottom: 3px;

    color: var(--text-muted);
    background: transparent;

    border: 0;
    border-radius: 7px;

    text-align: left;
    font-size: 13px;
    font-weight: 600;

    transition: 0.15s ease;
}

.nav-item:hover {
    color: var(--text);
    background: var(--surface-light);
}

.nav-item.active {
    color: #ffffff;
    background: #202020;
}

.nav-icon {
    width: 20px;
    text-align: center;
    font-size: 17px;
}

.nav-count {
    min-width: 20px;
    height: 20px;
    margin-left: auto;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #303030;
    color: #ffffff;

    border-radius: 20px;
    font-size: 10px;
    font-weight: 800;
}

.sidebar-bottom {
    padding: 14px;
    border-top: 1px solid var(--border);
}

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

.sidebar-user-info {
    min-width: 0;
    flex: 1;

    display: flex;
    flex-direction: column;
    gap: 3px;
}

.sidebar-user-info strong {
    overflow: hidden;
    color: var(--text);
    font-size: 12px;
    text-overflow: ellipsis;
}

.sidebar-user-info span {
    color: var(--text-muted);
    font-size: 10px;
}

.sidebar-login-button {
    width: 100%;
    padding: 11px;

    background: var(--surface-light);
    color: var(--text);

    border: 1px solid var(--border);
    border-radius: 7px;

    font-size: 12px;
    font-weight: 700;
}

.sidebar-login-button:hover {
    border-color: #777777;
}


/* AVATARS */

.avatar-circle {
    width: 35px;
    height: 35px;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #242a33;
    color: #dce7f7;

    border: 1px solid #3a4658;
    border-radius: 50%;

    font-size: 14px;
    font-weight: 800;
}

.avatar-circle.small {
    width: 29px;
    height: 29px;
    font-size: 12px;
}

.avatar-circle.large {
    width: 56px;
    height: 56px;
    font-size: 22px;
}


/* MAIN AREA */

.main-area {
    min-height: 100vh;
    width: calc(100% - var(--sidebar-width));
    margin-left: var(--sidebar-width);

    display: flex;
    flex-direction: column;
}

.topbar {
    height: 76px;
    flex-shrink: 0;

    padding: 0 34px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: #0c0c0c;
    border-bottom: 1px solid var(--border);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 11px;

    color: var(--text-muted);
    font-size: 12px;
}

.breadcrumb strong {
    color: var(--text);
    font-weight: 700;
}

.breadcrumb-divider {
    color: #666666;
}

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

.topbar-icon,
.icon-button {
    width: 35px;
    height: 35px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: transparent;
    color: var(--text-muted);

    border: 1px solid transparent;
    border-radius: 7px;

    font-size: 17px;
}

.topbar-icon:hover,
.icon-button:hover {
    background: var(--surface-light);
    color: var(--text);
}

.topbar-login-button {
    padding: 9px 18px;

    background: #f0f0f0;
    color: #111111;

    border: 0;
    border-radius: 6px;

    font-size: 12px;
    font-weight: 800;
}

.topbar-login-button:hover {
    background: #d8d8d8;
}

.topbar-profile {
    display: flex;
    align-items: center;
    gap: 9px;

    padding: 5px 10px;

    background: var(--surface-light);
    color: var(--text);

    border: 1px solid var(--border);
    border-radius: 7px;

    font-size: 12px;
    font-weight: 700;
}


/* PAGE CONTAINER */

.page-container {
    width: 100%;
    max-width: 1450px;
    flex: 1;

    margin: 0 auto;
    padding: 36px 38px;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

.page-heading {
    margin-bottom: 30px;
}

.page-heading h1 {
    margin-top: 7px;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -1px;
}

.page-heading p {
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 13px;
}

.eyebrow {
    color: #a8b8d1;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}


/* LANDING HERO WITH IMAGE FADE */

.landing-hero {
    position: relative;
    min-height: 430px;
    display: flex;
    align-items: center;
    padding: 55px 48px;
    margin-bottom: 48px;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid #292929;
    background: #090909;
}

.landing-video {
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
    z-index: 0;
}

.landing-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(
            90deg,
            #090909 0%,
            rgba(9, 9, 9, 0.96) 25%,
            rgba(9, 9, 9, 0.78) 48%,
            rgba(9, 9, 9, 0.15) 100%
        ),
        linear-gradient(
            0deg,
            #090909 0%,
            transparent 45%
        );
}

.landing-content {
    position: relative;
    z-index: 1;
    max-width: 650px;
}

.landing-hero h1 {
    margin-top: 15px;

    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -2px;
    font-weight: 800;
}

.landing-hero p {
    max-width: 520px;
    margin-top: 17px;

    color: #aaaaaa;
    font-size: 14px;
    line-height: 1.8;
}

.landing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;

    margin-top: 27px;
}

.landing-section-heading {
    margin-top: 10px;
}

.landing-studio {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;

    margin-top: 45px;
    padding: 30px;

    background: #111111;
    border: 1px solid #292929;
    border-radius: 9px;
}

.landing-studio h2 {
    margin-top: 9px;
    font-size: 22px;
}

.landing-studio p {
    max-width: 540px;
    margin-top: 8px;

    color: #999999;
    font-size: 12px;
    line-height: 1.7;
}


/* DASHBOARD WELCOME */

.welcome-section {
    min-height: 225px;
    position: relative;
    overflow: hidden;

    display: flex;
    align-items: center;

    padding: 35px 39px;
    margin-bottom: 39px;

    background: #141414;
    border: 1px solid #303030;
    border-radius: 11px;
}

.welcome-section h1 {
    max-width: 500px;
    margin-top: 12px;

    font-size: 35px;
    font-weight: 800;
    letter-spacing: -1.2px;
}

.welcome-section p {
    max-width: 450px;
    margin-top: 10px;

    color: #aaaaaa;
    font-size: 13px;
    line-height: 1.7;
}

.welcome-decoration {
    display: none;
}


/* SECTION HEADINGS */

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 17px;
}

.section-heading h2 {
    font-size: 19px;
    font-weight: 800;
}

.section-heading p {
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 12px;
}

.text-button {
    padding: 7px 0;

    background: transparent;
    color: #c3c3c3;

    border: 0;
    font-size: 12px;
    font-weight: 700;
}

.text-button:hover {
    color: #ffffff;
}

.second-heading {
    margin-top: 42px;
}


/* EXPERIENCE CARDS */

.experience-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 17px;
}

.experience-card {
    min-width: 0;
    overflow: hidden;

    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 9px;

    transition: transform 0.18s ease, border-color 0.18s ease;
}

.experience-card:hover {
    transform: translateY(-3px);
    border-color: #555555;
}

.experience-image {
    height: 155px;
    position: relative;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;
}

.image-one {
    background: #202832;
}

.image-two {
    background: #302a25;
}

.image-three {
    background: #24283a;
}

.preview-label {
    position: absolute;
    left: 12px;
    top: 12px;

    padding: 5px 8px;

    background: rgba(0, 0, 0, 0.75);
    color: #dddddd;

    border-radius: 4px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
}

.experience-symbol {
    color: rgba(255, 255, 255, 0.65);
    font-size: 60px;
}

.experience-info {
    padding: 15px;
}

.experience-info h3 {
    font-size: 14px;
    font-weight: 800;
}

.experience-info p {
    min-height: 34px;
    margin-top: 6px;

    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.6;
}

.experience-meta {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-top: 12px;
}

.experience-meta span {
    padding: 5px 8px;

    background: #202020;
    color: #bbbbbb;

    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
}


/* ACCOUNT PANEL */

.account-panel {
    min-height: 130px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 24px;

    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 9px;
}

.account-panel h2 {
    margin-top: 7px;
    font-size: 19px;
}

.account-panel p {
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 12px;
}

.account-panel-user {
    display: flex;
    align-items: center;
    gap: 15px;
}


/* BUTTONS */

.primary-button,
.secondary-button {
    min-height: 38px;
    padding: 0 17px;

    border-radius: 6px;
    font-size: 12px;
    font-weight: 800;

    transition: 0.15s ease;
}

.primary-button {
    background: #f0f0f0;
    color: #111111;
    border: 1px solid #f0f0f0;
}

.primary-button:hover {
    background: #d8d8d8;
}

.secondary-button {
    background: var(--surface-light);
    color: var(--text);
    border: 1px solid var(--border);
}

.secondary-button:hover:not(:disabled) {
    border-color: #777777;
}


/* EMPTY STATES */

.empty-state {
    min-height: 260px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 35px;

    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 9px;

    text-align: center;
}

.empty-icon {
    width: 54px;
    height: 54px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 16px;

    background: #202020;
    color: #d0d0d0;

    border-radius: 12px;
    font-size: 26px;
}

.empty-state h2 {
    font-size: 17px;
}

.empty-state p {
    max-width: 380px;
    margin-top: 8px;

    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.7;
}


/* PROFILE */

.profile-panel {
    display: flex;
    align-items: center;
    gap: 20px;

    padding: 25px;

    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 9px;
}

.profile-avatar {
    width: 78px;
    height: 78px;
    font-size: 30px;
}

.profile-panel h2 {
    font-size: 22px;
}

.profile-panel p {
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 12px;
}

.profile-status {
    display: inline-block;
    margin-top: 11px;

    color: #a8b8d1;
    font-size: 10px;
    font-weight: 700;
}


/* SETTINGS */

.settings-layout {
    display: grid;
    grid-template-columns: 185px minmax(0, 1fr);
    gap: 20px;
}

.settings-tabs {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.settings-tab {
    padding: 12px;

    background: transparent;
    color: var(--text-muted);

    border: 0;
    border-radius: 6px;

    text-align: left;
    font-size: 12px;
    font-weight: 700;
}

.settings-tab:hover {
    background: var(--surface-light);
    color: var(--text);
}

.settings-tab.active {
    background: #222222;
    color: #ffffff;
}

.settings-content {
    min-width: 0;
}

.settings-panel {
    display: none;

    padding: 25px;

    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 9px;
}

.settings-panel.active {
    display: block;
}

.settings-panel h2 {
    font-size: 17px;
}

.settings-panel > p {
    margin-top: 6px;
    margin-bottom: 22px;

    color: var(--text-muted);
    font-size: 12px;
}

.settings-field {
    display: flex;
    flex-direction: column;
    gap: 8px;

    margin-bottom: 17px;
}

.settings-field label {
    color: #c5c5c5;
    font-size: 11px;
    font-weight: 700;
}

.settings-field input {
    width: 100%;
    min-height: 42px;

    padding: 0 12px;

    background: #0b0b0b;
    color: var(--text);

    border: 1px solid var(--border);
    border-radius: 6px;

    outline: none;
    font-size: 12px;
}

.settings-field input:focus {
    border-color: #777777;
}

.settings-field input:disabled {
    color: #8fa0ad;
    cursor: not-allowed;
}

.settings-note {
    padding: 11px;

    background: #292318;
    color: #e2c98e;

    border-radius: 5px;
    font-size: 11px;
}

.settings-info-row {
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.settings-info-row div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.settings-info-row strong {
    font-size: 12px;
}

.settings-info-row span {
    color: var(--text-muted);
    font-size: 11px;
}


/* DELETE ACCOUNT */

.danger-zone {
    margin-top: 35px;
    padding-top: 25px;

    border-top: 1px solid #3a2525;
}

.danger-zone h3 {
    color: #f08080;
    font-size: 14px;
}

.danger-zone p {
    max-width: 550px;
    margin-top: 7px;

    color: #999999;
    font-size: 12px;
    line-height: 1.6;
}

.danger-button {
    margin-top: 15px;
    padding: 10px 15px;

    background: #321d1d;
    color: #ef9292;

    border: 1px solid #593030;
    border-radius: 6px;

    font-size: 11px;
    font-weight: 700;
}

.danger-note {
    margin-top: 10px !important;
    color: #888888 !important;
}


/* DOWNLOAD */

.download-hero {
    padding: 43px;

    background: #141414;
    border: 1px solid #303030;
    border-radius: 10px;
}

.download-hero h1 {
    max-width: 600px;
    margin-top: 13px;

    font-size: 35px;
    letter-spacing: -1px;
}

.download-hero p {
    max-width: 500px;
    margin-top: 12px;

    color: #aaaaaa;
    font-size: 13px;
    line-height: 1.7;
}

.development-label {
    width: fit-content;

    display: flex;
    align-items: center;
    gap: 8px;

    margin-top: 22px;
    padding: 8px 11px;

    background: rgba(214, 184, 117, 0.1);
    color: var(--amber);

    border: 1px solid rgba(214, 184, 117, 0.2);
    border-radius: 5px;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.6px;
}

.development-label span {
    width: 7px;
    height: 7px;

    background: var(--amber);
    border-radius: 50%;
}

.download-panel {
    display: flex;
    align-items: center;
    gap: 17px;

    margin-top: 20px;
    padding: 22px;

    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 9px;
}

.download-icon,
.studio-mark {
    width: 55px;
    height: 55px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #263750;
    color: #e0e9f7;

    border-radius: 11px;
    font-size: 30px;
    font-weight: 800;
}

.download-panel div:nth-child(2) {
    flex: 1;
}

.download-panel h2 {
    font-size: 15px;
}

.download-panel p {
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 11px;
}


/* STUDIO */

.studio-panel {
    padding: 40px;

    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 9px;
}

.studio-mark {
    margin-bottom: 20px;
}

.studio-panel h2 {
    font-size: 22px;
}

.studio-panel p {
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 12px;
}


/* FOOTER */

.footer {
    min-height: 55px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 38px;

    border-top: 1px solid var(--border);
    color: #777777;

    font-size: 10px;
}


/* AUTH MODAL */

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(5px);
}

.auth-modal {
    width: 100%;
    max-width: 420px;
    position: relative;

    padding: 32px;

    background: #111111;
    border: 1px solid #333333;
    border-radius: 11px;

    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.45);
}

.modal-close {
    position: absolute;
    right: 17px;
    top: 13px;

    width: 30px;
    height: 30px;

    background: transparent;
    color: var(--text-muted);

    border: 0;
    font-size: 23px;
}

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

    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;
}

.auth-heading {
    margin: 28px 0 23px;
}

.auth-heading h2 {
    font-size: 24px;
    letter-spacing: -0.5px;
}

.auth-heading p {
    margin-top: 7px;
    color: var(--text-muted);
    font-size: 12px;
}

.auth-submit {
    width: 100%;
    margin-top: 5px;
}

.auth-error {
    min-height: 17px;
    margin: 0 0 9px;

    color: var(--danger);
    font-size: 11px;
    line-height: 1.5;
}

.auth-switch {
    margin-top: 21px;
    color: var(--text-muted);
    text-align: center;
    font-size: 11px;
}

.auth-switch button {
    margin-left: 4px;

    background: transparent;
    color: #d0d0d0;

    border: 0;
    font-size: 11px;
    font-weight: 800;
}


/* RESPONSIVE */

@media (max-width: 1050px) {
    .experience-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    :root {
        --sidebar-width: 66px;
    }

    .brand {
        justify-content: center;
        padding: 0;
    }

    .brand > span {
        display: none;
    }

    .sidebar-scroll {
        padding: 14px 7px;
    }

    .sidebar-label,
    .nav-item > span:not(.nav-icon),
    .sidebar-user-info,
    .sidebar-login-button,
    .sidebar-user .icon-button {
        display: none;
    }

    .nav-item {
        justify-content: center;
        padding: 0;
    }

    .nav-icon {
        font-size: 19px;
    }

    .sidebar-bottom {
        padding: 12px 7px;
    }

    .sidebar-user {
        justify-content: center;
    }

    .main-area {
        width: calc(100% - var(--sidebar-width));
    }

    .topbar {
        padding: 0 16px;
    }

    .page-container {
        padding: 25px 18px;
    }

    .welcome-section {
        padding: 27px;
    }

    .welcome-section h1 {
        font-size: 27px;
    }

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

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

    .settings-tabs {
        flex-direction: row;
        overflow-x: auto;
    }

    .settings-tab {
        white-space: nowrap;
    }

    .account-panel {
        align-items: flex-start;
        flex-direction: column;
    }

    .landing-hero {
        min-height: 280px;
        padding: 30px 25px;
    }

    .landing-hero h1 {
        font-size: 37px;
    }

    .landing-studio {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer {
        padding: 0 18px;
    }
}

@media (max-width: 430px) {
    .breadcrumb {
        font-size: 10px;
    }

    .topbar-icon {
        display: none;
    }

    .page-heading h1 {
        font-size: 27px;
    }

    .landing-hero h1 {
        font-size: 32px;
    }

    .landing-actions button {
        width: 100%;
    }

    .download-hero {
        padding: 25px;
    }

    .download-hero h1 {
        font-size: 28px;
    }

    .download-panel {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .download-panel button {
        width: 100%;
    }
}

