/**
 * Imaan360 - Component Styles & Interactive States
 * Source of Truth: mockups/DESIGN_PROPOSAL.md (Option A "Sacred Noor")
 */

/* ==========================================================================
   GLASS CARD BASE & STATES
   ========================================================================== */
.glass-card {
    background: var(--bg-glass-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow-glass);
    position: relative;
    overflow: hidden;
    transition: transform var(--dur-normal) var(--ease-out-quad),
                box-shadow var(--dur-normal) var(--ease-out-quad),
                border-color var(--dur-normal) ease;
}

.glass-card:hover {
    border-color: rgba(212, 175, 55, 0.45);
    box-shadow: var(--shadow-card), var(--shadow-glow);
}

.glass-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
    opacity: 0.8;
}

/* ==========================================================================
   MARQUEE TICKER COMPONENT
   ========================================================================== */
.ticker-bar {
    width: 100%;
    background: rgba(11, 31, 35, 0.95);
    border-bottom: 1px solid var(--border-glass);
    overflow: hidden;
    display: flex;
    align-items: center;
    height: 38px;
    font-size: var(--font-xs);
    position: relative;
    z-index: 5;
}

[data-theme="light"] .ticker-bar {
    background: #e4ecea;
}

.ticker-badge {
    background: var(--gold-primary);
    color: #0b1f23;
    font-weight: 700;
    padding: 0 var(--space-3);
    height: 100%;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
    flex-shrink: 0;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ticker-track {
    display: flex;
    white-space: nowrap;
    width: max-content;
    animation: marqueeTicker 34s linear infinite;
    will-change: transform;
}

.ticker-bar:hover .ticker-track,
.ticker-bar:focus-within .ticker-track,
.ticker-track:hover,
.ticker-track:focus-within {
    animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
    .ticker-bar {
        display: none !important;
    }
}

.ticker-item {
    padding: 0 var(--space-6);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.ticker-dot {
    color: var(--gold-primary);
    font-size: 0.5rem;
}

@keyframes marqueeTicker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==========================================================================
   HERO NEXT PRAYER & COUNTDOWN RING
   ========================================================================== */
main.page-wrapper .hero-section,
.hero-section {
    padding: var(--space-4) 0 var(--space-8);
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: auto;
}

.hero-banner-season {
    background: linear-gradient(90deg, rgba(31, 122, 99, 0.4) 0%, rgba(212, 175, 55, 0.25) 50%, rgba(31, 122, 99, 0.4) 100%);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: var(--space-3) var(--space-4);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-6);
    flex-wrap: wrap;
    gap: var(--space-2);
    width: 100%;
    box-sizing: border-box;
}

.hero-banner-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: 600;
    font-size: var(--font-sm);
    color: var(--gold-light);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
    align-items: stretch;
    width: 100%;
}

@media (min-width: 900px) {
    .hero-grid {
        grid-template-columns: 1.15fr 0.85fr;
    }
}

.hero-grid > .next-prayer-hero,
.hero-grid > .today-card,
.next-prayer-hero {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 340px;
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.card-top-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.hijri-pill {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold-light);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--radius-pill);
    padding: var(--space-1) var(--space-3);
    font-size: var(--font-xs);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

[data-theme="light"] .hijri-pill {
    color: #855f00;
}

.prayer-display-center {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: var(--space-4);
    flex-wrap: wrap;
    margin: var(--space-4) 0;
}

.prayer-info-text {
    min-width: 0;
}

.prayer-label {
    font-size: var(--font-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-weight: 600;
}

.prayer-name {
    font-size: var(--font-2xl);
    font-weight: 800;
    line-height: 1.1;
    margin: var(--space-1) 0;
}

.prayer-target-time {
    font-size: var(--font-md);
    color: var(--gold-primary);
    font-weight: 600;
}

/* SVG Countdown Ring */
.countdown-ring-wrap {
    position: relative;
    width: 140px;
    height: 140px;
    flex-shrink: 0;
}

.countdown-svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.countdown-circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 8;
}

[data-theme="light"] .countdown-circle-bg {
    stroke: rgba(11, 31, 35, 0.08);
}

