:root {
    --primary: #00ffa3;
    --primary-glow: rgba(0, 255, 163, 0.4);
    --bg-dark: #050505;
    --glass-bg: rgba(20, 20, 20, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-content {
    text-align: center;
    width: 300px;
}

.loader-text {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 20px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: pulse 1.5s infinite;
}

.progress-bar-container {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
    transition: width 0.1s linear;
}

@keyframes pulse {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.6;
    }
}

#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.overlay {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    transition: all 1s ease-in-out;
}

.glass-card {
    width: 100%;
    max-width: 480px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    opacity: 1;
    transform: translateY(0);
    transition: all 1s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Intro Mode Styles */
body.intro-mode .glass-card {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    max-width: 100%;
    height: 100%;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-header {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
    transition: all 1s cubic-bezier(0.22, 1, 0.36, 1);
    background: #000;
}

body.intro-mode .video-header {
    height: 100vh;
    width: 100vw;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
}

.brand-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: all 1s ease;
}

body.intro-mode .brand-video {
    opacity: 1;
    object-fit: contain;
    transform: scale(1);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, var(--glass-bg) 100%);
    opacity: 1;
    transition: opacity 1s ease;
}

body.intro-mode .video-overlay {
    opacity: 0;
}

.content {
    padding: 30px;
    text-align: center;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease 0.5s;
}

body.intro-mode .content {
    opacity: 0;
    transform: translateY(50px);
    display: none;
}

.title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(0, 255, 163, 0.1);
    border: 1px solid rgba(0, 255, 163, 0.2);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.release-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    font-weight: 300;
}

.changelog-container {
    text-align: left;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid var(--glass-border);
}

.changelog-container h3 {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.changelog-list {
    list-style: none;
}

.changelog-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #e0e0e0;
}

.changelog-list li:last-child {
    margin-bottom: 0;
}

.actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-primary {
    position: relative;
    width: 100%;
    padding: 16px;
    background: var(--primary);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.2s;
}

.btn-primary:hover {
    transform: scale(1.02);
}

.btn-content {
    position: relative;
    z-index: 2;
    color: #000;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 60%);
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.3s, transform 0.3s;
}

.btn-primary:hover .btn-glow {
    opacity: 0.3;
    transform: scale(1);
}

@media (max-width: 480px) {
    .glass-card {
        max-width: 100%;
        border-radius: 0;
        height: 100%;
        border: none;
    }

    .overlay {
        padding: 0;
    }

    /* Zoom video to hide watermark - High specificity for intro mode */
    body.intro-mode .brand-video {
        transform: scale(1.35) !important;
    }

    .brand-video {
        transform: scale(1.35);
    }
}

/* Dialog Modal Styles */
.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.dialog-overlay.active {
    opacity: 1;
    visibility: visible;
}

.dialog-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 32px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.dialog-overlay.active .dialog-card {
    transform: scale(1) translateY(0);
}

.dialog-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dialog-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 28px;
}

.dialog-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.dialog-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.dialog-btn.android11 {
    background: linear-gradient(135deg, rgba(0, 255, 163, 0.15) 0%, rgba(0, 255, 163, 0.05) 100%);
    border-color: rgba(0, 255, 163, 0.3);
}

.dialog-btn.android11:hover {
    background: linear-gradient(135deg, rgba(0, 255, 163, 0.25) 0%, rgba(0, 255, 163, 0.1) 100%);
    transform: translateX(5px);
    box-shadow: 0 0 20px rgba(0, 255, 163, 0.2);
}

.dialog-btn.android9 {
    background: linear-gradient(135deg, rgba(0, 163, 255, 0.15) 0%, rgba(0, 163, 255, 0.05) 100%);
    border-color: rgba(0, 163, 255, 0.3);
}

.dialog-btn.android9:hover {
    background: linear-gradient(135deg, rgba(0, 163, 255, 0.25) 0%, rgba(0, 163, 255, 0.1) 100%);
    transform: translateX(5px);
    box-shadow: 0 0 20px rgba(0, 163, 255, 0.2);
}

.dialog-btn .btn-icon {
    font-size: 2rem;
}

.dialog-btn .btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.dialog-btn .btn-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
}

.dialog-btn .btn-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.dialog-close {
    width: 100%;
    padding: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.dialog-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}