:root {
    /* Signature Branding Colors */
    --color-gt-yellow: #fbbf24;
    --color-rt-orange: #f1aa1c;
    --color-rt-yellow: #ffea00;
    --color-rt-cyan: #5fffff;
    --color-rt-green: #05ff74;
    --color-rt-red: #ff0000;
    --color-rt-offwhite: #ece2d0;
    --color-rt-offblack: #130918;
    --color-live-green: #059669;
    --font-main: 'Barlow', sans-serif;
}

/* Light Theme (Default) */
.light-theme {
    --theme-bg: #f8f9fa;
    --theme-card-bg: #ffffff;
    --theme-text-main: #1a1a1a;
    --theme-text-muted: #6c757d;
    --theme-accent: #fbbf24;
    --theme-accent-hover: #d97706;
    --theme-border: #dee2e6;
    --theme-dot-color: #dee2e6;
    --theme-input-bg: #ffffff;
    --theme-avatar-bg: #f8f9fa;
    --theme-btn-secondary-bg: #f1f5f9;
}

/* Dark Theme */
.dark-theme {
    --theme-bg: #0a0b10;
    --theme-card-bg: #141620;
    --theme-text-main: #e2e8f0;
    --theme-text-muted: #94a3b8;
    --theme-accent: #fbbf24;
    --theme-accent-hover: #fcd34d;
    --theme-border: #1e293b;
    --theme-dot-color: #1e293b;
    --theme-input-bg: #1e293b;
    --theme-avatar-bg: #1e293b;
    --theme-btn-secondary-bg: #1e293b;
}

/* Cyber Neon Theme */
.cyber-theme {
    --theme-bg: #050505;
    --theme-card-bg: #0d0d0d;
    --theme-text-main: #00ffcc;
    --theme-text-muted: #0088aa;
    --theme-accent: #ff00ff; /* Neon Pink */
    --theme-accent-hover: #ff00cc;
    --theme-border: #333333;
    --theme-dot-color: #1a1a1a;
    --theme-input-bg: #1a1a1a;
    --theme-avatar-bg: #1a1a1a;
    --theme-btn-secondary-bg: #1a1a1a;
}

/* Retro Terminal Theme */
.retro-theme {
    --theme-bg: #1a1a1a;
    --theme-card-bg: #222222;
    --theme-text-main: #33ff33; /* CRT Green */
    --theme-text-muted: #228822;
    --theme-accent: #33ff33;
    --theme-accent-hover: #ffffff;
    --theme-border: #33ff33;
    --theme-dot-color: #222222;
    --theme-input-bg: #000000;
    --theme-avatar-bg: #000000;
    --theme-btn-secondary-bg: #000000;
}

/* Cotton Candy Theme */
.cotton-theme {
    --theme-bg: #bde0fe;
    --theme-card-bg: #ffffff;
    --theme-text-main: #5a4a6a;
    --theme-text-muted: #7a6a8a;
    --theme-accent: #ffafcc;
    --theme-accent-hover: #ffc8dd;
    --theme-border: #cdb4db;
    --theme-dot-color: #a2d2ff;
    --theme-input-bg: #ffffff;
    --theme-avatar-bg: #fdf0f6;
    --theme-btn-secondary-bg: #a2d2ff;
}

/* Fiesta Theme */
.fiesta-theme {
    --theme-bg: #3a86ff;
    --theme-card-bg: #8338ec;
    --theme-text-main: #ffffff;
    --theme-text-muted: #ffbe0b;
    --theme-accent: #ff006e;
    --theme-accent-hover: #fb5607;
    --theme-border: #fb5607;
    --theme-dot-color: #ffbe0b;
    --theme-input-bg: #3a86ff;
    --theme-avatar-bg: #fb5607;
    --theme-btn-secondary-bg: #ffbe0b;
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* Dotted Background */
.background-dots {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: var(--theme-bg);
    background-image: radial-gradient(var(--theme-dot-color) 1px, transparent 1px);
    background-size: 20px 20px;
}

html, body {
    margin: 0;        /* <--- Add this */
    padding: 0;       /* <--- Add this for safety */
    width: 100%;
    position: relative;
}

body {
    background-color: var(--theme-bg);
    color: var(--theme-text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.no-scroll {
    overflow: hidden;
}

/* Flat UI Elements */
.landing-header, 
.footer, 
.game-card, 
.profile-card {
    background: var(--theme-card-bg);
    border: 1px solid var(--theme-border) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

.feed-header-group {
    width: 100%;
    margin-bottom: 2rem;
}

.status-broadcast-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

/* --- Fixed Top Container --- */
.fixed-top-group {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 30000; /* Above sidebars (25000) */
    display: flex;
    flex-direction: column;
    background: var(--theme-card-bg); /* Ensure group has background if components are transparent */
}

.landing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.5rem; /* Reduced horizontal padding to push items closer to edges */
    width: 100%;
    z-index: 100;
}

/* ... (ticker-text elsewhere) ... */
.ticker-text {
    font-size: 0.7rem;
    color: var(--theme-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    opacity: 0.8;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
}

.nav-item {
    color: var(--theme-text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: color 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.auth-wrapper {
    display: flex;
    align-items: center;
    border-left: 1px solid var(--theme-border);
    padding-left: 2rem;
}

/* Hamburger Menu Toggle */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1100;
    color: var(--theme-text-muted);
}

.menu-toggle:hover {
    color: var(--theme-accent);
}

.menu-toggle i {
    font-size: 1.4rem;
}

.hamburger {
    display: block;
    position: relative;
    width: 20px;
    height: 2px;
    background: var(--theme-text-muted);
    transition: background 0.2s ease;
}

.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 20px;
    height: 2px;
    background: var(--theme-text-muted);
    transition: all 0.2s ease;
}

.hamburger::before { top: -6px; }
.hamburger::after { bottom: -6px; }

/* Active State for Hamburger */
.menu-toggle.active .hamburger {
    background: transparent;
}

.menu-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

.nav-item:hover {
    color: var(--theme-accent);
}

/* ... (rest of CSS) */

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 6rem 1rem 4rem;
    max-width: 900px;
    margin: 0 auto 2rem;
}

.hero-subtitle {
    color: var(--theme-text-muted);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Games Grid */
.games-section {
    padding: 4rem 1rem;
    flex-grow: 1;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 3rem;
    text-transform: uppercase;
    font-weight: 800;
    text-align: center;
    letter-spacing: 2px;
}

.games-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
}

.game-card {
    background: var(--theme-card-bg);
    border: 1px solid var(--theme-border);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    min-height: 420px;
    width: 340px;
    max-width: 100%;
}

.game-card:hover {
    border-color: var(--theme-accent);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1) !important;
}

.game-image-container {
    height: 180px;
    background: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.game-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.game-card:hover .game-image {
    transform: scale(1.05);
}

.game-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.game-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.game-desc {
    font-size: 0.85rem;
    color: var(--theme-text-muted);
}

.game-status {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: auto;
    color: var(--theme-accent);
    font-weight: 600;
}

/* About Section */
.about-section {
    background: var(--theme-card-bg);
    padding: 4rem 2rem;
    border-top: 1px solid var(--theme-border);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    color: var(--theme-text-muted);
    margin-bottom: 1.5rem;
}

/* Footer Links */
.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: var(--theme-text-muted);
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 600;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--theme-accent);
}

.footer-disclaimer {
    color: var(--theme-text-muted);
    margin-bottom: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.copyright {
    color: var(--theme-text-muted);
}

/* Utility */
.hidden { display: none !important; }

.mobile-only {
    display: none !important;
}

.desktop-only {
    display: block !important;
}

@media (max-width: 1024px) {
    .mobile-only {
        display: block !important;
    }
    .desktop-only {
        display: none !important;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.2rem;
    background: transparent;
    border: 1px solid var(--theme-accent);
    color: var(--theme-accent);
    text-transform: uppercase;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.75rem;
    letter-spacing: 1px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 4px;
}

.btn:hover {
    background: var(--theme-accent);
    color: #000;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.2);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(0.5);
    pointer-events: none;
}

.user-display {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.username-badge {
    color: var(--theme-accent);
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-shadow: none;
}

.btn.logout-btn {
    border-color: var(--theme-border);
    color: var(--theme-text-muted);
    font-size: 0.65rem;
    padding: 0.3rem 0.8rem;
}

.btn.logout-btn:hover {
    border-color: #ef4444;
    color: #ef4444;
    background: transparent;
    box-shadow: none;
}

/* Modal */
.modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 10px; /* Minimal padding to ensure it fits screen */
    box-sizing: border-box;
}

.modal-content {
    background-color: var(--theme-card-bg);
    background-image: radial-gradient(var(--theme-dot-color) 1px, transparent 1px);
    background-size: 20px 20px;
    border: 1px solid var(--theme-border);
    padding: 2.5rem;
    width: 100%;
    max-width: 500px; /* Standardize modal width */
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    max-height: 95vh;
    overflow-y: auto;
    position: relative;
    box-sizing: border-box;
    color: var(--theme-text-main);
}

.modal-content h2, .modal-content h3, .modal-content label {
    color: var(--theme-text-main);
    font-weight: 800;
}

.modal-content p, .modal-content span {
    color: var(--theme-text-main);
}

/* Ensure bold elements stand out */
.modal-content strong, .modal-content b {
    color: var(--theme-accent);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--theme-border);
    padding-bottom: 1rem;
}

.modal-header h2 {
    font-size: 1.2rem;
    color: var(--theme-accent);
}

.input-view-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--theme-bg);
    border-radius: 12px;
    border: 1px solid var(--theme-border);
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.05);
}

.input-view-icon {
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}

.input-view-header h3 {
    font-size: 1.5rem;
    color: var(--theme-accent);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Disclaimer Modal Styling */
.disclaimer-body {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.highlight-box {
    background: var(--theme-bg);
    border: 1px solid var(--theme-border);
    border-left: 4px solid var(--theme-accent);
    padding: 1.2rem;
    border-radius: 8px;
    color: var(--theme-text-main);
    line-height: 1.6;
    font-size: 0.95rem;
}

.small-text {
    font-size: 0.75rem;
    color: var(--theme-text-muted);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    width: 100%;
    box-sizing: border-box; /* Ensure padding doesn't push width out */
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--theme-text-muted);
    font-size: 0.7rem;
    font-weight: 800;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--theme-border);
}

.auth-divider:not(:empty)::before {
    margin-right: .5em;
}

.auth-divider:not(:empty)::after {
    margin-left: .5em;
}

.discord-auth-btn-circle {
    background: #5865F2;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0.5rem auto 1.5rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
}

.discord-auth-btn-circle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(88, 101, 242, 0.4);
    background: #4752c4;
}

.discord-auth-btn-circle img {
    display: block;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    width: 100%;
    box-sizing: border-box;
}

.form-group label {
    display: block;
    width: 100%;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--theme-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.form-group input {
    background: var(--theme-input-bg) !important;
    border: 1px solid var(--theme-border) !important;
    padding: 0.8rem 1.5rem !important;
    color: var(--theme-text-main) !important;
    font-family: var(--font-main);
    border-radius: 50px !important;
    font-size: 1rem;
    text-align: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
    outline: none;
    transition: all 0.2s;
    box-shadow: none !important;
}

.form-group input::placeholder {
    color: var(--theme-text-muted);
    opacity: 0.4;
}

.form-group input:focus {
    border-color: var(--theme-accent) !important;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1) !important;
}

.input-with-action {
    position: relative;
    width: 100%;
}

