:root {
  --qkh3-bg-dark: #0a0b10;
  --qkh3-bg-panel: #161824;
  --qkh3-bg-panel-light: #1f2233;
  --qkh3-primary: #220f5c;
  --qkh3-primary-hover: #391c94;
  --qkh3-accent: #66d72a;
  --qkh3-accent-glow: rgba(102, 215, 42, 0.4);
  --qkh3-text-main: #e2e8f0;
  --qkh3-text-muted: #94a3b8;
  --qkh3-border: rgba(255, 255, 255, 0.1);
  --qkh3-radius-playful: 16px 4px 16px 4px;
  --qkh3-radius-sm: 8px;
  --qkh3-font-heading: 'Kanit', sans-serif;
  --qkh3-font-body: 'Inter', sans-serif;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body.qkh3-body {
  font-family: var(--qkh3-font-body);
  background-color: var(--qkh3-bg-dark);
  color: var(--qkh3-text-main);
  line-height: 1.6;
  font-size: 15px;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--qkh3-font-heading);
  color: #fff;
  font-weight: 600;
  line-height: 1.3;
}
a {
  color: var(--qkh3-accent);
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: #fff;
}
.qkh3-dashboard {
  display: flex;
  min-height: 100vh;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
}
.qkh3-sidebar {
  width: 260px;
  background-color: var(--qkh3-bg-panel);
  border-right: 1px solid var(--qkh3-border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  flex-shrink: 0;
  z-index: 40;
}
.qkh3-logo-wrap {
  padding: 24px;
  border-bottom: 1px solid var(--qkh3-border);
}
.qkh3-logo {
  font-family: var(--qkh3-font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--qkh3-accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 0 10px var(--qkh3-accent-glow);
}
.qkh3-nav {
  flex-grow: 1;
  padding: 20px 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.qkh3-nav-link {
  display: block;
  padding: 12px 24px;
  color: var(--qkh3-text-main);
  font-weight: 500;
  border-left: 3px solid transparent;
  font-size: 14px;
}
.qkh3-nav-link:hover, .qkh3-nav-link.active {
  background-color: var(--qkh3-bg-panel-light);
  color: var(--qkh3-accent);
  border-left-color: var(--qkh3-accent);
}
.qkh3-sidebar-promo {
  padding: 20px;
  border-top: 1px solid var(--qkh3-border);
}
.qkh3-promo-text {
  background: linear-gradient(135deg, var(--qkh3-primary), var(--qkh3-primary-hover));
  padding: 12px;
  border-radius: var(--qkh3-radius-playful);
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}
.qkh3-main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.qkh3-topbar {
  background-color: var(--qkh3-bg-panel);
  border-bottom: 1px solid var(--qkh3-border);
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 30;
  width: 100%;
}
.qkh3-ticker-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  background: var(--qkh3-bg-dark);
  border-radius: var(--qkh3-radius-sm);
  border: 1px solid var(--qkh3-border);
  display: flex;
  align-items: center;
}
.qkh3-ticker-track {
  display: flex;
  white-space: nowrap;
  animation: qkh3-ticker 25s linear infinite;
}
.qkh3-ticker-track:hover {
  animation-play-state: paused;
}
.qkh3-ticker-item {
  padding: 8px 20px;
  display: inline-block;
  font-size: 13px;
}
.qkh3-ticker-item a {
  color: var(--qkh3-accent);
}
@keyframes qkh3-ticker {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}
.qkh3-content {
  padding: 32px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.qkh3-hero {
  position: relative;
  border-radius: var(--qkh3-radius-playful);
  overflow: hidden;
  background-color: var(--qkh3-bg-panel);
  display: flex;
  align-items: center;
  min-height: 250px;
  border: 1px solid var(--qkh3-border);
}
.qkh3-hero-img-box {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 1;
}
.qkh3-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}
.qkh3-hero-content {
  position: relative;
  z-index: 2;
  padding: 40px;
  max-width: 800px;
}
.qkh3-hero-title {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 16px;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.qkh3-hero-slogan {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--qkh3-accent);
  font-weight: 500;
}
.qkh3-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.qkh3-stat-card {
  background-color: var(--qkh3-bg-panel);
  padding: 24px;
  border-radius: var(--qkh3-radius-playful);
  border: 1px solid var(--qkh3-border);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.qkh3-stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.4), 0 0 15px var(--qkh3-accent-glow);
  border-color: var(--qkh3-accent);
}
.qkh3-stat-val {
  font-family: var(--qkh3-font-heading);
  font-size: 32px;
  color: var(--qkh3-accent);
  font-weight: 700;
  margin-bottom: 8px;
}
.qkh3-stat-label {
  font-size: 14px;
  color: var(--qkh3-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.qkh3-section-title {
  font-size: 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.qkh3-section-title::before {
  content: '';
  display: block;
  width: 6px;
  height: 24px;
  background-color: var(--qkh3-accent);
  border-radius: 4px;
}
.qkh3-benefits-grid, .qkh3-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.qkh3-benefit-card, .qkh3-step-card {
  background: linear-gradient(180deg, var(--qkh3-bg-panel), var(--qkh3-bg-dark));
  padding: 24px;
  border-radius: var(--qkh3-radius-sm);
  border: 1px solid var(--qkh3-border);
  position: relative;
  overflow: hidden;
}
.qkh3-benefit-title, .qkh3-step-title {
  font-size: 18px;
  margin-bottom: 12px;
  color: #fff;
}
.qkh3-benefit-desc, .qkh3-step-desc {
  font-size: 14px;
  color: var(--qkh3-text-muted);
}
.qkh3-step-num {
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 80px;
  font-weight: 700;
  font-family: var(--qkh3-font-heading);
  color: rgba(255,255,255,0.05);
  line-height: 1;
}
.qkh3-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.qkh3-tabs::-webkit-scrollbar { display: none; }
.qkh3-tab-btn {
  background-color: var(--qkh3-bg-panel);
  color: var(--qkh3-text-main);
  border: 1px solid var(--qkh3-border);
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-family: var(--qkh3-font-body);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.2s;
}
.qkh3-tab-btn.qkh3-active, .qkh3-tab-btn:hover {
  background-color: var(--qkh3-primary);
  border-color: var(--qkh3-accent);
  color: #fff;
}
.qkh3-card-grid, .qkh3-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.qkh3-card {
  display: flex;
  flex-direction: column;
  background-color: var(--qkh3-bg-panel);
  border-radius: var(--qkh3-radius-sm);
  border: 1px solid var(--qkh3-border);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.qkh3-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.5), 0 0 10px var(--qkh3-accent-glow);
  border-color: var(--qkh3-accent);
}
.qkh3-card-img-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background-color: #000;
}
.qkh3-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.qkh3-card:hover .qkh3-card-img {
  transform: scale(1.1);
}
.qkh3-card-body {
  padding: 16px;
  position: relative;
}
.qkh3-card-title {
  font-size: 16px;
  margin-bottom: 4px;
  color: #fff;
}
.qkh3-card-sub {
  font-size: 13px;
  color: var(--qkh3-text-muted);
  margin-bottom: 12px;
}
.qkh3-badge {
  display: inline-block;
  background-color: rgba(102, 215, 42, 0.15);
  color: var(--qkh3-accent);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}
.qkh3-payments-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.qkh3-pay-label {
  background-color: var(--qkh3-bg-panel);
  border: 1px dashed var(--qkh3-border);
  padding: 12px 20px;
  border-radius: var(--qkh3-radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--qkh3-text-main);
  flex: 1 1 calc(25% - 12px);
  text-align: center;
  min-width: 160px;
}
.qkh3-article-wrap {
  background-color: var(--qkh3-bg-panel);
  padding: 32px;
  border-radius: var(--qkh3-radius-playful);
  border: 1px solid var(--qkh3-border);
}
.qkh3-article {
  font-size: 16px;
  line-height: 1.8;
  color: #cbd5e1;
}
.qkh3-article h2, .qkh3-article h3, .qkh3-article h4 {
  color: #fff;
  margin: 28px 0 16px;
}
.qkh3-article h2 { font-size: 26px; border-bottom: 1px solid var(--qkh3-border); padding-bottom: 10px; }
.qkh3-article h3 { font-size: 22px; }
.qkh3-article p { margin-bottom: 16px; }
.qkh3-article ul, .qkh3-article ol {
  margin: 0 0 16px 24px;
  padding: 0;
}
.qkh3-article li { margin-bottom: 8px; }
.qkh3-article table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}
.qkh3-article th, .qkh3-article td {
  border: 1px solid var(--qkh3-border);
  padding: 12px;
  text-align: left;
}
.qkh3-article th { background-color: var(--qkh3-bg-panel-light); color: var(--qkh3-accent); }
.qkh3-article blockquote {
  border-left: 4px solid var(--qkh3-accent);
  padding: 16px 20px;
  margin: 0 0 24px;
  background-color: var(--qkh3-bg-panel-light);
  font-style: italic;
}
.qkh3-article img {
  max-width: 100%;
  height: auto;
  border-radius: var(--qkh3-radius-sm);
  margin-bottom: 16px;
}
.qkh3-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 13px;
}
.qkh3-crumb {
  color: var(--qkh3-text-muted);
}
.qkh3-crumb:not(:last-child)::after {
  content: '/';
  margin-left: 8px;
  color: var(--qkh3-border);
}
.qkh3-crumb:last-child {
  color: var(--qkh3-accent);
  pointer-events: none;
}
.qkh3-page-header {
  margin-bottom: 32px;
}
.qkh3-page-title {
  font-size: clamp(28px, 4vw, 36px);
  margin-bottom: 12px;
  color: #fff;
}
.qkh3-meta-desc {
  font-size: 16px;
  color: var(--qkh3-text-muted);
}
.qkh3-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.qkh3-faq-item {
  background-color: var(--qkh3-bg-panel);
  border: 1px solid var(--qkh3-border);
  border-radius: var(--qkh3-radius-sm);
  overflow: hidden;
}
.qkh3-faq-q {
  padding: 16px 20px;
  font-weight: 600;
  font-size: 16px;
  color: #fff;
  cursor: pointer;
  list-style: none;
  position: relative;
  background-color: var(--qkh3-bg-panel-light);
}
.qkh3-faq-q::-webkit-details-marker { display: none; }
.qkh3-faq-q::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--qkh3-accent);
}
.qkh3-faq-item[open] .qkh3-faq-q::after { content: '-'; }
.qkh3-faq-a {
  padding: 16px 20px;
  font-size: 15px;
  color: var(--qkh3-text-main);
  border-top: 1px solid var(--qkh3-border);
}
.qkh3-pagination {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 32px 0;
}
.qkh3-pager-btn {
  background-color: var(--qkh3-bg-panel);
  border: 1px solid var(--qkh3-border);
  padding: 10px 20px;
  border-radius: var(--qkh3-radius-sm);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}