.countdown-circle-progress {
    fill: none;
    stroke: url(#goldGradientOptionA);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 377;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s linear;
}

.countdown-inner-time {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.countdown-digits {
    font-size: var(--font-base);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.countdown-subtext {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* 5 Daily Prayers Strip */
.prayer-strip {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-2);
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-subtle);
}

.prayer-slot {
    text-align: center;
    padding: var(--space-2) var(--space-1);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    min-width: 0;
    transition: all var(--dur-fast) ease;
}

.prayer-slot.active {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--gold-primary);
}

.slot-name {
    font-size: var(--font-xs);
    color: var(--text-muted);
    display: block;
}

.slot-time {
    font-size: var(--font-sm);
    font-weight: 700;
    color: var(--text-primary);
    display: block;
    margin-top: 2px;
}

.prayer-slot.active .slot-name {
    color: var(--gold-primary);
    font-weight: 600;
}

/* ==========================================================================
   TODAY HIGHLIGHTS SLIDER
   ========================================================================== */
.slider-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 340px;
}

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

.slider-title {
    font-size: var(--font-md);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.slider-controls {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.slider-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--dur-fast) ease, transform var(--dur-fast) ease;
    min-height: 36px;
    min-width: 36px;
}

.slider-btn:hover {
    background: var(--bg-glass-hover);
    transform: scale(1.05);
    color: var(--gold-primary);
}

.slider-track-container {
    overflow: hidden;
    position: relative;
    border-radius: var(--radius-md);
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.slider-slides {
    display: flex;
    transition: transform var(--dur-normal) var(--ease-out-quad);
    width: 100%;
}

.slide-item {
    min-width: 100%;
    width: 100%;
    padding: var(--space-3) var(--space-2);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 180px;
}

.slide-tag {
    font-size: var(--font-xs);
    color: var(--teal-accent);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-1);
}

.slide-heading {
    font-size: var(--font-lg);
    font-weight: 700;
    margin-bottom: var(--space-2);
    line-height: 1.25;
}

.slide-body {
    font-size: var(--font-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-3);
}

.slide-badge-time {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: rgba(31, 122, 99, 0.25);
    border: 1px solid var(--teal-accent);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: var(--font-base);
    color: var(--teal-accent);
    width: fit-content;
}

.slider-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: var(--space-3);
    padding-top: var(--space-2);
}

.slider-dots {
    display: flex;
    align-items: center;
    gap: 6px;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    transition: all var(--dur-fast) ease;
    padding: 0;
    min-height: 8px;
    min-width: 8px;
}

[data-theme="light"] .slider-dot {
    background: rgba(11, 31, 35, 0.2);
}

.slider-dot.active {
    width: 24px;
    background: var(--gold-primary);
}

.slider-pause-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: var(--font-xs);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    min-height: 36px;
}

.slider-pause-btn:hover {
    color: var(--text-primary);
}

/* ==========================================================================
   BUTTONS & ACTIONS
   ========================================================================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-5);
    border-radius: var(--radius-pill);
    font-size: var(--font-sm);
    font-weight: 700;
    background: var(--gradient-accent);
    color: #0b1f23;
    border: none;
    cursor: pointer;
    min-height: 44px;
    transition: transform var(--dur-fast) var(--ease-spring), box-shadow var(--dur-fast) ease;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
}

.btn-primary:active {
    transform: translateY(1px) scale(0.98);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-pill);
    font-size: var(--font-xs);
    font-weight: 600;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    cursor: pointer;
    min-height: 44px;
    text-decoration: none;
    transition: all var(--dur-fast) ease;
}

.btn-secondary:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

/* City Picker Button / Pill */
.city-picker-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: var(--bg-surface-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-pill);
    font-size: var(--font-xs);
    font-weight: 600;
    cursor: pointer;
    min-height: 44px;
    transition: transform var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}

.city-picker-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   QUICK UTILITIES GRID
   ========================================================================== */
.section-utilities {
    padding: var(--space-6) 0;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: var(--space-5);
    flex-wrap: wrap;
    gap: var(--space-2);
}

.section-title {
    font-size: var(--font-xl);
    font-weight: 800;
    line-height: 1.2;
}

.section-subtitle {
    font-size: var(--font-sm);
    color: var(--text-muted);
}

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

@media (min-width: 768px) {
    .utilities-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-4);
    }
}

@media (min-width: 1024px) {
    .utilities-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.utility-card {
    background: var(--bg-glass-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all var(--dur-normal) var(--ease-spring);
    min-height: 120px;
    position: relative;
}

.utility-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold-primary);
    box-shadow: var(--shadow-glow);
    background: var(--bg-glass-hover);
}

