@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800;900&family=Rajdhani:wght@500;600;700&family=Share+Tech+Mono&display=swap');

:root {
    --bg-main: #05070a;
    --bg-panel: #0b0f14;
    --bg-card: #0c111a;
    
    /* Cyberpunk Neon Green Theme */
    --accent-deepsea: #1f7a5c;
    --accent-teal: #1f7a5c;
    --accent-matrix: #3dffb0;
    --accent-lime: #a3ffdc;
    --accent: #3dffb0;
    --accent-dim: #1f7a5c;
    --accent-glow: rgba(61,255,176,0.35);
    --accent-magenta: #ff3b70;
    
    --text: #f2f5f4;
    --text-muted: #7d8a92;
    --border-color: rgba(61,255,176,0.14);
    --border: rgba(61,255,176,0.14);

    --font-display: 'Rajdhani', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'Share Tech Mono', monospace;
}

/* Premium Cyberpunk Themed Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #05070a;
}

::-webkit-scrollbar-thumb {
    background: rgba(61, 255, 176, 0.18);
    border-radius: 3px;
    transition: all 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-matrix);
    box-shadow: 0 0 8px rgba(61, 255, 176, 0.4);
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    font-family: var(--font-body);
    scrollbar-width: thin;
    scrollbar-color: rgba(61, 255, 176, 0.2) #05070a;
}

body {
    background-color: var(--bg-main);
    color: var(--text);
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    letter-spacing: -0.01em;
    position: relative;
}

/* Ambient drift grid background and radial noise glow generated dynamically */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    background-image:
      linear-gradient(rgba(61,255,176,0.05) 1px, transparent 1px),
      linear-gradient(90deg, rgba(61,255,176,0.05) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 20% 20%, black 0%, transparent 70%);
    mask-image: radial-gradient(ellipse 80% 60% at 20% 20%, black 0%, transparent 70%);
    animation: gridDrift 40s linear infinite;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    top: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(61,255,176,0.06) 0%, transparent 65%);
    z-index: 0;
    pointer-events: none;
}

@keyframes gridDrift {
    0% { background-position: 0 0, 0 0; }
    100% { background-position: 96px 96px, 96px 96px; }
}

/* ==========================================
   NAVIGATION NAVBAR
   ========================================== */
.navbar { 
    display: flex; 
    justify-content: space-between;
    align-items: center;
    padding: 26px 6%; 
    background: rgba(5, 7, 10, 0.85); 
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 38px;
    height: 38px;
    background-image: url('../images/logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(0 0 6px var(--accent-glow));
}

.brand-logo * {
    display: none !important;
}

.nav-brand h1 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.2s ease;
}

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

.nav-links a.active::after {
    content: '';
    position: absolute;
    left: 0; 
    right: 0; 
    bottom: -2px;
    height: 2px;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent-glow);
    border-radius: 2px;
}

.dev-btn {
    font-family: var(--font-body);
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0.04em;
    color: var(--accent) !important;
    background: rgba(61,255,176,0.06) !important;
    border: 1px solid var(--accent-dim) !important;
    padding: 9px 22px !important;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
    cursor: pointer;
    transition: all 0.25s ease !important;
    text-transform: none;
    border-radius: 0 !important;
}

.dev-btn:hover {
    background: rgba(61,255,176,0.14) !important;
    box-shadow: 0 0 18px var(--accent-glow) !important;
    border-color: var(--accent) !important;
}

/* Exclude dev-btn from receiving underline styles */
.nav-links a.dev-btn::after {
    display: none !important;
}

/* ==========================================
   HOMEPAGE STRUCTURE
   ========================================== */
.portal-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Intro Section */
.intro-section {
    padding: 130px 6% 150px 6%;
    position: relative;
    z-index: 2;
    background: transparent;
}

.intro-content {
    max-width: 680px;
    position: relative;
    z-index: 10;
}

.intro-content h2 {
    font-family: var(--font-display);
    font-size: 58px;
    line-height: 1.05;
    font-weight: 700;
    margin-bottom: 22px;
    letter-spacing: 0.01em;
    color: var(--text-primary);
    text-shadow: 0 0 30px rgba(61,255,176,0.18);
}

.intro-content p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 520px;
}

.play-now-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #04120c !important;
    background: var(--accent);
    border: none;
    padding: 15px 30px;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    cursor: pointer;
    box-shadow: 0 0 22px var(--accent-glow);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease !important;
    text-decoration: none;
    border-radius: 0 !important;
}

