:root {
    --bg: #101214;
    --bg-secondary: #1a1d21;
    --text: #edf1f7;
    --muted: #9aa3b2;
    --theme-primary: #ff007f;
    --theme-secondary: #8b2cff;

    --header-bg: rgba(22,24,28,0.92);
    --header-border: rgba(255,255,255,0.08);

    --theme-card: rgba(24, 10, 32, 0.88);
    --theme-divider: rgba(255, 0, 127, 0.14);
    --theme-border: rgba(255, 0, 127, 0.12);
    --theme-glow: rgba(255, 0, 127, 0.35);
    --theme-bg-glow: rgba(255,255,255,0.02);
    --theme-button-start: #ff007f;
    --theme-button-end: #8b2cff;
    --theme-row-overlay: rgba(8,10,12,0.50);

    --theme-accent: #FFD300;
    --theme-success: #00d68f;
    --theme-info: #00d9ff;

    --theme-favorite: #FFD300;
    --theme-favorite-border: rgba(255, 211, 0, 0.28);
    --theme-favorite-bg: rgba(255, 211, 0, 0.08);
    --theme-favorite-hover: rgba(255, 211, 0, 0.18);
    --theme-favorite-hover-border: rgba(255, 211, 0, 0.45);

    --surface-bg: rgba(22,24,28,0.92);
    --surface-border: rgba(255,255,255,0.08);
    --surface-hover: rgba(255,255,255,0.14);
}

body.light-mode {
    --bg: #f5f2fb;
    --bg-secondary: #ece7f6;
    --text: #1e1328;
    --muted: #6f5f80;

    --header-bg: rgba(255,255,255,0.92);
    --header-border: rgba(0,0,0,0.08);

    --theme-bg-glow: rgba(255, 255, 255, 0.08);

    --theme-favorite: #ff007f;
    --theme-favorite-border: rgba(255, 0, 127, 0.28);
    --theme-favorite-bg: rgba(255, 0, 127, 0.08);
    --theme-favorite-hover: rgba(255, 0, 127, 0.18);
    --theme-favorite-hover-border: rgba(255, 0, 127, 0.45);

    --theme-row-overlay: rgba(255, 255, 255, 0.75);

    --surface-bg: rgba(255,255,255,0.88);
    --surface-border: rgba(0,0,0,0.08);
    --surface-hover: rgba(0,0,0,0.05);
}
body.light-mode.theme-nightcity {
    --theme-card: rgba(255,255,255,0.88);
}

body.light-mode.theme-arasaka {
    --theme-card: rgba(255,245,245,0.92);
}

body.light-mode.theme-edgerunner {
    --theme-card: rgba(255,252,235,0.92);
}

body.light-mode.theme-trauma {
    --theme-card: rgba(245,255,250,0.92);
}

body.light-mode.theme-netrunner {
    --theme-card: rgba(245,250,255,0.92);
}

body.theme-nightcity {
    --theme-primary: #ff007f;
    --theme-secondary: #8b2cff;
    --theme-accent: #FFD300;
    --theme-success: #00d68f;
    --theme-info: #00d9ff;

    --theme-card: rgba(24, 10, 32, 0.88);
    --theme-divider: rgba(255, 0, 127, 0.14);
    --theme-border: rgba(255, 0, 127, 0.12);
    --theme-glow: rgba(255, 0, 127, 0.35);

    --theme-button-start: #ff007f;
    --theme-button-end: #8b2cff;
}

body.theme-arasaka {
    --theme-primary: #ff2a2a;
    --theme-secondary: #7a0000;
    --theme-accent: #ffffff;
    --theme-success: #ff5c5c;
    --theme-info: #ff9999;

    --theme-card: rgba(20, 4, 4, 0.92);
    --theme-divider: rgba(255, 42, 42, 0.14);
    --theme-border: rgba(255, 42, 42, 0.12);
    --theme-glow: rgba(255, 42, 42, 0.35);

    --theme-button-start: #ff2a2a;
    --theme-button-end: #7a0000;
}

