﻿*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #f4f4f0;
    --surface: #ffffff;
    --border: #e0dfd8;
    --accent: #888880;
    --accent2: #ff4f4f;
    --text: #111111;
    --nav-text: #f7f5f5;
    --muted: #627D9A;
    --nav-h: 64px;
}

html {
    scroll-behavior: smooth;
    background: #1c1c1c;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

body > .container {
    flex: 1;
}

/* ── NOISE OVERLAY ── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    opacity: .6;
}

/* ════════════════════════════════════════
   NAV
════════════════════════════════════════ */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--nav-h);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 2rem;
    background: rgba(74, 74, 74,.88);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    width: 100%;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--nav-text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    transition: color .2s;
}

a {
    text-decoration: none;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-logo {
    text-align: center;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: .12em;
    color: var(--text);
    white-space: nowrap;
}

.nav-logo span {
    color: var(--muted);
    padding: 0 4px;
}

.nav-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.25rem;
    color: white;
}

/* Nav search */
.search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.search-wrap input {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    padding: 7px 12px 7px 34px;
    width: 200px;
    outline: none;
    transition: border-color .2s, width .3s;
}

.search-wrap input::placeholder {
    color: var(--muted);
}

.search-wrap input:focus {
    border-color: var(--text);
    width: 240px;
}

.search-wrap svg {
    position: absolute;
    left: 10px;
    color: var(--muted);
    pointer-events: none;
}

/* Icon buttons */
.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: 13px;
    font-family: 'DM Sans', sans-serif;
    transition: color .2s;
    padding: 4px;
}

.icon-btn:hover {
    color: var(--accent2);
}

.icon-btn svg {
    width: 20px;
    height: 20px;
}

/* ════════════════════════════════════════
   HERO  (index page)
════════════════════════════════════════ */
.hero {
    padding: 5rem 2rem 3rem;
    text-align: center;
    position: relative;
}

hero-eyebrow {
    color: var(--muted);
    display: inline-block;
    font-family: 'DM Mono', monospace;
    font-size: 25px;
    letter-spacing: .2em;
    text-transform: uppercase;
    border-radius: 3px;
    padding: 3px 10px;
    margin-bottom: 1.2rem;
    opacity: 0;
    animation: fadeUp .6s .1s forwards;
}

.hero h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3rem, 8vw, 7rem);
    letter-spacing: .06em;
    line-height: .95;
    color: var(--text);
    opacity: 0;
    animation: fadeUp .6s .25s forwards;
}

.hero h1 em {
    font-style: normal;
    color: var(--muted);
    padding: 0 6px;
}

.hero-sub {
    margin-top: 1rem;
    color: var(--muted);
    font-size: 15px;
    max-width: 420px;
    margin-inline: auto;
    opacity: 0;
    animation: fadeUp .6s .4s forwards;
}

/* ════════════════════════════════════════
   SECTION HEADER
════════════════════════════════════════ */
.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 2.5rem 2rem 1.25rem;
}

.section-header h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    letter-spacing: .1em;
    white-space: nowrap;
    color: var(--text);
}

.section-header .line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

.section-header a {
    font-size: 12px;
    font-family: 'DM Mono', monospace;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: .05em;
    font-weight: 500;
}

.section-header a:hover {
    text-decoration: underline;
}

/* ════════════════════════════════════════
   GAME GRID & CARDS
════════════════════════════════════════ */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
    padding: 0 2rem 4rem;
}

.game-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: transform .25s, border-color .25s, box-shadow .25s;
    opacity: 0;
    animation: fadeUp .5s forwards;
}

.game-card:nth-child(1) {
    animation-delay: .10s;
}

.game-card:nth-child(2) {
    animation-delay: .17s;
}

.game-card:nth-child(3) {
    animation-delay: .24s;
}

.game-card:nth-child(4) {
    animation-delay: .31s;
}

.game-card:nth-child(5) {
    animation-delay: .38s;
}

.game-card:nth-child(6) {
    animation-delay: .45s;
}

.game-card:hover {
    transform: translateY(-5px);
    border-color: #111;
    box-shadow: 4px 4px 0px #111;
}

