  /* Modern CSS Reset */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Premium Color Palette */
:root {
    --primary: #4361ee;  /* Vibrant but trustworthy blue */
    --primary-light: #4895ef; /* Lighter accent */
    --secondary: #3f37c9; /* Deep blue for contrast */
    --accent: #4cc9f0;   /* Fresh teal for CTAs */
    --dark: #14213d;     /* Almost black for text */
    --light: #f8f9fa;    /* Clean background */
    --gray: #adb5bd;     /* Neutral gray */
    --success: #52b788;  /* Calming green */
    --border-radius: 12px;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Base Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* App Container */
.app-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
}

/* Screen Transitions */
.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: 10;
}

.screen.active {
    opacity: 1;
    pointer-events: all;
}

/* Logo & Branding */
.logo {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.logo::after {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.logo-inner {
    width: 70%;
    height: 70%;
    background-color: white;
    border-radius: 8px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    padding: 6px;
    z-index: 2;
}

.logo-dot {
    background-color: var(--primary);
    border-radius: 2px;
}

.app-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Language Greetings */
.greeting-container {
    height: 60px;
    margin: 1rem 0;
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}

.greeting-text {
    position: absolute;
    font-size: 1.5rem;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.8s ease;
}

/* Language Selector */
.language-selector {
    position: relative;
    width: 100%;
    max-width: 300px;
    margin: 2rem 0;
}

.language-dropdown {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: var(--border-radius);
    background-color: white;
    font-size: 1rem;
    color: var(--dark);
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.language-dropdown:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

/* Buttons - Premium Style */
.btn {
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(to right, var(--primary), var(--primary-light));
    color: white;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(67, 97, 238, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0.2), rgba(255,255,255,0));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover::after {
    opacity: 1;
}


.btn-secondary {
    background: linear-gradient(to right, var(--gray), var(--light));
    color: var(--primary);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(67, 97, 238, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0.2), rgba(255,255,255,0));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-secondary:hover::after {
    opacity: 1;
}

/* Auth Choice Screen */
.auth-choice {
    width: 100%;
    max-width: 400px;
    margin-top: 2rem;
}

.auth-card {
    padding: 1.5rem;
    margin: 1rem 0;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.auth-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.auth-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

/* PIN Input */
.pin-container {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
}

.pin-input {
    width: 50px;
    height: 60px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: var(--border-radius);
    font-size: 1.5rem;
    text-align: center;
    font-weight: 600;
    transition: var(--transition);
}

.pin-input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

/* Signup Options */
.signup-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    width: 100%;
    max-width: 400px;
    margin: 2rem 0;
}

.signup-card {
    padding: 1.5rem;
    background-color: white;
    border-radius: var(--border-radius);
    border: 1px solid rgba(0,0,0,0.05);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.signup-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.signup-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

/* Welcome Screen */
.welcome-content {
    text-align: center;
    max-width: 600px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.feature-card {
    padding: 1.5rem 1rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary);
}/* Welcome Screen Styles */
.welcome-heading h1 {
font-size: 2rem;
margin-bottom: 0.5rem;
background: linear-gradient(to right, var(--primary), var(--accent));
-webkit-background-clip: text;
background-clip: text;
color: transparent;
}

.welcome-heading p {
color: var(--gray);
font-size: 1.1rem;
}

.welcome-message h2 {
font-size: 1.5rem;
margin: 1.5rem 0 0.5rem;
color: var(--primary);
}

.welcome-message p {
color: var(--dark);
opacity: 0.9;
}

.feature-list {
width: 100%;
max-width: 400px;
margin: 2rem 0;
list-style: none;
}

.feature-list li {
padding: 0.8rem 1rem;
margin: 0.5rem 0;
background: white;
border-radius: var(--border-radius);
box-shadow: var(--shadow);
display: flex;
align-items: center;
transition: var(--transition);
}

.feature-list li:hover {
transform: translateX(5px);
box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.feature-list i {
margin-right: 1rem;
color: var(--primary);
width: 1.5rem;
text-align: center;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.animate-fade { animation: fadeIn 0.6s ease forwards; }
.animate-slide { animation: slideUp 0.6s ease forwards; }
.animate-pulse { animation: pulse 2s infinite ease; }

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }