/* ======================================
   RAMADAN KALENDER 2026 — STYLES
   Deep Blue Oriental Night Theme
   ====================================== */

:root {
    --bg-deep: #111a42;
    --bg-mid: #162050;
    --bg-accent: #1c2760;
    --bg-light: #243070;
    --gold-primary: #d4a843;
    --gold-light: #f0d078;
    --gold-dark: #b08520;
    --gold-glow: rgba(212, 168, 67, 0.4);
    --text-primary: #eee8d5;
    --text-secondary: #a8afc8;
    --tile-bg: #1e2a60;
    --tile-border: rgba(100, 130, 200, 0.35);
    --completed-border: #3de8a0;
    --completed-bg: rgba(61, 232, 160, 0.08);
    --modal-bg: #faf5eb;
    --modal-text: #2a2520;
    --modal-text-secondary: #5a5550;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --shadow-deep: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-gold: 0 0 25px rgba(212, 168, 67, 0.25);
    --transition-fast: 0.2s ease;
    --transition-med: 0.4s ease;
    --font-display: 'Amiri', serif;
    --font-body: 'Outfit', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    background:
        radial-gradient(ellipse at 50% 15%, rgba(50, 60, 140, 0.6) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 85%, rgba(80, 40, 120, 0.12) 0%, transparent 45%),
        radial-gradient(ellipse at 15% 75%, rgba(30, 80, 140, 0.1) 0%, transparent 40%),
        linear-gradient(180deg, #111a42 0%, #162050 50%, #1c2760 100%);
    background-attachment: fixed;
}

a {
    color: var(--gold-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--gold-primary);
    text-decoration: underline;
}

/* ========== SHOOTING STARS ========== */
.shooting-stars {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.shooting-star {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #fff;
    border-radius: 50%;
    animation: shootingStar var(--duration) linear forwards;
    box-shadow: 0 0 6px 2px rgba(255, 255, 255, 0.8), 0 0 12px 4px rgba(200, 200, 255, 0.3);
}

.shooting-star::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    width: 70px;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.5), transparent);
    transform: translateY(-50%);
}

@keyframes shootingStar {
    0% {
        opacity: 0;
        transform: translate(0, 0) rotate(var(--angle));
    }

    10% {
        opacity: 1;
    }

    70% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translate(var(--dx), var(--dy)) rotate(var(--angle));
    }
}

/* ========== FLOATING SYMBOLS ========== */
.floating-symbols {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.floating-symbol {
    position: absolute;
    font-size: var(--size, 22px);
    animation: floatSymbol var(--float-dur, 18s) ease-in-out infinite;
    animation-delay: var(--delay, 0s);
    opacity: 0;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.15));
}

@keyframes floatSymbol {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0;
    }

    8% {
        opacity: 0.7;
    }

    50% {
        transform: translate(var(--mx, 30px), var(--my, -80px)) rotate(180deg);
        opacity: 0.5;
    }

    92% {
        opacity: 0.6;
    }

    100% {
        transform: translate(var(--ex, -20px), var(--ey, -160px)) rotate(360deg);
        opacity: 0;
    }
}

