/**
 * ConvMaster - World Clock Styles
 * 
 * @package    ConvMaster
 * @version    1.0.0
 */

/* =====================================================
   TOOL PAGE LAYOUT
   ===================================================== */
.tool-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.tool-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tool-header__icon {
    font-size: 2.5rem;
}

.tool-header__icon .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    background: var(--bg-tertiary);
}

.tool-header__icon .icon--blue {
    background: rgba(59, 130, 246, 0.15);
}

.tool-header__text h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    color: var(--text-primary);
}

.tool-header__text p {
    margin: 0;
    color: var(--text-secondary);
}

/* =====================================================
   WORLD CLOCK WIDGET
   ===================================================== */
.world-clock-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* =====================================================
   MAIN CLOCK SECTION
   ===================================================== */
.main-clock-section {
    padding: 2rem;
    text-align: center;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.main-clock__date {
    margin-bottom: 1.5rem;
}

.main-clock__day-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #3b82f6;
    text-transform: lowercase;
}

.main-clock__full-date {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-left: 0.25rem;
}

/* View Tabs */
.main-clock__tabs {
    display: inline-flex;
    gap: 0.5rem;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 0.25rem;
    margin-bottom: 1.5rem;
}

.clock-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.clock-tab:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.clock-tab--active {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.15);
}

.clock-tab__icon {
    font-size: 1rem;
}

/* Clock Display Container */
.main-clock__display {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 150px;
}

/* =====================================================
   MAIN DIGITAL CLOCK
   ===================================================== */
.main-digital-clock__time {
    font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
    font-size: 6rem;
    font-weight: 200;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1;
}

.main-digital-clock__sep {
    opacity: 0.5;
    animation: blink 1s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.2; }
}

/* =====================================================
   MAIN ANALOG CLOCK
   ===================================================== */
.main-analog-clock {
    width: 280px;
    height: 280px;
}

.analog-clock__face {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--bg-card);
    border: 4px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.analog-clock__markers {
    position: absolute;
    inset: 0;
}

.analog-clock__marker {
    position: absolute;
    top: 10px;
    left: 50%;
    width: 2px;
    height: 12px;
    margin-left: -1px;
    background: var(--text-muted);
    transform-origin: 50% 130px;
}

.analog-clock__marker:nth-child(3n+1) {
    height: 16px;
    width: 3px;
    margin-left: -1.5px;
    background: var(--text-secondary);
}

.analog-clock__numbers {
    position: absolute;
    inset: 0;
}

.analog-clock__number {
    position: absolute;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.analog-clock__number--12 { top: 22px; left: 50%; transform: translateX(-50%); }
.analog-clock__number--1 { top: 40px; right: 80px; }
.analog-clock__number--2 { top: 80px; right: 40px; }
.analog-clock__number--3 { top: 52%; right: 25px; transform: translateY(-50%); }
.analog-clock__number--4 { bottom: 65px; right: 40px; }
.analog-clock__number--5 { bottom: 30px; right: 80px; }
.analog-clock__number--6 { bottom: 22px; left: 50%; transform: translateX(-50%); }
.analog-clock__number--7 { bottom: 30px; left: 80px; }
.analog-clock__number--8 { bottom: 65px; left: 40px; }
.analog-clock__number--9 { top: 52%; left: 25px; transform: translateY(-50%); }
.analog-clock__number--10 { top: 80px; left: 40px; }
.analog-clock__number--11 { top: 40px; left: 80px; }

.analog-clock__hand {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform-origin: bottom center;
    border-radius: 4px;
}

.analog-clock__hand--hour {
    width: 5px;
    height: 65px;
    margin-left: -2.5px;
    background: var(--text-primary);
}

.analog-clock__hand--minute {
    width: 3px;
    height: 90px;
    margin-left: -1.5px;
    background: var(--text-secondary);
}

.analog-clock__hand--second {
    width: 2px;
    height: 100px;
    margin-left: -1px;
    background: #ef4444;
}

.analog-clock__center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    margin: -6px 0 0 -6px;
    background: #3b82f6;
    border-radius: 50%;
    z-index: 10;
}

.analog-clock__brand {
    position: absolute;
    top: 62%;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 1;
}

