@font-face {
    font-family: "Geist";
    src: url("../fonts/geist-regular.woff2") format("woff2");
    font-display: swap;
    font-style: normal;
    font-weight: 400;
}

@font-face {
    font-family: "Geist";
    src: url("../fonts/geist-medium.woff2") format("woff2");
    font-display: swap;
    font-style: normal;
    font-weight: 500 700;
}

@font-face {
    font-family: "Albert Sans";
    src: url("../fonts/albert-sans-regular.woff2") format("woff2");
    font-display: swap;
    font-style: normal;
    font-weight: 400 700;
}

:root {
    --bg: #08070a;
    --surface: #0d0c0f;
    --surface2: #131216;
    --border: rgba(255, 255, 255, 0.075);
    --border-hover: rgba(255, 255, 255, 0.14);
    --text: #eeedee;
    --text-muted: rgba(238, 237, 238, 0.46);
    --text-dim: rgba(238, 237, 238, 0.68);
}

html {
    background: var(--bg);
    scroll-behavior: smooth;
}

body {
    min-height: 100svh;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: "Geist", sans-serif;
    font-size: 16px;
    letter-spacing: -0.03em;
}

button,
input,
textarea,
select {
    font: inherit;
}

.mobile-menu-toggle {
    display: none;
}

/* Download-page navigation */
#main-nav {
    width: calc(100% - 32px);
    max-width: 1240px;
    height: 68px;
    margin: 16px auto 0;
    padding: 8px 10px 8px 16px;
    position: sticky;
    top: 12px;
    z-index: 100;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(8, 7, 10, 0.88);
    box-shadow: 0 14px 44px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(18px);
}

#main-nav .nav-left {
    display: contents;
}

#main-nav .logo {
    position: relative;
    z-index: 2;
    color: #fff;
}

#main-nav .logo-mark {
    width: 116px;
    height: 42px;
    border-radius: 0;
    overflow: hidden;
}

#main-nav .logo-mark img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
}

#main-nav .nav-links {
    min-height: 0;
    padding: 4px;
    position: absolute;
    left: 50%;
    display: flex;
    align-items: center;
    gap: 2px;
    transform: translateX(-50%);
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
}

#main-nav .nav-links a {
    padding: 9px 14px;
    border-radius: 999px;
    background: transparent;
    color: rgba(238, 237, 238, 0.58);
    font-family: "Geist", sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

#main-nav .nav-links a:hover {
    background: transparent;
    color: #eeedee;
}

#main-nav .nav-links a.active {
    background: #fff;
    color: #08070a;
}

#main-nav .nav-right {
    margin-left: auto;
}

#main-nav .user-pill {
    min-height: 44px;
    padding: 4px 10px 4px 4px;
    gap: 7px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: none;
}

#main-nav .user-pill:hover {
    border-color: rgba(255, 255, 255, 0.11);
    background: rgba(255, 255, 255, 0.1);
}

#main-nav .user-pill::after {
    content: "";
    width: 5px;
    height: 5px;
    margin: -3px 1px 0 1px;
    border-right: 1px solid rgba(255, 255, 255, 0.42);
    border-bottom: 1px solid rgba(255, 255, 255, 0.42);
    transform: rotate(45deg);
    transition: transform 0.15s ease;
}

#main-nav .user-pill[aria-expanded="true"]::after {
    transform: rotate(225deg);
}

#main-nav .user-avatar {
    width: 34px;
    height: 34px;
    background: #fff;
    color: #08070a;
    font-family: "Geist", sans-serif;
    font-size: 13px;
    font-weight: 600;
}

#main-nav .user-name {
    display: none;
}

/* Account panel */
#main-nav .user-dropdown {
    width: 176px;
    top: calc(100% + 10px);
    right: 0;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background: #0d0c0f;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.56);
    backdrop-filter: blur(18px);
    transform: translateY(6px);
    transition: opacity 0.16s ease, visibility 0.16s ease, transform 0.16s ease;
}

#main-nav .user-dropdown.active {
    transform: translateY(0);
}

#main-nav .dd-header {
    display: none;
}

#main-nav .dd-avatar {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
    background: #fff;
    color: #09090a;
    font-size: 14px;
    font-weight: 600;
}