/* ========== HEADER ========== */
.header {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 20px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.header-content {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

/* Crescent Moon */
.crescent-moon {
    position: relative;
    font-size: 80px;
    line-height: 1;
    margin-top: -10px;
    margin-right: -20px;
    z-index: 3;
    animation: moonFloat 4s ease-in-out infinite;
    filter: drop-shadow(0 0 25px rgba(245, 200, 66, 0.5));
}

.moon-glow {
    position: absolute;
    inset: -30px;
    background: radial-gradient(circle, rgba(245, 200, 66, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    animation: moonGlow 3s ease-in-out infinite alternate;
}

.moon-shape {
    position: relative;
    z-index: 1;
}

@keyframes moonFloat {

    0%,
    100% {
        transform: translateY(0) rotate(-8deg);
    }

    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

@keyframes moonGlow {
    0% {
        opacity: 0.4;
        transform: scale(1);
    }

    100% {
        opacity: 1;
        transform: scale(1.15);
    }
}

/* Arc Title */
.title-arc {
    position: relative;
    width: 520px;
    height: 180px;
}

.title-arc .arc-letter {
    position: absolute;
    left: 0;
    top: 0;
    font-family: var(--font-display);
    font-size: 38px;
    font-weight: 700;
    color: var(--gold-light);
    text-shadow:
        0 2px 0 var(--gold-dark),
        0 4px 0 #a07a10,
        0 6px 0 #856510,
        0 0 15px rgba(245, 200, 66, 0.4),
        0 0 35px rgba(245, 200, 66, 0.2);
    transform-origin: center center;
    white-space: nowrap;
}

/* ========== MAIN CONTENT ========== */
.main-content {
    position: relative;
    z-index: 2;
    max-width: 960px;
    margin: 0 auto;
    padding: 10px 20px 20px;
}

/* ========== INFO CARD (How it works) ========== */
.info-card {
    max-width: 680px;
    margin: 0 auto 20px;
}

.info-card-inner {
    background: linear-gradient(145deg, rgba(28, 39, 96, 0.85), rgba(22, 32, 80, 0.95));
    border: 1px solid rgba(212, 168, 67, 0.25);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), inset 0 0 30px rgba(212, 168, 67, 0.03);
}

.info-icon {
    font-size: 36px;
    margin-bottom: 8px;
}

.info-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--gold-light);
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(245, 200, 66, 0.2);
}

.info-text {
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.info-text strong {
    color: var(--gold-light);
}

.info-date {
    font-size: 0.82rem;
    color: var(--gold-primary);
    font-weight: 600;
    opacity: 0.85;
}

/* ========== MOSAIC COUNTER ========== */
.mosaic-counter {
    text-align: center;
    color: var(--gold-light);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(245, 200, 66, 0.2);
}

/* ========== TWO-COLUMN LAYOUT ========== */
.content-columns {
    display: flex;
    gap: 28px;
    align-items: stretch;
    justify-content: center;
    margin-bottom: 24px;
}

/* ========== MOSAIC ========== */
.mosaic-section {
    flex: 0 0 auto;
}

.mosaic-wrapper {
    position: relative;
    width: 420px;
    aspect-ratio: 5 / 6;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 3px dashed rgba(180, 200, 255, 0.3);
    box-shadow: var(--shadow-deep);
}

.mosaic-image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.mosaic-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Dynamic blur controlled by JS — sketch effect */
    filter: var(--img-blur, blur(18px) saturate(0.3) contrast(1.4));
    transition: filter 1s ease;
}

.mosaic-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-accent), var(--bg-mid));
    color: var(--text-secondary);
    gap: 8px;
}

.mosaic-placeholder span {
    font-size: 56px;
    animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }
}

.mosaic-grid {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(6, 1fr);
    gap: 2px;
}

/* Mosaic Tile */
.mosaic-tile {
    position: relative;
    overflow: hidden;
    transition: all var(--transition-med);
    background:
        repeating-conic-gradient(var(--tile-bg) 0% 25%, #1a2558 0% 50%) 0 0 / 16px 16px,
        linear-gradient(135deg, var(--tile-bg), #1a2558);
    border: 1px solid rgba(100, 140, 220, 0.2);
}

.mosaic-tile::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(100, 130, 200, 0.05) 0%, transparent 50%);
    z-index: 1;
}

.mosaic-tile::after {
    content: '';
    position: absolute;
    inset: 3px;
    border: 1px solid rgba(100, 140, 220, 0.12);
    border-radius: 1px;
    z-index: 2;
    background:
        linear-gradient(45deg, transparent 42%, rgba(255, 255, 255, 0.02) 50%, transparent 58%),
        linear-gradient(-45deg, transparent 42%, rgba(255, 255, 255, 0.02) 50%, transparent 58%);
}

