/* ==========================================================================
   GAME CHECKLIST - MODERN DARK CLUB & NEON GLOW DESIGN SYSTEM
   MULTI-LIST & STEAM INTEGRATION ENGINE
   ========================================================================== */

:root {
    --bg-dark: #06070d;
    --bg-surface: #0e0f1d;
    --bg-sidebar: rgba(12, 13, 26, 0.88);
    --bg-card: rgba(18, 19, 34, 0.75);
    --bg-card-hover: rgba(26, 28, 50, 0.9);
    --bg-glass: rgba(14, 15, 29, 0.8);
    --bg-input: rgba(10, 11, 22, 0.8);

    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-card: rgba(255, 255, 255, 0.09);
    --border-accent: rgba(168, 85, 247, 0.45);
    --border-fuchsia: rgba(217, 70, 239, 0.6);
    --border-completed: rgba(34, 197, 94, 0.5);

    --primary-gradient: linear-gradient(135deg, #a855f7 0%, #d946ef 50%, #ec4899 100%);
    --success-gradient: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    --steam-gradient: linear-gradient(135deg, #1b2838 0%, #2a475e 100%);

    --primary-purple: #a855f7;
    --primary-fuchsia: #d946ef;
    --primary-pink: #ec4899;
    --accent-blue: #3b82f6;
    --accent-cyan: #06b6d4;
    --accent-green: #22c55e;
    --accent-amber: #f59e0b;
    --accent-red: #ef4444;

    --text-main: #ffffff;
    --text-secondary: #e2e8f0;
    --text-muted: #94a3b8;
    --text-dim: #64748b;

    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --glow-purple: 0 0 25px rgba(168, 85, 247, 0.45);
    --glow-fuchsia: 0 0 30px rgba(217, 70, 239, 0.5);
    --glow-card: 0 20px 40px -15px rgba(0, 0, 0, 0.6), 0 0 25px rgba(168, 85, 247, 0.2);
    --glow-button: 0 8px 25px -4px rgba(168, 85, 247, 0.5);
    --glow-success: 0 0 20px rgba(34, 197, 94, 0.4);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --sidebar-width: 290px;
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    color-scheme: dark;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   AMBIENT GLOW BACKGROUND ORBS & GRID
   ========================================================================== */
.ambient-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(110px);
    opacity: 0.45;
    animation: floatOrb 18s ease-in-out infinite alternate;
}

.glow-orb-1 {
    width: 550px;
    height: 550px;
    top: -120px;
    left: -100px;
    background: radial-gradient(circle, #2563eb 0%, #1e1b4b 70%, transparent 100%);
}

.glow-orb-2 {
    width: 650px;
    height: 650px;
    top: 15%;
    right: -150px;
    background: radial-gradient(circle, #9333ea 0%, #4c1d95 65%, transparent 100%);
    animation-delay: -5s;
}

.glow-orb-3 {
    width: 500px;
    height: 500px;
    bottom: 5%;
    left: 10%;
    background: radial-gradient(circle, #db2777 0%, #581c87 70%, transparent 100%);
    opacity: 0.3;
    animation-delay: -10s;
}

.glow-orb-4 {
    width: 450px;
    height: 450px;
    bottom: -100px;
    right: 15%;
    background: radial-gradient(circle, #3b82f6 0%, #1e1b4b 75%, transparent 100%);
    opacity: 0.25;
}

@keyframes floatOrb {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, 40px) scale(1.08);
    }

    100% {
        transform: translate(-25px, 20px) scale(0.95);
    }
}

.bg-grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 36px 36px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.6;
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    padding: 14px 24px;
    transition: var(--transition);
}

.header-content {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sidebar-toggle-btn {
    display: none;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    font-size: 20px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.sidebar-toggle-btn:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: var(--primary-purple);
}

@media (max-width: 1024px) {
    .sidebar-toggle-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-main);
}

.brand-icon-wrapper {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(217, 70, 239, 0.15));
    border: 1px solid rgba(168, 85, 247, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.35);
    transition: var(--transition);
}

.brand-logo:hover .brand-icon-wrapper {
    transform: rotate(10deg) scale(1.06);
    border-color: var(--primary-fuchsia);
    box-shadow: 0 0 25px rgba(217, 70, 239, 0.6);
}

.brand-text-group {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #ffffff;
    text-transform: uppercase;
    line-height: 1.2;
}

.brand-title span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-tagline {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-dim);
    font-weight: 600;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav-steam-badge,
.nav-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(42, 71, 94, 0.4);
    border: 1px solid rgba(102, 192, 244, 0.3);
    color: #66c0f4;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.nav-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #22c55e;
    box-shadow: 0 0 8px #22c55e;
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.8);
    }
}

