/*
Theme Name: TP Nexus Landing
Theme URI: https://tpnexus.vn
Author: TP Nexus
Description: Landing page chuẩn SEO cho TP Nexus - Dịch vụ Marketing Đà Nẵng & Marketing Automation OS cho SME. Tối ưu tốc độ tải, semantic HTML, Schema.org.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tpnexus
*/

/* ==========================================================================
   0. Design tokens
   ========================================================================== */
:root {
  --bg: #0A0A0A;
  --bg-card: #121212;
  --bg-card-alt: #1A1A1A;
  --bg-card-deep: #141414;
  --border: #232323;
  --border-light: #2A2A2A;
  --gold: #C9A86A;
  --gold-light: #E8D5B5;
  --gold-soft: rgba(201, 168, 106, 0.4);
  --text: #FFFFFF;
  --text-dim-70: rgba(255, 255, 255, 0.7);
  --text-dim-50: rgba(255, 255, 255, 0.5);
  --text-dim-40: rgba(255, 255, 255, 0.4);
  --text-dim-30: rgba(255, 255, 255, 0.3);
  --zalo-blue: #0068FF;
  --radius-lg: 24px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --max-w: 1180px;
  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Instrument Serif", serif;
}

/* ==========================================================================
   1. Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: #000;
  padding: 10px 16px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ==========================================================================
   2. Header / Nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  display: flex; align-items: center; justify-content: center;
  color: #0A0A0A;
  font-weight: 900;
  font-size: 15px;
}
.brand small {
  display: block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--text-dim-40);
  margin-top: 2px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 14px;
  color: var(--text-dim-70);
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--gold-light); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  padding: 11px 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, opacity 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #14110a;
}
.btn-gold:hover { opacity: 0.92; }
.btn-ghost {
  background: transparent;
  border-color: var(--border-light);
  color: var(--text-dim-70);
}
.btn-ghost:hover { border-color: var(--gold-soft); color: var(--gold-light); }
.btn-lg { padding: 15px 28px; font-size: 15px; border-radius: 14px; }
.btn-block { width: 100%; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  width: 42px; height: 42px;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

/* ==========================================================================
   3. Hero
   ========================================================================== */
.hero {
  position: relative;
  padding: 64px 0 60px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 60% at 70% 0%, rgba(201,168,106,0.18), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--gold-light);
  background: rgba(201,168,106,0.08);
  border: 1px solid var(--gold-soft);
  padding: 8px 14px;
  border-radius: 100px;
}
.hero h1 {
  margin-top: 22px;
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero h1 .accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow .dot-live { margin-right: 2px; }
.hero-lede {
  margin-top: 20px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-dim-70);
  max-width: 560px;
}
.hero-lede strong { color: var(--text); font-weight: 700; }
.hero-ctas {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero-meta {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13px;
  color: var(--text-dim-40);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { color: var(--gold); flex-shrink: 0; }

/* Hero quick-stats row (70% / 3x / 24/7) */
.hero-stats-row {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 32px;
  max-width: 420px;
}
.hero-stats-row strong {
  display: block;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}
.hero-stats-row span {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.4;
  color: var(--text-dim-50);
}

/* Hero mockup panel */
.hero-panel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-panel-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  max-width: 90%;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(232,213,181,0.2), rgba(201,168,106,0.1));
  filter: blur(40px);
  pointer-events: none;
}
.hero-panel {
  position: relative;
  width: 100%;
  max-width: 380px;
  border-radius: 28px;
  background: #151515;
  border: 1px solid var(--border-light);
  padding: 24px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.06);
  overflow: hidden;
}
.hero-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hero-panel-mark {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #14110a;
  font-weight: 900;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-panel-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-dim-70);
  background: #0A0A0A;
  border: 1px solid var(--border-light);
  padding: 5px 12px;
  border-radius: 100px;
}
.hero-panel-tag {
  margin-top: 28px;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-dim-40);
  font-weight: 700;
}
.hero-panel-title {
  margin-top: 8px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
}
.hero-stats {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.hero-stat {
  border-radius: 16px;
  background: #0A0A0A;
  border: 1px solid #1F1F1F;
  padding: 14px;
}
.hero-stat span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--text-dim-40);
}
.hero-stat strong {
  display: block;
  margin-top: 6px;
  font-size: 18px;
  font-weight: 800;
}
.hero-badge-roas {
  position: absolute;
  top: 12px; right: 12px;
  transform: rotate(6deg);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #14110a;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: 100px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-badge-ai {
  position: absolute;
  left: 12px; bottom: 40px;
  background: var(--bg-card-alt);
  border: 1px solid var(--border-light);
  border-radius: 100px;
  padding: 8px 16px 8px 8px;
  font-size: 11px;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.hero-badge-ai-avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #fff;
  color: #000;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-live {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-dim-50);
}
.dot-live {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34,197,94,0.6);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
  70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