.mosaic-tile.revealed {
    background: transparent !important;
    border-color: transparent;
    pointer-events: none;
}

.mosaic-tile.revealed::before,
.mosaic-tile.revealed::after {
    display: none;
}

.mosaic-tile.revealing {
    animation: tileReveal 0.7s ease forwards;
}

@keyframes tileReveal {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1) rotateY(90deg);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 0;
        background: transparent;
    }
}

/* ========== DONATION SECTION ========== */
.donation-section {
    flex: 0 1 320px;
    min-width: 260px;
}

.donation-card {
    background: linear-gradient(145deg, rgba(28, 39, 96, 0.9), rgba(22, 32, 80, 0.95));
    border: 2px solid rgba(180, 200, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: 28px 22px;
    text-align: center;
    box-shadow: var(--shadow-deep);
    backdrop-filter: blur(8px);
}

.donation-icon {
    font-size: 48px;
    margin-bottom: 10px;
    animation: pulse 2.5s ease-in-out infinite;
}

.donation-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--gold-light);
    margin-bottom: 14px;
    text-shadow: 0 0 12px rgba(245, 200, 66, 0.25);
}

.donation-text {
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 22px;
}

.donation-btn {
    display: block;
    width: 100%;
    padding: 13px 20px;
    border-radius: 30px;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none !important;
    margin-bottom: 10px;
}

.donation-btn:last-child {
    margin-bottom: 0;
}

.paypal-btn {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: #fff;
    box-shadow: 0 4px 15px rgba(212, 168, 67, 0.3);
}

.paypal-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 25px rgba(212, 168, 67, 0.45);
    color: #fff;
}

.instagram-btn {
    background: linear-gradient(135deg, #833ab4, #e1306c, #fd1d1d);
    color: #fff;
    box-shadow: 0 4px 15px rgba(225, 48, 108, 0.3);
}

.instagram-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 25px rgba(225, 48, 108, 0.45);
    color: #fff;
}

/* ========== CHILD SELECTOR ========== */
.child-selector {
    text-align: center;
    margin: 18px auto 22px;
    max-width: 600px;
}

.child-tabs {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.child-tab {
    padding: 9px 20px;
    border: 2px solid rgba(180, 200, 255, 0.25);
    background: var(--bg-accent);
    color: var(--text-primary);
    border-radius: 30px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 6px;
}

.child-tab::before {
    content: '＋';
    font-size: 0.8em;
    opacity: 0.6;
}

.child-tab:hover,
.child-tab.active {
    background: var(--gold-primary);
    color: var(--bg-deep);
    border-color: var(--gold-primary);
    box-shadow: var(--shadow-gold);
}

.child-tab.active::before {
    content: '★';
}

/* ========== CALENDAR GRID ========== */
.calendar-section {
    margin-bottom: 40px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    max-width: 540px;
    margin: 0 auto;
}

.calendar-day {
    position: relative;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gold-light);
    background: var(--tile-bg);
    border: 2px solid rgba(100, 140, 220, 0.25);
    transition: all var(--transition-fast);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    user-select: none;
}

.calendar-day::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: repeating-conic-gradient(rgba(255, 255, 255, 0.015) 0% 25%, transparent 0% 50%) 0 0 / 10px 10px;
}

.calendar-day:hover {
    transform: translateY(-3px) scale(1.06);
    border-color: rgba(150, 180, 255, 0.5);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: var(--bg-light);
}

.calendar-day.completed {
    border-color: var(--completed-border);
    box-shadow: 0 0 12px rgba(61, 232, 160, 0.2);
    background: var(--completed-bg);
    color: var(--completed-border);
}

.calendar-day.completed::after {
    content: '✓';
    position: absolute;
    top: 2px;
    right: 4px;
    font-size: 0.55rem;
    color: var(--completed-border);
}