.tiny-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--theme-text-muted);
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    transition: color 0.2s;
}

.tiny-btn:hover {
    color: var(--theme-accent);
}

.full-width {
    width: 100% !important;
    text-align: center;
    margin-top: 0.5rem;
}

.auth-switch {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--theme-text-muted);
}

.link-text {
    color: var(--theme-accent);
    cursor: pointer;
    font-weight: 600;
}

.link-text:hover {
    text-decoration: underline;
}

.form-status {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.8rem;
    min-height: 1.2em;
}

.form-status.success { color: #22c55e; }
.form-status.error { color: #ef4444; }

.btn.small {
    padding: 0.3rem 0.8rem;
    font-size: 0.7rem;
}

.btn.primary {
    background: var(--theme-accent);
    border-color: var(--theme-accent);
    color: #000;
}

.btn.primary:hover {
    background: var(--theme-accent-hover);
    border-color: var(--theme-accent-hover);
    color: #000;
}

/* Pill Input Styles (Synced with RT Look) */
.pill-input {
    width: 100% !important;
    background: var(--theme-input-bg) !important;
    border: 1px solid var(--theme-border) !important;
    padding: 0.8rem 1.5rem !important;
    color: var(--theme-text-main) !important;
    font-family: var(--font-main) !important;
    font-size: 1rem !important;
    outline: none !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-radius: 50px !important;
    text-align: center !important;
    text-align-last: center !important;
}

.pill-input:focus {
    border-color: var(--theme-accent) !important;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.1) !important;
}

/* Specific Select Styling for Pill Inputs */
select.pill-input {
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: linear-gradient(45deg, transparent 50%, rgba(0,0,0,0.5) 50%),
                      linear-gradient(135deg, rgba(0,0,0,0.5) 50%, transparent 50%) !important;
    background-position: calc(100% - 25px) calc(1em + 2px),
                         calc(100% - 20px) calc(1em + 2px) !important;
    background-size: 5px 5px,
                     5px 5px !important;
    background-repeat: no-repeat !important;
    padding-right: 3rem !important;
}

.pill-input::placeholder {
    color: var(--theme-text-muted) !important;
    opacity: 0.5 !important;
}

/* Profile Page Overhaul */
.profile-page, .hub-container {
    padding: 2rem 0; /* Removed horizontal padding */
    max-width: 100%;
    margin: 0 auto;
    min-height: calc(100vh - 160px);
    width: 100%;
    box-sizing: border-box;
}

.profile-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

.hub-container {
    max-width: 100%;
}

.profile-header-main {
    display: none !important;
}

/* Static Page Header (Explicitly visible) */
.static-page-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--theme-border);
    padding-top: 2rem;
    padding-bottom: 1.5rem;
    text-align: center;
}

.static-page-header h1 {
    font-size: 2.2rem;
    color: var(--theme-text-main);
    text-transform: uppercase;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
}

.static-page-header h1 span {
    color: var(--theme-accent);
    margin-left: 0.5rem;
}

.home-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    color: var(--theme-text-muted);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.65rem; /* Small */
    letter-spacing: 1.5px;
    transition: all 0.2s;
    margin-bottom: 0.75rem; /* Above the title */
    padding: 4px 10px;
    border: 1px solid var(--theme-border);
    border-radius: 4px;
}

.home-back-btn:hover {
    color: var(--theme-accent);
    border-color: var(--theme-accent);
    background: rgba(251, 191, 36, 0.05);
}

.home-back-btn i {
    font-size: 0.9rem;
}

/* Avatar Edit Overlay */
.avatar-container {
    width: 140px;
    height: 140px;
    background: var(--theme-bg);
    border-radius: 50%;
    margin: 0 auto 1rem;
    border: 2px solid var(--theme-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--theme-accent);
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.avatar-overlay i {
    color: white;
    font-size: 2rem;
}

.avatar-container:hover .avatar-overlay,
.avatar-overlay.active {
    opacity: 1;
}

/* LFG Broadcast Form Visibility Fix */
#lfg-broadcast-container {
    display: block !important;
    width: 100%;
}

#lfg-broadcast-form:not(.hidden) {
    display: flex !important;
}

/* --- Notifications Dropdown (FB Style) --- */
.header-action-group {
    display: flex;
    align-items: center;
    position: relative;
}

.header-icon-btn {
    position: relative;
    background: transparent;
    border: none;
    font-size: 1.4rem;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--theme-text-muted);
    transition: color 0.2s;
}

.header-icon-btn:hover {
    color: var(--theme-accent);
}

.notif-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #ef4444;
    color: white;
    font-size: 0.6rem;
    padding: 2px 5px;
    border-radius: 10px;
    font-weight: 800;
    border: 2px solid #fff;
}

.notif-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 360px;
    background: var(--theme-card-bg);
    border: 1px solid var(--theme-border);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    max-height: 80vh;
    overflow-y: auto;
    z-index: 10000 !important; /* Above header and sidebars */
    display: none;
    flex-direction: column;
}

.notif-header {
    padding: 1rem;
    border-bottom: 1px solid var(--theme-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notif-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
}

#notif-mark-read {
    background: none;
    border: none;
    color: var(--theme-accent);
    font-weight: 700;
    cursor: pointer;
    font-size: 0.8rem;
}

.notif-footer {
    padding: 0.8rem;
    border-top: 1px solid var(--theme-border);
    text-align: center;
}

.notif-footer a {
    color: var(--theme-text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
}

.notif-item {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
}

.notif-item:hover {
    background: var(--theme-bg);
}

.notif-item.unread {
    background: var(--theme-input-bg);
    border-left: 3px solid var(--theme-accent);
}

.notif-item-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--theme-avatar-bg);
    border: 1px solid var(--theme-border);
    color: var(--theme-text-muted);
    font-size: 1.4rem;
}

.notif-item-content {
    flex: 1;
}

.notif-item-text {
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
    color: var(--theme-text-main);
}

.notif-item-text b {
    font-weight: 800;
}

.notif-item-time {
    font-size: 0.75rem;
    color: var(--theme-text-muted);
    margin-top: 0.2rem;
    display: block;
}

.notif-item-actions {
    margin-top: 0.6rem;
    display: flex;
    gap: 0.5rem;
}

.notif-item-actions .btn {
    flex: 1;
    padding: 6px 4px;
    font-size: 0.7rem;
    border-radius: 6px;
    text-transform: uppercase;
}

/* Mobile Adjustments for Dropdown */
@media (max-width: 600px) {
    .notif-dropdown {
        position: fixed;
        top: 110px !important; /* Below Header + Tab Bar */
        left: 10px;
        right: 10px;
        width: calc(100vw - 20px);
        height: auto;
        max-height: calc(100vh - 130px);
        border-radius: 8px;
        border: 1px solid var(--theme-border);
        box-shadow: 0 12px 36px rgba(0,0,0,0.2);
        z-index: 20000 !important;
    }
}

/* Home button only shows for non-logged in users */
body.logged-in .home-back-btn {
    display: none !important;
}

.profile-header-main h1 {
    font-size: 2rem;
    color: var(--theme-text-main);
    text-transform: uppercase;
    font-weight: 800;
    margin: 0;
}

.profile-header-main h1 span {
    color: var(--theme-accent);
}

.join-date {
    color: var(--theme-text-muted);
    font-size: 0.85rem;
    letter-spacing: 1px;
    font-weight: 700;
    text-transform: uppercase;
}

.profile-grid {
    display: grid;
    grid-template-columns: 380px 1fr; /* Increased width for better text fit and prominence */
    gap: 2rem;
    width: 100%;
    align-items: start;
}

@media (max-width: 1280px) {
    .profile-grid {
        grid-template-columns: 300px 1fr;
        gap: 1.5rem;
    }
}

.profile-card {
    background: var(--theme-card-bg);
    border: 1px solid var(--theme-border);
    padding: 1.5rem;
    border-radius: 8px;
    min-height: auto;
    overflow: visible;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.profile-card.sidebar-card {
    position: sticky;
    top: 100px;
}

.profile-card h3 {
    font-size: 0.85rem;
    margin-bottom: 1.2rem;
    color: var(--theme-text-muted);
    border-bottom: 1px solid var(--theme-border);
    padding-bottom: 0.5rem;
    letter-spacing: 1.5px;
    font-weight: 800;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--theme-border);
    padding-bottom: 0.5rem;
    flex-wrap: wrap; /* Allow wrapping for long content */
    gap: 0.5rem;
}

.info-row label {
    color: var(--theme-text-muted);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    white-space: nowrap;
}

.info-row span {
    color: var(--theme-text-main);
    font-weight: 600;
    word-break: break-all; /* Ensure very long emails break properly */
    text-align: right;
}

/* Member Directory Dense Grid */
.member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    width: 100%;
    padding: 0;
}

#social-feed {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.sub-header {
    display: flex;
    gap: 2rem;
    padding: 1rem 2rem;
    align-items: center;
    background: var(--theme-card-bg);
    border: 1px solid var(--theme-border);
    border-left: 4px solid var(--theme-accent);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    width: 100%;
    margin-bottom: 1.5rem;
    box-sizing: border-box;
}

.member-card {
    background: var(--theme-card-bg);
    border: 1px solid var(--theme-border);
    border-radius: 12px;
    padding: 1rem 0.6rem;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column; /* Vertical layout */
    align-items: center;
    text-align: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
    position: relative;
    overflow: hidden;
    gap: 0.4rem;
    min-height: 260px;
    width: 100%;
    justify-content: flex-start;
}

.member-card:hover {
    border-color: var(--theme-accent);
    background: var(--theme-card-bg);
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.member-avatar-circle {
    width: 60px;
    height: 60px;
    background: var(--theme-avatar-bg);
    border-radius: 50%;
    border: 2px solid var(--theme-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--theme-accent);
    overflow: hidden;
    flex-shrink: 0;
    margin-right: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.member-avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.member-name {
    margin: 0;
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--theme-text-main);
    white-space: normal;
    word-break: break-word;
    line-height: 1.1;
    min-height: 2.2em;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    letter-spacing: 0.5px;
}

.member-rating-row {
    display: flex;
    flex-direction: column; /* Vertical on desktop too */
    align-items: center;
    gap: 0.2rem;
    margin-top: 0.2rem;
}

.stars-outer {
    font-size: 0.8rem;
    color: var(--theme-border);
    position: relative;
    display: inline-block;
}

.stars-inner {
    position: absolute;
    top: 0;
    left: 0;
    white-space: nowrap;
    overflow: hidden;
    color: var(--theme-accent);
}

.rating-val {
    font-size: 1rem;
    font-weight: 800;
    color: var(--theme-text-main);
}

.review-count {
    font-size: 0.75rem;
    color: var(--theme-text-muted);
    font-weight: 600;
}

.member-actions-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1rem;
}

.member-actions-container .btn {
    width: 100%;
    padding: 0.6rem;
    font-size: 0.75rem;
    font-weight: 800;
    border-radius: 8px;
}

.member-card .view-btn {
    background: var(--theme-btn-secondary-bg);
    color: var(--theme-text-main);
    border: 1px solid var(--theme-border);
}

.member-card .view-btn:hover {
    background: var(--theme-accent);
    color: #000;
    border-color: var(--theme-accent);
}

@media (max-width: 1024px) {
    .member-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        padding: 0 1rem;
    }
}