/* Trusted-by strip */
.trusted-strip {
  border-top: 1px solid var(--bg-card-deep);
  border-bottom: 1px solid var(--bg-card-deep);
  background: rgba(14,14,14,0.6);
}
.trusted-strip .container {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
  overflow-x: auto;
}
.trusted-strip .trusted-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-dim-30);
  white-space: nowrap;
  flex-shrink: 0;
}
.trusted-strip .trusted-logos {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-shrink: 0;
}
.trusted-strip .trusted-logos span {
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--text-dim-50);
  white-space: nowrap;
}

/* ==========================================================================
   4. Section shell
   ========================================================================== */
section { padding: 64px 0; }
.section-head { max-width: 640px; }
.kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
}
.section-head h2 {
  margin-top: 14px;
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.section-head p {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-dim-50);
}
.section-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.section-head-row h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  line-height: 1.2;
}
.badge-pill {
  font-size: 11px;
  color: var(--text-dim-70);
  background: var(--bg-card-alt);
  border: 1px solid var(--border-light);
  padding: 6px 14px;
  border-radius: 100px;
  white-space: nowrap;
}

/* ==========================================================================
   5. Services grid
   ========================================================================== */
.services-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  position: relative;
  display: block;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 26px;
  transition: border-color 0.2s, transform 0.2s;
}
.service-card:hover { border-color: var(--gold-soft); transform: translateY(-3px); }
.service-card.featured { border-color: var(--gold-soft); background: var(--bg-card-alt); }
.service-badge {
  position: absolute;
  top: 20px; right: 20px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 9px;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #14110a;
}
.service-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--bg-card-alt);
  border: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
}
.service-card h3 {
  margin-top: 18px;
  font-size: 17px;
  font-weight: 700;
}
.service-card p {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-dim-50);
}
.service-status {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-dim-50);
  background: #0A0A0A;
  border: 1px solid #1E1E1E;
  padding: 5px 10px 5px 12px;
  border-radius: 100px;
}
.service-status .dot-live { width: 6px; height: 6px; }

/* ==========================================================================
   6. Ecosystem / Giải pháp pillars
   ========================================================================== */
.pillars {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.pillar-card {
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 28px;
}
.pillar-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--bg-card-alt);
  border: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
}
.pillar-card h3 { margin-top: 20px; font-size: 18px; font-weight: 700; }
.pillar-card > p { margin-top: 8px; font-size: 13.5px; line-height: 1.65; color: var(--text-dim-50); }
.pillar-bullets { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.pillar-bullets li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--text-dim-70);
}
.pillar-bullets svg { color: var(--gold); flex-shrink: 0; }

/* ==========================================================================
   7. Why local section
   ========================================================================== */
.why-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.why-item {
  padding: 22px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-card-deep);
}
.why-item h3 { font-size: 15px; font-weight: 700; }
.why-item p { margin-top: 8px; font-size: 13px; line-height: 1.6; color: var(--text-dim-50); }