.calendar-day.today {
    border-color: var(--gold-primary);
    box-shadow: 0 0 18px rgba(212, 168, 67, 0.3), inset 0 0 15px rgba(212, 168, 67, 0.08);
    animation: todayPulse 2.5s ease-in-out infinite;
}

@keyframes todayPulse {

    0%,
    100% {
        box-shadow: 0 0 18px rgba(212, 168, 67, 0.3);
    }

    50% {
        box-shadow: 0 0 30px rgba(212, 168, 67, 0.5);
    }
}

.calendar-day.locked {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

/* ========== MODAL (LIGHT THEME) ========== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-med);
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--modal-bg);
    border: 3px solid var(--gold-primary);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 400px;
    padding: 0;
    transform: scale(0.85) translateY(25px);
    transition: transform var(--transition-med);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 50px rgba(212, 168, 67, 0.1);
    overflow: hidden;
}

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

.modal-header {
    padding: 22px 22px 10px;
    text-align: center;
}

.modal-day-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 6px 22px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    color: var(--modal-text-secondary);
    font-size: 1.6rem;
    cursor: pointer;
    transition: color var(--transition-fast);
    line-height: 1;
    z-index: 10;
}

.modal-close:hover {
    color: var(--gold-dark);
}

.modal-body {
    padding: 15px 25px 20px;
    text-align: center;
}

.modal-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--modal-text);
    margin-bottom: 14px;
    line-height: 1.3;
}

.modal-task {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--modal-text-secondary);
}

.modal-footer {
    padding: 0 25px 22px;
    text-align: center;
}

.modal-btn {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: #fff;
    border: none;
    padding: 13px 34px;
    border-radius: 30px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 15px rgba(212, 168, 67, 0.3);
}

.modal-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 25px rgba(212, 168, 67, 0.45);
}

.modal-btn:active {
    transform: scale(0.97);
}

/* ========== FOOTER ========== */
.footer {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 25px 20px;
    border-top: 1px solid rgba(100, 140, 220, 0.12);
    margin-top: 20px;
}

.footer-nav {
    display: flex;
    gap: 22px;
    justify-content: center;
    margin-bottom: 10px;
}

.footer-nav a {
    font-size: 0.9rem;
}

.footer-copy {
    font-size: 0.78rem;
    color: var(--text-secondary);
    opacity: 0.5;
}

/* ========== SETUP PAGE ========== */
.setup-page {
    position: relative;
    z-index: 2;
    max-width: 560px;
    margin: 0 auto;
    padding: 35px 20px;
    min-height: 100vh;
}

.setup-header {
    text-align: center;
    margin-bottom: 35px;
}

.setup-header h1 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--gold-primary);
    text-shadow: 0 0 18px rgba(212, 168, 67, 0.25);
    margin-bottom: 6px;
}

.setup-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.setup-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 18px;
    font-size: 0.9rem;
    color: var(--gold-light);
}

.form-group {
    margin-bottom: 22px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--gold-light);
    margin-bottom: 7px;
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 13px 16px;
    background: var(--bg-accent);
    border: 2px solid rgba(100, 140, 220, 0.25);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition-fast);
    outline: none;
}

.form-input:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 12px rgba(212, 168, 67, 0.12);
}

.form-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.5;
}

.children-section {
    margin-top: 28px;
}

.children-section h2 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--gold-light);
    margin-bottom: 18px;
    text-align: center;
}

.child-card {
    background: linear-gradient(135deg, var(--bg-accent), var(--bg-mid));
    border: 2px solid rgba(100, 140, 220, 0.2);
    border-radius: var(--radius-lg);
    padding: 18px;
    margin-bottom: 14px;
    animation: slideIn 0.4s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.child-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.child-card-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--gold-light);
}