@media (max-width: 600px) {
    .member-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
        padding: 0 0.6rem;
        width: 100% !important;
        box-sizing: border-box;
    }

    .member-card {
        padding: 0.6rem 0.4rem;
        gap: 0.3rem;
    }

    .member-avatar-circle {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .member-name {
        font-size: 0.95rem;
        margin-bottom: 0.2rem;
    }

    .member-rating-row {
        gap: 0.1rem;
    }

    .rating-val {
        font-size: 1.1rem !important;
    }

    .member-actions-container {
        padding-top: 0.5rem;
    }

    .member-card .btn {
        padding: 0.6rem;
    }
}

/* Ultra-Wide Screen Scaling */
@media (min-width: 1921px) {
    .profile-page, .hub-container {
        max-width: 2200px !important;
    }
    .profile-grid {
        grid-template-columns: 480px 1fr; /* Extra wide sidebar for ultra-wide displays */
    }
    .profile-header-main h1 {
        font-size: 3rem;
    }
    .member-card h3 {
        font-size: 1.2rem;
    }
    .member-stats {
        font-size: 0.9rem;
        min-width: 150px;
    }
    .sub-header {
        padding: 1.5rem 3rem;
    }
}

.lfg-card {
    padding: 1.2rem 1.8rem !important;
    gap: 1.5rem !important;
    border-left: 4px solid var(--theme-accent) !important;
}

.lfg-badge {
    background: var(--theme-btn-secondary-bg);
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.6rem;
    font-weight: 800;
    color: var(--theme-text-muted);
    border: 1px solid var(--theme-border);
    white-space: nowrap;
}

/* Vertical LFG Card (5x7 aspect ratio) */
.lfg-card-vertical {
    display: flex;
    flex-direction: column !important;
    padding: 0 !important;
    overflow: hidden;
    height: auto !important;
    aspect-ratio: 5 / 7;
    width: 100%;
    border-left: none !important;
    border: 1px solid var(--theme-border) !important;
    border-top: 4px solid var(--theme-accent) !important;
    gap: 0 !important;
    align-items: stretch !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    background: var(--theme-card-bg) !important;
}

.lfg-card-vertical:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1) !important;
    border-color: var(--theme-accent) !important;
}

.lfg-card-top {
    height: 100px; 
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
}

/* Fix: Apply blur via pseudo-element to not affect overlay text */
.lfg-card-top::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: inherit;
    filter: blur(2px);
    z-index: 0;
}

.lfg-card-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    width: 100%;
    padding: 0.4rem 0.6rem;
    position: relative;
    z-index: 1;
}

.lfg-game-title {
    color: #fff;
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
    letter-spacing: 0.5px;
}

.lfg-card-body {
    padding: 0.6rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    justify-content: flex-start;
    overflow-y: auto;
    scrollbar-width: none;
}

.lfg-card-body::-webkit-scrollbar {
    display: none;
}

.lfg-identifiers {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    background: var(--theme-bg);
    padding: 0.4rem;
    border-radius: 6px;
    border: 1px solid var(--theme-border);
}

.lfg-badge-copy {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    background: var(--theme-bg);
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.lfg-badge-copy:hover {
    background: var(--theme-input-bg);
    border-color: var(--theme-accent);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.lfg-badge-large {
    font-family: monospace;
    font-weight: 800;
    font-size: 0.8rem; 
    color: var(--theme-text-main);
    display: block;
    letter-spacing: -0.5px;
}

.copy-status {
    font-size: 0.5rem;
    font-weight: 800;
    color: var(--theme-accent);
    opacity: 0.4;
    transition: opacity 0.2s;
    text-transform: uppercase;
}

.lfg-badge-copy:hover .copy-status {
    opacity: 1;
}

.lfg-card-actions {
    margin-top: auto; 
    padding-top: 0.1rem;
}

.lfg-card-actions .btn {
    padding: 0.8rem !important;
    font-size: 0.8rem !important;
    letter-spacing: 1.5px !important;
}

.lfg-timer {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    background: var(--theme-bg);
    color: var(--theme-text-muted);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    border: 1px solid var(--theme-border);
}

/* Override member-grid for LFG Feed to use actual grid */
#lfg-feed-container {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important;
    gap: 1rem !important;
}

/* Keep member-grid stacked for mobile logic, but LFG overrides it above 768px */
@media (max-width: 768px) {
    #lfg-feed-container {
        display: grid !important;
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
        gap: 1rem !important;
        padding: 0.5rem !important;
    }
    
    .lfg-card-vertical {
        height: auto !important;
        aspect-ratio: auto !important; /* Allow card to grow with content */
    }

    .lfg-card-top {
        height: 65px;
    }

    .lfg-card-body {
        padding: 0.8rem;
        gap: 0.5rem;
    }

    .lfg-card-actions {
        margin-top: 1rem;
    }

    .lfg-card-body h3 {
        font-size: 0.9rem;
    }

    .lfg-identifiers {
        padding: 0.5rem;
        gap: 0.4rem;
    }

    .lfg-badge-copy {
        padding: 0.3rem 0.5rem;
    }

    .lfg-badge-large {
        font-size: 0.85rem;
    }

    .lfg-objective-text span:last-child {
        font-size: 0.9rem !important;
    }

    .lfg-objective-text span:first-child {
        font-size: 0.7rem !important;
    }

    .lfg-card-actions .btn {
        padding: 0.6rem !important;
    }

    .lfg-timer {
        font-size: 0.65rem;
        padding: 0.2rem 0.5rem;
    }
}

@media (max-width: 480px) {
    #lfg-feed-container {
        grid-template-columns: 1fr !important;
    }
}

@media (min-width: 1440px) {
    .lfg-objective-text span:last-child {
        font-size: 1.1rem !important;
    }
    .lfg-objective-text span:first-child {
        font-size: 0.75rem !important;
    }
}

.lfg-game-tag {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--theme-bg);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    border: 1px solid var(--theme-border);
    min-width: 160px;
}

.mini-game-thumb {
    width: 24px;
    height: 24px;
    object-fit: cover;
    border-radius: 3px;
}

.lfg-game-tag span {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--theme-text-main);
}

.lfg-item-body {
    flex-grow: 1;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.lfg-item-details {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-grow: 1;
}

.lfg-tag {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lfg-tag.platform { color: var(--theme-accent); min-width: 80px; }
.lfg-tag.objective { color: var(--theme-text-muted); }

@media (max-width: 768px) {
    .lfg-item-body {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }
    .lfg-item-details {
        gap: 0.8rem;
    }
    .lfg-tag.platform {
        min-width: auto;
    }
}

.post-media-container {
    margin-top: 0.8rem;
    width: fit-content;
    max-width: 100%;
    max-height: 400px;
    overflow: hidden;
    display: block;
}

.post-media-img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 6px;
    border: 1px solid var(--theme-border);
    object-fit: contain;
    display: block;
}

@media (max-width: 768px) {
    .post-media-container, .post-media-img {
        max-height: 280px;
    }
}

/* --- Post Viewer Modal (Full Screen) --- */
.full-screen-modal {
    background: rgba(0, 0, 0, 0.95);
    padding: 0;
    align-items: stretch;
    z-index: 50000 !important; /* Above immersive viewer but below global loader */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
}

.pv-container {
    width: 100%;
    height: 100%;
    display: flex;
    position: relative;
    overflow: hidden;
}

.pv-container.pv-centered-layout {
    justify-content: center;
    background: rgba(0,0,0,0.7);
}

.pv-close-btn {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    font-size: 1.2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 11000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.pv-close-btn:hover {
    background: var(--theme-accent);
    color: #000;
    border-color: var(--theme-accent);
}

.pv-content-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
}

.pv-centered-layout .pv-content-wrapper {
    width: 100%;
    max-width: 1000px;
}

@media (min-width: 1921px) {
    .pv-centered-layout .pv-content-wrapper {
        max-width: 1400px;
    }
}

/* Left: Media Section */
.pv-media-section {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    position: relative;
}

.pv-media-content img {
    max-width: 100%;
    max-height: 100vh;
    object-fit: contain;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
}

/* Right: Sidebar Section */
.pv-sidebar-section {
    width: 450px;
    min-width: 350px;
    background: var(--theme-card-bg);
    border-left: 1px solid var(--theme-border);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: -10px 0 30px rgba(0,0,0,0.2);
}

.pv-centered-layout .pv-sidebar-section {
    width: 100%;
    min-width: 0;
    border-right: 1px solid var(--theme-border);
}

.pv-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--theme-border);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pv-scroll-area {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.pv-text-content {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    white-space: pre-wrap;
    color: var(--theme-text-main);
}

.pv-stats-row {
    font-size: 0.75rem;
    color: var(--theme-text-muted);
    font-weight: 700;
    border-bottom: 1px solid var(--theme-border);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1.5rem;
}

.pv-comments-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Comment Item */
.pv-comment {
    display: flex;
    gap: 0.8rem;
}

.pv-comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--theme-avatar-bg);
    border: 1px solid var(--theme-border);
    color: var(--theme-text-muted);
    font-size: 1rem;
}

.pv-comment-body {
    background: var(--theme-bg);
    padding: 0.8rem;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--theme-text-main);
    width: 100%;
}

.pv-comment-meta {
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    color: var(--theme-text-main);
}

.pv-comment-time {
    font-weight: 400;
    color: var(--theme-text-muted);
    margin-left: 0.5rem;
}

/* Footer Input */
.pv-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--theme-border);
    background: var(--theme-card-bg);
}

.pv-input-wrapper {
    display: flex;
    gap: 0.5rem;
}

.pv-input-wrapper input {
    flex-grow: 1;
    background: var(--theme-input-bg);
    border: 1px solid var(--theme-border);
    padding: 0.8rem 1rem;
    border-radius: 25px;
    font-family: var(--font-main);
    color: var(--theme-text-main);
    outline: none;
}

.pv-input-wrapper input:focus {
    border-color: var(--theme-accent);
}

/* Responsive: Text Only or Mobile */
@media (max-width: 900px) {
    .pv-content-wrapper {
        flex-direction: column;
        overflow-y: auto;
    }
    
    .pv-media-section {
        flex: none;
        height: auto;
        min-height: 250px;
        max-height: 50vh;
        background: #000;
    }
    
    .pv-sidebar-section {
        width: 100%;
        min-width: 0;
        height: auto;
        flex-grow: 1;
        overflow: visible; /* Let the wrapper scroll */
    }
    
    .pv-scroll-area {
        overflow: visible;
    }
    
    .pv-close-btn {
        top: 0.5rem;
        left: 0.5rem;
    }
}

/* Centered Layout for Text-Only Posts */
.pv-centered-layout .pv-media-section {
    display: none;
}

.pv-centered-layout .pv-sidebar-section {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    border-left: 1px solid var(--theme-border);
    border-right: 1px solid var(--theme-border);
}

.profile-grid-full {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 1rem;
}

.sub-header {
    display: flex;
    gap: 2rem;
    padding: 1rem 2rem;
    align-items: center;
    background: var(--theme-card-bg);
    border: 1px solid var(--theme-border);
    border-left: 4px solid var(--theme-accent);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    position: sticky;
    top: 60px;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sub-header.lfg-header {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
}

@media (max-width: 1024px) {
    .sub-header {
        top: 110px;
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-top: none;
    }
}

#lfg-broadcast-container, 
.sub-header-separator,
.sub-header-title {
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.2s ease, 
                margin 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 500px;
    opacity: 1;
    overflow: hidden;
}

body.scrolling-down #lfg-broadcast-container,
body.scrolling-down .sub-header-separator,
body.scrolling-down .sub-header-title {
    max-height: 0;
    opacity: 0;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none;
}

@media (max-width: 768px) {
    body.scrolling-down #lfg-broadcast-container {
        max-height: none !important;
        opacity: 1 !important;
        pointer-events: all !important;
        display: block !important;
    }
}

