:root {
  --bg: #080b12;
  --bg-darker: #05070b;
  --sidebar: #0d111a;
  --panel: #111722;
  --panel2: #151c28;
  --panel3: #182131;
  --line: #232d3e;
  --line-light: #324058;
  --text: #f4f7fb;
  --text-dim: #bac5d6;
  --muted: #8490a5;
  --pink: #ff315f;
  --pink2: #ff5076;
  --pink-glow: rgba(255, 49, 95, 0.35);
  --blue: #3d8bff;
  --blue-glow: rgba(61, 139, 255, 0.3);
  --green: #2ed692;
  --green-glow: rgba(46, 214, 146, 0.3);
  --amber: #ffb547;
  --violet: #9667ff;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-card: 0 16px 40px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
  background-color: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6,
.section-title,
.section-desc,
.hero-title,
.hero-desc,
.feature-title,
.feature-desc,
.download-headline,
.tutorial-title,
.tutorial-desc,
.template-title,
.template-desc {
  text-wrap: balance;
  text-wrap: pretty;
}

.section-desc {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}

body {
  overflow-x: hidden;
  background: radial-gradient(circle at 50% 0%, #15223c 0%, transparent 40%),
              radial-gradient(circle at 90% 20%, #301426 0%, transparent 35%),
              var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #090e17;
}
::-webkit-scrollbar-thumb {
  background: #232f42;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #354763;
}

/* Announcement Bar */
.announcement-bar {
  background: linear-gradient(90deg, #ff315f, #7928ca, #3d8bff);
  color: #fff;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  position: relative;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.announcement-badge {
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header / Navbar */
.header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(8, 11, 18, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  transition: all 0.3s ease;
}
.header.scrolled {
  background: rgba(8, 11, 18, 0.95);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 18px var(--pink-glow);
  border: 1px solid rgba(255, 49, 95, 0.3);
}
.logo-text b {
  display: block;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #fff 40%, #ff6e8e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.logo-text span {
  display: block;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  color: var(--text-dim);
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
  padding: 6px 0;
  position: relative;
}
.nav-links a:hover, .nav-links a.active {
  color: #fff;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--pink);
  transition: width 0.2s;
  border-radius: 2px;
}
.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  border-radius: 10px;
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--pink), #e61042);
  color: #fff;
  box-shadow: 0 6px 20px var(--pink-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(255, 49, 95, 0.5);
  filter: brightness(1.1);
}
.btn-secondary {
  background: var(--panel2);
  border-color: var(--line-light);
  color: var(--text);
}
.btn-secondary:hover {
  background: var(--panel3);
  border-color: #435574;
  transform: translateY(-1px);
}
.btn-zalo {
  background: linear-gradient(135deg, #0088ff, #0056c7);
  color: #fff;
  box-shadow: 0 6px 20px var(--blue-glow);
}
.btn-zalo:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 136, 255, 0.5);
  filter: brightness(1.1);
}
.btn-green {
  background: linear-gradient(135deg, #2ed692, #1bb375);
  color: #071710;
  box-shadow: 0 6px 20px var(--green-glow);
}
.btn-green:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}
.btn-sm {
  padding: 7px 14px;
  font-size: 12px;
  border-radius: 8px;
}
.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: 12px;
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: #fff;
  padding: 8px;
  border-radius: 8px;
  font-size: 20px;
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  padding: 60px 0 70px;
  position: relative;
}
.hero-badge-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 49, 95, 0.12);
  border: 1px solid rgba(255, 49, 95, 0.35);
  border-radius: 30px;
  color: #ff7594;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 24px;
  animation: pulseGlow 3s infinite;
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 10px rgba(255, 49, 95, 0.2); }
  50% { box-shadow: 0 0 25px rgba(255, 49, 95, 0.5); }
}
.status-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  display: inline-block;
}