.logout-btn {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
    transform: translateY(-2px);
}

/* ==========================================================================
   APP MAIN WRAPPER (SIDEBAR + MAIN CONTENT LAYOUT)
   ========================================================================== */
.app-container {
    display: flex;
    flex: 1;
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

/* ==========================================================================
   SIDEBAR (LISTS MANAGER)
   ========================================================================== */
.sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    background: var(--bg-sidebar);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-right: 1px solid var(--border-subtle);
    padding: 28px 18px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: calc(100vh - 72px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 1024px) {
    .sidebar {
        position: fixed;
        top: 72px;
        left: 0;
        bottom: 0;
        z-index: 90;
        transform: translateX(-100%);
        box-shadow: 10px 0 40px rgba(0, 0, 0, 0.7);
    }

    .sidebar.open {
        transform: translateX(0);
    }
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    top: 72px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 85;
}

@media (max-width: 1024px) {
    .sidebar-backdrop.active {
        display: block;
    }
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-subtle);
}

.sidebar-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-title {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-dim);
}

.btn-add-list-small {
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.4);
    color: #f0abfc;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
}

.btn-add-list-small:hover {
    background: var(--primary-gradient);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 0 15px rgba(217, 70, 239, 0.5);
    transform: scale(1.08);
}

.lists-scroll-area {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    flex: 1;
    padding-right: 4px;
}

.lists-scroll-area::-webkit-scrollbar {
    width: 4px;
}

.lists-scroll-area::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* List Item Button */
.list-nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    text-align: left;
    width: 100%;
}

.list-nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    transform: translateX(3px);
}

.list-nav-item.active {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.18) 0%, rgba(217, 70, 239, 0.12) 100%);
    border-color: rgba(168, 85, 247, 0.45);
    color: #ffffff;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
}

.list-nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background: var(--primary-gradient);
    box-shadow: 0 0 10px #ec4899;
}

.list-item-left {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
}

.list-item-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.list-item-name {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.list-item-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.list-counter-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
}

.list-nav-item.active .list-counter-badge {
    background: rgba(217, 70, 239, 0.2);
    color: #f0abfc;
    border: 1px solid rgba(217, 70, 239, 0.3);
}

.list-action-btn {
    opacity: 0;
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 14px;
    padding: 3px 6px;
    border-radius: 4px;
    transition: var(--transition);
}

.list-nav-item:hover .list-action-btn {
    opacity: 0.8;
}

.list-action-btn:hover {
    opacity: 1 !important;
    color: var(--accent-red);
    transform: scale(1.2);
}

.sidebar-footer {
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
}

.btn-create-list {
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-md);
    background: rgba(168, 85, 247, 0.12);
    border: 1px dashed rgba(168, 85, 247, 0.4);
    color: #d8b4fe;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-create-list:hover {
    background: rgba(168, 85, 247, 0.22);
    border-color: var(--primary-fuchsia);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
    transform: translateY(-1px);
}

/* ==========================================================================
   MAIN CONTENT AREA (ACTIVE LIST VIEW)
   ========================================================================== */
.app-container main {
    flex: 1;
    padding: 30px 32px 80px 32px;
    max-width: calc(100% - var(--sidebar-width));
}

@media (max-width: 1024px) {
    .app-container main {
        max-width: 100%;
        padding: 24px 18px 60px 18px;
    }
}

