:root {
    --bg-dark: #090B10;
    --bg-card: rgba(255, 255, 255, 0.05);
    --primary: #6d5dfc;
    --secondary: #e44dff;
    --accent: #00f2ff;
    --text: #ffffff;
    --text-muted: #94a3b8;
    --success: #10b981;
    --border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-dark);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

#hub-canvas {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -2;
    pointer-events: none;
}

.premium-bg {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: url('../images/bg-cyber-cosmic.jpg') center top / cover no-repeat;
    filter: brightness(0.72) contrast(1.12);
    z-index: -4;
    animation: driftBg 35s ease-in-out infinite alternate;
}
@keyframes driftBg {
    from { transform: scale(1.0) translateY(0); }
    to { transform: scale(1.06) translateY(-15px); }
}

.glass-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: radial-gradient(circle at 50% 25%, rgba(9, 11, 16, 0.32) 0%, rgba(9, 11, 16, 0.82) 100%);
    z-index: -3;
    pointer-events: none;
}

.ambient-glow {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: radial-gradient(circle at 20% 30%, rgba(109, 93, 252, 0.25) 0%, transparent 40%),
                radial-gradient(circle at 80% 70%, rgba(228, 77, 255, 0.2) 0%, transparent 40%);
    z-index: -1;
    pointer-events: none;
    animation: pulseGlow 8s ease-in-out infinite alternate;
}
@keyframes pulseGlow {
    0% { opacity: 0.6; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.2); }
}

.container {
    max-width: 680px; /* Optimal reading and card proportion across mobile & desktop */
    margin: 0 auto;
    padding: 0 16px;
}

/* Minimal Top Bar */
.top-bar {
    text-align: center;
    padding: 30px 0 10px;
}

.live-counter-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--success);
    margin-bottom: 15px;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}

.pulse-dot {
    width: 8px; height: 8px;
    background-color: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--success);
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.7; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.7; }
}

.page-title {
    font-size: 2.2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #fff 0%, #a78bfa 50%, #00f2ff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shineTitle 4s linear infinite;
    position: relative;
    text-shadow: 0 5px 25px rgba(109, 93, 252, 0.45);
}
@keyframes shineTitle {
    to { background-position: 200% center; }
}

/* Trust Ticker (Social Proof & Urgency) */
.hub-trust-ticker {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    padding: 6px 14px;
    margin: 15px auto 20px;
    font-size: 0.76rem;
    color: #cbd5e1;
    backdrop-filter: blur(10px);
    max-width: 580px;
}
.hub-ticker-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #10b981;
    font-weight: 700;
}
.hub-ticker-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
    animation: pulse 1.4s infinite;
}
.hub-ticker-divider {
    color: rgba(255, 255, 255, 0.2);
}
.hub-ticker-item {
    font-weight: 600;
    color: #cbd5e1;
}

/* Hub Controls (Search & Category Tabs) */
.hub-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.hub-search-wrap {
    position: relative;
    width: 100%;
}
.hub-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.95rem;
    opacity: 0.7;
    pointer-events: none;
}
.hub-search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 11px 40px 11px 42px;
    color: #fff;
    font-size: 0.88rem;
    font-family: inherit;
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}
.hub-search-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #00f2ff;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.25);
}
.hub-search-input::placeholder {
    color: #64748b;
}
.hub-search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #cbd5e1;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    transition: all 0.2s ease;
}
.hub-search-clear:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.hub-cat-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
.hub-cat-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    padding: 7px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.4px;
    outline: none;
    user-select: none;
}
.hub-cat-btn:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
    transform: translateY(-1px);
}
.hub-cat-btn.active {
    background: linear-gradient(135deg, #6d5dfc, #00f2ff);
    border-color: transparent;
    color: #090b10;
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(0, 242, 255, 0.35);
}

.hub-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 16px;
}
.hub-no-results-icon {
    font-size: 2.2rem;
    margin-bottom: 8px;
}
.hub-no-results h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

/* App Grid */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    padding-bottom: 40px;
}
.hero-tile {
    grid-column: 1 / -1;
    background: linear-gradient(145deg, rgba(255, 0, 119, 0.1), rgba(0, 204, 255, 0.05));
    border: 1px solid rgba(255, 0, 119, 0.3);
    box-shadow: 0 10px 40px rgba(255, 0, 119, 0.2);
}
.hero-tile .app-icon {
    width: 120px;
    height: 120px;
    margin-bottom: 10px;
}

/* App Tile */
.app-tile {
    text-decoration: none;
    color: white;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 25px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    cursor: pointer;
}

.app-tile.span-full {
    grid-column: 1 / -1;
}