.hero-title {
  font-size: 46px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 20px;
  max-width: 900px;
}
.hero-title .gradient-text {
  background: linear-gradient(135deg, #ffffff 30%, #ff315f 70%, #ff9e58 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 760px;
  margin-bottom: 34px;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 50px;
}
.stat-pill {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform 0.2s, border-color 0.2s;
}
.stat-pill:hover {
  transform: translateY(-2px);
  border-color: var(--line-light);
}
.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 20px;
  flex-shrink: 0;
}
.stat-icon.pink { background: rgba(255, 49, 95, 0.15); color: #ff5478; }
.stat-icon.blue { background: rgba(61, 139, 255, 0.15); color: #5c9eff; }
.stat-icon.green { background: rgba(46, 214, 146, 0.15); color: #2ed692; }
.stat-icon.amber { background: rgba(255, 181, 71, 0.15); color: #ffb547; }
.stat-info b {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}
.stat-info span {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Tool Mockup Preview */
.tool-preview-wrapper {
  position: relative;
  margin-top: 20px;
}
.preview-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse at center, rgba(255, 49, 95, 0.18) 0%, rgba(61, 139, 255, 0.12) 45%, transparent 70%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}
.mockup-window {
  position: relative;
  z-index: 1;
  background: var(--panel);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.mockup-header {
  height: 42px;
  background: #090e17;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 16px;
  justify-content: space-between;
}
.window-dots {
  display: flex;
  gap: 7px;
}
.window-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}
.window-dots span:nth-child(1) { background: #ff5f56; }
.window-dots span:nth-child(2) { background: #ffbd2e; }
.window-dots span:nth-child(3) { background: #27c93f; }
.mockup-header-title {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.mockup-body {
  position: relative;
  background: #000;
}
.mockup-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Section Header */
.section {
  padding: 80px 0;
  position: relative;
}
.section-header {
  text-align: center;
  max-width: 1050px;
  width: 100%;
  margin: 0 auto 44px;
}
.section-tag {
  display: inline-block;
  color: var(--pink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-title {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  line-height: 1.3;
}
.section-desc {
  color: var(--text-dim);
  font-size: 15px;
  max-width: 950px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: linear-gradient(145deg, #131926, #0d121c);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.feature-card:hover {
  transform: translateY(-5px);
  border-color: #3b4c68;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--pink), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.feature-card:hover::before {
  opacity: 1;
}
.feature-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 24px;
  margin-bottom: 20px;
  background: var(--panel2);
  border: 1px solid var(--line);
}
.feature-card h3 {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 12px;
  color: #fff;
}
.feature-card p {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.65;
}

/* Tool UI Interactive Tour Section */
.tour-tabs, .tour-tabs-wrap {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.tour-tab-btn {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tour-tab-btn:hover {
  color: #fff;
  background: var(--panel2);
  border-color: var(--line-light);
}
.tour-tab-btn.active {
  background: linear-gradient(135deg, var(--pink), #eb174b);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 20px var(--pink-glow);
}
.tour-display-card, .tour-preview-card {
  background: var(--panel);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-card);
}
.tour-preview-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.tour-caption, .tour-caption-desc {
  margin-top: 18px;
  font-size: 14px;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.6;
}
.tour-caption {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--panel2);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
}
.tour-caption-text b {
  display: block;
  font-size: 16px;
  color: #fff;
}
.tour-caption-text span {
  font-size: 13px;
  color: var(--muted);
}

/* Template Marketplace / Hub */
.template-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.category-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.cat-pill {
  padding: 8px 16px;
  border-radius: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.cat-pill:hover {
  background: var(--panel2);
  color: #fff;
}
.cat-pill.active {
  background: var(--blue);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px var(--blue-glow);
}
.template-search {
  position: relative;
  min-width: 280px;
}
.template-search input {
  width: 100%;
  height: 42px;
  background: #090e17;
  border: 1px solid var(--line-light);
  border-radius: 10px;
  padding: 0 16px 0 40px;
  color: #fff;
  font-size: 14px;
  outline: none;
}
.template-search input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 10px var(--blue-glow);
}
.template-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 14px;
}

/* Template Cards Grid */
.templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 26px;
}
.template-card {
  background: linear-gradient(145deg, #121926, #0e141f);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.template-card:hover {
  transform: translateY(-6px);
  border-color: #3b4e6c;
  box-shadow: 0 18px 45px rgba(0,0,0,0.5);
}
.template-thumb-wrap {
  position: relative;
  aspect-ratio: 16/10;
  background: #06090e;
  overflow: hidden;
}
.template-thumb {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
  background: #06090e;
}
.template-card:hover .template-thumb {
  transform: scale(1.05);
}
.template-featured-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #ff315f, #ff7e40);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(255, 49, 95, 0.4);
}
.template-cat-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(14, 21, 33, 0.85);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  color: #b7c7df;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}
.template-info {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.template-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
  color: #fff;
  line-height: 1.35;
}
.template-desc {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 16px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.template-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}
.template-tag {
  background: #151d2c;
  color: #7d8ea5;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
}
.template-meta-row {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
}
.template-actions {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 10px;
}

/* Template Pagination Controls */
.pagination-wrapper {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}
.pagination-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.page-btn {
  background: var(--panel);
  border: 1px solid var(--line-light);
  color: var(--text-dim);
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.page-btn:hover:not(:disabled) {
  background: var(--panel2);
  color: #fff;
  border-color: var(--pink);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255,49,95,0.25);
}
.page-btn.active {
  background: linear-gradient(135deg, var(--pink), #eb174b) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 6px 20px var(--pink-glow) !important;
}
.page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  border-color: var(--line);
}
.pagination-info {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}

/* Template Detail Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 12, 0.85);
  backdrop-filter: blur(12px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.modal-box {
  background: var(--panel);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-xl);
  max-width: 860px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.25s ease;
}
.modal-backdrop.open .modal-box {
  transform: translateY(0);
}
.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--panel2);
  border: 1px solid var(--line);
  color: #fff;
  font-size: 18px;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s;
}
.modal-close-btn:hover {
  background: var(--pink);
}
.modal-content {
  padding: 32px;
}
.modal-head-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  margin-bottom: 28px;
  align-items: start;
}
.modal-thumb {
  width: 100%;
  aspect-ratio: 9/16;
  border-radius: 14px;
  object-fit: contain;
  background: #06090f;
  border: 1px solid var(--line);
}
.modal-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 10px;
}
.modal-desc {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 18px;
  line-height: 1.6;
}
.mapping-table-wrap {
  margin: 24px 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.mapping-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.mapping-table th {
  background: var(--panel2);
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  text-align: left;
  padding: 12px 16px;
}
.mapping-table td {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  color: var(--text);
}
.mapping-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}
.gift-name-col {
  color: #ff6082;
  font-weight: 700;
}
.action-name-col {
  color: #fff;
}
.coins-col {
  color: var(--amber);
  font-weight: 700;
}

/* Download Center Section */
.download-card {
  background: linear-gradient(145deg, #131b28, #0e141f);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-xl);
  padding: 38px;
  box-shadow: var(--shadow-card);
  margin-bottom: 34px;
}
.download-main-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 34px;
  align-items: center;
}
.download-version-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(46, 214, 146, 0.15);
  border: 1px solid rgba(46, 214, 146, 0.4);
  color: var(--green);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 16px;
}
.download-headline {
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 12px;
}
.download-meta {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 24px;
}
.download-buttons-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}
.mirror-links-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}
.mirror-links-box span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.mirror-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* System Requirements & Steps */
.req-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.req-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
}
.req-card h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 18px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}
.req-list {
  list-style: none;
  display: grid;
  gap: 12px;
}
.req-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--panel2);
  border-radius: 8px;
  font-size: 13px;
}
.req-item span { color: var(--muted); }
.req-item b { color: #fff; text-align: right; }

.steps-list {
  display: grid;
  gap: 16px;
}
.step-item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: start;
}
.step-num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--pink), #e61042);
  color: #fff;
  font-weight: 900;
  font-size: 15px;
  display: grid;
  place-items: center;
}
.step-content b {
  display: block;
  font-size: 15px;
  color: #fff;
  margin-bottom: 4px;
}
.step-content p {
  font-size: 13px;
  color: var(--text-dim);
}

