/* ============================================
   SALAT TIME — Prayer Times Premium Design
   ============================================ */

/* === Reset & Base === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0f1a;
    --bg-secondary: #111827;
    --bg-card: #1a2332;
    --bg-card-hover: #1e2a3d;
    --bg-glass: rgba(17, 24, 39, 0.7);

    --accent: #10b981;
    --accent-light: #34d399;
    --accent-dark: #059669;
    --accent-glow: rgba(16, 185, 129, 0.3);
    --accent-glow-soft: rgba(16, 185, 129, 0.08);

    --gold: #f59e0b;
    --gold-light: #fbbf24;

    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --border: rgba(148, 163, 184, 0.1);
    --border-accent: rgba(16, 185, 129, 0.2);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px var(--accent-glow);

    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-arabic: 'Amiri', serif;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* === Animated Background === */
.bg-pattern {
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(16, 185, 129, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(245, 158, 11, 0.02) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
}

.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    pointer-events: none;
    animation: float 20s ease-in-out infinite;
}

.bg-glow-1 {
    width: 500px;
    height: 500px;
    background: rgba(16, 185, 129, 0.06);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.bg-glow-2 {
    width: 400px;
    height: 400px;
    background: rgba(59, 130, 246, 0.04);
    bottom: -100px;
    left: -100px;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -20px) scale(1.05); }
    50% { transform: translate(-20px, 30px) scale(0.95); }
    75% { transform: translate(20px, 20px) scale(1.02); }
}

/* === App Container === */
.app-container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

/* === Header === */
.header {
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(10, 15, 26, 0.8);
    border-bottom: 1px solid var(--border);
    margin: 0 -20px;
    padding-left: 20px;
    padding-right: 20px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 900px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 8px var(--accent-glow));
}

.logo-text h1 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 0.7rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
}

.header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.location-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-card);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.location-badge svg {
    color: var(--accent);
    flex-shrink: 0;
}

/* === Date Section === */
.date-section {
    padding: 24px 0 8px;
}

.date-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.date-gregorian {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.date-weekday {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.date-full {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 500;
}

.date-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

.date-hijri {
    display: flex;
    flex-direction: column;
}

.date-hijri-label {
    font-size: 0.7rem;
    color: var(--gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.date-hijri-value {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 500;
    font-family: var(--font-arabic);
}

/* === Hero Section (Next Prayer) === */
.hero-section {
    padding: 16px 0 24px;
}

.hero-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(16, 185, 129, 0.08) 100%);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-xl);
    padding: 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-glow);
    transition: var(--transition);
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.hero-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, var(--accent-glow-soft), transparent 70%);
    pointer-events: none;
}

.hero-status {
    font-size: 0.75rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 700;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.hero-prayer-name {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: 4px;
    position: relative;
    z-index: 1;
}

.hero-time {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--accent-light);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    font-variant-numeric: tabular-nums;
}

.hero-countdown-wrap {
    position: relative;
    z-index: 1;
}

.hero-countdown-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 4px;
}

.hero-countdown {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.05em;
}

.hero-progress-bar {
    margin-top: 24px;
    height: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 100px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.hero-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-dark), var(--accent-light));
    border-radius: 100px;
    transition: width 1s linear;
    width: 0%;
    box-shadow: 0 0 12px var(--accent-glow);
}

/* === Prayers Grid === */
.prayers-section {
    padding: 8px 0 24px;
}

.section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.prayers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
}

.prayer-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    transition: var(--transition);
    cursor: default;
    position: relative;
    overflow: hidden;
}

.prayer-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: transparent;
    transition: var(--transition);
    border-radius: 0 4px 4px 0;
}

.prayer-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.prayer-card.is-active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), var(--bg-card));
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}

.prayer-card.is-active::before {
    background: var(--accent);
}

.prayer-card.is-passed {
    opacity: 0.5;
}

.prayer-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 36px;
    text-align: center;
}

.prayer-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.prayer-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.prayer-arabic {
    font-family: var(--font-arabic);
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.3;
}

.prayer-time {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.prayer-card.is-active .prayer-time {
    color: var(--accent-light);
}

.prayer-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--text-muted);
    transition: var(--transition);
}

.prayer-card.is-active .prayer-status-dot {
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent-glow);
    animation: pulse-dot 2s ease-in-out infinite;
}

.prayer-card.is-passed .prayer-status-dot {
    background: var(--text-muted);
    opacity: 0.5;
}

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.6; }
}

/* === Calendar / Monthly Schedule === */
.calendar-section {
    padding: 8px 0 24px;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.month-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.month-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.month-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent);
    color: var(--accent);
}

.month-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 140px;
    text-align: center;
}