.app-tile.span-full .server-buttons {
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}

.app-tile::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.1), transparent);
    transform: skewX(-25deg);
    animation: shineGlass 5s infinite;
}
@keyframes shineGlass {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

.app-tile:hover {
    border-color: rgba(255,255,255,0.3);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5), inset 0 0 15px rgba(255,255,255,0.05);
}

.app-icon {
    width: 65px;
    height: 65px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 16px;
}
.app-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
}

.app-name {
    font-size: 1rem;
    font-weight: 600;
    color: #e2e8f0;
}

.app-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: 600;
}

.server-buttons {
    display: flex;
    flex-direction: row;
    gap: 8px;
    width: 100%;
    margin-top: auto;
}

.server-btn {
    text-decoration: none;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    padding: 7px 8px;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 700;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    letter-spacing: 0.4px;
    position: relative;
    overflow: hidden;
}

.srv-label {
    font-size: 0.74rem;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 3px;
}

.srv-sub {
    font-size: 0.6rem;
    color: #94a3b8;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    line-height: 1;
}

.srv-fast {
    color: #10b981;
}

.srv-pulse {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
    display: inline-block;
    animation: pulse 1.2s infinite;
}

.server-btn.srv-btn-1:hover {
    background: rgba(109, 93, 252, 0.22);
    border-color: rgba(109, 93, 252, 0.6);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(109, 93, 252, 0.35);
}

.server-btn.srv-btn-2:hover {
    background: rgba(16, 185, 129, 0.22);
    border-color: rgba(16, 185, 129, 0.6);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

/* Custom Highlights & Specific Game Glow */
#tile-scripts:hover {
    box-shadow: 0 16px 36px rgba(192, 132, 252, 0.35), 0 0 24px rgba(244, 114, 182, 0.25);
    border-color: rgba(192, 132, 252, 0.7);
}
#tile-giftcards:hover {
    box-shadow: 0 16px 36px rgba(245, 158, 11, 0.25), 0 0 24px rgba(168, 85, 247, 0.25);
    border-color: rgba(245, 158, 11, 0.6);
}
#tile-gta6:hover {
    box-shadow: 0 16px 36px rgba(245, 158, 11, 0.3), 0 0 20px rgba(234, 88, 12, 0.25);
    border-color: rgba(245, 158, 11, 0.6);
}
#tile-fortnite:hover {
    box-shadow: 0 16px 36px rgba(0, 229, 255, 0.3), 0 0 24px rgba(168, 85, 247, 0.3);
    border-color: rgba(0, 229, 255, 0.65);
}
#tile-roblox:hover {
    box-shadow: 0 16px 36px rgba(16, 185, 129, 0.3), 0 0 20px rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.65);
}
#tile-brawl:hover {
    box-shadow: 0 16px 36px rgba(250, 204, 21, 0.3), 0 0 20px rgba(249, 115, 22, 0.2);
    border-color: rgba(250, 204, 21, 0.65);
}
#tile-clash:hover {
    box-shadow: 0 16px 36px rgba(59, 130, 246, 0.3), 0 0 20px rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.65);
}
#tile-minecraft:hover {
    box-shadow: 0 16px 36px rgba(163, 230, 53, 0.3), 0 0 20px rgba(163, 230, 53, 0.2);
    border-color: rgba(163, 230, 53, 0.65);
}
#tile-valorant:hover {
    box-shadow: 0 16px 36px rgba(255, 70, 85, 0.35), 0 0 20px rgba(255, 70, 85, 0.25);
    border-color: rgba(255, 70, 85, 0.65);
}

.app-tile:hover .app-icon img {
    transform: scale(1.08) rotate(-2deg);
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.app-icon img {
    transition: transform 0.3s ease;
}

/* Footer Trust Badges */
.footer-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.76rem;
    color: #94a3b8;
    font-weight: 600;
}

/* Badges for urgency */
.game-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1px;
    white-space: nowrap;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    z-index: 10;
    transform: rotate(5deg);
    animation: floatBadge 3s infinite ease-in-out;
}

@keyframes floatBadge {
    0%, 100% { transform: translateY(0) rotate(5deg); }
    50% { transform: translateY(-3px) rotate(3deg); }
}