body.theme-edgerunner {
    --theme-primary: #FFD300;
    --theme-secondary: #ff9900;
    --theme-accent: #00d9ff;
    --theme-success: #00ff88;
    --theme-info: #00d9ff;

    --theme-card: rgba(18, 18, 4, 0.92);
    --theme-divider: rgba(255, 211, 0, 0.14);
    --theme-border: rgba(255, 211, 0, 0.12);
    --theme-glow: rgba(255, 211, 0, 0.35);

    --theme-button-start: #FFD300;
    --theme-button-end: #ff9900;
}

body.theme-trauma {
    --theme-primary: #00ff88;
    --theme-secondary: #008f4c;
    --theme-accent: #ffffff;
    --theme-success: #00ff88;
    --theme-info: #aaffdd;

    --theme-card: rgba(4, 18, 10, 0.92);
    --theme-divider: rgba(0, 255, 136, 0.14);
    --theme-border: rgba(0, 255, 136, 0.12);
    --theme-glow: rgba(0, 255, 136, 0.35);

    --theme-button-start: #00ff88;
    --theme-button-end: #008f4c;
}

body.theme-netrunner {
    --theme-primary: #00d9ff;
    --theme-secondary: #0055ff;
    --theme-accent: #8b2cff;
    --theme-success: #00d9ff;
    --theme-info: #99eeff;

    --theme-card: rgba(4, 10, 20, 0.92);
    --theme-divider: rgba(0, 217, 255, 0.14);
    --theme-border: rgba(0, 217, 255, 0.12);
    --theme-glow: rgba(0, 217, 255, 0.35);

    --theme-button-start: #00d9ff;
    --theme-button-end: #0055ff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Nunito', sans-serif;
    color: var(--text);
background:
    radial-gradient(
        circle at top right,
        var(--theme-bg-glow),
        transparent 30%
    ),
    linear-gradient(
        180deg,
        var(--bg),
        var(--bg-secondary)
    );
    transition: 0.3s ease;

    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0px,
        transparent 2px,
        rgba(255,255,255,0.02) 3px
    );
}

header {
    position: sticky;
    top: 0;
    z-index: 999;
    backdrop-filter: blur(16px);
    background: var(--surface-bg);
    border-bottom: 1px solid var(--surface-border);
    transition: 0.25s ease;
}

body.light-mode header {
    background: var(--header-bg);
    border-bottom: 1px solid var(--header-border);
}

.header-wrap {
    max-width: 1600px;
    margin: auto;
    padding: 10px 50px;

    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 18px;
}

.logo {
    display: inline-block;
    justify-self: center;
}
.vault-logo {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-link {
    display: inline-block;
    text-decoration: none;
    color: inherit;
    border: none;
    outline: none;
    cursor: pointer;
}

.logo-link:hover,
.logo-link:focus,
.logo-link:active,
.logo-link:visited {
    text-decoration: none;
    color: inherit;
    border: none;
    outline: none;
    transform: none;
}

.logo h1 {
    margin: 0;
    font-family: 'Kristi', cursive;
    font-size: 64px;
    font-weight: 400;
    line-height: 0.9;
    color: white;
    text-shadow:
        0 0 8px var(--theme-glow),
        0 0 18px var(--theme-glow);
    letter-spacing: 1px;
}

.logo p {
    margin: 2px 0 0;
    color: var(--muted);
    letter-spacing: 3px;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
}

.mobile-logo {
    display: flex;
    justify-content: center;
    align-items: center;

    padding-top: 18px;
    padding-bottom: 6px;
}

.mobile-logo .logo-link {
    text-align: center;
}

.mobile-logo h1 {
    margin: 0;

    font-family: 'Kristi', cursive;
    font-size: 48px;
    font-weight: 400;
    line-height: 0.9;

    color: white;

    text-shadow:
        0 0 6px var(--theme-glow),
        0 0 14px var(--theme-glow);
}

.light-mode .mobile-logo h1 {
    color: black;
}

.mobile-logo p {
    margin-top: 2px;

    font-size: 14px;
    letter-spacing: 3px;
    font-weight: 800;

    color: var(--muted);
    text-transform: uppercase;
}

.controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
}

