/* New Design System */
:root {
    /* Brand Colors */
    --color-primary: #6C63FF;
    --color-primary-light: #8A84FF;
    --color-primary-dark: #554FC8;
    --color-secondary: #FF7B54;
    --color-secondary-light: #FF9D7C;
    --color-secondary-dark: #E06842;
    --color-accent: #FFD166;

    /* Neutrals */
    --color-white: #FFFFFF;
    --color-light: #F8F9FA;
    --color-gray: #E9ECEF;
    --color-medium: #ADB5BD;
    --color-dark: #212529;
    --color-black: #000000;

    /* Status Colors */
    --color-success: #06D6A0;
    --color-warning: #FFD166;
    --color-danger: #EF476F;
    --color-info: #118AB2;

    /* Glassmorphism */
    --glass-bg: rgba(108, 99, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --glass-backdrop: blur(12px);

    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Nunito', sans-serif;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 999px;

    /* Shadows */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 15px 30px rgba(0, 0, 0, 0.15);
}

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

body {
    font-family: var(--font-body);
    background: linear-gradient(135deg, #3a2f78, #6C63FF);
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    color: var(--color-white);
    line-height: 1.6;
    min-height: 100vh;
    min-height: -webkit-fill-available; /* Safari iOS fix */
    overflow-x: hidden;
    position: relative;
    padding: 0;
    
    /* Fallback for older browsers */
    background-color: #3a2f78;
}

/* Additional Safari fixes */
html {
    height: -webkit-fill-available;
}

/* Ensure gradient works on iOS Safari */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #3a2f78, #6C63FF);
    background-attachment: fixed;
    z-index: -2;
}


/* LOGIN SCREEN */
.login-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: var(--space-lg);
}

.login-container {
    text-align: center;
    max-width: 400px;
    width: 100%;
}

.login-logo {
    width: 110px;
    height: auto;
    margin-bottom: var(--space-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.login-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: var(--space-sm);
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.login-subtitle {
    color: var(--color-secondary-light);
    margin-bottom: var(--space-xl);
    font-size: 1rem;
}

.login-form h2 {
    margin-bottom: var(--space-sm);
    font-size: 1.5rem;
    color: var(--color-white);
}

.login-instructions {
    margin-bottom: var(--space-lg);
    color: rgba(255, 255, 255, 0.8);
}

.login-field {
    width: 100%;
    max-width: 320px;
    margin: 8px auto;
    padding: 12px 16px;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-dark);
    display: block;
}

.login-action {
    width: 100%;
    max-width: 320px;
    margin: 10px auto;
    padding: 14px 16px;
    border-radius: 25px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    background: var(--color-primary);
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}


.login-action:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.login-action.google {
    background: #fff;
    color: #555;
    border: 1px solid #ccc;
}

.login-action.outline {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.google-icon {
    font-weight: bold;
    color: #4285f4;
}

.login-note {
    display: block;
    width: 100%;
    max-width: 280px;
    text-align: center;
    margin: 10px auto 0;
    font-size: 0.8rem;
    line-height: 1.3em;
    color: #ddd;
}

/* Layout */
#app {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-lg);
}

/* Header */
.app-header {
    text-align: center;
    padding: var(--space-xl) 0 var(--space-md);
    margin-bottom: var(--space-lg);
}

.app-logo {
    max-width: 120px;
    height: auto;
    margin-bottom: var(--space-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.app-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: var(--space-sm);
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.app-subtitle {
    font-size: 1.25rem;
    color: var(--color-secondary-light);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 500;
}

/* Navigation */
.main-nav {
    margin-bottom: var(--space-xl);
}

.nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: var(--space-sm);
    justify-content: center;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: var(--color-white);
    text-align: center;
}

.nav-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.25);
}

.nav-item.active {
    background: var(--color-secondary);
    color: var(--color-white);
    box-shadow: 0 6px 15px rgba(255, 123, 84, 0.4);
}

.nav-icon {
    font-size: 1.5rem;
    margin-bottom: var(--space-xs);
}

/* Did You Know Section */
.did-you-know {
    text-align: center;
    margin-bottom: var(--space-lg);
    padding: var(--space-lg);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.did-you-know h2 {
    font-family: var(--font-heading);
    color: var(--color-white);
    margin-bottom: var(--space-sm);
    font-size: 2rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.did-you-know p {
    color: var(--color-secondary-light);
    font-size: 1.1rem;
}

/* Facts Carousel */
.facts-carousel {
    position: relative;
    height: 200px;
    margin-bottom: var(--space-xl);
    overflow: hidden;
    border-radius: var(--radius-md);
}

.fact-card {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-lg);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.8s ease;
}

.fact-card.active {
    opacity: 1;
    transform: translateX(0);
}

.fact-card.prev {
    opacity: 0;
    transform: translateX(-100%);
}

.fact-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: var(--space-sm);
    display: block;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.fact-text {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.2rem;
    line-height: 1.4;
    max-width: 400px;
}

/* Emergency Section */
.emergency-section {
    margin-bottom: var(--space-xl);
}

.emergency-content h2 {
    text-align: center;
    font-family: var(--font-heading);
    color: var(--color-white);
    margin-bottom: var(--space-lg);
    font-size: 1.75rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.emergency-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-md);
}