/* Community & Zalo Section */
.community-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
}
.community-card {
  background: linear-gradient(145deg, #121927, #0d121c);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}
.community-card:hover {
  transform: translateY(-4px);
  border-color: #3b5072;
}
.community-card.highlight {
  border-color: rgba(0, 136, 255, 0.4);
  background: radial-gradient(circle at 100% 0%, rgba(0, 136, 255, 0.15) 0%, transparent 50%),
              linear-gradient(145deg, #121a2a, #0c121d);
}
.community-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: #5bb3ff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.community-card h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 12px;
  color: #fff;
}
.community-card p {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 24px;
  line-height: 1.6;
}
.zalo-qr-wrap {
  width: 170px;
  height: 170px;
  margin: 0 auto 24px;
  padding: 10px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.zalo-qr-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.community-card .btn {
  margin-top: auto;
  width: 100%;
}

/* FAQ Accordion */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}
.faq-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item.open {
  border-color: #3d5070;
}
.faq-question {
  padding: 18px 22px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  user-select: none;
}
.faq-icon {
  font-size: 18px;
  color: var(--pink);
  transition: transform 0.3s;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 22px;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.7;
}
.faq-item.open .faq-answer {
  max-height: 250px;
  padding: 0 22px 20px;
}

/* Footer */
.footer {
  background: #05070b;
  border-top: 1px solid var(--line);
  padding: 60px 0 30px;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer-brand p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 14px;
  max-width: 320px;
  line-height: 1.6;
}
.footer-col h4 {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 18px;
}
.footer-links {
  list-style: none;
  display: grid;
  gap: 10px;
}
.footer-links a {
  color: var(--muted);
  font-size: 13px;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: #fff;
}
.footer-bottom {
  padding-top: 25px;
  border-top: 1px solid #141b27;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  flex-wrap: wrap;
  gap: 12px;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background: var(--panel2);
  border: 1px solid var(--line-light);
  border-left: 4px solid var(--blue);
  color: #fff;
  padding: 14px 20px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  font-size: 14px;
  font-weight: 600;
  animation: slideInRight 0.3s ease;
  min-width: 280px;
}
.toast.success { border-left-color: var(--green); }
/* Video Tutorial & Detailed Guide Section */
.video-guide-wrapper {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 30px;
  align-items: center;
  background: linear-gradient(145deg, #131c2b, #0d131f);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-xl);
  padding: 30px;
  box-shadow: var(--shadow-card);
  margin-bottom: 45px;
}
.video-frame-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 49, 95, 0.3);
  background: #05080e;
}
.video-frame-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-guide-info {
  display: flex;
  flex-direction: column;
}
.video-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(255, 49, 95, 0.15);
  border: 1px solid rgba(255, 49, 95, 0.3);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  color: var(--pink);
}

