/* Shared visual language for every "tachnhac.com v2" promotional surface:
   banner, register-vip replacement content, price page callout. One token
   source so all 3 touchpoints stay visually consistent (see docs/plan/tachnhac-v2-nudge-rollout.md). */

:root {
  --v2-accent: #ffd043;
  --v2-accent-soft: rgba(255, 221, 87, 0.08);
  --v2-border: rgba(255, 221, 87, 0.3);
  --v2-bg: #0d1117;
  --v2-bg-soft: #161b22;
  --v2-muted: #8b949e;
  --v2-text: #e6edf3;
  --v2-radius-lg: 14px;
  --v2-radius-md: 10px;
  --v2-page-w: 1500px;
}

.v2-card {
  overflow: hidden;
  border: 1px solid var(--v2-border);
  border-radius: var(--v2-radius-lg);
  background: var(--v2-bg);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  position: relative;
}

/* Animated gradient sweep along the top edge — the "wow" cue, GPU-cheap (background-position only) */
.v2-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--v2-accent), transparent);
  background-size: 200% 100%;
  animation: v2-sweep 3.2s linear infinite;
}

@keyframes v2-sweep {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .v2-card::before { animation: none; }
}

.v2-card__body {
  padding: 1.25rem;
  background: linear-gradient(135deg, var(--v2-accent-soft) 0%, rgba(0, 0, 0, 0) 70%);
}

.v2-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--v2-accent);
  color: #1a1300;
}

.v2-title {
  color: var(--v2-text);
  font-weight: 700;
}

.v2-sub {
  color: var(--v2-muted);
}

/* Before/after comparison — mobile-first: stacked, arrow rotates horizontal on tablet+ */
.v2-compare {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.25rem;
  margin: 1rem 0;
}

.v2-compare__arrow {
  align-self: center;
  color: var(--v2-muted);
  font-size: 1.1rem;
  transform: rotate(90deg);
}

.v2-compare__col {
  border-radius: var(--v2-radius-md);
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.v2-compare__col--muted {
  background: rgba(255, 255, 255, 0.02);
  opacity: 0.75;
}

.v2-compare__col--highlight {
  background: rgba(255, 221, 87, 0.05);
  border-color: var(--v2-border);
}

.v2-compare__label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--v2-muted);
  margin-bottom: 0.35rem;
}

.v2-compare__col--highlight .v2-compare__label {
  color: var(--v2-accent);
}

.v2-compare__col ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.85rem;
  color: var(--v2-text);
}

.v2-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin: 1rem 0;
}