.utility-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(212, 175, 55, 0.12);
    color: var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-2);
    transition: transform var(--dur-fast) ease;
}

.utility-card:hover .utility-icon-box {
    transform: scale(1.1);
    background: rgba(212, 175, 55, 0.25);
}

.utility-title {
    font-size: var(--font-sm);
    font-weight: 700;
    margin-top: auto;
}

/* ==========================================================================
   ANIMATED STATS STRIP
   ========================================================================== */
.stats-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
    margin-top: var(--space-6);
}

@media (min-width: 768px) {
    .stats-strip {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-card {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    text-align: center;
}

.stat-number {
    font-size: var(--font-xl);
    font-weight: 800;
    color: var(--gold-primary);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.stat-label {
    font-size: var(--font-xs);
    color: var(--text-muted);
    margin-top: 4px;
}

/* ==========================================================================
   DUA HIGHLIGHT CARD
   ========================================================================== */
.dua-highlight-card {
    margin-top: var(--space-6);
    padding: var(--space-6);
    background: linear-gradient(135deg, rgba(16, 42, 48, 0.85) 0%, rgba(22, 56, 64, 0.70) 100%);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    position: relative;
}

[data-theme="light"] .dua-highlight-card {
    background: linear-gradient(135deg, #ffffff 0%, #edf4f2 100%);
}

.dua-arabic {
    font-size: var(--font-lg);
    color: var(--gold-light);
    text-align: center;
    margin-bottom: var(--space-3);
}

[data-theme="light"] .dua-arabic {
    color: #855f00;
}

.dua-translation {
    font-size: var(--font-sm);
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
    max-width: 700px;
    margin: 0 auto;
}

.dua-action-bar {
    display: flex;
    justify-content: center;
    gap: var(--space-3);
    margin-top: var(--space-4);
}

/* ==========================================================================
   TOAST COMPONENT
   ========================================================================== */
.toast-bubble {
    position: fixed;
    top: 76px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: var(--bg-surface-elevated);
    color: var(--text-primary);
    border: 1px solid var(--gold-primary);
    border-radius: var(--radius-pill);
    padding: var(--space-2) var(--space-5);
    font-size: var(--font-sm);
    font-weight: 600;
    box-shadow: var(--shadow-glow);
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: all var(--dur-normal) var(--ease-spring);
}

.toast-bubble.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   ISLAMIC SVG HERO BANNER COMPONENT
   ========================================================================== */
.page-hero-banner {
    width: 100%;
    max-width: 100%;
    height: 120px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    margin-bottom: var(--space-6);
    background: linear-gradient(135deg, rgba(11, 31, 35, 0.85) 0%, rgba(20, 52, 60, 0.65) 100%);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
}

[data-theme="light"] .page-hero-banner {
    background: linear-gradient(135deg, #edf4f2 0%, #d8e5e2 100%);
    border-color: rgba(11, 31, 35, 0.12);
}

.islamic-banner-svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
}

/* ==========================================================================
   SALAH TIME ROLLOUT STYLES
   ========================================================================== */
.salah-section {
    padding: var(--space-6) 0 var(--space-12);
    max-width: 100%;
}

body .salah-container.glass-card {
    max-width: 760px;
    margin: 0 auto;
    padding: var(--space-8);
    text-align: center;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.salah-title {
    font-size: var(--font-2xl);
    font-weight: 800;
    margin-bottom: var(--space-2);
    letter-spacing: -0.02em;
}

.salah-subtitle {
    font-size: var(--font-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.salah-location-row {
    margin-bottom: var(--space-4);
    display: flex;
    justify-content: center;
}

.location-selector {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
    max-width: 320px;
}

.location-selector label {
    font-size: var(--font-xs);
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.location-selector select,
#salahCitySelect {
    width: 100%;
    padding: 10px 16px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-pill);
    color: var(--text-primary);
    font-size: var(--font-sm);
    font-weight: 600;
    outline: none;
    cursor: pointer;
    transition: all var(--dur-fast) ease;
}

.location-selector select:focus,
#salahCitySelect:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.25);
}

.fiqh-toggle-wrapper {
    margin: var(--space-4) 0;
}

.fiqh-toggle-label {
    display: block;
    font-size: var(--font-xs);
    color: var(--text-muted);
    margin-bottom: var(--space-2);
    font-weight: 600;
}

.fiqh-toggle {
    display: inline-flex;
    background: rgba(0, 0, 0, 0.2);
    padding: 4px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-subtle);
    gap: 4px;
}

[data-theme="light"] .fiqh-toggle {
    background: rgba(0, 0, 0, 0.05);
}

.fiqh-btn {
    padding: 6px 18px;
    border-radius: var(--radius-pill);
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: var(--font-xs);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--dur-fast) ease;
}

.fiqh-btn.active {
    background: var(--teal-primary);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(31, 122, 99, 0.4);
}

.timing-badge-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: wrap;
    margin: var(--space-3) 0 var(--space-5);
}

.salah-meta-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
    flex-wrap: wrap;
}

.salah-greg-date {
    font-size: var(--font-md);
    font-weight: 700;
    color: var(--text-primary);
}

.salah-hijri-date {
    font-size: var(--font-sm);
    font-weight: 600;
    color: var(--gold-primary);
    background: rgba(212, 175, 55, 0.12);
    padding: 2px 10px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(212, 175, 55, 0.25);
}

.salah-countdown-card {
    background: linear-gradient(135deg, rgba(31, 122, 99, 0.25) 0%, rgba(16, 42, 48, 0.35) 100%);
    border: 1px solid rgba(45, 212, 191, 0.3);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    margin: var(--space-3) auto var(--space-6);
    max-width: 380px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .salah-countdown-card {
    background: linear-gradient(135deg, rgba(31, 122, 99, 0.12) 0%, rgba(212, 175, 55, 0.08) 100%);
}

.salah-countdown-label {
    font-size: var(--font-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--teal-accent);
}

[data-theme="light"] .salah-countdown-label {
    color: var(--teal-dark);
}

.salah-countdown-timer {
    font-size: var(--font-2xl);
    font-weight: 800;
    color: var(--gold-light);
    font-variant-numeric: tabular-nums;
    margin-top: 4px;
}

[data-theme="light"] .salah-countdown-timer {
    color: #855f00;
}

/* ==========================================================================
   PRAYER SLIDER / RESPONSIVE CARDS DECK
   ========================================================================== */
.salah-cards-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: var(--space-3);
    margin: var(--space-6) 0;
    width: 100%;
}

.salah-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-4) var(--space-2);
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    transition: transform var(--dur-fast) ease, box-shadow var(--dur-fast) ease, border-color var(--dur-fast) ease;
    position: relative;
    overflow: hidden;
    min-height: 110px;
}

