:root {
    --bg-deep: #0a0c10;
    --bg-panel: #12161d;
    --text: #f2f0eb;
    --text-muted: rgba(242, 240, 235, 0.72);
    --accent: #c4a35a;
    --accent-hot: #e0b85c;
    --steel: #6f879c;
    --line: rgba(242, 240, 235, 0.14);
    --discord: #5865f2;
    --font-display: "Bebas Neue", Impact, Haettenschweiler, sans-serif;
    --font-body: "Manrope", "Segoe UI", sans-serif;
    --nav-h: 4.5rem;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg-deep);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 20;
    height: var(--nav-h);
    background: linear-gradient(to bottom, rgba(10, 12, 16, 0.72), rgba(10, 12, 16, 0));
    backdrop-filter: blur(2px);
    opacity: 0;
    transform: translateY(-12px);
    animation: navIn 0.8s var(--ease) 0.1s forwards;
    transition: background 0.25s ease;
}

.site-header.is-scrolled {
    background: rgba(10, 12, 16, 0.88);
    backdrop-filter: blur(10px);
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-brand {
    display: inline-flex;
    align-items: center;
}

.nav-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 6px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.25rem;
    margin: 0;
    padding: 0;
    flex: 1;
}

.nav-link {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--text);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.nav-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--line);
}

.nav-username {
    max-width: 10rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 2.65rem;
    padding: 0.7rem 1.25rem;
    border: 1px solid transparent;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: transform 0.2s var(--ease), background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--accent);
    color: #141108;
}

.btn-primary:hover {
    background: var(--accent-hot);
}

.btn-discord {
    background: var(--discord);
    color: #fff;
}

.btn-discord:hover {
    filter: brightness(1.08);
}

.btn-ghost,
.btn-ghost-light {
    background: transparent;
    border-color: var(--line);
    color: var(--text);
}

.btn-ghost:hover,
.btn-ghost-light:hover {
    border-color: rgba(242, 240, 235, 0.35);
    background: rgba(255, 255, 255, 0.05);
}

.page-home {
    overflow-x: hidden;
}

.page-home main {
    min-height: 100vh;
}

.hero {
    position: relative;
    min-height: 100vh;
    display: grid;
    place-items: end start;
    overflow: hidden;
}

.hero-media {
    position: absolute;
    inset: 0;
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center;
    transform: scale(1.08);
    animation: heroZoom 12s var(--ease) forwards;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(8, 10, 14, 0.88) 0%, rgba(8, 10, 14, 0.55) 48%, rgba(8, 10, 14, 0.28) 100%),
        linear-gradient(to top, rgba(8, 10, 14, 0.85) 0%, transparent 45%);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(720px, 100%);
    padding: calc(var(--nav-h) + 3rem) 1.5rem 4.5rem;
}

.hero-logo {
    display: block;
    width: clamp(9.5rem, 28vw, 16rem);
    height: auto;
    margin: 0 0 1rem;
    object-fit: contain;
    opacity: 0;
    transform: translateY(28px);
    animation: riseIn 0.9s var(--ease) 0.25s forwards;
}

.hero-tagline {
    margin: 0 0 1.75rem;
    max-width: 18ch;
    font-family: var(--font-body);
    font-size: clamp(1.15rem, 2.4vw, 1.55rem);
    font-weight: 500;
    color: var(--text-muted);
    opacity: 0;
    transform: translateY(24px);
    animation: riseIn 0.9s var(--ease) 0.4s forwards;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    opacity: 0;
    transform: translateY(20px);
    animation: riseIn 0.9s var(--ease) 0.55s forwards;
}

.page-inner {
    min-height: 100vh;
    background:
        radial-gradient(ellipse 80% 50% at 10% 0%, rgba(111, 135, 156, 0.18), transparent 55%),
        radial-gradient(ellipse 60% 40% at 90% 10%, rgba(196, 163, 90, 0.12), transparent 50%),
        linear-gradient(180deg, #10141b 0%, var(--bg-deep) 100%);
}

.inner-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: calc(var(--nav-h) + 2rem) 1.5rem 3rem;
}

.inner-panel {
    width: min(520px, 100%);
    padding: 2rem 0;
}

.inner-panel h1 {
    margin: 0 0 0.75rem;
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 6vw, 3.6rem);
    letter-spacing: 0.04em;
    line-height: 1;
}

.inner-panel p {
    margin: 0 0 1.5rem;
    color: var(--text-muted);
}

.auth-panel {
    text-align: center;
}

.auth-panel .hero-actions {
    justify-content: center;
    opacity: 1;
    transform: none;
    animation: none;
}

.auth-avatar {
    width: 88px;
    height: 88px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    border: 1px solid var(--line);
    object-fit: cover;
}

.admin-page {
    place-items: start stretch;
    padding-left: 0;
    padding-right: 0;
}

.admin-shell {
    width: min(1200px, 100%);
    margin: 0 auto;
    padding: 2rem 1.5rem;
    display: grid;
    grid-template-columns: 12.5rem minmax(0, 1fr);
    gap: 2.5rem;
    align-items: start;
}

.admin-sidebar {
    position: sticky;
    top: calc(var(--nav-h) + 1rem);
    padding: 0.25rem 0;
}

.admin-sidebar-label {
    margin: 0 0 0.85rem;
    padding: 0 0.65rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.admin-sidebar-label-spaced {
    margin-top: 1.75rem;
}

.admin-sidebar-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.2rem;
}

.admin-sidebar-link {
    display: block;
    padding: 0.55rem 0.65rem;
    border-radius: 0.35rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease, background 0.2s ease;
}

.admin-sidebar-link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
}

.admin-sidebar-link.is-active {
    color: var(--text);
    background: rgba(196, 163, 90, 0.12);
}