.v2-feature-item {
  border-radius: var(--v2-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.75rem;
}

.v2-feature-item__head {
  color: var(--v2-accent);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.v2-feature-item__body {
  color: var(--v2-muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.v2-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: center;
  margin: 0.75rem 0 1.25rem;
  font-size: 0.78rem;
  color: var(--v2-muted);
}

.v2-trust-row span { white-space: nowrap; }

.v2-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 260px;
  justify-content: center;
  border-radius: var(--v2-radius-md);
  padding: 0.85rem 1.5rem;
  font-weight: 700;
  background: var(--v2-accent);
  color: #1a1300 !important;
  box-shadow: 0 4px 16px rgba(255, 221, 87, 0.25);
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.v2-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(255, 221, 87, 0.35);
  color: #1a1300;
}

.v2-cta--ghost {
  background: transparent;
  color: var(--v2-muted) !important;
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-weight: 500;
  min-width: unset;
}

.v2-cta--ghost:hover {
  color: var(--v2-text) !important;
  border-color: rgba(255, 255, 255, 0.3);
  transform: none;
}

.v2-cta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
}

@media (min-width: 769px) {
  .v2-compare {
    flex-direction: row;
    align-items: center;
  }
  .v2-compare__arrow { transform: none; }
  .v2-compare__col { flex: 1; }
  .v2-feature-grid { grid-template-columns: repeat(4, 1fr); }
  .v2-cta-row { flex-direction: row; justify-content: center; }
}

/* Compact variant for modal/popup content (FakeIP, BAN, quota messages) — same
   color language, no card chrome since it sits inside an existing modal box. */
.v2-inline-cta {
  display: block;
  margin-top: 0.6rem;
  padding: 0.6rem 0.9rem;
  border-radius: var(--v2-radius-md);
  background: var(--v2-accent);
  color: #1a1300 !important;
  font-weight: 700;
  text-align: center;
  text-decoration: none !important;
}

.v2-inline-cta:hover { color: #1a1300; opacity: 0.9; }

.v2-inline-note {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--v2-muted);
  text-align: center;
}

.v2-link {
  color: var(--v2-accent);
  font-weight: 600;
  text-decoration: underline;
}

/* Thank-you letter: formal, dark card with gold accent, two recognition tiles */
/* Layout: #main_content is a centered flex-wrap row, so blocks must claim a full row themselves */
.v2-fullrow { flex: 1 1 100%; width: 100%; }
.v2-wrap, .v2-blocks { flex: 1 1 100%; width: 100%; max-width: var(--v2-page-w); margin: 0 auto; padding: 0 1rem; box-sizing: border-box; }
.v2-blocks { margin-top: 1rem; display: grid; grid-template-columns: 1fr; gap: 1.25rem; align-items: stretch; }
@media (min-width: 1100px) { .v2-blocks { grid-template-columns: 1fr 1fr; } .v2-blocks #donate { grid-column: 1 / -1; } }
.v2-letter { text-align: left; }
.v2-blocks .v2-letter__body { display: flex; flex-direction: column; height: 100%; box-sizing: border-box; }
.v2-blocks .v2-letter__foot { margin-top: auto; }
.v2-wrap > .section { padding-left: 0; padding-right: 0; }
.v2-letter__body { padding: 2rem 1.5rem 1.5rem; color: var(--v2-text); text-align: left; }
.v2-letter__eyebrow { display: inline-block; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--v2-accent); margin-bottom: .6rem; }
.v2-letter__title { font-family: Georgia, "Times New Roman", serif; font-size: 1.6rem; line-height: 1.3; color: #fff; margin: 0 0 .4rem; }
.v2-letter__rule { width: 56px; height: 3px; border-radius: 3px; background: var(--v2-accent); margin: .8rem 0 1.2rem; }
.v2-letter__text { font-size: .98rem; line-height: 1.75; color: var(--v2-text); margin: 0 0 .9rem; }
.v2-letter__text b { color: var(--v2-accent); }
.v2-letter__tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .75rem; margin: 1.2rem 0; }
.v2-letter__tile { background: var(--v2-bg-soft); border: 1px solid var(--v2-border); border-radius: var(--v2-radius-md); padding: 1rem; font-size: .9rem; line-height: 1.6; color: var(--v2-text); }
.v2-letter__tile i { color: var(--v2-accent); font-size: 1.2rem; display: block; margin-bottom: .4rem; }
.v2-letter__tile b { display: block; color: #fff; margin-bottom: .2rem; }
.v2-letter__sign { font-family: Georgia, "Times New Roman", serif; font-style: italic; color: var(--v2-accent); text-align: right; margin: 1rem 0 1.2rem; }
.v2-letter__foot { text-align: center; }

/* Donate block: reuses the letter card; wider so the two lists sit side by side */
.v2-donate .v2-letter__body { padding-bottom: 1.2rem; }
.v2-donate__steps { margin: 0 0 1.2rem 1.2rem; padding: 0; color: var(--v2-text); font-size: .95rem; line-height: 1.7; list-style: decimal; }
.v2-donate__steps li { margin-bottom: .3rem; }
.v2-donate__steps b { color: var(--v2-accent); }
.v2-donate__faq { background: var(--v2-bg-soft); border: 1px solid var(--v2-border); border-radius: var(--v2-radius-md); padding: .8rem 1rem; margin: 0 0 1.2rem; font-size: .9rem; line-height: 1.7; color: var(--v2-text); }
.v2-donate__faq summary { color: #fff; font-weight: 600; }
.v2-donate__faq b { color: var(--v2-accent); }
#donate.v2-donate .flexHor { margin: 0; max-width: none; justify-content: stretch; align-items: flex-start; gap: .75rem; }
#donate.v2-donate .flexHor > div { flex: 1 1 380px; min-width: 0; background: var(--v2-bg-soft); border: 1px solid var(--v2-border); border-radius: var(--v2-radius-md); padding: .6rem .8rem; margin: 0; }
.v2-donate .flexHor .v2-donate__h { text-align: center; color: var(--v2-accent); font-size: 1rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 .5rem; }
.v2-donate table { width: 100%; color: var(--v2-text); font-size: .85rem; }
.v2-donate th { color: var(--v2-muted); font-weight: 600; text-align: left; padding: .3rem .4rem; background: var(--v2-bg-soft); }
.v2-donate td { padding: .25rem .4rem; border-top: 1px solid rgba(255, 255, 255, .06); }

/* kinhdich.app introduction card + logo marks */
.v2-letter__brand { display: flex; align-items: center; gap: .9rem; margin-bottom: .6rem; }
.v2-letter__brand img { width: 64px; height: 64px; border-radius: 50%; box-shadow: 0 0 0 2px var(--v2-border), 0 0 24px rgba(255, 208, 67, .25); flex: none; }
.v2-letter__quote { border-left: 3px solid var(--v2-accent); margin: 0 0 1rem; padding: .2rem 0 .2rem 1rem; font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 1.05rem; line-height: 1.7; color: #fff; }
.v2-letter__tile img.v2-logo { width: 36px; height: 36px; border-radius: 8px; display: block; margin-bottom: .4rem; }
.v2-letter__tiles--3 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.v2-letter__fine { font-size: .78rem; line-height: 1.6; color: var(--v2-muted); margin: .2rem 0 1rem; }
.v2-cta img.v2-logo-inline { width: 20px; height: 20px; border-radius: 50%; margin-right: .4rem; vertical-align: middle; }