/* ==========================================================================
   8. Pricing
   ========================================================================== */
.pricing-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1040px;
}
.price-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  padding: 30px;
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.price-card.highlight {
  background: var(--bg-card-alt);
  border-color: var(--gold-soft);
  transform: scale(1.03);
  position: relative;
}
.price-pill {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 5px 14px;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #14110a;
}
.price-card h3 { font-size: 16px; font-weight: 700; color: var(--text-dim-70); }
.price-amount { margin-top: 14px; display: flex; align-items: baseline; gap: 6px; }
.price-amount strong { font-size: 34px; font-weight: 800; }
.price-amount span { font-size: 12.5px; color: var(--text-dim-40); }
.price-desc { margin-top: 10px; font-size: 13px; color: var(--text-dim-50); }
.price-features { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; flex-grow: 1; }
.price-features li { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; color: var(--text-dim-70); }
.price-features svg { color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.price-card .btn { margin-top: 26px; }

/* ==========================================================================
   9. FAQ
   ========================================================================== */
.faq-list { margin-top: 44px; max-width: 780px; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: 16px; background: var(--bg-card); overflow: hidden; }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 22px;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 20px;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-a {
  padding: 0 22px 20px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-dim-50);
}

/* ==========================================================================
   10. Final CTA
   ========================================================================== */
.cta-band {
  border-radius: 32px;
  background: linear-gradient(135deg, #1A1A1A, #121212);
  border: 1px solid var(--border);
  padding: 64px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 80% at 50% 0%, rgba(201,168,106,0.14), transparent 70%);
}
.cta-band h2 { position: relative; font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; }
.cta-band p { position: relative; margin-top: 14px; font-size: 15px; color: var(--text-dim-50); max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-band .hero-ctas { position: relative; justify-content: center; }

/* ==========================================================================
   11. Footer
   ========================================================================== */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0; }
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-brand .brand { font-size: 15px; }
.footer-brand .brand-mark { width: 30px; height: 30px; font-size: 13px; }
.footer-brand p { margin-top: 10px; font-size: 12px; line-height: 1.7; color: var(--text-dim-40); max-width: 300px; }
.footer-meta { text-align: right; font-size: 11px; line-height: 1.8; color: var(--text-dim-30); }
.footer-meta a { color: inherit; }
.footer-meta a:hover { color: var(--gold-light); }

/* ==========================================================================
   12. Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .services-grid, .pillars { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }
  .price-card.highlight { transform: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-panel { max-width: 480px; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  section { padding: 48px 0; }
  .hero { padding: 48px 0 48px; }
  .services-grid, .pillars, .why-grid { grid-template-columns: 1fr; }
  .footer-grid { flex-direction: column; }
  .footer-meta { text-align: left; }
  .brand small { display: none; }
  .nav-actions .btn-ghost { display: none; }
  .nav { height: auto; min-height: 68px; padding: 12px 0; flex-wrap: nowrap; }

  .site-header.nav-open .nav-links {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: #0A0A0A;
    border-bottom: 1px solid var(--border);
    padding: 20px;
    gap: 18px;
    z-index: 10;
  }
  .site-header.nav-open .nav-links .nav-links-app {
    display: block;
    padding-top: 12px;
    margin-top: 6px;
    border-top: 1px solid var(--border);
    color: var(--gold-light);
  }
}
.nav-links-app { display: none; }

/* ==========================================================================
   13. Auth (đăng nhập)
   ========================================================================== */
