:root {
    --bg-color: #0f172a;
    --text-color: #f8fafc;
    --primary-color: #8b5cf6;
    --primary-hover: #7c3aed;
    --accent-color: #ec4899;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-container {
    width: 100%;
    max-width: 500px;
    min-height: 100vh;
    position: relative;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
}

/* Screens */
.screen {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    animation: fadeIn 0.4s ease-out forwards;
}

.screen.active {
    display: flex;
}

.screen.hidden {
    display: none !important;
}

/* Typography */
.logo {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}
.logo span {
    color: var(--primary-color);
}
.logo-small {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}
.logo-small span {
    color: var(--primary-color);
}
.subtitle {
    font-size: 1rem;
    color: #94a3b8;
    margin-bottom: 3rem;
    line-height: 1.5;
    text-align: center;
}

/* Glassmorphism Components */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--glass-shadow);
    width: 100%;
    position: relative;
    z-index: 10;
}

.glass-card-small {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    margin-top: 2rem;
    width: 100%;
}

/* Buttons */
.primary-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: inherit;
}
.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.3);
}

/* Icons & Animations */
.icon-pulse {
    width: 64px;
    height: 64px;
    background: rgba(139, 92, 246, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem;
    color: var(--primary-color);
    animation: pulse 2s infinite;
}

/* Background Blobs */
.background-decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}
.blob {
    position: absolute;
    filter: blur(60px);
    opacity: 0.5;
    border-radius: 50%;
}
.blob-1 {
    top: -10%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    animation: float 10s ease-in-out infinite alternate;
}
.blob-2 {
    bottom: 10%;
    left: -20%;
    width: 250px;
    height: 250px;
    background: var(--accent-color);
    animation: float 8s ease-in-out infinite alternate-reverse;
}

/* Tiny Camera 5x5 */
.tiny-camera-wrapper {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 5px;
    height: 5px;
    overflow: hidden;
    opacity: 0.1; /* Almost invisible */
    z-index: 1;
    pointer-events: none;
}
#camera-feed {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Loading Dots */
.loading-dots {
    display: inline-flex;
    gap: 4px;
    margin-top: 15px;
}
.loading-dots span {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: dotBounce 1.4s infinite ease-in-out both;
}
.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(139, 92, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0); }
}
@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, 30px); }
}
@keyframes dotBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}