#main-nav .dd-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#main-nav .dd-identity {
    min-width: 0;
}

#main-nav .dd-name {
    overflow: hidden;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#main-nav .dd-status {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.48);
    font-size: 11px;
}

#main-nav .dd-status span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #8dd5a2;
    box-shadow: 0 0 0 3px rgba(141, 213, 162, 0.09);
}

#main-nav .dd-actions {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

#main-nav .dd-item,
#main-nav .dd-item.danger {
    width: 100%;
    min-height: 40px;
    padding: 0 11px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: rgba(255, 255, 255, 0.72);
    font-family: "Geist", sans-serif;
    text-align: left;
    transition: background-color 0.14s ease, border-color 0.14s ease;
}

#main-nav .dd-item svg,
#main-nav .dd-item.danger svg {
    width: 30px;
    height: 30px;
    padding: 7px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.78);
    opacity: 1;
}

#main-nav .dd-item-copy {
    display: grid;
    gap: 2px;
}

#main-nav .dd-item-copy strong {
    color: inherit;
    font-size: 13px;
    font-weight: 400;
}

#main-nav .dd-item-copy small {
    color: rgba(255, 255, 255, 0.4);
    font-size: 10px;
    font-weight: 400;
}

#main-nav .dd-item:hover,
#main-nav .dd-item:focus-visible {
    outline: 0;
    background: rgba(255, 255, 255, 0.055);
}

#main-nav .dd-divider {
    height: 1px;
    margin: 4px 6px;
    background: rgba(255, 255, 255, 0.08);
}

#main-nav .dd-item.danger {
    min-height: 40px;
    padding: 0 11px;
    background: transparent;
}

#main-nav .dd-item.danger:hover,
#main-nav .dd-item.danger:focus-visible {
    border-color: rgba(255, 255, 255, 0.13);
    background: rgba(255, 255, 255, 0.045);
}

/* Account page */
.profile-main {
    width: calc(100% - 32px);
    max-width: 1240px;
    margin: 0 auto;
    padding: 36px 0 104px;
    flex: 1;
}

.profile-intro {
    width: 100%;
    max-width: 760px;
    min-height: 260px;
    padding: 20px 8px 42px;
    display: flex;
    align-items: center;
}

.profile-intro-copy {
    padding: 20px 0;
}

.profile-kicker {
    margin-bottom: 18px;
    color: rgba(238, 237, 238, 0.46);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.1em;
}

.profile-intro h1 {
    margin: 0;
    color: #eeedee;
    font-family: "Albert Sans", "Geist", sans-serif;
    font-size: clamp(48px, 5vw, 66px);
    font-weight: 400;
    line-height: 0.94;
    letter-spacing: -0.065em;
}

.profile-lede {
    max-width: 550px;
    margin-top: 24px;
    color: rgba(238, 237, 238, 0.58);
    font-size: 15px;
    line-height: 1.5;
}

.page-tabs {
    width: fit-content;
    margin: 0 0 22px;
    padding: 4px;
    justify-content: flex-start;
    gap: 2px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
}

.page-tab {
    min-height: 42px;
    padding: 10px 18px;
    gap: 8px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(238, 237, 238, 0.5);
    font-family: "Geist", sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.03em;
}

.page-tab:hover {
    background: transparent;
    color: #eeedee;
}

.page-tab.active {
    border: 0;
    background: #fff;
    color: #08070a;
}

.page-tab svg {
    width: 15px;
    height: 15px;
    opacity: 0.62;
}

.page-content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: minmax(280px, 350px) minmax(0, 1fr);
    gap: 20px;
    align-items: stretch;
}

.profile-card,
.right-col {
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
}

.profile-card {
    position: relative;
    top: auto;
    height: 100%;
    min-height: 540px;
    overflow: hidden;
    isolation: isolate;
    background: #0a090b;
}

.card-banner {
    position: absolute;
    inset: 0;
    z-index: -2;
    height: auto;
    background: #111;
}

.card-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.04) 20%, rgba(0, 0, 0, 0.28) 52%, rgba(5, 5, 6, 0.96) 82%, #08070a 100%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.12), transparent 55%);
    pointer-events: none;
}