.admin-main {
    min-width: 0;
    padding-top: 0.15rem;
}

.admin-header {
    margin-bottom: 1.5rem;
}

.admin-eyebrow {
    margin: 0 0 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.admin-eyebrow a {
    color: var(--accent);
}

.admin-main h1,
.admin-section h2 {
    margin: 0 0 0.75rem;
    font-family: var(--font-display);
    letter-spacing: 0.04em;
    line-height: 1;
}

.admin-main h1 {
    font-size: clamp(2.4rem, 5vw, 3.2rem);
}

.admin-section h2 {
    font-size: clamp(1.6rem, 3vw, 2rem);
}

.admin-main > .admin-header p,
.admin-main > p,
.muted {
    color: var(--text-muted);
}

.admin-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(10rem, 14rem));
    gap: 1rem;
}

.admin-stat {
    padding: 1.15rem 1.25rem;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    display: grid;
    gap: 0.35rem;
    color: inherit;
    transition: border-color 0.2s ease, background 0.2s ease;
}

a.admin-stat:hover {
    border-color: rgba(196, 163, 90, 0.4);
    background: rgba(196, 163, 90, 0.08);
}

.admin-stat-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
}

.admin-stat-value {
    font-family: var(--font-display);
    font-size: 2.4rem;
    letter-spacing: 0.04em;
    line-height: 1;
}

.flash {
    margin: 0 0 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
}

.flash-success {
    border-color: rgba(120, 180, 120, 0.45);
    color: #b7d7b7;
}

.flash-error {
    border-color: rgba(200, 100, 100, 0.45);
    color: #e2a0a0;
}

.admin-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr;
    gap: 2.5rem;
    align-items: start;
}

.admin-section {
    padding-top: 0.5rem;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.admin-table th,
.admin-table td {
    padding: 0.75rem 0.6rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

.admin-table th {
    color: var(--text-muted);
    font-weight: 600;
}

.admin-table a {
    color: var(--accent);
}

.admin-thumb {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border: 1px solid var(--line);
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.admin-actions form {
    margin: 0;
}

.admin-form {
    display: grid;
    gap: 1rem;
}

.admin-form label {
    display: grid;
    gap: 0.4rem;
}

.admin-form span {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
}

.admin-form input[type="text"],
.admin-form input[type="url"],
.admin-form textarea,
.admin-form select,
.admin-form input[type="file"] {
    width: 100%;
    font: inherit;
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    padding: 0.75rem 0.85rem;
}

.admin-form select {
    cursor: pointer;
    color-scheme: dark;
    background-color: var(--bg-panel);
}

.admin-form select option {
    color: var(--text);
    background-color: var(--bg-panel);
}

.admin-form textarea {
    resize: vertical;
    min-height: 8rem;
}

.admin-form span em {
    font-style: normal;
    font-weight: 500;
    color: rgba(242, 240, 235, 0.45);
}

.admin-fieldset {
    margin: 0;
    padding: 0;
    border: 0;
    display: grid;
    gap: 0.65rem;
}

.admin-fieldset legend {
    margin: 0 0 0.25rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
}

.admin-inline-choice {
    display: flex !important;
    align-items: center;
    gap: 0.65rem;
    grid-template-columns: none !important;
}

.admin-inline-choice input {
    width: auto;
    margin: 0;
}

.admin-inline-choice span {
    color: var(--text);
    font-weight: 500;
}

.admin-help {
    margin: 0;
    font-size: 0.88rem;
}

.product-edit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.product-edit-col {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.product-edit-col h2 {
    margin: 0;
}

.admin-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.admin-current-media {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.admin-current-media > div {
    display: grid;
    gap: 0.75rem;
}

.admin-preview {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.25);
}

.admin-preview-bg {
    width: 100%;
    height: 120px;
}

.btn-small {
    min-height: 2.1rem;
    padding: 0.4rem 0.8rem;
    font-size: 0.82rem;
}

.btn-danger {
    background: transparent;
    border-color: rgba(200, 100, 100, 0.55);
    color: #e2a0a0;
}

.btn-danger:hover {
    background: rgba(200, 100, 100, 0.12);
}

.page-admin-products .admin-shell {
    width: min(1280px, 100%);
}

.product-forge {
    --forge-tilt-x: 0deg;
    --forge-tilt-y: 0deg;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.95fr);
    gap: 2rem;
    align-items: stretch;
    margin: 0 0 3rem;
    padding: 1.25rem;
    border: 1px solid var(--line);
    background:
        radial-gradient(ellipse at 18% 12%, rgba(196, 163, 90, 0.14), transparent 42%),
        radial-gradient(ellipse at 88% 80%, rgba(111, 135, 156, 0.12), transparent 46%),
        linear-gradient(160deg, rgba(18, 22, 29, 0.95), rgba(10, 12, 16, 0.88));
    overflow: hidden;
}

.product-forge-stage {
    perspective: 1200px;
    min-height: 28rem;
    display: grid;
    place-items: center;
}

.product-forge-poster {
    position: relative;
    width: min(100%, 26rem);
    aspect-ratio: 3 / 4;
    border: 1px solid rgba(242, 240, 235, 0.2);
    background: #090b0f;
    transform: rotateX(var(--forge-tilt-x)) rotateY(var(--forge-tilt-y));
    transform-style: preserve-3d;
    transition: transform 0.18s ease, box-shadow 0.3s ease, border-color 0.25s ease;
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(196, 163, 90, 0.08);
    cursor: pointer;
    overflow: hidden;
}

.product-forge-poster.is-dragging,
.product-forge-poster:focus-visible {
    border-color: rgba(196, 163, 90, 0.75);
    box-shadow:
        0 28px 70px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(196, 163, 90, 0.35),
        0 0 40px rgba(196, 163, 90, 0.18);
}

.product-forge-poster-glow {
    position: absolute;
    inset: -30%;
    background: radial-gradient(circle at 50% 20%, rgba(196, 163, 90, 0.22), transparent 55%);
    opacity: 0.7;
    pointer-events: none;
    z-index: 1;
    animation: forgePulse 5s ease-in-out infinite;
}

.product-forge-poster-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.product-forge-poster-empty {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    gap: 0.35rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.92rem;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent 40%),
        repeating-linear-gradient(
            -18deg,
            transparent,
            transparent 10px,
            rgba(255, 255, 255, 0.02) 10px,
            rgba(255, 255, 255, 0.02) 11px
        );
}

.product-forge-drop-mark {
    font-family: var(--font-display);
    font-size: 3.4rem;
    line-height: 1;
    color: var(--accent);
    letter-spacing: 0.04em;
}

.product-forge-poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    transition: transform 0.8s var(--ease), opacity 0.35s ease;
}

.product-forge-poster.has-image .product-forge-poster-img {
    transform: scale(1);
}

.product-forge-poster-veil {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(to top, rgba(8, 10, 14, 0.92) 0%, rgba(8, 10, 14, 0.35) 42%, transparent 68%),
        linear-gradient(120deg, rgba(196, 163, 90, 0.08), transparent 40%);
    pointer-events: none;
}

.product-forge-poster-copy {
    position: absolute;
    left: 1.15rem;
    right: 1.15rem;
    bottom: 1.25rem;
    z-index: 3;
    display: grid;
    gap: 0.4rem;
    pointer-events: none;
}

.product-forge-poster-dev {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
}

.product-forge-poster-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.7rem);
    letter-spacing: 0.04em;
    line-height: 0.95;
    text-wrap: balance;
}