.salah-card:hover {
    transform: translateY(-3px);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.salah-card.active {
    background: linear-gradient(135deg, rgba(31, 122, 99, 0.35) 0%, rgba(212, 175, 55, 0.2) 100%);
    border-color: var(--gold-primary);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.35);
    transform: scale(1.03);
}

.salah-card.active::before {
    content: "CURRENT";
    position: absolute;
    top: 4px;
    right: 6px;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.05em;
    background: var(--gold-primary);
    color: #0b1f23;
    padding: 1px 4px;
    border-radius: 4px;
}

.salah-card.secondary-slot {
    opacity: 0.75;
}

.salah-card-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-bottom: var(--space-2);
}

.salah-card-icon {
    font-size: 1.4rem;
}

.salah-card-name {
    font-size: var(--font-sm);
    font-weight: 600;
    color: var(--text-primary);
}

.salah-card-time {
    font-size: var(--font-base);
    font-weight: 700;
    color: var(--gold-primary);
    font-variant-numeric: tabular-nums;
}

/* Mobile swipeable slider enhancements for salah cards */
@media (max-width: 640px) {
    .salah-cards-list {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: var(--space-3);
        gap: var(--space-3);
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .salah-card {
        flex: 0 0 135px;
        scroll-snap-align: center;
    }
}

.salah-month-section {
    margin-top: var(--space-8);
}

.month-btn {
    background: var(--bg-surface-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-pill);
    padding: var(--space-3) var(--space-6);
    font-weight: 600;
    font-size: var(--font-sm);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    transition: all var(--dur-fast) ease;
}

.month-btn:hover {
    background: var(--gold-primary);
    color: #0b1f23;
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.month-table-wrapper {
    margin-top: var(--space-4);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-glass);
    background: var(--bg-surface);
    overflow: hidden;
}

.salah-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-xs);
    text-align: center;
}