.game-card:hover .wishlist-hover {
    opacity: 1;
}

.game-img {
    width: 100%;
    aspect-ratio: 3/4;
    background: #e8e8e2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c8c8c0;
    position: relative;
    overflow: hidden;
}

.game-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #ebebE5 0%, #e0e0da 100%);
}

.game-img svg {
    z-index: 1;
    opacity: .3;
}

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
}

.badge-new {
    background: var(--muted);
    color: #111;
}

.badge-sale {
    background: var(--accent2);
    color: #fff;
}

.badge-hot {
    background: #ff8c00;
    color: #111;
}

.wishlist-hover {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    background: rgba(255,255,255,.8);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--muted);
    opacity: 0;
    transition: opacity .2s, color .2s;
}

.wishlist-hover:hover {
    color: var(--accent2);
}

.game-info {
    padding: .85rem 1rem .95rem;
}

.game-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
    margin-bottom: .15rem;
}

.game-edition-name {
    font-size: 11px;
    font-weight: 500;
    color: var(--muted);
    margin-bottom: .15rem;
}

.game-platform {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    color: var(--muted);
    margin-bottom: .6rem;
    letter-spacing: .04em;
}

.game-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.game-price {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    letter-spacing: .06em;
    color: var(--text);
}

.add-btn {
    background: var(--muted);
    border: none;
    color: #111;
    font-size: 11px;
    font-family: 'DM Mono', monospace;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background .2s, transform .15s;
}

.add-btn:hover {
    background: #9bc0e8;
    transform: translateY(-1px);
}

/* ════════════════════════════════════════
   FP RESERVE BANNER
════════════════════════════════════════ */
.fp-reserve-banner {
    margin: 0 2rem 4rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    padding: 2.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.fp-reserve-banner h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    letter-spacing: .08em;
    margin-bottom: .4rem;
    color: var(--text);
}

.fp-reserve-banner p {
    color: var(--muted);
    font-size: 14px;
    max-width: 480px;
}

/* ════════════════════════════════════════
   SHARED BUTTONS
════════════════════════════════════════ */
.btn-primary {
    background: var(--text);
    color: var(--muted);
    border: none;
    border-radius: 7px;
    font-family: 'DM Mono', monospace;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .06em;
    padding: 12px 28px;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity .2s, transform .15s;
}

.btn-primary:hover {
    opacity: .85;
    transform: translateY(-2px);
}

/* Used on Login (register) and SignIn forms */
.btn-submit {
    background: var(--text);
    color: var(--muted);
    border: none;
    border-radius: 7px;
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 12px 28px;
    cursor: pointer;
    transition: opacity .2s, transform .15s;
}

.btn-submit:hover {
    opacity: .85;
    transform: translateY(-2px);
}

/* Full-width variant used on SignIn */
.btn-submit--full {
    display: block;
    width: 100%;
    padding: 13px;
    margin-top: 1.5rem;
}

/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
footer {
    background: #1c1c1c;
    border-top: 1px solid rgba(255,255,255,.07);
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    text-align: center;
    margin-top: auto;
}

footer .logo-sm {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: .12em;
    font-size: 1.25rem;
    color: #f7f5f5;
}

footer .logo-sm span {
    color: var(--muted);
    padding: 0 3px;
}

footer nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .3rem 0;
}

footer nav a {
    color: rgba(247,245,245,.5);
    font-size: 12px;
    text-decoration: none;
    padding: 0 .9rem;
    border-right: 1px solid rgba(255,255,255,.14);
    letter-spacing: .03em;
    transition: color .2s;
}

footer nav a:last-child {
    border-right: none;
}

footer nav a:hover {
    color: #f7f5f5;
}

footer p {
    font-size: 11px;
    color: rgba(247,245,245,.3);
    font-family: 'DM Mono', monospace;
    letter-spacing: .04em;
}

/* ════════════════════════════════════════
   AUTH CARD  (Login & SignIn shared layout)
════════════════════════════════════════ */
.auth-wrapper {
    min-height: calc(100vh - var(--nav-h));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
}

