:root {
    --bg-deep: #050505;
    --glass-bg: rgba(20, 20, 20, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --neon-primary: #00f2ff;
    --neon-secondary: #ff0055;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --font-main: 'Inter', sans-serif;
    --font-time: 'Bebas Neue', cursive;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0; padding: 0; box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

input, textarea {
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

body {
    background-color: var(--bg-deep);
    /* Dot grid pattern + Mesh gradients */
    background-image: 
        radial-gradient(rgba(255, 255, 255, 0.05) 0.5px, transparent 1.5px),
        radial-gradient(circle at 15% 50%, rgba(0, 242, 255, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(255, 0, 85, 0.08), transparent 25%);
    background-size: 24px 24px, 100% 100%, 100% 100%;
    font-family: var(--font-body);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#confetti-canvas {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 10;
}

/* --- Main Card (Container) --- */
.container {
    position: relative;
    /* z-index: 20; */
    background: #9f00ff08;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 4rem;
    border-radius: 30px;
    /* box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.7); */
    /* box-shadow: 5px 5px 10px -3px rgb(37 32 32 / 47%); */
    text-align: center;
    max-width: 900px;
    width: 90%;
    /* transform-style: preserve-3d;  <-- Removed to fix backdrop-filter */
    transition: transform 0.1s; /* Kept for your tilt script */
    isolation: isolate; /* Create new stacking context */
    animation: heartbeat 1s infinite ease-in-out;
}

/* .container:hover {
    animation: none;
    scale: 1;
} 

*/

@keyframes heartbeat {
    0% { scale: 1; }
    30% { scale: 1.01; }
    100% { scale: 1; }
}


/* Header */
h1 {
    font-family: 'Bebas Neue', cursive;
    font-weight: 400; /* Bebas Neue looks better with normal weight usually */
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 2.5rem;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    letter-spacing: 0.05em; /* Increased letter spacing for Bebas */
    text-align: center;
}


#date-display {
    font-family: 'Bebas Neue', cursive;
    font-size: 1.5rem;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
    margin-top: -2.3rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

/* --- Countdown Grid --- */
.countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.time-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.time-box:hover {
    transform: translateY(-5px);
    /* box-shadow: 0 10px 30px -5px rgba(0, 242, 255, 0.15); */
    border-color: rgba(178, 178, 178, 0.356);
    box-shadow: -2px -2px 5px 0px #00d9ff33, 2px 2px 5px #d4d80086;
}

.number {
    font-family: var(--font-time);
    font-size: clamp(5.5rem, 10vw, 8.5rem);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0;
    color: #fff;
    font-variant-numeric: tabular-nums;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 1.25em; /* Increased height */
    padding-top: 0.12em; /* Nudge down for visual center */
    overflow: hidden; /* Critical for your script's animation */
    position: relative;
}

.label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
    font-weight: 600;
    margin-top: 5px;
}

/* --- Mobile Fixes --- */
@media (max-width: 768px) {
    .container { padding: 2rem 0.6rem; width: 93%; }
    .countdown { gap: 0.8rem; }
    .time-box { padding: 1.5rem 0.2rem; }
    .number { font-size: clamp(3.5rem, 10vw, 5.5rem); }
    .label { font-size: 0.6rem; letter-spacing: 1px; }
   
}

@media (max-width: 480px) {
    .countdown { grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
    .time-box { 
        padding: 0.5rem 0.1rem; 
        min-height: 5.5rem; /* Ensure consistent height even if font shrinks */
    }
    .number { font-size: 3.8rem; }
    
    /* Shrink ALL numbers if days >= 100 to maintain uniformity */
    .countdown.long-mode .number { font-size: clamp(2rem, 11vw, 3.2rem); }
    
    /* Disable Hover Animation on Mobile */
    .time-box:hover {
        transform: none !important;
        box-shadow: none !important;
        background: inherit !important;
        border-color: inherit !important;
    }
}

/* --- Animation Classes Used by Your Script --- */
.digit-wrapper {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 0.45em !important;
    height: 100%;
    overflow: hidden;
    vertical-align: middle;
}

.current {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

.anim-enter {
    animation: enter-from-top 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    text-align: center;
}

.anim-exit {
    animation: exit-to-bottom 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    text-align: center;
}

@keyframes enter-from-top {
    0% { transform: translateY(-100%); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes exit-to-bottom {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(110%); opacity: 0; }
}

/* --- Wish Button --- */
.wish-btn-container {
    display: none;
    /* backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px); */
    position: fixed; bottom: 40px; left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}

.wish-btn-container.visible {
    display: block;
    animation: scale-in 0.6s ease forwards;
}

.wish-btn {
    background: rgba(255, 255, 255, 0.041);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: rgba(255, 255, 255, 0.8); /* Slightly brighter than max button for readability */
    border: 1px solid rgba(255, 255, 255, 0.199);
    padding: 1rem 1rem;
    border-radius: 30px; /* Match container border-radius */
    font-family: 'Bebas Neue', cursive; /* Match headline font */
    font-weight: 400;
    font-size: 1.2rem; /* Larger for Bebas */
    cursor: pointer;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.7);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: button-breath 2s infinite ease-in-out;
}

.wish-btn:hover { 
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 242, 255, 0.3);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.15);
}

/* @keyframes fadeInUp {
    from { opacity: 0; transform: translate(-50%, 20px); }
    to { opacity: 1; transform: translate(-50%, 0); }
} */

/* --- Modal --- */
.modal-overlay {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(25, 26, 26, 0.614);
    backdrop-filter: blur(10px);
    display: flex; justify-content: center; align-items: center;
    z-index: 1000;
    opacity: 0; visibility: hidden;
    /* opacity: 1; visibility: visible; */

    transition: 0.3s;
}

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

.modal-content {
    background: #111111f0;
    backdrop-filter: blur(5px);
    border: 1px solid #333;
    padding: 2.5rem;
    border-radius: 24px;
    width: 90%; max-width: 500px;
    text-align: center;
    transform: scale(0.9);
    transition: 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.modal-title { 
    color: transparent;
    text-shadow: 0 0 0 #fff; /* Default White for Dark Mode */
    font-family: 'Bebas Neue', cursive; 
    letter-spacing: 2px; 
    word-spacing: 2px; 
    margin-bottom: 1.5rem; 
}

.wish-input {
    resize: none;
    width: 100%;
    background: #27272789;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 1rem;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    margin-bottom: 1rem;
    outline: none;
}

/* Admin Panel Styles */
.admin-label {
    display: block; 
    text-align: left; 
    color: #fff; 
    margin-bottom: 5px;
    font-family: var(--font-body);
}

.modal-subtitle {
    color: #ccc; 
    margin-bottom: 15px; 
    font-size: 0.9rem;
    font-family: var(--font-body);
}

/* Light Mode Overrides for Admin Panel */
body.light-mode .admin-label {
    color: var(--text-secondary); /* Maroon */
}

body.light-mode .modal-subtitle {
    color: var(--text-secondary);
    opacity: 0.8;
}

body.light-mode .close-modal {
    color: var(--text-primary);
}

/* Admin Buttons - Dark Mode Default */
#saveAdmin {
    background: rgba(0, 255, 136, 0.2); 
    border-color: #00ff88;
    color: #fff;
}
#resetAdmin {
    background: rgba(255, 0, 85, 0.2); 
    border-color: #ff0055;
    color: #fff;
}

/* Light Mode Admin Buttons */
body.light-mode #saveAdmin {
    background: #059669; /* Emerald 600 */
    border-color: #047857;
    color: #fff;
    box-shadow: 0 4px 6px -1px rgba(5, 150, 105, 0.3);
}

body.light-mode #resetAdmin {
    background: #e11d48; /* Rose 600 */
    border-color: #be123c;
    color: #fff;
    box-shadow: 0 4px 6px -1px rgba(225, 29, 72, 0.3);
}

