/* =============================================================================
   True Email Verifier — Dark Mode SaaS Dashboard CSS
   vemail.bajhi.com / bajhi.com WordPress Plugin
   ============================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ─── CSS VARIABLES ─────────────────────────────────────────────────────────── */
:root {
    --tev-bg: #09090b;
    --tev-surface: #111113;
    --tev-surface-2: #18181b;
    --tev-surface-3: #27272a;
    --tev-border: rgba(255, 255, 255, 0.07);
    --tev-border-hover: rgba(255, 255, 255, 0.14);

    --tev-primary: #6366f1;
    --tev-primary-dark: #4f46e5;
    --tev-primary-glow: rgba(99, 102, 241, 0.25);

    --tev-valid: #22c55e;
    --tev-invalid: #ef4444;
    --tev-risky: #f59e0b;
    --tev-unknown: #6b7280;

    --tev-text: #fafafa;
    --tev-text-2: #a1a1aa;
    --tev-text-3: #71717a;

    --tev-sidebar-w: 240px;
    --tev-radius: 12px;
    --tev-radius-sm: 8px;

    --tev-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
    --tev-shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);

    --tev-font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --tev-transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── RESET & BASE ──────────────────────────────────────────────────────────── */
#tev-root,
.tev-landing {
    font-family: var(--tev-font);
    color: var(--tev-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    box-sizing: border-box;
    border-radius: 16px;
    overflow: hidden;
}

#tev-root *,
.tev-landing * {
    box-sizing: inherit;
}

.tev-landing {
    background: var(--tev-bg);
    border: 1px solid var(--tev-border);
    box-shadow: var(--tev-shadow);
    margin: 20px 0;
}

/* ─── LAYOUT ────────────────────────────────────────────────────────────────── */
#tev-root {
    display: flex;
    width: 100%;
    min-height: 750px;
    background: var(--tev-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--tev-border);
    position: relative;
    box-shadow: var(--tev-shadow);
    margin: 20px 0;
}

/* ─── SIDEBAR ───────────────────────────────────────────────────────────────── */
.tev-sidebar {
    width: var(--tev-sidebar-w);
    flex-shrink: 0;
    background: var(--tev-surface);
    border-right: 1px solid var(--tev-border);
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10;
    transition: var(--tev-transition);
}

.tev-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 24px 20px;
    border-bottom: 1px solid var(--tev-border);
    font-weight: 700;
    font-size: 15px;
    line-height: 1.3;
    color: var(--tev-text);
}

.tev-logo i {
    font-size: 22px;
    color: var(--tev-primary);
    filter: drop-shadow(0 0 8px var(--tev-primary-glow));
}

.tev-logo small {
    font-size: 11px;
    font-weight: 400;
    color: var(--tev-text-2);
    display: block;
}

.tev-nav {
    flex: 1;
    padding: 12px 8px;
    overflow-y: auto;
}

.tev-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--tev-radius-sm);
    color: var(--tev-text-2);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--tev-transition);
    margin-bottom: 2px;
    cursor: pointer;
    border: 1px solid transparent;
}

.tev-nav-item:hover {
    color: var(--tev-text);
    background: var(--tev-surface-2);
    border-color: var(--tev-border);
}

.tev-nav-item.active {
    color: var(--tev-primary);
    background: var(--tev-primary-glow);
    border-color: rgba(99, 102, 241, 0.3);
}

.tev-nav-item i {
    width: 18px;
    text-align: center;
    font-size: 14px;
}

.tev-sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--tev-border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.tev-user-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.tev-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tev-primary), #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.tev-user-info {
    min-width: 0;
}

