/**
 * universesigna.com Custom Styles
 *
 * Tailwind CSS handles most styling (local build, GDPR compliant).
 * This file contains custom overrides and animations.
 *
 * @author Adam Bartko (ZEDc)
 */

/* ============================================
   CUSTOM FONTS
   ============================================ */

@font-face {
    font-family: 'Righteous';
    src: url('/css/fonts/Righteous-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ============================================
   COSMIC BACKGROUND
   ============================================ */

.bg-cosmic-gradient {
    background: linear-gradient(135deg, #0F172A 0%, #1E1B4B 50%, #0F172A 100%);
}

/* Layered stars with twinkle */
.bg-stars {
    position: relative;
}

.bg-stars::before,
.bg-stars::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

/* First star layer - small stars */
.bg-stars::before {
    background-image:
        radial-gradient(1px 1px at 10px 10px, white, transparent),
        radial-gradient(1px 1px at 150px 150px, white, transparent),
        radial-gradient(1px 1px at 300px 50px, white, transparent),
        radial-gradient(1.5px 1.5px at 80px 200px, white, transparent),
        radial-gradient(1px 1px at 200px 100px, rgba(255,255,255,0.8), transparent);
    background-size: 400px 400px;
    animation: twinkle 3s ease-in-out infinite;
}

/* Second star layer - larger, dimmer stars */
.bg-stars::after {
    background-image:
        radial-gradient(2px 2px at 50px 80px, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 250px 200px, rgba(139,92,246,0.4), transparent),
        radial-gradient(1.5px 1.5px at 180px 30px, rgba(255,255,255,0.5), transparent);
    background-size: 500px 500px;
    animation: twinkle 4s ease-in-out infinite;
    animation-delay: 1s;
}

/* Twinkle animation */
@keyframes twinkle {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
}

/* Particles.js container - FULL PAGE background */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    /* Allow interaction but let clicks pass through to content */
    pointer-events: auto;
    background: linear-gradient(180deg, #0F172A 0%, #1E1B4B 50%, #0F172A 100%);
}

/* Ensure content is above particles and clickable */
main, footer {
    position: relative;
    z-index: 1;
}

/* Navigation - sticky at top, above particles */
nav {
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Cookie banner above everything */
#cookie-consent {
    z-index: 50;
}

/* ============================================
   TRUST LEVEL BADGES
   ============================================ */

.level-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Cosmic tier badges (for homepage tier cards) */
.tier-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, #8B5CF6 0%, #3B82F6 100%);
    border-radius: 9999px;
    color: white;
}

.level-1 { background: #6B7280; } /* Gray */
.level-2 { background: #10B981; } /* Green */
.level-3 { background: #3B82F6; } /* Blue */
.level-4 { background: #8B5CF6; } /* Purple */
.level-5 { background: #F59E0B; } /* Amber */
.level-6,
.level-7,
.level-8,
.level-9,
.level-10 {
    background: linear-gradient(135deg, #F59E0B 0%, #EF4444 100%);
} /* Gold gradient for high levels */

/* ============================================
   SOCIAL CONNECT BUTTONS
   ============================================ */

.btn-steam {
    background: #171a21;
    color: white;
}
.btn-steam:hover {
    background: #2a475e;
}

.btn-discord {
    background: #5865F2;
    color: white;
}
.btn-discord:hover {
    background: #4752C4;
}

.btn-twitter {
    background: #000000;
    color: white;
}
.btn-twitter:hover {
    background: #333333;
}

.btn-facebook {
    background: #1877F2;
    color: white;
}
.btn-facebook:hover {
    background: #166fe5;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(139, 92, 246, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(139, 92, 246, 0.8);
    }
}

.glow-pulse {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* ============================================
   CARDS
   ============================================ */

.card {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(75, 85, 99, 0.3);
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.card-hover:hover {
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
}

/* ============================================
   FORM INPUTS
   ============================================ */

input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(75, 85, 99, 0.5);
    color: white;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #8B5CF6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

/* ============================================
   TABLES (Admin)
   ============================================ */

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

.table-admin th,
.table-admin td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(75, 85, 99, 0.3);
}

.table-admin th {
    background: rgba(15, 23, 42, 0.8);
    font-weight: 600;
    color: #9CA3AF;
}

.table-admin tr:hover {
    background: rgba(139, 92, 246, 0.1);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 640px) {
    .card {
        padding: 1rem;
    }

    /* Make tables more readable on mobile */
    .table-admin th,
    .table-admin td {
        padding: 0.5rem 0.5rem;
        font-size: 0.875rem;
    }

    /* Hide less important columns on mobile */
    .hide-mobile {
        display: none;
    }

    /* Stack form elements */
    .form-row-mobile {
        flex-direction: column;
        gap: 0.5rem;
    }

    /* Smaller buttons on mobile */
    .btn-mobile-small {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Scrollable container for long content */
.scrollable-x {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Truncate long text */
.truncate-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}

/* Mobile-first visibility */
@media (min-width: 768px) {
    .hide-desktop {
        display: none;
    }
}

@media (max-width: 767px) {
    .hide-mobile {
        display: none;
    }
}

/* ============================================
   HOMEPAGE REDESIGN (2026-02)
   ============================================ */

/* Righteous title styling */
.site-title-righteous {
    font-family: 'Righteous', system-ui, sans-serif;
    letter-spacing: 0.15em;
    color: #8B5CF6; /* Cosmic purple — matches site theme */
}

.site-title-righteous .dot {
    opacity: 0.7;
}

/* Social links grid wrapper — glass card for visual weight */
.social-links-card {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(139, 92, 246, 0.12);
    border-radius: 20px;
    padding: 24px 20px 20px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Social link buttons */
.social-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    padding: 12px 8px;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #94a3b8;
}

.social-circle:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
    color: white;
}

.social-circle svg {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.social-circle span {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.social-circle-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

/* CTA glow effect */
.cta-btn {
    position: relative;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3), 0 4px 16px rgba(0, 0, 0, 0.3);
}

.cta-btn:hover {
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.5), 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Video container */
.video-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(139, 92, 246, 0.3);
    background: #000;
    cursor: pointer;
    box-shadow: 0 8px 40px rgba(139, 92, 246, 0.12), 0 2px 8px rgba(0, 0, 0, 0.4);
}

.video-container video {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(139, 92, 246, 0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.video-play-btn:hover {
    background: rgba(167, 139, 250, 0.95);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-play-btn svg {
    width: 30px;
    height: 30px;
    fill: white;
    margin-left: 4px; /* visual centering for play triangle */
}

.video-container.playing .video-play-btn {
    opacity: 0;
    pointer-events: none;
}

/* Login modal */
.login-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.login-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.login-modal {
    background: #0F172A;
    border: 1px solid rgba(75, 85, 99, 0.5);
    border-radius: 1rem;
    padding: 2rem;
    max-width: 420px;
    width: 90%;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.login-modal-overlay.active .login-modal {
    transform: scale(1);
}

.login-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: #9CA3AF;
    cursor: pointer;
    padding: 4px;
}

.login-modal-close:hover {
    color: white;
}

/* Responsive: stack on mobile */
@media (max-width: 768px) {
    .social-links-card {
        padding: 16px 12px 12px;
    }

    .social-circle {
        padding: 8px 6px;
    }

    .social-circle svg {
        width: 30px;
        height: 30px;
    }

    .social-circle span {
        font-size: 9px;
    }

    .social-circle-img {
        width: 34px;
        height: 34px;
    }
}

/* ============================================
   PRO PROFILE — Gaming Showcase Design
   ============================================ */

/* PRO Profile — Full-page container (one-pager, no scroll) */
.pro-page {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1;
    /* Gradual fade: fully opaque before hero ends, no bleed below */
    background: linear-gradient(to bottom, transparent 45vh, var(--pro-bg, #050514) 85vh);
}

/* PRO Profile — Fixed background image */
.pro-page::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
}

/* PRO pages: dark background covers footer bleed from fixed hero */
body.pro-body > main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

body.pro-body > footer {
    position: relative;
    background: var(--pro-bg, #050514);
    flex-shrink: 0;
}

/* Desktop one-pager: lock viewport height, no scroll */
@media (min-width: 768px) {
    body.pro-body {
        height: 100vh;
        overflow: hidden;
    }
}

/* PRO Profile — Glass panel (flash messages, overlays) */
.glass-panel {
    background: rgba(10, 10, 30, 0.92);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 0.75rem;
    padding: 1.5rem;
}
@supports (backdrop-filter: blur(12px)) {
    .glass-panel {
        background: rgba(10, 10, 30, 0.85);
        backdrop-filter: blur(12px);
    }
}

/* ---- Hero Zone ---- */
.hero-zone {
    position: relative;
    flex: 1;
    display: flex;
    align-items: flex-end;
    padding: 0 2rem 2rem;
    overflow: hidden;
}

/* Bottom gradient (child div, replaces ::after) */
.hero-gradient {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 80%;
    background: linear-gradient(transparent 0%, rgba(5, 5, 20, 0.5) 35%, rgba(5, 5, 20, 0.85) 65%, var(--pro-bg, #050514) 100%);
    pointer-events: none;
    z-index: 0;
}

/* ---- Ambient Animations ---- */

/* Shared base for fog layers */
.ambient-fog,
.ambient-light,
.ambient-dust {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Fog Layer 1: large, low, slow drift L→R — purple-tinted to match scene */
.ambient-fog--1 {
    top: auto;
    bottom: 0;
    height: 60%;
    background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.18) 0%, rgba(100, 120, 255, 0.06) 50%, transparent 75%);
    background-size: 160% 100%;
    animation: fogDrift 28s ease-in-out infinite alternate;
}

/* Fog Layer 2: thinner wisp, mid-height, faster drift R→L */
.ambient-fog--2 {
    top: 15%;
    height: 45%;
    background: radial-gradient(ellipse at center, rgba(120, 100, 255, 0.14) 0%, rgba(180, 200, 255, 0.05) 50%, transparent 70%);
    background-size: 150% 100%;
    animation: fogDrift 19s ease-in-out infinite alternate-reverse;
}

@keyframes fogDrift {
    from { transform: translateX(-25%); }
    to   { transform: translateX(25%); }
}

/* Light Beam Pulse: top-center spotlight breathing */
.ambient-light {
    top: 0;
    left: 15%;
    width: 70%;
    height: 70%;
    background: radial-gradient(ellipse at top center, rgba(255, 255, 255, 0.25) 0%, rgba(139, 92, 246, 0.08) 40%, transparent 70%);
    mix-blend-mode: screen;
    animation: lightPulse 6s ease-in-out infinite;
}

@keyframes lightPulse {
    0%, 100% { opacity: 0.3; }
    50%      { opacity: 1; }
}

/* Floating Dust Particles (CSS-only, box-shadow dots) */
.ambient-dust {
    top: auto;
    bottom: 20%;
    left: 8%;
    width: 3px; height: 3px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow:
        0    0   0 2px rgba(255, 255, 255, 0.8),
        90px  -30px 0 1.5px rgba(180, 170, 255, 0.9),
        220px -50px 0 2px rgba(255, 255, 255, 0.7),
        340px -15px 0 1.5px rgba(160, 140, 255, 0.85),
        470px -45px 0 2px rgba(255, 255, 255, 0.75),
        580px -70px 0 1.5px rgba(180, 170, 255, 0.8),
        140px -60px 0 2px rgba(255, 255, 255, 0.65),
        400px -80px 0 1.5px rgba(170, 160, 255, 0.7);
    animation: dustFloat 14s linear infinite;
}

@keyframes dustFloat {
    from {
        transform: translateY(0) translateX(0);
        opacity: 1;
    }
    to {
        transform: translateY(-25vh) translateX(20px);
        opacity: 0;
    }
}

/* Neon Name Glow Breathe */
@keyframes neonBreathe {
    0%, 100% {
        text-shadow:
            0 0 7px rgba(139, 92, 246, 0.4),
            0 0 20px rgba(139, 92, 246, 0.2),
            0 0 40px rgba(139, 92, 246, 0.1),
            0 2px 20px rgba(0, 0, 0, 0.8);
    }
    50% {
        text-shadow:
            0 0 20px rgba(139, 92, 246, 1),
            0 0 40px rgba(139, 92, 246, 0.8),
            0 0 80px rgba(139, 92, 246, 0.5),
            0 0 120px rgba(139, 92, 246, 0.3),
            0 0 200px rgba(139, 92, 246, 0.15),
            0 2px 20px rgba(0, 0, 0, 0.8);
    }
}

/* Accessibility: respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .ambient-fog,
    .ambient-light,
    .ambient-dust { display: none; }
    .pro-name { animation: none !important; }
}

/* Mobile: disable dust + light for performance */
@media (max-width: 767px) {
    .ambient-dust,
    .ambient-light { display: none; }
}

/* ---- Hero Text Cluster ---- */
.hero-text-cluster {
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 20px rgba(0,0,0,0.8), 0 0 40px rgba(0,0,0,0.5);
    padding: 2rem 0;
    text-align: left;
    max-width: 600px;
}

/* ---- Display Name: Neon Glow ---- */
.pro-name {
    font-family: 'Righteous', system-ui, sans-serif;
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 400;
    letter-spacing: 0.04em;
    color: #fff;
    text-shadow:
        0 0 10px rgba(139, 92, 246, 0.7),
        0 0 30px rgba(139, 92, 246, 0.4),
        0 0 60px rgba(139, 92, 246, 0.2),
        0 2px 20px rgba(0, 0, 0, 0.8);
    margin: 0 0 0.25rem;
    line-height: 1.1;
    animation: neonBreathe 4s ease-in-out infinite;
}

/* ---- Player Cutout ---- */
.player-cutout {
    position: absolute;
    right: 5%;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.player-cutout-glow {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 60%;
    background: radial-gradient(ellipse at center bottom, rgba(139, 92, 246, 0.25) 0%, transparent 70%);
    filter: blur(30px);
    pointer-events: none;
}

.player-cutout-img {
    position: relative;
    height: 40vh;
    max-height: 380px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 30px rgba(0, 0, 0, 0.6))
            drop-shadow(0 0 60px rgba(139, 92, 246, 0.15));
}

/* ---- Social Pills ---- */
.social-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #d1d5db;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: all 0.25s ease;
    backdrop-filter: blur(8px);
}

.social-pill:hover {
    background: var(--pill-color, rgba(139, 92, 246, 0.3));
    border-color: var(--pill-color, rgba(139, 92, 246, 0.5));
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3),
                0 0 20px color-mix(in srgb, var(--pill-color, #8B5CF6) 30%, transparent);
}

.social-pill--static {
    cursor: default;
}

.social-pill--static:hover {
    transform: none;
    box-shadow: none;
    background: var(--pill-color, rgba(139, 92, 246, 0.2));
    border-color: var(--pill-color, rgba(139, 92, 246, 0.3));
    color: #fff;
}

.social-pill img {
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: filter 0.25s ease, opacity 0.25s ease;
}

.social-pill:hover img {
    opacity: 1;
}

/* Icon-only pill (PRO profile) — colorful, no text */
.social-pill--icon {
    padding: 8px;
    border-radius: 50%;
    gap: 0;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.social-pill--icon img {
    filter: none;
    opacity: 1;
}

.social-pill--icon:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px) scale(1.1);
}

/* ---- Info Strip ---- */
.info-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px;
    color: #9ca3af;
    font-size: 13px;
    letter-spacing: 0.01em;
}

/* ---- About Pill (button) ---- */
.about-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #9ca3af;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: all 0.25s ease;
}

.about-pill:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.3);
    color: #e5e7eb;
}

/* ---- About Overlay ---- */
.about-overlay {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    animation: aboutFadeIn 0.25s ease;
}

.about-overlay.hidden {
    display: none;
}

@keyframes aboutFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.about-panel {
    width: 100%;
    max-width: 600px;
    max-height: 70vh;
    overflow-y: auto;
    background: rgba(10, 10, 30, 0.95);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 1rem 1rem 0 0;
    padding: 1.5rem;
    animation: aboutSlideUp 0.3s ease;
}
@supports (backdrop-filter: blur(16px)) {
    .about-panel {
        background: rgba(10, 10, 30, 0.88);
        backdrop-filter: blur(16px);
    }
}

@keyframes aboutSlideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ---- Owner Tools (floating) ---- */
.owner-tools {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 40;
}

.owner-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(10, 10, 30, 0.85);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: #9ca3af;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    backdrop-filter: blur(8px);
}

.owner-upload-btn:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.4);
    color: #e5e7eb;
}

/* ---- PRO Profile Responsive ---- */
@media (max-width: 767px) {
    body.pro-body {
        height: auto;
        overflow: auto;
    }

    .hero-zone {
        min-height: 85vh;
        padding: 0 1.25rem 1.5rem;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
    }

    .hero-text-cluster {
        text-align: center;
        max-width: 100%;
        padding: 1rem 0;
    }

    .hero-text-cluster .flex.flex-wrap {
        justify-content: center;
    }

    .hero-text-cluster .flex.items-center.gap-2 {
        justify-content: center;
    }

    .hero-text-cluster .flex.items-center.gap-4 {
        justify-content: center;
    }

    .player-cutout {
        position: relative;
        right: auto;
        bottom: auto;
        margin-bottom: -1rem;
    }

    .player-cutout-img {
        height: 28vh;
        max-height: 240px;
    }

    .info-strip {
        justify-content: center;
    }

    .owner-tools {
        bottom: 1rem;
        right: 1rem;
    }

    .about-panel {
        max-height: 80vh;
        border-radius: 1rem 1rem 0 0;
    }
}

@media (min-width: 768px) {
    .hero-zone {
        padding: 0 5% 2rem;
    }
}

/* Large screens: slightly bigger cutout */
@media (min-width: 1280px) {
    .player-cutout {
        right: 8%;
    }

    .player-cutout-img {
        height: 45vh;
        max-height: 400px;
    }
}

/* ============================================
   SIDEBAR TAB STRIP
   ============================================ */

/* Connected tab group — no gap, shared borders */
#sidebar-tab-strip {
    display: flex;
    flex-direction: column;
}

#sidebar-tab-strip button {
    border-radius: 0;
    border-right: none;
    margin: 0;
    position: relative;
}

/* Top tab: round top-left corner */
#sidebar-tab-strip button:first-child {
    border-radius: 0.75rem 0 0 0;
    border-bottom: none;
}

/* Bottom tab: round bottom-left corner */
#sidebar-tab-strip button:last-child {
    border-radius: 0 0 0 0.75rem;
}

/* Divider line between tabs */
#sidebar-tab-strip button + button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: rgba(107, 114, 128, 0.4);
}

/* Active tab */
#sidebar-tab-strip button.sidebar-tab-active {
    background: rgba(139, 92, 246, 0.15);
    box-shadow: inset 3px 0 0 #8B5CF6;
}

/* Single tab (non-admin — only community tab) */
#sidebar-tab-strip button:only-child {
    border-radius: 0.75rem 0 0 0.75rem;
}

