/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #0f0f10;
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.85), transparent 32%),
        radial-gradient(circle at right 20%, rgba(215,210,202,0.7), transparent 26%),
        linear-gradient(180deg, #efede9 0%, #e8e4de 100%);
    min-height: 100vh;
}

/* Header Styles */
header {
    background: transparent;
    backdrop-filter: none;
    border-bottom: 1px solid rgba(15, 15, 16, 0.1);
    padding: 1rem 0;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

h1 {
    color: #0f0f10;
    font-size: 1.8rem;
    font-weight: 600;
    text-align: center;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 3rem;
    color: #0f0f10;
}

.hero h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.2rem;
    color: #66615b;
    max-width: 600px;
    margin: 0 auto;
}

/* Converter Card */
.converter-container {
    display: flex;
    justify-content: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 10;
}

.converter-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 900px;
    position: relative;
}

/* Format Toggle */
.format-toggle-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.format-toggle-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
}

.format-toggle-caption {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted, #6b7280);
    font-weight: 800;
}

.format-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: #6b7280;
    cursor: pointer;
    background: #f3f4f6;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.format-toggle:hover {
    background: #e5e7eb;
}

.toggle-slider {
    position: relative;
    width: 50px;
    height: 24px;
    background: #cbd5e1;
    border-radius: 12px;
    transition: background 0.3s ease;
}

.toggle-slider::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.format-toggle input:checked + .toggle-slider {
    background: #667eea;
}

.format-toggle input:checked + .toggle-slider::after {
    transform: translateX(26px);
}

.format-toggle input {
    display: none;
}

/* Time Input Containers */
.time-input-container {
    position: relative;
}

.hidden {
    display: none !important;
}

/* Countries Grid Layout */
.countries-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: start;
    margin-bottom: 2rem;
}

/* Column Styles */
.country-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.column-header {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.78);
    border-radius: 15px;
    border: 1px solid rgba(15, 15, 16, 0.1);
}

.column-header h3 {
    margin-bottom: 0.5rem;
    color: #0f0f10;
    font-size: 1.2rem;
    font-weight: 600;
}

.column-header p {
    color: #66615b;
    font-size: 0.9rem;
    margin: 0;
}

/* Search Select Wrapper */
.search-select-wrapper {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid rgba(15, 15, 16, 0.12);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.92);
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-input.has-selection {
    background: #f0f9ff;
    border-color: #0ea5e9;
}

/* Dropdown List */
.dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 10px 10px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 9999;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dropdown-list.hidden {
    display: none;
}

.dropdown-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dropdown-item:hover {
    background: #f8fafc;
}

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

.dropdown-item.selected {
    background: #eff6ff;
    border-left: 3px solid #667eea;
}

.country-flag {
    font-size: 1.2rem;
    min-width: 24px;
}

.country-name {
    flex-grow: 1;
    font-weight: 500;
}

/* Time Display */
.converted-time-display {
    text-align: center;
}

.time-display-large {
    font-size: 2.5rem;
    font-weight: 700;
    color: #667eea;
    margin: 0.5rem 0;
    padding: 1rem;
    background: rgba(102, 126, 234, 0.07);
    border-radius: 15px;
    border: 2px solid rgba(102, 126, 234, 0.18);
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.time-display-large.empty {
    color: #9ca3af;
    font-size: 1.2rem;
    font-weight: 400;
}

/* Location and Time Buttons */
.location-btn, .time-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.location-btn:hover, .time-btn:hover {
    background: linear-gradient(135deg, #5a6fd6 0%, #6a3f96 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
}

.location-btn:active, .time-btn:active {
    transform: translateY(0);
}

.location-btn:disabled, .time-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Time Input Group for Destination */
.time-input-group {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.time-input-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.time-input-group input[type="time"] {
    width: calc(100% - 80px);
    display: inline-block;
    margin-right: 0.5rem;
}

.clear-btn {
    background: #ef4444;
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 70px;
}

.clear-btn:hover {
    background: #dc2626;
}

/* Loading States */
.location-btn.loading, .time-btn.loading {
    background: #9ca3af;
    cursor: not-allowed;
    position: relative;
}

.location-btn.loading::after, .time-btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Input Groups */
.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #0f0f10;
}

.input-group select,
.input-group .time-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid rgba(15, 15, 16, 0.12);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    font-weight: 400;
    color: #0f0f10;
    line-height: 1.5;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.92);
    box-sizing: border-box;
}