.auth-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 2.5rem 2.25rem;
    width: 100%;
    max-width: 480px;
    opacity: 0;
    animation: fadeUp .55s .1s forwards;
}

/* Narrow variant for SignIn (fewer fields) */
.auth-card--narrow {
    max-width: 420px;
}

.auth-eyebrow {
    display: inline-block;
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--muted);
    border-radius: 3px;
    padding: 3px 10px;
    margin-bottom: 1rem;
}

.auth-card h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.4rem;
    letter-spacing: .08em;
    line-height: 1;
    color: var(--text);
    margin-bottom: .4rem;
}

.auth-card h1 em {
    font-style: normal;
    color: var(--muted);
    padding: 0 5px;
}

.auth-sub {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 2rem;
}

/* Bottom prompt (same pattern on both pages) */
.auth-prompt {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--muted);
    text-align: center;
}

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

.auth-prompt a:hover {
    text-decoration: underline;
}

/* ════════════════════════════════════════
   FORM PRIMITIVES  (shared by Login & SignIn)
════════════════════════════════════════ */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .85rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    margin-bottom: .85rem;
}

.form-group label {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
}

.form-group input {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 7px;
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    padding: 10px 13px;
    width: 100%;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.form-group input::placeholder {
    color: #bbb;
}

.form-group input:focus {
    border-color: var(--text);
    box-shadow: 0 0 0 3px rgba(17,17,17,.06);
}

/* Validation */
.field-validation-error {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    color: var(--accent2);
    letter-spacing: .04em;
}

.input-validation-error {
    border-color: var(--accent2) !important;
}

.validation-summary-errors ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1rem;
}

.validation-summary-errors li {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    color: var(--accent2);
    margin-bottom: .25rem;
}

/* Divider (used in Login between fields and Security) */
.form-divider {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 1.25rem 0 .5rem;
}

.form-divider span {
    font-family: 'DM Mono', monospace;
    font-size: 9px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
}

.form-divider .line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* Submit row (Login page) */
.submit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.submit-row a {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    color: var(--muted);
    text-decoration: none;
    transition: color .2s;
}

.submit-row a:hover {
    color: var(--text);
    text-decoration: underline;
}

/* ════════════════════════════════════════
   SIGN IN — TAB TOGGLE
════════════════════════════════════════ */
.login-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.75rem;
}

.tab-btn {
    background: none;
    border: none;
    padding: 9px 0;
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    cursor: pointer;
    transition: background .2s, color .2s;
}

.tab-btn.active {
    background: var(--text);
    color: var(--muted);
}

/* Forgot password row */
.forgot-row {
    display: flex;
    justify-content: flex-end;
    margin-top: -.4rem;
    margin-bottom: .85rem;
}

.forgot-row a {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    color: var(--muted);
    text-decoration: none;
    letter-spacing: .05em;
    transition: color .2s;
}

.forgot-row a:hover {
    color: var(--text);
    text-decoration: underline;
}

/* ════════════════════════════════════════
   GAMES PAGE
════════════════════════════════════════ */
.games-hero {
    padding: 4rem 2rem 3rem;
    text-align: center;
    opacity: 0;
    animation: fadeUp .5s .05s forwards;
    background: var(--bg);
}

.games-hero .hero-eyebrow {
    display: inline-block;
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--muted);
    border-radius: 3px;
    padding: 3px 10px;
    margin-bottom: 1.1rem;
    background: var(--bg);
}

.games-hero h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    letter-spacing: .07em;
    line-height: .95;
    color: var(--text);
    margin-bottom: 1.75rem;
}

.games-hero h1 em {
    font-style: normal;
    padding: 0 6px;
    color: var(--muted);
}

/* Big search bar */
.big-search-wrap {
    position: relative;
    max-width: 580px;
    margin: 0 auto;
}

.big-search-wrap svg {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
    width: 20px;
    height: 20px;
}

.big-search-wrap input {
    width: 100%;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    padding: 15px 18px 15px 50px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    box-shadow: 0 2px 12px rgba(0,0,0,.04);
}

.big-search-wrap input::placeholder {
    color: var(--muted);
}