.play-now-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 34px var(--accent-glow);
    background-color: var(--accent-matrix) !important;
}

/* Games Section */
.games-section {
    padding: 60px 6% 100px 6%;
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 48px;
    letter-spacing: -0.5px;
    color: #fff;
}

.games-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

/* ==========================================
   SKELETON LOADING CARDS
   ========================================== */
@keyframes skeleton-shimmer {
    0% { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}

.skeleton-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}

.skeleton-thumb {
    width: 100%;
    aspect-ratio: 16/10;
    background: linear-gradient(90deg, #0d1220 25%, #151d30 37%, #0d1220 63%);
    background-size: 800px 100%;
    animation: skeleton-shimmer 1.4s ease infinite;
}

.skeleton-info {
    padding: 24px 20px;
    background: var(--bg-panel);
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skeleton-line {
    border-radius: 4px;
    background: linear-gradient(90deg, #0d1220 25%, #151d30 37%, #0d1220 63%);
    background-size: 800px 100%;
    animation: skeleton-shimmer 1.4s ease infinite;
}

.skeleton-title {
    height: 18px;
    width: 65%;
}

.skeleton-desc {
    height: 12px;
    width: 90%;
}

.skeleton-desc-short {
    height: 12px;
    width: 55%;
}

.skeleton-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 14px;
    margin-top: 6px;
}

.skeleton-badge {
    width: 48px;
    height: 14px;
    border-radius: 4px;
    background: linear-gradient(90deg, #0d1220 25%, #151d30 37%, #0d1220 63%);
    background-size: 800px 100%;
    animation: skeleton-shimmer 1.4s ease infinite;
}

.skeleton-play {
    height: 12px;
    width: 70px;
}

/* Stagger shimmer timing for each skeleton card */
.skeleton-card:nth-child(2) .skeleton-line,
.skeleton-card:nth-child(2) .skeleton-thumb,
.skeleton-card:nth-child(2) .skeleton-badge { animation-delay: 0.15s; }

.skeleton-card:nth-child(3) .skeleton-line,
.skeleton-card:nth-child(3) .skeleton-thumb,
.skeleton-card:nth-child(3) .skeleton-badge { animation-delay: 0.3s; }

.skeleton-card:nth-child(4) .skeleton-line,
.skeleton-card:nth-child(4) .skeleton-thumb,
.skeleton-card:nth-child(4) .skeleton-badge { animation-delay: 0.45s; }

.skeleton-card:nth-child(5) .skeleton-line,
.skeleton-card:nth-child(5) .skeleton-thumb,
.skeleton-card:nth-child(5) .skeleton-badge { animation-delay: 0.6s; }

.skeleton-card:nth-child(6) .skeleton-line,
.skeleton-card:nth-child(6) .skeleton-thumb,
.skeleton-card:nth-child(6) .skeleton-badge { animation-delay: 0.75s; }

/* ==========================================
   GAME CARD (Horizontal Rectangular Covers)
   ========================================== */
.game-card-item {
    --accent-color: var(--accent-teal);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}

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

.game-card-thumb {
    width: 100%;
    aspect-ratio: 16/9; /* Horizontal rectangular covers standard on Steam/Itch */
    overflow: hidden;
    position: relative;
    background: #090e18;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.game-card-item:hover .game-card-thumb img {
    transform: scale(1.04);
}

/* Glassmorphic star badge inside card thumbnail (positioned top-right) */
.game-card-thumb::before {
    content: '';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 5;
    pointer-events: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212%22%20height%3D%2212%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22white%22%3E%3Cpath%20d%3D%22M12%202L15%209L22%2012L15%2015L12%2022L9%2015L2%2012L9%209L12%202Z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: transform 0.3s;
}

.game-card-item:hover .game-card-thumb::before {
    transform: scale(1.1);
}

.game-card-details {
    padding: 18px 20px 20px;
    background: var(--bg-panel);
    display: flex;
    flex-direction: column;
    gap: 14px;
    border-top: 1px solid var(--border-color);
}

.game-card-details h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.2px;
    margin: 0;
    line-height: 1.3;
}

.game-card-play-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #000;
    background: var(--accent-matrix);
    padding: 10px 20px;
    border-radius: 6px;
    white-space: nowrap;
    transition: all 0.25s ease;
    box-shadow: 0 0 12px rgba(90, 225, 147, 0.15);
}

.game-card-item:hover .game-card-play-btn {
    box-shadow: 0 0 24px rgba(90, 225, 147, 0.4);
    background: #5ae193;
}

/* ==========================================
   DEVELOPER AUTHENTICATION (LOGIN)
   ========================================== */
.login-body {
    background: #060910;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.back-home-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.back-home-link:hover {
    color: #fff;
}

.login-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 36px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.login-header {
    text-align: center;
    margin-bottom: 28px;
}

.login-header .brand-logo {
    width: 56px;
    height: 56px;
    margin-bottom: 12px;
}

.login-header h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #fff;
}