/* Active List Hero / Banner */
.list-banner {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
}

.list-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
}

.list-banner-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.list-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.list-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--primary-fuchsia);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.list-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.active-list-title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 900;
    letter-spacing: -0.5px;
    color: #ffffff;
    text-transform: uppercase;
}

.btn-rename-list {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    color: var(--text-dim);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-rename-list:hover {
    color: #ffffff;
    border-color: var(--primary-purple);
    background: rgba(168, 85, 247, 0.2);
}

/* Progress Bar Container */
.progress-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.progress-header-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.progress-pct-badge {
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.35);
    color: #f0abfc;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 800;
}

.progress-pct-badge.all-done {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.4);
    color: #86efac;
    box-shadow: var(--glow-success);
}

.progress-bar-track {
    width: 100%;
    height: 10px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
    box-shadow: 0 0 15px rgba(217, 70, 239, 0.6);
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.progress-bar-fill.all-done {
    background: var(--success-gradient);
    box-shadow: 0 0 18px rgba(34, 197, 94, 0.7);
}

/* ==========================================================================
   CONTROLS BAR (SEARCH, FILTERS & ADD GAME BUTTON)
   ========================================================================== */
.controls-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
}

.search-and-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    flex: 1;
}

.search-wrapper {
    position: relative;
    min-width: 260px;
    max-width: 360px;
    flex: 1;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
    font-size: 15px;
    pointer-events: none;
}

.search-input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    padding: 10px 18px 10px 40px;
    font-size: 14px;
    font-family: var(--font-body);
    color: var(--text-main);
    outline: none;
    backdrop-filter: blur(14px);
    transition: var(--transition);
}

.search-input:focus {
    border-color: var(--primary-fuchsia);
    background: rgba(20, 21, 40, 0.95);
    box-shadow: 0 0 20px rgba(217, 70, 239, 0.35);
}

.filter-pills {
    display: flex;
    gap: 6px;
    background: rgba(0, 0, 0, 0.35);
    padding: 4px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-subtle);
}

.filter-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    color: #ffffff;
}

.filter-btn.active {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.btn-add-game {
    background: var(--primary-gradient);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    box-shadow: var(--glow-button);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    flex-shrink: 0;
}

.btn-add-game:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 30px -2px rgba(217, 70, 239, 0.6);
}

/* ==========================================================================
   GAMES GRID & STEAM GAME CARDS
   ========================================================================== */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
    width: 100%;
}

@media (max-width: 640px) {
    .games-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.game-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
}

.game-card:hover {
    transform: translateY(-6px);
    background: var(--bg-card-hover);
    border-color: var(--border-accent);
    box-shadow: var(--glow-card);
}

/* Card Completed Border State */
.game-card.is-completed {
    border-color: rgba(34, 197, 94, 0.35);
}

.game-card.is-completed:hover {
    border-color: rgba(34, 197, 94, 0.6);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6), 0 0 25px rgba(34, 197, 94, 0.25);
}

/* Media Poster */
.card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 460 / 215;
    background-color: #0d121d;
    overflow: hidden;
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.game-card:hover .card-media img {
    transform: scale(1.06);
}

.card-media-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 7, 13, 0.1) 0%, rgba(6, 7, 13, 0.3) 40%, rgba(14, 15, 29, 0.95) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Status Badges on Card */
.status-pill {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 5;
}

.status-pill.completed {
    background: rgba(6, 78, 59, 0.85);
    border: 1px solid rgba(52, 211, 153, 0.6);
    color: #a7f3d0;
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.4);
}

.status-pill.pending {
    background: rgba(88, 28, 135, 0.85);
    border: 1px solid rgba(216, 180, 254, 0.5);
    color: #f3e8ff;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.35);
}