.big-search-wrap input:focus {
    border-color: var(--text);
    box-shadow: 0 0 0 3px rgba(17,17,17,.07), 0 2px 12px rgba(0,0,0,.04);
}

/* Filter chips */
.filter-bar {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: 0 2rem 1.5rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp .45s .2s forwards;
}

.filter-label {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--muted);
    margin-right: .25rem;
}

.filter-chip {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    letter-spacing: .06em;
    color: var(--muted);
    padding: 5px 14px;
    cursor: pointer;
    transition: background .18s, border-color .18s, color .18s;
}

.filter-chip:hover,
.filter-chip.active {
    background: var(--text);
    border-color: var(--text);
    color: var(--muted);
}

/* Results meta bar */
.results-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem 1rem;
    flex-wrap: wrap;
    gap: .75rem;
}

.results-count {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    color: var(--muted);
    letter-spacing: .06em;
}

.results-count strong {
    color: var(--text);
}

.sort-wrap {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.sort-wrap label {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
}

.sort-wrap select {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    padding: 5px 10px;
    outline: none;
    cursor: pointer;
    transition: border-color .2s;
}

.sort-wrap select:focus {
    border-color: var(--text);
}

/* No-results state */
.no-results {
    display: none;
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 1rem;
}

.no-results p {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    letter-spacing: .08em;
    color: var(--muted);
    margin-bottom: .5rem;
}

.no-results span {
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    color: var(--muted);
}

/* ════════════════════════════════════════
   Merch 
════════════════════════════════════════ */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
}

.modal-content {
    background: white;
    padding: 2rem;
    max-width: 500px;
    margin: 10% auto;
    border-radius: 10px;
}

.close-btn {
    float: right;
    cursor: pointer;
    font-size: 20px;
}



/* ════════════════════════════════════════
   Admin Layout & Components
════════════════════════════════════════ */

/* ── ADMIN LAYOUT ── */
.admin-wrapper {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.admin-header {
    margin-bottom: 2rem;
}

.admin-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.admin-card {
    background: var(--surface);
    border-radius: 8px;
    padding: 2rem;
}

.admin-card--form {
    margin-top: 2rem;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group--full {
    grid-column: 1 / -1;
}

.admin-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
}

/* ── ADMIN TILES ── */
.admin-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    background: var(--surface);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
    transition: opacity .2s;
}

.admin-tile:hover {
    opacity: .8;
}

.admin-tile__icon {
    font-size: 2rem;
    margin-bottom: .5rem;
}

.admin-tile__label {
    font-weight: 600;
}

/* ── TABLE ── */
.admin-table-wrap {
    overflow-x: auto;
    margin-bottom: 2rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: .75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.admin-table th {
    font-weight: 600;
    background: var(--surface);
}

.row--inactive td {
    opacity: .45;
}

.action-cell {
    display: flex;
    gap: .5rem;
    align-items: center;
}

/* ── BUTTONS ── */
.btn-sm {
    padding: .3rem .75rem;
    border-radius: 4px;
    font-size: .8rem;
    border: 1px solid var(--border);
    cursor: pointer;
    text-decoration: none;
    color: var(--text);
    background: transparent;
}

.btn-sm--danger {
    border-color: #c0392b;
    color: #c0392b;
}

.btn-submit--danger {
    background: #c0392b;
}

.back-link {
    font-size: .9rem;
    color: var(--text);
    opacity: .6;
    text-decoration: none;
    display: inline-block;
    margin-top: .5rem;
}

.back-link:hover {
    opacity: 1;
}

/* ── BADGES ── */
.badge {
    padding: .25rem .65rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.badge--admin {
    background: #f0c040;
    color: #333;
}

.badge--user {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
}

/* ── ALERTS ── */
.alert-success {
    background: #d4edda;
    color: #155724;
    padding: .75rem 1rem;
    border-radius: 6px;
    margin-top: 1rem;
}

/* ════════════════════════════════════════
   Verification
════════════════════════════════════════ */
.code-input {
    letter-spacing: 8px;
    font-size: 1.5rem;
    text-align: center;
    font-family: var(--font-mono);
}

.btn-text {
    background: none;
    border: none;
    color: var(--text);
    opacity: .6;
    cursor: pointer;
    font-size: .9rem;
}

.btn-text:hover {
    opacity: 1;
}


/* ════════════════════════════════════════
   NAVBAR PROFILE DROPDOWN
════════════════════════════════════════ */
/* Standalone nav icon links (wishlist, cart) */
.nav-icon-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.25);
    color: var(--nav-text);
    transition: border-color .2s, background .2s;
    flex-shrink: 0;
}