.input-group select:focus,
.input-group .time-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.time-input::placeholder {
    color: #9ca3af;
    font-style: italic;
}

.input-group small {
    color: #66615b;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* Switch Button */
.switch-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding-top: 3rem;
}

.switch-btn {
    background: #667eea;
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.switch-btn:hover {
    background: #5a67d8;
    transform: rotate(180deg) scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.switch-btn:active {
    transform: rotate(180deg) scale(0.95);
}

/* Convert Button */
.convert-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.convert-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

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

.convert-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Result Section */
.result {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.78);
    border-radius: 15px;
    border: 1px solid rgba(15, 15, 16, 0.1);
    animation: slideIn 0.5s ease-out;
}

.result.hidden {
    display: none;
}

.result h3 {
    color: #0f0f10;
    margin-bottom: 1rem;
    text-align: center;
}

.time-display {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
}

.origin-time,
.converted-time {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 8px;
    border: 1px solid rgba(15, 15, 16, 0.1);
}

.label {
    font-weight: 500;
    color: #66615b;
}

.time {
    font-size: 1.2rem;
    font-weight: 600;
    color: #0f0f10;
}

.time.highlight {
    color: #667eea;
    font-size: 1.4rem;
}

.time-info {
    text-align: center;
    color: #66615b;
    font-size: 0.9rem;
}

/* Info Section */
.info-section {
    background: rgba(255, 255, 255, 0.78);
    padding: 3rem 2rem;
    border-radius: 20px;
    margin-bottom: 3rem;
    box-shadow: 0 24px 80px rgba(24, 24, 24, 0.08);
}

.info-section h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: #0f0f10;
    font-size: 1.8rem;
}

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