.auth-section { padding: 80px 0; min-height: 70vh; display: flex; align-items: center; }
.auth-wrap { display: flex; justify-content: center; }
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.auth-brand { justify-content: center; margin-bottom: 28px; font-size: 17px; }
.auth-card h1 { font-size: 22px; font-weight: 800; text-align: center; }
.auth-sub { margin-top: 8px; font-size: 13.5px; color: var(--text-dim-50); text-align: center; line-height: 1.6; }
.auth-form { margin-top: 26px; display: flex; flex-direction: column; gap: 6px; }
.auth-form label { font-size: 12.5px; color: var(--text-dim-70); margin-top: 12px; }
.auth-form input {
  background: #0A0A0A;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 14px;
  font-family: var(--font);
}
.auth-form input:focus { outline: none; border-color: var(--gold-soft); }
.auth-form .btn { margin-top: 22px; }
.auth-error, .auth-info {
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 18px;
}
.auth-error { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: #fca5a5; }
.auth-info { background: rgba(201,168,106,0.1); border: 1px solid var(--gold-soft); color: var(--gold-light); }
.auth-foot { margin-top: 20px; font-size: 13px; text-align: center; color: var(--text-dim-40); }
.auth-foot a { color: var(--gold-light); }
.auth-modules { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.auth-module-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card-alt);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 700;
  transition: border-color 0.2s;
}
.auth-module-link:hover { border-color: var(--gold-soft); color: var(--gold-light); }

/* ==========================================================================
   14. Admin (quản lý tài khoản)
   ========================================================================== */
.admin-section { padding: 56px 0 96px; }
.admin-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}
.admin-head h1 { margin-top: 10px; font-size: clamp(22px, 3vw, 30px); font-weight: 800; }
.admin-sub { margin-top: 8px; font-size: 13.5px; color: var(--text-dim-50); }
.admin-notice { margin-top: 24px; }
.admin-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.admin-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 20px;
  align-items: start;
}
.admin-card h2 { font-size: 17px; font-weight: 700; }
.admin-form { margin-top: 20px; display: flex; flex-direction: column; gap: 4px; }
.admin-form label { font-size: 12.5px; color: var(--text-dim-70); margin-top: 14px; }
.admin-form input[type="text"], .admin-form input[type="email"], .admin-form select {
  background: #0A0A0A;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 11px 13px;
  color: var(--text);
  font-size: 13.5px;
  font-family: var(--font);
}
.admin-radio-row { margin-top: 10px; display: flex; gap: 16px; }
.admin-radio, .admin-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-dim-70);
  font-weight: 500;
}
.admin-modules-grid { margin-top: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.module-soon { font-size: 10px; color: var(--text-dim-30); }
.admin-form .btn { margin-top: 24px; }
.credentials-card { margin-top: 24px; }
.credentials-card h3 { font-size: 15px; font-weight: 700; }
.credentials-card p { margin-top: 8px; font-size: 13px; color: var(--text-dim-50); }
.credentials-box {
  margin-top: 14px;
  background: #0A0A0A;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 16px;
  font-size: 13px;
  line-height: 1.9;
  white-space: pre-line;
  color: var(--gold-light);
}
.credentials-card .btn { margin-top: 14px; }
.admin-table-wrap { margin-top: 20px; overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th {
  text-align: left;
  padding: 10px 12px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-dim-40);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.admin-table td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: top; white-space: nowrap; }
.admin-table .dim { font-size: 12px; color: var(--text-dim-40); }
.tag-status { font-size: 11px; padding: 4px 10px; border-radius: 100px; font-weight: 700; }
.tag-status.is-active { background: rgba(34,197,94,0.12); color: #4ade80; }
.tag-status.is-paused { background: rgba(255,255,255,0.08); color: var(--text-dim-50); }
.tag-expired { font-size: 10px; color: #f87171; }
.admin-actions { display: flex; gap: 10px; }
.inline-form { display: inline; }
.btn-link {
  background: none;
  border: none;
  color: var(--gold-light);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}
.btn-link:hover { text-decoration: underline; }
.btn-link-danger { color: #f87171; }

@media (max-width: 900px) {
  .admin-grid { grid-template-columns: 1fr; }
}