.btn--emergency {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    background: var(--color-secondary);
    color: var(--color-white);
    border: none;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(255, 123, 84, 0.3);
}

.btn--emergency:hover {
    background: var(--color-secondary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 123, 84, 0.4);
}

.btn-icon {
    font-size: 1.75rem;
    margin-bottom: var(--space-sm);
}

/* Main Content */
.main-content {
    margin-bottom: var(--space-xl);
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

/* Cards */
.card {
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    border-radius: var(--radius-md);
    background: rgba(108, 99, 255, 0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: var(--shadow-sm);
}

.card h2, .card h3 {
    font-family: var(--font-heading);
    color: var(--color-white);
    margin-bottom: var(--space-md);
    position: relative;
    padding-bottom: var(--space-sm);
}

.card h2 {
    font-size: 1.8rem;
}

.card h3 {
    font-size: 1.5rem;
}

.card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--color-secondary);
    border-radius: var(--radius-full);
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border-radius: var(--radius-full);
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: var(--space-sm) var(--space-sm) var(--space-sm) 0;
}

.btn--primary {
    background: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
}

.btn--primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(108, 99, 255, 0.4);
}

.btn--secondary {
    background: var(--color-secondary);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(255, 123, 84, 0.3);
}

.btn--secondary:hover {
    background: var(--color-secondary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 123, 84, 0.4);
}

.btn--outline {
    background: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
}

.btn--outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Section Content */
.section-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
}

.content-item {
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    background: rgba(108, 99, 255, 0.15);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.content-item h4 {
    color: var(--color-white);
    margin-bottom: var(--space-sm);
    font-size: 1.25rem;
}

.content-item h5 {
    color: var(--color-secondary-light);
    margin-bottom: var(--space-xs);
    margin-top: var(--space-md);
    font-size: 1.1rem;
}

.content-item p, .content-item li {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--space-sm);
}

.content-item ul {
    padding-left: var(--space-lg);
}

.content-item li {
    margin-bottom: var(--space-xs);
}

/* Quiz Section */
.quiz-header {
    margin-bottom: var(--space-lg);
}

.quiz-progress {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--color-secondary);
    border-radius: var(--radius-full);
    width: 5%;
    transition: width 0.5s ease;
}

.progress-text {
    color: var(--color-white);
    font-weight: 600;
    min-width: 80px;
}