.nav-icon-link:hover {
    border-color: rgba(255,255,255,.6);
    background: rgba(255,255,255,.1);
    color: var(--nav-text);
}

.nav-icon-link svg {
    width: 18px;
    height: 18px;
}

.profile-menu {
    position: relative;
}

.profile-trigger {
    background: none;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--nav-text);
    position: relative;
    transition: border-color .2s, background .2s;
}

.profile-trigger:hover {
    border-color: rgba(255,255,255,.6);
    background: rgba(255,255,255,.1);
}

.profile-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--accent2);
    color: #fff;
    font-family: 'DM Mono', monospace;
    font-size: 9px;
    font-weight: 600;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    line-height: 1;
}

.profile-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 220px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,.12);
    z-index: 200;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .18s, transform .18s;
}

.profile-dropdown.open {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-header {
    padding: .85rem 1rem .7rem;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}

.dropdown-section-label {
    padding: .55rem 1rem .2rem;
    font-family: 'DM Mono', monospace;
    font-size: 9px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
}

.dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .55rem 1rem;
    font-size: 13px;
    color: var(--text);
    text-decoration: none;
    transition: background .15s;
}

.dropdown-item:hover {
    background: var(--bg);
}

.dropdown-item--list {
    padding-left: 1.5rem;
    font-size: 12px;
    color: var(--muted);
}

.dropdown-item--list::before {
    content: '·';
    margin-right: .4rem;
    color: var(--border);
}

.dropdown-item--see-all {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: .06em;
    color: var(--muted);
    padding-left: 1.5rem;
}

.dropdown-item--danger {
    color: var(--accent2);
}

.dropdown-item--danger:hover {
    background: rgba(255,79,79,.06);
}

.dropdown-badge {
    background: var(--muted);
    color: #fff;
    font-family: 'DM Mono', monospace;
    font-size: 9px;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: .3rem 0;
}

/* ════════════════════════════════════════
   SHARED PAGE WRAPPER
════════════════════════════════════════ */
.page-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem 6rem;
}

/* ════════════════════════════════════════
   CART PAGE
════════════════════════════════════════ */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2.5rem;
    margin-top: 1.5rem;
    align-items: start;
}

.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cart-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border);
    opacity: 0;
    animation: fadeUp .4s forwards;
}

.cart-item:first-child {
    border-top: 1px solid var(--border);
}

.cart-item-thumb {
    flex-shrink: 0;
    width: 72px;
    height: 96px;
    border-radius: 6px;
    overflow: hidden;
    background: #e8e8e2;
    border: 1px solid var(--border);
}

.cart-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cart-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--border);
}

.cart-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .3rem;
}

.cart-item-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity .2s;
}

.cart-item-title:hover {
    opacity: .7;
}

.cart-item-sub {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    color: var(--muted);
    letter-spacing: .04em;
}

.cart-item-price {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    letter-spacing: .06em;
    color: var(--text);
    display: flex;
    align-items: baseline;
    gap: .4rem;
}

.cart-item-qty {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    color: var(--muted);
}

.cart-item-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .6rem;
    flex-shrink: 0;
}

.cart-item-line-total {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.15rem;
    letter-spacing: .06em;
    color: var(--text);
}

.cart-remove-btn {
    background: none;
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--muted);
    transition: border-color .2s, color .2s;
}

.cart-remove-btn:hover {
    border-color: var(--accent2);
    color: var(--accent2);
}

/* Cart summary sidebar */
.cart-summary {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    position: sticky;
    top: calc(var(--nav-h) + 1.5rem);
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.cart-summary-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    letter-spacing: .1em;
    color: var(--text);
    margin-bottom: .25rem;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--text);
}