.login-header p {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 4px;
}

.login-submit-btn {
    background: #fff;
    color: #000;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    font-family: var(--font-display);
    font-weight: 700;
    cursor: pointer;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    transition: all 0.2s;
    margin-top: 8px;
}

.login-submit-btn:hover:not(:disabled) {
    background-color: var(--accent-matrix);
}

.google-login-btn {
    background: #fff;
    color: #1a1a1a;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-family: var(--font-display);
    font-weight: 700;
    cursor: pointer;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 8px;
}

.google-login-btn:hover:not(:disabled) {
    background-color: #f5f6f8;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.08);
}

.google-icon {
    width: 18px;
    height: 18px;
}

.login-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.login-divider::before, .login-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(25, 132, 146, 0.08);
}

.login-divider:not(:empty)::before {
    margin-right: .75em;
}

.login-divider:not(:empty)::after {
    margin-left: .75em;
}

.auth-toggle {
    margin-top: 24px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.auth-toggle a {
    color: var(--accent-matrix);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
    margin-left: 4px;
}

.auth-toggle a:hover {
    color: var(--accent-lime);
    text-decoration: underline;
}

/* ==========================================
   FORM CONTROLS & UTILITIES
   ========================================== */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-group label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
}

.form-group input, .form-group textarea, .form-group select {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 14px;
    color: #fff;
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-matrix);
    box-shadow: 0 0 10px rgba(90, 225, 147, 0.15);
}

.auth-error-box {
    background: rgba(255, 0, 127, 0.1);
    border: 1px solid rgba(255, 0, 127, 0.2);
    color: var(--accent-magenta);
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    margin-bottom: 20px;
}

.login-footer {
    margin-top: 24px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.login-footer p {
    font-size: 0.7rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 8px;
}

.fallback-credentials {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    line-height: 1.5;
    text-align: left;
}

.fallback-credentials code {
    color: var(--accent-matrix);
}

/* ==========================================
   DEVELOPER DASHBOARD WORKSPACE
   ========================================== */
.dashboard-body {
    background-color: #060910;
}

.dashboard-navbar {
    background: #0b101c;
    padding: 16px 6%;
}

.logout-btn {
    background: transparent;
    border: 1px solid rgba(255, 0, 127, 0.4);
    color: var(--accent-magenta);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.logout-btn:hover {
    background: rgba(255, 0, 127, 0.08);
    border-color: var(--accent-magenta);
}

/* Top Dashboard Grid (Dual column layout) */
.top-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 40px;
}

@media (max-width: 1024px) {
    .top-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Team Management Widget */
.team-workspace {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.admins-list-wrapper {
    max-height: 180px;
    overflow-y: auto;
    border: 1px solid rgba(25, 132, 146, 0.1);
    border-radius: 8px;
    background: rgba(6, 9, 16, 0.4);
}

.admins-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.admins-table th {
    background: rgba(255, 255, 255, 0.01);
    border-bottom: 1px solid rgba(25, 132, 146, 0.15);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.7rem;
    padding: 10px 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    z-index: 5;
}

.admins-table td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    font-size: 0.85rem;
    color: #fff;
    vertical-align: middle;
}

.admins-table tbody tr:hover {
    background: rgba(25, 132, 146, 0.015);
}

/* Add Admin Form Layout */
.add-admin-form {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.add-admin-fields {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 15px;
}

.add-admin-btn {
    align-self: flex-start;
    background: var(--accent-teal);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s;
}

.add-admin-btn:hover {
    background-color: var(--accent-deepsea);
    box-shadow: 0 0 10px rgba(25, 132, 146, 0.3);
    transform: translateY(-1px);
}

/* Custom dropdown styled input */
.add-admin-fields select {
    background: rgba(6, 9, 16, 0.6);
    border: 1px solid rgba(25, 132, 146, 0.15);
    border-radius: 8px;
    padding: 10px 14px;
    color: #fff;
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
}

.add-admin-fields select:focus {
    outline: none;
    border-color: var(--accent-matrix);
    box-shadow: 0 0 10px rgba(90, 225, 147, 0.15);
}

/* Developer Roles Badges */
.role-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 12px;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-super-admin {
    background: rgba(255, 0, 127, 0.08);
    color: var(--accent-magenta);
    border: 1px solid rgba(255, 0, 127, 0.2);
}

.role-web-dev {
    background: rgba(25, 132, 146, 0.08);
    color: var(--accent-teal);
    border: 1px solid rgba(25, 132, 146, 0.2);
}

.role-game-dev {
    background: rgba(90, 225, 147, 0.08);
    color: var(--accent-matrix);
    border: 1px solid rgba(90, 225, 147, 0.2);
}

.dashboard-main {
    padding: 40px 6%;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.dashboard-section {
    background: rgba(11, 16, 28, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: border-color 0.3s;
}

.dashboard-section:hover {
    border-color: rgba(25, 132, 146, 0.25);
}

.section-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding-bottom: 12px;
}

.dashboard-section h2 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
}

/* Connection status badge */
.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
}

.status-connected {
    background: rgba(90, 225, 147, 0.08);
    color: var(--accent-matrix);
    border: 1px solid rgba(90, 225, 147, 0.2);
}

.status-offline {
    background: rgba(255, 204, 0, 0.08);
    color: var(--accent-yellow);
    border: 1px solid rgba(255, 204, 0, 0.2);
}

/* Pipeline config styling */
.config-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.config-instructions p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 12px;
}

#config-json {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--accent-matrix);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    resize: vertical;
}

