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

:root {
    --bg-gradient-start: #0f0c29;
    --bg-gradient-mid: #302b63;
    --bg-gradient-end: #24243e;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);
    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-gradient: linear-gradient(135deg, #6366f1, #8b5cf6, #a855f7);
    --hour-bg: rgba(255, 255, 255, 0.03);
    --hour-border: rgba(255, 255, 255, 0.08);
    --highlight-bg: rgba(99, 102, 241, 0.4);
    --highlight-border: rgba(139, 92, 246, 0.6);
    --danger: #ef4444;
    --danger-hover: #dc2626;
    --night-bg: rgba(30, 41, 59, 0.6);
    --day-bg: rgba(251, 191, 36, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-mid), var(--bg-gradient-end));
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
}

.app-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 2rem;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 300;
}

/* Controls */
.controls {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.add-timezone {
    display: flex;
    gap: 1rem;
    align-items: center;
}

#timezone-select {
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    min-width: 280px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

#timezone-select:hover {
    border-color: var(--accent-primary);
}

#timezone-select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

#timezone-select option {
    background: #1e1b4b;
    color: var(--text-primary);
}

#timezone-select optgroup {
    background: #0f0c29;
    color: var(--text-secondary);
    font-weight: 600;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

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

/* Slider Container */
.slider-container {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.slider-container label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.slider-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.current-time {
    font-size: 1.5rem;
    font-weight: 600;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.time-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-now {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.4);
    color: var(--accent-primary);
}

.btn-now:hover {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
}

#time-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: var(--hour-bg);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

#time-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent-gradient);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    transition: transform 0.2s ease;
}

#time-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

#time-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent-gradient);
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.slider-ticks-container {
    margin-top: 0.5rem;
}

.slider-ticks {
    display: flex;
    width: 100%;
    padding: 0 12px;
    /* Offset to align with slider thumb */
}

