/**
 * Deen Calendar v2.8.2 - Premium Redesign
 * Elegant, refined, spiritually elevated
 */

/* ============================================
   PREMIUM DESIGN TOKENS
   ============================================ */
:root {
    /* Dark Theme */
    --bg-deep: #070a0f;
    --bg-primary: #0c1017;
    --bg-elevated: #141a24;
    --bg-card: #181f2b;
    --bg-glass: rgba(24, 31, 43, 0.7);
    
    --border-soft: rgba(255, 255, 255, 0.04);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(212, 175, 55, 0.2);
    
    --text-primary: #f8f9fa;
    --text-secondary: #a8adb8;
    --text-muted: #5c6370;
    
    --gold: #d4af37;
    --gold-soft: #e8d48a;
    --gold-glow: rgba(212, 175, 55, 0.15);
    
    --fard: #e85d5d;
    --fard-soft: rgba(232, 93, 93, 0.12);
    --sunnah: #5ec48a;
    --sunnah-soft: rgba(94, 196, 138, 0.12);
    
    /* Typography */
    --font-display: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
    --font-body: 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Radii */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.35);
    --shadow-glow: 0 0 40px rgba(212, 175, 55, 0.1);
}

/* Light Theme - Premium & High Contrast */
[data-theme="light"] {
    --bg-deep: #faf9f6;
    --bg-primary: #ffffff;
    --bg-elevated: #f7f6f3;
    --bg-card: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.95);
    
    --border-soft: rgba(0, 0, 0, 0.06);
    --border-subtle: rgba(0, 0, 0, 0.1);
    --border-accent: rgba(120, 90, 10, 0.25);
    
    --text-primary: #1a1816;
    --text-secondary: #3d3a36;
    --text-muted: #6b6762;
    
    --gold: #785a0a;
    --gold-soft: #9a7b0a;
    --gold-glow: rgba(120, 90, 10, 0.08);
    
    --fard: #a83c3c;
    --fard-soft: rgba(168, 60, 60, 0.08);
    --sunnah: #1f6b44;
    --sunnah-soft: rgba(31, 107, 68, 0.08);
    
    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 0 60px rgba(120, 90, 10, 0.06);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--bg-deep);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.65;
    transition: background-color 0.4s ease, color 0.3s ease;
}

/* Subtle gradient overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at top, var(--bg-glass) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
}

/* ============================================
   HEADER - Refined
   ============================================ */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-soft);
    padding: var(--space-md) var(--space-lg);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo-icon {
    color: var(--gold);
    filter: drop-shadow(0 2px 8px var(--gold-glow));
    width: 24px;
    height: 24px;
}

.logo-text h1 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.3px;
    color: var(--text-primary);
}

.logo-text .subtitle {
    font-size: 0.6rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-top: 1px;
}

/* Controls */
.header-controls {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.control-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.control-btn:hover {
    color: var(--gold);
    background: var(--gold-glow);
}

.control-btn.active {
    color: var(--gold);
}

.control-btn.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--gold);
    border-radius: 50%;
}

/* Language Selector */
.lang-selector {
    position: relative;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0 var(--space-xs);
    height: 32px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    color: var(--gold);
    background: var(--gold-glow);
}

.lang-btn span {
    font-family: var(--font-display);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + var(--space-sm));
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: var(--space-xs);
    display: none;
    flex-direction: column;
    min-width: 90px;
    box-shadow: var(--shadow-lg);
}

.lang-dropdown.show {
    display: flex;
}

.lang-option {
    background: none;
    border: none;
    color: var(--text-primary);
    padding: var(--space-sm) var(--space-md);
    text-align: left;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: background 0.15s ease;
}

.lang-option:hover {
    background: var(--bg-elevated);
    color: var(--gold);
}

.lang-option.active {
    color: var(--gold);
    background: var(--gold-glow);
}

/* ============================================
   MAIN
   ============================================ */
main {
    max-width: 680px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-lg);
}

/* ============================================
   PRAYER TIMES - Elegant Card
   ============================================ */
.prayer-times-container {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
    box-shadow: var(--shadow-sm);
}

.prayer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border-soft);
}