.tev-user-name {
    display: block;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tev-logout {
    color: var(--tev-text-3);
    text-decoration: none;
    padding: 6px;
    border-radius: 6px;
    transition: var(--tev-transition);
    flex-shrink: 0;
}

.tev-logout:hover {
    color: var(--tev-text);
    background: rgba(239, 68, 68, 0.1);
}

/* Mobile toggle */
.tev-mobile-toggle {
    display: none;
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 200;
    background: var(--tev-surface);
    border: 1px solid var(--tev-border);
    color: var(--tev-text);
    width: 38px;
    height: 38px;
    border-radius: 8px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

/* ─── MAIN CONTENT ──────────────────────────────────────────────────────────── */
.tev-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 0 28px 40px;
    background: var(--tev-bg);
}

/* ─── USAGE BANNER ──────────────────────────────────────────────────────────── */
.tev-usage-banner {
    background: var(--tev-surface);
    border-bottom: 1px solid var(--tev-border);
    padding: 10px 0 0;
    margin: 0 -28px;
    padding: 12px 28px 0;
}

.tev-usage-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--tev-text-2);
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.tev-usage-info strong {
    color: var(--tev-text);
}

.tev-usage-sep {
    color: var(--tev-border-hover);
}

.tev-remaining {
    color: var(--tev-primary);
}

.tev-remaining.tev-low {
    color: var(--tev-invalid);
}

/* ─── TOPBAR ────────────────────────────────────────────────────────────────── */
.tev-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 28px 0 16px;
    gap: 16px;
    flex-wrap: wrap;
}

.tev-topbar h2 {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 700;
    color: var(--tev-text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.tev-topbar h2 i {
    color: var(--tev-primary);
}

.tev-topbar p {
    margin: 0;
    font-size: 14px;
    color: var(--tev-text-2);
}

.tev-topbar-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ─── STAT CARDS ────────────────────────────────────────────────────────────── */
.tev-stat-card {
    background: var(--tev-surface-2);
    border: 1px solid var(--tev-border);
    border-radius: var(--tev-radius-sm);
    padding: 12px 18px;
    text-align: center;
    min-width: 80px;
}

.tev-stat-val {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--tev-text);
}

.tev-stat-lbl {
    display: block;
    font-size: 11px;
    color: var(--tev-text-2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.tev-stat-card.tev-valid .tev-stat-val {
    color: var(--tev-valid);
}

.tev-stat-card.tev-invalid .tev-stat-val {
    color: var(--tev-invalid);
}

.tev-stat-card.tev-risky .tev-stat-val {
    color: var(--tev-risky);
}

/* ─── CARDS ─────────────────────────────────────────────────────────────────── */
.tev-card {
    background: var(--tev-surface);
    border: 1px solid var(--tev-border);
    border-radius: var(--tev-radius);
    padding: 24px;
    margin-bottom: 20px;
    transition: var(--tev-transition);
}

.tev-card:hover {
    border-color: var(--tev-border-hover);
}

.tev-card h3 {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 600;
    color: var(--tev-text);
}

/* ─── BUTTONS ───────────────────────────────────────────────────────────────── */
.tev-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: var(--tev-radius-sm);
    font-family: var(--tev-font);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--tev-transition);
    white-space: nowrap;
    text-decoration: none;
}

.tev-btn-primary {
    background: var(--tev-primary);
    color: #fff;
    border-color: var(--tev-primary);
}

.tev-btn-primary:hover {
    background: var(--tev-primary-dark);
    border-color: var(--tev-primary-dark);
    box-shadow: 0 4px 16px var(--tev-primary-glow);
    transform: translateY(-1px);
}

.tev-btn-secondary {
    background: var(--tev-surface-2);
    color: var(--tev-text);
    border-color: var(--tev-border);
}

.tev-btn-secondary:hover {
    background: var(--tev-surface-3);
    border-color: var(--tev-border-hover);
}

.tev-btn-ghost {
    background: transparent;
    color: var(--tev-text-2);
    border-color: var(--tev-border);
}

.tev-btn-ghost:hover {
    color: var(--tev-text);
    background: var(--tev-surface-2);
}

.tev-btn-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--tev-invalid);
    border-color: rgba(239, 68, 68, 0.3);
}

.tev-btn-danger:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: var(--tev-invalid);
}

.tev-btn-lg {
    padding: 12px 28px;
    font-size: 15px;
}

.tev-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ─── PROGRESS BAR ──────────────────────────────────────────────────────────── */
.tev-progress-track {
    height: 4px;
    background: var(--tev-surface-3);
    border-radius: 99px;
    overflow: hidden;
}

.tev-progress-track.tev-big {
    height: 8px;
    margin: 16px 0;
}