.config-actions {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.save-config-btn {
    background: var(--accent-teal);
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.save-config-btn:hover {
    background-color: var(--accent-deepsea);
}

.clear-config-btn {
    background: transparent;
    border: 1px solid rgba(255, 0, 127, 0.4);
    color: var(--accent-magenta);
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.clear-config-btn:hover {
    background: rgba(255, 0, 127, 0.08);
}

/* Workspace columns */
.workspace-columns {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 40px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.full-width {
    grid-column: span 2;
}

.file-upload-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(25, 132, 146, 0.2);
    border-radius: 12px;
    padding: 24px;
    background: rgba(6, 9, 16, 0.4);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    text-align: center;
    gap: 8px;
    margin-top: 4px;
}

.file-upload-wrapper:hover {
    border-color: var(--accent-matrix);
    background: rgba(25, 132, 146, 0.05);
    box-shadow: 0 0 15px rgba(90, 225, 147, 0.08);
}

.file-upload-wrapper.drag-active {
    border-color: var(--accent-matrix);
    background: rgba(25, 132, 146, 0.1);
    box-shadow: 0 0 20px rgba(90, 225, 147, 0.15);
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

.file-upload-icon {
    width: 32px;
    height: 32px;
    color: var(--text-muted);
    transition: color 0.2s, transform 0.2s;
}

.file-upload-wrapper:hover .file-upload-icon {
    color: var(--accent-matrix);
    transform: translateY(-2px);
}

.file-upload-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    pointer-events: none;
    transition: color 0.2s;
}

.file-upload-wrapper:hover .file-upload-label {
    color: #fff;
}

.upload-progress-text {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-lime);
    margin-top: 4px;
}

.submit-game-btn {
    background: var(--accent-matrix);
    color: #060910;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(90, 225, 147, 0.15);
}

.submit-game-btn:hover {
    background-color: var(--accent-lime);
    box-shadow: 0 4px 20px rgba(171, 250, 135, 0.3);
    transform: translateY(-1px);
}

.cancel-edit-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 12px 24px;
    border-radius: 8px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: all 0.2s;
}

.cancel-edit-btn:hover {
    border-color: var(--accent-magenta);
    color: var(--accent-magenta);
    background: rgba(255, 0, 127, 0.05);
}

.editor-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 20px;
}