.product-forge-poster-blurb {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.4;
    max-width: 28ch;
}

.product-forge-price-stamp {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 4;
    min-width: 4.5rem;
    padding: 0.55rem 0.75rem;
    font-family: var(--font-display);
    font-size: 1.55rem;
    letter-spacing: 0.04em;
    line-height: 1;
    text-align: center;
    color: #141108;
    background: var(--accent);
    transform: rotate(3deg);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s var(--ease), background 0.2s ease;
    pointer-events: none;
}

.product-forge-poster.has-image .product-forge-price-stamp {
    transform: rotate(-2deg) scale(1.04);
}

.product-forge-scanline {
    position: absolute;
    inset: 0;
    z-index: 5;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(255, 255, 255, 0.05) 48%,
        transparent 52%
    );
    background-size: 100% 220%;
    animation: forgeScan 4.5s linear infinite;
    opacity: 0.35;
    pointer-events: none;
    mix-blend-mode: soft-light;
}

.product-forge-form {
    display: grid;
    align-content: start;
    gap: 1.25rem;
    padding: 0.35rem 0.15rem;
}

.product-forge-file {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.product-forge-fields {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1rem;
}

.product-forge-field {
    display: grid;
    gap: 0.45rem;
    margin: 0;
    padding: 0;
    border: 0;
}

.product-forge-field-wide {
    grid-column: 1 / -1;
}

.product-forge-field > span,
.product-forge-field > legend {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.product-forge-field input[type="text"],
.product-forge-field textarea {
    width: 100%;
    font: inherit;
    color: var(--text);
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid var(--line);
    padding: 0.85rem 0.95rem;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.product-forge-field input[type="text"]:focus,
.product-forge-field textarea:focus {
    outline: none;
    border-color: rgba(196, 163, 90, 0.55);
    background: rgba(0, 0, 0, 0.4);
}

.product-forge-field textarea {
    resize: vertical;
    min-height: 7rem;
}

.product-forge-price-input {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.28);
}

.product-forge-price-input > span {
    padding: 0 0 0 0.95rem;
    color: var(--accent);
    font-weight: 700;
}

.product-forge-price-input input {
    border: 0 !important;
    background: transparent !important;
}

.product-forge-devs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.product-forge-dev {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.75rem 0.45rem 0.45rem;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s var(--ease);
}

.product-forge-dev:hover {
    transform: translateY(-1px);
    border-color: rgba(242, 240, 235, 0.28);
}

.product-forge-dev.is-selected {
    border-color: rgba(196, 163, 90, 0.7);
    background: rgba(196, 163, 90, 0.12);
}

.product-forge-dev input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.product-forge-dev-avatar {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.35);
}

.product-forge-dev-avatar-empty {
    display: grid;
    place-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.product-forge-dev-name {
    font-size: 0.88rem;
    font-weight: 600;
}

.product-forge-submit {
    justify-self: start;
    min-width: 12rem;
    letter-spacing: 0.04em;
}

.product-forge-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.product-forge-edit .product-forge-stage {
    display: grid;
    gap: 1.25rem;
    align-content: start;
    min-height: 0;
}

.product-forge-edit .product-forge-poster {
    width: min(100%, 22rem);
    justify-self: center;
}

.product-forge-sheet {
    width: min(100%, 22rem);
    justify-self: center;
    display: grid;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.28);
}

.product-forge-sheet-label {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}

.product-forge-sheet-block {
    display: grid;
    gap: 0.35rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--line);
}

.product-forge-sheet-block:first-of-type {
    padding-top: 0;
    border-top: 0;
}

.product-forge-sheet-block h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.15rem;
    letter-spacing: 0.04em;
    line-height: 1;
}

.product-forge-sheet-block p,
.product-forge-sheet-features {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.product-forge-sheet-features {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 0.35rem;
}

.product-forge-sheet-features li {
    position: relative;
    padding-left: 0.9rem;
    color: var(--text);
}

.product-forge-sheet-features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45rem;
    width: 0.35rem;
    height: 0.35rem;
    background: var(--accent);
}