.tev-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--tev-primary), #8b5cf6);
    border-radius: 99px;
    transition: width 0.5s ease;
}

.tev-progress-fill.tev-animated {
    background: linear-gradient(90deg, var(--tev-primary), #8b5cf6, var(--tev-primary));
    background-size: 200% 100%;
    animation: tev-progress-shimmer 1.5s linear infinite;
}

@keyframes tev-progress-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ─── TAB PANELS ────────────────────────────────────────────────────────────── */
.tev-tab-panel {
    display: none;
}

.tev-tab-panel.active {
    display: block;
}

.tev-hidden {
    display: none !important;
}

/* ─── SINGLE CHECK ──────────────────────────────────────────────────────────── */
.tev-single-input-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.tev-single-input-row input[type="email"] {
    flex: 1;
    background: var(--tev-surface-2);
    border: 1px solid var(--tev-border);
    color: var(--tev-text);
    padding: 12px 16px;
    border-radius: var(--tev-radius-sm);
    font-size: 15px;
    font-family: var(--tev-font);
    outline: none;
    transition: var(--tev-transition);
}

.tev-single-input-row input:focus {
    border-color: var(--tev-primary);
    box-shadow: 0 0 0 3px var(--tev-primary-glow);
}

/* Single result */
.tev-single-result {
    margin-top: 24px;
    border: 1px solid var(--tev-border);
    border-radius: var(--tev-radius);
    overflow: hidden;
}

.tev-result-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
}

.tev-result-status-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.tev-result-status-icon.safe {
    background: rgba(34, 197, 94, 0.15);
    color: var(--tev-valid);
}

.tev-result-status-icon.invalid {
    background: rgba(239, 68, 68, 0.15);
    color: var(--tev-invalid);
}

.tev-result-status-icon.risky {
    background: rgba(245, 158, 11, 0.15);
    color: var(--tev-risky);
}

.tev-result-status-icon.unknown {
    background: rgba(107, 114, 128, 0.15);
    color: var(--tev-unknown);
}

.tev-result-email-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 4px;
    word-break: break-all;
}

.tev-result-status-label {
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tev-result-status-label.safe {
    color: var(--tev-valid);
}

.tev-result-status-label.invalid {
    color: var(--tev-invalid);
}

.tev-result-status-label.risky {
    color: var(--tev-risky);
}

.tev-result-status-label.unknown {
    color: var(--tev-unknown);
}

.tev-result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1px;
    background: var(--tev-border);
}

.tev-result-field {
    background: var(--tev-surface);
    padding: 14px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tev-result-field label {
    font-size: 11px;
    color: var(--tev-text-3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.tev-result-field .tev-field-val {
    font-size: 14px;
    font-weight: 500;
    color: var(--tev-text);
}

.tev-field-val.pass {
    color: var(--tev-valid);
}

.tev-field-val.fail {
    color: var(--tev-invalid);
}

.tev-field-val.warn {
    color: var(--tev-risky);
}

/* Recent checks */
.tev-single-history-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--tev-text-2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 28px;
    margin-bottom: 10px;
}

.tev-recent-checks {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tev-recent-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: var(--tev-surface-2);
    border-radius: var(--tev-radius-sm);
    font-size: 13px;
    cursor: pointer;
    transition: var(--tev-transition);
}

.tev-recent-item:hover {
    background: var(--tev-surface-3);
}

.tev-recent-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 99px;
    font-weight: 600;
    text-transform: uppercase;
}

.tev-recent-badge.safe {
    background: rgba(34, 197, 94, 0.15);
    color: var(--tev-valid);
}

.tev-recent-badge.invalid {
    background: rgba(239, 68, 68, 0.15);
    color: var(--tev-invalid);
}

.tev-recent-badge.risky {
    background: rgba(245, 158, 11, 0.15);
    color: var(--tev-risky);
}

.tev-recent-badge.unknown {
    background: rgba(107, 114, 128, 0.15);
    color: var(--tev-unknown);
}

/* ─── BULK VERIFY ───────────────────────────────────────────────────────────── */
.tev-bulk-drop {
    border: 2px dashed var(--tev-border);
    border-radius: var(--tev-radius);
    padding: 48px 24px;
    text-align: center;
    cursor: pointer;
    transition: var(--tev-transition);
}

.tev-bulk-drop:hover,
.tev-bulk-drop.dragover {
    border-color: var(--tev-primary);
    background: var(--tev-primary-glow);
}

.tev-drop-icon {
    font-size: 40px;
    color: var(--tev-text-3);
    margin-bottom: 12px;
}

.tev-drop-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--tev-text);
    margin: 0 0 6px;
}