.wish-input:focus { border-color: var(--neon-primary); }

.send-btn {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    border: 1px solid var(--glass-border);
    padding: 1rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}


.send-btn:hover { 
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 242, 255, 0.3);
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.15);
}

@keyframes button-breath {
    0% { transform: scale(1) translateY(0); }
    50% { transform: scale(1.05) translateY(-5px); }
    100% { transform: scale(1) translateY(0); }
}

.close-modal {
    position: absolute; top: 20px; right: 20px;
    background: none; border: none;
    color: #666; font-size: 1.2rem; cursor: pointer;
}

/* --- Toast --- */
.toast-container {
    position: fixed; top: 20px; left: 0; width: 100%;
    z-index: 9999; display: flex; flex-direction: column; align-items: center;
}

.toast {
    /* Matched to .wish-btn style for Dark Mode */
    background: rgba(255, 255, 255, 0.041);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.199);
    color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    
    padding: 12px 24px; border-radius: 50px;
    font-family: var(--font-body);
    margin-bottom: 10px;
    opacity: 0; transform: translateY(-20px);
    transition: 0.3s;
    /* letter-spacing: 0.5px; */
}

.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { border-color: #00ff88; color: #00ff88; }
.toast.error { border-color: #ff0055; color: #ff0055; }

/* Typewriter Cursor (used by script) */
.cursor {
    display: inline-block; width: 2px; height: 1em;
    background: #fff; margin-left: 5px;
    animation: blink 1s infinite;
}
@keyframes blink { 50% { opacity: 0; } }


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

.floating-card {
    animation: floating 2s ease-in-out infinite;
}

/* Confirmation Toast */
.toast.confirm {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: #111;
    border-color: #ff0055;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    z-index: 10001; /* Higher than modal */
}

.toast-btn-group {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.toast-btn {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: 0.2s;
    font-family: var(--font-body);
}

.toast-btn:hover { background: rgba(255,255,255,0.2); }

.toast-btn.yes {
    background: rgba(255, 0, 85, 0.2);
    border-color: #ff0055;
    color: #ff0055;
}
.toast-btn.yes:hover { background: rgba(255, 0, 85, 0.4); }

/* Light Mode Overrides for Confirmation Toast Buttons */
body.light-mode .toast-btn {
    border-color: rgba(0,0,0,0.2);
    color: #333; /* Darker default text */
}

body.light-mode .toast-btn:hover {
    background: rgba(0,0,0,0.05);
}

body.light-mode .toast-btn.no {
    color: #000; /* Specifically Black as requested */
    border-color: #000;
}

body.light-mode .toast-btn.yes {
    /* Keep Yes button distinct but readable */
    background: #be123c; 
    color: white;
    border-color: #be123c;
}

/* --- Control Buttons --- */
.control-btn {
    position: fixed;
    /* Start position (approx top-right of center card or screen corner) */
    /* top: 20px; right: 20px; (User had this relative to card) */
    /* Let's put it top-right of screen for now, which is safer for 'fixed' */
    top: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.041);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.199);
    color: rgba(255, 255, 255, 0.297);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
    z-index: 100;
    will-change: transform, backdrop-filter;
    /* Force GPU for smoother blur */
    transform: translateZ(0); 
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: scale(1.1);
}

/* --- Maximize Mode Logic --- */
body.maximize-mode .container {
    padding: 0;
    background: transparent !important; /* Force transparent over light mode */
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    max-width: none;
    width: 100%;
    transform: none !important; /* Removes tilt effect */
    animation: none; /* Disable heartbeat in maximize mode */
}

/* Hide non-essential elements */
body.maximize-mode #headline, 
body.maximize-mode #date-display,
body.maximize-mode .label {
    display: none; 
}

/* Make countdown full screen */
/* Make countdown full screen */
/* Make countdown full screen */
body.maximize-mode .countdown {
    margin: 0;
    gap: 4vw; /* User requested 4 gap */
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center; /* Pack in center */
    align-items: center;
}

body.maximize-mode .countdown-item {
    flex: 1; /* Stretch to fill equally */
    width: auto;
    height: 100%;
    justify-content: center;
    position: relative; /* For colon positioning */
}

body.maximize-mode .time-box {
    border: none;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

body.maximize-mode .number {
    font-size: 20vw !important; /* Optimized for 4vw gap */
    height: auto;
    line-height: 1.1; /* Fix cropping */
    padding-top: 0; 
}

/* Colons for Maximize Mode */
body.maximize-mode .countdown-item:not(:last-child)::after {
    content: ":";
    position: absolute;
    right: -2vw; /* Center in 4vw gap */
    top: 50%; 
    transform: translate(50%, -55%); /* Center on the seam */
    font-size: 14vw;
    font-family: var(--font-time);
    color: currentColor; 
    z-index: 10;
    line-height: 1;
    pointer-events: none; 
}

/* Global Safety fallback for 3-Digit Days (Desktop) */
body.maximize-mode .countdown.long-mode .number {
    font-size: 18.5vw !important; /* Shrink to fit 3 digits comfortably */
}
body.maximize-mode .countdown.long-mode {
     gap: 3vw; /* Balance between 4vw preference and space constraints */
}
body.maximize-mode .countdown.long-mode .countdown-item {
    flex: auto; /* Allow items to take natural width (needed for 370 vs 06) */
}
body.maximize-mode .countdown.long-mode .countdown-item:not(:last-child)::after {
    right: -1.5vw; /* Perfectly centered in 3vw gap */
}

/* Adjust button position in Maximize Mode */
body.maximize-mode .control-btn {
    top: 30px;
    right: 30px;
    background: rgba(0, 0, 0, 0.5); /* More contrast */
}

/* --- Celebration Screens Styles (New) --- */
.celebration-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    user-select: none;
    -webkit-user-select: none;
}

.celebration-date {
    font-family: 'Bebas Neue', cursive;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.1em;
    margin-top: -1rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    white-space: nowrap;
    transition: all 0.5s ease; /* For smooth hiding */
    opacity: 1;
    max-height: 50px; /* Constrain height for transition */
}

.celebration-text {
    font-family: 'Bebas Neue', cursive;
    font-size: clamp(3.5rem, 10vw, 6rem);
    font-weight: 800;
    margin-bottom: 0;
    color: #fff;
    letter-spacing: 0.05em;
    word-spacing: 0.1em;
    min-height: 1.2em;
    line-height: 1.0;
    text-align: center;
    width: 100%;
    padding: 0 10px;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); /* Smooth movement */
}