.question-card {
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    background: rgba(108, 99, 255, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    margin-bottom: var(--space-lg);
}

.question-meta {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.category-badge, .level-badge {
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
}

.category-badge {
    background: var(--color-primary);
    color: var(--color-white);
}

.level-badge {
    background: var(--color-secondary);
    color: var(--color-white);
}

.question-text {
    font-size: 1.25rem;
    color: var(--color-white);
    margin-bottom: var(--space-lg);
    line-height: 1.4;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
}

.option-card {
    padding: var(--space-md);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.option-card:hover {
    background: rgba(255, 255, 255, 0.2);
}

.option-card.selected {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
}

.quiz-navigation {
    display: flex;
    justify-content: space-between;
}

/* Results Section */
.results-container {
    text-align: center;
    padding: var(--space-lg);
}

.risk-gauge {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    position: relative;
    margin: 0 auto var(--space-lg) auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.6s ease;
    background: conic-gradient(
        var(--color-success) 0% 25%,
        var(--color-warning) 25% 50%,
        var(--color-secondary) 50% 75%,
        var(--color-danger) 75% 100%
    );
}

.risk-gauge::before {
    content: '';
    position: absolute;
    width: 160px;
    height: 160px;
    background: rgba(108, 99, 255, 0.2);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.gauge-inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

.gauge-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: var(--space-sm);
    display: block;
}

.rating-text {
    font-size: 1.5rem;
    font-weight: 700;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    display: inline-block;
    margin-bottom: var(--space-md);
}

.rating-low {
    background: var(--color-success);
    color: white;
}

.rating-moderate {
    background: var(--color-warning);
    color: #333;
}

.rating-high {
    background: var(--color-secondary);
    color: white;
}

.rating-severe {
    background: var(--color-danger);
    color: white;
}

.advice-text {
    font-size: 1.1rem;
    margin-bottom: var(--space-lg);
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: rgba(255, 255, 255, 0.9);
}

.results-actions {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* Inspiration Section */
.emotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--space-md);
}

.emotion-card {
    padding: var(--space-md);
    border-radius: var(--radius-md);
    background: rgba(108, 99, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.emotion-card:hover {
    transform: translateY(-5px);
    background: rgba(108, 99, 255, 0.3);
}

.emotion-emoji {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
}

.emotion-label {
    color: var(--color-white);
    font-weight: 600;
}

.scripture-section {
    margin-top: var(--space-lg);
    padding: var(--space-lg);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    text-align: center;
}

.scripture-text {
    font-size: 1.25rem;
    font-style: italic;
    margin-bottom: var(--space-md);
    color: rgba(255, 255, 255, 0.95);
}

.scripture-reference {
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--color-secondary-light);
}

.scripture-message {
    margin-bottom: var(--space-md);
    color: rgba(255, 255, 255, 0.9);
}

.prayer-section {
    margin-top: var(--space-lg);
}

.prayer-section h4 {
    color: var(--color-white);
    margin-bottom: var(--space-sm);
}

.prayer-text {
    font-size: 1.1rem;
    margin-bottom: var(--space-md);
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
}

/* Personal Prayer */
.personal-prayer-textarea {
    width: 100%;
    min-height: 90px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 12px;
    font-size: 1rem;
    resize: vertical;
    background: rgba(255,255,255,0.09);
    color: #fff;
    box-sizing: border-box;
    font-family: inherit;
}

.personal-prayer-textarea::placeholder {
    color: rgba(255,255,255,0.6);
}

.personal-prayer-box label {
    display: block;
    margin-bottom: 8px;
    color: #fff;
    font-weight: 600;
}

/* Safety Checklist */
.safety-checklist {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.checklist-item input {
    width: 20px;
    height: 20px;
    accent-color: var(--color-secondary);
}

.checklist-item label {
    flex: 1;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
}

.safety-progress {
    margin-top: var(--space-lg);
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    padding: var(--space-sm);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--color-white);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: var(--space-md);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: rgba(108, 99, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-lg);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-white);
}

.close-modal {
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: var(--space-xs);
}

.modal-body {
    margin-bottom: var(--space-md);
}

.modal-body p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-md);
}

.modal-body label {
    display: block;
    color: var(--color-white);
    margin-bottom: var(--space-xs);
    font-weight: 600;
}

.modal-body h4 {
    color: var(--color-white);
    margin-top: var(--space-md);
    margin-bottom: var(--space-sm);
}

.modal-body ul {
    padding-left: var(--space-lg);
    margin-bottom: var(--space-md);
}

.modal-body li {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-xs);
}

.modal-disclaimer {
    margin-top: 20px;
    padding: 12px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    border-left: 4px solid var(--color-warning);
}

.modal-disclaimer em {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.4;
}

.input-field {
    width: 100%;
    padding: var(--space-sm);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
}

.input-field::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Footer */
.app-footer {
    text-align: center;
    padding: var(--space-lg) 0;
    margin-top: var(--space-xl);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-disclaimer {
    margin-top: 12px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    font-style: italic;
    text-align: center;
    line-height: 1.4;
}

/* Quick Exit */
.quick-exit {
    position: fixed;
    top: var(--space-md);
    right: var(--space-md);
    z-index: 1000;
}

.btn--exit {
    background: var(--color-danger);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.btn--exit:hover {
    background: #b91c1c;
    transform: translateY(-1px);
}
/* Back to Login Button */
.btn--back {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    margin-right: 10px;
}

.btn--back:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* Back to Top Button */
.backTopBtn {
    margin-top: 24px;
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.backTopBtn:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

/* Toast Notifications */
.toast {
    background: rgba(108, 99, 255, 0.9);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: slideInRight 0.3s ease;
    max-width: 300px;
}

.toast.success {
    background: rgba(6, 214, 160, 0.9);
}

.toast.error {
    background: rgba(239, 71, 111, 0.9);
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
    #app {
        padding: var(--space-md);
    }

    .app-title {
        font-size: 2rem;
    }

    .app-subtitle {
        font-size: 1rem;
    }

    .nav-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .options-grid {
        grid-template-columns: 1fr;
    }

    .facts-carousel {
        height: 250px;
    }

    .fact-number {
        font-size: 2.5rem;
    }

    .fact-text {
        font-size: 1.1rem;
    }

    .results-actions {
        flex-direction: column;
        align-items: center;
    }

    .results-actions .btn {
        margin: var(--space-xs) 0;
    }
}

@media (max-width: 480px) {
    .nav-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .emergency-buttons {
        grid-template-columns: 1fr;
    }

    .app-title {
        font-size: 1.75rem;
    }

    .section-content {
        grid-template-columns: 1fr;
    }

    .facts-carousel {
        height: 280px;
    }
}