.tev-link {
    color: var(--tev-primary);
    cursor: pointer;
}

.tev-drop-sub {
    font-size: 13px;
    color: var(--tev-text-2);
    margin: 0;
}

.tev-bulk-divider {
    text-align: center;
    color: var(--tev-text-3);
    font-size: 13px;
    margin: 16px 0;
    position: relative;
}

.tev-bulk-divider::before,
.tev-bulk-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: var(--tev-border);
}

.tev-bulk-divider::before {
    left: 0;
}

.tev-bulk-divider::after {
    right: 0;
}

.tev-paste-area textarea {
    width: 100%;
    background: var(--tev-surface-2);
    border: 1px solid var(--tev-border);
    border-radius: var(--tev-radius-sm);
    color: var(--tev-text);
    font-family: var(--tev-font);
    font-size: 13px;
    padding: 12px;
    resize: vertical;
    outline: none;
    transition: var(--tev-transition);
}

.tev-paste-area textarea:focus {
    border-color: var(--tev-primary);
}

.tev-bulk-options {
    display: flex;
    gap: 16px;
    margin: 12px 0;
    flex-wrap: wrap;
}

.tev-bulk-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.tev-email-count {
    font-size: 13px;
    color: var(--tev-primary);
    font-weight: 500;
}

/* Toggle checkbox */
.tev-toggle-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--tev-text-2);
    cursor: pointer;
}

.tev-toggle-label input[type="checkbox"] {
    display: none;
}

.tev-toggle {
    width: 36px;
    height: 20px;
    background: var(--tev-surface-3);
    border-radius: 99px;
    position: relative;
    transition: var(--tev-transition);
    flex-shrink: 0;
}

.tev-toggle::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: var(--tev-transition);
}

.tev-toggle-label input:checked~.tev-toggle {
    background: var(--tev-primary);
}

.tev-toggle-label input:checked~.tev-toggle::after {
    left: 19px;
}

/* Job progress */
.tev-job-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 4px;
    flex-wrap: wrap;
    gap: 12px;
}

.tev-job-header h3 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 600;
}

.tev-job-id {
    font-size: 12px;
    color: var(--tev-text-3);
    margin: 0;
}

.tev-job-id code {
    background: var(--tev-surface-3);
    padding: 1px 6px;
    border-radius: 4px;
}

.tev-job-status-badge {
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(99, 102, 241, 0.15);
    color: var(--tev-primary);
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.tev-job-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.tev-js-stat {
    text-align: center;
}

.tev-js-stat span {
    font-size: 24px;
    font-weight: 700;
    color: var(--tev-text);
    display: block;
}

.tev-js-stat small {
    font-size: 11px;
    color: var(--tev-text-3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tev-js-stat.tev-valid span {
    color: var(--tev-valid);
}

.tev-js-stat.tev-invalid span {
    color: var(--tev-invalid);
}

.tev-js-stat.tev-risky span {
    color: var(--tev-risky);
}

/* Results panel */
.tev-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.tev-results-header h3 {
    margin: 0;
    font-size: 16px;
}

.tev-results-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

/* ─── TABLE ─────────────────────────────────────────────────────────────────── */
.tev-table-wrap {
    overflow-x: auto;
}

.tev-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.tev-table th {
    text-align: left;
    padding: 10px 12px;
    color: var(--tev-text-3);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--tev-border);
    white-space: nowrap;
}

.tev-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--tev-border);
    color: var(--tev-text);
}

.tev-table tbody tr:hover td {
    background: var(--tev-surface-2);
}

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

.tev-loading-row {
    text-align: center;
    padding: 40px !important;
    color: var(--tev-text-2);
}