.product-forge-sheet-features li.is-empty {
    color: var(--text-muted);
}

.product-forge-sheet-features li.is-empty::before {
    display: none;
}

.product-forge-field input[type="url"] {
    width: 100%;
    font: inherit;
    color: var(--text);
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid var(--line);
    padding: 0.85rem 0.95rem;
}

.product-forge-field input[type="url"]:focus {
    outline: none;
    border-color: rgba(196, 163, 90, 0.55);
    background: rgba(0, 0, 0, 0.4);
}

.product-forge-field em {
    font-style: normal;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: none;
    color: rgba(242, 240, 235, 0.45);
}

.product-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
    gap: 0.65rem;
    margin-bottom: 0.75rem;
}

.product-media-item {
    position: relative;
    display: grid;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.28);
    overflow: hidden;
    cursor: pointer;
}

.product-media-item img,
.product-media-item video {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #090b0f;
}

.product-media-keep {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.55rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(8, 10, 14, 0.88);
}

.product-media-keep input {
    accent-color: var(--accent);
}

.product-media-drop {
    position: relative;
    display: grid;
    gap: 0.25rem;
    justify-items: start;
    padding: 1.1rem 1rem;
    border: 1px dashed rgba(196, 163, 90, 0.45);
    background: rgba(196, 163, 90, 0.05);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.product-media-drop:hover,
.product-media-drop.is-dragging {
    border-color: rgba(196, 163, 90, 0.8);
    background: rgba(196, 163, 90, 0.1);
}

.product-media-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.product-media-drop-title {
    font-weight: 700;
    color: var(--text);
}

.product-media-pending {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
    gap: 0.65rem;
    margin-top: 0.75rem;
}

.product-media-item-pending {
    display: grid;
    grid-template-rows: 1fr auto;
}

.product-media-file-name {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    padding: 0.5rem;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    word-break: break-word;
    background: #090b0f;
}

.product-media-remove {
    border: 0;
    border-top: 1px solid var(--line);
    background: rgba(200, 100, 100, 0.12);
    color: #e2a0a0;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.45rem 0.55rem;
    cursor: pointer;
}

.product-catalog {
    padding-top: 0.25rem;
}

.product-catalog-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
    gap: 1.15rem;
}

.product-catalog-card {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr;
}

.product-catalog-media {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #090b0f;
}

.product-catalog-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-catalog-price {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    padding: 0.3rem 0.5rem;
    font-family: var(--font-display);
    font-size: 1.05rem;
    letter-spacing: 0.03em;
    color: #141108;
    background: var(--accent);
}

.product-catalog-body {
    display: grid;
    gap: 0.45rem;
    padding: 0.95rem 1rem 1.1rem;
    align-content: start;
}

.product-catalog-body h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.45rem;
    letter-spacing: 0.03em;
    line-height: 1;
}

.product-catalog-body p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.product-catalog-dev {
    font-size: 0.72rem !important;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent) !important;
}

.product-catalog-body form {
    margin-top: 0.35rem;
}

.is-hidden {
    display: none !important;
}

@keyframes forgePulse {
    0%,
    100% {
        opacity: 0.55;
        transform: scale(1);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.05);
    }
}

@keyframes forgeScan {
    from {
        background-position: 0 -40%;
    }
    to {
        background-position: 0 140%;
    }
}

.page-developer main {
    min-height: 100vh;
}

.developers-roster {
    position: relative;
    min-height: 100vh;
    padding: calc(var(--nav-h) + 2.75rem) 1.5rem 5rem;
    overflow: hidden;
}

.developers-roster-atmosphere {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 70% 45% at 0% 0%, rgba(111, 135, 156, 0.22), transparent 55%),
        radial-gradient(ellipse 55% 40% at 100% 8%, rgba(196, 163, 90, 0.14), transparent 50%),
        linear-gradient(180deg, #10141b 0%, var(--bg-deep) 62%);
}

.developers-roster-inner {
    position: relative;
    z-index: 1;
    width: min(1120px, 100%);
    margin: 0 auto;
}

.developers-roster-head {
    margin-bottom: 2.75rem;
    max-width: 34rem;
    opacity: 0;
    transform: translateY(18px);
    animation: riseIn 0.8s var(--ease) 0.08s forwards;
}

.developers-roster-head h1 {
    margin: 0 0 0.65rem;
    font-family: var(--font-display);
    font-size: clamp(3.4rem, 9vw, 5.6rem);
    letter-spacing: 0.04em;
    line-height: 0.92;
}

.developers-roster-empty {
    margin: 0;
    color: var(--text-muted);
}

.developers-roster-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.developers-roster-list > li {
    opacity: 0;
    transform: translateY(22px);
    animation: riseIn 0.75s var(--ease) forwards;
    animation-delay: calc(0.09s * var(--i, 0) + 0.16s);
}

.dev-band {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.25rem 1.75rem;
    min-height: 11.5rem;
    padding: 1.5rem 1.75rem;
    overflow: hidden;
    isolation: isolate;
    color: var(--text);
    border-bottom: 1px solid rgba(242, 240, 235, 0.08);
    transition: border-color 0.3s ease;
}

.dev-band::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18%;
    bottom: 18%;
    width: 2px;
    background: var(--accent);
    opacity: 0;
    transform: scaleY(0.4);
    transition: opacity 0.3s ease, transform 0.35s var(--ease);
}

.dev-band:hover,
.dev-band:focus-visible {
    border-color: rgba(196, 163, 90, 0.35);
}

.dev-band:hover::before,
.dev-band:focus-visible::before {
    opacity: 1;
    transform: scaleY(1);
}

