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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #8b5cf6 100%);
    min-height: 100vh;
    color: #fff;
    overflow-x: hidden;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.header {
    text-align: center;
    margin-bottom: 2rem;
}

h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.countdown-grid {
    text-align: center;
}

.hero-days {
    text-align: center;
    margin-bottom: 1.5rem;
}

.days-number {
    font-size: 12rem;
    font-weight: 900;
    line-height: 1;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.4);
    display: block;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.days-label {
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 6px;
    opacity: 0.9;
    font-weight: 600;
}

.sub-countdown {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.time-unit {
    text-align: center;
}

.time-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    opacity: 0.9;
}

.time-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.7;
}

.date-info {
    text-align: center;
    font-size: 1rem;
    opacity: 0.9;
    margin-top: 1rem;
}

.details-section {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.details-toggle {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto;
    transition: all 0.2s ease;
}

.details-toggle:hover {
    color: #fff;
}

.details-content {
    margin-top: 1rem;
    animation: slideDown 0.3s ease-out;
}

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

.maghrib-time {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 0.75rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.maghrib-label {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.maghrib-value {
    font-size: 1.1rem;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.location-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 1rem;
}

.button {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.info-text {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 0.75rem;
}

.footer {
    text-align: center;
    margin-top: 2rem;
    opacity: 0.9;
}

.contact-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
}

.contact-link {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.2s ease;
}

.contact-link:hover {
    border-bottom-color: #fff;
    opacity: 1;
}


.change-location-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: underline;
    padding: 0.5rem;
    transition: all 0.2s ease;
}

.change-location-btn:hover {
    color: #fff;
}

/* Language Toggle */
.language-toggle {
    position: absolute;
    top: 2rem;
    right: 2rem;
    display: flex;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 0.25rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    gap: 0.25rem;
}

.language-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    transition: all 0.2s ease;
}

.language-btn.active {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.language-btn:hover:not(.active) {
    color: rgba(255, 255, 255, 0.9);
}

/* FAB Buttons Container */
.fab-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 100;
}

/* WhatsApp FAB */
.whatsapp-fab {
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    position: relative;
}

.whatsapp-fab:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}

/* Download FAB */
.download-fab {
    width: 60px;
    height: 60px;
    background: #4F46E5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.4);
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    position: relative;
}

.download-fab:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 25px rgba(79, 70, 229, 0.5);
}

.fab-icon {
    width: 28px;
    height: 28px;
    fill: white;
}

.fab-label {
    position: absolute;
    right: 70px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.fab:hover .fab-label {
    opacity: 1;
}

@media (max-width: 768px) {
    .fab-container {
        bottom: 1.5rem;
        right: 1.5rem;
    }

    .whatsapp-fab,
    .download-fab {
        width: 56px;
        height: 56px;
    }

    .fab-icon {
        width: 24px;
        height: 24px;
    }

    .fab-label {
        display: none;
    }
}

/* Onboarding Styles */
.onboarding-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

.onboarding-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    color: #1f2937;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #f3f4f6;
    color: #111827;
}

.onboarding-header {
    text-align: center;
    margin-bottom: 2rem;
}

.onboarding-emoji {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce 1s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.onboarding-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.onboarding-subtitle {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.5;
}

.location-grid {
    display: grid;
    gap: 1rem;
    margin: 2rem 0;
}

.location-card {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border: 3px solid transparent;
    border-radius: 16px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.location-card:hover {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.location-card.selected {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.location-flag {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.location-info {
    flex: 1;
}

.location-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.25rem;
}

.location-details {
    font-size: 0.875rem;
    color: #6b7280;
}

.onboarding-button {
    width: 100%;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.onboarding-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(59, 130, 246, 0.5);
}

.onboarding-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.section-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    text-align: center;
}

@media (max-width: 1024px) {
    .container {
        max-width: 600px;
        padding: 1.5rem;
    }

    .days-number {
        font-size: 8rem;
    }

    h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .container {
        padding: 1rem;
        padding-top: 4.5rem;
    }

    .language-toggle {
        top: 0.75rem;
        right: 50%;
        transform: translateX(50%);
        background: rgba(255, 255, 255, 0.2);
        padding: 0.3rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .language-btn {
        font-size: 0.875rem;
        padding: 0.5rem 1.25rem;
        font-weight: 700;
    }

    .days-number {
        font-size: 6rem;
    }

    .days-label {
        font-size: 1.5rem;
        letter-spacing: 4px;
    }

    .sub-countdown {
        gap: 1rem;
        flex-wrap: wrap;
    }

    .time-number {
        font-size: 1.3rem;
    }

    .time-label {
        font-size: 0.7rem;
    }

    .onboarding-card {
        padding: 2rem 1.5rem;
    }

    .onboarding-title {
        font-size: 1.5rem;
    }

    .location-card {
        padding: 1.25rem;
    }

    .location-name {
        font-size: 1.1rem;
    }
}