.analog-clock__brand-text {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.analog-clock__brand-accent {
    background: linear-gradient(135deg, #3B82F6, #10B981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =====================================================
   MAIN FLIP CLOCK
   ===================================================== */
.main-flip-clock {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.flip-clock__group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.flip-clock__digits {
    display: flex;
    gap: 4px;
}

.flip-card {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 90px;
    background: linear-gradient(180deg, #2a2a35 0%, #1f1f28 49.9%, #18181f 50%, #1f1f28 100%);
    border-radius: 8px;
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    box-shadow: 
        0 4px 8px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.1),
        inset 0 -1px 0 rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}

.flip-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(0,0,0,0.4);
}

.flip-card__digit {
    position: relative;
    z-index: 1;
}

/* Flip animation with 3D perspective */
.flip-card.flipping {
    animation: flipDigit 0.3s ease;
}

@keyframes flipDigit {
    0% { transform: perspective(200px) rotateX(0deg); }
    50% { transform: perspective(200px) rotateX(-90deg); }
    100% { transform: perspective(200px) rotateX(0deg); }
}

.flip-clock__separator {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 1rem;
    animation: blink 1s ease-in-out infinite;
}

.flip-clock__label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

/* =====================================================
   CITIES SECTION
   ===================================================== */
.cities-section {
    padding: 1.5rem 2rem;
}

.cities-section__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.cities-section__title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.cities-section__actions {
    display: flex;
    gap: 0.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn--sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
}

.btn--primary {
    background: #3b82f6;
    color: white;
}

.btn--primary:hover {
    background: #2563eb;
}

.btn--secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn--secondary:hover {
    background: var(--bg-secondary);
}

.btn--danger {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.btn--danger:hover {
    background: rgba(239, 68, 68, 0.25);
}

.btn--ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid transparent;
}

.btn--ghost:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

/* =====================================================
   CITIES TABLE
   ===================================================== */
.cities-table-wrapper {
    overflow-x: auto;
}

.cities-table {
    width: 100%;
    border-collapse: collapse;
}

.cities-table th,
.cities-table td {
    padding: 0.875rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.cities-table th {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--bg-tertiary);
}

.cities-table tbody tr {
    transition: background 0.15s ease;
}

.cities-table tbody tr:hover {
    background: var(--bg-tertiary);
}

.cities-table tbody tr:last-child td {
    border-bottom: none;
}

.col-order {
    width: 50px;
    text-align: center;
}

.col-city {
    min-width: 150px;
}

.col-time {
    min-width: 80px;
    font-family: 'DM Mono', 'SF Mono', monospace;
    font-weight: 600;
    color: var(--text-primary);
}

.col-day {
    min-width: 80px;
}

.col-country {
    min-width: 120px;
}

.col-actions {
    width: 100px;
    text-align: right;
}

/* City Name Link */
.city-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.city-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* Country with flag */
.country-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.country-flag {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.country-flag img {
    border-radius: 2px;
    box-shadow: 0 0 1px rgba(0,0,0,0.3);
    vertical-align: middle;
}

/* Row Actions */
.row-actions {
    display: flex;
    gap: 0.25rem;
    justify-content: flex-end;
}

.row-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.2s;
}

.row-action:hover {
    opacity: 1;
    background: var(--bg-secondary);
}

.row-action--delete:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.row-action--drag {
    cursor: grab;
}

.row-action--drag:active {
    cursor: grabbing;
}

/* Sortable drag styles */
.cities-table tbody tr.sortable-ghost {
    opacity: 0.4;
    background: rgba(59, 130, 246, 0.1);
}

.cities-table tbody tr.sortable-chosen {
    background: var(--bg-tertiary);
}

/* Edit Mode */
.cities-table.edit-mode .col-actions {
    display: table-cell;
}

.cities-table:not(.edit-mode) .row-actions {
    display: none;
}

/* =====================================================
   CITIES EMPTY STATE
   ===================================================== */
.cities-empty {
    text-align: center;
    padding: 3rem 2rem;
}

.cities-empty__icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.cities-empty p {
    color: var(--text-secondary);
    margin: 0 0 1.5rem;
}

/* =====================================================
   MODAL
   ===================================================== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal__content {
    position: relative;
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal__header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.modal__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-size: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.modal__close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.modal__body {
    padding: 1.5rem;
    overflow-y: auto;
}

/* Form Elements */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.form-input,
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-input::placeholder {
    color: var(--text-muted);
}

/* =====================================================
   CUSTOM SELECT DROPDOWN (for flags)
   ===================================================== */
.custom-select {
    position: relative;
    width: 100%;
}

.custom-select__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    text-align: left;
}

.custom-select__trigger:hover {
    border-color: var(--text-muted);
}

.custom-select__trigger:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.custom-select--open .custom-select__trigger {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.custom-select__value {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.custom-select__value img {
    flex-shrink: 0;
    border-radius: 2px;
    box-shadow: 0 0 1px rgba(0,0,0,0.3);
}

.custom-select__arrow {
    font-size: 0.7rem;
    color: var(--text-muted);
    transition: transform 0.2s;
}

.custom-select--open .custom-select__arrow {
    transform: rotate(180deg);
}

.custom-select__dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.custom-select--open .custom-select__dropdown {
    display: block;
    animation: dropdownSlide 0.15s ease;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.custom-select__search {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--bg-tertiary);
    border: none;
    border-bottom: 1px solid var(--border-color);
    outline: none;
}

.custom-select__search::placeholder {
    color: var(--text-muted);
}

.custom-select__options {
    max-height: 250px;
    overflow-y: auto;
}

.custom-select__option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    cursor: pointer;
    transition: background 0.15s;
}

.custom-select__option:hover {
    background: var(--bg-tertiary);
}

.custom-select__option--selected {
    background: rgba(59, 130, 246, 0.15);
}

.custom-select__option-flag {
    flex-shrink: 0;
    width: 20px;
    height: 15px;
    border-radius: 2px;
    box-shadow: 0 0 1px rgba(0,0,0,0.3);
}

.custom-select__option-text {
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.custom-select__no-results {
    padding: 1rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Modal Actions */
.modal__actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.btn--block {
    flex: 1;
    justify-content: center;
}

.btn--outline {
    background: transparent;
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.5);
}

.btn--outline:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* =====================================================
   RESET CONFIRMATION
   ===================================================== */
.reset-confirmation {
    margin-bottom: 1rem;
    animation: slideIn 0.3s ease;
}

.reset-confirmation__content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-md);
    flex-wrap: wrap;
}

.reset-confirmation__icon {
    font-size: 1.25rem;
}

.reset-confirmation__text {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    min-width: 200px;
}

.reset-confirmation__actions {
    display: flex;
    gap: 0.5rem;
}

/* =====================================================
   INLINE MESSAGE
   ===================================================== */
.inline-message {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    animation: slideIn 0.3s ease;
}

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

.inline-message--success {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.inline-message--error {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.inline-message--info {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* =====================================================
   CLOCK INFO
   ===================================================== */
.clock-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.clock-info span {
    font-size: 1rem;
}

.clock-info p {
    margin: 0;
}

/* =====================================================
   SEO CONTENT
   ===================================================== */
.tool-content {
    margin-top: 3rem;
}

.tool-section {
    margin-bottom: 2.5rem;
}

.tool-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 1rem;
}

.tool-section > p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
}

.feature-card__icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.75rem;
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
}

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

/* Steps Grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
}

.step-card__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #3b82f6;
    color: white;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 0.75rem;
}

.step-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
}

.step-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

/* FAQ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

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

.faq-item summary::after {
    content: '+';
    font-size: 1.25rem;
    color: var(--text-muted);
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item p {
    padding: 0 1.5rem 1rem;
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* =====================================================
   HIDDEN ELEMENTS
   ===================================================== */
[hidden] {
    display: none !important;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 768px) {
    .tool-page {
        padding: 1rem;
    }

    .main-clock-section {
        padding: 1.5rem 1rem;
    }

    .main-digital-clock__time {
        font-size: 3.5rem;
    }

    .main-analog-clock {
        width: 200px;
        height: 200px;
    }

    /* Hide clock numbers on tablet/mobile */
    .analog-clock__numbers {
        display: none;
    }

    .analog-clock__marker {
        transform-origin: 50% 92px;
    }

    .analog-clock__hand--hour {
        height: 45px;
    }

    .analog-clock__hand--minute {
        height: 65px;
    }

    .analog-clock__hand--second {
        height: 75px;
    }

    .flip-card {
        width: 45px;
        height: 65px;
        font-size: 2.5rem;
    }

    .flip-clock__separator {
        font-size: 2rem;
        margin-top: 0.5rem;
    }

    .flip-clock__label {
        font-size: 0.6rem;
    }

    .cities-section {
        padding: 1rem;
    }

    .cities-section__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .cities-section__actions {
        width: 100%;
    }

    .cities-section__actions .btn {
        flex: 1;
        justify-content: center;
    }

    .cities-table th,
    .cities-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }

    .col-day {
        display: none;
    }

    .clock-tab__name {
        display: none;
    }
}

@media (max-width: 480px) {
    .main-digital-clock__time {
        font-size: 2.5rem;
    }

    .col-country {
        display: none;
    }

    .cities-table th:nth-child(5),
    .cities-table td:nth-child(5) {
        display: none;
    }
}

/* =====================================================
   LIGHT THEME ADJUSTMENTS
   ===================================================== */
[data-theme="light"] .main-clock-section {
    background: var(--bg-secondary);
}

[data-theme="light"] .clock-info {
    background: var(--bg-secondary);
}

[data-theme="light"] .flip-card {
    background: linear-gradient(180deg, #f0f0f5 0%, #e0e0e8 49.9%, #d0d0d8 50%, #e0e0e8 100%);
    color: #3b82f6;
    text-shadow: none;
    box-shadow: 
        0 2px 4px rgba(0,0,0,0.15),
        inset 0 1px 0 rgba(255,255,255,0.8),
        inset 0 -1px 0 rgba(0,0,0,0.1);
}

[data-theme="light"] .flip-card::before {
    background: rgba(0,0,0,0.15);
}

[data-theme="light"] .flip-clock__separator {
    color: #3b82f6;
    text-shadow: none;
}

[data-theme="light"] .analog-clock__face {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .modal__backdrop {
    background: rgba(0, 0, 0, 0.4);
}