.child-remove-btn {
    background: none;
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.child-remove-btn:hover {
    background: rgba(255, 107, 107, 0.12);
    border-color: #ff6b6b;
}

.file-upload {
    position: relative;
    border: 2px dashed rgba(100, 140, 220, 0.25);
    border-radius: var(--radius-md);
    padding: 22px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    overflow: hidden;
}

.file-upload:hover {
    border-color: var(--gold-primary);
    background: rgba(212, 168, 67, 0.03);
}

.file-upload input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.file-upload-icon {
    font-size: 1.8rem;
    margin-bottom: 6px;
}

.file-upload-text {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.file-upload-preview {
    max-width: 100%;
    max-height: 180px;
    border-radius: var(--radius-sm);
    margin-top: 10px;
    display: none;
}

.btn-add-child {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: transparent;
    border: 2px dashed rgba(100, 140, 220, 0.25);
    border-radius: var(--radius-md);
    color: var(--gold-light);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-top: 8px;
}

.btn-add-child:hover {
    border-color: var(--gold-primary);
    background: rgba(212, 168, 67, 0.04);
    color: var(--gold-primary);
}

.btn-save {
    display: block;
    width: 100%;
    padding: 15px;
    margin-top: 28px;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-gold);
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 35px rgba(212, 168, 67, 0.45);
}

.btn-save:active {
    transform: scale(0.98);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: linear-gradient(135deg, #4caf50, #388e3c);
    color: #fff;
    padding: 12px 26px;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    z-index: 2000;
    transition: transform 0.4s ease;
    pointer-events: none;
}

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

/* ========== LEGAL PAGE ========== */
.legal-page {
    position: relative;
    z-index: 2;
    max-width: 650px;
    margin: 0 auto;
    padding: 35px 20px;
    min-height: 100vh;
}

.legal-page h1 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--gold-primary);
    text-shadow: 0 0 18px rgba(212, 168, 67, 0.25);
    margin-bottom: 28px;
    text-align: center;
}

.legal-page h2 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--gold-light);
    margin-top: 28px;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(100, 140, 220, 0.15);
}

.legal-page p,
.legal-page li {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 10px;
    font-size: 0.92rem;
}

.legal-page ul {
    padding-left: 18px;
}

.legal-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 18px;
    font-size: 0.9rem;
    color: var(--gold-light);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 860px) {
    .content-columns {
        flex-direction: column;
        align-items: center;
    }

    .donation-section {
        flex: unset;
        width: 100%;
        max-width: 460px;
    }

    .mosaic-wrapper {
        width: 100%;
        max-width: 420px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 30px 15px 8px;
    }

    .crescent-moon {
        font-size: 60px;
        margin-right: -15px;
    }

    .title-arc {
        width: 360px;
        height: 140px;
    }

    .title-arc .arc-letter {
        font-size: 28px;
    }

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

    .calendar-day {
        font-size: 1.2rem;
    }

    .mosaic-wrapper {
        max-width: 400px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .header {
        padding: 25px 10px 5px;
    }

    .crescent-moon {
        font-size: 48px;
        margin-right: -10px;
    }

    .title-arc {
        width: 280px;
        height: 110px;
    }

    .title-arc .arc-letter {
        font-size: 20px;
    }

    .main-content {
        padding: 8px 12px;
    }

    .calendar-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
    }

    .calendar-day {
        font-size: 1.1rem;
    }

    .mosaic-wrapper {
        max-width: 100%;
        width: 100%;
    }

    .child-tab {
        padding: 7px 14px;
        font-size: 0.82rem;
    }

    .modal {
        max-width: 100%;
        border-radius: var(--radius-md);
    }

    .modal-body {
        padding: 12px 18px 16px;
    }

    .donation-card {
        padding: 22px 16px;
    }
}

/* ========== CONFETTI ========== */
.confetti {
    position: fixed;
    width: 7px;
    height: 7px;
    z-index: 3000;
    animation: confettiFall var(--fall-dur, 2s) ease forwards;
    opacity: 0.85;
    border-radius: 1px;
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0);
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) rotate(var(--rot, 720deg));
        opacity: 0;
    }
}