/* Status chips */
.tev-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.tev-chip-safe {
    background: rgba(34, 197, 94, 0.15);
    color: var(--tev-valid);
}

.tev-chip-invalid {
    background: rgba(239, 68, 68, 0.15);
    color: var(--tev-invalid);
}

.tev-chip-risky {
    background: rgba(245, 158, 11, 0.15);
    color: var(--tev-risky);
}

.tev-chip-unknown {
    background: rgba(107, 114, 128, 0.15);
    color: var(--tev-unknown);
}

.tev-chip-done {
    background: rgba(34, 197, 94, 0.15);
    color: var(--tev-valid);
}

.tev-chip-running {
    background: rgba(99, 102, 241, 0.15);
    color: var(--tev-primary);
}

.tev-chip-pending {
    background: rgba(107, 114, 128, 0.15);
    color: var(--tev-unknown);
}

.tev-chip-failed {
    background: rgba(239, 68, 68, 0.15);
    color: var(--tev-invalid);
}

/* Bool cell */
.tev-bool-yes {
    color: var(--tev-valid);
}

.tev-bool-no {
    color: var(--tev-text-3);
}

/* ─── PAGINATION ────────────────────────────────────────────────────────────── */
.tev-pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 16px;
    flex-wrap: wrap;
}

.tev-page-btn {
    background: var(--tev-surface-2);
    border: 1px solid var(--tev-border);
    color: var(--tev-text-2);
    padding: 5px 12px;
    border-radius: var(--tev-radius-sm);
    font-size: 13px;
    cursor: pointer;
    transition: var(--tev-transition);
}

.tev-page-btn:hover {
    background: var(--tev-surface-3);
    color: var(--tev-text);
}

.tev-page-btn.active {
    background: var(--tev-primary);
    color: #fff;
    border-color: var(--tev-primary);
}

/* ─── API DOCS ───────────────────────────────────────────────────────────────── */
.tev-api-key-display {
    margin-bottom: 20px;
}

.tev-api-key-display label {
    display: block;
    font-size: 13px;
    color: var(--tev-text-2);
    margin-bottom: 8px;
}

.tev-api-key-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--tev-surface-2);
    border: 1px solid var(--tev-border);
    border-radius: var(--tev-radius-sm);
    padding: 10px 14px;
    flex-wrap: wrap;
}

.tev-api-key-box code {
    flex: 1;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 13px;
    color: var(--tev-primary);
    word-break: break-all;
    min-width: 0;
}

.tev-api-section-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px;
}

.tev-api-section-sub {
    font-size: 14px;
    font-weight: 600;
    color: var(--tev-text-2);
    margin: 16px 0 8px;
}

.tev-endpoint-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.tev-endpoint-badge code {
    font-family: monospace;
    font-size: 13px;
    color: var(--tev-text);
    background: var(--tev-surface-2);
    padding: 4px 10px;
    border-radius: var(--tev-radius-sm);
}

.badge-method {
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-method.post {
    background: rgba(99, 102, 241, 0.2);
    color: var(--tev-primary);
}

.badge-method.get {
    background: rgba(34, 197, 94, 0.2);
    color: var(--tev-valid);
}

.tev-code-block {
    background: var(--tev-surface-2);
    border: 1px solid var(--tev-border);
    border-radius: var(--tev-radius-sm);
    padding: 16px;
    overflow-x: auto;
    margin-bottom: 16px;
}

.tev-code-block code {
    font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
    font-size: 12px;
    color: #e2e8f0;
    white-space: pre;
}

.tev-api-note {
    font-size: 13px;
    color: var(--tev-text-2);
    margin: 0 0 12px;
}

/* ─── BILLING / PLANS ───────────────────────────────────────────────────────── */
.tev-billing-toggle-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.tev-billing-toggle {
    display: inline-flex;
    background: var(--tev-surface-2);
    border: 1px solid var(--tev-border);
    padding: 4px;
    border-radius: 30px;
}

.tev-type-btn {
    background: transparent;
    color: var(--tev-text-2);
}

.tev-type-btn.active {
    background: var(--tev-primary) !important;
    color: #ffffff !important;
}

.tev-toggle-btn {
    background: transparent;
    border: none;
    color: var(--tev-text-2);
    padding: 7px 20px;
    border-radius: 99px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--tev-transition);
    font-family: var(--tev-font);
    display: flex;
    align-items: center;
    gap: 6px;
}

