/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #0f1729 0%, #1a2332 100%);
    color: #ffffff;
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: rgba(15, 23, 41, 0.8);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: #a78bfa;
}

.logo i {
    font-size: 24px;
}

.nav-menu {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 8px;
}

.nav-link:hover {
    color: #a78bfa;
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: #a78bfa;
    background: rgba(255, 255, 255, 0.1);
}



.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* Main Content */
.main-content {
    padding: 40px 0;
}

/* Ad Space Styling */
.ad-space {
    width: 100%;
    max-width: 970px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 8px;
    overflow: hidden;
}

.top-ad {
    margin-top: 20px;
    margin-bottom: 20px;
}

.bottom-ad {
    margin-top: 40px;
    margin-bottom: 40px;
}

.faq-ad {
    margin: 20px 0;
    width: 100%;
}

.result-ad {
    grid-column: 1 / -1;
    margin: 15px 0;
    display: flex;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 50px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #a78bfa 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
}

/* Mode Buttons */
.mode-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
}

.mode-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(167, 139, 250, 0.3);
    padding: 12px 24px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.mode-btn:hover {
    background: rgba(167, 139, 250, 0.1);
    border-color: #a78bfa;
}

.mode-btn.active {
    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
    border-color: #a78bfa;
    color: white;
}

/* Time Container */
.time-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    max-width: 750px;
    margin: 0 auto;
}

/* Time Input Section */
.time-input-section {
    margin-bottom: 25px;
}

.time-label {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
    font-weight: 500;
}

.time-display {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 18px 24px;
}

.time-icon {
    font-size: 24px;
    color: #a78bfa;
}

.time-value {
    background: transparent;
    border: none;
    color: white;
    font-size: 32px;
    font-weight: 700;
    width: 60px;
    text-align: center;
    outline: none;
}

.time-separator {
    font-size: 32px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
}

/* Quick Presets */
.quick-presets {
    margin-bottom: 25px;
}

.presets-label {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 12px;
    font-weight: 400;
}

.preset-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.preset-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 16px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    white-space: nowrap;
}

.preset-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.preset-btn.active {
    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
    border-color: #a78bfa;
    color: white;
}

.preset-btn i {
    font-size: 14px;
}

/* Calculate Button */
.calculate-btn {
    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
    border: none;
    padding: 16px 48px;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 10px 30px rgba(167, 139, 250, 0.3);
}

/* Current Time Section (Sleep Now Page) */
.current-time-section {
    text-align: center;
    margin-bottom: 25px;
}

.current-time-section .time-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 15px;
    font-weight: 500;
}

.current-time-display {
    font-size: 72px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.fall-asleep-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.fall-asleep-text span {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

/* Sleep Duration Slider */
.sleep-duration-section {
    margin-bottom: 25px;
}

.duration-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.duration-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.duration-value {
    font-size: 16px;
    color: #a78bfa;
    font-weight: 700;
}

.sleep-slider {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    -webkit-appearance: none;
    margin-bottom: 10px;
}

.sleep-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(167, 139, 250, 0.4);
}

.sleep-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(167, 139, 250, 0.4);
}

.sleep-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: linear-gradient(to right,
            rgba(167, 139, 250, 0.3) 0%,
            rgba(167, 139, 250, 0.6) 50%,
            rgba(167, 139, 250, 0.3) 100%);
}

.sleep-slider::-moz-range-track {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: linear-gradient(to right,
            rgba(167, 139, 250, 0.3) 0%,
            rgba(167, 139, 250, 0.6) 50%,
            rgba(167, 139, 250, 0.3) 100%);
}

.duration-helper {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
    text-align: center;
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(167, 139, 250, 0.4);
}

/* Bedtimes Section */
.bedtimes-section {
    margin: 50px 0;
    display: none;
}