/* --- Maximize Mode Logic for Celebration --- */
/* Hide the date smoothly */
body.maximize-mode .celebration-date {
    opacity: 0;
    margin-bottom: 0;
    margin-top: 0;
    max-height: 0;
    overflow: hidden;
}

/* Move the text up smoothly */
body.maximize-mode .celebration-text {
    transform: translateY(-20vh) scale(1.2); /* Move up and slightly larger */
}

/* Ensure container doesn't block clicks in max mode if needed, though previously we removed styles */
body.maximize-mode .container.floating-card {
   animation: floating 2s ease-in-out infinite; /* Enable floating */
}

/* Don't stop floating on hover in maximize mode */
body.maximize-mode .container.floating-card:hover {
    animation-play-state: running; 
    scale: 1; /* Keep scale override if needed, or remove to allow float scale? User said "dont stop", implying play-state */
}



/* --- Mobile Portrait Maximize Fix --- */
@media (max-width: 768px) {
    body { overflow-y: auto; }
    body.maximize-mode .celebration-text {
        /* Remove scale up, use viewport width for sizing to ensure fit */
        transform: translateY(-15vh) scale(1); 
        font-size: 14vw; /* Responsive sizing that fits width */
        padding: 0 10px;
        width: 100%;
        margin: 0 auto;
    }
    .wish-btn { padding: 0.7rem 1rem; font-size: 1rem; }
    
    /* Ensure container stays centered */
    body.maximize-mode .celebration-wrapper {
        width: 100%;
        overflow: visible; /* Allow text to show */
    }

    /* MAXIMIZE MODE MOBILE - Push to edges with cleaner spacing */
    body.maximize-mode .countdown {
        gap: 1vw !important; /* Visible gap everywhere */
    }
    body.maximize-mode .number {
        font-size: 23vw !important; /* Large usage of space but clean for 2 digits */
        line-height: 0.9 !important;
        letter-spacing: -1px !important;
    }
    body.maximize-mode .countdown-item:not(:last-child)::after {
        right: -0.5vw !important; /* Center in 1vw gap */
        font-size: 18vw !important;
        transform: translate(50%, -55%);
    }

    /* Safety fallback for 3-Digit Days */
    body.maximize-mode .countdown.long-mode .number {
        font-size: 21vw !important; /* Proper size for 3 digits on mobile */
    }
    body.maximize-mode .countdown.long-mode {
         gap: 1vw !important; /* Keep gap consistent */
    }
}