.tev-toggle-btn.active {
    background: var(--tev-primary);
    color: #fff;
}

.tev-save-tag {
    background: var(--tev-valid);
    color: #000;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 99px;
}

.tev-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.tev-plan-card {
    background: var(--tev-surface);
    border: 1px solid var(--tev-border);
    border-radius: var(--tev-radius);
    padding: 24px;
    position: relative;
    transition: var(--tev-transition);
    display: flex;
    flex-direction: column;
}

.tev-plan-card:hover {
    border-color: var(--tev-border-hover);
    transform: translateY(-2px);
    box-shadow: var(--tev-shadow);
}

.tev-plan-card.tev-plan-featured {
    border-color: var(--tev-primary);
    box-shadow: 0 0 0 1px var(--tev-primary), var(--tev-shadow-glow);
}

.tev-plan-card.tev-plan-current {
    border-color: var(--tev-valid);
    box-shadow: 0 0 0 1px var(--tev-valid), 0 0 24px rgba(34, 197, 94, 0.1);
}

.tev-plan-badge {
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 99px;
    white-space: nowrap;
}

.tev-current-badge {
    background: var(--tev-valid) !important;
    color: #000 !important;
}

.tev-plan-header {
    margin-bottom: 16px;
}

.tev-plan-header h4 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
}

.tev-plan-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 8px;
}

.tev-price-amount {
    font-size: 32px;
    font-weight: 800;
}

.tev-price-period {
    font-size: 13px;
    color: var(--tev-text-2);
}

.tev-plan-verifications {
    font-size: 13px;
    color: var(--tev-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.tev-plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    flex: 1;
}

.tev-plan-features li {
    font-size: 13px;
    color: var(--tev-text-2);
    padding: 5px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--tev-border);
}

.tev-plan-features li:last-child {
    border-bottom: none;
}

.tev-plan-features i {
    color: var(--tev-valid);
    font-size: 12px;
}

.tev-plan-footer {
    margin-top: auto;
}

.tev-plan-footer .tev-btn {
    width: 100%;
    justify-content: center;
}

/* Plan badges */
.tev-plan-badge-inline {
    display: inline-flex;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.tev-plan-free {
    color: var(--tev-text-3);
}

.tev-plan-starter {
    color: var(--tev-primary);
}

.tev-plan-pro {
    color: #8b5cf6;
}

.tev-plan-business {
    color: #06b6d4;
}

.tev-plan-enterprise {
    color: var(--tev-risky);
}

/* ─── SETTINGS ──────────────────────────────────────────────────────────────── */
.tev-settings-row {
    margin-bottom: 16px;
}

.tev-danger-zone {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(239, 68, 68, 0.2);
}

.tev-danger-zone p {
    font-size: 13px;
    color: var(--tev-text-2);
    margin-bottom: 12px;
}

.tev-settings-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.tev-settings-row-item label {
    display: block;
    font-size: 11px;
    color: var(--tev-text-3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.tev-settings-row-item span {
    font-size: 14px;
    font-weight: 500;
}

/* ─── SELECT ────────────────────────────────────────────────────────────────── */
.tev-select {
    background: var(--tev-surface-2);
    border: 1px solid var(--tev-border);
    color: var(--tev-text);
    padding: 7px 12px;
    border-radius: var(--tev-radius-sm);
    font-size: 13px;
    font-family: var(--tev-font);
    outline: none;
    cursor: pointer;
}

.tev-select:focus {
    border-color: var(--tev-primary);
}

/* ─── SPINNER ───────────────────────────────────────────────────────────────── */
.tev-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: tev-spin 0.7s linear infinite;
}

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

/* ─── LANDING PAGE ──────────────────────────────────────────────────────────── */
.tev-landing {
    background: var(--tev-bg);
    min-height: 100vh;
    overflow-x: hidden;
}

.tev-landing-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 40px;
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(9, 9, 11, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--tev-border);
}

.tev-landing-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 16px;
}

