* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    font-family: 'Inter', system-ui, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(99, 102, 241, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(139, 92, 246, 0.2) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease;
}

.loader-ring {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.1);
    border-top: 3px solid #ffffff;
    animation: spin 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
    position: relative;
    box-shadow: 0 0 30px rgba(255,255,255,0.2);
}

.loader-ring::after {
    content: '';
    position: absolute;
    inset: 15px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.05);
    border-bottom: 3px solid rgba(255,255,255,0.8);
    animation: spin-reverse 2s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

.loader-gem {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.loader-gem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.loading-title {
    margin-top: 40px;
    font-weight: 800;
    font-size: 28px;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: linear-gradient(90deg, #ffffff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.loading-bar-track {
    width: 280px;
    height: 6px;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    margin-top: 30px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.loading-bar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #ffffff, #e0e7ff);
    border-radius: 10px;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.loading-text {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    margin-top: 16px;
    letter-spacing: 1px;
    font-weight: 500;
}

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

#app-content {
    display: none;
    padding-bottom: 60px;
    position: relative;
    z-index: 1;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: 1px;
}

.brand-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.brand-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hero Banner */
.hero-banner {
    margin: 40px 40px 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.hero-banner:hover {
    transform: translateY(-5px);
}

.hero-video-wrapper {
    position: relative;
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.5), rgba(118, 75, 162, 0.5));
    overflow: hidden;
}

.hero-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    display: block;
}

.live-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 30px;
    letter-spacing: 1px;
    z-index: 5;
    box-shadow: 0 4px 15px rgba(239,68,68,0.4);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(239,68,68,0.4); }
    50% { box-shadow: 0 4px 25px rgba(239,68,68,0.7); }
}

.hero-avatar-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 5;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 10px 20px 10px 10px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-avatar-img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 3px solid #ffffff;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.hero-avatar-name {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}

.hero-content {
    padding: 30px 35px 35px;
    background: rgba(255, 255, 255, 0.05);
}

.hero-content h1 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
    color: #ffffff;
}

.hero-content p {
    font-size: 16px;
    color: rgba(255,255,255,0.9);
    font-weight: 400;
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    margin-bottom: 30px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
}

.section-title i {
    font-size: 24px;
}

.section-stats {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    font-weight: 600;
}

/* Server List */
.server-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    padding: 0 40px;
}

.server-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.server-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.server-thumb {
    position: relative;
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
    overflow: hidden;
}

.server-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.server-card:hover .server-thumb img {
    transform: scale(1.1);
}

.available-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(16, 185, 129, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 30px;
    letter-spacing: 0.5px;
    z-index: 6;
    box-shadow: 0 4px 15px rgba(16,185,129,0.3);
}

.server-info {
    padding: 25px;
    background: rgba(255, 255, 255, 0.05);
}

.server-name {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 15px;
    color: #ffffff;
}

.player-strip {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.player-avatar-sm {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    object-fit: cover;
    margin-right: -8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: transform 0.2s ease;
}

.player-avatar-sm:hover {
    transform: scale(1.1);
    z-index: 10;
}

.player-count-label {
    font-size: 13px;
    color: rgba(255,255,255,0.9);
    margin-left: 12px;
    font-weight: 600;
}

.join-btn {
    display: block;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #ffffff, #e0e7ff);
    border: none;
    border-radius: 15px;
    color: #667eea;
    font-weight: 800;
    font-size: 16px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(255,255,255,0.3);
    transition: all 0.2s ease;
    letter-spacing: 1px;
}

.join-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(255,255,255,0.4);
}

.join-btn:active {
    transform: scale(0.98);
}

/* Loading Modal */
.loading-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(10px);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.loading-modal.active {
    opacity: 1;
    pointer-events: all;
}

.loading-content {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    padding: 50px;
    border-radius: 25px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    max-width: 350px;
    width: 100%;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255,255,255,0.2);
    border-top: 4px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 25px;
}

.loading-content h3 {
    margin: 0 0 12px;
    font-size: 1.4rem;
    color: #fff;
    font-weight: 800;
}

.loading-content p {
    margin: 0;
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
}

/* Browser Modal */
.browser-modal-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.browser-modal-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

.chrome-window {
    width: 100%;
    max-width: 1100px;
    height: 85vh;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.chrome-titlebar {
    background: #dee1e6;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 0 8px;
    flex-shrink: 0;
}

.chrome-tabs {
    display: flex;
    height: 34px;
    margin-top: 6px;
    gap: 0;
}

.chrome-tab {
    background: #ffffff;
    border-radius: 8px 8px 0 0;
    padding: 0 10px 0 12px;
    min-width: 150px;
    max-width: 220px;
    display: flex;
    align-items: center;
    position: relative;
    box-shadow: 0 -1px 2px rgba(0,0,0,0.05);
}

.chrome-tab-icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
}

