@keyframes spin {
    to { transform: rotate(360deg); }
}

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

@keyframes tvPulseDot {
    0%, 100% { opacity: 1; }
    50%       { opacity: .3; }
}

.tv-icon-box-blue {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #2563eb;
}

.tv-form-input {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #111827;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    border-radius: 12px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    outline: none;
}

.tv-form-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .10);
}

.tv-form-submit {
    background: #2563eb;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid #2563eb;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(37, 99, 235, .3);
    transition: background 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.tv-form-submit:hover:not(:disabled) {
    background: #1d4ed8;
    border-color: #1d4ed8;
    box-shadow: 0 2px 8px rgba(37, 99, 235, .25);
}

.tv-form-submit:disabled {
    background: #93c5fd;
    border-color: #93c5fd;
    cursor: not-allowed;
    box-shadow: none;
}

.tv-step-num-blue {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #2563eb;
    border-radius: 50%;
}

.tv-step-num-muted {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    color: #9ca3af;
    border-radius: 50%;
}

.tv-tabbed-lookup {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
}

.tv-tabbed-tablist {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
}

.tv-lookup-tab {
    background: transparent;
    border: 1px solid transparent;
    color: #6b7280;
}

.tv-lookup-tab:hover {
    color: #374151;
}

.tv-lookup-tab--active {
    background: #ffffff;
    border-color: #e5e7eb;
    color: #2563eb;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.tv-nav-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    color: #111827;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
    transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.tv-nav-card:hover {
    color: #111827;
    border-color: #bfdbfe;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(37, 99, 235, .08);
}

.tv-filter-btn {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #6b7280;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.tv-filter-btn--active,
.tv-filter-btn:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #2563eb;
}

.tv-alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    border-radius: 12px;
}

.tv-spinner {
    border-color: #e5e7eb;
    border-top-color: #2563eb;
}

.tv-drop-zone {
    border: 2px dashed #d1d5db;
    background: #f9fafb;
    padding: 40px 20px;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.tv-drop-zone:hover,
.tv-drop-zone.tv-drag-over {
    border-color: #93c5fd;
    background: #eff6ff;
}

.tv-image-remove {
    background: #dc2626;
    border: none;
    cursor: pointer;
}

/* ── Country-code flag dropdown ─────────────────────────────── */
.tv-dial-dropdown {
    position: relative;
}

.tv-dial-trigger {
    white-space: nowrap;
    min-width: 8.5rem;
    max-width: 11rem;
    user-select: none;
}

.tv-dial-trigger[aria-expanded="true"] {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .10);
}

.tv-dial-chevron {
    transition: transform 0.15s ease;
}

.tv-dial-trigger[aria-expanded="true"] .tv-dial-chevron {
    transform: rotate(180deg);
}

.tv-dial-panel {
    position: fixed;
    z-index: 99999;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
    animation: tvFadeIn 0.12s ease;
    overflow: hidden;
}

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

.tv-dial-search-wrap {
    padding: 8px 8px 4px;
    border-bottom: 1px solid #f3f4f6;
}

.tv-dial-search {
    width: 100%;
    padding: 6px 10px;
    font-size: 0.8rem;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    outline: none;
    color: #111827;
    box-sizing: border-box;
}

.tv-dial-search:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, .10);
}

.tv-dial-list {
    list-style: none;
    margin: 0;
    padding: 4px 0;
    max-height: 220px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #e5e7eb transparent;
}

.tv-dial-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    font-size: 0.82rem;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    color: #374151;
    cursor: pointer;
    transition: background 0.1s ease;
}

.tv-dial-list li:hover {
    background: #f0f4ff;
    color: #1d4ed8;
}

.tv-dial-list li.is-selected {
    background: #eff6ff;
    color: #2563eb;
    font-weight: 600;
}

.tv-dial-list li[hidden] {
    display: none;
}

.tv-dial-item-flag {
    font-size: 1.1rem;
    line-height: 1;
    flex-shrink: 0;
}