.dev-band-media {
    position: absolute;
    inset: 0;
    z-index: -2;
    background: var(--band-image) center / cover no-repeat;
    transform: scale(1.08);
    filter: saturate(0.85);
    transition: transform 0.7s var(--ease), filter 0.4s ease;
}

.dev-band:hover .dev-band-media,
.dev-band:focus-visible .dev-band-media {
    transform: scale(1);
    filter: saturate(1);
}

.dev-band-veil {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(105deg, rgba(8, 10, 14, 0.94) 0%, rgba(8, 10, 14, 0.78) 42%, rgba(8, 10, 14, 0.55) 100%),
        linear-gradient(to top, rgba(8, 10, 14, 0.55), transparent 70%);
}

.dev-band-main {
    display: flex;
    align-items: center;
    gap: 1.15rem;
    min-width: 0;
}

.dev-band-logo {
    width: clamp(4.25rem, 8vw, 5.5rem);
    height: clamp(4.25rem, 8vw, 5.5rem);
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.35));
}

.dev-band-copy {
    display: grid;
    gap: 0.4rem;
    min-width: 0;
}

.dev-band-name {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 3rem);
    letter-spacing: 0.04em;
    line-height: 0.95;
}

.dev-band-about {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 42ch;
}

.dev-band-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    white-space: nowrap;
    transition: color 0.25s ease, transform 0.25s var(--ease);
}

.dev-band-arrow {
    width: 1.15rem;
    height: 1px;
    background: currentColor;
    position: relative;
    transition: width 0.3s var(--ease);
}

.dev-band-arrow::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    width: 0.4rem;
    height: 0.4rem;
    border-right: 1px solid currentColor;
    border-top: 1px solid currentColor;
    transform: translateY(-50%) rotate(45deg);
}

.dev-band:hover .dev-band-cta,
.dev-band:focus-visible .dev-band-cta {
    color: var(--accent-hot);
    transform: translateX(4px);
}

.dev-band:hover .dev-band-arrow,
.dev-band:focus-visible .dev-band-arrow {
    width: 1.65rem;
}

.developer-profile {
    position: relative;
    min-height: 100vh;
    display: grid;
    place-items: end start;
    overflow: hidden;
}

.developer-profile-content {
    position: relative;
    z-index: 1;
    width: min(720px, 100%);
    padding: calc(var(--nav-h) + 3rem) 1.5rem 4.5rem;
    display: grid;
    justify-items: start;
    gap: 0.85rem;
}

.developer-profile-back {
    margin-bottom: 0.35rem;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    opacity: 0;
    transform: translateY(18px);
    animation: riseIn 0.8s var(--ease) 0.12s forwards;
    transition: color 0.2s ease;
}

.developer-profile-back:hover {
    color: var(--accent-hot);
}

.developer-profile-logo {
    width: clamp(8.5rem, 24vw, 14rem);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.45));
    opacity: 0;
    transform: translateY(28px);
    animation: riseIn 0.9s var(--ease) 0.22s forwards;
}

.developer-profile-name {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(3.2rem, 9vw, 6rem);
    letter-spacing: 0.04em;
    line-height: 0.92;
    opacity: 0;
    transform: translateY(24px);
    animation: riseIn 0.9s var(--ease) 0.36s forwards;
}

.developer-profile-about {
    max-width: 42ch;
    opacity: 0;
    transform: translateY(20px);
    animation: riseIn 0.9s var(--ease) 0.48s forwards;
}

.developer-profile-about p {
    margin: 0;
    color: var(--text-muted);
    font-size: clamp(1rem, 2vw, 1.12rem);
    font-weight: 500;
    line-height: 1.65;
}

.developer-profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
    opacity: 0;
    transform: translateY(18px);
    animation: riseIn 0.9s var(--ease) 0.6s forwards;
}

.developer-mods {
    padding: 3.5rem 1.5rem 5rem;
    background:
        radial-gradient(ellipse 60% 40% at 10% 0%, rgba(111, 135, 156, 0.12), transparent 55%),
        linear-gradient(180deg, #10141b 0%, var(--bg-deep) 100%);
    border-top: 1px solid rgba(242, 240, 235, 0.06);
}

.developer-mods-inner {
    width: min(1100px, 100%);
    margin: 0 auto;
}

.developer-mods-head {
    margin-bottom: 2rem;
    max-width: 36rem;
}

.developer-mods-head h2 {
    margin: 0 0 0.55rem;
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    letter-spacing: 0.04em;
    line-height: 1;
}

.developer-mods-head p {
    margin: 0;
    color: var(--text-muted);
}

.products-page {
    min-height: 100vh;
    padding: calc(var(--nav-h) + 2.5rem) 1.5rem 4rem;
}

.products-page-inner {
    width: min(1100px, 100%);
    margin: 0 auto;
}

.products-page-header {
    margin-bottom: 2.5rem;
}

.products-page-header h1 {
    margin: 0 0 0.6rem;
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 7vw, 4.2rem);
    letter-spacing: 0.04em;
    line-height: 1;
}

.products-page-header p {
    margin: 0;
    color: var(--text-muted);
    max-width: 36ch;
}

.products-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
}

.products-grid > li {
    opacity: 0;
    transform: translateY(16px);
    animation: riseIn 0.7s var(--ease) forwards;
    animation-delay: calc(0.08s * var(--i, 0) + 0.1s);
}

.product-tile {
    display: grid;
    grid-template-rows: auto 1fr;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: inherit;
    transition: transform 0.25s var(--ease), border-color 0.25s ease;
}

.product-tile:hover {
    transform: translateY(-3px);
    border-color: rgba(196, 163, 90, 0.35);
}

.product-tile-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #090b0f;
}

.product-tile-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    transition: transform 0.45s var(--ease);
}

.product-tile:hover .product-tile-media img {
    transform: scale(1);
}