/* Table Management Catalog */
.section-header-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.seed-btn {
    background: rgba(255, 204, 0, 0.04);
    border: 1px dashed rgba(255, 204, 0, 0.4);
    color: var(--accent-yellow);
    padding: 8px 16px;
    border-radius: 8px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.seed-btn:hover {
    background: var(--accent-yellow);
    color: #000;
    border-color: var(--accent-yellow);
    box-shadow: 0 0 12px rgba(255, 204, 0, 0.2);
}

.games-table-container {
    overflow-x: auto;
    width: 100%;
}

.games-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.games-table th {
    background: rgba(255, 255, 255, 0.01);
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.75rem;
    padding: 14px 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.games-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: middle;
}

.games-table tbody tr {
    transition: background-color 0.2s;
}

.games-table tbody tr:hover {
    background-color: rgba(25, 132, 146, 0.02);
}

.cell-thumb img {
    width: 80px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    display: block;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.table-stat-input {
    background: rgba(6, 9, 16, 0.6);
    border: 1px solid rgba(25, 132, 146, 0.15);
    border-radius: 6px;
    padding: 6px 10px;
    color: #fff;
    font-family: var(--font-mono);
    text-align: center;
    font-size: 0.8rem;
    width: 70px;
    transition: all 0.2s;
}

.table-stat-input:focus {
    outline: none;
    border-color: var(--accent-matrix);
    background: rgba(6, 9, 16, 0.9);
    box-shadow: 0 0 8px rgba(90, 225, 147, 0.2);
}

.rating-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 204, 0, 0.08);
    color: var(--accent-yellow);
    border: 1px solid rgba(255, 204, 0, 0.2);
    padding: 4px 10px;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
}

.cell-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.edit-action-btn {
    background: rgba(25, 132, 146, 0.08);
    border: 1px solid rgba(25, 132, 146, 0.2);
    color: var(--accent-teal);
}

.edit-action-btn:hover {
    background: var(--accent-teal);
    color: #fff;
    box-shadow: 0 0 10px rgba(25, 132, 146, 0.3);
}

.delete-action-btn {
    background: rgba(255, 0, 127, 0.05);
    border: 1px solid rgba(255, 0, 127, 0.15);
    color: var(--accent-magenta);
}

.delete-action-btn:hover {
    background: var(--accent-magenta);
    color: #fff;
    box-shadow: 0 0 10px rgba(255, 0, 127, 0.3);
}

.portal-footer {
    padding: 40px 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    background: #060910;
    color: var(--text-muted);
    font-size: 0.8rem;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover, .footer-links a.active {
    color: #fff;
}

.footer-divider {
    color: rgba(255, 255, 255, 0.08);
}

/* ==========================================
   GAME PLAY INTERFACE
   ========================================== */
.play-body {
    background: #060910;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.game-interface {
    width: 100%;
    max-width: 960px;
    background: var(--bg-panel);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.interface-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: #0a0e19;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.back-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.back-link:hover {
    color: #fff;
}

.interface-header h2 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.fullscreen-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.fullscreen-btn:hover {
    border-color: var(--accent-matrix);
    color: #fff;
}

.frame-container {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    position: relative;
    border: 1px solid rgba(61, 255, 176, 0.15);
    border-radius: 14px;
    box-shadow: 0 0 30px rgba(61, 255, 176, 0.05), inset 0 0 20px rgba(0, 0, 0, 0.8);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
}

.frame-container:hover {
    border-color: rgba(61, 255, 176, 0.3);
    box-shadow: 0 0 45px rgba(61, 255, 176, 0.1), inset 0 0 25px rgba(0, 0, 0, 0.9);
}

/* ==========================================
   RESPONSIVE LAYOUT BREAKPOINTS
   ========================================== */
@media (max-width: 1024px) {
    .workspace-columns {
        grid-template-columns: 1fr;
    }
}

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

@media (max-width: 768px) {
    .intro-content h2 {
        font-size: 2.25rem;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .full-width {
        grid-column: span 1;
    }
    .games-list-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   PRO ADMIN SIDEBAR DASHBOARD
   ========================================== */
.admin-dashboard-container {
    display: flex;
    min-height: 100vh;
    background-color: #060910;
}

/* Sidebar navigation panel */
.sidebar {
    width: 260px;
    background: #0b101c;
    border-right: 1px solid rgba(25, 132, 146, 0.1);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 30px 20px;
    box-sizing: border-box;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
    padding-left: 8px;
}

.sidebar-brand .brand-logo {
    width: 32px;
    height: 32px;
    color: var(--accent-matrix);
}

.sidebar-brand span {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.5px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.nav-item {
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    color: var(--text-muted);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    width: 100%;
}

.nav-item svg {
    color: var(--text-muted);
    transition: color 0.2s;
    flex-shrink: 0;
}

.nav-item:hover {
    color: #fff;
    background: rgba(255,255,255,0.02);
}

.nav-item:hover svg {
    color: #fff;
}

.nav-item.active {
    background: rgba(25, 132, 146, 0.08);
    color: var(--accent-teal);
}

.nav-item.active svg {
    color: var(--accent-teal);
}

.sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 20px;
}

.footer-link-btn, .footer-logout-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.06);
    color: var(--text-muted);
    padding: 10px 14px;
    border-radius: 8px;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    width: 100%;
    box-sizing: border-box;
}

.footer-link-btn:hover {
    background: rgba(255, 255, 255, 0.02);
    color: #fff;
}

.footer-logout-btn {
    border-color: rgba(255, 0, 127, 0.15);
    color: var(--accent-magenta);
}

.footer-logout-btn:hover {
    background: rgba(255, 0, 127, 0.06);
    border-color: var(--accent-magenta);
}

/* Main content viewport layout */
.main-content-viewport {
    flex-grow: 1;
    margin-left: 260px; /* match sidebar width */
    padding: 40px 4% 80px 4%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 30px;
    box-sizing: border-box;
    overflow-x: hidden;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding-bottom: 20px;
}

.header-title-block h1 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
}