.badge-hot { background: linear-gradient(135deg, #ff4d4d, #f9cb28); border: 1px solid #ff4d4d; }
.badge-new { background: linear-gradient(135deg, #00E676, #00b35c); border: 1px solid #00E676; }
.badge-update { background: linear-gradient(135deg, #B500FF, #7000ff); border: 1px solid #B500FF; }
.badge-premium { background: linear-gradient(135deg, #FF4655, #9c1f28); border: 1px solid #FF4655; }
.badge-halloween {
    background: linear-gradient(135deg, #ea580c, #9333ea);
    border: 1px solid #f97316;
    left: 50%;
    right: auto;
    transform: translateX(-50%) rotate(2deg);
    animation: floatBadgeCenter 3s infinite ease-in-out;
}

@keyframes floatBadgeCenter {
    0%, 100% { transform: translateX(-50%) translateY(0) rotate(2deg); }
    50% { transform: translateX(-50%) translateY(-3px) rotate(0deg); }
}

/* Trust Widget */
.trust-widget {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-top: 15px;
    margin-bottom: 25px;
}
.trust-stars {
    display: flex;
    gap: 4px;
}
.trust-stars span {
    background: #00b67a;
    color: white;
    padding: 3px 4px;
    border-radius: 2px;
    font-size: 0.9rem;
    line-height: 1;
}
.trust-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}
.trust-text strong {
    color: #fff;
}


@media (max-width: 768px) {
    .apps-grid .hero-tile {
        grid-column: 1 / -1;
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 8px;
        padding: 15px;
    }
    .apps-grid .hero-tile .app-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 5px;
    }
    .apps-grid .hero-tile .app-name,
    .apps-grid .hero-tile .app-subtitle,
    .apps-grid .hero-tile .server-buttons {
        width: 100%;
        margin: 0 auto;
    }

    /* Small cards: stack buttons vertically so text doesn't break */
    .app-tile:not(.hero-tile):not(.span-full) .server-buttons {
        flex-direction: column;
        gap: 6px;
    }
    .app-tile:not(.hero-tile):not(.span-full) .server-btn {
        font-size: 0.7rem;
        padding: 7px 0;
    }
}

/* Notifications */
.hub-notif {
    position: fixed; bottom: 15px; left: 50%; transform: translateX(-50%);
    z-index: 1000; width: 80%; max-width: 300px;
    pointer-events: none;
}
@keyframes hubSlideUp {
    0% { opacity: 0; transform: translate(-50%, 30px) scale(0.92); }
    100% { opacity: 1; transform: translate(-50%, 0) scale(1); }
}
@keyframes hubSlideDown {
    0% { opacity: 1; transform: translate(-50%, 0) scale(1); }
    100% { opacity: 0; transform: translate(-50%, 25px) scale(0.92); }
}
.hub-notif-inner {
    background: rgba(8, 10, 16, 0.95);
    border: 1px solid var(--border);
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    padding: 8px 14px; border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.6);
    border-top: 2px solid var(--primary);
    text-align: center;
}
.hub-notif-badge {
    background: var(--primary); color: #fff;
    font-size: 0.55rem; font-weight: 800;
    padding: 2px 6px; border-radius: 8px;
    position: absolute; top: -9px; left: 50%; transform: translateX(-50%);
}
.hub-notif-content { font-size: 0.78rem; margin-top: 4px; }
.hub-notif-game { font-size: 0.65rem; color: var(--text-muted); font-weight: 600; margin-top: 1px; }

footer {
    padding: 20px 0 40px;
}
footer p {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-align: center;
}

/* Mobile Tweaks */
@media (max-width: 400px) {
    .apps-grid { gap: 12px; }
    .page-title { font-size: 1.4rem; }
}
/* Custom Locker CSS */
.og-locker-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.og-locker-modal {
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    overflow: hidden;
    animation: lockerPopIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes lockerPopIn {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.og-locker-header {
    background: linear-gradient(135deg, #1f2937, #111827);
    padding: 25px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.og-locker-header h2 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.og-locker-header p {
    color: #9ca3af;
    font-size: 0.9rem;
    line-height: 1.4;
}

.og-offers-container {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 50vh;
    overflow-y: auto;
}

.og-offer-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px;
    text-decoration: none;
    color: #fff;
    transition: all 0.2s ease;
}

.og-offer-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.og-offer-icon img {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
}

.og-offer-details {
    flex: 1;
}

.og-offer-details h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: #fff;
}

.og-offer-details p {
    font-size: 0.75rem;
    color: #9ca3af;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.og-offer-action span {
    background: #10b981;
    color: #fff;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 800;
}

.og-locker-footer {
    padding: 15px;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.og-locker-footer p {
    color: #6b7280;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.og-pulse {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    animation: ogPulse 1.5s infinite;
}

@keyframes ogPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.og-loader {
    text-align: center;
    color: #9ca3af;
    padding: 30px 0;
    font-size: 0.9rem;
}

.og-error {
    text-align: center;
    color: #ef4444;
    padding: 30px 0;
    font-size: 0.9rem;
}