.product-tile-price {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.35rem 0.55rem;
    font-family: var(--font-display);
    font-size: 1.15rem;
    letter-spacing: 0.03em;
    line-height: 1;
    color: #141108;
    background: var(--accent);
}

.product-tile-body {
    display: grid;
    align-content: start;
    gap: 0.45rem;
    padding: 1.1rem 1.15rem 1.25rem;
}

.product-tile-dev {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}

.product-tile-name {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.55rem, 3vw, 1.9rem);
    letter-spacing: 0.04em;
    line-height: 1;
}

.product-tile-about {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

.page-product main {
    min-height: 100vh;
}

.product-listing {
    position: relative;
    min-height: 100vh;
    padding: calc(var(--nav-h) + 1.5rem) 1.5rem 2.5rem;
    overflow: hidden;
}

.product-listing-atmosphere {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(10, 12, 16, 0.72), rgba(10, 12, 16, 0.94)),
        var(--listing-image) center / cover no-repeat;
    filter: saturate(0.85);
    transform: scale(1.04);
    pointer-events: none;
}

.product-listing-inner {
    position: relative;
    z-index: 1;
    width: min(1180px, 100%);
    margin: 0 auto;
    display: grid;
    gap: 1.5rem;
}

.product-listing-head {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) auto;
    gap: 1.25rem 2rem;
    align-items: end;
    opacity: 0;
    transform: translateY(18px);
    animation: riseIn 0.75s var(--ease) 0.08s forwards;
}

.product-listing-identity {
    display: grid;
    gap: 0.45rem;
}

.product-listing-dev {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
}

.product-listing-dev a:hover {
    color: var(--accent-hot);
}

.product-listing-name {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 7vw, 4.4rem);
    letter-spacing: 0.04em;
    line-height: 0.92;
}

.product-listing-pitch {
    margin: 0;
    max-width: 46ch;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.5;
}

.product-listing-buybar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
}

.product-listing-price {
    font-family: var(--font-display);
    font-size: 2.1rem;
    letter-spacing: 0.04em;
    line-height: 1;
    color: var(--accent);
}

.product-listing-stage {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(16rem, 0.85fr);
    gap: 1.25rem;
    align-items: start;
    min-height: min(68vh, 42rem);
    opacity: 0;
    transform: translateY(22px);
    animation: riseIn 0.8s var(--ease) 0.18s forwards;
}

.product-media-stage {
    display: grid;
    gap: 0.75rem;
    min-width: 0;
}

.product-media-main {
    position: relative;
    aspect-ratio: 16 / 10;
    border: 1px solid rgba(242, 240, 235, 0.16);
    background: rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

.product-media-main img,
.product-media-main video,
.product-media-main iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
    background: #090b0f;
}

.product-media-main video,
.product-media-main iframe {
    object-fit: contain;
}

.product-media-external {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-weight: 700;
    color: var(--accent);
    background: rgba(0, 0, 0, 0.55);
}

.product-media-thumbs {
    display: flex;
    gap: 0.55rem;
    overflow-x: auto;
    padding-bottom: 0.15rem;
}

.product-media-thumb {
    flex: 0 0 auto;
    width: 5.5rem;
    aspect-ratio: 16 / 10;
    padding: 0;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.35);
    cursor: pointer;
    overflow: hidden;
    opacity: 0.72;
    transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease);
}

.product-media-thumb:hover,
.product-media-thumb.is-active {
    opacity: 1;
    border-color: rgba(196, 163, 90, 0.75);
    transform: translateY(-1px);
}

.product-media-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-media-thumb-video {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.06em;
    color: var(--accent);
    background:
        linear-gradient(135deg, rgba(196, 163, 90, 0.12), transparent 55%),
        #0c0f14;
}

.product-listing-rail {
    position: sticky;
    top: calc(var(--nav-h) + 1rem);
    max-height: calc(100vh - var(--nav-h) - 2rem);
    overflow: auto;
    display: grid;
    gap: 1.25rem;
    padding: 1.15rem 1.2rem;
    border: 1px solid rgba(242, 240, 235, 0.14);
    background: rgba(8, 10, 14, 0.72);
    backdrop-filter: blur(10px);
}

.product-rail-block {
    display: grid;
    gap: 0.7rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

.product-rail-block:first-child {
    padding-top: 0;
    border-top: 0;
}

.product-rail-block h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.45rem;
    letter-spacing: 0.04em;
    line-height: 1;
}

.product-prose {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.product-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.45rem;
}

.product-features li {
    position: relative;
    padding: 0.45rem 0 0.45rem 1.15rem;
    border-bottom: 1px solid rgba(242, 240, 235, 0.08);
    color: var(--text);
    font-size: 0.92rem;
    line-height: 1.4;
}

.product-features li:last-child {
    border-bottom: 0;
}

.product-features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.75rem;
    width: 0.4rem;
    height: 0.4rem;
    background: var(--accent);
}

.product-rail-buy .btn {
    justify-self: start;
    margin-top: 0.25rem;
}

@keyframes navIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes riseIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroZoom {
    to {
        transform: scale(1);
    }
}

@media (max-width: 900px) {
    .admin-shell {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem 1rem;
    }

    .admin-sidebar {
        position: static;
        border-bottom: 1px solid var(--line);
        padding-bottom: 1rem;
    }

    .admin-sidebar-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 0.35rem;
    }

    .admin-grid,
    .admin-current-media,
    .product-forge,
    .product-forge-fields,
    .product-edit-grid,
    .product-listing-head,
    .product-listing-stage {
        grid-template-columns: 1fr;
    }

    .product-listing-buybar {
        justify-content: flex-start;
    }

    .product-listing-rail {
        position: static;
        max-height: none;
    }

    .product-forge-stage {
        min-height: 22rem;
    }

    .product-forge-edit .product-forge-poster,
    .product-forge-sheet {
        width: min(100%, 26rem);
    }
}

