/* EU VAT Number Validator Scoped Styles */

:root {
  --evnv-primary: #1d4ed8;
  --evnv-primary-hover: #1e40af;
  --evnv-surface: #ffffff;
  --evnv-bg: #f8fafc;
  --evnv-border: #e2e8f0;
  --evnv-text: #0f172a;
  --evnv-text-muted: #64748b;
  --evnv-success: #16a34a;
  --evnv-success-bg: #dcfce7;
  --evnv-danger: #dc2626;
  --evnv-danger-bg: #fee2e2;
  --evnv-warning: #d97706;
  --evnv-warning-bg: #fef3c7;
  --evnv-radius: 8px;
  --evnv-font: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --evnv-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  line-height: 1.5;
}

.evnv-container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 20px;
}

.evnv-site-header {
  background: var(--evnv-surface);
  border-bottom: 1px solid var(--evnv-border);
  padding: 14px 0;
}

.evnv-header-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.evnv-brand {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--evnv-primary);
  text-decoration: none;
}

.evnv-header-badge {
  font-size: 0.8rem;
  font-weight: 600;
  background: #eff6ff;
  color: var(--evnv-primary);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid #bfdbfe;
}

.evnv-intro-section {
  padding: 32px 0 20px;
}

.evnv-title {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 10px;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.evnv-lead {
  font-size: 1.05rem;
  color: var(--evnv-text-muted);
  max-width: 800px;
  margin: 0;
}

.evnv-main-content {
  padding-bottom: 40px;
}

/* Tabs */
.evnv-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid var(--evnv-border);
  margin-bottom: 24px;
  overflow-x: auto;
}

.evnv-tab-btn {
  background: none;
  border: none;
  padding: 12px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--evnv-text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.evnv-tab-btn:hover {
  color: var(--evnv-primary);
}

.evnv-tab-btn-active {
  color: var(--evnv-primary);
  border-bottom-color: var(--evnv-primary);
}

.evnv-tab-panel {
  display: block;
}

.evnv-tab-panel[hidden] {
  display: none;
}

/* Card */
.evnv-card {
  background: var(--evnv-surface);
  border: 1px solid var(--evnv-border);
  border-radius: var(--evnv-radius);
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.evnv-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--evnv-border);
  padding-bottom: 12px;
}

.evnv-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.evnv-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.evnv-badge-info {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.evnv-badge-neutral {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.evnv-badge-success {
  background: var(--evnv-success-bg);
  color: var(--evnv-success);
}

.evnv-badge-danger {
  background: var(--evnv-danger-bg);
  color: var(--evnv-danger);
}

/* Forms */
.evnv-form-group {
  margin-bottom: 18px;
}

.evnv-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #334155;
}

.evnv-input-group {
  display: flex;
  gap: 10px;
}

.evnv-input {
  flex: 1;
  padding: 11px 14px;
  font-size: 1rem;
  border: 1px solid var(--evnv-border);
  border-radius: var(--evnv-radius);
  background: #ffffff;
  color: var(--evnv-text);
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s;
}

.evnv-input:focus,
.evnv-select:focus,
.evnv-textarea:focus {
  border-color: var(--evnv-primary);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15);
}

.evnv-select {
  width: 100%;
  padding: 11px 14px;
  font-size: 0.95rem;
  border: 1px solid var(--evnv-border);
  border-radius: var(--evnv-radius);
  background: #ffffff;
  color: var(--evnv-text);
  outline: none;
  font-family: inherit;
}

.evnv-textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.95rem;
  font-family: var(--evnv-mono);
  border: 1px solid var(--evnv-border);
  border-radius: var(--evnv-radius);
  resize: vertical;
  background: #ffffff;
  color: var(--evnv-text);
}

.evnv-hint {
  font-size: 0.8rem;
  color: var(--evnv-text-muted);
  margin: 6px 0 0;
}

.evnv-btn {
  padding: 11px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--evnv-radius);
  border: none;
  cursor: pointer;
  transition: background-color 0.15s;
  white-space: nowrap;
}

.evnv-btn-primary {
  background: var(--evnv-primary);
  color: #ffffff;
}

.evnv-btn-primary:hover {
  background: var(--evnv-primary-hover);
}

.evnv-btn-secondary {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.evnv-btn-secondary:hover {
  background: #e2e8f0;
}

.evnv-btn-sm {
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 6px;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.evnv-btn-sm:hover {
  background: #e2e8f0;
}

.evnv-btn-link {
  color: var(--evnv-primary);
  border-color: #bfdbfe;
  background: #eff6ff;
}

.evnv-btn-link:hover {
  background: #dbeafe;
}

.evnv-btn-xs {
  padding: 4px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  background: #ffffff;
  color: var(--evnv-primary);
  border: 1px solid #cbd5e1;
  cursor: pointer;
  margin-top: 8px;
}

.evnv-btn-xs:hover {
  background: #eff6ff;
}

.evnv-btn-row {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

/* Samples */
.evnv-samples-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.evnv-samples-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--evnv-text-muted);
}

.evnv-chip {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  padding: 4px 10px;
  font-size: 0.8rem;
  border-radius: 16px;
  cursor: pointer;
  color: #334155;
  transition: all 0.15s;
}

.evnv-chip:hover {
  border-color: var(--evnv-primary);
  color: var(--evnv-primary);
  background: #eff6ff;
}

/* Result Card */
.evnv-result-card {
  background: #f8fafc;
  border: 1px solid var(--evnv-border);
  border-radius: var(--evnv-radius);
  padding: 20px;
}

.evnv-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 10px;
}

.evnv-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.95rem;
}