.salah-table th {
    background: var(--teal-dark);
    color: #ffffff;
    padding: 10px 8px;
    font-weight: 600;
}

.salah-table td {
    padding: 8px 6px;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}

.salah-table tr:hover td {
    background: rgba(212, 175, 55, 0.08);
    color: var(--text-primary);
}

/* ==========================================================================
   QURAN & SURAH ROLLOUT STYLES
   ========================================================================== */
.quran-section {
    padding: var(--space-6) 0 var(--space-12);
    max-width: 100%;
}

.quran-header {
    text-align: center;
    margin-bottom: var(--space-6);
}

.quran-title {
    font-size: var(--font-2xl);
    font-weight: 800;
    margin-bottom: var(--space-2);
    letter-spacing: -0.02em;
}

.quran-subtitle {
    font-size: var(--font-sm);
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Category Slider / Pills */
.quran-category-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: var(--space-2);
    padding: var(--space-2) 0 var(--space-4);
    margin-bottom: var(--space-6);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    justify-content: flex-start;
}

@media (min-width: 768px) {
    .quran-category-slider {
        justify-content: center;
        flex-wrap: wrap;
    }
}

.category-pill {
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    font-size: var(--font-xs);
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    scroll-snap-align: center;
    transition: all var(--dur-fast) ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.category-pill:hover,
.category-pill.active {
    background: var(--teal-primary);
    color: #ffffff;
    border-color: var(--teal-accent);
    box-shadow: 0 2px 10px rgba(31, 122, 99, 0.4);
}

/* Quran Search Bar */
.quran-search-form {
    display: flex;
    gap: var(--space-2);
    max-width: 540px;
    margin: 0 auto var(--space-8);
    position: relative;
}

.quran-search-input {
    flex: 1;
    padding: 12px 20px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-pill);
    color: var(--text-primary);
    font-size: var(--font-sm);
    outline: none;
    transition: all var(--dur-fast) ease;
    min-width: 0;
}

.quran-search-input:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.25);
}

.quran-search-btn {
    padding: 0 var(--space-6);
    background: var(--gold-primary);
    color: #0b1f23;
    font-weight: 700;
    font-size: var(--font-sm);
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all var(--dur-fast) ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.quran-search-btn:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* Surah Cards Grid */
.surah-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-4);
    width: 100%;
}

.surah-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    transition: transform var(--dur-fast) ease, border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
    min-width: 0;
}

.surah-card-link:hover {
    transform: translateY(-3px);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.surah-meta-left {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    min-width: 0;
}

.surah-num-badge {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.35);
    color: var(--gold-primary);
    font-weight: 700;
    font-size: var(--font-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-variant-numeric: tabular-nums;
}

.surah-text-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.surah-name-en {
    font-size: var(--font-base);
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.surah-info-sub {
    font-size: var(--font-xs);
    color: var(--text-secondary);
}

.surah-name-ar {
    font-size: var(--font-xl);
    color: var(--gold-light);
    font-family: var(--font-amiri), serif;
    flex-shrink: 0;
    margin-left: var(--space-3);
}

[data-theme="light"] .surah-name-ar {
    color: #855f00;
}

/* Surah Detail View Styles */
.surah-detail-card {
    padding: var(--space-8);
    margin-bottom: var(--space-8);
}

.surah-audio-player {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    margin: var(--space-5) 0 var(--space-8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.surah-audio-player audio {
    width: 100%;
    max-width: 600px;
    outline: none;
}

.ayah-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    margin-bottom: var(--space-4);
    transition: border-color var(--dur-fast) ease;
}

.ayah-card:hover {
    border-color: rgba(212, 175, 55, 0.4);
}

.ayah-card .arabic-text {
    font-size: 1.6rem;
    line-height: 2.2;
    text-align: right;
    color: var(--gold-light);
    margin-bottom: var(--space-4);
    font-family: var(--font-amiri), serif;
}

[data-theme="light"] .ayah-card .arabic-text {
    color: #785400;
}

.ayah-card .english-text {
    font-size: var(--font-base);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-3);
}

.tafsir-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--font-xs);
    font-weight: 600;
    color: var(--teal-accent);
    text-decoration: none;
    transition: color var(--dur-fast) ease;
}

.tafsir-link:hover {
    color: var(--gold-primary);
    text-decoration: underline;
}

/* ==========================================================================
   DUA PAGE ROLLOUT STYLES
   ========================================================================== */