.header-title-block p {
    font-size: 0.85rem;
}

.header-profile-block {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-avatar-tag {
    background: rgba(25, 132, 146, 0.08);
    border: 1px solid rgba(25, 132, 146, 0.2);
    color: var(--accent-teal);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
}

/* Tab viewport display controls */
.tab-content {
    display: none;
    animation: fadeInTab 0.25s ease-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Overview widgets */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.overview-stat-card {
    background: rgba(11, 16, 28, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.overview-stat-card:hover {
    border-color: rgba(25, 132, 146, 0.25);
    transform: translateY(-2px);
}

.stat-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-icon-wrapper {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255,255,255,0.02);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
}

.stat-footer-text {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Responsive sidebar collapse overrides */
@media (max-width: 1024px) {
    .sidebar {
        width: 76px;
        padding: 30px 10px;
    }
    .sidebar-brand span, .nav-item span, .sidebar-footer span {
        display: none;
    }
    .sidebar-brand {
        justify-content: center;
        padding-left: 0;
    }
    .nav-item {
        justify-content: center;
        padding: 12px;
    }
    .main-content-viewport {
        margin-left: 76px;
    }
    .overview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .overview-grid {
        grid-template-columns: 1fr;
    }
}

/* Premium Empty Catalog State */
.empty-catalog-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 64px 48px;
    background: linear-gradient(180deg, rgba(61,255,176,0.03), rgba(255,255,255,0.01));
    border: 1px solid var(--border);
    border-radius: 4px;
    text-align: center;
    box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
    max-width: 560px;
    margin: 40px auto;
    position: relative;
    animation: fadeInEmpty 0.4s ease-out;
}

/* Diagonal corners ornaments */
.empty-catalog-state::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 18px;
    height: 18px;
    border: 2px solid var(--accent);
    border-right: none;
    border-bottom: none;
    opacity: 0.6;
    pointer-events: none;
}

.empty-catalog-state::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 18px;
    height: 18px;
    border: 2px solid var(--accent);
    border-left: none;
    border-top: none;
    opacity: 0.6;
    pointer-events: none;
}

@keyframes fadeInEmpty {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.empty-icon-ring {
    width: 76px;
    height: 76px;
    margin: 0 auto 30px;
    border-radius: 50%;
    background: rgba(61,255,176,0.05);
    border: 1px solid var(--accent-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--accent);
    position: relative;
}

.empty-icon-ring::after {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 1px solid var(--accent);
    opacity: 0.4;
    animation: ringPulse 2.4s ease-out infinite;
}

@keyframes ringPulse {
    0%   { transform: scale(0.9); opacity: 0.5; }
    70%  { transform: scale(1.25); opacity: 0; }
    100% { opacity: 0; }
}

.empty-gamepad-icon {
    width: 30px;
    height: 30px;
    filter: drop-shadow(0 0 8px var(--accent-glow));
}

.empty-catalog-state h3 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
    letter-spacing: 0.01em;
}

.empty-catalog-state p {
    color: var(--text-secondary);
    font-size: 14.5px;
    line-height: 1.7;
    margin: 0 auto 28px;
    max-width: 420px;
}

.empty-dashboard-cta {
    display: inline-block;
    background: rgba(61,255,176,0.06);
    border: 1px solid var(--accent-dim);
    color: var(--accent);
    padding: 9px 22px;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    transition: all 0.25s ease;
    border-radius: 0 !important;
}

.empty-dashboard-cta:hover {
    background: rgba(61,255,176,0.14);
    box-shadow: 0 0 18px var(--accent-glow);
    border-color: var(--accent);
}

/* Editorial Terms/Privacy Card styling */
.editorial-container {
    max-width: 800px;
    margin: 60px auto 100px auto;
    padding: 40px;
    background: rgba(11, 16, 28, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.editorial-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 24px;
    margin-bottom: 32px;
}

.editorial-header h1 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
}

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

.editorial-content h2 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-top: 32px;
    margin-bottom: 12px;
}