.bedtimes-section.show {
    display: block;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-header h2 {
    font-size: 28px;
    font-weight: 700;
}

.copy-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

/* Bedtime Cards */
.bedtime-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 20px;
    max-width: 500px;
    /* Reduced max-width for vertical column aesthetic on desktop */
    margin-left: auto;
    margin-right: auto;
}

.bedtime-card {
    border-radius: 16px;
    padding: 20px 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bedtime-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.card-purple {
    background: linear-gradient(135deg, #4c1d95 0%, #5b21b6 100%);
}

.card-teal {
    background: linear-gradient(135deg, #065f46 0%, #047857 100%);
}

.card-blue {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
}

.card-brown {
    background: linear-gradient(135deg, #78350f 0%, #92400e 100%);
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.card-cycles {
    font-size: 13px;
    opacity: 0.8;
    font-weight: 500;
}

.card-time {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1;
}

.card-duration {
    font-size: 14px;
    opacity: 0.75;
    font-weight: 400;
}

.card-badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.badge-recommended {
    background: rgba(139, 92, 246, 0.3);
    color: #ffffff;
    border: 1px solid rgba(139, 92, 246, 0.5);
}

.badge-good {
    background: rgba(16, 185, 129, 0.3);
    color: #ffffff;
    border: 1px solid rgba(16, 185, 129, 0.5);
}

.badge-okay {
    background: rgba(251, 146, 60, 0.3);
    color: #ffffff;
    border: 1px solid rgba(251, 146, 60, 0.5);
}

.badge-avoid {
    background: rgba(239, 68, 68, 0.3);
    color: #ffffff;
    border: 1px solid rgba(239, 68, 68, 0.5);
}

.sleep-insights {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
    font-weight: 600;
    letter-spacing: 2px;
    margin-top: 20px;
}

/* Info Section */
.info-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px;
    margin: 40px 0;
}

.info-icon {
    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 20px;
}

.info-section h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

.info-content {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.info-content p {
    margin-bottom: 20px;
}

.info-content ul {
    margin: 15px 0 20px 20px;
    color: rgba(255, 255, 255, 0.8);
}

.info-content li {
    margin-bottom: 10px;
    line-height: 1.8;
}

/* FAQ Section */
.faq-section {
    margin: 50px 0;
}

.faq-section h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px;
    color: white;
    font-size: 16px;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-question i {
    transition: transform 0.3s ease;
    color: #a78bfa;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 20px 20px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* Nap Calculator Styles */
.nap-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.nap-option-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.nap-option-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-3px);
}

.nap-option-card.active {
    background: rgba(167, 139, 250, 0.15);
    border-color: #a78bfa;
    box-shadow: 0 0 20px rgba(167, 139, 250, 0.2);
}

.nap-card-icon-box {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 18px;
    color: #a78bfa;
}

.nap-option-card.active .nap-card-icon-box {
    background: #a78bfa;
    color: #ffffff;
}

.nap-option-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.nap-duration-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 12px;
}

.nap-description {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.4;
    margin: 0;
}

.toggle-container-wide {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.toggle-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* Switch Styles */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-round {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .4s;
    border-radius: 24px;
}

.slider-round:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider-round {
    background-color: #a78bfa;
}

input:checked+.slider-round:before {
    transform: translateX(20px);
}

/* Nap Result Card */
.nap-result-card {
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.nap-result-card.show {
    display: flex;
    flex-direction: column;
}

.nap-result-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.nap-result-icon-box {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #ffffff;
}

.nap-result-title-box h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: #ffffff;
}

.nap-result-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.alarm-time-box {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 20px 24px;
    width: 350px;
    max-width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.alarm-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
}

.alarm-time {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.1;
    color: #ffffff;
}

.sleep-insights {
    margin-top: 40px;
}

@media (max-width: 768px) {
    .nap-type-grid {
        grid-template-columns: 1fr;
    }
}


/* Tools Section */
.tools-section {
    margin: 50px 0;
}

.tools-section h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 25px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.tool-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.tool-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
    border-color: rgba(167, 139, 250, 0.3);
}

.tool-icon {
    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.tool-content {
    flex: 1;
}

.tool-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #ffffff;
}

.tool-card p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.tool-arrow {
    color: rgba(255, 255, 255, 0.3);
    font-size: 14px;
    transition: all 0.3s ease;
}

.tool-card:hover .tool-arrow {
    color: #a78bfa;
    transform: translateX(3px);
}

.tool-card-sponsored {
    border: 1px dashed rgba(255, 255, 255, 0.2);
}

.tool-card-sponsored .tool-icon {
    background: rgba(255, 193, 7, 0.2);
}

.tool-card-sponsored .tool-arrow {
    font-size: 12px;
}

/* Footer */
.footer {
    background: rgba(15, 23, 41, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px 0 20px;
    margin-top: 60px;
}

.newsletter {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}

.newsletter-content {
    display: flex;
    align-items: center;
    gap: 15px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.newsletter-content i {
    font-size: 24px;
    color: #a78bfa;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-links {
    display: flex;
    gap: 10px;
    align-items: center;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #a78bfa;
}

/* Responsive Design */
/* Custom Dropdown Styles */
.custom-dropdown {
    position: relative;
    width: 100%;
    user-select: none;
}

.dropdown-selected {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dropdown-selected i:not(.dropdown-arrow) {
    color: #a78bfa;
    font-size: 18px;
}

.dropdown-selected span {
    flex: 1;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.dropdown-arrow {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    transition: transform 0.3s ease;
}

.custom-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-options {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.custom-dropdown.active .dropdown-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-option {
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.dropdown-option:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.dropdown-option.selected {
    background: rgba(167, 139, 250, 0.1);
    color: #a78bfa;
}

.check-icon {
    margin-left: auto;
    font-size: 12px;
}

/* Recommendation Box */
.recommendation-box {
    background: rgba(167, 139, 250, 0.1);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 25px;
    border: 1px solid rgba(167, 139, 250, 0.2);
}

.rec-icon {
    width: 40px;
    height: 40px;
    background: rgba(167, 139, 250, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #a78bfa;
}

.rec-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: white;
}

.rec-content p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* Requirements Card */
.requirements-section {
    margin: 40px 0;
}

.requirements-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
}

.requirements-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.req-info {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 200px;
    min-width: 200px;
}

.req-icon-small {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.req-info span {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.req-bar-container {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.req-bar {
    height: 100%;
    background: linear-gradient(to right, #a78bfa, #8b5cf6);
    border-radius: 4px;
}

.req-range {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    width: 40px;
    text-align: right;
}

/* Disclaimer Banner */
.disclaimer-banner {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    gap: 12px;
    margin-top: 40px;
    align-items: flex-start;
}

.disclaimer-banner i {
    color: rgba(255, 255, 255, 0.3);
    font-size: 16px;
    margin-top: 2px;
}

.disclaimer-banner p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #0f1729;
        flex-direction: column;
        padding: 20px;
        gap: 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        width: 100%;
        justify-content: flex-start;
        padding: 12px 20px;
    }

    .mode-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .preset-buttons {
        grid-template-columns: repeat(2, 1fr);
    }

    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .req-info {
        width: auto;
        min-width: auto;
    }

    .requirement-item {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .req-bar-container {
        height: 6px;
    }

    .req-range {
        text-align: left;
    }

    .newsletter-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .bedtime-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .time-display {
        padding: 14px 16px;
    }

    .time-value {
        font-size: 28px;
        width: 50px;
    }

    .time-separator {
        font-size: 28px;
    }

    .preset-buttons {
        grid-template-columns: 1fr;
    }

    .card-time {
        font-size: 32px;
    }

    .bedtime-card {
        padding: 16px 20px;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }
}

/* Time Picker Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    width: 100%;
    max-width: 400px;
    padding: 30px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: modalPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalPop {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.modal-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: white;
}

.close-modal {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 28px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.picker-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 35px;
}

.picker-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.picker-btn {
    background: rgba(167, 139, 250, 0.1);
    border: 1px solid rgba(167, 139, 250, 0.2);
    border-radius: 12px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a78bfa;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.picker-btn:hover {
    background: #a78bfa;
    color: white;
}

.picker-value {
    font-size: 42px;
    font-weight: 700;
    color: white;
    font-variant-numeric: tabular-nums;
    min-width: 65px;
    text-align: center;
}

.picker-separator {
    font-size: 48px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.3);
}

.set-time-btn {
    width: 100%;
    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
    border: none;
    padding: 16px;
    border-radius: 14px;
    color: white;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(167, 139, 250, 0.4);
    transition: all 0.3s ease;
}

.set-time-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(167, 139, 250, 0.5);
}

.time-value {
    cursor: pointer;
    background: none;
    border: none;
    color: white;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    padding: 0;
    text-align: center;
    transition: all 0.2s ease;
}

.time-display:hover .time-value {
    color: #a78bfa;
}

.time-display {
    cursor: pointer;
    transition: all 0.2s ease;
}

.time-display:hover {
    background: rgba(167, 139, 250, 0.05);
}

/* --- Added Missing Component Styles --- */

/* Sleep Debt Results */
.debt-result-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 25px;
    animation: fadeIn 0.5s ease;
}

.debt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-left: 20px;
}

.debt-status h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.debt-status p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.plan-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 25px;
}

.plan-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.plan-header i {
    font-size: 18px;
}

.plan-header h4 {
    font-size: 16px;
    font-weight: 600;
    color: white;
}

.plan-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 10px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 12px;
    text-align: center;
}

.stat-item span {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 5px;
}

.stat-item strong {
    font-size: 18px;
    color: white;
    font-weight: 700;
}

/* Nap Results */
.nap-result-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.nap-result-icon-box {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.nap-result-title-box h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}

.nap-result-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.alarm-time-box {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.alarm-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.alarm-time {
    font-size: 56px;
    font-weight: 700;
    color: white;
    letter-spacing: 2px;
    line-height: 1;
}

/* Age Recommendations */
.recommendation-box {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(167, 139, 250, 0.05);
    border: 1px solid rgba(167, 139, 250, 0.2);
    padding: 20px 25px;
    border-radius: 16px;
    margin-bottom: 30px;
}

.rec-icon {
    font-size: 32px;
    color: #a78bfa;
}

.rec-content h4 {
    font-size: 18px;
    color: white;
    margin-bottom: 4px;
}

.rec-content p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Custom Dropdown (Age Group) */
.custom-dropdown {
    position: relative;
    cursor: pointer;
}

.dropdown-selected {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 20px;
    border-radius: 12px;
    color: white;
    font-weight: 500;
}

.dropdown-arrow {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.custom-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-options {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 100%;
    background: #1f2937;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

.custom-dropdown.active .dropdown-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-option {
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background 0.2s ease;
}

.dropdown-option:hover {
    background: rgba(255, 255, 255, 0.05);
}

.dropdown-option.selected {
    color: #a78bfa;
    background: rgba(167, 139, 250, 0.05);
}

.check-icon {
    margin-left: auto;
}

/* Toggle Switch */
.toggle-container-wide {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 25px;
}

.toggle-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-round {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .4s;
    border-radius: 34px;
}

.slider-round:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider-round {
    background-color: #a78bfa;
}

input:checked+.slider-round:before {
    transform: translateX(24px);
}

/* Additional Responsiveness for Added Components */
@media (max-width: 768px) {
    .stats-row {
        grid-template-columns: 1fr;
    }

    .recommendation-box {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .debt-header {
        flex-direction: column;
        text-align: center;
        padding-left: 0;
        gap: 10px;
    }

    .alarm-time {
        font-size: 42px;
    }

    .nap-result-header {
        flex-direction: column;
        text-align: center;
    }
}