:root {
    --bg-dark: #090d16;
    --card-bg: rgba(22, 28, 45, 0.7);
    --card-border: rgba(255, 255, 255, 0.12);
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --accent-emerald: #10b981;
    --accent-teal: #14b8a6;
    --apple-gradient: linear-gradient(135deg, #2c2d30 0%, #111215 100%);
    --google-gradient: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    --accent-glow: rgba(16, 185, 129, 0.25);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    min-height: 100vh;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    padding: 1.5rem;
}

/* Background Glow Effects */
.background-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 30%, rgba(16, 185, 129, 0.12), transparent 70%),
                radial-gradient(circle at 80% 80%, rgba(20, 184, 166, 0.08), transparent 60%);
    z-index: 0;
    pointer-events: none;
}

.ambient-sphere {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
    animation: float 12s ease-in-out infinite alternate;
}

.sphere-1 {
    width: 320px;
    height: 320px;
    background: #10b981;
    top: -50px;
    left: -50px;
}

.sphere-2 {
    width: 380px;
    height: 380px;
    background: #0ea5e9;
    bottom: -100px;
    right: -100px;
    animation-delay: -6s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 40px) scale(1.1); }
}

/* Main Container */
.container {
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 10;
}

/* Glassmorphic Card */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 28px;
    padding: 2.5rem 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5),
                0 0 40px var(--accent-glow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Brand Header */
.brand-header {
    margin-bottom: 2rem;
}

.logo-badge {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
    transform: rotate(-2deg);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.glass-card:hover .logo-badge {
    transform: rotate(0deg) scale(1.05);
}

.brand-icon {
    width: 42px;
    height: 42px;
}

.brand-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.brand-title {
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    background: linear-gradient(135deg, #ffffff 0%, #d1d5db 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.35rem;
}

.brand-tagline {
    font-size: 0.92rem;
    color: var(--text-secondary);
    font-weight: 500;
    line-height: 1.45;
}

/* Status Box */
.status-box {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
    animation: fadeIn 0.4s ease-out;
}

.status-box.hidden {
    display: none;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(16, 185, 129, 0.2);
    border-top-color: var(--accent-emerald);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    flex-shrink: 0;
}

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

.status-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-emerald);
}

.status-sub {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Divider */
.divider {
    margin: 1.5rem 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.divider span {
    padding: 0 0.85rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
}

/* Buttons Group */
.buttons-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.store-btn {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    border-radius: 18px;
    text-decoration: none;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.apple-btn {
    background: var(--apple-gradient);
}

.google-btn {
    background: var(--google-gradient);
}

.store-btn:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
}

.store-btn.highlighted {
    border-color: var(--accent-emerald);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.btn-icon {
    width: 28px;
    height: 28px;
    margin-right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    flex-grow: 1;
}

.btn-text .sub-text {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    font-weight: 600;
}

.btn-text .main-text {
    font-size: 1.05rem;
    font-weight: 700;
}

.arrow-icon {
    font-size: 1.2rem;
    opacity: 0.5;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.store-btn:hover .arrow-icon {
    opacity: 1;
    transform: translateX(4px);
}

/* Footer */
.card-footer {
    margin-top: 2rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.4;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
    .glass-card {
        padding: 2rem 1.5rem;
        border-radius: 24px;
    }
}