/* Delete Card Button */
.btn-delete-card {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(10, 11, 24, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f1f5f9;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 25;
    opacity: 0.85;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
}

.game-card:hover .btn-delete-card {
    opacity: 1;
    border-color: rgba(239, 68, 68, 0.6);
}

.btn-delete-card:hover {
    background: rgba(239, 68, 68, 0.95) !important;
    border-color: #ef4444 !important;
    color: #ffffff !important;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.7);
    transform: scale(1.15);
}

/* Card Body */
.card-content {
    padding: 18px 20px 22px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
    z-index: 2;
}

.game-card h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 14px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.2rem;
}

.card-meta-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.meta-icon {
    font-size: 13px;
    opacity: 0.8;
}

.meta-label {
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.5px;
}

.meta-value {
    color: var(--text-secondary);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Card Action Buttons */
.card-footer {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Toggle Status Button */
.btn-toggle-status {
    width: 100%;
    height: 42px;
    border-radius: var(--radius-full);
    border: none;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-toggle-status.mark-completed {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(6, 182, 212, 0.2) 100%);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #86efac;
}

.btn-toggle-status.mark-completed:hover {
    background: var(--success-gradient);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.45);
    transform: translateY(-2px);
}

.btn-toggle-status.mark-pending {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

.btn-toggle-status.mark-pending:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: var(--primary-purple);
    color: #f0abfc;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.35);
    transform: translateY(-2px);
}

.btn-steam-store {
    width: 100%;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--steam-gradient);
    border: 1px solid rgba(102, 192, 244, 0.25);
    color: #66c0f4;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-steam-store:hover {
    background: #2a475e;
    border-color: #66c0f4;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(102, 192, 244, 0.35);
    transform: translateY(-1px);
}

/* Empty States */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 70px 24px;
    background: var(--bg-card);
    border: 1px dashed var(--border-subtle);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(14px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.empty-icon {
    font-size: 54px;
    margin-bottom: 16px;
    opacity: 0.7;
    animation: iconFloat 3s ease-in-out infinite alternate;
}

.empty-state h3 {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
    color: var(--text-muted);
    max-width: 420px;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* ==========================================================================
   MODAL DIALOGS (STEAM EDITOR & NEW LIST)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 5, 12, 0.85);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background: rgba(16, 17, 34, 0.94);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.8), 0 0 40px rgba(168, 85, 247, 0.25);
    position: relative;
    transform: scale(0.95) translateY(10px);
    transition: var(--transition);
}

.modal-overlay.active .modal-card {
    transform: scale(1) translateY(0);
}

.modal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px 24px;
    border-bottom: 1px solid var(--border-subtle);
}

.modal-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-icon {
    font-size: 22px;
}

.modal-title {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.3px;
}

.btn-modal-close {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 22px;
    cursor: pointer;
    transition: var(--transition);
    padding: 4px;
    border-radius: 4px;
}

.btn-modal-close:hover {
    color: #ffffff;
    transform: scale(1.15);
}

.modal-body {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.input-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.steam-fetch-row {
    display: flex;
    gap: 10px;
}

.modal-input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 11px 14px;
    font-size: 14px;
    font-family: var(--font-body);
    color: #ffffff;
    outline: none;
    transition: var(--transition);
}

.modal-input:focus {
    border-color: var(--primary-fuchsia);
    box-shadow: 0 0 15px rgba(217, 70, 239, 0.4);
}

.btn-steam-fetch {
    background: var(--steam-gradient);
    border: 1px solid rgba(102, 192, 244, 0.4);
    color: #66c0f4;
    padding: 0 20px;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-steam-fetch:hover {
    background: #2a475e;
    color: #ffffff;
    border-color: #66c0f4;
    box-shadow: 0 0 15px rgba(102, 192, 244, 0.4);
}

.btn-steam-fetch:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.input-hint {
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 4px;
}

/* Steam Preview & Edit Card */
.steam-preview-card {
    background: rgba(10, 11, 24, 0.85);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: none;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
    animation: fadeIn 0.3s ease;
}

.preview-media-row {
    display: flex;
    gap: 14px;
    align-items: center;
}

.preview-media {
    width: 140px;
    height: 65px;
    background: #000;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.preview-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-badge-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.preview-badge-status {
    font-size: 11px;
    font-weight: 700;
    color: #86efac;
    display: flex;
    align-items: center;
    gap: 4px;
}

.edit-fields-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.edit-field-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.modal-alert {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    display: none;
    animation: fadeIn 0.3s ease;
}

.modal-alert.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--border-subtle);
    background: rgba(10, 11, 24, 0.5);
}

