        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            transition: background 0.5s ease, color 0.3s ease;
        }
        
        :root {
            --primary: #6a11cb;
            --secondary: #2575fc;
            --accent: #ff7e5f;
            --text: #fff;
            --bg: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
            --card-bg: rgba(255, 255, 255, 0.15);
            --box-bg: rgba(255, 255, 255, 0.2);
            --shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            --message-bg: rgba(255, 255, 255, 0.1);
        }
        
        body.dark-mode {
            --primary: #2a0845;
            --secondary: #0a2463;
            --accent: #ff6b6b;
            --text: #f0f0f0;
            --card-bg: rgba(0, 0, 0, 0.2);
            --box-bg: rgba(0, 0, 0, 0.25);
            --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
            --message-bg: rgba(0, 0, 0, 0.15);
        }
        
        body {
            background: var(--bg);
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 20px;
            overflow-x: hidden;
            color: var(--text);
        }
        
        .container {
            max-width: 1000px;
            width: 100%;
            background: var(--card-bg);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            box-shadow: var(--shadow);
            overflow: hidden;
            text-align: center;
            padding: 30px 20px;
            position: relative;
        }
        
        .header {
            margin-bottom: 20px;
            position: relative;
        }
        
        .control-buttons {
            position: absolute;
            top: 10px;
            right: 10px;
            display: flex;
            gap: 10px;
            z-index: 20;
        }
        
        .control-btn {
            background: var(--box-bg);
            border: none;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            display: flex;
            justify-content: center;
            align-items: center;
            color: var(--text);
            font-size: 1rem;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        }
        
        .control-btn:hover {
            transform: translateY(-3px);
            background: rgba(255, 255, 255, 0.3);
        }
        
        .control-btn:active {
            transform: translateY(1px);
        }
        
        .love-btn {
            background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
        }
        
        .theme-btn {
            background: linear-gradient(45deg, #4ecdc4, #88d3ce);
        }
        
        h1 {
            font-size: 2.8rem;
            text-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
            margin: 15px 0 10px;
            background: linear-gradient(to right, var(--accent), #feb47b);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        
        .subtitle {
            font-size: 1.3rem;
            margin-bottom: 15px;
            font-weight: 300;
        }
        
        .birthday-date {
            font-size: 1.5rem;
            background: var(--box-bg);
            display: inline-block;
            padding: 8px 20px;
            border-radius: 50px;
            margin-bottom: 15px;
            font-weight: 600;
            backdrop-filter: blur(5px);
        }
        
        .countdown-container {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 15px;
            margin-bottom: 15px;
        }
        
        .countdown-box {
            background: var(--box-bg);
            backdrop-filter: blur(5px);
            border-radius: 15px;
            width: 140px;
            height: 140px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            transition: transform 0.3s ease;
        }
        
        .countdown-box:hover {
            transform: translateY(-10px);
            background: rgba(255, 255, 255, 0.3);
        }
        
        .countdown-value {
            font-size: 3rem;
            font-weight: 700;
            margin-bottom: 5px;
            text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
        }
        
        .countdown-label {
            font-size: 1rem;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            font-weight: 500;
        }
        
        /* Message area styles */
        .message-area {
            min-height: 60px;
            margin: 15px auto;
            text-align: center;
            width: 100%;
            padding: 10px;
            transition: all 0.5s ease;
        }
        
        .message-text {
            font-size: 1.3rem;
            font-weight: bold;
            color: white;
            padding: 10px 20px;
            border-radius: 30px;
            display: inline-block;
            text-shadow: 0 0 5px rgba(0,0,0,0.7);
            animation: fadeIn 0.5s ease;
            /* REMOVED BACKGROUND PROPERTIES */
            background: transparent;
            box-shadow: none;
            backdrop-filter: none;
        }
        
        /* Emoji styling - ensure they appear in color */
        .message-text .emoji {
            font-style: normal;
            display: inline-block;
            text-shadow: none;
            filter: drop-shadow(0 0 2px rgba(0,0,0,0.5));
        }
        
        /* Button container styles */
        .button-container {
            display: flex;
            justify-content: center;
            gap: 15px;
            flex-wrap: wrap;
            margin: 15px 0;
        }
        
        /* Transparent Button Styles */
        .transparent-button {
            background: transparent;
            border: 2px solid var(--text);
            color: var(--text);
            padding: 14px 30px;
            font-size: 1.2rem;
            border-radius: 50px;
            cursor: pointer;
            display: block;
            transition: all 0.4s ease;
            font-weight: bold;
            letter-spacing: 1px;
            position: relative;
            overflow: hidden;
            min-width: 180px;
        }
        
        .transparent-button:hover {
            transform: translateY(-5px) scale(1.05);
            background: rgba(255, 255, 255, 0.1);
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        }
        
        .transparent-button:active {
            transform: translateY(2px);
        }
        
        /* LOVE LETTER BUTTON STYLES */
        .loveletter-button {
            background: linear-gradient(45deg, #d66efd, #6a11cb, #2575fc);
            background-size: 300% 300%;
            color: white;
            border: none;
            padding: 14px 30px;
            font-size: 1.2rem;
            border-radius: 50px;
            cursor: pointer;
            display: block;
            box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
            transition: all 0.4s ease;
            font-weight: bold;
            letter-spacing: 1px;
            position: relative;
            overflow: hidden;
            animation: gradientBG 8s ease infinite, pulse 2s infinite;
            text-decoration: none;
            min-width: 180px;
        }
        
        .loveletter-button:hover {
            transform: translateY(-5px) scale(1.05);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
            animation: none;
            background-position: 100% 50%;
        }
        
        .loveletter-button:active {
            transform: translateY(2px);
        }
        
        .loveletter-button::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(255, 255, 255, 0.3);
            clip-path: circle(0 at 50% 50%);
            transition: clip-path 0.6s ease;
        }
        
        .loveletter-button:hover::before {
            clip-path: circle(80px at 50% 50%);
        }
        
        @keyframes pulse {
            0% { box-shadow: 0 0 0 0 rgba(214, 110, 253, 0.7); }
            70% { box-shadow: 0 0 0 12px rgba(214, 110, 253, 0); }
            100% { box-shadow: 0 0 0 0 rgba(214, 110, 253, 0); }
        }
        
        .message {
            font-size: 1.1rem;
            line-height: 1.6;
            max-width: 700px;
            margin: 0 auto 15px;
            background: var(--message-bg);
            padding: 20px;
            border-radius: 15px;
            font-style: italic;
        }
        
        .heart {
            color: #ff6b6b;
            animation: heartbeat 1.5s infinite;
            display: inline-block;
        }
        
        @keyframes heartbeat {
            0% { transform: scale(1); }
            5% { transform: scale(1.2); }
            10% { transform: scale(1.1); }
            15% { transform: scale(1.3); }
            50% { transform: scale(1); }
            100% { transform: scale(1); }
        }
        
        .confetti {
            position: absolute;
            width: 8px;
            height: 8px;
            background-color: #f00;
            animation: confetti-fall 5s linear infinite;
        }
        
        @keyframes confetti-fall {
            0% { transform: translateY(-100px) rotate(0deg); opacity: 1; }
            100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
        }
        
        .footer {
            margin-top: 20px;
            font-size: 1rem;
            opacity: 0.8;
        }
        
        .gift-icon {
            font-size: 3rem;
            margin-bottom: 15px;
            animation: bounce 2s infinite;
        }
        
        @keyframes bounce {
            0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
            40% {transform: translateY(-20px);}
            60% {transform: translateY(-10px);}
        }
        
        /* Modal Styles */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            z-index: 1000;
            justify-content: center;
            align-items: center;
            backdrop-filter: blur(5px);
        }
        
        .modal-content {
            background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
            border-radius: 20px;
            width: 90%;
            max-width: 600px;
            padding: 30px;
            position: relative;
            box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
            color: #333;
            max-height: 90vh;
            overflow-y: auto;
        }
        
        .close-modal {
            position: absolute;
            top: 15px;
            right: 15px;
            font-size: 1.5rem;
            cursor: pointer;
            color: #333;
            background: rgba(255, 255, 255, 0.5);
            width: 35px;
            height: 35px;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        
        .letter-content {
            text-align: left;
            line-height: 1.7;
            font-size: 1rem;
        }
        
        .letter-content p {
            margin-bottom: 12px;
        }
        
        /* Birthday Surprise Popup */
        .birthday-popup {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, #ff6b6b, #6a11cb);
            z-index: 2000;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            text-align: center;
            padding: 15px;
            animation: popupEntrance 0.8s ease;
        }
        
        @keyframes popupEntrance {
            0% { opacity: 0; transform: scale(0.8); }
            100% { opacity: 1; transform: scale(1); }
        }
        
        .popup-content {
            max-width: 700px;
            padding: 30px;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
        }
        
        .popup-content h2 {
            font-size: 3rem;
            margin-bottom: 20px;
            color: white;
            text-shadow: 0 3px 10px rgba(255, 182, 193, 0.5);
            background: linear-gradient(to right, #fff, #feb47b);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        
        .popup-content p {
            font-size: 1.5rem;
            margin-bottom: 30px;
            color: white;
            line-height: 1.5;
        }
        
        .popup-btn {
            background: white;
            color: #ff6b6b;
            border: none;
            padding: 12px 35px;
            font-size: 1.2rem;
            border-radius: 50px;
            cursor: pointer;
            font-weight: bold;
            box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
            transition: all 0.3s ease;
        }
        
        .popup-btn:hover {
            transform: translateY(-4px) scale(1.05);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
        }
        
        /* Animation Keyframes */
        @keyframes gradientBG {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }
        
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        
        /* Responsive Design */
        @media (max-width: 768px) {
            h1 { font-size: 2.2rem; }
            .subtitle { font-size: 1.1rem; }
            .birthday-date { font-size: 1.2rem; }
            .countdown-box { 
                width: 110px; 
                height: 110px; 
            }
            .countdown-value { font-size: 2.2rem; }
            .countdown-label { font-size: 0.9rem; }
            .message { font-size: 1rem; }
            .transparent-button, .loveletter-button { 
                padding: 12px 25px; 
                font-size: 1.1rem; 
                min-width: 160px;
            }
            .message-text {
                font-size: 1.1rem;
            }
            .popup-content h2 { font-size: 2.2rem; }
            .popup-content p { font-size: 1.2rem; }
        }
        
        @media (max-width: 480px) {
            .container { padding: 20px 15px; }
            h1 { font-size: 1.8rem; }
            .countdown-container {
                gap: 10px;
            }
            .countdown-box { 
                width: 75px; 
                height: 75px; 
            }
            .countdown-value { font-size: 1.8rem; }
            .countdown-label { 
                font-size: 0.7rem; 
                letter-spacing: 1px;
            }
            .birthday-date { 
                font-size: 1rem; 
                padding: 6px 15px; 
            }
            .transparent-button, .loveletter-button { 
                padding: 10px 20px; 
                font-size: 1rem; 
                min-width: 140px;
            }
            .control-btn { 
                width: 35px; 
                height: 35px; 
                font-size: 0.9rem; 
            }
            .popup-content h2 { font-size: 1.8rem; }
            .popup-content p { font-size: 1rem; }
            .message {
                font-size: 0.9rem;
                padding: 15px;
            }
            .button-container {
                gap: 10px;
            }
            .message-text {
                font-size: 1rem;
            }
            .gift-icon {
                font-size: 2.5rem;
            }
        }
        
        @media (max-width: 360px) {
            .countdown-box { 
                width: 65px; 
                height: 65px; 
            }
            h1 { font-size: 1.6rem; }
            .subtitle { font-size: 0.95rem; }
            .birthday-date { 
                font-size: 0.95rem; 
                padding: 5px 12px; 
            }
            .transparent-button, .loveletter-button {
                min-width: 130px;
            }
        }