.tick-group {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

.tick {
    flex: 1;
    height: 6px;
    background: var(--text-muted);
    opacity: 0.3;
    margin-right: 1px;
}

.tick.major {
    height: 12px;
    opacity: 0.6;
    background: var(--text-secondary);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.25rem;
    color: var(--text-muted);
    font-size: 0.7rem;
    padding: 0 8px;
}

.slider-labels span {
    flex: 1;
    text-align: left;
}

/* Timezone Grid */
.timezone-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.timezone-row {
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    animation: slideIn 0.4s ease;
    position: relative;
}

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

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

.timezone-row:hover {
    border-color: rgba(99, 102, 241, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.timezone-row.reference {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.1));
    border-color: rgba(99, 102, 241, 0.3);
}

.timezone-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.timezone-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.timezone-name-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.timezone-current-time {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.timezone-name {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.timezone-abbr {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.timezone-abbr strong {
    color: #ffffff;
    font-weight: 600;
}

/* Origin Timezone Selector */
.origin-select {
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(99, 102, 241, 0.3);
    background: rgba(99, 102, 241, 0.15);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.origin-select:hover {
    border-color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.25);
}

.origin-select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.origin-select option {
    background: #1e1b4b;
    color: var(--text-primary);
}

.origin-select optgroup {
    background: #0f0c29;
    color: var(--text-secondary);
    font-weight: 600;
}

.hours-container {
    display: flex;
    flex: 1;
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.hours-container::-webkit-scrollbar {
    display: none;
}

.hour-block {
    flex: 1;
    min-width: 42px;
    height: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--hour-bg);
    border: 1px solid var(--hour-border);
    transition: all 0.2s ease;
    position: relative;
}

.hour-block.night {
    background: var(--night-bg);
}

.hour-block.day {
    background: var(--day-bg);
}

.hour-block.highlighted {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.5), rgba(139, 92, 246, 0.5));
    border-color: rgba(167, 139, 250, 0.8);
    transform: scale(1.08);
    z-index: 10;
    box-shadow:
        0 0 10px rgba(99, 102, 241, 0.6),
        0 0 20px rgba(139, 92, 246, 0.5),
        0 0 35px rgba(168, 85, 247, 0.4),
        0 4px 15px rgba(99, 102, 241, 0.3);
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        box-shadow:
            0 0 10px rgba(99, 102, 241, 0.6),
            0 0 20px rgba(139, 92, 246, 0.5),
            0 0 35px rgba(168, 85, 247, 0.4),
            0 4px 15px rgba(99, 102, 241, 0.3);
    }

    50% {
        box-shadow:
            0 0 15px rgba(99, 102, 241, 0.8),
            0 0 30px rgba(139, 92, 246, 0.6),
            0 0 45px rgba(168, 85, 247, 0.5),
            0 4px 20px rgba(99, 102, 241, 0.4);
    }
}

.hour-number {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.hour-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.hour-block.highlighted .hour-number {
    color: #fff;
}

.hour-block.highlighted .hour-label {
    color: rgba(255, 255, 255, 0.8);
}

/* Delete Button */
.delete-btn {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1rem;
    flex-shrink: 0;
}

.delete-btn:hover {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
    transform: scale(1.1);
}

/* Current Time Indicator */
.time-indicator {
    font-size: 0.75rem;
    color: var(--accent-primary);
    font-weight: 600;
    position: absolute;
    bottom: -18px;
    white-space: nowrap;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
    font-size: 1rem;
}

.empty-state span {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 1200px) {
    .timezone-info {
        min-width: 160px;
    }

    .hour-block {
        min-width: 36px;
    }
}

@media (max-width: 768px) {
    .app-container {
        padding: 1rem;
    }

    .header h1 {
        font-size: 1.8rem;
    }

    .add-timezone {
        flex-direction: column;
        width: 100%;
    }

    #timezone-select {
        width: 100%;
        min-width: auto;
    }

    .btn {
        width: 100%;
    }

    .timezone-header {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .hours-container {
        width: 100%;
    }
}

/* ========================================
   Landing Page Sections
   ======================================== */

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.trust-badges .badge {
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.trust-badges .badge:hover {
    background: rgba(99, 102, 241, 0.25);
    transform: translateY(-2px);
}

/* Section Container */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Introduction Section */
.intro-section {
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem 2rem;
    margin-bottom: 2rem;
    border-radius: 16px;
}

.intro-content {
    max-width: 900px;
    margin: 0 auto;
}

.intro-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.intro-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.intro-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* Collapsible Section Toggles */
.collapsible-section {
    width: 100%;
}

.section-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    cursor: pointer;
    list-style: none;
    transition: all 0.3s ease;
    user-select: none;
}

.section-toggle::-webkit-details-marker {
    display: none;
}

.section-toggle:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

.toggle-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.toggle-text {
    flex: 1;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.toggle-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}

.collapsible-section[open] .toggle-hint {
    display: none;
}

.collapsible-section[open] .section-toggle {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-color: transparent;
    margin-bottom: 0;
}

.collapsible-section[open] .intro-content,
.collapsible-section[open]>div {
    border: 1px solid var(--card-border);
    border-top: none;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.01);
}

/* Use Cases Section */
.use-cases-section {
    padding: 5rem 0;
    background: rgba(255, 255, 255, 0.02);
}

.use-cases-section h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-intro {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.use-case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.use-case {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.use-case:hover {
    transform: translateY(-3px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.1);
}

.use-case h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.use-case p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.use-case .example {
    background: rgba(99, 102, 241, 0.1);
    border-left: 3px solid var(--accent-primary);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.use-case .example strong {
    color: var(--accent-primary);
}

/* Features Section */
.features-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, transparent-gradient-end 0%, rgba(15, 12, 41, 0.5) 100%);
}

.features-section h2,
.how-to-section h2,
.faq-section h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
}

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

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* How to Use Section */
.how-to-section {
    padding: 5rem 0;
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.step-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.step-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* FAQ Section */
.faq-section {
    padding: 5rem 0;
    background: rgba(255, 255, 255, 0.02);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(99, 102, 241, 0.3);
}

.faq-item[open] {
    border-color: rgba(99, 102, 241, 0.4);
    background: rgba(255, 255, 255, 0.08);
}

.faq-item summary {
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--accent-primary);
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item summary:hover {
    color: var(--accent-primary);
}

.faq-item p {
    padding: 0 1.5rem 1.25rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Footer */
.footer {
    padding: 3rem 0;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--card-border);
    margin-top: 2rem;
}

.footer-content {
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-logo {
    font-size: 1.5rem;
}

.footer-name {
    font-size: 1.25rem;
    font-weight: 600;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Responsive for Landing Sections */
@media (max-width: 768px) {
    .trust-badges {
        gap: 0.5rem;
    }

    .trust-badges .badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.75rem;
    }

    .features-section,
    .how-to-section,
    .faq-section {
        padding: 3rem 0;
    }

    .features-section h2,
    .how-to-section h2,
    .faq-section h2 {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .intro-section {
        padding: 1.5rem;
    }

    .intro-content h2 {
        font-size: 1.4rem;
    }

    .intro-content h3 {
        font-size: 1.1rem;
    }

    .use-cases-section {
        padding: 3rem 0;
    }

    .use-case-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .use-case {
        padding: 1.5rem;
    }
}

/* ========================================
   Google AdSense Styles - Sidebar Layout
   ======================================== */

/* Sidebar for ads (desktop only) */
.ad-sidebar {
    position: fixed;
    right: 20px;
    top: 100px;
    width: 160px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    z-index: 100;
}

.ad-sidebar-slot {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 0.5rem;
    min-height: 600px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

/* Main content wrapper to prevent overlap with sidebar */
.main-content-wrapper {
    max-width: 100%;
    margin: 0 auto;
}

/* Hide sidebar on smaller screens */
@media (max-width: 1400px) {
    .ad-sidebar {
        display: none;
    }
}

/* Adjust main content width on wide screens to make room for sidebar */
@media (min-width: 1401px) {
    .main-content-wrapper {
        margin-right: 180px;
        /* Width of sidebar + gap */
    }
}