.control-icon {
    display: block;
    width: 30px;
    height: 30px;
    fill: var(--muted);
    stroke: var(--muted);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: color 0.25s ease;
}
.music-btn .control-icon {
    width: 36px;
    height: 36px;
}

.sort-control {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
}

.sort-label {
    font-size: 13px;
    font-weight: 800;
    color: var(--muted);
    white-space: nowrap;
}

.utility-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-left: auto;
}

.sort-control select {
    min-width: 240px;
}
.sort-direction-btn .sort-up,
.sort-direction-btn .sort-down {
    transition: 0.25s ease;
    opacity: 0.35;
}

.sort-direction-btn.asc .sort-up {
    opacity: 1;
}

.sort-direction-btn.desc .sort-down {
    opacity: 1;
}

select,
.control-btn {
    font-family: inherit;
    background: var(--surface-bg);
    border: 1px solid var(--surface-border);
    color: var(--text);
    padding: 9px 12px;
    font-size: 13px;
    border-radius: 14px;
    cursor: pointer;
    transition: 0.25s ease;
}
.control-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;
    padding: 0;

    line-height: 1;
    flex-shrink: 0;
}

.control-btn:hover,
select:hover {
    box-shadow: 0 0 18px var(--theme-glow);
    border-color: var(--theme-primary);
}

main {
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    padding: 24px 20px;
    flex: 1;
}

.game-row {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 30px;
    align-items: center;

    padding: 24px 26px;
    margin-bottom: 18px;

    background:
        linear-gradient(
            90deg,
            rgba(8, 8, 12, 0.92) 0%,
            rgba(8, 8, 12, 0.86) 45%,
            rgba(8, 8, 12, 0.72) 100%
        ),
        var(--theme-card);

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    border-radius: 0 22px 22px 0;
    border-top: 1px solid var(--theme-border);
    border-right: 1px solid var(--theme-border);
    border-bottom: 1px solid var(--theme-border);
    border-left: none;

    box-shadow: 0 0 24px transparent;
    backdrop-filter: blur(14px);
    overflow: hidden;

    background-color: var(--theme-row-overlay);
    background-blend-mode: soft-light;

    transition: 0.25s ease;
}
.game-row:hover {
    box-shadow: 0 0 8px var(--theme-glow);
}
.game-row::after {
    content: "";
    position: absolute;
    inset: 0;

    border-radius: 0 22px 22px 0;
    padding: 1px;

    background: linear-gradient(
        180deg,
        var(--theme-primary),
        var(--theme-secondary)
    );

    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);

    -webkit-mask-composite: xor;
    mask-composite: exclude;

    opacity: 0.25;
    transition: 0.25s ease;
    pointer-events: none;
}
.game-row:hover::after {
    opacity: 0.5;
}

.game-row::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 8px;
    border-radius: 0;
    background: linear-gradient(var(--theme-primary), var(--theme-secondary));
    box-shadow: 0 0 18px var(--theme-glow);
}

.content {
    padding-right: 20px;
}

.content h2 {
    margin: 0 0 16px;
    font-size: 36px;
    line-height: 1.1;
    font-weight: 900;
    transition: 0.25s ease;
}

.stats,
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.stats {
    margin-bottom: 12px;
}

.stat,
.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.08);
    background: var(--theme-row-overlay);
    font-size: 13px;
    font-weight: 700;
    transition: 0.25s ease;
}

.stat:hover,
.chip:hover {
    box-shadow: 0 0 4px var(--theme-glow);
    border-color: var(--theme-primary);
}

.favorite-chip {
    color: var(--theme-favorite);
    border-color: var(--theme-favorite-border);
    background: var(--theme-favorite-bg);
}

.favorite-chip:hover {
    box-shadow: 0 0 4px var(--theme-favorite-hover);
    border-color: var(--theme-favorite-hover-border);
}

.rating-chip {
    color: var(--theme-primary);
    border-color: color-mix(in srgb, var(--theme-primary) 28%, transparent);
}