/* Ensure visibility on small mobile regardless of scroll state */
@media (max-width: 768px) {
    body.scrolling-down #lfg-broadcast-container {
        max-height: none !important;
        opacity: 1 !important;
        pointer-events: all !important;
        margin-bottom: 0.5rem !important;
    }
}

body.scrolling-down .sub-header {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    gap: 0;
}

@media (max-width: 768px) {
    body.scrolling-down .sub-header {
        padding-bottom: 0.5rem !important; /* Matches our compact padding */
        gap: 0.5rem !important;
    }
}

.sub-header .form-group {
    margin-bottom: 0 !important;
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

.sub-header .form-group label {
    margin: 0;
    white-space: nowrap;
    text-align: left;
    width: auto;
    font-size: 0.7rem;
    color: var(--theme-text-muted);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.sub-header .pill-input {
    padding: 0.6rem 1.5rem !important;
    font-size: 0.9rem !important;
}

@media (max-width: 768px) {
    .sub-header {
        padding: 0.5rem;
        gap: 0.5rem;
        display: block !important;
        height: auto !important;
    }

    #lfg-broadcast-form {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 0.4rem !important;
        width: 100% !important;
    }

    /* Game, Platform, Objective, and Button - each 50% width */
    #lfg-broadcast-form .form-group:nth-child(1),
    #lfg-broadcast-form .form-group:nth-child(2),
    #lfg-broadcast-form .form-group:nth-child(3),
    #lfg-broadcast-form button[type="submit"] {
        width: calc(50% - 0.2rem) !important;
        flex: none !important;
        margin: 0 !important;
    }

    #lfg-broadcast-form button[type="submit"] {
        height: 36px !important;
        font-size: 0.8rem !important;
        padding: 0 !important;
    }

    /* Duration - 100% width (last child) */
    #lfg-broadcast-form .form-group:nth-child(5) {
        width: 100% !important;
        flex: none !important;
        display: flex !important;
        flex-direction: column !important;
        margin-top: 0.2rem !important;
    }

    .sub-header .form-group label {
        display: none !important;
    }

    /* Show label only for Duration */
    #lfg-broadcast-form .form-group:nth-child(5) label {
        display: block !important;
        font-size: 0.6rem !important;
        text-align: left !important;
        margin-bottom: 2px !important;
    }

    .slider-with-val {
        display: flex !important;
        align-items: center !important;
        gap: 0.75rem !important;
        width: 100% !important;
    }

    #lfg-duration-val-formatted {
        font-size: 0.8rem !important;
        font-weight: 800 !important;
        color: var(--theme-accent) !important;
        min-width: 40px !important;
        text-align: right !important;
    }

    .sub-header .pill-input {
        padding: 0.3rem 0.6rem !important;
        font-size: 0.8rem !important;
        height: 36px !important;
        border-radius: 6px !important;
        width: 100% !important;
    }

    #lfg-duration {
        height: 24px !important;
        margin: 0 !important;
    }

    .sub-header-separator {
        display: none !important;
    }

    .sub-header-filters {
        flex-direction: row !important;
        justify-content: space-between !important;
        margin-top: 0.5rem !important;
        width: 100% !important;
    }

    .sub-header-title {
        display: none !important;
    }

    .sub-header.community-header {
        display: grid !important;
        grid-template-columns: 1fr 120px !important;
        gap: 0.4rem !important;
        padding: 0.5rem !important;
    }

    .community-header .form-group {
        margin: 0 !important;
        width: 100% !important;
    }

    .community-header .form-group label {
        display: none !important;
    }

    .community-header .pill-input {
        padding: 0.3rem 0.6rem !important;
        font-size: 0.8rem !important;
        height: 36px !important;
        border-radius: 6px !important;
    }
}

.dashboard-main-area {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

@media (max-width: 1024px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-card.sidebar-card {
        position: static;
    }

    .dashboard-main-area {
        display: grid !important;
        grid-template-columns: 1fr !important;
        width: 100% !important;
    }
}

/* Fix for medium screens (tablets) when sidebars are docked */
@media (min-width: 1025px) and (max-width: 1400px) {
    body.has-docked-sidebar .profile-grid {
        grid-template-columns: 1fr;
    }
    body.has-docked-sidebar .profile-card.sidebar-card {
        position: static;
    }
    body.has-docked-sidebar .dashboard-main-area {
        grid-template-columns: 1fr;
    }
}

/* Platform Selector Styles */
.platform-grid-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.platform-grid, .game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1rem;
    padding: 1rem 0;
}

.grid-item, .game-card-item {
    background: var(--theme-input-bg);
    border: 1px solid var(--theme-border);
    border-radius: 8px;
    padding: 1.2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 0.8rem;
    position: relative;
}

.grid-item:hover, .game-card-item:hover {
    border-color: var(--theme-accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.grid-item.linked, .game-card-item.linked {
    border-color: var(--theme-accent);
    border-width: 2px;
}

.grid-item-icon {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.grid-item-label {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--theme-text-main);
    letter-spacing: 0.5px;
}

.grid-item-status {
    font-size: 0.6rem;
    font-weight: 800;
    color: var(--theme-accent);
    text-transform: uppercase;
}

/* Game Card Item specific */
.game-card-item {
    height: 140px;
    padding: 0;
    overflow: hidden;
    position: relative;
    background: var(--theme-input-bg);
}

.game-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.3s ease;
}

.game-card-item:hover .game-card-img {
    transform: scale(1.05);
}

.game-card-overlay {
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent 70%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1rem;
    text-align: left;
    position: relative;
    z-index: 2;
}

.game-card-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.game-card-status {
    font-size: 0.6rem;
    font-weight: 800;
    color: var(--theme-accent);
    text-transform: uppercase;
    margin-bottom: 0.3rem;
    letter-spacing: 1.5px;
}

.platform-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    background: var(--theme-card-bg);
    border: 1px solid var(--theme-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 0.8rem;
}

.platform-tile svg {
    opacity: 0.7;
    transition: transform 0.2s;
}

.platform-tile img {
    width: 32px;
    height: 32px;
    opacity: 0.8;
    transition: transform 0.2s;
}

.platform-tile span {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--theme-text-muted);
}