.calendar-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--bg-card);
}

.calendar-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    min-width: 700px;
}

.calendar-table th {
    padding: 12px 14px;
    text-align: left;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    border-bottom: 1px solid var(--border);
    background: rgba(16, 185, 129, 0.04);
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 2;
}

.calendar-table td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.05);
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.calendar-table tbody tr {
    transition: var(--transition);
}

.calendar-table tbody tr:hover {
    background: rgba(16, 185, 129, 0.04);
}

.calendar-table tbody tr:last-child td {
    border-bottom: none;
}

.calendar-table tbody tr.is-today {
    background: rgba(16, 185, 129, 0.08);
}

.calendar-table tbody tr.is-today td {
    color: var(--text-primary);
    font-weight: 500;
}

.calendar-table tbody tr.is-today td:first-child {
    color: var(--accent-light);
    font-weight: 700;
}

.td-date {
    font-weight: 500;
    color: var(--text-primary) !important;
}

.td-hijri {
    color: var(--gold) !important;
    font-family: var(--font-arabic);
    font-size: 0.85rem;
}

/* === Extra Info === */
.extra-section {
    padding: 0 0 24px;
}

.extra-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.extra-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
    transition: var(--transition);
}

.extra-card:hover {
    border-color: var(--border-accent);
}

.extra-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
}

.extra-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

/* === Footer === */
.footer {
    padding: 24px 0;
    text-align: center;
    border-top: 1px solid var(--border);
}

.footer-meta {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
}

.footer-dot {
    color: var(--text-muted);
    opacity: 0.5;
}

.footer-credit {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.footer-credit a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.footer-credit a:hover {
    text-decoration: underline;
}

/* === Loading Overlay === */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* === Animations === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.date-section,
.hero-section,
.prayers-section,
.calendar-section,
.extra-section {
    animation: fadeInUp 0.6s ease forwards;
}

.hero-section { animation-delay: 0.1s; }
.prayers-section { animation-delay: 0.2s; }
.calendar-section { animation-delay: 0.3s; }
.extra-section { animation-delay: 0.4s; }

/* === Responsive === */
@media (max-width: 640px) {
    .app-container {
        padding: 0 10px 20px;
    }

    .header {
        margin: 0 -10px;
        padding: 14px 10px;
    }

    .header-inner {
        gap: 8px;
    }

    .logo {
        gap: 8px;
    }

    .logo-icon {
        width: 32px;
        height: 32px;
    }

    .logo-text h1 {
        font-size: 1.1rem;
    }

    .logo-subtitle {
        font-size: 0.6rem;
    }

    .location-badge {
        padding: 5px 10px;
        font-size: 0.72rem;
    }

    /* Date */
    .date-section {
        padding: 16px 0 4px;
    }

    .date-card {
        gap: 12px;
    }

    .date-weekday {
        font-size: 0.7rem;
    }

    .date-full,
    .date-hijri-value {
        font-size: 0.95rem;
    }

    .date-divider {
        height: 32px;
    }

    /* Hero */
    .hero-section {
        padding: 12px 0 16px;
    }

    .hero-card {
        padding: 22px 16px;
        border-radius: var(--radius-lg);
    }

    .hero-prayer-name {
        font-size: 1.7rem;
    }

    .hero-time {
        font-size: 1.15rem;
        margin-bottom: 14px;
    }

    .hero-countdown {
        font-size: 1.4rem;
    }

    .hero-progress-bar {
        margin-top: 18px;
    }

    /* Ramadan */
    .ramadan-section {
        padding: 4px 0 16px;
    }

    .ramadan-cards {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-bottom: 14px;
    }

    .ramadan-card {
        padding: 18px 12px;
    }

    .ramadan-card-icon {
        font-size: 1.5rem;
        margin-bottom: 4px;
    }

    .ramadan-card-label {
        font-size: 0.9rem;
    }

    .ramadan-card-sublabel {
        font-size: 0.62rem;
        margin-bottom: 8px;
    }

    .ramadan-card-time {
        font-size: 1.3rem;
    }

    .ramadan-card-status {
        font-size: 0.62rem;
    }

    .ramadan-progress-wrap {
        padding: 14px 14px;
    }

    .ramadan-progress-labels {
        font-size: 0.6rem;
    }

    .ramadan-countdown {
        font-size: 1.2rem;
        margin-top: 8px;
    }

    .ramadan-progress-fill::after {
        width: 10px;
        height: 10px;
    }

    /* Section titles */
    .section-title {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }

    /* Prayer grid */
    .prayers-section {
        padding: 4px 0 16px;
    }

    .prayers-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .prayer-card {
        padding: 12px 14px;
        gap: 10px;
    }

    .prayer-icon {
        font-size: 1.2rem;
        width: 28px;
    }

    .prayer-name {
        font-size: 0.85rem;
    }

    .prayer-arabic {
        font-size: 0.75rem;
    }

    .prayer-time {
        font-size: 1rem;
    }

    /* Calendar */
    .calendar-section {
        padding: 4px 0 16px;
    }

    .calendar-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 12px;
    }

    .calendar-table {
        font-size: 0.72rem;
        min-width: 580px;
    }

    .calendar-table th {
        padding: 8px 8px;
        font-size: 0.6rem;
    }

    .calendar-table td {
        padding: 7px 8px;
    }

    /* Extra */
    .extra-section {
        padding: 0 0 16px;
    }

    .extra-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .extra-card {
        padding: 12px;
    }

    .extra-label {
        font-size: 0.62rem;
    }

    .extra-value {
        font-size: 0.95rem;
    }

    /* Footer */
    .footer {
        padding: 16px 0;
    }

    .footer-meta {
        flex-direction: column;
        gap: 2px;
        font-size: 0.65rem;
    }

    .footer-dot {
        display: none;
    }

    .footer-credit {
        font-size: 0.68rem;
    }
}