.rating-chip:hover {
    box-shadow: 0 0 4px var(--theme-glow);
    border-color: var(--theme-primary);
}

.right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 16px;
    padding-left: 24px;
    border-left: 1px solid var(--theme-divider);
    transition: 0.25s ease;
}

.compact-meta {
    display: none;
    align-items: center;
    gap: 14px;
    font-weight: 800;
    font-size: 18px;
    color: var(--text);
}
.meta-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;

    opacity: 0.9;
}

.rating {
    font-size: 36px;
    font-weight: 900;
    color: var(--theme-primary);
    text-shadow: 0 0 18px var(--theme-glow);
}
.rating .meta-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.status {
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

/* Status Green */
.status.owned {
    border: 1px solid rgba(0,214,143,0.55);
    background: rgba(0,214,143,0.2);
}

/* Status Yellow */
.status.upcoming {
    border: 1px solid rgba(0,217,255,0.55);
    background: rgba(0,217,255,0.2);
}

/* Status Blue */
.status.wishlist {
    border: 1px solid rgba(255, 211, 0, 0.55);
    background: rgba(255, 211, 0, 0.2);
}

/* Status Pink */
.status.borrowed {
    border: 1px solid rgba(139, 44, 255, 0.55);
    background: rgba(139, 44, 255, 0.2);
}

/* Status Red */
.status.sold {
    border: 1px solid rgba(255, 0, 127, 0.55);
    background: rgba(255, 0, 127, 0.2);
}

.enter-btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;
    color: white;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 16px 24px;
    border: 1px solid var(--theme-primary);
    border-radius: 14px;
    background: linear-gradient(
        135deg,
        var(--theme-button-start),
        var(--theme-button-end)
    );
    box-shadow: 0 0 20px var(--theme-glow);
    transition: 0.25s ease;
    text-align: center;
}

.enter-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.35),
        transparent
    );
    transition: 0.5s;
}

.enter-btn:hover {
    transform: scale(1.04);
    box-shadow: 0 0 28px var(--theme-glow);
}

.enter-btn:hover::before {
    left: 150%;
}

footer {
    text-align: center;
    padding: 28px 20px 34px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    border-top: 1px solid var(--surface-border);
    backdrop-filter: blur(10px);
}

.footer-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.footer-control {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--surface-border);
    background: var(--surface-bg);

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

    font-size: 18px;
    text-decoration: none;
    cursor: pointer;
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
    transition: 0.25s ease;
}

.footer-control:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 18px var(--surface-border);
}

.theme-icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linejoin: round;
    stroke-linecap: round;
    transition: 0.25s ease;
}

.footer-control:hover .theme-icon {
    transform: scale(1.08);
}

.footer-yellow {
    color: #FFD300;
    border-color: rgba(255, 211, 0, 0.28);
    background: rgba(255, 211, 0, 0.08);
}
.footer-yellow.active {
    box-shadow: 0 0 8px rgba(255, 211, 0, 1);
    border-color: rgba(255, 211, 0, 1);
    background: rgba(255, 211, 0, 0);
}

.footer-pink {
    color: #ff007f;
    border-color: rgba(255, 0, 127, 0.28);
    background: rgba(255, 0, 127, 0.08);
}
.footer-pink.active {
    box-shadow: 0 0 8px rgba(255, 0, 127, 1);
    border-color: rgba(255, 0, 127, 1);
    background: rgba(255, 0, 127, 0);
}

.footer-red {
    color: #ff2a2a;
    border-color: rgba(255, 42, 42, 0.28);
    background: rgba(255, 42, 42, 0.08);
}
.footer-red.active {
    box-shadow: 0 0 8px rgba(255, 42, 42, 1);
    border-color: rgba(255, 42, 42, 1);
    background: rgba(255, 42, 42, 0);
}

.footer-green {
    color: #00ff88;
    border-color: rgba(0, 255, 136, 0.28);
    background: rgba(0, 255, 136, 0.08);
}
.footer-green.active {
    box-shadow: 0 0 8px rgba(0, 255, 136, 1);
    border-color: rgba(0, 255, 136, 1);
    background: rgba(0, 255, 136, 0);
}