.platform-tile:hover {
    border-color: var(--theme-accent);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.platform-tile:hover img {
    opacity: 1;
    transform: translateY(-2px);
}

.platform-tile:hover span {
    color: #000;
}

/* Specific platform hover colors */
.platform-tile[data-platform="steam"]:hover svg { color: #171a21; }
.platform-tile[data-platform="xbox"]:hover svg { color: #107c10; }
.platform-tile[data-platform="psn"]:hover svg { color: #003087; }
.platform-tile[data-platform="epic"]:hover svg { color: #000000; }

@media (max-width: 768px) {
    /* Base Page */
    .profile-page {
        padding: 1.5rem 1rem;
    }

    /* Header */
    .landing-header {
        padding: 1rem;
        display: flex;
        justify-content: center;
        position: relative;
        width: 100%;
    }

    .menu-toggle {
        display: block;
        position: relative; /* Changed from absolute */
        right: auto; /* Reset */
        top: auto; /* Reset */
        transform: none; /* Reset */
    }

    /* Sections */
    .hero-section {
        padding: 4rem 1rem 2rem;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .games-section {
        padding: 3rem 0;
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 0 auto;
    }

    .section-title {
        width: 100%;
        text-align: center;
        margin-bottom: 2rem;
    }

    .games-grid {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
        margin: 0 auto;
    }

    /* Components */
    .hero-title {
        font-size: 2.8rem;
        gap: 0;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        padding: 0 1.5rem;
        margin-bottom: 2rem;
        max-width: 100%;
    }

    .prefix-wrapper {
        justify-content: center;
        width: 100%;
        margin-bottom: -0.5rem;
    }

    .game-card {
        width: 90%;
        max-width: 320px;
        margin: 0 auto;
    }

    /* Navigation */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background: var(--theme-card-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1050;
        border-left: 1px solid var(--theme-border);
        box-shadow: -10px 0 30px rgba(0,0,0,0.05);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-menu {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .auth-wrapper {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid var(--theme-border);
        padding-top: 1.5rem;
        width: 100%;
        justify-content: center;
    }

    /* Profiles & Modals */
    .profile-header-main {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 2rem;
    }

    .profile-header-main h1 {
        font-size: 1.8rem;
    }

    .profile-grid {
        gap: 1.5rem;
    }

    .dashboard-main-area {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
        width: 100% !important;
    }

    .platform-grid, .game-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.8rem !important;
    }

    .grid-item {
        padding: 1rem 0.5rem;
    }

    .game-card-item {
        height: 110px;
    }

    .info-row {
        flex-direction: row;
        justify-content: space-between;
    }

    .modal-content {
        padding: 1.5rem;
        width: 100%;
        max-width: none;
        margin: 0;
        border-radius: 8px;
    }

    .input-view-header {
        padding: 1rem;
        gap: 1rem;
        background: var(--theme-bg);
    }

    .input-view-icon {
        width: 48px;
        height: 48px;
    }

    .input-view-header h3 {
        font-size: 1.2rem;
    }
}


/* --- Social Hub Overhaul Styles --- */

/* Landing View Updates */
.landing-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.btn.large {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    min-width: 160px;
}

.btn.secondary {
    border-color: var(--theme-text-muted);
    color: var(--theme-text-muted);
}

.btn.secondary:hover {
    border-color: var(--theme-text-main);
    color: var(--theme-text-main);
}

/* Hub Layout */
.hub-grid {
    display: grid;
    grid-template-columns: 1fr 280px; /* Narrower sidebar for more feed space */
    gap: 2.5rem;
}

@media (max-width: 900px) {
    .hub-grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar-column {
        order: -1; /* Show LFG status on top on mobile? Maybe not, keep feed first. */
    }
}

/* Feed Column */
.create-post-card {
    background: var(--theme-card-bg);
    border: 1px solid var(--theme-border);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.cp-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.user-avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--theme-border);
}

.user-avatar-small,
.post-avatar,
.pv-comment-avatar,
.member-avatar-tiny,
.member-avatar-circle {
    background: var(--theme-avatar-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--theme-accent);
}

.user-avatar-small i,
.post-avatar i,
.pv-comment-avatar i,
.member-avatar-tiny i,
.member-avatar-circle i {
    color: var(--theme-accent);
}

.cp-username {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--theme-text-main);
}

.cp-input {
    width: 100%;
    background: var(--theme-input-bg);
    border: 1px solid var(--theme-border);
    border-radius: 8px;
    padding: 1rem;
    font-family: var(--font-main);
    color: var(--theme-text-main);
    font-size: 1rem;
    resize: vertical;
    min-height: 80px;
    margin-bottom: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.cp-input:focus {
    border-color: var(--theme-accent);
    background: var(--theme-input-bg);
}

.cp-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Feed Filters */
.feed-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--theme-border);
    padding-bottom: 0.5rem;
}

.feed-filter {
    background: none;
    border: none;
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--theme-text-muted);
    cursor: pointer;
    padding: 0.5rem 1rem;
    position: relative;
    transition: color 0.2s;
}

.feed-filter:hover {
    color: var(--theme-text-main);
}

.feed-filter.active {
    color: var(--theme-accent);
}

.feed-filter.active::after {
    content: '';
    position: absolute;
    bottom: -0.6rem; /* Align with border-bottom */
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--theme-accent);
}

/* Post Card */
.social-post {
    background: var(--theme-card-bg);
    border-top: 1px solid var(--theme-border);
    border-bottom: 1px solid var(--theme-border);
    border-left: none;
    border-right: none;
    border-radius: 0;
    padding: 0.75rem 1rem;
    margin-bottom: 0.25rem;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.social-post:hover {
    border-color: #ced4da;
}

.post-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.post-header-avatar {
    width: 40px !important;
    height: 40px !important;
    font-size: 1.1rem !important;
}

.post-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.post-meta {
    display: flex;
    flex-direction: column;
}

.post-author {
    font-weight: 700;
    color: var(--theme-text-main);
}

.post-author:hover, .comment-author:hover {
    text-decoration: underline !important;
    color: var(--theme-accent) !important;
}

.post-time {
    font-size: 0.75rem;
    color: var(--theme-text-muted);
}

.post-content {
    font-size: 1rem;
    color: var(--theme-text-main);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    white-space: pre-wrap;
}

.post-actions {
    display: flex;
    gap: 1.5rem;
    border-top: 1px solid #f0f0f0;
    padding-top: 1rem;
}

.action-btn {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--theme-text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: color 0.2s;
    font-family: var(--font-main);
}

.action-btn:hover {
    color: var(--theme-accent);
}

.action-btn.liked {
    color: #ef4444;
}

/* Sidebar Styles */
.sidebar-card {
    background: var(--theme-card-bg);
    border: 1px solid var(--theme-border);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.sidebar-card h3 {
    margin-top: 0;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--theme-text-muted);
    border-bottom: 1px solid var(--theme-border);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.status-placeholder {
    text-align: center;
    color: var(--theme-text-muted);
    padding: 1rem;
    font-style: italic;
}

.members-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.member-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.member-avatar-tiny {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.member-name {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Utilities */
.mb-2 { margin-bottom: 0.5rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-4 { margin-top: 1.5rem !important; }



/* --- Scaling & Dense Layout Refinements --- */
:root {
    --sidebar-width: 300px;
}

/* Dense Typography & Spacing */
.hero-title { font-size: 3.5rem; } /* Scaled down for density */
.create-post-card, .social-post, .sidebar-card { 
    padding: 0.75rem 1rem; 
    margin-bottom: 0.25rem; 
}
.post-header { margin-bottom: 0.5rem; }
.post-content { font-size: 0.95rem; margin-bottom: 0.5rem; }

/* Sticky Header Refinement */
.landing-header {
    height: 60px;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links { display: none; } /* Hide horizontal nav, moved to sidebar */

/* VAST Sidebar Menu */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 34999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.vast-sidebar {
    position: fixed;
    top: 0;
    right: calc(var(--sidebar-width) * -1);
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--theme-card-bg);
    z-index: 35000;
    box-shadow: -5px 0 25px rgba(0,0,0,0.1);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding: 1rem;
    overflow-y: auto;
    visibility: hidden; /* Hidden by default, shown when active or docked */
}

.vast-sidebar.active, .vast-sidebar.docked {
    visibility: visible;
}

.vast-sidebar.right {
    right: calc(var(--sidebar-width) * -1);
    left: auto;
}

.vast-sidebar.active {
    right: 0;
}

.sidebar-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--theme-border);
}

.sidebar-section-title {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--theme-text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 1rem 0 0.4rem;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem 0.8rem;
    color: var(--theme-text-main);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 6px;
    transition: all 0.2s;
    text-transform: uppercase;
}

.sidebar-nav-item:hover {
    background: var(--theme-btn-secondary-bg);
    color: var(--theme-accent);
}

.sidebar-nav-item.active {
    background: var(--theme-accent);
    color: #000 !important;
}

#nav-admin-dashboard {
    color: #FBBF24;
    border: 1px solid #FBBF24;
    margin-top: 1rem;
    justify-content: center;
}

#nav-admin-dashboard.active {
    background: #FBBF24 !important;
    color: #000 !important;
}

/* Small Screen Optimizations */
@media (max-width: 600px) {
    :root { --sidebar-width: 85%; }
    .hero-title { font-size: 2.5rem; }
    .hub-container { padding-left: 0 !important; padding-right: 0 !important; }
}



/* Create Post Trigger */
.cp-trigger-input {
    flex-grow: 1;
    background: var(--theme-btn-secondary-bg);
    border: 1px solid var(--theme-border);
    border-radius: 25px;
    padding: 0.8rem 1.5rem;
    color: var(--theme-text-muted);
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s;
}

.cp-trigger-input:hover {
    background: var(--theme-bg);
}



/* --- Docked Sidebar (Desktop) --- */
.vast-sidebar.docked {
    left: 0;
    right: auto;
    top: 60px; /* Below header */
    height: calc(100vh - 60px);
    width: 260px;
    box-shadow: none;
    border-right: 1px solid var(--theme-border);
    visibility: visible;
    transform: none; /* Ensure no slide effect */
    z-index: 1000;
}

.vast-sidebar.right.docked {
    left: auto;
    right: 0;
    border-right: none;
    border-left: 1px solid var(--theme-border);
}

/* Adjust body/main content when sidebars are docked AND user is logged in */
body.logged-in.has-docked-sidebar main {
    margin-left: 260px !important;
    margin-right: 260px !important;
    width: calc(100% - 520px) !important;
    max-width: 100% !important;
}

/* Hide Header and Sidebar when logged out on Desktop */
@media (min-width: 1025px) {
    body.logged-out .landing-header,
    body.logged-out .vast-sidebar,
    body.logged-out .sidebar-overlay {
        display: none !important;
    }
    
    /* Ensure content is centered when logged out */
    body.logged-out main,
    body.logged-out .hero-section {
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: 100% !important;
        width: 100%;
    }
}

/* Hide menu title and close btn on desktop sidebar, but keep the header container for Auth */
.vast-sidebar.docked .sidebar-header .brand-logo,
.vast-sidebar.docked .sidebar-header #close-sidebar {
    display: none;
}

.vast-sidebar.docked .sidebar-header {
    border-bottom: 1px solid var(--theme-border);
    margin-bottom: 1rem;
    padding-bottom: 1rem;
}

/* Header Adjustments for Desktop */
body.has-docked-sidebar .landing-header {
    z-index: 2001; /* Above page content but below header group stacking context if needed */
    left: 0;
    right: 0;
    width: 100%;
    padding-left: 2rem; 
    padding-right: 2rem;
    background: var(--theme-bg);
    border-bottom: 1px solid var(--theme-border);
}



/* Sidebar Auth Styling */
.vast-sidebar .auth-wrapper {
    margin-top: 0.5rem;
    display: flex;
    justify-content: flex-start;
}

/* Hide Left Sidebar Auth on Big Screen (shifted to right sidebar) */
@media (min-width: 1025px) {
    #vast-sidebar #nav-auth {
        display: none !important;
    }
}

.vast-sidebar .user-display {
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    background: var(--theme-bg);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--theme-border);
}

.vast-sidebar .login-trigger {
    width: 100%;
    justify-content: center;
    padding: 0.8rem;
}



/* Header Prefix Color */
#header-title-prefix {
    color: var(--theme-accent);
}



/* Header Logo Scaling (to match Hero structure but at header size) */
.header-logo {
    gap: 0.2rem !important;
}

.header-logo .prefix-wrapper {
    justify-content: flex-start;
}

.header-logo .title-prefix {
    font-size: 1.4rem; /* Match old brand-logo size */
}

.header-logo .title-suffix {
    font-size: 1.4rem;
    font-weight: 300;
}



/* --- UNIVERSAL BRAND OBJECT: .gt-title-brand --- */
/* This encapsulates the structure, weights, and logic of the GT title at any scale */

.gt-title-brand {
    display: flex;
    align-items: baseline; /* Return to baseline for natural text alignment */
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0.1em;
    text-decoration: none;
    line-height: normal; /* Use normal for better cross-platform consistency */
    font-family: var(--font-main);
    white-space: nowrap;
}

.gt-title-brand .prefix-wrapper {
    display: inline-block;
    vertical-align: baseline;
}

.gt-title-brand .title-prefix {
    color: var(--theme-accent);
    font-weight: 800;
    display: inline-block;
    vertical-align: baseline;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: center center;
}

.gt-title-brand .title-suffix {
    color: var(--theme-text-main);
    font-weight: 300;
    display: inline-block;
    vertical-align: baseline;
}

/* Scaling Modifiers */
.gt-title-brand.hero { font-size: 5rem; gap: 0.5rem; }
.gt-title-brand.header { font-size: 1.4rem; gap: 0.2rem; }

/* Mobile scaling to prevent overflow */
@media (max-width: 600px) {
    .gt-title-brand.hero { font-size: 2.8rem; gap: 0.3rem; }
    .gt-title-brand.header { font-size: 1.2rem; gap: 0.15rem; }
}

/* Transition Logic Classes */
.gt-title-brand .title-prefix.cycle-out {
    transform: translateY(-1em) rotateX(90deg);
    opacity: 0;
}

.gt-title-brand .title-prefix.cycle-in-start {
    transform: translateY(1em) rotateX(-90deg);
    opacity: 0;
}

/* Sticky Footer Logic */
body > main, 
body > section,
.profile-page,
.hero-section,
.hub-container {
    flex-grow: 1;
}

body > main,
body > section,
.profile-page,
.hero-section,
.hub-container {
    padding-top: 60px; /* Base offset for fixed header */
}

/* Offset for Mobile Tab Bar when logged in */
@media (max-width: 1024px) {
    body.logged-in > main,
    body.logged-in > section {
        padding-top: 110px !important; /* header (60) + tab bar (50) */
    }

    body.logged-in .hub-container#hub-view,
    body.logged-in .hero-section {
        padding-top: 0 !important;
    }

    /* Full-width container on mobile */
    .hub-container,
    .profile-page {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .profile-grid-full {
        gap: 0 !important; /* Remove gap so sticky item is snug */
    }
}

/* --- Unified Sticky Headers (Global) --- */
.feed-header-group {
    position: sticky !important;
    z-index: 1000;
    background: var(--theme-card-bg);
    padding: 0.75rem 1rem 0.5rem !important;
    border-bottom: 1px solid var(--theme-border) !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    width: 100% !important; 
    box-sizing: border-box;
    transition: padding 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Reset borders/margins for flush look */
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
}

/* Desktop Offset */
@media (min-width: 1025px) {
    .feed-header-group {
        top: 60px !important; /* Below desktop header */
    }
}

/* Mobile Offset */
@media (max-width: 1024px) {
    .feed-header-group {
        top: 110px !important; /* Below mobile header + tabs */
    }
}

/* --- Scroll Animation (Global) --- */
.feed-header-group {
    padding-top: 0.5rem !important;
    padding-bottom: 0 !important; /* Filters have their own padding now */
    margin-top: 0 !important;
}

.status-broadcast-bar {
    margin-bottom: 0.5rem;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.2s ease, 
                margin-bottom 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 80px;
    opacity: 1;
    overflow: hidden;
    will-change: max-height, opacity, transform;
}

/* Hide status bar on scroll down */
body.scrolling-down .status-broadcast-bar {
    max-height: 0;
    opacity: 0;
    margin-bottom: 0;
    transform: translateY(-5px);
}

/* Collapse container padding on scroll down */
body.scrolling-down .feed-header-group {
    padding-top: 0 !important;
}

.feed-filters {
    margin-bottom: 0 !important;
    padding: 0.5rem 1rem !important;
    border-bottom: none !important;
    display: flex !important;
}

.feed-filter.active::after {
    bottom: 0 !important;
}

/* --- Mobile Tab Bar (Docked to Header) --- */
.mobile-tab-bar {
    display: none !important; /* Hidden by default on Desktop */
}

@media (max-width: 1024px) {
    .mobile-tab-bar {
        background: var(--theme-card-bg);
        border-bottom: 1px solid var(--theme-border);
        display: flex !important; /* Shown on Mobile */
        justify-content: space-between;
        align-items: center;
        height: 50px;
        width: 100%;
        z-index: 2000;
    }
}

.tab-item {
    display: flex;
    flex-direction: row; 
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--theme-text-muted);
    font-size: 0.65rem; 
    font-weight: 800;
    text-transform: uppercase;
    gap: 4px; 
    flex: 1; /* Share space equally */
    min-width: 0; /* Allow shrinking */
    height: 100%;
    transition: all 0.2s;
    position: relative;
    white-space: nowrap;
    padding: 0 4px;
}