.prayer-header h3 {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.location-wrapper {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.prayer-location {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.location-edit-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.location-edit-btn:hover {
    background: var(--gold);
    color: var(--bg-deep);
}

.prayer-location-input {
    display: flex;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
}

.prayer-location-input input {
    flex: 1;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}

.prayer-location-input input:focus {
    outline: none;
    border-color: var(--gold);
}

.prayer-location-input button {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
}

.prayer-location-input button:first-of-type:hover {
    background: var(--gold);
    color: var(--bg-deep);
    border-color: var(--gold);
}

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

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

.prayer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-md) var(--space-sm);
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.prayer-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.prayer-name {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: var(--space-xs);
}

.prayer-time {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ============================================
   YEAR INDICATOR - Minimal
   ============================================ */
.year-indicator {
    text-align: center;
    padding: var(--space-xl) var(--space-md);
    margin-bottom: var(--space-lg);
}

.year-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--text-muted);
    display: block;
    margin-bottom: var(--space-sm);
}

.year-badge {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: -1px;
}

/* ============================================
   EXPORT BUTTON
   ============================================ */
.export-all-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    width: 100%;
    background: transparent;
    border: 1px solid var(--border-accent);
    color: var(--gold);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-lg);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: var(--space-xl);
    transition: all 0.25s ease;
}

.export-all-btn:hover {
    background: var(--gold);
    color: var(--bg-deep);
    box-shadow: var(--shadow-glow);
}

/* ============================================
   EVENT CARDS - Premium Design
   ============================================ */
.event-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.event-card.recommended {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-sm), var(--shadow-glow);
}

/* Recommendation Badge */
.recommendation-badge {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-soft) 100%);
    color: var(--bg-deep);
    padding: var(--space-sm) var(--space-lg);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

/* Event Date */
.event-date {
    padding: var(--space-lg) var(--space-lg) var(--space-sm);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.badge-vorabend {
    background: var(--gold-glow);
    color: var(--gold);
    padding: 3px var(--space-sm);
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid var(--border-accent);
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

/* Event Title */
.event-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    padding: 0 var(--space-lg) var(--space-md);
    line-height: 1.3;
}

.event-card.recommended .event-title {
    color: var(--gold);
}

/* ============================================
   ACTIONS - Refined
   ============================================ */
.action-item {
    margin: 0 var(--space-lg);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
}

.action-item.fard {
    background: var(--fard-soft);
    border-left: 3px solid var(--fard);
}

.action-item.sunnah {
    background: var(--sunnah-soft);
    border-left: 3px solid var(--sunnah);
}

.action-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xs);
}

.action-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.action-dot.fard { background: var(--fard); }
.action-dot.sunnah { background: var(--sunnah); }

.action-type {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.action-item.fard .action-type { color: var(--fard); }
.action-item.sunnah .action-type { color: var(--sunnah); }

.action-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.action-detail {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
    padding-left: calc(var(--space-md) + 3px);
}

/* ============================================
   OTHER NIGHTS
   ============================================ */
.other-nights {
    margin: var(--space-md) var(--space-lg);
    padding: var(--space-md);
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.other-nights-label {
    color: var(--text-muted);
    font-weight: 500;
    margin-right: var(--space-sm);
}

/* ============================================
   CARD ACTIONS - Minimal
   ============================================ */
.card-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg) var(--space-lg);
    border-top: 1px solid var(--border-soft);
    margin-top: var(--space-md);
}

.action-btn {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
}

.action-btn:hover {
    background: var(--gold);
    color: var(--bg-deep);
    border-color: var(--gold);
}

/* ============================================
   DETAIL MODAL - Premium
   ============================================ */
.detail-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

@media (min-width: 640px) {
    .detail-modal {
        align-items: center;
    }
}

.detail-modal.show {
    opacity: 1;
    pointer-events: auto;
}

.detail-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

.detail-sheet {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    width: 100%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}

@media (min-width: 640px) {
    .detail-sheet {
        border-radius: var(--radius-xl);
        max-height: 80vh;
        transform: translateY(20px);
    }
}

.detail-modal.show .detail-sheet {
    transform: translateY(0);
}

.detail-handle {
    width: 36px;
    height: 4px;
    background: var(--text-muted);
    border-radius: 2px;
    margin: var(--space-md) auto;
    opacity: 0.4;
}

@media (min-width: 640px) {
    .detail-handle {
        display: none;
    }
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--space-xl) var(--space-lg);
    border-bottom: 1px solid var(--border-soft);
}

.detail-header h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: -0.3px;
}

.detail-close {
    background: var(--bg-elevated);
    border: none;
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.detail-close:hover {
    background: var(--gold);
    color: var(--bg-deep);
}

.detail-content {
    padding: var(--space-xl);
}

.detail-section {
    margin-bottom: var(--space-xl);
}

.detail-section:last-child {
    margin-bottom: 0;
}

.detail-section h4 {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.detail-section p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.75;
}

/* ============================================
   LOADER
   ============================================ */
.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-3xl) var(--space-lg);
}