.evnv-status-valid {
  background: var(--evnv-success-bg);
  color: var(--evnv-success);
  border: 1px solid #86efac;
}

.evnv-status-invalid {
  background: var(--evnv-danger-bg);
  color: var(--evnv-danger);
  border: 1px solid #fca5a5;
}

.evnv-actions-right {
  display: flex;
  gap: 8px;
}

.evnv-grid-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.evnv-detail-box {
  background: var(--evnv-surface);
  border: 1px solid var(--evnv-border);
  padding: 12px 14px;
  border-radius: 6px;
}

.evnv-detail-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--evnv-text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.evnv-detail-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}

.evnv-mono {
  font-family: var(--evnv-mono);
}

.evnv-text-success {
  color: var(--evnv-success);
}

.evnv-text-danger {
  color: var(--evnv-danger);
}

.evnv-compliance-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  padding: 14px;
}

.evnv-compliance-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1e40af;
  margin-bottom: 4px;
}

.evnv-compliance-text {
  font-size: 0.85rem;
  color: #1e3a8a;
  margin: 0;
  font-style: italic;
}

/* Grids */
.evnv-grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.evnv-grid-three {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

@media (max-width: 768px) {
  .evnv-grid-two,
  .evnv-grid-three {
    grid-template-columns: 1fr;
  }
}

/* Reverse Charge Calculator Results */
.evnv-calc-result-box {
  background: #f8fafc;
  border: 1px solid var(--evnv-border);
  border-radius: var(--evnv-radius);
  padding: 20px;
  margin-top: 10px;
}

.evnv-calc-headline {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--evnv-primary);
  margin-bottom: 6px;
}

.evnv-calc-desc {
  font-size: 0.9rem;
  color: var(--evnv-text-muted);
  margin: 0 0 16px;
}

.evnv-invoice-summary {
  background: var(--evnv-surface);
  border: 1px solid var(--evnv-border);
  border-radius: 6px;
  padding: 14px;
  margin-bottom: 16px;
}

.evnv-invoice-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.9rem;
  border-bottom: 1px dashed var(--evnv-border);
}

.evnv-invoice-row:last-child {
  border-bottom: none;
}

.evnv-invoice-row-total {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  padding-top: 10px;
}

.evnv-invoice-clause {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 12px;
  border-radius: 6px;
}

.evnv-clause-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #475569;
  margin-bottom: 4px;
}

.evnv-clause-box {
  font-family: var(--evnv-mono);
  font-size: 0.85rem;
  color: #1e293b;
  word-break: break-word;
}

/* Batch Summary & Table */
.evnv-batch-summary {
  display: flex;
  gap: 20px;
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.evnv-summary-stat strong {
  font-size: 1.1rem;
}

.evnv-table-wrap {
  overflow-x: auto;
  margin-top: 10px;
}

.evnv-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  text-align: left;
}

.evnv-table th,
.evnv-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--evnv-border);
}

.evnv-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.evnv-table tr:hover td {
  background: #f8fafc;
}

.evnv-filter-row {
  margin-bottom: 14px;
}

/* AdSense Container */
.evnv-ad-container {
  min-height: 280px;
  background: #f1f5f9;
  border: 1px dashed #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--evnv-text-muted);
  font-size: 0.85rem;
  margin: 24px 0;
  border-radius: var(--evnv-radius);
}

/* Disclaimer & Guide */
.evnv-disclaimer {
  background: #fffbeb;
  border-top: 1px solid #fef3c7;
  border-bottom: 1px solid #fef3c7;
  padding: 18px 0;
  margin-top: 24px;
}

.evnv-disclaimer-text {
  font-size: 0.85rem;
  color: #92400e;
  margin: 0;
}

.evnv-guide-section {
  padding: 36px 0;
  background: var(--evnv-surface);
  border-bottom: 1px solid var(--evnv-border);
}

.evnv-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.evnv-guide-card {
  border: 1px solid var(--evnv-border);
  border-radius: var(--evnv-radius);
  padding: 18px;
  background: #f8fafc;
}

.evnv-guide-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: var(--evnv-primary);
}

.evnv-guide-card p {
  margin: 0;
  font-size: 0.85rem;
  color: #475569;
}

.evnv-faq-section {
  padding: 36px 0;
}

.evnv-faq-item {
  margin-bottom: 18px;
}

.evnv-faq-q {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: #0f172a;
}

.evnv-faq-a {
  font-size: 0.9rem;
  color: #475569;
  margin: 0;
}

.evnv-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 24px 0;
  text-align: center;
  font-size: 0.85rem;
}

.evnv-footer p {
  margin: 0;
}

.evnv-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0f172a;
  color: #f8fafc;
  padding: 12px 0;
  font-size: 0.85rem;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
}

.evnv-consent-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.evnv-icon {
  font-weight: 700;
}

.evnv-tab-panel-active {
  display: block;
}
/* tf:dark-palette — generated by migrate_chrome.py */
/* Neutrals inherit the shared chrome tokens so all tools share one
   ground; brand hues are kept and lightened, never inverted. */
[data-theme="dark"] {
  --evnv-primary: #8198da;
  --evnv-primary-hover: #8196da;
  --evnv-surface: var(--tf-surface);
  --evnv-bg: var(--tf-surface);
  --evnv-border: var(--tf-surface);
  --evnv-text: var(--tf-ink);
  --evnv-text-muted: var(--tf-ink-faint);
  --evnv-success: #7ad89d;
  --evnv-success-bg: var(--tf-surface);
  --evnv-danger: #da8181;
  --evnv-danger-bg: var(--tf-surface);
  --evnv-warning: #dab181;
  --evnv-warning-bg: var(--tf-surface);
}
