#tinhvat-root.tinhvat-page {
  --tv-bg: #020617;
  --tv-card: rgba(15, 23, 42, 0.72);
  --tv-border: rgba(255, 255, 255, 0.08);
  --tv-text: #f8fafc;
  --tv-muted: #94a3b8;
  --tv-input-bg: rgba(2, 6, 23, 0.55);
  --tv-input-border: rgba(148, 163, 184, 0.28);
  --tv-result: rgba(15, 23, 42, 0.82);
  --tv-highlight: rgba(37, 99, 235, 0.18);
  --tv-highlight-border: rgba(96, 165, 250, 0.45);
  --tv-accent: #60a5fa;
}

#tinhvat-root .tinhvat-surface {
  position: relative;
  overflow: hidden;
  background: var(--tv-bg);
  color: var(--tv-text);
}

#tinhvat-root .tinhvat-ambient {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}

#tinhvat-root .tinhvat-ambient--cyan {
  top: -12%;
  left: -8%;
  width: 34vw;
  height: 34vw;
  background: rgba(6, 182, 212, 0.28);
}

#tinhvat-root .tinhvat-ambient--blue {
  right: -10%;
  bottom: -18%;
  width: 42vw;
  height: 42vw;
  background: rgba(37, 99, 235, 0.28);
}

#tinhvat-root .tinhvat-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 5.5rem 1rem 3rem;
}

#tinhvat-root .tinhvat-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

#tinhvat-root .tinhvat-badge {
  display: inline-flex;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(96, 165, 250, 0.35);
  color: #93c5fd;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(37, 99, 235, 0.12);
  margin-bottom: 0.85rem;
}

#tinhvat-root .tinhvat-title {
  margin: 0 0 0.5rem;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

#tinhvat-root .tinhvat-subtitle {
  margin: 0;
  color: var(--tv-muted);
}

#tinhvat-root .tinhvat-card {
  background: var(--tv-card);
  border: 1px solid var(--tv-border);
  border-radius: 18px;
  padding: 1.5rem;
  backdrop-filter: blur(16px);
}

#tinhvat-root .tinhvat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

#tinhvat-root .tinhvat-field label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.85rem;
  font-weight: 700;
}

#tinhvat-root .tinhvat-field input,
#tinhvat-root .tinhvat-field select {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--tv-input-border);
  background: var(--tv-input-bg);
  color: var(--tv-text);
  font-size: 1rem;
  outline: none;
}

#tinhvat-root .tinhvat-field input:focus,
#tinhvat-root .tinhvat-field select:focus {
  border-color: var(--tv-accent);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.18);
}

#tinhvat-root #tinhvat-custom-vat:not([hidden]) {
  display: block;
  margin-top: 0.5rem;
}

#tinhvat-root .tinhvat-results {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

#tinhvat-root .tinhvat-result {
  text-align: left;
  background: var(--tv-result);
  border: 1px solid var(--tv-border);
  border-radius: 12px;
  padding: 1rem;
  color: inherit;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

#tinhvat-root .tinhvat-result:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

#tinhvat-root .tinhvat-result--full {
  grid-column: 1 / -1;
}

#tinhvat-root .tinhvat-result--highlight {
  background: var(--tv-highlight);
  border-color: var(--tv-highlight-border);
}

#tinhvat-root .tinhvat-result-label {
  display: block;
  color: var(--tv-muted);
  font-size: 0.82rem;
  margin-bottom: 0.35rem;
}

#tinhvat-root .tinhvat-result-value {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

#tinhvat-root .tinhvat-quick-copy {
  margin-top: 1.6rem;
}

#tinhvat-root .tinhvat-quick-copy-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}

#tinhvat-root .tinhvat-copy-item {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--tv-result);
  border: 1px solid var(--tv-border);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  margin-top: 0.6rem;
  color: inherit;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1.5;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}

#tinhvat-root .tinhvat-copy-item:hover {
  border-color: var(--tv-accent);
  background: var(--tv-highlight);
}

#tinhvat-root .tinhvat-copy-item:active {
  transform: scale(0.99);
}

#tinhvat-root .tinhvat-copy-item small {
  display: block;
  margin-top: 0.3rem;
  color: var(--tv-muted);
  font-size: 0.75rem;
}

#tinhvat-root .tinhvat-note {
  margin: 1.1rem 0 0;
  color: var(--tv-muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.tinhvat-toast-wrap {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.tinhvat-toast {
  min-width: 240px;
  max-width: 380px;
  background: #111827;
  color: #fff;
  padding: 13px 16px;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);
  font-size: 14px;
  line-height: 1.4;
  animation: tinhvat-toast-in 0.2s ease-out;
}

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

@media (max-width: 640px) {
  #tinhvat-root .tinhvat-inner {
    padding-top: 4.5rem;
  }
  #tinhvat-root .tinhvat-grid,
  #tinhvat-root .tinhvat-results {
    grid-template-columns: 1fr;
  }
  #tinhvat-root .tinhvat-result--full {
    grid-column: auto;
  }
}