.footer-blue {
    color: #00d9ff;
    border-color: rgba(0, 217, 255, 0.28);
    background: rgba(0, 217, 255, 0.08);
}
.footer-blue.active {
    box-shadow: 0 0 8px rgba(0, 217, 255, 1);
    border-color: rgba(0, 217, 255, 1);
    background: rgba(0, 217, 255, 0);
}

.footer-meta {
    line-height: 1.6;
}

footer a {
    color: var(--theme-primary);
    text-decoration: none;
}

/* COMPACT MODE DESKTOP */

body.compact-mode .stats,
body.compact-mode .chips,
body.compact-mode .rating,
body.compact-mode .status {
    display: none;
}

body.compact-mode .compact-meta {
    display: flex;
}

body.compact-mode .game-row { 
	padding: 16px 24px; 
	grid-template-columns: 60% 40%; 
	min-height: 96px;
	gap: 0; }

body.compact-mode .content {
    padding-right: 24px;
    display: flex;
    align-items: center;
}

body.compact-mode .content h2 {
    font-size: 26px;
    margin: 0;
}

body.compact-mode .right {
    border-left: 1px solid var(--theme-divider);
    padding-left: 24px;
    display: grid;
    grid-template-columns: 60% 40%;
    align-items: center;
    gap: 0;
}

body.compact-mode .compact-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
}

body.compact-mode .enter-btn {
    justify-self: center;
}

/* MOBILE */
@media (max-width: 1200px) {
    .header-wrap {
        grid-template-columns: 1fr auto;
        padding: 8px 14px;
        gap: 10px;
    }

    .logo {
        display: none;
    }

    .controls {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        width: 100%;
    }

    .sort-control {
        justify-content: flex-start;
        flex: 1;
        min-width: 0;
    }

    .sort-control select {
        width: 100%;
        min-width: 0;
        max-width: none;
    }

    .utility-controls {
        justify-content: flex-end;
        flex-shrink: 0;
    }

    .game-row {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .right {
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding-left: 0;
        border-left: none;
        border-top: 1px solid rgba(255, 0, 127, 0.14);
        padding-top: 18px;
    }

    .content {
        padding-right: 0;
    }

    .content h2 {
        font-size: 30px;
    }

    .status {
        order: 1;
    }

    .enter-btn {
        order: 2;
        flex: 1;
        max-width: 50vw;
    }

    .rating {
        order: 3;
        font-size: 28px;
        white-space: nowrap;
    }


/* MOBILE COMPACT */

body.compact-mode .game-row {
    grid-template-columns: 1fr;
    padding: 18px;
    gap: 16px;
}

body.compact-mode .content {
    padding-right: 0;
    width: 100%;
}

body.compact-mode .content h2 {
    font-size: 22px;
    line-height: 1.2;
    margin: 0;

    text-align: center;
    white-space: normal;
    word-break: break-word;
    width: 100%;
}

body.compact-mode .right {
    width: 100%;

    border-top: none;
    padding-top: 0;
    padding-left: 0;

    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}

body.compact-mode .compact-meta {
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
    justify-content: center;
    gap: 8px;

    width: 100%;
    min-width: 0;
}

body.compact-mode .compact-meta-top,
body.compact-mode .compact-meta-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

body.compact-mode .compact-meta .chip,
body.compact-mode .compact-meta .stat {
    font-size: 12px;
    padding: 7px 10px;
}

body.compact-mode .enter-btn {
    min-width: 110px;
    max-width: 110px;
    padding: 14px 16px;

    flex-shrink: 0;
    justify-self: end;
}
}




/* ADMIN */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.login-card {
    width: 100%;
    max-width: 460px;
    padding: 40px;
    background: var(--theme-card);
    border-top: 1px solid var(--theme-border);
    border-right: 1px solid var(--theme-border);
    border-bottom: 1px solid var(--theme-border);
    border-left: none;
    border-radius: 0 22px 22px 0;
    box-shadow: 0 0 32px rgba(0,0,0,0.25);
    position: relative;
    backdrop-filter: blur(14px);
}

.login-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(
        var(--theme-primary),
        var(--theme-secondary)
    );
}