.cart-summary-row--muted {
    font-size: 12px;
    color: var(--muted);
    font-family: 'DM Mono', monospace;
}

.cart-summary-divider {
    height: 1px;
    background: var(--border);
    margin: .25rem 0;
}

.cart-checkout-btn {
    width: 100%;
    text-align: center;
    padding: 13px;
    margin-top: .25rem;
}

.cart-checkout-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
    transform: none;
}

.cart-checkout-note {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    color: var(--muted);
    text-align: center;
    letter-spacing: .05em;
}

/* Cart empty state (shared with wishlist) */
.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 5rem 1rem;
    text-align: center;
}

.cart-empty p {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    letter-spacing: .08em;
    color: var(--muted);
}

/* Responsive */
@media (max-width: 700px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }
    .cart-summary {
        position: static;
    }
}

/* ════════════════════════════════════════
   MASTER LIST PAGE
════════════════════════════════════════ */
.masterlist-top-row {
    margin-bottom: 1rem;
}

.list-summary-card {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.1rem 1.5rem;
    text-decoration: none;
    color: var(--text);
    min-width: 240px;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}

.list-summary-card:hover {
    border-color: var(--text);
    box-shadow: 4px 4px 0 var(--text);
    transform: translateY(-2px);
}

.list-summary-card--wishlist .list-summary-icon {
    color: var(--accent2);
}

.list-summary-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.list-summary-body {
    flex: 1;
}

.list-summary-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--text);
}

.list-summary-count {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    color: var(--muted);
    margin-top: .15rem;
}

.list-summary-arrow {
    font-family: 'DM Mono', monospace;
    font-size: 14px;
    color: var(--muted);
}

.masterlist-empty-hint {
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    color: var(--muted);
    padding: .75rem 0 .25rem;
    letter-spacing: .04em;
}

.list-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.list-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.list-card-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .5rem;
}

.list-card-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.list-card-count {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    color: var(--muted);
    flex-shrink: 0;
}

.list-card-desc {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
}

.list-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: .85rem;
    border-top: 1px solid var(--border);
}

.list-card-date {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    color: var(--muted);
    letter-spacing: .05em;
}

.create-list-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.5rem;
    max-width: 520px;
    margin-top: 1.5rem;
}

/* ════════════════════════════════════════
   WISHLIST ACTIVE STATE
════════════════════════════════════════ */
.wishlist-hover.active {
    color: var(--accent2);
    background: rgba(255, 79, 79, .12);
    border-color: var(--accent2);
}

.wishlist-hover.active svg path {
    fill: var(--accent2);
    stroke: var(--accent2);
}

/* ════════════════════════════════════════
   GAME DETAIL PAGE
════════════════════════════════════════ */
.game-detail-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem 6rem;
}

.game-back-link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin: 1.75rem 0 2.25rem;
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    transition: color .2s;
}

.game-back-link:hover {
    color: var(--text);
}

/* ── Hero two-column layout ── */
.game-detail-hero {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 3.5rem;
    margin-bottom: 4.5rem;
    opacity: 0;
    animation: fadeUp .55s .05s forwards;
}

.game-cover-art {
    width: 100%;
    display: block;
    border-radius: 12px;
    box-shadow: 6px 6px 0 var(--border);
}

.game-cover-placeholder {
    width: 100%;
    aspect-ratio: 3/4;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--border);
}

.game-detail-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.1rem;
}

.game-detail-developer {
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
}

.detail-sep {
    margin: 0 .5rem;
    opacity: .5;
}

.game-detail-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.8rem, 6vw, 5rem);
    letter-spacing: .06em;
    line-height: .93;
    color: var(--text);
}

.game-detail-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.detail-chip {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 4px 11px;
    border-radius: 20px;
    border: 1px solid var(--border);
    color: var(--muted);
    background: var(--surface);
}

.detail-chip--esrb {
    border-color: var(--text);
    color: var(--text);
    font-weight: 600;
}