/* ============================================
   STEAM FINDER SIDEBAR WIDGETS
   ============================================ */

.steam-sw {
    border-top: 1px solid rgba(75, 85, 99, 0.3);
}

.steam-sw-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s;
}

.steam-sw-header:hover {
    background: rgba(139, 92, 246, 0.05);
}

.steam-sw-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1rem;
}

.steam-sw.open .steam-sw-body {
    max-height: 1500px;
    padding: 0 1rem 1rem;
}

.steam-sw.open .steam-sw-chevron {
    transform: rotate(180deg);
}

.steam-sw-chevron {
    transition: transform 0.2s;
    margin-left: auto;
}

/* Steam ID copy button */
.steam-copy-btn {
    opacity: 0.5;
    transition: opacity 0.2s, color 0.2s;
    cursor: pointer;
    background: none;
    border: none;
    padding: 2px;
    line-height: 1;
}

.steam-copy-btn:hover {
    opacity: 1;
}

/* Steam stat box (2-column grid within sidebar) */
.steam-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.steam-stat-box {
    background: rgba(30, 41, 59, 0.5);
    border-radius: 0.375rem;
    padding: 0.5rem;
    text-align: center;
}

.steam-stat-box .label {
    font-size: 0.65rem;
    color: #9CA3AF;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.steam-stat-box .value {
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 0.125rem;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */

.toast-container {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    pointer-events: none;
}

.toast {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: #fff;
    background: rgba(34, 197, 94, 0.9);
    backdrop-filter: blur(8px);
    opacity: 0;
    transform: translateY(0.5rem);
    transition: opacity 0.2s, transform 0.2s;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   SIDEBAR MOBILE FIX
   ============================================ */

@media (max-width: 400px) {
    #steam-sidebar,
    #online-sidebar {
        max-width: calc(100vw - 3rem);
    }
    #steam-sidebar-panel,
    #community-sidebar {
        max-width: calc(100vw - 3rem);
    }
}