@media (max-width: 720px) {
    .nav {
        gap: 0.85rem;
        padding: 0 1rem;
    }

    .nav-logo {
        width: 38px;
        height: 38px;
    }

    .nav-links {
        gap: 0.85rem;
    }

    .nav-username {
        display: none;
    }

    .hero-content,
    .developer-profile-content {
        padding: calc(var(--nav-h) + 2rem) 1rem 3rem;
    }

    .developers-roster {
        padding: calc(var(--nav-h) + 2rem) 1rem 3.5rem;
    }

    .dev-band {
        grid-template-columns: 1fr;
        gap: 1rem;
        min-height: 0;
        padding: 1.25rem 1.1rem;
    }

    .dev-band-cta {
        justify-self: start;
    }

    .dev-band-main {
        gap: 0.85rem;
    }

    .dev-band-about {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .developer-mods {
        padding: 2.5rem 1rem 3.5rem;
    }

    .product-listing {
        padding: calc(var(--nav-h) + 1rem) 1rem 2rem;
    }
}

.page-portal .site-header {
    background: rgba(8, 10, 14, 0.92);
    backdrop-filter: blur(12px);
}

.page-portal {
    background: #0b0d11;
}

.portal-page {
    place-items: stretch;
    padding: 0;
    min-height: 100vh;
    background: #0b0d11;
}

.portal-shell {
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 13.5rem minmax(0, 1fr);
    padding-top: var(--nav-h);
}

.portal-rail {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.35rem 1rem 1.1rem;
    border-right: 1px solid rgba(242, 240, 235, 0.08);
    background: #08090c;
}

.portal-rail-top {
    display: grid;
    gap: 1.75rem;
}

.portal-rail-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.1rem;
}

.portal-rail-link {
    display: block;
    padding: 0.45rem 0.5rem;
    color: rgba(242, 240, 235, 0.55);
    font-size: 0.92rem;
    font-weight: 500;
}

.portal-rail-link:hover {
    color: var(--text);
}

.portal-rail-link.is-active {
    color: var(--text);
}

.portal-rail-bottom {
    display: grid;
    gap: 0.65rem;
    padding: 0 0.5rem;
}

.portal-rail-user {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(242, 240, 235, 0.08);
}