.game-detail-platforms {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.platform-tag {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 5px;
    background: var(--text);
    color: var(--bg);
}

.game-detail-desc {
    font-size: 14px;
    line-height: 1.7;
    color: var(--muted);
    max-width: 560px;
}

.game-website-link {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    letter-spacing: .06em;
    color: var(--text);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    transition: opacity .2s;
}

.game-website-link:hover {
    opacity: .6;
}

/* ── Shared section spacing ── */
.game-section {
    margin-bottom: 4rem;
    opacity: 0;
    animation: fadeUp .5s .15s forwards;
}

/* ── Editions grid ── */
.editions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.edition-card-detail {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color .25s, box-shadow .25s, transform .25s;
}

.edition-card-detail:hover {
    border-color: var(--text);
    box-shadow: 4px 4px 0 var(--text);
    transform: translateY(-3px);
}

.edition-cover-wrap {
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: #e8e8e2;
}

.edition-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.edition-card-body {
    padding: 1rem 1rem .5rem;
    flex: 1;
}

.edition-platform-tag {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: .3rem;
}

.edition-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
    margin-bottom: .5rem;
}

.edition-desc {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.55;
    margin-bottom: .6rem;
}

.edition-contents {
    list-style: none;
    padding: 0;
    margin: 0 0 .5rem;
}

.edition-contents li {
    font-size: 11px;
    font-family: 'DM Mono', monospace;
    color: var(--muted);
    padding: 4px 0;
    border-bottom: 1px solid var(--border);
}

.edition-contents li:last-child {
    border-bottom: none;
}

.edition-card-footer {
    padding: .85rem 1rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    flex-wrap: wrap;
}

.edition-price-block {
    display: flex;
    align-items: baseline;
    gap: .45rem;
    flex-wrap: wrap;
}

.edition-price {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    letter-spacing: .06em;
    color: var(--text);
}

.edition-sale-price {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    letter-spacing: .06em;
    color: var(--accent2);
}

.edition-original-price {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    color: var(--muted);
    text-decoration: line-through;
}

.edition-sale-label {
    font-family: 'DM Mono', monospace;
    font-size: 9px;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: var(--accent2);
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
}

.edition-actions {
    display: flex;
    align-items: center;
    gap: .45rem;
}

/* Cart button */
.cart-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: var(--text);
    color: var(--bg);
    border: none;
    border-radius: 7px;
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    letter-spacing: .05em;
    padding: 7px 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s, transform .15s;
}

.cart-btn:hover {
    background: var(--muted);
    transform: translateY(-1px);
}

.cart-btn.active {
    background: var(--muted);
    color: #fff;
}

.cart-btn.active:hover {
    background: var(--accent2);
}

/* Wishlist button inside edition card — always visible, static position */
.edition-wishlist {
    position: static !important;
    opacity: 1 !important;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
}

/* ── Screenshots ── */
.screenshots-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: .75rem;
    margin-top: 1.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.screenshots-scroll::-webkit-scrollbar { height: 4px; }
.screenshots-scroll::-webkit-scrollbar-track { background: transparent; }
.screenshots-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.screenshot-item {
    flex-shrink: 0;
    width: 320px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #e8e8e2;
}

.screenshot-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

/* ── Trailer ── */
.trailer-wrap {
    margin-top: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    aspect-ratio: 16/9;
    max-width: 800px;
}

.trailer-wrap iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* ── Languages table ── */
.lang-table-wrap {
    margin-top: 1.5rem;
    overflow-x: auto;
    max-width: 600px;
}

.lang-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.lang-table th {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
    padding: .6rem 1rem;
    text-align: left;
    border-bottom: 2px solid var(--border);
}

.lang-table td {
    padding: .55rem 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.lang-table tr:last-child td { border-bottom: none; }

.lang-check {
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    color: var(--muted);
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .game-detail-hero {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .game-detail-cover {
        max-width: 220px;
        margin: 0 auto;
    }

    .game-detail-info {
        justify-content: flex-start;
    }
}

/* ════════════════════════════════════════
   ACCOUNT SETTINGS PAGE
════════════════════════════════════════ */
.settings-layout {
    display: grid;
    grid-template-columns: 1fr 190px;
    gap: 2.5rem;
    align-items: start;
    margin-top: 1.5rem;
}

.settings-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.settings-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.75rem;
}

.settings-section--danger {
    border-color: rgba(255, 79, 79, .4);
}

.settings-section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.3rem;
    letter-spacing: .1em;
    color: var(--text);
    margin-bottom: .75rem;
}