/* Tutorial Video Card Styles */
.tutorial-video-card {
  background: var(--panel);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  box-shadow: var(--shadow-card);
  margin-bottom: 48px;
}
.video-container-wrap {
  background: #000;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-responsive-box {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
}
.video-responsive-box iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.tutorial-info-box {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.tutorial-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.tutorial-tag {
  background: rgba(255,49,95,0.15);
  color: var(--pink);
  border: 1px solid rgba(255,49,95,0.3);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.tutorial-duration {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.tutorial-title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.35;
}
.tutorial-desc {
  font-size: 13.5px;
  color: var(--text-dim);
  margin-bottom: 20px;
  line-height: 1.6;
}
.tutorial-timestamps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}
.timestamp-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--panel2);
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
}
.ts-time {
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  flex-shrink: 0;
}
.ts-label {
  color: var(--text-dim);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tutorial-actions-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: auto;
}

.guide-steps-section {
  margin-top: 40px;
}
.guide-steps-title {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 1024px) {
  .tutorial-video-card {
    grid-template-columns: 1fr;
  }
}

/* Detailed Guide Steps Cards */
.guide-steps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.guide-step-card {
  background: linear-gradient(145deg, #121927, #0e141f);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s;
  position: relative;
}
.guide-step-card:hover {
  transform: translateY(-4px);
  border-color: #3b5072;
  box-shadow: 0 14px 35px rgba(0,0,0,0.4);
}
.guide-step-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.guide-step-num {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--pink), #e61042);
  color: #fff;
  font-weight: 900;
  font-size: 18px;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px var(--pink-glow);
  flex-shrink: 0;
}
.guide-step-title-wrap b {
  display: block;
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
}
.guide-step-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: 0.8px;
  margin-top: 2px;
}
.guide-step-body {
  color: var(--text-dim);
  font-size: 13.5px;
  line-height: 1.65;
  margin-bottom: 16px;
}
.guide-points-box {
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-top: auto;
}
.guide-point-item {
  display: flex;
  gap: 8px;
  font-size: 12px;
  color: #c4d3e8;
  margin-bottom: 6px;
  line-height: 1.5;
}
.guide-point-item:last-child {
  margin-bottom: 0;
}
.guide-point-icon {
  color: var(--green);
  font-weight: bold;
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .video-guide-wrapper { grid-template-columns: 1fr; }
  .guide-steps-grid { grid-template-columns: 1fr; }
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-stats-row { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .download-main-grid { grid-template-columns: 1fr; }
  .community-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .hero-title { font-size: 32px; }
  .hero-stats-row { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .req-grid { grid-template-columns: 1fr; }
  .modal-head-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .template-toolbar { flex-direction: column; align-items: stretch; }
  .template-search { width: 100%; }
}
