/* ========================================
   Plai Admin Dashboard - Premium "Social Dark" Theme
   ======================================== */

/* === CSS Variables === */
:root {
    /* Background Colors - Deep Dark Palette */
    --bg-primary: #000000;    /* Pure Black */
    --bg-secondary: #0A0A0A;  /* Sidebar/Header */
    --bg-tertiary: #111111;   /* Cards/Inputs */
    --bg-elevated: #1A1A1A;   /* Hover states/Modals */
    --bg-hover: #222222;

    /* Accent Colors */
    --accent-primary: #DFFF00; /* Neon Lime */
    --accent-primary-dim: #B2CC00;
    --accent-secondary: #5DAE64; /* Success Green */
    --accent-tertiary: #E94F37; /* Alert Red */
    --accent-gold: #FFC107;
    --accent-blue: #20D5EC; /* Cyan/Blue for links/info */

    /* Text Colors */
    --text-on-primary: #000000;
    --text-primary: #FFFFFF;
    --text-secondary: #B3B3B3;
    --text-muted: #666666;
    --text-disabled: #444444;

    /* Border Colors */
    --border-light: #2A2A2A;
    --border-medium: #3A3A3A;
    --border-accent: #DFFF00;

    /* Glassmorphism */
    --glass-bg: rgba(17, 17, 17, 0.7);
    --glass-border: rgba(255, 255, 255, 0.05);

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 15px rgba(223, 255, 0, 0.15);
    --shadow-glow-strong: 0 0 25px rgba(223, 255, 0, 0.3);

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bouncy: 400ms cubic-bezier(0.175, 0.885, 0.32, 1.275);

    /* Layout */
    --sidebar-width: 280px;
    --header-height: 80px;

    /* Z-Index */
    --z-sidebar: 100;
    --z-header: 90;
    --z-modal: 1000;
    --z-toast: 1100;
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    /* Subtle texture */
    background-image: radial-gradient(circle at 50% 0%, #111111 0%, #000000 100%);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-hover);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
}

.text-muted { color: var(--text-muted); }

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
    font-weight: 500;
}

a:hover { color: var(--text-primary); }

/* === Utilities === */
.hidden { display: none !important; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }

/* === Layout === */
.admin-container {
    display: flex;
    min-height: 100vh;
}

/* === Sidebar === */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    z-index: var(--z-sidebar);
    padding: var(--spacing-md);
}

.sidebar-header {
    padding: var(--spacing-lg) var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-on-primary);
    box-shadow: var(--shadow-glow);
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-fast);
    position: relative;
    border: 1px solid transparent;
}

.nav-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.nav-item.active {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--border-light);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-primary);
}

.nav-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    stroke-width: 2px;
}

.nav-item.active .nav-icon {
    color: var(--accent-primary);
}

.nav-badge {
    margin-left: auto;
    background: var(--accent-tertiary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    min-width: 24px;
    text-align: center;
}

.sidebar-footer {
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-light);
}

.btn-logout {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    width: 100%;
    padding: var(--spacing-md) var(--spacing-lg);
    border: 1px solid var(--border-light);
    background: var(--bg-tertiary);
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.btn-logout:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--text-muted);
}