.loader-spinner {
    width: 32px;
    height: 32px;
    border: 2px solid var(--border-subtle);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.loader-text {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: var(--space-md);
}

/* ============================================
   ERROR & EMPTY STATES
   ============================================ */
.error-container,
.empty-state {
    text-align: center;
    padding: var(--space-3xl) var(--space-lg);
}

.error-icon,
.empty-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-lg);
    opacity: 0.5;
}

.error-title,
.empty-title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.error-message {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: var(--space-lg);
}

.retry-btn {
    background: var(--gold);
    color: var(--bg-deep);
    border: none;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.retry-btn:hover {
    opacity: 0.9;
}

.empty-text {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ============================================
   ZAKAT INFO CARD
   ============================================ */
.zakat-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-xl);
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-lg);
    overflow: hidden;
    box-shadow: var(--shadow-glow);
}

.zakat-header {
    background: linear-gradient(135deg, var(--gold-glow) 0%, transparent 100%);
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border-soft);
}

.zakat-header h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: -0.2px;
}

.zakat-content {
    padding: var(--space-lg);
}

.zakat-section {
    margin-bottom: var(--space-lg);
}

.zakat-section:last-child {
    margin-bottom: 0;
}

.zakat-section h4 {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.zakat-section p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.7;
}

.zakat-section strong {
    color: var(--gold);
}

.zakat-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: var(--space-sm);
    padding: var(--space-sm);
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
}

.zakat-calculator {
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-soft);
    text-align: center;
}

.zakat-calculator a {
    display: inline-block;
    background: var(--gold);
    color: var(--bg-deep);
    padding: var(--space-sm) var(--space-xl);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.zakat-calculator a:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
}

/* ============================================
   FOOTER - Refined
   ============================================ */
footer {
    text-align: center;
    padding: var(--space-2xl) var(--space-lg);
    color: var(--text-muted);
    font-size: 0.7rem;
    border-top: 1px solid var(--border-soft);
    margin-top: var(--space-2xl);
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
}

.footer-separator {
    color: var(--border-subtle);
    font-size: 0.6rem;
}

footer a,
.disclaimer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.disclaimer-link {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.7rem;
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

footer a:hover,
.disclaimer-link:hover {
    color: var(--gold);
}

.disclaimer-text {
    max-width: 420px;
    margin: 0 auto var(--space-sm);
    line-height: 1.6;
    font-size: 0.65rem;
}

.version-info {
    font-size: 0.6rem;
    opacity: 0.4;
    font-weight: 500;
    letter-spacing: 1px;
}

/* ============================================
   TOAST
   ============================================ */
.toast-notification {
    position: fixed;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: var(--bg-card);
    color: var(--text-primary);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    font-weight: 500;
    font-size: 0.875rem;
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}

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

/* ============================================
   DISCLAIMER MODAL
   ============================================ */
.disclaimer-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.disclaimer-modal.show {
    opacity: 1;
    pointer-events: auto;
}

.disclaimer-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

.disclaimer-content {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    max-width: 380px;
    margin: var(--space-lg);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.disclaimer-content h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: var(--space-md);
}

.disclaimer-content p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: var(--space-md);
    line-height: 1.6;
}

.disclaimer-content button {
    background: var(--gold);
    color: var(--bg-deep);
    border: none;
    padding: var(--space-sm) var(--space-xl);
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

/* ============================================
   INSTALL BANNER
   ============================================ */
.install-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border-subtle);
    padding: var(--space-md) var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    z-index: 100;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.install-banner span {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.875rem;
}

.install-banner button {
    background: var(--gold);
    color: var(--bg-deep);
    border: none;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
}

.install-banner button:last-child {
    background: transparent;
    color: var(--text-muted);
    padding: var(--space-sm);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 480px) {
    header {
        padding: var(--space-md);
    }
    
    .header-top {
        flex-wrap: wrap;
    }
    
    .logo-text h1 {
        font-size: 1.1rem;
    }
    
    main {
        padding: var(--space-lg) var(--space-md);
    }
    
    .event-title {
        font-size: 1.25rem;
    }
    
    .card-actions {
        grid-template-columns: 1fr 1fr;
    }
    
    .action-btn:nth-child(3) {
        grid-column: 1 / -1;
    }
}

/* ============================================
   RTL SUPPORT
   ============================================ */
[dir="rtl"] {
    direction: rtl;
}

[dir="rtl"] .action-item {
    border-left: none;
    border-right: 3px solid;
    padding-left: var(--space-lg);
    padding-right: calc(var(--space-lg) + 3px);
}

[dir="rtl"] .action-detail {
    padding-left: 0;
    padding-right: calc(var(--space-md) + 3px);
}