.dua-page {
    padding: var(--space-6) 0 var(--space-12);
    max-width: 100%;
}

.dua-header {
    text-align: center;
    margin-bottom: var(--space-6);
}

.dua-title {
    font-size: var(--font-2xl);
    font-weight: 800;
    margin-bottom: var(--space-2);
    letter-spacing: -0.02em;
}

.dua-subtitle {
    font-size: var(--font-sm);
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Dua Search Input */
.dua-search-wrapper {
    max-width: 520px;
    margin: 0 auto var(--space-6);
}

body input.dua-search {
    width: 100%;
    padding: 12px 20px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-pill);
    color: var(--text-primary);
    font-size: var(--font-sm);
    outline: none;
    transition: all var(--dur-fast) ease;
    box-sizing: border-box;
}

body input.dua-search:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.25);
}

/* Dua Category Slider */
.dua-filters-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: var(--space-2);
    padding: var(--space-2) 0 var(--space-4);
    margin-bottom: var(--space-6);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    justify-content: flex-start;
}

@media (min-width: 768px) {
    .dua-filters-slider {
        justify-content: center;
        flex-wrap: wrap;
    }
}

body .dua-filters-slider .filter-btn {
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    font-size: var(--font-xs);
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    scroll-snap-align: center;
    transition: all var(--dur-fast) ease;
    margin: 0;
}

body .dua-filters-slider .filter-btn:hover,
body .dua-filters-slider .filter-btn.active {
    background: var(--teal-primary);
    color: #ffffff;
    border-color: var(--teal-accent);
    box-shadow: 0 2px 10px rgba(31, 122, 99, 0.4);
}

/* Dua Cards Grid */
body .dua-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: var(--space-4);
    width: 100%;
    max-width: 100%;
    margin-top: var(--space-4);
}

body .dua-card.glass-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform var(--dur-fast) ease, border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
    box-shadow: var(--shadow-card);
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}

body .dua-card.glass-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 175, 55, 0.45);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

body .dua-card.glass-card h3 {
    font-size: var(--font-md);
    font-weight: 700;
    color: var(--gold-primary);
    margin-bottom: var(--space-3);
    line-height: 1.3;
}

body .dua-card.glass-card .arabic {
    font-size: 1.35rem;
    line-height: 2;
    direction: rtl;
    text-align: right;
    color: var(--gold-light);
    font-family: var(--font-amiri), serif;
    margin-bottom: var(--space-3);
    word-break: break-word;
}

[data-theme="light"] body .dua-card.glass-card .arabic {
    color: #785400;
}

body .dua-card.glass-card .translation {
    font-size: var(--font-sm);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-4);
    font-style: italic;
    word-break: break-word;
}

body .dua-card.glass-card .reference {
    display: inline-block;
    font-size: var(--font-xs);
    color: var(--teal-accent);
    font-weight: 600;
    margin-bottom: var(--space-4);
}

[data-theme="light"] body .dua-card.glass-card .reference {
    color: var(--teal-dark);
}

.dua-actions {
    display: flex;
    gap: var(--space-2);
    justify-content: flex-end;
    border-top: 1px solid var(--border-subtle);
    padding-top: var(--space-3);
    margin-top: auto;
}

.dua-actions .expand-btn,
.dua-actions .copy-btn {
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: var(--font-xs);
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--border-glass);
    background: var(--bg-surface-elevated);
    color: var(--text-primary);
    transition: all var(--dur-fast) ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.dua-actions .expand-btn:hover {
    background: rgba(45, 212, 191, 0.18);
    border-color: var(--teal-accent);
    color: var(--teal-accent);
}

.dua-actions .copy-btn:hover {
    background: var(--gold-primary);
    border-color: var(--gold-primary);
    color: #0b1f23;
}

/* ==========================================================================
   ABOUT PAGE ROLLOUT STYLES
   ========================================================================== */
.about-section {
    padding: var(--space-6) 0 var(--space-12);
    max-width: 100%;
}

.about-container {
    max-width: 860px;
    margin: 0 auto;
}

.about-header {
    text-align: center;
    margin-bottom: var(--space-6);
}

.about-title {
    font-size: var(--font-2xl);
    font-weight: 800;
    margin-bottom: var(--space-2);
    letter-spacing: -0.02em;
}