.tab-item i {
    font-size: 1rem;
}

.tab-item.active {
    color: var(--theme-accent);
}

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--theme-accent);
}

.plus-item {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 5;
}

.plus-icon {
    background: var(--theme-accent);
    color: black !important;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border: 2px solid var(--theme-card-bg);
    transition: transform 0.2s, background 0.2s;
}

.plus-item:active .plus-icon {
    transform: scale(0.9);
}

.plus-icon i {
    font-size: 1.6rem !important;
    line-height: 1;
}

.plus-item.active::after {
    display: none !important;
}

/* Mobile tab bar is always visible — Loadouts and other pages are public */

/* --- Logged Out Mobile Optimization --- */
@media (max-width: 768px) {
    body.logged-out .hero-section {
        padding: 3rem 1rem 2rem;
        min-height: auto;
    }

    body.logged-out .gt-title-brand.hero {
        font-size: 3rem;
    }

    body.logged-out .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    body.logged-out .landing-actions {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    body.logged-out .btn.large {
        width: 100%;
        padding: 0.8rem;
    }

    body.logged-out .landing-explore {
        margin-top: 2.5rem;
    }

    body.logged-out .games-grid {
        gap: 1.5rem;
    }

    body.logged-out .game-card {
        width: 100%;
        max-width: 320px;
        min-height: 320px !important;
    }

    body.logged-out .game-image-container {
        height: 120px !important;
    }
}

/* Ensure Header/Sidebar stay hidden on mobile logged-out too */
body.logged-out .landing-header,
body.logged-out .vast-sidebar,
body.logged-out .sidebar-overlay {
    display: none !important;
}


/* Immersive Picture Viewer (Global) */
.immersive-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 40000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.immersive-viewer.hidden {
    display: none !important;
}

.viewer-content {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.viewer-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.viewer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: none;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.viewer-overlay.hidden {
    opacity: 0 !important;
    pointer-events: none !important;
}

.viewer-overlay > * {
    pointer-events: auto;
}

.viewer-header {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent);
}

.viewer-footer {
    padding: 1.5rem 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.viewer-post-text {
    font-size: 0.9rem;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.viewer-actions {
    display: flex;
    gap: 1.5rem;
}

.viewer-action-btn {
    background: none;
    border: none;
    color: var(--theme-accent);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}

.viewer-action-btn i {
    font-size: 1.4rem;
}

/* Immersive Mobile Tweaks */
@media (max-width: 768px) {
    .immersive-viewer {
        background: #000;
    }
}

/* Comments Mode Popup Styling */
.modal.comments-mode .pv-container {
    align-items: center; /* Center vertically */
    justify-content: center;
}

@media (max-width: 900px) {
    .modal.comments-mode .pv-content-wrapper {
        padding: 4rem 1rem 2rem 1rem; /* Top padding for close button space */
        height: 100%;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        pointer-events: none; /* Let clicks pass through padding */
    }

    .modal.comments-mode .pv-sidebar-section {
        max-height: 80vh;
        width: 100%;
        max-width: 500px;
        border-radius: 12px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.5);
        display: flex;
        flex-direction: column;
        pointer-events: auto; /* Re-enable clicks */
        overflow: hidden;
    }

    .modal.comments-mode .pv-scroll-area {
        overflow-y: auto;
        flex-grow: 1;
        background: var(--theme-card-bg);
    }
}

/* Theme Specific Decorative Effects */
.cyber-theme .gt-title-brand .title-prefix,
.cyber-theme .gt-title-brand .title-suffix {
    text-shadow: 0 0 10px var(--theme-accent);
}

.cyber-theme .btn.primary {
    box-shadow: 0 0 15px var(--theme-accent);
}

.retro-theme body::after {
    content: " ";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 99999;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}

/* Mentions Autocomplete */
.mention-suggestions {
    position: absolute;
    background: var(--theme-card-bg);
    border: 1px solid var(--theme-border);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 10000;
    max-height: 200px;
    overflow-y: auto;
    width: 200px;
    display: none;
}

.mention-item {
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--theme-text-main);
}

.mention-item:hover, .mention-item.active {
    background: var(--theme-accent);
    color: #000;
}

.mention-item img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.mention-item .mention-avatar-placeholder {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--theme-avatar-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

/* --- Fresh Settings UI (Scoped) --- */
.settings-hub {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
}

.settings-hub-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.settings-hub-title {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

.settings-menu-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.settings-btn {
    background: var(--theme-card-bg);
    border: 1px solid var(--theme-border);
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    width: 100%;
    color: var(--theme-text-main);
    text-decoration: none;
}

.settings-btn:hover {
    border-color: var(--theme-accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.settings-btn-icon {
    width: 44px;
    height: 44px;
    background: var(--theme-bg);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--theme-accent);
    flex-shrink: 0;
}

.settings-btn-content {
    flex-grow: 1;
}

.settings-btn-title {
    display: block;
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    margin-bottom: 0.2rem;
}

.settings-btn-desc {
    display: block;
    font-size: 0.75rem;
    color: var(--theme-text-muted);
    line-height: 1.3;
}

.settings-btn-arrow {
    opacity: 0.3;
    font-size: 1.2rem;
}

/* Panes */
.settings-pane {
    background: var(--theme-card-bg);
    border: 1px solid var(--theme-border);
    border-radius: 16px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.settings-pane-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--theme-border);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.settings-pane-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.settings-pane-body {
    padding: 1.5rem;
}

.settings-back-link {
    background: none;
    border: none;
    color: var(--theme-text-main);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .settings-menu-list {
        grid-template-columns: 1fr;
    }
    
    .settings-hub-title {
        font-size: 1.25rem;
    }

    .settings-btn {
        padding: 1.25rem;
    }
}

/* Switch Toggle CSS */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--theme-border);
  transition: .4s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--theme-accent);
}

input:focus + .slider {
  box-shadow: 0 0 1px var(--theme-accent);
}

input:checked + .slider:before {
  transform: translateX(20px);
}

/* --- About Page Overhaul (Storybook Layout) --- */
.about-narrative-container {
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 2rem;
    line-height: 1.8;
}

.narrative-section {
    margin-bottom: 6rem;
    animation: fadeIn 0.8s ease-out;
}

.narrative-section h2 {
    font-size: 3rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -2px;
    margin-bottom: 2.5rem;
    color: var(--theme-accent);
    border-left: 8px solid var(--theme-accent);
    padding-left: 1.5rem;
    line-height: 1;
}

.narrative-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--theme-text-main);
    line-height: 1.8;
}

.narrative-section b, .narrative-section strong {
    color: var(--theme-accent);
    font-weight: 800;
}

/* Support CTA Refinement */
.support-cta {
    text-align: center;
    background: var(--theme-card-bg);
    padding: 5rem 2rem;
    border-radius: 24px;
    border: 1px solid var(--theme-border);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    margin-top: 6rem;
    position: relative;
    overflow: hidden;
}

.support-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--theme-accent);
}

.support-cta .tiny-text {
    margin-top: 2rem;
    opacity: 0.6;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.support-btn {
    font-size: 1.2rem !important;
    padding: 1rem 3rem !important;
    border-radius: 50px !important;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Tweaks */
@media (max-width: 768px) {
    .narrative-section h2 { font-size: 1.8rem; }
    .about-narrative-container { margin: 2rem auto; padding: 0 1.5rem; }
    .support-cta { padding: 2rem 1rem; }
}

/* Mobile Optimization for About Page Overhaul */
@media (max-width: 768px) {
    .narrative-section h2 {
        font-size: 2.2rem;
        letter-spacing: -1px;
        padding-left: 1rem;
        border-left-width: 6px;
    }

    .narrative-section p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .about-narrative-container {
        margin: 2rem auto;
        padding: 0 1.2rem;
    }

    .transparency-grid {
        gap: 1rem;
    }

    .transparency-item {
        padding: 1.5rem;
    }

    .support-cta {
        padding: 3rem 1.5rem;
        margin-top: 4rem;
    }
}

/* PayPal Donation Box Styling */
.donation-header {
    margin-bottom: 2rem;
}

.donation-header h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--theme-accent);
}

.donation-header p {
    font-size: 0.9rem !important;
    opacity: 0.7;
    margin: 0 !important;
}

#paypal-container-CKTWEK76ADX2A {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* --- Tactical Narrative Aesthetic (About Overhaul) --- */
.about-narrative-container {
    max-width: 850px;
    margin: 5rem auto;
    padding: 0 2rem;
    font-family: var(--font-main);
}

.narrative-section {
    margin-bottom: 8rem;
    border-left: 2px solid rgba(251, 191, 36, 0.1);
    padding-left: 2.5rem;
    position: relative;
}

.narrative-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: -2px;
    width: 2px;
    height: 40px;
    background: var(--theme-accent);
}

.narrative-section h2 {
    font-size: 3.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -2px;
    margin-bottom: 2rem;
    color: var(--theme-text-main);
    line-height: 0.9;
}

.narrative-section p {
    font-size: 1.3rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: var(--theme-text-main);
    opacity: 0.85;
    font-weight: 400;
}

.narrative-section strong, .narrative-section b {
    color: var(--theme-accent);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Tactical Briefing Grid */
.transparency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin: 4rem 0;
}