.portal-rail-user img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.portal-rail-user span {
    font-size: 0.82rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.portal-main {
    min-width: 0;
    max-width: 52rem;
    padding: 2rem 2rem 3rem;
}

.portal-heading {
    margin-bottom: 1.5rem;
}

.portal-heading h1 {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.portal-section-bar {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.portal-section-bar p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.portal-section-bar a {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
}

.portal-note {
    margin: 0 0 0.75rem;
    max-width: 36rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.portal-note a {
    color: var(--accent);
    font-weight: 600;
}

.portal-home-top {
    margin-bottom: 1.75rem;
    padding: 1rem 0 1.15rem 0.9rem;
    border-left: 2px solid var(--accent);
}

.portal-home-top .portal-account-profile {
    margin-bottom: 1.1rem;
}

.portal-home-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem 1rem;
}

.portal-home-stats strong,
.portal-home-stats span {
    display: block;
}

.portal-home-stats strong {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    line-height: 1;
    color: var(--text);
}

.portal-home-stats span {
    margin-top: 0.35rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
}

.portal-account-profile {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}

.portal-account-profile img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.portal-account-profile strong,
.portal-account-profile span {
    display: block;
}

.portal-account-profile strong {
    font-size: 1rem;
    font-weight: 600;
}

.portal-account-profile span {
    margin-top: 0.15rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.portal-table {
    width: 100%;
    border-collapse: collapse;
}

.portal-table th,
.portal-table td {
    padding: 0.7rem 0;
    border-top: 1px solid rgba(242, 240, 235, 0.08);
    text-align: left;
    vertical-align: top;
    font-size: 0.92rem;
}

.portal-table tr:last-child th,
.portal-table tr:last-child td {
    border-bottom: 1px solid rgba(242, 240, 235, 0.08);
}

.portal-table th {
    width: 7.5rem;
    color: var(--text-muted);
    font-weight: 500;
}

.portal-table code {
    font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;
    font-size: 0.86rem;
    word-break: break-all;
}

.portal-table a {
    color: var(--accent);
    font-weight: 600;
}

.portal-support .btn {
    margin-top: 0.35rem;
}

.portal-section {
    margin-top: 2rem;
}

.portal-section-title {
    margin: 0 0 0.55rem;
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.portal-quote-section {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(242, 240, 235, 0.08);
}

.portal-form {
    display: grid;
    gap: 1rem;
    max-width: 36rem;
    margin-top: 1.1rem;
}

.portal-form label {
    display: grid;
    gap: 0.4rem;
}

.portal-form span {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
}

.portal-form span em {
    font-style: normal;
    font-weight: 500;
    color: rgba(242, 240, 235, 0.45);
}

.portal-form textarea,
.portal-form input[type="file"] {
    width: 100%;
    font: inherit;
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    padding: 0.75rem 0.85rem;
}

.portal-form textarea {
    resize: vertical;
    min-height: 9rem;
}

.portal-form-hint {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 500;
    color: rgba(242, 240, 235, 0.45);
}

.portal-form-actions {
    display: flex;
    gap: 0.75rem;
}

.portal-quote-list {
    list-style: none;
    margin: 0.85rem 0 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.portal-quote-card {
    padding: 1rem 0 1.15rem;
    border-top: 1px solid rgba(242, 240, 235, 0.08);
}

.portal-quote-card:last-child {
    border-bottom: 1px solid rgba(242, 240, 235, 0.08);
}

.portal-quote-card-top {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.4rem 1rem;
    margin-bottom: 0.65rem;
}

.portal-quote-status {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(242, 240, 235, 0.7);
}

.portal-quote-status.is-quoted {
    color: #b7d7b7;
}

.portal-quote-date {
    margin: 0;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.portal-quote-body,
.admin-quote-body {
    margin: 0;
    white-space: pre-wrap;
    line-height: 1.5;
}

.portal-quote-photos,
.admin-quote-photos {
    list-style: none;
    margin: 0.85rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr));
    gap: 0.5rem;
}

.portal-quote-photos a,
.admin-quote-photos a {
    display: block;
}

.portal-quote-photos img,
.admin-quote-photos img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border: 1px solid rgba(242, 240, 235, 0.1);
    background: rgba(0, 0, 0, 0.25);
}

.portal-quote-reply {
    margin-top: 0.95rem;
    padding: 0.9rem 1rem;
    border-left: 2px solid var(--accent);
    background: rgba(255, 255, 255, 0.03);
}

.portal-quote-price {
    margin: 0 0 0.4rem;
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 400;
    letter-spacing: 0.04em;
}

.portal-quote-reply p {
    margin: 0;
    line-height: 1.5;
    white-space: pre-wrap;
}

.portal-quote-reply .portal-quote-date {
    margin-top: 0.55rem;
}

.admin-quote-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.5rem;
    align-items: start;
}

.admin-quote-client,
.admin-quote-client-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-quote-client {
    margin-bottom: 1rem;
}

.admin-quote-client img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.admin-quote-client strong,
.admin-quote-client span {
    display: block;
}

.admin-quote-client span {
    margin-top: 0.15rem;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.admin-quote-client-cell img {
    border-radius: 50%;
}

.admin-quote-body {
    margin-bottom: 1rem;
}

.portal-download-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.portal-download-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem 1rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(242, 240, 235, 0.08);
}

.portal-download-item:last-child {
    border-bottom: 1px solid rgba(242, 240, 235, 0.08);
}

.portal-download-copy {
    min-width: min(100%, 16rem);
    flex: 1;
}

.portal-download-product {
    margin: 0 0 0.2rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
}

.portal-download-product.is-empty,
.portal-download-description.is-empty {
    opacity: 0.45;
}

.portal-download-item h3 {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0;
}

.portal-download-item p {
    margin: 0.3rem 0 0;
}

.portal-download-meta {
    font-size: 0.84rem;
    color: var(--text-muted);
}

.portal-download-history {
    width: 100%;
    margin-top: 0.25rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(242, 240, 235, 0.06);
}

.portal-download-history.is-empty .portal-version-list {
    display: none;
}

.portal-download-history-label {
    margin: 0 0 0.55rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

.portal-download-history-empty {
    margin: 0;
}

.portal-version-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.65rem;
}

.portal-version-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.portal-version-label {
    margin: 0;
    font-weight: 600;
    color: var(--text);
}

.portal-version-notes {
    margin: 0.2rem 0 0;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.download-forge {
    margin-top: 2.5rem;
}

.download-forge-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.95fr);
    gap: 2rem;
    align-items: start;
}

.download-portal-preview {
    position: sticky;
    top: calc(var(--nav-h) + 1rem);
}

.download-portal-preview-label {
    margin: 0 0 0.65rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
}

.download-portal-preview-shell {
    padding: 1.15rem 1.25rem 1.35rem;
    border: 1px solid rgba(242, 240, 235, 0.08);
    background: #0b0d11;
}

.download-portal-preview-shell .portal-heading {
    margin-bottom: 0.85rem;
}

.download-portal-preview-shell .portal-heading h1 {
    font-size: 1.15rem;
}

.download-portal-preview-shell .portal-download-item:first-child {
    border-top: 0;
    padding-top: 0.15rem;
}

.download-forge .admin-form h2 {
    margin: 0.75rem 0 0;
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

@media (max-width: 960px) {
    .download-forge-layout {
        grid-template-columns: 1fr;
    }

    .download-portal-preview {
        position: static;
    }

    .admin-quote-layout {
        grid-template-columns: 1fr;
    }
}

a.nav-user:hover .nav-username {
    color: var(--text);
}

@media (max-width: 900px) {
    .portal-shell {
        grid-template-columns: 1fr;
    }

    .portal-rail {
        position: sticky;
        top: var(--nav-h);
        z-index: 5;
        border-right: 0;
        border-bottom: 1px solid rgba(242, 240, 235, 0.08);
        padding: 0.85rem 1rem;
        gap: 0.85rem;
    }

    .portal-rail-top {
        gap: 0.85rem;
    }

    .portal-rail-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 0.15rem 0.85rem;
    }

    .portal-rail-link {
        padding: 0.25rem 0;
    }

    .portal-rail-bottom {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.75rem 1rem;
        padding: 0;
    }

    .portal-rail-user {
        padding: 0;
        border: 0;
        margin-right: auto;
    }

    .portal-main {
        padding: 1.25rem 1rem 2.5rem;
    }

    .portal-home-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 1rem;
    }

    .portal-table th {
        width: 6rem;
    }

    .admin-quote-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-header,
    .hero-media,
    .hero-logo,
    .hero-tagline,
    .hero-actions,
    .developers-roster-head,
    .developers-roster-list > li,
    .developer-profile-back,
    .developer-profile-logo,
    .developer-profile-name,
    .developer-profile-about,
    .developer-profile-actions,
    .products-grid > li,
    .product-forge-poster-glow,
    .product-forge-scanline,
    .product-forge-poster,
    .product-listing-head,
    .product-listing-stage {
        animation: none;
        opacity: 1;
        transform: none;
    }
}