.btn-modal-cancel {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-modal-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.btn-modal-save {
    background: var(--primary-gradient);
    border: none;
    color: #ffffff;
    padding: 10px 24px;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--glow-button);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-modal-save:hover {
    box-shadow: 0 0 25px rgba(217, 70, 239, 0.6);
    transform: translateY(-1px);
}

.btn-modal-save:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 300;
    pointer-events: none;
}

.toast {
    background: rgba(18, 19, 36, 0.95);
    border: 1px solid var(--border-accent);
    color: #ffffff;
    padding: 12px 20px;
    border-radius: var(--radius-full);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(168, 85, 247, 0.3);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: toastSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(16px);
}

@keyframes toastSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* ==========================================================================
   LOGIN PAGE - MODERN GLASSMORPHIC AUTH CARD
   ========================================================================== */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 170px);
    width: 100%;
    max-width: 100% !important;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 10;
}

.login-page .container {
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-card {
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
    padding: 42px 36px 36px 36px;
    background: rgba(16, 17, 32, 0.82);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.8), 0 0 35px rgba(168, 85, 247, 0.2);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
}

.login-icon-badge {
    width: 68px;
    height: 68px;
    margin: 0 auto 20px auto;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(217, 70, 239, 0.25));
    border: 1px solid rgba(217, 70, 239, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 0 25px rgba(217, 70, 239, 0.4);
    animation: iconFloat 4s ease-in-out infinite alternate;
}

@keyframes iconFloat {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-4px);
    }
}

.login-card h2 {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
    text-transform: none;
    text-shadow: none;
    margin-bottom: 8px;
}

.login-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 28px;
}

.login-form {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.input-group {
    width: 100%;
    text-align: left;
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.input-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.input-wrapper input {
    width: 100%;
    background-color: rgba(10, 11, 22, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 14px 48px 14px 16px;
    font-size: 15px;
    font-family: var(--font-body);
    color: #ffffff;
    outline: none;
    transition: var(--transition);
}

.input-wrapper input::placeholder {
    color: var(--text-dim);
}

.input-wrapper input:focus {
    border-color: var(--primary-fuchsia);
    background-color: rgba(14, 15, 30, 0.95);
    box-shadow: 0 0 20px rgba(217, 70, 239, 0.4);
}

.toggle-pwd-btn {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    opacity: 0.65;
    transition: opacity 0.2s ease, transform 0.2s ease;
    color: var(--text-muted);
}

.toggle-pwd-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.login-btn {
    width: 100%;
    margin-top: 10px;
    height: 48px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--primary-gradient);
    border: none;
    border-radius: var(--radius-full);
    color: #ffffff;
    cursor: pointer;
    box-shadow: var(--glow-button);
    transition: var(--transition);
}

.login-btn:hover {
    box-shadow: 0 10px 30px -3px rgba(217, 70, 239, 0.6);
    transform: translateY(-2px);
}

.error-badge {
    background-color: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 18px;
    width: 100%;
    text-align: center;
    animation: fadeIn 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.login-footer-info {
    margin-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding-top: 16px;
}

.session-notice {
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.5;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

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

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20%,
    60% {
        transform: translateX(-8px);
    }

    40%,
    80% {
        transform: translateX(8px);
    }
}

.shake {
    animation: shake 0.45s ease-in-out;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 24px 24px;
    margin-top: auto;
    border-top: 1px solid var(--border-subtle);
    background: rgba(6, 7, 13, 0.85);
    backdrop-filter: blur(14px);
}

footer p {
    font-size: 13px;
    color: var(--text-dim);
}

.footer-highlight {
    color: #a855f7;
    font-weight: 600;
}