.transparency-item {
    background: rgba(0,0,0,0.02);
    border: 1px solid var(--theme-border);
    padding: 2.5rem 2rem;
    border-radius: 4px; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.transparency-item:hover {
    border-color: var(--theme-accent);
    background: rgba(251, 191, 36, 0.02);
    transform: scale(1.02);
}

.transparency-item i {
    font-size: 2.5rem;
    color: var(--theme-accent);
    margin-bottom: 1.5rem;
    display: block;
}

.transparency-item h3 {
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
}

.transparency-item p {
    font-size: 0.9rem !important;
    line-height: 1.6;
    opacity: 0.7;
}

/* PayPal GT Theme */
.support-cta {
    background: var(--theme-card-bg);
    border: 1px solid var(--theme-border);
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
}

.donation-header h3 {
    font-size: 2.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
    color: var(--theme-text-main);
}

.donation-box {
    background: none;
    border: none;
    min-height: auto;
    margin: 3rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.support-btn-gt {
    background: var(--theme-accent) !important;
    color: #000 !important;
    border: none !important;
    font-family: var(--font-main) !important;
    font-weight: 900 !important;
    font-size: 1.2rem !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    padding: 1.2rem 4rem !important;
    height: auto !important;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 4px 4px 0 #000;
}

.support-btn-gt:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 #000;
    filter: brightness(1.1);
}

.paypal-cards-img {
    filter: grayscale(1) opacity(0.6);
    margin: 1rem 0;
}

.paypal-powered-by {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.7rem !important;
}

/* Mobile Tactical Refresh */
@media (max-width: 768px) {
    .narrative-section h2 { font-size: 2.5rem; }
    .narrative-section { padding-left: 1.5rem; }
    .about-narrative-container { margin: 3rem auto; }
    .support-btn-gt { padding: 1rem 2rem !important; width: 100%; }
}


/* High-Density Mobile Refinement for About Page */
@media (max-width: 600px) {
    .about-narrative-container {
        margin: 2rem auto;
        padding: 0 1rem;
    }

    .narrative-section {
        margin-bottom: 4rem;
        padding-left: 1.2rem;
    }

    .narrative-section h2 {
        font-size: 2.2rem;
        margin-bottom: 1.2rem;
    }

    .narrative-section p {
        font-size: 1.1rem;
        line-height: 1.6;
        margin-bottom: 1.2rem;
    }

    .transparency-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 2rem 0;
    }

    .transparency-item {
        padding: 1.5rem;
        display: flex;
        align-items: center;
        text-align: left;
        gap: 1rem;
    }

    .transparency-item i {
        font-size: 1.8rem;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .transparency-item h3 {
        margin-bottom: 0.2rem;
        font-size: 0.9rem;
    }

    .transparency-item p {
        font-size: 0.8rem !important;
    }

    .support-cta {
        padding: 3rem 1rem;
        margin-top: 3rem;
    }

    .donation-header h3 {
        font-size: 1.8rem;
    }

    .support-btn-gt {
        font-size: 1rem !important;
        padding: 1rem !important;
        width: 100%;
        box-shadow: 3px 3px 0 #000;
    }
}

/* Sidebar Game Card Styling */
.sidebar-game-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--theme-card-bg);
    border: 1px solid var(--theme-border);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.sidebar-game-card:hover {
    transform: translateY(-2px);
    border-color: var(--theme-accent);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.game-card-img-wrapper {
    width: 100%;
    height: 100px;
    overflow: hidden;
}

.game-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.sidebar-game-card:hover .game-card-img-wrapper img {
    transform: scale(1.1);
}

.game-card-info {
    padding: 0.8rem;
}

.game-card-info h3 {
    font-size: 0.9rem;
    font-weight: 800;
    margin: 0 0 0.2rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.game-card-info p {
    font-size: 0.7rem !important;
    opacity: 0.6;
    margin: 0 !important;
    line-height: 1.2;
}
/* Flashy Review Post Redesign - GamerTraits Home */
.review-post {
    background: linear-gradient(145deg, rgba(251, 191, 36, 0.08), rgba(0,0,0,0.2)) !important;
    border: 1px solid rgba(251, 191, 36, 0.2) !important;
    border-left: 5px solid var(--theme-accent) !important;
    padding: 0 !important;
    overflow: hidden;
    margin-bottom: 1.5rem !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.review-header-flashy {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: rgba(0,0,0,0.4);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.review-header-flashy .header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.review-header-flashy .user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.review-header-flashy .reviewer-name {
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
}
.review-header-flashy .transmission-arrow {
    color: var(--theme-accent);
    opacity: 0.6;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
}
.review-header-flashy .target-info {
    display: flex;
    flex-direction: column;
}
.review-header-flashy .intel-label {
    font-size: 0.6rem;
    letter-spacing: 1.5px;
    opacity: 0.5;
    line-height: 1;
    font-weight: 900;
}
.review-header-flashy .target-player-name {
    font-weight: 800;
    color: var(--theme-accent);
    text-decoration: none;
    font-size: 1.15rem;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}
.review-header-flashy .game-badge {
    font-size: 0.65rem;
    font-weight: 900;
    padding: 3px 10px;
    background: var(--theme-accent);
    color: #000;
    border-radius: 2px;
    letter-spacing: 1.5px;
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.4);
}
.review-body-flashy {
    padding: 1.25rem;
}
.review-rating-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    background: rgba(255,255,255,0.03);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    width: fit-content;
    border: 1px solid rgba(255,255,255,0.05);
}
.review-rating-bar .rating-value {
    font-weight: 900;
    font-family: 'Barlow', sans-serif;
    color: var(--theme-accent);
    font-size: 1.1rem;
}
.review-content-text {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--theme-text-main);
    margin-bottom: 1.5rem;
    font-style: italic;
    position: relative;
    padding-left: 0.5rem;
}
.review-combat-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Barlow', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    letter-spacing: 0.5px;
}
.review-combat-row .combat-label { opacity: 0.4; font-size: 0.65rem; }
.review-combat-row .combat-value { color: var(--theme-accent); letter-spacing: 1px; }
.review-combat-row .combat-sep { opacity: 0.2; margin: 0 0.25rem; }
.review-tags-row {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}
.intel-tag {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 10px;
    border: 1px solid var(--tag-color);
    color: var(--tag-color);
    background: rgba(0,0,0,0.3);
    border-radius: 2px;
    letter-spacing: 1px;
    transition: all 0.2s ease;
}
.review-footer-flashy {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1.25rem;
    background: rgba(0,0,0,0.3);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.review-footer-flashy .footer-timestamp { opacity: 0.5; }
.review-footer-flashy .status-verified { color: #10b981; text-shadow: 0 0 10px rgba(5, 255, 116, 0.2); }
.review-footer-flashy .status-critical { color: #ef4444; text-shadow: 0 0 10px rgba(255, 0, 0, 0.2); }


/* Compact Flashy Review Post */
.review-post {
    max-width: 600px;
    margin: 0 auto 1.25rem !important;
}
.review-header-flashy {
    padding: 0.6rem 1rem !important;
}
.review-header-flashy .target-player-name {
    font-size: 1rem !important;
}
.review-header-flashy .reviewer-name {
    font-size: 0.85rem !important;
}
.review-body-flashy {
    padding: 1rem !important;
}
.review-rating-bar {
    padding: 0.25rem 0.75rem !important;
    margin-bottom: 0.75rem !important;
}
.review-rating-bar .rating-value {
    font-size: 0.9rem !important;
}
.review-content-text {
    font-size: 0.95rem !important;
    margin-bottom: 1rem !important;
}
.review-combat-row {
    margin-top: 0.75rem !important;
    padding-top: 0.5rem !important;
    font-size: 0.65rem !important;
}
.review-footer-flashy {
    padding: 0.5rem 1rem !important;
    font-size: 0.6rem !important;
}


/* ULTRA-COMPACT REDESIGN */
.review-post.compact {
    padding: 0 !important;
    background: linear-gradient(145deg, rgba(var(--theme-accent-rgb), 0.05), transparent) !important;
    border: 1px solid var(--theme-border) !important;
    border-left: 4px solid var(--theme-accent) !important;
    margin-bottom: 1rem !important;
}
.review-header-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: rgba(0,0,0,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.review-header-compact .header-main {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}
.review-header-compact .reviewer-stub {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--theme-text-main);
}
.review-header-compact .tiny-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid var(--theme-border);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--theme-avatar-bg);
    overflow: hidden;
    flex-shrink: 0;
}
.review-header-compact .tiny-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.review-header-compact .tiny-avatar i {
    font-size: 0.65rem;
    color: var(--theme-accent);
}
.review-header-compact .target-link {
    color: var(--theme-accent);
    font-weight: 800;
    text-decoration: none;
}
.review-header-compact .game-tag-mini {
    font-size: 0.6rem;
    font-weight: 900;
    opacity: 0.5;
    letter-spacing: 1px;
}
.review-body-compact {
    padding: 0.75rem !important;
}
.rating-strip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.rating-strip .stars-mini {
    font-size: 0.7rem;
    display: flex;
    gap: 1px;
}
.rating-strip .rating-num {
    font-size: 0.75rem;
    font-weight: 900;
    color: var(--theme-accent);
}
.review-text-compact {
    font-size: 0.9rem !important;
    font-style: italic;
    line-height: 1.4 !important;
    color: var(--theme-text-main) !important;
    margin-bottom: 0.5rem !important;
}
.review-combat-row.mini {
    display: flex;
    gap: 0.4rem;
    font-size: 0.65rem !important;
    opacity: 0.6;
    text-transform: uppercase;
    font-weight: 700;
    margin-top: 0.5rem;
    border-top: none !important;
    padding-top: 0 !important;
}
.review-tags-row.mini {
    display: flex;
    gap: 0.3rem;
    margin-top: 0.5rem;
}
.intel-tag.mini {
    font-size: 0.55rem !important;
    padding: 1px 5px !important;
}
.review-footer-compact {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0.75rem;
    font-size: 0.6rem;
    opacity: 0.5;
    background: rgba(0,0,0,0.1);
}
.review-footer-compact .crit { color: #ef4444; }
.review-footer-compact .ver { color: #10b981; }


/* Align Review Post with Social Post sizing */
.review-post.compact {
    max-width: none !important;
    width: 100% !important;
    background: var(--theme-card-bg) !important;
    border: 1px solid var(--theme-border) !important;
    border-radius: 12px !important;
    margin-bottom: 1.5rem !important;
    box-shadow: none !important;
    border-left: 4px solid var(--theme-accent) !important;
}
.review-header-compact {
    padding: 1rem 1.25rem !important;
    border-radius: 12px 12px 0 0 !important;
}
.review-body-compact {
    padding: 1rem 1.25rem !important;
}
.review-footer-compact {
    padding: 0.75rem 1.25rem !important;
    border-radius: 0 0 12px 12px !important;
}


/* ULTRA-COMPACT REDESIGN - GamerTraits Home */
.review-post.compact {
    padding: 0 !important;
    background: var(--theme-card-bg) !important;
    border: 1px solid var(--theme-border) !important;
    border-left: 4px solid var(--theme-accent) !important;
    margin-bottom: 1.5rem !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    width: 100% !important;
    max-width: none !important;
}
.review-header-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.25rem;
    background: rgba(0,0,0,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.review-header-compact .header-main {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}
.review-header-compact .reviewer-stub {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--theme-text-main);
}
.review-header-compact .tiny-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid var(--theme-border);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--theme-avatar-bg);
    overflow: hidden;
    flex-shrink: 0;
}
.review-header-compact .tiny-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.review-header-compact .tiny-avatar i {
    font-size: 0.75rem;
    color: var(--theme-accent);
}
.review-header-compact .target-link {
    color: var(--theme-accent);
    font-weight: 800;
    text-decoration: none;
}
.review-header-compact .game-tag-mini {
    font-size: 0.65rem;
    font-weight: 900;
    opacity: 0.5;
    letter-spacing: 1px;
    background: rgba(255,255,255,0.05);
    padding: 2px 8px;
    border-radius: 4px;
}
.review-body-compact {
    padding: 1.25rem !important;
}
.rating-strip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}
.rating-strip .stars-mini {
    font-size: 0.8rem;
    display: flex;
    gap: 2px;
}
.rating-strip .rating-num {
    font-size: 0.8rem;
    font-weight: 900;
    color: var(--theme-accent);
}
.review-text-compact {
    font-size: 1rem !important;
    font-style: italic;
    line-height: 1.5 !important;
    color: var(--theme-text-main) !important;
    margin-bottom: 0.75rem !important;
}
.review-combat-row.mini {
    display: flex;
    gap: 0.5rem;
    font-size: 0.7rem !important;
    opacity: 0.6;
    text-transform: uppercase;
    font-weight: 700;
    margin-top: 0.75rem;
}
.review-tags-row.mini {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}
.intel-tag.mini {
    font-size: 0.6rem !important;
    padding: 2px 8px !important;
    border: 1px solid var(--tag-color);
    color: var(--tag-color);
    background: rgba(0,0,0,0.2);
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 800;
}
.review-footer-compact {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 1.25rem;
    font-size: 0.65rem;
    opacity: 0.5;
    background: rgba(0,0,0,0.1);
    border-top: 1px solid rgba(255,255,255,0.05);
}
.review-footer-compact .crit { color: #ef4444; }
.review-footer-compact .ver { color: #10b981; }


/* Stretch Review Post to match Social Posts (no rounding) */
.review-post.compact {
    border-radius: 0 !important;
    border-left: 4px solid var(--theme-accent) !important;
    border-right: none !important;
    margin-bottom: 0.25rem !important;
    width: 100% !important;
    box-shadow: none !important;
}
.review-header-compact {
    border-radius: 0 !important;
}
.review-footer-compact {
    border-radius: 0 !important;
}


/* FINAL COMPACT ENCOUNTER STYLING */
.review-post.compact {
    border-radius: 0 !important;
    border-right: none !important;
    border-top: 1px solid rgba(255,255,255,0.05) !important;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
    margin-bottom: 0.25rem !important;
}
.review-post.encounter-positive { border-left: 4px solid #10b981 !important; }
.review-post.encounter-negative { border-left: 4px solid #ef4444 !important; }
.review-post.encounter-positive .rating-num { color: #10b981 !important; }
.review-post.encounter-negative .rating-num { color: #ef4444 !important; }
.review-post.encounter-positive .target-link { color: #10b981 !important; }
.review-post.encounter-negative .target-link { color: #ef4444 !important; }


/* Prominent Review Rating Styling */
.header-text-sep {
    opacity: 0.6;
    font-size: 0.8rem;
    font-style: italic;
    white-space: nowrap;
}
.rating-strip.prominent {
    background: rgba(255,255,255,0.05);
    padding: 0.6rem 1.25rem !important;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.03);
    width: fit-content;
    margin-bottom: 1.25rem !important;
}
.stars-mini.large {
    font-size: 1.1rem !important;
    gap: 4px !important;
}
.rating-num.large {
    font-size: 1.2rem !important;
    font-weight: 900 !important;
    margin-left: 0.5rem;
    font-family: 'Barlow', sans-serif;
}


/* Stacked Review Header Styling */
.review-header-compact .header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 1rem;
}
.reviewer-section {
    display: flex;
    align-items: center;
    flex-grow: 1;
}
.reviewer-info-stack {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.reviewer-name-top {
    font-size: 0.95rem;
    color: var(--theme-text-main);
}
.reviewer-subtext {
    font-size: 0.7rem;
    opacity: 0.5;
    font-style: italic;
    white-space: nowrap;
}
.target-section {
    text-align: right;
    flex-shrink: 0;
}
.target-section .target-link {
    font-size: 1.1rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.5px;
}


/* Streamlined Review Layout */
.review-header-compact {
    padding: 0.5rem 1rem !important;
}
.reviewer-info-stack { gap: 0 !important; }
.reviewer-name-top { 
    font-size: 0.9rem !important; 
    transition: color 0.2s ease;
}
.reviewer-stub:hover .reviewer-name-top {
    color: var(--theme-accent) !important;
}
.reviewer-subtext { font-size: 0.65rem !important; line-height: 1; }
.target-section .target-link { font-size: 1rem !important; }

.review-body-compact {
    padding: 0.75rem 1rem !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.rating-strip-centered {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    width: 100%;
}
.rating-strip-centered .bi {
    font-size: 1.5rem;
}
.rating-num-prominent {
    font-size: 1.4rem;
    font-weight: 900;
    font-family: 'Barlow', sans-serif;
}
.review-text-compact {
    margin-bottom: 0.5rem !important;
    width: 100%;
}
.review-footer-compact {
    padding: 0.4rem 1rem !important;
}


/* Integrated Review Header & Target Focus Styling */
.header-text-integrated {
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
    font-size: 0.85rem;
    color: var(--theme-text-main);
    flex-wrap: wrap;
}
.header-action-text {
    opacity: 0.5;
    font-style: italic;
    font-size: 0.8rem;
}
.game-name-text {
    color: var(--theme-accent);
    text-transform: uppercase;
    font-weight: 800;
    font-size: 0.85rem;
}
.target-player-focus {
    margin-bottom: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
}
.focus-label {
    font-size: 0.55rem;
    font-weight: 900;
    opacity: 0.4;
    letter-spacing: 1.5px;
}
.target-link-large {
    font-size: 1.3rem !important;
    font-weight: 900 !important;
    color: var(--theme-text-main) !important;
    text-decoration: none;
    line-height: 1;
    text-shadow: 0 0 15px rgba(255,255,255,0.1);
    transition: all 0.2s ease;
}
.target-link-large:hover {
    color: var(--theme-accent) !important;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.4) !important;
    transform: scale(1.05);
}
.review-post.encounter-positive .target-link-large { color: #10b981 !important; text-shadow: 0 0 15px rgba(16, 185, 129, 0.2); transition: all 0.2s ease; }
.review-post.encounter-negative .target-link-large { color: #ef4444 !important; text-shadow: 0 0 15px rgba(239, 68, 68, 0.2); transition: all 0.2s ease; }
.review-post.encounter-positive .target-link-large:hover { color: #34d399 !important; text-shadow: 0 0 20px rgba(52, 211, 153, 0.4) !important; }
.review-post.encounter-negative .target-link-large:hover { color: #f87171 !important; text-shadow: 0 0 20px rgba(248, 113, 113, 0.4) !important; }


/* Icon-only Mobile Tab Bar */
.mobile-tab-bar {
    height: 60px !important;
}
.tab-item .tab-label {
    display: none !important;
}
.tab-item {
    padding: 0 !important;
    justify-content: center !important;
}
.tab-item .tab-icon {
    font-size: 1.5rem !important;
    margin-bottom: 0 !important;
}

/* --- Loadouts Page --- */
.loadouts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0 1rem;
}
.loadouts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}
.loadout-card {
    background: var(--theme-card-bg);
    border: 1px solid var(--theme-border);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.2s;
}
.loadout-card:hover {
    transform: translateY(-4px);
    border-color: var(--theme-accent);
}
.loadout-weapon {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--theme-accent);
}
.loadout-meta {
    font-size: 0.8rem;
    opacity: 0.6;
    display: flex;
    justify-content: space-between;
}
.loadout-mods {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.mod-tag {
    background: rgba(var(--theme-accent-rgb), 0.1);
    color: var(--theme-accent);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(var(--theme-accent-rgb), 0.2);
}
.loadout-desc {
    font-size: 0.9rem;
    line-height: 1.4;
    opacity: 0.8;
}
.loadout-actions {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid var(--theme-border);
    padding-top: 1rem;
}
.vote-btn {
    background: none;
    border: 1px solid var(--theme-border);
    color: var(--theme-text);
    cursor: pointer;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s;
}
.vote-btn:hover {
    background: rgba(var(--theme-accent-rgb), 0.1);
    border-color: var(--theme-accent);
}
.vote-btn.active {
    background: var(--theme-accent);
    color: #000;
    border-color: var(--theme-accent);
}
.vote-count {
    font-weight: 800;
    font-size: 1.1rem;
}
.loadout-modal-content {
    max-width: 480px;
    width: 95%;
    padding: 0;
    overflow: hidden;
    border-radius: 20px;
}
.loadout-progress-bar {
    display: flex;
    gap: 0.3rem;
    justify-content: center;
    padding: 1rem 0;
    background: var(--theme-card-bg);
    border-bottom: 1px solid var(--theme-border);
}
.loadout-progress-dot {
    width: 15px;
    height: 3px;
    background: var(--theme-border);
    border-radius: 2px;
    transition: all 0.3s;
}
.loadout-progress-dot.active {
    background: var(--theme-accent);
    width: 25px;
}
.loadout-step {
    display: none;
    padding: 1.5rem;
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.loadout-step.active {
    display: block;
}
.step-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-align: center;
}
.weapon-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    max-height: 350px;
    overflow-y: auto;
    padding-right: 5px;
}
.weapon-option {
    background: var(--theme-bg);
    border: 1px solid var(--theme-border);
    border-radius: 12px;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}
.weapon-option.selected { border-color: var(--theme-accent); background: rgba(var(--theme-accent-rgb), 0.05); }
.weapon-icon {
    width: 32px;
    height: 32px;
    background: var(--theme-card-bg);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--theme-accent);
    border: 1px solid var(--theme-border);
}
.weapon-meta h3 { margin: 0; font-size: 0.95rem; font-weight: 700; }
.weapon-meta p { margin: 0; font-size: 0.7rem; opacity: 0.5; text-transform: uppercase; }
.mod-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.5rem;
    max-height: 250px;
    overflow-y: auto;
    margin-bottom: 1rem;
}
.mod-pill {
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid var(--theme-border);
    background: var(--theme-bg);
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}
.mod-pill.active {
    background: var(--theme-accent);
    color: #000;
    border-color: var(--theme-accent);
}
.step-footer {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Layout.js Injected Component Styles --- */
.header-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.header-right {
    display: flex;
    align-items: center;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
}
.notif-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.sidebar-promotion {
    margin: 1rem 1rem 0;
    text-align: center;
}
.sidebar-footer-info {
    padding: 1rem;
    border-top: 1px solid var(--theme-border);
    opacity: 0.5;
}
#sidebar-auth-footer {
    margin-top: auto;
    padding: 0.5rem 0;
}
#android-test-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid var(--theme-border);
    padding: 0.6rem;
}
.modal-close-icon {
    font-size: 1.4rem;
}


/* Database Search Page Styles */
.db-search-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 100px 1.5rem 2rem;
}
.search-bar-wrap {
    position: relative;
    margin-bottom: 2rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    border-radius: 12px;
    overflow: hidden;
}
.db-search-input {
    width: 100%;
    padding: 1.25rem 4rem 1.25rem 1.25rem;
    background: var(--theme-card-bg);
    border: 1px solid var(--theme-border);
    color: #fff;
    font-size: 1.15rem;
    outline: none;
    transition: all 0.3s ease;
}
.db-search-input:focus {
    border-color: var(--theme-accent);
    background: rgba(255,255,255,0.05);
}
.search-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--theme-accent);
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}
.db-card {
    background: var(--theme-card-bg);
    border: 1px solid var(--theme-border);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}
.db-card:hover {
    transform: translateY(-5px);
    border-color: var(--theme-accent);
    background: rgba(255,255,255,0.05);
}
.db-card-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    border: 2px solid var(--theme-border);
    flex-shrink: 0;
    overflow: hidden;
}
.db-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.db-card-name {
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}
.db-card-type {
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
    width: fit-content;
}
.type-user { background: rgba(58, 134, 255, 0.2); color: #3a86ff; }
.type-player { background: rgba(251, 191, 36, 0.2); color: #fbbf24; }
.game-context {
    font-size: 0.6rem;
    opacity: 0.5;
    margin-top: 0.3rem;
    font-weight: 700;
}
@media (max-width: 768px) {
    .db-search-container { padding: 100px 1rem 2rem; }
    .db-search-input { padding: 1rem 3.5rem 1rem 1rem; font-size: 1.1rem; }
    .results-grid { grid-template-columns: 1fr; }
}

/* Clickable Review Cards */
.clickable-review {
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease;
}

.clickable-review:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
    border-color: var(--theme-accent) !important;
}

.clickable-review:active {
    transform: translateY(0);
}

