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

        :root {
            --primary-color: #ffd700;
            --primary-dark: #ffb300;
            --dark-bg: #0f172a;
            --darker-bg: #020617;
            --card-bg: #1e293b;
            --text-primary: #f1f5f9;
            --text-secondary: #cbd5e1;
            --border-color: #334155;
            --accent: #10b981;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
            color: var(--text-primary);
            line-height: 1.6;
            min-height: 100vh;
        }

        header {
            background: rgba(15, 23, 42, 0.95);
            border-bottom: 1px solid var(--border-color);
            padding: 1.5rem 1rem;
            text-align: center;
            backdrop-filter: blur(10px);
            position: sticky;
            top: 0;
            z-index: 100;
        }

        header h1 {
            font-size: clamp(1.5rem, 5vw, 2.5rem);
            margin-bottom: 0.5rem;
            background: linear-gradient(45deg, var(--primary-color), #ffeb3b);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        header p {
            color: var(--text-secondary);
            font-size: clamp(0.9rem, 2vw, 1.1rem);
        }

        main {
            max-width: 1000px;
            margin: 0 auto;
            padding: 2rem 1rem;
        }

        .calculator-container {
            background: linear-gradient(135deg, #0f1419 0%, #1a2332 50%, #0d1b2a 100%);
            border-radius: 25px;
            padding: 30px;
            width: 100%;
            text-align: center;
            color: white;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
            position: relative;
            overflow: hidden;
            border: 1px solid rgba(255, 215, 0, 0.2);
            margin-bottom: 2rem;
        }

        /* Stars decoration */
        .calculator-container::before {
            content: '✦';
            position: absolute;
            top: 30px;
            right: 80px;
            font-size: 20px;
            color: rgba(255, 215, 0, 0.6);
            animation: twinkle 2s infinite;
        }

        .calculator-container::after {
            content: '✦';
            position: absolute;
            top: 50px;
            right: 50px;
            font-size: 16px;
            color: rgba(255, 215, 0, 0.4);
            animation: twinkle 2.5s infinite;
        }

        @keyframes twinkle {
            0%, 100% { opacity: 0.4; }
            50% { opacity: 1; }
        }

        .header-calc {
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 30px;
        }

        .moon-logo {
            font-size: 3em;
            margin-right: 15px;
            background: linear-gradient(45deg, #ffd700, #ffeb3b);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .section-calc {
            margin: 25px 0;
        }

        .section-title {
            font-size: 1.4em;
            color: white;
            margin-bottom: 20px;
            font-weight: 300;
        }

        .time-picker-container {
            background: rgba(15, 20, 25, 0.8);
            border: 2px solid #ffd700;
            border-radius: 20px;
            padding: 25px 20px;
            margin: 20px 0;
            backdrop-filter: blur(10px);
        }

        .time-wheel-container {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 20px;
            margin: 20px 0;
        }

        .wheel-wrapper {
            display: flex;
            flex-direction: column;
            align-items: center;
            position: relative;
        }

        .wheel {
            width: 80px;
            height: 200px;
            position: relative;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 15px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            overflow: hidden;
        }

        .wheel-viewport {
            height: 100%;
            overflow-y: auto;
            overflow-x: hidden;
            scroll-behavior: smooth;
            scrollbar-width: none;
            -ms-overflow-style: none;
            scroll-snap-type: y mandatory;
        }

        .wheel-viewport::-webkit-scrollbar {
            display: none;
        }

        .wheel-content {
            padding: 80px 0;
            display: flex;
            flex-direction: column;
        }

        .wheel-item {
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2em;
            color: rgba(255, 255, 255, 0.4);
            cursor: pointer;
            transition: all 0.3s ease;
            user-select: none;
            flex-shrink: 0;
            scroll-snap-align: center;
        }

        .wheel-item:hover {
            color: rgba(255, 215, 0, 0.8);
        }

        .wheel-item.active {
            color: white;
            font-size: 1.8em;
            font-weight: bold;
            text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
        }

        .wheel::before {
            content: '';
            position: absolute;
            top: calc(50% - 20px);
            left: 0;
            right: 0;
            height: 2px;
            background: rgba(255, 215, 0, 0.5);
            z-index: 10;
            pointer-events: none;
        }

        .wheel::after {
            content: '';
            position: absolute;
            top: calc(50% + 20px);
            left: 0;
            right: 0;
            height: 2px;
            background: rgba(255, 215, 0, 0.5);
            z-index: 10;
            pointer-events: none;
        }

        .am-pm-selector {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .am-pm-option {
            width: 60px;
            height: 60px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(255, 255, 255, 0.05);
            border: 2px solid rgba(255, 255, 255, 0.2);
            border-radius: 15px;
            color: rgba(255, 255, 255, 0.6);
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 600;
            font-size: 1.1em;
        }

        .am-pm-option.active {
            background: rgba(255, 215, 0, 0.2);
            border-color: #ffd700;
            color: #ffd700;
            box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
        }

        .am-pm-option:hover {
            border-color: #ffd700;
            color: #ffd700;
        }

        .btn {
            background: linear-gradient(45deg, #ffd700, #ffb300);
            color: #0f1419;
            border: none;
            padding: 15px 30px;
            border-radius: 25px;
            font-size: 1.1em;
            font-weight: 600;
            cursor: pointer;
            margin: 20px 10px;
            transition: all 0.3s ease;
            box-shadow: 0 5px 20px rgba(255, 215, 0, 0.3);
            min-width: 200px;
        }

        .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 7px 25px rgba(255, 215, 0, 0.4);
            background: linear-gradient(45deg, #ffeb3b, #ffc107);
        }

        .btn:active {
            transform: translateY(0);
        }

        .results {
            margin-top: 25px;
            padding: 20px;
            background: rgba(15, 20, 25, 0.6);
            border-radius: 20px;
            border: 2px solid rgba(255, 215, 0, 0.3);
            backdrop-filter: blur(10px);
        }

        .results h3 {
            color: #ffd700;
            margin-bottom: 20px;
            font-size: 1.4em;
            font-weight: 400;
        }

        .time-options {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 15px;
            margin: 20px 0;
        }

        .time-option {
            background: rgba(255, 255, 255, 0.08);
            border: 2px solid rgba(255, 215, 0, 0.3);
            border-radius: 15px;
            padding: 15px 20px;
            color: white;
            font-weight: 500;
            font-size: 1.1em;
            cursor: pointer;
            transition: all 0.3s ease;
            backdrop-filter: blur(5px);
            min-width: 140px;
        }

        .time-option:hover {
            background: rgba(255, 215, 0, 0.15);
            border-color: #ffd700;
            transform: translateY(-2px);
            box-shadow: 0 5px 20px rgba(255, 215, 0, 0.2);
        }

        .cycles-info {
            font-size: 0.85em;
            color: rgba(255, 255, 255, 0.6);
            margin-top: 5px;
        }

        .description {
            color: rgba(255, 255, 255, 0.8);
            font-size: 1em;
            line-height: 1.4;
            margin-bottom: 15px;
        }

        .hidden {
            display: none;
        }

        /* Info Sections */
        .info-section {
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 1.5rem;
            padding: 2rem 1.5rem;
            margin-bottom: 2rem;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        }

        .info-section h3 {
            color: var(--primary-color);
            margin-bottom: 1rem;
            font-size: clamp(1.1rem, 3vw, 1.4rem);
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .info-section p {
            color: var(--text-secondary);
            margin-bottom: 1rem;
            line-height: 1.8;
        }

        .sleep-habits {
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 1.5rem;
            padding: 2rem 1.5rem;
            margin-bottom: 2rem;
        }

        .sleep-habits h3 {
            color: var(--primary-color);
            margin-bottom: 1.5rem;
            font-size: clamp(1.1rem, 3vw, 1.4rem);
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .habits-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 1.5rem;
        }

        .habit-item {
            background: rgba(99, 102, 241, 0.05);
            border-left: 3px solid var(--primary-color);
            padding: 1rem;
            border-radius: 0.5rem;
            transition: all 0.3s ease;
        }

        .habit-item:hover {
            transform: translateX(5px);
            background: rgba(99, 102, 241, 0.1);
        }

        .habit-number {
            display: inline-block;
            background: var(--primary-color);
            color: #0f1419;
            width: 28px;
            height: 28px;
            border-radius: 50%;
            text-align: center;
            line-height: 28px;
            font-weight: 700;
            margin-right: 0.75rem;
            font-size: 0.9rem;
        }

        .habit-text {
            color: var(--text-secondary);
            line-height: 1.6;
        }

        .faq-section {
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 1.5rem;
            padding: 2rem 1.5rem;
            margin-bottom: 2rem;
        }

        .faq-section h3 {
            color: var(--primary-color);
            margin-bottom: 1.5rem;
            font-size: clamp(1.1rem, 3vw, 1.4rem);
        }

        .faq-item {
            margin-bottom: 1.5rem;
            border-bottom: 1px solid var(--border-color);
            padding-bottom: 1.5rem;
        }

        .faq-item:last-child {
            border-bottom: none;
        }

        .faq-question {
            color: var(--primary-color);
            font-weight: 600;
            margin-bottom: 0.75rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: clamp(0.95rem, 2vw, 1.05rem);
        }

        .faq-answer {
            color: var(--text-secondary);
            line-height: 1.8;
        }

        .feature-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1.5rem;
            margin-bottom: 2rem;
        }

        .feature-card {
            background: rgba(99, 102, 241, 0.05);
            border: 1px solid rgba(99, 102, 241, 0.2);
            border-radius: 1rem;
            padding: 1.5rem;
            text-align: center;
            transition: all 0.3s ease;
        }

        .feature-card:hover {
            background: rgba(99, 102, 241, 0.1);
            transform: translateY(-5px);
        }

        .feature-icon {
            font-size: 2rem;
            margin-bottom: 1rem;
        }

        .feature-card h4 {
            color: var(--text-primary);
            margin-bottom: 0.5rem;
            font-size: 0.95rem;
        }

        .feature-card p {
            color: var(--text-secondary);
            font-size: 0.85rem;
        }

        /* Footer Styles */
        .calculator-footer {
            background: transparent;
            color: #333;
            padding: 40px 20px 20px;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        .footer-container {
            max-width: 1200px;
            margin: 0 auto;
        }
        
        .footer-title {
            text-align: center;
            font-size: 28px;
            font-weight: bold;
            margin-bottom: 30px;
            text-shadow: none;
            color: white;
        }
        
        .calculator-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
            margin-bottom: 30px;
        }
        
        .calculator-section {
            background: #f8f9fa;
            border-radius: 15px;
            padding: 20px;
            border: 1px solid #e9ecef;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        
        .calculator-section:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        }
        
        .section-title-footer {
            font-size: 18px;
            font-weight: bold;
            margin-bottom: 15px;
            color: #333;
            border-bottom: 2px solid #dee2e6;
            padding-bottom: 8px;
        }
        
        .calculator-links {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            gap: 8px;
        }
        
        .calculator-link {
            color: #495057;
            text-decoration: none;
            padding: 6px 10px;
            border-radius: 6px;
            font-size: 13px;
            transition: all 0.3s ease;
            background: #fff;
            border: 1px solid #dee2e6;
        }
        
        .calculator-link:hover {
            background: #e9ecef;
            color: #212529;
            border-color: #adb5bd;
            transform: scale(1.02);
        }
        
        .footer-bottom {
            text-align: center;
            padding-top: 20px;
            border-top: 1px solid #dee2e6;
            font-size: 14px;
            color: #6c757d;
        }

        @media (max-width: 768px) {
            main {
                padding: 1.5rem 1rem;
            }

            .calculator-container {
                padding: 1.5rem 1rem;
                border-radius: 1rem;
            }

            .time-wheel-container {
                gap: 15px;
            }

            .wheel {
                width: 70px;
                height: 180px;
            }

            .time-options {
                flex-direction: column;
                align-items: center;
            }

            .time-option {
                width: 100%;
                max-width: 250px;
            }

            .btn {
                width: 100%;
                max-width: 280px;
            }

            .info-section,
            .sleep-habits,
            .faq-section {
                padding: 1.5rem 1rem;
                border-radius: 1rem;
            }

            .habits-grid {
                grid-template-columns: 1fr;
            }

            .calculator-grid {
                grid-template-columns: 1fr;
                gap: 20px;
            }
            
            .calculator-links {
                grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
            }
            
            .footer-title {
                font-size: 24px;
            }
        }

        @media (max-width: 480px) {
            header h1 {
                font-size: 1.3rem;
            }

            .moon-logo {
                font-size: 2.5em;
            }

            .calculator-container {
                padding: 1rem;
            }

            .time-options {
                grid-template-columns: repeat(2, 1fr);
            }

            .btn {
                padding: 12px 20px;
                font-size: 1em;
                min-width: auto;
            }
        }
    