/* Chi tiết tài nguyên — trắng, kiểu Piaz, font Inter */

body.page-tai-nguyen {
  --tn-ink: #0b1220;
  --tn-muted: #5b6577;
  --tn-line: #e8ecf3;
  --tn-soft: #f4f6fb;
  --tn-blue: #2563eb;
  --tn-blue-deep: #1d4ed8;
  background: #ffffff;
  color: var(--tn-ink);
}

body.page-tai-nguyen .footer {
  background: #ffffff;
  border-top: 1px solid var(--tn-line);
}

body.page-tai-nguyen .footer-copyright {
  color: var(--tn-muted);
}

body.page-tai-nguyen .header {
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid var(--tn-line) !important;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

body.page-tai-nguyen .header .logo-text {
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  -webkit-text-fill-color: unset !important;
  color: var(--tn-ink) !important;
}

body.page-tai-nguyen .header-cta-content {
  background-color: var(--tn-soft) !important;
}

body.page-tai-nguyen .header-cta-red-text {
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  -webkit-text-fill-color: unset !important;
  color: var(--tn-ink) !important;
}

body.page-tai-nguyen .header-join-btn.btn.btn-primary,
body.page-tai-nguyen .rp-actions .btn,
body.page-tai-nguyen .rp-donate-box .btn {
  background: linear-gradient(180deg, #5588f0 0%, #3466e2 100%) !important;
  background-image: linear-gradient(180deg, #5588f0 0%, #3466e2 100%) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 9999px !important;
  font-weight: 600 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    inset 0 -1px 1px rgba(0, 0, 0, 0.12),
    0 6px 16px -6px rgba(52, 102, 226, 0.6) !important;
}

.rp-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 8.75rem 1.25rem 4rem;
}

.rp-bundle {
  margin: 1.75rem 0 0;
}

.rp-bundle.tn-bundle--compact {
  margin-top: 1.75rem;
}

.rp-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--tn-muted);
  text-decoration: none;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.rp-back:hover {
  color: var(--tn-blue);
}

.rp-hero {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 960px) {
  .rp-hero {
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.82fr);
    gap: 2rem;
  }
}

.rp-media {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--tn-line);
  background: #0b1220;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.rp-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rp-media--font img {
  object-position: 50% 46%;
}

.footage-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  gap: 5px;
  padding: 0;
  background: #0b0d12;
  overflow: hidden;
}

.rp-media.footage-mosaic {
  display: grid;
  align-items: stretch;
  justify-content: stretch;
}

.tn-demo-card > .footage-mosaic,
.tn-demo-card__thumb > .footage-mosaic {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: grid;
}

.footage-mosaic img {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center 22%;
  display: block;
}

.footage-mosaic img:nth-child(1) { border-radius: 0 8px 8px 8px; }
.footage-mosaic img:nth-child(2) { border-radius: 8px 0 8px 8px; }
.footage-mosaic img:nth-child(3) { border-radius: 8px 8px 8px 0; }
.footage-mosaic img:nth-child(4) { border-radius: 8px 8px 0 8px; }

.rp-media__ph {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: -0.02em;
}

.rp-buy {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.35rem 1.4rem 1.5rem;
  border: 1px solid var(--tn-line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

@media (min-width: 960px) {
  .rp-buy {
    position: sticky;
    top: 6.75rem;
  }
}

.rp-price {
  margin: 0.15rem 0 0;
  font-family: 'Inter', sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--tn-ink);
}

.rp-price small {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--tn-muted);
  letter-spacing: 0;
}

.rp-brand {
  color: var(--tn-muted);
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0;
}

.rp-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 800;
  color: var(--tn-ink);
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.rp-lead {
  color: var(--tn-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
}

.rp-field label {
  display: block;
  color: #334155;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.55rem;
  line-height: 1.3;
}

.rp-field input {
  width: 100%;
  min-height: 3rem;
  border-radius: 14px;
  border: 1px solid #d7dee9;
  background: #ffffff;
  color: var(--tn-ink);
  padding: 0.75rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  box-sizing: border-box;
}

.rp-field input::placeholder {
  color: #94a3b8;
}

.rp-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.35rem;
}

.rp-actions .btn {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.95rem;
}

.rp-msg {
  min-height: 1.25rem;
  font-size: 0.85rem;
  color: var(--tn-blue);
  margin: 0;
}

.rp-msg.is-error {
  color: #dc2626;
}

.rp-desc {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--tn-line);
  max-width: 40rem;
}

.rp-desc h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--tn-ink);
  margin: 0 0 0.85rem;
  letter-spacing: -0.02em;
}