.login-logo {
    text-align: center;
    margin-bottom: 32px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login-form input {
    width: 100%;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    color: var(--text);
    font-family: inherit;
    font-size: 15px;
    transition: 0.25s ease;
}

.login-form input:focus {
    outline: none;
    border-color: var(--theme-primary);
    box-shadow: 0 0 18px var(--theme-glow);
}

.login-btn {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
}

.login-error {
    padding: 14px;
    border-radius: 14px;
    background: rgba(255, 42, 42, 0.08);
    border: 1px solid rgba(255, 42, 42, 0.22);
    color: #ff6f6f;
    font-weight: 700;
    text-align: center;
}

.login-footer {
    margin-top: 28px;
    text-align: center;
}

.login-footer a {
    color: var(--theme-primary);
    text-decoration: none;
    font-weight: 700;
}

body.light-mode .login-form input {
    background: rgba(255,255,255,0.75);
    border-color: rgba(0,0,0,0.08);
}

@media (max-width: 768px) {
    .login-card {
        padding: 28px 20px;
    }
}




/* =========================
   VAULT ADMIN
========================= */

.vault-admin {
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    padding: 32px 20px;
}

.vault-admin-grid {
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 24px;
    align-items: start;
}

.vault-admin .login-card {
    max-width: none;
    width: 100%;
}

.vault-admin h2 {
    margin: 0 0 20px;
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    letter-spacing: 2px;
    color: var(--theme-primary);
}
.vault-admin-grid {
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 24px;
    align-items: start;
}

.vault-admin-grid > .login-card:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / span 2;
}

.vault-admin-grid > .login-card:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}

.vault-admin-grid > .login-card:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
}

/* =========================
   FORM ELEMENTS
========================= */

.login-form textarea {
    width: 100%;
    min-height: 120px;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    color: var(--text);
    font-family: inherit;
    font-size: 15px;
    resize: vertical;
    transition: 0.25s ease;
}

.login-form textarea:focus,
.login-form select:focus,
.login-form input:focus {
    outline: none;
    border-color: var(--theme-primary);
    box-shadow: 0 0 18px var(--theme-glow);
}

.login-form label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 14px;
    color: var(--text);
}

.login-form input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--theme-primary);
    cursor: pointer;
}

/* =========================
   GAME LIST
========================= */

.admin-game-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    padding: 16px 18px;
    margin-bottom: 14px;

    border-top: 1px solid var(--theme-border);
    border-right: 1px solid var(--theme-border);
    border-bottom: 1px solid var(--theme-border);
    border-left: none;

    border-radius: 0 18px 18px 0;

    background: var(--theme-card);
    position: relative;
    overflow: hidden;
}

.admin-game-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;

    background: linear-gradient(
        180deg,
        var(--theme-primary),
        var(--theme-secondary)
    );
}

.admin-game-item:hover {
    box-shadow: 0 0 24px var(--theme-glow);
}

.admin-game-item > div:first-child {
    font-weight: 800;
    font-size: 15px;
    line-height: 1.4;
    padding-left: 8px;
}

/* =========================
   ACTIONS
========================= */

.admin-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.admin-actions a {
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    color: var(--theme-primary);

    padding: 8px 12px;
    border-radius: 12px;

    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);

    transition: 0.25s ease;
}

.admin-actions a:hover {
    border-color: var(--theme-primary);
    box-shadow: 0 0 14px var(--theme-glow);
}

/* =========================
   LIGHT MODE
========================= */

body.light-mode .login-form textarea {
    background: rgba(255,255,255,0.75);
    border-color: rgba(0,0,0,0.08);
}

body.light-mode .admin-actions a {
    background: rgba(255,255,255,0.75);
    border-color: rgba(0,0,0,0.08);
}

/* =========================
   MOBILE
========================= */

@media (max-width: 1200px) {
    .vault-admin-grid {
        grid-template-columns: 1fr;
    }

    .admin-game-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .admin-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}