:root {
    --bg-gradient: linear-gradient(135deg, #060913 0%, #0d0f22 100%);
    --card-bg: rgba(255, 255, 255, 0.02);
    --card-border: rgba(255, 255, 255, 0.06);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-color: #6366f1;
    --accent-glow: rgba(99, 102, 241, 0.2);
    
    /* Brand Color Profiles */
    --google-bg: rgba(255, 255, 255, 0.05);
    --apple-bg: #ffffff;
    --zap-color: #10b981;
    --zap-glow: rgba(16, 185, 129, 0.15);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg-gradient);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
}

.portal-container {
    width: 100%;
    max-width: 460px;
    padding: 24px;
}

.portal-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 32px;
    padding: 48px 36px;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.brand-wrapper {
    position: relative;
    width: 76px;
    height: 76px;
    margin: 0 auto 28px;
}

.glow-ring {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--accent-color);
    border-bottom-color: var(--accent-color);
    animation: spin 2s linear infinite;
    box-shadow: 0 0 20px var(--accent-glow);
}

.app-icon {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.app-name {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.035em;
    margin-bottom: 12px;
    background: linear-gradient(to right, #ffffff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.status-text, .app-description {
    font-size: 0.98rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.app-description {
    margin-bottom: 36px;
    animation: fadeIn 0.4s ease forwards;
}

.store-buttons {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 15px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 1. Google Play Style */
.btn-android {
    background: var(--google-bg);
    color: #ffffff;
    border: 1px solid var(--card-border);
}

.btn-android:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* 2. App Store Style */
.btn-ios {
    background: var(--apple-bg);
    color: #000000;
}

.btn-ios:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

/* 3. Zap Store Style */
.btn-zap {
    background: rgba(16, 185, 129, 0.1);
    color: #5eead4;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.btn-zap:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: var(--zap-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--zap-glow);
}

.action-fallback {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 32px;
}

.action-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px dashed var(--accent-color);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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