/* === Main Content === */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* === Header === */
.header {
    position: sticky;
    top: 0;
    height: var(--header-height);
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    padding: 0 var(--spacing-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: var(--z-header);
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    background: linear-gradient(to right, #fff, #999);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.header-user {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: 6px 6px 6px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
}

.user-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: var(--accent-primary);
    color: var(--text-on-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

/* === Content Area === */
.content-area {
    flex: 1;
    padding: var(--spacing-xl);
    overflow-y: auto;
}

/* === Cards === */
.card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.card:hover {
    border-color: var(--border-medium);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-lg);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
}

/* === Stats === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
}

.stat-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
    border-color: var(--accent-primary-dim);
}

.stat-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.stat-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--text-primary);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.stat-change {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    margin-top: var(--spacing-md);
}

.stat-change.positive {
    color: var(--text-on-primary);
    background: var(--accent-primary);
}

.stat-change.negative {
    color: white;
    background: var(--accent-tertiary);
}

/* === Charts === */
.chart-container {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.chart-wrapper {
    position: relative;
    height: 350px;
}

/* === Tables === */
.table-container {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.table-header {
    padding: var(--spacing-lg);
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.table-title {
    font-size: 1.25rem;
    font-weight: 700;
}

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

th {
    padding: var(--spacing-md) var(--spacing-lg);
    text-align: left;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

td {
    padding: var(--spacing-md) var(--spacing-lg);
    border-bottom: 1px solid var(--border-light);
    font-size: 0.95rem;
    color: var(--text-secondary);
}

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

tr:hover td {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.user-row {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.user-info {
    display: flex;
    flex-direction: column;
}

.username {
    font-weight: 600;
    color: var(--text-primary);
}

.email {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.game-thumb {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--bg-elevated);
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: 10px 20px;
    border-radius: var(--radius-full);
    border: none;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--accent-primary);
    color: var(--text-on-primary);
    box-shadow: 0 4px 12px rgba(223, 255, 0, 0.2);
}

.btn-primary:hover:not(:disabled) {
    background: #Eaff00;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(223, 255, 0, 0.3);
}

.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--bg-hover);
    border-color: var(--text-muted);
}

.btn-danger {
    background: rgba(233, 79, 55, 0.1);
    color: var(--accent-tertiary);
    border: 1px solid rgba(233, 79, 55, 0.2);
}

.btn-danger:hover:not(:disabled) {
    background: var(--accent-tertiary);
    color: white;
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
}

.btn-ghost:hover:not(:disabled) {
    color: var(--text-primary);
    background: var(--bg-elevated);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.8rem;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.btn-icon:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border-color: var(--text-muted);
    transform: scale(1.05);
}

/* === Inputs === */
input, textarea, select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: var(--bg-tertiary);
    box-shadow: 0 0 0 4px rgba(223, 255, 0, 0.1);
}

.search-input { position: relative; }
.search-input input { padding-left: 48px; border-radius: var(--radius-full); }
.search-input svg {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 20px;
    height: 20px;
}

/* === Badges === */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-gold {
    background: rgba(255, 193, 7, 0.15);
    color: var(--accent-gold);
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.badge-red {
    background: rgba(233, 79, 55, 0.15);
    color: var(--accent-tertiary);
    border: 1px solid rgba(233, 79, 55, 0.3);
}

.badge-gray {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid var(--border-light);
}

/* === Filter Chips === */
.filter-chips {
    display: flex;
    gap: var(--spacing-sm);
}

.chip {
    padding: 6px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.chip:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.chip.active {
    background: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
}

/* === Modals === */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
    opacity: 1;
    transition: opacity var(--transition-normal);
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
    transform: scale(1);
    transition: transform var(--transition-bouncy);
}

.modal-overlay.hidden .modal {
    transform: scale(0.95);
}

.modal.game-modal { max-width: 900px; height: 80vh; }

.modal-header {
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-body {
    padding: var(--spacing-lg);
    overflow-y: auto;
}

.modal-footer {
    padding: var(--spacing-lg);
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: flex-end;
    gap: var(--spacing-md);
}

.game-preview-container {
    width: 100%;
    height: 400px;
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--spacing-lg);
    border: 1px solid var(--border-light);
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* === Login Page === */
.login-modal {
    max-width: 400px;
    text-align: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
}

.login-modal .logo {
    justify-content: center;
    margin-bottom: var(--spacing-lg);
}

/* === Loading Spinner === */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--accent-primary);
    animation: spin 1s linear infinite;
    margin: 0 auto var(--spacing-md);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-state {
    text-align: center;
    padding: var(--spacing-2xl);
    color: var(--text-muted);
}

/* === Pagination === */
.pagination {
    display: flex;
    gap: var(--spacing-xs);
}

.pagination button {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.pagination button:hover:not(:disabled) {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.pagination button.active {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.pagination button:disabled {
    opacity: 0.3;
    cursor: default;
}

/* === Games Page Grid View === */
.games-page-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.header-controls-left,
.header-controls-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.count-badge {
    display: inline-flex;
    padding: 2px 8px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-left: var(--spacing-sm);
}

.view-toggle {
    display: flex;
    background: var(--bg-elevated);
    padding: 4px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-light);
}

.view-toggle button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.view-toggle button:hover {
    color: var(--text-primary);
}

.view-toggle button.active {
    background: var(--bg-tertiary);
    color: var(--accent-primary);
    box-shadow: var(--shadow-sm);
}

/* === Games Grid === */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    padding-bottom: var(--spacing-xl);
}

.game-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    transition: all var(--transition-normal);
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-medium);
}

.game-card.featured {
    border-color: var(--accent-primary-dim);
    box-shadow: var(--shadow-glow);
}

.game-card-preview {
    position: relative;
    aspect-ratio: 3/4;
    background: #000;
    overflow: hidden;
}

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

.game-card:hover .game-card-preview img {
    transform: scale(1.05);
}

.game-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    pointer-events: none;
}

.game-card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    z-index: 10;
}

.status-badge {
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
}

.status-badge.featured {
    background: rgba(223, 255, 0, 0.9);
    color: #000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.status-badge.flagged {
    background: rgba(233, 79, 55, 0.9);
    color: #fff;
}

.game-card-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    display: flex;
    justify-content: center;
    gap: 16px;
    transform: translateY(100%);
    transition: transform var(--transition-normal);
    z-index: 20;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
}

.game-card:hover .game-card-actions {
    transform: translateY(0);
}

.action-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    backdrop-filter: blur(4px);
}

.action-btn.play {
    background: var(--text-primary);
    color: #000;
}

.action-btn.play:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255,255,255,0.5);
}

.action-btn.feature {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
}

.action-btn.feature.active {
    background: var(--accent-primary);
    color: #000;
    border-color: var(--accent-primary);
}

.action-btn.feature:hover {
    background: var(--accent-primary);
    color: #000;
}

.action-btn.delete {
    background: rgba(233, 79, 55, 0.1);
    color: var(--accent-tertiary);
    border: 1px solid rgba(233, 79, 55, 0.3);
}

.action-btn.delete:hover {
    background: var(--accent-tertiary);
    color: #fff;
}

.game-card-content {
    padding: 16px;
}

.game-title {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-creator {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.creator-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.creator-name {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.game-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}

.stat {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
}

.stat svg {
    width: 14px;
    height: 14px;
}

.time-ago {
    font-size: 0.8rem;
    color: var(--text-muted);
}