.tev-landing-logo i {
    color: var(--tev-primary);
    font-size: 20px;
}

.tev-landing-nav-actions {
    display: flex;
    gap: 10px;
}

/* Hero */
.tev-hero {
    text-align: center;
    padding: 80px 40px 60px;
    position: relative;
    overflow: hidden;
}

.tev-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.tev-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 99px;
    font-size: 13px;
    color: var(--tev-primary);
    margin-bottom: 28px;
}

.tev-hero h1 {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 auto 20px;
    max-width: 700px;
    letter-spacing: -0.02em;
}

.tev-gradient-text {
    background: linear-gradient(135deg, var(--tev-primary), #8b5cf6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tev-hero-sub {
    font-size: 17px;
    color: var(--tev-text-2);
    max-width: 580px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.tev-hero-cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.tev-hero-note {
    font-size: 13px;
    color: var(--tev-text-3);
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

.tev-hero-note i {
    color: var(--tev-valid);
}

/* Demo widget */
.tev-demo-widget {
    max-width: 560px;
    margin: 40px auto 0;
    background: var(--tev-surface);
    border: 1px solid var(--tev-border);
    border-radius: var(--tev-radius);
    padding: 24px;
    text-align: left;
}

.tev-demo-input-row {
    display: flex;
    gap: 10px;
}

.tev-demo-input-row input {
    flex: 1;
    background: var(--tev-surface-2);
    border: 1px solid var(--tev-border);
    color: var(--tev-text);
    padding: 10px 14px;
    border-radius: var(--tev-radius-sm);
    font-size: 14px;
    font-family: var(--tev-font);
    outline: none;
}

.tev-demo-input-row input:focus {
    border-color: var(--tev-primary);
}

.tev-demo-note {
    font-size: 12px;
    color: var(--tev-text-3);
    margin: 10px 0 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tev-demo-result {
    margin-top: 16px;
}

/* Stats strip */
.tev-landing-stats {
    display: flex;
    justify-content: center;
    gap: 0;
    background: var(--tev-surface);
    border-top: 1px solid var(--tev-border);
    border-bottom: 1px solid var(--tev-border);
    flex-wrap: wrap;
}

.tev-lstat {
    flex: 1;
    min-width: 160px;
    text-align: center;
    padding: 28px 20px;
    border-right: 1px solid var(--tev-border);
}

.tev-lstat:last-child {
    border-right: none;
}

.tev-lstat-num {
    font-size: 30px;
    font-weight: 800;
    color: var(--tev-primary);
    display: block;
}

.tev-lstat-lbl {
    font-size: 13px;
    color: var(--tev-text-2);
    margin-top: 4px;
    display: block;
}

/* Features */
.tev-landing-features {
    padding: 80px 40px;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.tev-landing-features h2 {
    font-size: clamp(24px, 4vw, 38px);
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.tev-section-sub {
    color: var(--tev-text-2);
    font-size: 16px;
    margin-bottom: 48px;
}

.tev-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    text-align: left;
}

.tev-feat-card {
    background: var(--tev-surface);
    border: 1px solid var(--tev-border);
    border-radius: var(--tev-radius);
    padding: 24px;
    transition: var(--tev-transition);
}

.tev-feat-card:hover {
    border-color: var(--tev-border-hover);
    transform: translateY(-3px);
    box-shadow: var(--tev-shadow);
}

.tev-feat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(var(--feat-color, 99 102 241), 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--feat-color, var(--tev-primary));
    margin-bottom: 14px;
}

.tev-feat-card h4 {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 600;
}

.tev-feat-card p {
    margin: 0;
    font-size: 13px;
    color: var(--tev-text-2);
    line-height: 1.6;
}

/* Landing pricing */
.tev-landing-pricing {
    padding: 80px 40px;
    text-align: center;
    background: var(--tev-surface);
    border-top: 1px solid var(--tev-border);
}

.tev-landing-pricing h2 {
    font-size: clamp(24px, 4vw, 38px);
    font-weight: 700;
    margin-bottom: 12px;
}

/* CTA */
.tev-landing-cta {
    padding: 80px 40px;
    text-align: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), transparent);
    border-top: 1px solid var(--tev-border);
}

.tev-landing-cta h2 {
    font-size: clamp(22px, 3.5vw, 36px);
    font-weight: 700;
    margin-bottom: 12px;
}

.tev-landing-cta p {
    font-size: 16px;
    color: var(--tev-text-2);
    margin-bottom: 28px;
}

/* ─── AUTH MODAL ────────────────────────────────────────────────────────────── */
.tev-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.tev-modal {
    background: var(--tev-surface);
    border: 1px solid var(--tev-border);
    border-radius: var(--tev-radius);
    padding: 32px;
    max-width: 420px;
    width: 100%;
    position: relative;
    box-shadow: var(--tev-shadow);
    animation: tev-modal-in 0.2s ease;
}

@keyframes tev-modal-in {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.tev-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--tev-text-3);
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: var(--tev-transition);
}

.tev-modal-close:hover {
    color: var(--tev-text);
    background: var(--tev-surface-2);
}

.tev-modal-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.tev-modal-tab {
    flex: 1;
    background: var(--tev-surface-2);
    border: 1px solid var(--tev-border);
    color: var(--tev-text-2);
    padding: 8px 16px;
    border-radius: var(--tev-radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--tev-transition);
    font-family: var(--tev-font);
}

.tev-modal-tab.active {
    background: var(--tev-primary);
    color: #fff;
    border-color: var(--tev-primary);
}

/* Toast */
.tev-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--tev-surface);
    border: 1px solid var(--tev-border);
    border-radius: var(--tev-radius-sm);
    padding: 12px 20px;
    font-size: 13px;
    color: var(--tev-text);
    z-index: 9999;
    box-shadow: var(--tev-shadow);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: tev-toast-in 0.3s ease;
    max-width: 320px;
}

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

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