.about-subtitle {
    font-size: var(--font-sm);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

body .about-card.glass-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    margin-bottom: var(--space-8);
    box-shadow: var(--shadow-card);
    line-height: 1.8;
    color: var(--text-secondary);
    font-size: var(--font-base);
}

body .about-card.glass-card p {
    margin-bottom: var(--space-4);
}

body .about-card.glass-card p:last-child {
    margin-bottom: 0;
}

.developer-section {
    margin-top: var(--space-8);
    text-align: center;
}

.developer-section h2 {
    font-size: var(--font-xl);
    font-weight: 700;
    color: var(--gold-primary);
    margin-bottom: var(--space-6);
}

body .developer-card.glass-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-card);
}

.company-wrapper {
    margin-bottom: var(--space-6);
}

.company-link {
    text-decoration: none;
    display: inline-block;
}

.company-link h3 {
    font-size: var(--font-lg);
    font-weight: 700;
    color: var(--teal-accent);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color var(--dur-fast) ease;
}

.company-link:hover h3 {
    color: var(--gold-primary);
}

.developer-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-6);
    justify-content: center;
    margin-top: var(--space-6);
}

.dev-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-glass);
    transition: transform var(--dur-fast) ease, border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}

.dev-item:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 175, 55, 0.45);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.dev-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--gold-primary);
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.3);
    margin-bottom: var(--space-4);
    transition: transform var(--dur-fast) ease;
}

.dev-item:hover .dev-avatar {
    transform: scale(1.05);
}

.dev-item h4 {
    font-size: var(--font-base);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.dev-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--font-xs);
    font-weight: 600;
    color: var(--teal-accent);
    text-decoration: none;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    background: rgba(45, 212, 191, 0.12);
    border: 1px solid rgba(45, 212, 191, 0.25);
    transition: all var(--dur-fast) ease;
}

.dev-link:hover {
    background: var(--gold-primary);
    border-color: var(--gold-primary);
    color: #0b1f23;
}

/* ==========================================================================
   CONTACT PAGE ROLLOUT STYLES
   ========================================================================== */
.contact-section {
    padding: var(--space-6) 0 var(--space-12);
    max-width: 100%;
}

.contact-container {
    max-width: 980px;
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    margin-bottom: var(--space-8);
}

.contact-title {
    font-size: var(--font-2xl);
    font-weight: 800;
    margin-bottom: var(--space-2);
    letter-spacing: -0.02em;
}

.contact-subtitle {
    font-size: var(--font-sm);
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.5;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

@media (min-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr 1.35fr;
        align-items: start;
    }
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.info-title {
    font-size: var(--font-lg);
    font-weight: 700;
    color: var(--gold-primary);
    margin-bottom: var(--space-2);
}

.info-card.glass-card {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-5);
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    transition: transform var(--dur-fast) ease, border-color var(--dur-fast) ease;
}

.info-card.glass-card:hover {
    transform: translateY(-2px);
    border-color: rgba(212, 175, 55, 0.4);
}

.info-icon {
    font-size: 1.5rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-pill);
    background: rgba(45, 212, 191, 0.12);
    border: 1px solid rgba(45, 212, 191, 0.25);
    flex-shrink: 0;
}

.info-content strong {
    font-size: var(--font-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--teal-accent);
    display: block;
    margin-bottom: 2px;
}

[data-theme="light"] .info-content strong {
    color: var(--teal-dark);
}

.info-content p {
    font-size: var(--font-sm);
    color: var(--text-primary);
    margin: 0;
}

.email-link {
    color: var(--gold-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--dur-fast) ease;
}

.email-link:hover {
    color: var(--gold-light);
    text-decoration: underline;
}

/* Contact Form Box */
body .contact-form-box.glass-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-card);
}

.form-group {
    margin-bottom: var(--space-4);
}

.form-group label {
    display: block;
    font-size: var(--font-xs);
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 18px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: var(--font-sm);
    outline: none;
    box-sizing: border-box;
    transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.25);
}