.rp-desc p {
  color: var(--tn-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0 0 0.85rem;
}

.rp-desc ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--tn-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.rp-donate-box {
  margin-top: 1rem;
  padding: 1.15rem;
  border-radius: 18px;
  border: 1px solid var(--tn-line);
  background: var(--tn-soft);
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.rp-donate-box.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.rp-donate-box[hidden] {
  display: none !important;
}

[data-rp-step].is-visible {
  animation: rp-fade-up 0.35s ease both;
}

@keyframes rp-fade-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.rp-spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: rp-spin 0.65s linear infinite;
  flex-shrink: 0;
}

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

.btn.is-loading,
button.is-loading {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  pointer-events: none;
  opacity: 0.92;
}

.rp-donate-box .rp-lead {
  color: #334155;
  margin-bottom: 0.75rem;
}

.rp-amounts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0 0 0.9rem;
}

.rp-amounts button {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  border: 1.5px solid #d7dee9;
  background: #ffffff;
  background-image: none;
  color: #1e293b;
  border-radius: 999px;
  padding: 0.6rem 0.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.2;
  text-align: center;
  overflow: visible;
  outline: none;
}

.rp-amounts button:hover {
  border-color: var(--tn-blue);
  color: var(--tn-blue);
}

.rp-amounts button.is-on {
  border-color: var(--tn-blue);
  background: var(--tn-blue);
  background-image: none;
  color: #ffffff;
  box-shadow: none;
}

.rp-donate-box .rp-field {
  margin-bottom: 0.75rem;
}

.rp-donate-box .btn {
  width: 100%;
  min-height: 3rem;
  border-radius: 9999px;
}

.rp-qr {
  display: block;
  width: 200px;
  height: 200px;
  margin: 0.75rem auto;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--tn-line);
}

.rp-facts {
  display: grid;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--tn-muted);
  margin: 0.75rem 0 0;
}

.rp-facts dt {
  color: #94a3b8;
  display: inline;
}

.rp-facts dd {
  display: inline;
  margin: 0;
  color: var(--tn-ink);
  font-weight: 600;
}

.rp-facts > div {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.rp-specs {
  list-style: none;
  margin: 0 0 1.1rem;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.rp-specs li {
  margin: 0;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  background: var(--tn-soft);
  color: var(--tn-ink);
  font-size: 0.92rem;
  line-height: 1.4;
}

.rp-specs strong {
  font-weight: 700;
}

/* Hướng dẫn tính năng: ảnh + giải thích */
.rp-guides {
  margin-top: 2.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--tn-line);
}

.rp-guides > h2 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--tn-ink);
}

.rp-guides > p {
  margin: 0 0 1.35rem;
  color: var(--tn-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 36rem;
}

.rp-guide {
  display: grid;
  gap: 1.15rem;
  align-items: center;
  margin: 0 0 1.15rem;
  padding: 1rem;
  border: 1px solid var(--tn-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

@media (min-width: 720px) {
  .rp-guide {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 1.5rem;
    padding: 1.15rem 1.25rem;
  }

  .rp-guide:nth-child(even) {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }

  .rp-guide:nth-child(even) .rp-guide__media {
    order: 2;
  }
}

.rp-guide__media {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--tn-line);
  background: #0e0e0e;
  aspect-ratio: 16 / 9;
}

.rp-guide__media img,
.rp-guide__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rp-guide__media--contain {
  background: #0e0e0e;
}

.rp-guide__media--contain img,
.rp-guide__media--contain video {
  object-fit: contain;
}

/* Ảnh «các khu»: full chiều ngang, không cột chữ */
.rp-guide--wide {
  display: block;
  padding: 0.65rem;
}

@media (min-width: 720px) {
  .rp-guide--wide {
    grid-template-columns: none;
    padding: 0.75rem;
  }

  .rp-guide--wide .rp-guide__media {
    order: unset;
  }
}

.rp-guide--wide .rp-guide__media {
  aspect-ratio: auto;
  background: #0e0e0e;
}

.rp-guide--wide .rp-guide__media img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.rp-guide__body h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 750;
  color: var(--tn-ink);
  letter-spacing: -0.01em;
}

.rp-guide__body p {
  margin: 0;
  color: var(--tn-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.rp-guide__step {
  display: inline-flex;
  margin-bottom: 0.45rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: var(--tn-soft);
  color: #475569;
  font-size: 0.68rem;
  font-weight: 700;
}

.footage-preview {
  margin: 2.5rem 0 0;
}

.footage-preview h2 {
  margin: 0 0 0.35rem;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--tn-ink);
}

.footage-preview__sub {
  margin: 0 0 1.1rem;
  color: var(--tn-muted);
  font-size: 0.95rem;
}

.footage-preview__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 760px) {
  .footage-preview__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footage-preview__grid figure {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--tn-line);
  background: #0b1220;
}

.footage-preview__grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  display: block;
}