.settings-section-divider {
    height: 1px;
    background: var(--border);
    margin-bottom: 1.5rem;
}

.settings-current-value {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 1rem;
}

.settings-hint {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    color: var(--muted);
    letter-spacing: .04em;
    margin-bottom: .85rem;
}

/* Sidebar quick-nav */
.settings-nav {
    position: sticky;
    top: calc(var(--nav-h) + 1.5rem);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .1rem;
}

.settings-nav-title {
    font-family: 'DM Mono', monospace;
    font-size: 9px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: .5rem;
}

.settings-nav-link {
    display: block;
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    color: var(--text);
    text-decoration: none;
    padding: .4rem .5rem;
    border-radius: 6px;
    transition: background .15s, color .15s;
}

.settings-nav-link:hover {
    background: var(--bg);
}

.settings-nav-link--danger {
    color: var(--accent2);
}

/* Address cards */
.address-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.address-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.address-card--default {
    border-color: var(--muted);
}

.address-default-badge {
    font-family: 'DM Mono', monospace;
    font-size: 9px;
    letter-spacing: .1em;
    text-transform: uppercase;
    background: var(--muted);
    color: #fff;
    padding: 2px 7px;
    border-radius: 3px;
    display: inline-block;
    margin-bottom: .2rem;
}

.address-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.address-lines {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.55;
}

.address-card-actions {
    display: flex;
    gap: .5rem;
    margin-top: auto;
    padding-top: .75rem;
    border-top: 1px solid var(--border);
}

.add-address-trigger {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: none;
    border: 1px dashed var(--border);
    border-radius: 7px;
    padding: .6rem 1rem;
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    letter-spacing: .08em;
    color: var(--muted);
    cursor: pointer;
    transition: border-color .2s, color .2s;
    margin-bottom: 1.25rem;
}

.add-address-trigger:hover {
    border-color: var(--text);
    color: var(--text);
}

.add-address-form {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem;
    margin-top: -.5rem;
    margin-bottom: .5rem;
}

/* Success / error banners */
.settings-success-banner {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: .75rem 1rem;
    font-size: 13px;
    margin-bottom: 1.25rem;
}

.settings-error-banner {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: .75rem 1rem;
    font-size: 13px;
    margin-bottom: 1.25rem;
}

/* Responsive */
@media (max-width: 768px) {
    .settings-layout {
        grid-template-columns: 1fr;
    }
    .settings-nav {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        gap: .25rem;
    }
    .settings-nav-title {
        width: 100%;
        margin-bottom: .25rem;
    }
}

/* ════════════════════════════════════════
   PROFILE PAGE
════════════════════════════════════════ */
.profile-greeting {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3rem, 8vw, 6rem);
    letter-spacing: .06em;
    line-height: .93;
    color: var(--text);
    margin: 2rem 0 2rem;
    opacity: 0;
    animation: fadeUp .5s .05s forwards;
}

.profile-greeting em {
    font-style: normal;
    color: var(--muted);
}

.profile-stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeUp .5s .15s forwards;
}

.profile-stat-chip {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: .85rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .2rem;
    min-width: 130px;
}

.profile-stat-chip--accent {
    border-color: var(--muted);
    background: rgba(98, 125, 154, .07);
}

.profile-stat-label {
    font-family: 'DM Mono', monospace;
    font-size: 9px;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--muted);
}

.profile-stat-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.profile-links-row {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
    margin-top: 1.5rem;
    opacity: 0;
    animation: fadeUp .5s .25s forwards;
}

.profile-link-card {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: .9rem 1.4rem;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}

.profile-link-card:hover {
    border-color: var(--text);
    box-shadow: 3px 3px 0 var(--text);
    transform: translateY(-2px);
}

/* ════════════════════════════════════════
   ANIMATIONS
════════════════════════════════════════ */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