.tev-toast.success {
    border-left: 3px solid var(--tev-valid);
}

.tev-toast.error {
    border-left: 3px solid var(--tev-invalid);
}

.tev-toast.info {
    border-left: 3px solid var(--tev-primary);
}

/* ─── RESPONSIVE ────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {

    #tev-root,
    .tev-landing {
        width: 100% !important;
        max-width: 100vw !important;
        min-height: unset;
        flex-direction: column !important;
    }

    .tev-sidebar {
        position: static !important;
        width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        transform: none !important;
        border-right: none !important;
        border-bottom: 1px solid var(--tev-border) !important;
        padding-bottom: 0 !important;
    }

    .tev-logo {
        padding: 14px 16px !important;
        border-bottom: 1px solid var(--tev-border) !important;
    }

    .tev-nav {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        padding: 10px 14px !important;
        gap: 6px !important;
        white-space: nowrap !important;
        -webkit-overflow-scrolling: touch;
    }

    .tev-nav-item {
        padding: 8px 14px !important;
        border-radius: 8px !important;
        flex-shrink: 0 !important;
        font-size: 13px !important;
    }

    .tev-sidebar-footer {
        display: none !important;
    }

    .tev-content {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 16px !important;
    }

    .tev-usage-banner {
        margin: 0 0 16px 0 !important;
        border-radius: 10px !important;
        padding: 12px 14px !important;
    }

    .tev-usage-info {
        flex-wrap: wrap !important;
        gap: 6px !important;
        font-size: 12px !important;
    }

    .tev-landing-nav {
        padding: 14px 20px;
    }

    .tev-landing-nav-actions {
        display: none !important;
    }

    .tev-hero {
        padding: 50px 20px 40px;
    }

    .tev-landing-features,
    .tev-landing-pricing,
    .tev-landing-cta {
        padding: 50px 20px;
    }

    .tev-plans-grid {
        grid-template-columns: 1fr;
    }

    .tev-single-input-row {
        flex-direction: column;
    }

    .tev-single-input-row input {
        width: 100%;
    }

    .tev-topbar {
        flex-direction: column;
    }
}

/* ─── MODAL POPUP CHECKOUT OVERLAY ─────────────────────────────────────────── */
.tev-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: tev-modal-fade-in 0.25s ease;
}

.tev-modal-container {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    width: 100%;
}

@keyframes tev-modal-fade-in {
    from {
        opacity: 0;
        transform: scale(0.96);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}