.card-banner img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: 50% 52%;
    filter: brightness(0.9) saturate(0.86) contrast(1.04);
}

.card-body {
    min-height: 100%;
    padding: 28px 24px 24px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.card-avatar {
    width: 52px;
    height: 52px;
    margin: 0 0 14px;
    border: 0;
    background: #fff;
    color: #08070a;
    font-family: "Geist", sans-serif;
    font-size: 18px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

.card-username {
    margin-top: 0;
    color: #fff;
    font-family: "Albert Sans", "Geist", sans-serif;
    font-size: 27px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.05em;
}

.role-tag {
    padding: 5px 9px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.24);
    color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    font-family: "Geist", sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: none;
}

.card-sep {
    margin: 20px 0 17px;
    background: rgba(255, 255, 255, 0.14);
}

.card-stats-title,
.field-label {
    color: rgba(238, 237, 238, 0.4);
    font-family: "Geist", sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.profile-card .card-stats-title {
    color: rgba(255, 255, 255, 0.5);
}

.card-stat-row {
    min-height: 44px;
    padding: 10px 0;
}

.card-stat-row + .card-stat-row {
    border-top-color: rgba(255, 255, 255, 0.11);
}

.stat-label,
.stat-value {
    font-family: "Geist", sans-serif;
    font-size: 13px;
}

.stat-label {
    color: rgba(255, 255, 255, 0.58);
}

.stat-value {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 500;
}

.card-actions {
    margin-top: 20px;
}

.btn-outline,
.btn-manage {
    min-height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    background: #fff;
    color: #08070a;
    font-family: "Geist", sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.025em;
}

.btn-outline:hover,
.btn-manage:hover {
    border-color: rgba(255, 255, 255, 0.1);
    background: #f4f4f4;
    color: #08070a;
}

.right-col {
    height: 100%;
    min-height: 488px;
    overflow: hidden;
}

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

.section-block {
    margin: 0;
    padding: 32px;
    border-bottom: 1px solid var(--border);
}

.section-block:last-child,
.section-block[style*="border-bottom:none"] {
    padding-bottom: 32px !important;
}

.section-heading {
    margin-bottom: 7px;
    color: #eeedee;
    font-family: "Albert Sans", "Geist", sans-serif;
    font-size: 26px;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.05em;
}

.section-desc {
    margin-bottom: 24px;
    color: rgba(238, 237, 238, 0.46);
    font-size: 13px;
    line-height: 1.5;
}

.field-label {
    margin-bottom: 10px;
}

.linked-row,
.license-field {
    min-height: 72px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.035);
}

.linked-icon {
    width: 40px;
    height: 40px;
    background: #fff;
}

.linked-icon svg {
    width: 17px;
    height: 17px;
    color: #08070a;
}

.linked-name {
    color: #eeedee;
    font-size: 14px;
    font-weight: 500;
}

.linked-id {
    margin-top: 3px;
    color: rgba(238, 237, 238, 0.38);
    font-family: "Geist", monospace;
    font-size: 11px;
}

.linked-tag {
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    color: rgba(238, 237, 238, 0.62);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: none;
}

.sub-table {
    margin: 2px 0 0;
    border-top: 1px solid var(--border);
}

.sub-row {
    min-height: 58px;
    padding: 15px 0;
    border-bottom-color: var(--border);
}

.sub-label,
.sub-value {
    font-family: "Geist", sans-serif;
    font-size: 13px;
}

.sub-label {
    color: rgba(238, 237, 238, 0.46);
}

.sub-value {
    color: rgba(238, 237, 238, 0.8);
    font-weight: 500;
    text-align: right;
}

.license-field {
    min-height: 64px;
}

.license-text {
    color: #eeedee;
    font-family: "Geist", monospace;
    font-size: 14px;
    letter-spacing: 0.08em;
}

.license-action {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: rgba(238, 237, 238, 0.48);
}

.license-action:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.license-note {
    margin-top: 14px;
    color: rgba(238, 237, 238, 0.38);
    font-size: 12px;
    line-height: 1.5;
}

.btn-manage {
    width: fit-content;
    min-height: 48px;
    padding: 10px 10px 10px 20px;
    margin-top: 22px;
    justify-content: center;
    gap: 18px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: #08070a;
    font-size: 13px;
    font-weight: 500;
}

.btn-manage > span:last-child {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #111114;
    color: #fff;
    font-size: 16px;
}

/* Footer */
.footer {
    width: calc(100% - 32px);
    max-width: 1240px;
    margin: 0 auto 16px;
    padding: 28px 30px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
}

.footer-inner {
    max-width: none;
}

.footer-copy,
.footer-links a {
    color: rgba(238, 237, 238, 0.42);
    font-family: "Geist", sans-serif;
    font-size: 12px;
}

.footer-links a:hover {
    color: #fff;
}

@media (max-width: 980px) {
    #main-nav .nav-links a {
        padding-inline: 11px;
        font-size: 13px;
    }

    #main-nav .user-name {
        display: none;
    }

    .profile-main {
        padding-top: 42px;
    }

}