/* Extra small screens */
@media (max-width: 380px) {
    .ramadan-cards {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .hero-prayer-name {
        font-size: 1.4rem;
    }

    .hero-countdown {
        font-size: 1.2rem;
    }

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

/* === Ramadan Toggle Switch === */
.ramadan-toggle {
    display: flex;
    align-items: center;
}

.toggle-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.toggle-switch input {
    display: none;
}

.toggle-slider {
    width: 40px;
    height: 22px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    position: relative;
    transition: var(--transition);
    flex-shrink: 0;
}

.toggle-slider::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--text-muted);
    transition: var(--transition);
}

.toggle-switch input:checked + .toggle-slider {
    background: rgba(245, 158, 11, 0.2);
    border-color: var(--gold);
}

.toggle-switch input:checked + .toggle-slider::after {
    transform: translateX(18px);
    background: var(--gold);
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

.toggle-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition);
}

.toggle-switch input:checked ~ .toggle-label {
    color: var(--gold);
}

/* === Ramadan Section === */
.ramadan-section {
    padding: 8px 0 24px;
    animation: fadeInUp 0.5s ease forwards;
}

.ramadan-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.ramadan-card {
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.ramadan-card::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.sehri-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(245, 158, 11, 0.1) 100%);
    border: 1px solid rgba(245, 158, 11, 0.25);
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.08);
}

.sehri-card::before {
    background: radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.08), transparent 70%);
}

.iftar-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(16, 185, 129, 0.1) 100%);
    border: 1px solid rgba(16, 185, 129, 0.25);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.08);
}

.iftar-card::before {
    background: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.08), transparent 70%);
}

.ramadan-card:hover {
    transform: translateY(-3px);
}

.sehri-card:hover {
    box-shadow: 0 8px 40px rgba(245, 158, 11, 0.15);
}

.iftar-card:hover {
    box-shadow: 0 8px 40px rgba(16, 185, 129, 0.15);
}

.ramadan-card-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.ramadan-card-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.sehri-card .ramadan-card-label {
    color: var(--gold-light);
}

.iftar-card .ramadan-card-label {
    color: var(--accent-light);
}

.ramadan-card-sublabel {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 12px;
}

.ramadan-card-time {
    font-size: 1.8rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

.ramadan-card-status {
    font-size: 0.72rem;
    margin-top: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    min-height: 1.2em;
}

.sehri-card .ramadan-card-status {
    color: var(--gold);
}

.iftar-card .ramadan-card-status {
    color: var(--accent);
}

/* Ramadan Progress */
.ramadan-progress-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
}

.ramadan-progress-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}

.ramadan-progress-center {
    color: var(--text-secondary);
    font-weight: 600;
}

.ramadan-progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 100px;
    overflow: hidden;
    position: relative;
}

.ramadan-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--accent));
    border-radius: 100px;
    transition: width 1s linear;
    width: 0%;
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.3);
    position: relative;
}

.ramadan-progress-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background: var(--accent-light);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-glow);
}

.ramadan-countdown {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 12px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.05em;
}

@media (max-width: 640px) {
    .ramadan-cards {
        grid-template-columns: 1fr;
    }

    .ramadan-card {
        padding: 22px 18px;
    }

    .ramadan-card-time {
        font-size: 1.5rem;
    }

    .ramadan-countdown {
        font-size: 1.3rem;
    }

    .toggle-label {
        display: none;
    }
}

/* === Scrollbar === */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}