/* --- Landscape Optimization (Refined) --- */
@media (max-height: 400px) and (orientation: landscape) {
    body { overflow-y: auto; }
    .container {
        padding: 0.5rem 1rem;
        width: 90%; 
        max-width: 750px;
        height: 90vh; /* Fit within screen */
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 0; /* Minimal gap */
        transform: none !important; /* REMOVE TILT ANIMATION */
        will-change: auto; /* optimization */
    }
    .wish-btn {
        margin-bottom: 1rem;
    }
    
    /* Shrink Title */
    h1 {
        font-size: 2.8rem; 
        /* margin-bottom: 0.1rem; */
        margin-bottom: 0.2rem;
        margin-top: -2rem;
    }

    /* Shrink Date */
    #date-display {
        font-size: 1.4rem;
        margin-top: -0.7rem;
        margin-bottom: 2rem;
    }

    /* Compact Grid */
    .countdown {
        gap: 1rem;
        margin-bottom: 0;
        width: 100%;
    }
    
    .countdown-item {
        gap: 0.2rem;
    }
    
    .time-box {
        padding: 0.2rem;
        border-radius: 30px;
        height: auto;
    }

    .number {
        font-size: 30vh; /* Responsive height-based size (Larger) */
        line-height: 1;
        padding-top: 5px;
    }

    .label {
        font-size: 0.7rem;
        margin-top: 5px;
    }
    
    /* Adjust Wish Button */
    .wish-btn-container {
        bottom: 10px;
        transform: translateX(-50%) scale(0.8);
    }

    /* Fix Celebration Text in Landscape Maximize */
    body.maximize-mode .celebration-text {
        transform: translateY(-2vh) scale(1) !important; /* Reset the big move-up */
        /* font-size: 16vh !important; Fit based on height */
        line-height: 1;
        width: 100%;
    }
    
    /* Ensure date is hidden (it usually is by maximize-mode, but just in case) */
    body.maximize-mode .celebration-date {
        display: none;
    }
}