.editorial-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

/* Custom Responsiveness Extensions */
@media (max-width: 900px) {
    .team-workspace {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .editorial-container {
        margin: 20px 4% 60px 4%;
        padding: 24px;
    }
    .editorial-header h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 16px 4%;
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    .nav-links {
        gap: 20px;
    }
    .intro-section {
        padding: 80px 4% 60px 4%;
    }
    .intro-content h2 {
        font-size: 2rem;
        letter-spacing: -0.8px;
    }
    .games-section {
        padding: 40px 4% 60px 4%;
    }
}

/* ==========================================
   DEVELOPER DASHBOARD MOBILE RESPONSIVENESS
   ========================================== */
@media (max-width: 768px) {
    /* 1. Dashboard Container & Sidebar to Sticky Top Bar Restructuring */
    .admin-dashboard-container {
        flex-direction: column;
    }

    .sidebar {
        position: sticky;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid rgba(25, 132, 146, 0.15);
        padding: 12px 16px 8px 16px;
        display: grid;
        grid-template-areas: 
            "brand footer"
            "nav nav";
        grid-template-columns: 1fr auto;
        gap: 10px;
        background: #0b101c;
        z-index: 100;
    }

    .sidebar-brand {
        grid-area: brand;
        margin-bottom: 0;
        padding-left: 0;
        align-self: center;
    }

    .sidebar-brand span {
        display: inline !important;
        font-size: 1rem;
    }

    .sidebar-footer {
        grid-area: footer;
        border-top: none;
        padding-top: 0;
        flex-direction: row;
        gap: 8px;
        align-self: center;
        margin-top: 0;
    }

    /* Compact circle icon-only buttons for View Site and Log Out on mobile */
    .footer-link-btn, .footer-logout-btn {
        width: 32px !important;
        height: 32px !important;
        padding: 0 !important;
        justify-content: center !important;
        align-items: center !important;
        border-radius: 50% !important;
        flex-shrink: 0;
        gap: 0 !important;
    }

    .footer-link-btn span, .footer-logout-btn span {
        display: none !important;
    }

    .sidebar-nav {
        grid-area: nav;
        flex-direction: row;
        overflow-x: auto;
        white-space: nowrap;
        gap: 6px;
        padding-bottom: 6px;
        width: 100%;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none;  /* IE/Edge */
    }

    .sidebar-nav::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }

    .nav-item {
        width: auto;
        padding: 8px 14px;
        justify-content: flex-start;
        gap: 8px;
        flex-shrink: 0;
    }

    .nav-item span {
        display: inline !important;
    }

    /* 2. Main Content Viewport Area */
    .main-content-viewport {
        margin-left: 0;
        padding: 20px 15px 40px 15px;
        width: 100%;
        gap: 20px;
    }

    .content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding-bottom: 15px;
    }

    .header-profile-block {
        width: 100%;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
        margin-top: 4px;
    }

    /* Standardized uniform design badges */
    .status-badge, .user-avatar-tag {
        padding: 0 12px !important;
        font-size: 0.7rem !important;
        display: inline-flex !important;
        align-items: center !important;
        height: 26px !important;
        line-height: 26px !important;
        box-sizing: border-box !important;
        border-radius: 20px !important;
        margin: 0 !important;
    }

    /* 3. Welcome Board & Stats Grid Layout */
    .top-dashboard-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        margin-top: 20px !important;
    }

    .welcome-board {
        gap: 15px;
    }

    .welcome-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 15px !important;
    }

    .welcome-actions button {
        margin-left: 0 !important;
        flex: 1 1 auto;
        text-align: center;
        padding: 10px 15px !important;
    }

    .overview-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* 4. Active Catalog Table-to-Cards Transformation */
    .games-table-container {
        border: none;
    }

    .games-table, .games-table tbody, .games-table tr {
        display: block;
        width: 100%;
    }

    .games-table thead {
        display: none; /* Hide header row on mobile */
    }

    .games-table tr {
        margin-bottom: 15px;
        background: rgba(14, 21, 38, 0.6);
        border: 1px solid var(--border-color);
        border-radius: 12px;
        padding: 12px 14px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

    .games-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
        width: 100%;
        text-align: right;
    }

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

    /* Prevent column labels inside single-cell states like loading or empty messages */
    .games-table td[colspan]::before {
        content: none !important;
    }

    .games-table td[colspan] {
        display: block !important;
        text-align: center !important;
        justify-content: center !important;
        padding: 30px 15px !important;
        border-bottom: none !important;
    }

    /* Label injection for Catalog Table properties */
    .games-table td:nth-of-type(1)::before { content: "Thumbnail"; font-weight: 600; color: var(--text-muted); font-size: 0.75rem; text-transform: uppercase; }
    .games-table td:nth-of-type(2)::before { content: "Title / ID"; font-weight: 600; color: var(--text-muted); font-size: 0.75rem; text-transform: uppercase; }
    .games-table td:nth-of-type(3)::before { content: "Ratings"; font-weight: 600; color: var(--text-muted); font-size: 0.75rem; text-transform: uppercase; }
    .games-table td:nth-of-type(4)::before { content: "Plays"; font-weight: 600; color: var(--text-muted); font-size: 0.75rem; text-transform: uppercase; }
    .games-table td:nth-of-type(5)::before { content: "Views"; font-weight: 600; color: var(--text-muted); font-size: 0.75rem; text-transform: uppercase; }
    .games-table td:nth-of-type(6)::before { content: "Actions"; font-weight: 600; color: var(--text-muted); font-size: 0.75rem; text-transform: uppercase; }

    .games-table td strong {
        font-size: 0.9rem;
    }

    .table-stat-input {
        width: 60px;
        padding: 4px 8px;
    }

    .cell-actions {
        justify-content: flex-end;
    }

    /* 5. Team & Roster Table-to-Cards Transformation */
    .admins-list-wrapper {
        border: none;
        max-height: none;
        background: transparent;
    }

    .admins-table, .admins-table tbody, .admins-table tr {
        display: block;
        width: 100%;
    }

    .admins-table thead {
        display: none;
    }

    .admins-table tr {
        margin-bottom: 15px;
        background: rgba(14, 21, 38, 0.6);
        border: 1px solid var(--border-color);
        border-radius: 12px;
        padding: 12px 14px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

    .admins-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
        width: 100%;
        text-align: right;
    }

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

    /* Prevent column labels inside single-cell states like loading or empty messages */
    .admins-table td[colspan]::before {
        content: none !important;
    }

    .admins-table td[colspan] {
        display: block !important;
        text-align: center !important;
        justify-content: center !important;
        padding: 30px 15px !important;
        border-bottom: none !important;
    }

    /* Label injection for Admins Table properties */
    .admins-table td:nth-of-type(1)::before { content: "Admin Email"; font-weight: 600; color: var(--text-muted); font-size: 0.75rem; text-transform: uppercase; }
    .admins-table td:nth-of-type(2)::before { content: "Role"; font-weight: 600; color: var(--text-muted); font-size: 0.75rem; text-transform: uppercase; }
    .admins-table td:nth-of-type(3)::before { content: "Action"; font-weight: 600; color: var(--text-muted); font-size: 0.75rem; text-transform: uppercase; }

    /* 6. Form Field and Action Button stack rules */
    .add-admin-fields {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .add-admin-btn {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
    }

    .config-actions {
        flex-wrap: wrap;
    }

    .config-actions button {
        flex: 1 1 auto;
        text-align: center;
    }
}

/* ==========================================
   GLASSMORPHIC SLIDING SWITCH TOGGLE
   ========================================== */
.switch-container {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.switch-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: .3s cubic-bezier(0.25, 1, 0.5, 1);
    border-radius: 24px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.4);
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    transition: .3s cubic-bezier(0.25, 1, 0.5, 1);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.switch-toggle input:checked + .switch-slider {
    background-color: rgba(61, 255, 176, 0.15);
    border-color: rgba(61, 255, 176, 0.5);
}

.switch-toggle input:checked + .switch-slider:before {
    transform: translateX(20px);
    background-color: var(--accent-matrix);
    filter: drop-shadow(0 0 4px var(--accent-matrix));
}

.switch-label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: var(--font-display);
    user-select: none;
}

.switch-label.public-label {
    color: var(--accent-matrix);
}

.switch-label.admin-label {
    color: var(--accent-magenta);
}