.qkh3-pager-btn:hover {
  background-color: var(--qkh3-primary);
  border-color: var(--qkh3-accent);
}
.qkh3-footer {
  background-color: #050508;
  border-top: 1px solid var(--qkh3-border);
  padding: 40px 32px 24px;
  margin-top: auto;
}
.qkh3-footer-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  margin-bottom: 32px;
}
.qkh3-footer-desc {
  font-size: 14px;
  color: var(--qkh3-text-muted);
  margin-top: 16px;
  max-width: 300px;
}
.qkh3-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
}
.qkh3-footer-links a {
  font-size: 14px;
  color: var(--qkh3-text-muted);
}
.qkh3-footer-links a:hover {
  color: var(--qkh3-accent);
}
.qkh3-legal {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 12px;
  color: #64748b;
}
.qkh3-legal p { margin-bottom: 8px; }
.qkh3-anim { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.qkh3-anim.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .qkh3-dashboard { flex-direction: column; }
  .qkh3-sidebar {
    width: 100%; height: auto; position: relative;
    border-right: none; border-bottom: 1px solid var(--qkh3-border);
  }
  .qkh3-nav {
    flex-direction: row;
    overflow-x: auto;
    padding: 10px 16px;
    white-space: nowrap;
    scrollbar-width: none;
  }
  .qkh3-nav::-webkit-scrollbar { display: none; }
  .qkh3-nav-link {
    border-left: none;
    border-bottom: 3px solid transparent;
    padding: 8px 16px;
  }
  .qkh3-nav-link:hover, .qkh3-nav-link.active {
    border-bottom-color: var(--qkh3-accent);
  }
  .qkh3-sidebar-promo { display: none; }
  .qkh3-footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .qkh3-content { padding: 16px; gap: 24px; }
  .qkh3-hero-content { padding: 24px; }
  .qkh3-stat-card { padding: 16px; }
  .qkh3-article-wrap { padding: 20px; }
  .qkh3-footer { padding: 32px 16px 24px; }
}