.info-card {
    text-align: center;
    padding: 1.5rem;
    border: 1px solid rgba(15, 15, 16, 0.1);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.info-card h4 {
    color: var(--text-strong, #0f0f10);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

.info-card h4 svg {
    flex-shrink: 0;
    opacity: 0.75;
}

.info-card p {
    color: #66615b;
    font-size: 0.9rem;
}

/* Features Section */
.features-section {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(18px);
    padding: 3rem 2rem;
    border-radius: 20px;
    margin-bottom: 3rem;
    border: 1px solid rgba(15, 15, 16, 0.1);
    box-shadow: 0 24px 80px rgba(24, 24, 24, 0.08);
}

.features-section h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: #0f0f10;
    font-size: 1.8rem;
}

.features-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.features-list li {
    color: #0f0f10;
    padding: 0.75rem 1rem;
    background: rgba(102, 126, 234, 0.07);
    border-radius: 10px;
    border: 1px solid rgba(102, 126, 234, 0.15);
    transition: all 0.3s ease;
}

.features-list li:hover {
    background: rgba(102, 126, 234, 0.12);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: #66615b;
    opacity: 1;
}

footer p {
    margin-bottom: 0.5rem;
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    main {
        padding: 1rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .converter-card {
        padding: 2rem 1.5rem;
    }
    
    .countries-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .switch-container {
        order: 3;
        padding-top: 1rem;
    }
    
    .switch-btn {
        transform: rotate(90deg);
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .switch-btn:hover {
        transform: rotate(270deg) scale(1.1);
    }
    
    .time-display-large {
        font-size: 2rem;
        min-height: 60px;
    }
    
    .info-section,
    .features-section {
        padding: 2rem 1.5rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .features-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    nav {
        padding: 0 1rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .hero h2 {
        font-size: 1.7rem;
    }
    
    .converter-card {
        padding: 1.5rem 1rem;
    }
    
    .format-toggle {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .toggle-slider {
        width: 40px;
        height: 20px;
    }
    
    .toggle-slider::after {
        width: 16px;
        height: 16px;
    }
    
    .format-toggle input:checked + .toggle-slider::after {
        transform: translateX(20px);
    }
    
    .time-display-large {
        font-size: 1.8rem;
        padding: 0.75rem;
    }
    
    .column-header {
        padding: 0.75rem;
    }
    
    .dropdown-list {
        max-height: 160px;
    }
    
    .location-btn, .time-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .time-input-group {
        padding: 0.75rem;
    }
    
    .time-input-group input[type="time"] {
        width: calc(100% - 60px);
    }
    
    .clear-btn {
        width: 50px;
        font-size: 0.7rem;
    }
}

/* Modern layout refresh */
:root {
    --bg: #ece9e4;
    --surface: rgba(255, 255, 255, 0.78);
    --surface-strong: rgba(255, 255, 255, 0.92);
    --surface-muted: #f4f1eb;
    --text-strong: #0f0f10;
    --text-muted: #66615b;
    --line-soft: rgba(15, 15, 16, 0.1);
    --line-strong: rgba(15, 15, 16, 0.18);
    --elevated-shadow: 0 24px 80px rgba(24, 24, 24, 0.08);
}

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-strong);
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.85), transparent 32%),
        radial-gradient(circle at right 20%, rgba(215, 210, 202, 0.7), transparent 26%),
        linear-gradient(180deg, #efede9 0%, #e8e4de 100%);
}

.site-header {
    background: transparent;
    border-bottom: none;
    padding: 1.1rem 0 0;
}

.topbar {
    max-width: 1250px;
    width: calc(100% - 32px);
    margin: 0 auto;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand-mark {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.brand-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: block;
}

h1,
h2,
h3,
h4,
.time-display-hero,
.destination-location {
    font-family: 'Space Grotesk', 'Manrope', sans-serif;
}

h1 {
    color: var(--text-strong);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    text-align: left;
}

.topbar-note {
    color: var(--text-muted);
    font-size: 0.92rem;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(15, 15, 16, 0.12);
    border-radius: 20px;
    padding: 0.3rem 0.65rem;
    cursor: pointer;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    transition: background 0.2s ease, border-color 0.2s ease;
    flex-shrink: 0;
    user-select: none;
}

.lang-switcher:hover {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(15, 15, 16, 0.2);
}

.lang-opt {
    cursor: pointer;
    padding: 0.15rem 0.35rem;
    border-radius: 12px;
    transition: color 0.2s ease, background 0.2s ease;
    color: var(--text-muted);
}

.lang-opt.is-active {
    color: var(--text-strong);
    background: rgba(102, 126, 234, 0.14);
}

.lang-sep {
    color: rgba(15, 15, 16, 0.25);
    pointer-events: none;
    font-weight: 400;
}

.app-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 16px 3rem;
}

.converter-container {
    margin-bottom: 2rem;
}

.converter-card,
.info-section,
.features-section {
    box-shadow: var(--elevated-shadow);
    backdrop-filter: blur(18px);
}

.converter-card {
    background: var(--surface);
    border-radius: 36px;
    padding: 1.25rem;
    max-width: none;
}

.hero-display {
    position: relative;
    padding: 1.35rem 1.45rem 1.15rem;
    border-radius: 28px;
    background: var(--surface-strong);
    border: 1px solid rgba(255, 255, 255, 0.65);
    overflow: hidden;
    margin-bottom: 1rem;
}

.hero-display::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(15, 15, 16, 0.08), transparent);
}

.hero-display-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.hero-eyebrow {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.hero-support {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 38rem;
}

.format-toggle-container {
    margin-bottom: 0;
    justify-content: flex-end;
}

.format-toggle {
    gap: 0.7rem;
    font-size: 0.92rem;
    color: var(--text-muted);
    background: #fff;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--line-soft);
    box-shadow: 0 10px 25px rgba(15, 15, 16, 0.05);
}

.toggle-label {
    font-weight: 700;
    color: #2e2b28;
}

.toggle-slider {
    width: 52px;
    height: 28px;
    background: #dbd4cc;
}

.toggle-slider::after {
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
}

.format-toggle input:checked + .toggle-slider {
    background: #161616;
}

.format-toggle input:checked + .toggle-slider::after {
    transform: translateX(24px);
}

.time-display-hero {
    font-size: clamp(4.6rem, 13vw, 10rem);
    line-height: 0.9;
    letter-spacing: -0.08em;
    font-weight: 700;
    color: #111;
    margin: 0.2rem 0 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.time-display-hero.empty {
    color: #a29b93;
}

.destination-location {
    font-size: clamp(1.9rem, 4.4vw, 3.9rem);
    line-height: 0.98;
    font-weight: 700;
    letter-spacing: -0.05em;
    max-width: 12ch;
}

.destination-meta {
    display: block;
    margin-top: 0.65rem;
    color: var(--text-muted);
    font-size: 0.98rem;
}

.countries-grid {
    grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.country-column {
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.52);
    border: 1px solid rgba(255, 255, 255, 0.65);
}

.column-header {
    text-align: left;
    padding: 0 0 0.9rem;
    background: transparent;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid var(--line-soft);
}

.column-header h3 {
    color: var(--text-strong);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.column-header p {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.input-group label,
.time-input-group label {
    margin-bottom: 0.55rem;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 800;
}

.search-input,
.input-group .time-input,
.time-input-group input[type="time"] {
    padding: 1rem 1rem 1rem 1.05rem;
    border: 1px solid var(--line-strong);
    border-radius: 18px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-strong);
    background: rgba(255, 255, 255, 0.88);
}

.search-input:focus,
.input-group .time-input:focus,
.time-input-group input[type="time"]:focus {
    border-color: rgba(15, 15, 16, 0.4);
    box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.06);
    background: #fff;
}

.search-input.has-selection {
    background: #fff;
    border-color: rgba(15, 15, 16, 0.28);
}

.time-input::placeholder,
.search-input::placeholder {
    color: #989089;
    font-style: normal;
}

.dropdown-list {
    top: calc(100% + 8px);
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(15, 15, 16, 0.08);
    border-radius: 18px;
    border-top: 1px solid rgba(15, 15, 16, 0.08);
    max-height: 240px;
    box-shadow: 0 22px 38px rgba(15, 15, 16, 0.12);
    padding: 0.35rem;
    z-index: 9999;
}

.dropdown-item {
    padding: 0.8rem 0.85rem;
    border-bottom: none;
    border-radius: 14px;
}

.dropdown-item:hover,
.dropdown-item.selected {
    background: #f1ede8;
}

.location-btn,
.time-btn {
    background: #161616;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    font-size: 0.92rem;
    font-weight: 700;
    box-shadow: 0 12px 25px rgba(17, 17, 17, 0.14);
}

.switch-container {
    padding-top: 0;
}

.switch-btn {
    background: #fff;
    color: #161616;
    border: 1px solid rgba(15, 15, 16, 0.1);
    width: 64px;
    height: 64px;
    box-shadow: 0 16px 30px rgba(15, 15, 16, 0.08);
}

.switch-btn:hover {
    background: #fff;
    transform: translateY(-1px) rotate(180deg) scale(1.03);
    box-shadow: 0 18px 34px rgba(15, 15, 16, 0.12);
}

.destination-tools {
    padding-top: 0.15rem;
}

.time-input-group {
    padding: 1rem;
    background: var(--surface-muted);
    border-radius: 18px;
    border: 1px solid rgba(15, 15, 16, 0.08);
}

.time-input-group input[type="time"] {
    width: 100%;
    display: block;
    margin-right: 0;
    margin-bottom: 0.7rem;
}

.clear-btn {
    width: 100%;
    background: #ded8d1;
    color: #111;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    font-size: 0.88rem;
    font-weight: 800;
}

.clear-btn:hover {
    background: #d5cec5;
}

.convert-btn {
    background: linear-gradient(180deg, #171717 0%, #0f0f10 100%);
    border-radius: 18px;
    padding: 1.05rem 1.25rem;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-top: 0;
    box-shadow: 0 18px 34px rgba(15, 15, 16, 0.18);
}

.result {
    margin-top: 1rem;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.72);
    border-radius: 22px;
    border: 1px solid rgba(15, 15, 16, 0.08);
}

.origin-time,
.converted-time {
    padding: 0.9rem 1rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    border: 1px solid rgba(15, 15, 16, 0.08);
}

.label,
.time-info,
.info-card p,
footer p {
    color: var(--text-muted);
}

.time,
.time.highlight {
    color: var(--text-strong);
    font-weight: 800;
}

.info-section,
.features-section {
    border-radius: 30px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.info-section {
    background: rgba(255, 255, 255, 0.78);
    z-index: 0;
}

.features-section {
    background: rgba(22, 22, 22, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.features-section h3,
.features-list li {
    color: #fff;
}

.features-list li {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
}

footer {
    color: var(--text-muted);
    opacity: 1;
}

@media (max-width: 960px) {
    .topbar {
        flex-wrap: wrap;
        align-items: center;
    }

    .topbar-note {
        order: 3;
        width: 100%;
        padding-bottom: 0.4rem;
    }

    .brand-mark {
        order: 1;
        flex: 1;
    }

    .lang-switcher {
        order: 2;
    }

    .hero-display-header {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .hero-display-header .format-toggle-block {
        font-size: 0.7rem;
    }

    .hero-display-header .format-toggle {
        padding: 0.4rem 0.75rem;
        font-size: 0.78rem;
        gap: 0.5rem;
    }

    .hero-display-header .hero-eyebrow {
        font-size: 0.7rem;
    }

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

    .switch-container {
        order: 3;
    }

    .switch-btn {
        transform: rotate(90deg);
        width: 56px;
        height: 56px;
    }

    .switch-btn:hover {
        transform: rotate(270deg) scale(1.03);
    }
}

@media (max-width: 720px) {
    .topbar,
    .app-shell {
        width: calc(100% - 20px);
        padding: 10px 10px;
    }

    .converter-card,
    .info-section,
    .features-section {
        border-radius: 24px;
    }

    .converter-card {
        padding: 0.9rem;
    }

    .hero-display,
    .country-column {
        padding: 1rem;
    }

    .time-display-hero {
        font-size: clamp(3.6rem, 18vw, 6.8rem);
    }

    .destination-location {
        max-width: none;
    }
}

@media (max-width: 480px) {
    .site-header {
        padding-top: 0.8rem;
    }

    .topbar-note {
        font-size: 0.85rem;
    }

    .hero-support {
        font-size: 0.88rem;
    }

    .time-display-hero {
        letter-spacing: -0.06em;
    }

    .destination-location {
        font-size: 1.75rem;
    }
}

.converter-layout {
    display: grid;
    grid-template-columns: minmax(380px, 460px) minmax(0, 1fr);
    gap: 1rem;
    align-items: stretch;
}

.controls-panel,
.display-panel {
    border-radius: 28px;
    min-width: 0;
}

.controls-panel {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.65);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.controls-panel-header {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.controls-panel-header h2 {
    font-size: 1.75rem;
    line-height: 0.98;
    letter-spacing: -0.05em;
    color: var(--text-strong);
    margin: 0;
    text-shadow: none;
}

.controls-panel .hero-support {
    max-width: none;
}

.controls-panel .format-toggle-container {
    justify-content: flex-start;
}

.time-input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: end;
}

.time-input-row .time-input-container {
    min-width: 0;
}

.inline-format-toggle-block {
    min-width: max-content;
}

.inline-format-toggle-block .format-toggle-caption {
    margin-bottom: 0.25rem;
}

.inline-format-toggle-block .format-toggle-container {
    margin-bottom: 0;
}

.inline-format-toggle-block .format-toggle {
    display: flex;
    align-items: center;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 600;
    margin-bottom: 0;
    gap: 0.45rem;
    padding: 0.45rem 0.6rem;
    min-height: 44px;
    white-space: nowrap;
}

.inline-format-toggle-block .toggle-label {
    font-size: 0.8rem;
    line-height: 1;
}

.inline-format-toggle-block .toggle-slider {
    width: 42px;
    height: 24px;
    flex: 0 0 42px;
}

.inline-format-toggle-block .toggle-slider::after {
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
}

.inline-format-toggle-block .format-toggle input:checked + .toggle-slider::after {
    transform: translateX(18px);
}

.controls-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.control-tab {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(15, 15, 16, 0.08);
    background: rgba(255, 255, 255, 0.56);
    color: var(--text-strong);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    text-align: left;
}

.control-tab:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.72);
}

.control-tab.is-active {
    background: #ffffff;
    border-color: rgba(15, 15, 16, 0.18);
    box-shadow: 0 10px 24px rgba(15, 15, 16, 0.06);
}

.control-tab-title {
    font-family: 'Space Grotesk', 'Manrope', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.control-tab-summary {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.35;
}

.control-panels {
    display: grid;
    gap: 0.9rem;
    margin-bottom: 0;
}

.control-panel[hidden] {
    display: none;
}

.inline-link-action {
    align-self: flex-start;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--text-strong);
    font: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.18em;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.inline-link-action:hover {
    opacity: 1;
}

.controls-panel .country-column {
    padding: 1rem;
}

.controls-footer {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.85rem;
    align-items: center;
}

.controls-panel .switch-container {
    justify-content: flex-start;
    padding: 0;
}

.controls-panel .switch-btn {
    width: 54px;
    height: 54px;
    font-size: 1.5rem;
}

.display-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 100%;
}

.display-panel .hero-display {
    flex: 1;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 1.5rem 1.6rem 1.25rem;
}

.display-panel .hero-display-header {
    margin-bottom: 1rem;
}

.display-panel .destination-location {
    max-width: 10ch;
}

.display-side-note {
    display: grid;
    gap: 0.5rem;
    padding: 1rem 1.1rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(15, 15, 16, 0.08);
}

.display-side-note p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.controls-panel .convert-btn {
    margin-top: 0;
}

.controls-panel .result {
    margin-top: 0;
}

@media (max-width: 1100px) {
    .converter-layout {
        grid-template-columns: minmax(340px, 420px) minmax(0, 1fr);
    }

    .display-panel .destination-location {
        max-width: none;
    }
}

@media (max-width: 960px) {
    .converter-layout {
        grid-template-columns: 1fr;
    }

    .controls-panel,
    .display-panel {
        border-radius: 24px;
    }

    .display-panel {
        order: -1;
    }

    .display-panel .hero-display {
        min-height: auto;
        padding: 10px;
    }

    .display-side-note {
        display: none;
    }

    .controls-footer {
        grid-template-columns: 1fr;
    }

    .controls-panel .switch-container {
        justify-content: center;
    }

    .controls-panel .switch-btn {
        transform: rotate(90deg);
    }

    .controls-panel .switch-btn:hover {
        transform: rotate(270deg) scale(1.03);
    }
}

@media (max-width: 720px) {
    .controls-panel {
        padding: 1rem;
        padding-top: 0;
    }

    .time-input-row {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end;
    }

    .inline-format-toggle-block {
        min-width: 0;
    }

    .controls-panel-header h2 {
        display: none;
    }

    .control-tab-summary {
        display: none;
    }

    .destination-meta {
        display: none;
    }

    .controls-panel .country-column {
        padding: 0rem;
    }
    .country-column{
        gap: 0.1rem;
    }
    .input-group{
        margin-top: 10px;
        margin-bottom: 8px;
    }
    .converter-layout, .controls-panel{
        gap: 0.3rem;
    }
}

/* ── Cookie Consent Banner ─────────────────────────────────────────────────── */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--surface, rgba(255,255,255,0.97));
    border-top: 1px solid rgba(0,0,0,0.09);
    box-shadow: 0 -4px 24px rgba(0,0,0,0.10);
    padding: 14px 20px;
}

.cookie-banner-inner {
    max-width: 920px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1 1 260px;
}

.cookie-banner-text p {
    margin: 0;
    font-size: 0.82rem;
    color: var(--text-muted, #66615b);
    line-height: 1.5;
}

.cookie-banner-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.cookie-btn {
    cursor: pointer;
    border: none;
    border-radius: 8px;
    padding: 7px 18px;
    font-size: 0.82rem;
    font-weight: 600;
    transition: opacity 0.15s;
}

.cookie-btn:hover {
    opacity: 0.85;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
}

.cookie-btn-reject {
    background: transparent;
    color: var(--text-muted, #66615b);
    border: 1px solid rgba(0,0,0,0.15);
}