@media (max-width: 809px) {
    #main-nav {
        width: calc(100% - 24px);
        margin-top: 12px;
        padding-left: 12px;
    }

    #main-nav .logo-mark { width: 108px; height: 40px; }

    #main-nav .mobile-menu-toggle {
        width: 102px;
        height: 50px;
        margin-left: auto;
        padding: 8px 8px 8px 15px;
        position: relative;
        z-index: 4;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        border: 1px solid var(--border);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.06);
        color: #fff;
        font-family: "Geist", sans-serif;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
    }

    #main-nav .mobile-menu-icon {
        width: 28px;
        height: 28px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        border-radius: 50%;
        background: #fff;
    }

    #main-nav .mobile-menu-icon i {
        width: 11px;
        height: 1px;
        background: #08070a;
    }

    #main-nav .nav-links {
        width: 220px;
        min-height: 0;
        padding: 12px;
        top: 62px;
        right: 0;
        left: auto;
        display: none;
        flex-direction: column;
        align-items: stretch;
        transform: none;
        border-radius: 18px;
        background: rgba(8, 7, 10, 0.98);
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    }

    #main-nav.mobile-open .nav-links {
        display: flex;
    }

    #main-nav .nav-links a {
        padding: 11px 14px;
        text-align: left;
    }

    #main-nav .nav-right {
        display: none;
    }

    .profile-main {
        width: calc(100% - 40px);
        padding: 48px 0 88px;
    }

    .profile-intro {
        min-height: 0;
        padding: 16px 4px 38px;
    }

    .profile-intro-copy {
        padding: 28px 0 18px;
    }

    .profile-intro h1 {
        font-size: clamp(46px, 10vw, 62px);
    }

    .page-content {
        grid-template-columns: 1fr;
    }

    .profile-card {
        position: static;
        min-height: 570px;
    }

    .card-banner {
        height: auto;
    }

    .card-body {
        min-height: 570px;
    }

    .right-col {
        min-height: 0;
    }

    .footer {
        width: calc(100% - 24px);
    }
}

@media (max-width: 560px) {
    .profile-main {
        width: calc(100% - 32px);
        padding-top: 38px;
    }

    .profile-intro {
        padding-bottom: 36px;
    }

    .profile-intro-copy {
        padding-top: 20px;
    }

    .profile-intro h1 {
        font-size: 44px;
    }

    .profile-lede {
        font-size: 14px;
    }

    .page-tabs {
        width: 100%;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .page-tabs::-webkit-scrollbar {
        display: none;
    }

    .page-tab {
        flex: 1 0 auto;
        justify-content: center;
        padding-inline: 14px;
        font-size: 13px;
    }

    .section-block {
        padding: 24px 20px;
    }

    .section-block:last-child,
    .section-block[style*="border-bottom:none"] {
        padding-bottom: 24px !important;
    }

    .section-heading {
        font-size: 23px;
    }

    .linked-tag {
        display: none;
    }

    .sub-row {
        gap: 16px;
    }

    .sub-value {
        max-width: 58%;
        overflow-wrap: anywhere;
    }

    .license-text {
        font-size: 12px;
    }

    .footer {
        padding: 24px;
    }

    .footer-inner {
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