/* --- Pulse Animation for Final 10 Seconds --- */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(241, 57, 7, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 6px rgba(241, 57, 7, 0.7);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(241, 57, 7, 0.4);
    }
}

/* --- Light Mode (Maroon & Zinc Theme) --- */
body.light-mode {
    --bg-deep: #fdf2f4; /* Very Pale Rose/Maroon Tint */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(190, 18, 60, 0.2); /* Subtle Maroon Border */
    --text-primary: #7e0024; /* Rose 950 (Matched to Number) */
    --text-secondary: #881337; /* Rose 900 */
    --neon-primary: #be123c; /* Rose 700 (Maroon-ish) */
    --neon-secondary: #f43f5e; /* Rose 500 */
    
    background-color: var(--bg-deep);
    
    /* Elegant Maroon/Zinc Mesh */
    background-image: 
        radial-gradient(rgba(136, 19, 55, 0.15) 0.5px, transparent 1.5px), /* Maroon Dots */
        radial-gradient(at 0% 0%, rgba(190, 18, 60, 0.08) 0, transparent 50%), 
        radial-gradient(at 100% 100%, rgba(82, 82, 91, 0.1) 0, transparent 50%); /* Zinc Shade */
    
    background-size: 20px 20px, 100% 100%, 100% 100%;
        
    color: var(--text-primary);
}