.chrome-tab-title {
    font-size: 12px;
    color: #333;
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 8px;
}

.chrome-tab-close {
    font-size: 14px;
    color: #5f6368;
    cursor: pointer;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin-left: 4px;
}

.chrome-tab-close:hover {
    background: #e8eaed;
}

.chrome-window-controls {
    display: flex;
    height: 40px;
    align-items: center;
    padding-right: 8px;
}

.chrome-window-controls span {
    width: 44px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

.chrome-window-controls span:hover {
    background: rgba(0,0,0,0.08);
}

.chrome-window-controls .chrome-close-btn:hover {
    background: #e81123;
    color: white;
}

.chrome-toolbar {
    background: #ffffff;
    height: 42px;
    display: flex;
    align-items: center;
    padding: 0 8px;
    border-bottom: 1px solid #dadce0;
    flex-shrink: 0;
}

.chrome-nav-btns {
    display: flex;
    gap: 4px;
    margin-right: 8px;
}

.chrome-icon {
    width: 28px;
    height: 28px;
    padding: 4px;
    border-radius: 50%;
    fill: #5f6368;
    cursor: pointer;
    box-sizing: border-box;
}

.chrome-icon:hover {
    background: #f1f3f4;
}

.chrome-icon.disabled {
    fill: #bdc1c6;
    pointer-events: none;
}

.chrome-address-bar {
    flex-grow: 1;
    background: #f1f3f4;
    height: 30px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 8px;
    transition: background 0.2s;
}

.chrome-address-bar:hover {
    background: #e8eaed;
}

.chrome-lock {
    width: 14px;
    height: 14px;
    fill: #5f6368;
}

.chrome-url {
    font-size: 14px;
    color: #202124;
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chrome-url-dim {
    color: #5f6368;
}

.chrome-star {
    width: 16px;
    height: 16px;
    fill: #5f6368;
    cursor: pointer;
}

.chrome-extensions {
    display: flex;
    margin-left: 8px;
    gap: 4px;
}

.browser-content {
    flex-grow: 1;
    background: #fff;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.browser-content iframe {
    flex-grow: 1;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar { padding: 15px 20px; }
    .hero-banner { margin: 20px 20px 30px; border-radius: 20px; }
    .hero-video-wrapper { height: 200px; }
    .section-header { padding: 0 20px; }
    .server-list { 
        grid-template-columns: 1fr; 
        padding: 0 20px;
        gap: 20px;
    }
    .server-thumb { height: 180px; }
    
    .browser-modal-overlay { padding: 0; }
    .chrome-window { width: 100%; height: 100vh; height: 100dvh; max-height: 100vh; border-radius: 0; }
    .chrome-titlebar { padding-left: 4px; }
    .chrome-tabs { min-width: auto; max-width: none; flex-grow: 1; }
    .chrome-tab { min-width: 0; max-width: none; padding: 0 8px; border-radius: 8px 8px 0 0; }
    .chrome-tab-title { font-size: 11px; padding-right: 4px; }
    .chrome-window-controls span { width: 35px; }
    .chrome-nav-btns { display: none; }
    .chrome-extensions { display: none; }
    .chrome-address-bar { padding: 0 8px; }
    .chrome-url { font-size: 12px; }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 24px; }
    .section-title { font-size: 20px; }
    .server-name { font-size: 18px; }
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 80px 20px 60px;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.creator-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 8px 20px 8px 8px;
    margin-bottom: 30px;
    transition: all 0.3s;
}

.creator-badge:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.creator-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.creator-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.creator-label {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.creator-name {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}

.hero-title {
    font-size: 52px;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.btn-play {
    background: rgba(255, 255, 255, 0.95);
    color: #667eea;
    padding: 16px 40px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 16px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn-play:hover {
    background: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.no-signup-badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Features Section */
.features-section {
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    position: relative;
    z-index: 1;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 28px;
    transition: all 0.3s;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 24px;
    color: #ffffff;
}

.feature-card h3 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff;
}

.feature-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

/* Nav Links */
.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link:hover {
    color: #ffffff;
}

.nav-link.active {
    color: #ffffff;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-play {
        width: 100%;
        justify-content: center;
    }

    .features-section {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }

    .nav-links {
        display: none;
    }
}