.contact-btn {
    width: 100%;
    padding: 14px 24px;
    background: var(--gradient-accent);
    color: #0b1f23;
    font-weight: 700;
    font-size: var(--font-sm);
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all var(--dur-fast) ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(45, 212, 191, 0.3);
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

/* ==========================================================================
   CALLIGRAPHY GALLERY ROLLOUT STYLES
   ========================================================================== */
.calligraphy-section {
    padding: var(--space-6) 0 var(--space-12);
    max-width: 100%;
}

.calligraphy-header {
    text-align: center;
    margin-bottom: var(--space-6);
}

.calligraphy-title {
    font-size: var(--font-2xl);
    font-weight: 800;
    margin-bottom: var(--space-2);
    letter-spacing: -0.02em;
}

.calligraphy-subtitle {
    font-size: var(--font-sm);
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.5;
}

.calligraphy-search-form {
    display: flex;
    gap: var(--space-2);
    max-width: 500px;
    margin: 0 auto var(--space-8);
}

.calligraphy-search-input {
    flex: 1;
    padding: 12px 20px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-pill);
    color: var(--text-primary);
    font-size: var(--font-sm);
    outline: none;
    transition: all var(--dur-fast) ease;
    min-width: 0;
}

.calligraphy-search-input:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.25);
}

.calligraphy-search-btn {
    padding: 0 var(--space-6);
    background: var(--gold-primary);
    color: #0b1f23;
    font-weight: 700;
    font-size: var(--font-sm);
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all var(--dur-fast) ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.calligraphy-search-btn:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* Calligraphy Grid */
.calligraphy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
    gap: var(--space-5);
    width: 100%;
    max-width: 100%;
}

.calligraphy-card.glass-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform var(--dur-fast) ease, border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
    box-shadow: var(--shadow-card);
    min-width: 0;
    max-width: 100%;
}

.calligraphy-card.glass-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 175, 55, 0.45);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.calligraphy-card h4 {
    font-size: var(--font-base);
    font-weight: 700;
    color: var(--gold-primary);
    margin-bottom: var(--space-3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calligraphy-img-wrap {
    position: relative;
    width: 100%;
    height: 190px;
    background: #ffffff;
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-3);
    cursor: pointer;
}

.calligraphy-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    transition: transform var(--dur-fast) ease;
}

.calligraphy-img-wrap:hover .calligraphy-img {
    transform: scale(1.05);
}

.calligraphy-btn-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    margin-top: auto;
}

.calligraphy-download-btn {
    flex: 1;
    padding: 8px 14px;
    background: var(--teal-primary);
    color: #ffffff;
    font-size: var(--font-xs);
    font-weight: 600;
    border-radius: var(--radius-pill);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all var(--dur-fast) ease;
}

.calligraphy-download-btn:hover {
    background: var(--teal-accent);
    color: #0b1f23;
}

.calligraphy-whatsapp-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #25D366;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    flex-shrink: 0;
    transition: transform var(--dur-fast) ease;
}

.calligraphy-whatsapp-btn:hover {
    transform: scale(1.1);
}

/* Calligraphy Pagination */
.calligraphy-pagination-wrapper {
    margin-top: var(--space-8);
    display: flex;
    justify-content: center;
    overflow-x: auto;
    padding-bottom: var(--space-2);
}

.calligraphy-pagination {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    padding: 6px 12px;
    border-radius: var(--radius-pill);
}

.calligraphy-pagination a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: var(--font-xs);
    font-weight: 600;
    color: var(--text-secondary);
    transition: all var(--dur-fast) ease;
}

.calligraphy-pagination a:hover {
    background: var(--bg-surface-elevated);
    color: var(--gold-primary);
}

.calligraphy-pagination a.active {
    background: var(--gold-primary);
    color: #0b1f23;
    font-weight: 700;
}

/* Image Modal / Lightbox */
.image-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    inset: 0;
    background: rgba(11, 31, 35, 0.92);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: var(--space-6);
}

.modal-content-box {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-content-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius-lg);
    background: #ffffff;
    padding: var(--space-4);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.close-modal-btn {
    position: absolute;
    top: -44px;
    right: 0;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

/* Custom Donation Amount & Pay Button */
.custom-amount-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 4px 8px;
    margin: 8px 0;
}
.custom-amount-wrapper .currency {
    color: var(--gold-primary);
    font-weight: 600;
}
.custom-amount-wrapper input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    width: 100%;
    outline: none;
    font-size: var(--font-sm);
}
.custom-pay-btn {
    background: var(--gold-primary);
    color: #0b1f23;
    border: none;
    border-radius: var(--radius-sm);
    padding: 6px 14px;
    font-weight: 700;
    font-size: var(--font-xs);
    cursor: pointer;
    white-space: nowrap;
    transition: transform var(--dur-fast) ease;
}
.custom-pay-btn:active {
    transform: scale(0.96);
}