/* Light Mode Container */
/* Light Mode Container - Glossy Gradient */
body.light-mode .container {
    /* Rotating Glossy Gradient */
    background: linear-gradient(
        340deg, 
        rgb(255 195 204) -11%, 
        rgb(255 254 252 / 43%) 44% 40%, 
        rgb(255 199 208) 115%
    );

    /* background:(
        linear-gradient(
        340deg, 
        rgb(255 195 204 / 58%) -11%, 
        rgb(255 254 252 / 43%) 44% 40%, 
        rgb(255 199 208 / 72%) 115%)
    );


    /* Crisp, shiny glass border */
    border: 1px solid rgba(255, 255, 255, 0.9);

    
    /* Deep Glossy Shadows + Inner Glow */
    box-shadow: 
        0 20px 50px -15px rgba(136, 19, 55, 0.2), /* Deep Maroon Drop Shadow */
        inset 0 0 0 1px rgba(255, 255, 255, 0.6), /* Inner Rim */
        inset 0 0 40px rgba(255, 255, 255, 0.5); /* Inner Light Flood */
        
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    /* Animation: Heartbeat only */
    animation: heartbeat 1s infinite ease-in-out;
}

/* Ensure animation continues on hover */
body.light-mode .container:hover {
    animation: heartbeat 1s infinite ease-in-out;
}

body.light-mode h1 {
    color: var(--text-primary); /* Deep Maroon */
    text-shadow: none;
    -webkit-text-fill-color: initial;
    filter: none;
}

/* Time Boxes - Maroon Accent */
body.light-mode .time-box {
    background: #fff1f2; /* Rose 50 */
    border: 1px solid #fecdd3; /* Rose 200 */
    box-shadow: 
        0 4px 6px -1px rgba(136, 19, 55, 0.05),
        inset 0 2px 4px rgba(255, 255, 255, 1);
    color: var(--text-primary);
}

body.light-mode .time-box:hover {
    transform: translateY(-2px);
    background: #ffe4e6; /* Rose 100 */
    border-color: #be123c;
    box-shadow: 0 10px 15px -3px rgba(190, 18, 60, 0.15);
}

/* HIDE Time-Box Background in Maximize Mode (Global) */
body.maximize-mode .time-box {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

body.light-mode .number {
    color: var(--text-primary); /* Use variable to ensure match with colons (currentColor) */
    background: none;
    -webkit-text-fill-color: initial;
    text-shadow: none;
}

body.light-mode .label {
    color: #9f1239; /* Rose 800 */
    font-weight: 700;
}

/* Buttons */
body.light-mode .wish-btn,
body.light-mode .control-btn {
    background: #fff0f5; /* Lavender Blush */
    border: 1px solid #fda4af; /* Rose 300 */
    color: #881337; /* Rose 900 */
    box-shadow: 0 2px 4px rgba(136, 19, 55, 0.05);
}

body.light-mode .wish-btn:hover,
body.light-mode .control-btn:hover {
    background: #ffe4e6;
    border-color: #be123c;
    color: #881337;
    box-shadow: 0 4px 6px -1px rgba(190, 18, 60, 0.2);
    transform: translateY(-1px);
}

body.light-mode .modal-content {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    box-shadow: 0 20px 25px -5px rgba(136, 19, 55, 0.1);
}

body.light-mode .modal-title {
    color: transparent;
    text-shadow: 0 0 0 #881337; /* Force Maroon Emoji */
}

body.light-mode .wish-input {
    background: #fff0f5;
    border: 1px solid #fecdd3;
    color: #881337;
    box-shadow: inset 0 1px 2px rgba(136, 19, 55, 0.05);
}

body.light-mode .wish-input:focus {
    background: #fff;
    border-color: #be123c;
    box-shadow: 0 0 0 3px rgba(190, 18, 60, 0.15);
}

body.light-mode .send-btn { 
    background: var(--text-primary); /* Rose 700 */
    color: #fff1f2;
    box-shadow: 0 4px 6px -1px rgba(190, 18, 60, 0.4);
    border: none;
}

body.light-mode .send-btn:hover {
    background: #9f1239; /* Rose 800 */
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(190, 18, 60, 0.5);
}

body.light-mode .celebration-text {
    color: var(--text-primary); /* Use standard color to preserve emojis */
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    -webkit-text-fill-color: initial;
    filter: none;
}

body.light-mode .celebration-date {
    color: var(--text-secondary); /* Ensure visibility in light mode */
}

body.light-mode .toast {
    background: #fff1f2;
    color: #881337;
    border: 1px solid #fecdd3;
    box-shadow: 0 10px 15px -3px rgba(136, 19, 55, 0.1);
}

