:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-card: rgba(17, 24, 39, 0.75);
  --bg-card-hover: rgba(31, 41, 55, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: #8b5cf6;
  --text-primary: #f9fafb;
  --text-secondary: #9ca3af;
  --text-muted: #94a3b8;
  --accent-purple: #8b5cf6;
  --accent-purple-light: #a78bfa;
  --accent-orange: #f97316;
  --accent-green: #10b981;
  --accent-blue: #3b82f6;
  --accent-amber: #f59e0b;
  --accent-red: #ef4444;
  --gradient-brand: linear-gradient(135deg, #f97316 0%, #ec4899 50%, #8b5cf6 100%);
  --gradient-glow: radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.15), transparent 70%);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-elevation: 0 16px 36px -8px rgba(0, 0, 0, 0.6);
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}

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

:focus-visible {
  outline: 2px solid var(--accent-purple);
  outline-offset: 2px;
}

::selection {
  background: rgba(139, 92, 246, 0.4);
  color: #f9fafb;
}

/* CUSTOM ACCENT SCROLLBAR */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #0a0e17;
}
::-webkit-scrollbar-thumb {
  background: #1f2937;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
::-webkit-scrollbar-thumb:hover {
  background: #374151;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  background-image: var(--gradient-glow);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

html.drawer-open,
body.drawer-open,
body.modal-open {
  overflow: hidden;
}

code {
  word-break: break-all;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

h1, h2, h3, h4 {
  text-wrap: balance;
  overflow-wrap: break-word;
}

a {
  color: var(--accent-purple-light);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: #fff;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section, main {
  scroll-margin-top: 84px;
}

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(10, 14, 23, 0.92);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.25s ease;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  max-width: 1280px;
  gap: 16px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.12rem;
  color: #fff;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.brand-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: rgba(139, 92, 246, 0.16);
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: var(--accent-purple-light);
  letter-spacing: 0.03em;
}

.brand-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-brand);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-cta .btn-sm {
  border-radius: 9999px;
}

.btn-nav-home {
  display: inline-flex;
}

/* MOBILE TOGGLE BUTTON */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 8px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.hamburger-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: #f9fafb;
  border-radius: var(--radius-full);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* MOBILE DRAWER & BACKDROP */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.mobile-nav-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 86vw);
  max-width: 100vw;
  background: #0d131f;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.7);
  z-index: 1000;
  visibility: hidden;
  transform: translate3d(100%, 0, 0);
  -webkit-transform: translate3d(100%, 0, 0);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav-drawer.active {
  visibility: visible;
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
}

@media (min-width: 1141px) {
  .mobile-nav-drawer,
  .mobile-nav-backdrop {
    display: none !important;
  }
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-color);
}

.btn-close-drawer {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-close-drawer:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.05);
}

.mobile-nav-body {
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex-grow: 1;
}

.mobile-auth-section,
#mobileNavAuth {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.mobile-user-card {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.85) 100%);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  width: 100%;
  box-sizing: border-box;
}

.mobile-user-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mobile-user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.mobile-user-header .user-nav-avatar {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  border: 2px solid rgba(139, 92, 246, 0.35);
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.mobile-user-header img.user-nav-avatar {
  object-fit: cover;
}

.mobile-user-info {
  min-width: 0;
  flex: 1;
}

.mobile-user-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: #ffffff;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-user-email {
  font-size: 0.76rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.btn-mobile-logout {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #fca5a5;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 5px 9px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-mobile-logout:hover {
  background: rgba(239, 68, 68, 0.22);
  border-color: #ef4444;
  color: #ffffff;
}

.mobile-user-badges,
#mobile-user-badges {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  flex-wrap: wrap;
}

.mobile-credit-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.credit-badge-icon {
  font-size: 1.15rem;
  line-height: 1;
  filter: drop-shadow(0 0 6px rgba(167, 139, 250, 0.5));
}

.credit-badge-text {
  display: flex;
  flex-direction: column;
}

.credit-badge-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  line-height: 1.2;
}

.credit-badge-val {
  font-size: 0.9rem;
  font-weight: 700;
  color: #c4b5fd;
  line-height: 1.2;
}

.mobile-credit-badge.admin .credit-badge-val {
  color: #facc15;
}

.btn-mobile-shortcut {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.btn-mobile-buy {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-mobile-buy:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  color: #ffffff !important;
}

.btn-mobile-admin {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-mobile-admin:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  color: #ffffff !important;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0;
  margin: 0;
}

.mobile-nav-link {
  display: block;
  padding: 12px 14px;
  color: var(--text-primary);
  font-size: 0.98rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.02);
}

.mobile-nav-link:hover,
.mobile-nav-link:focus {
  background: rgba(139, 92, 246, 0.14);
  color: var(--accent-purple-light);
  transform: translateX(4px);
}

.mobile-nav-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--border-color);
}

.mobile-lang-switch {
  width: 100%;
  display: flex;
}

.mobile-lang-switch .btn-lang-web {
  flex: 1;
  justify-content: center;
  padding: 8px 12px;
  font-size: 0.85rem;
}

.btn-mobile-cta {
  width: 100% !important;
  justify-content: center !important;
  padding: 12px 20px !important;
  border-radius: 9999px !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  line-height: 1.4;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn-mobile-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.5);
  color: #fff;
}

/* LANGUAGE SWITCHER */
.lang-switch-web {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  padding: 3px;
  gap: 3px;
}

.btn-lang-web {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-family);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-lang-web:hover {
  color: #fff;
}

.btn-lang-web.active {
  background: #7c3aed;
  color: #fff;
  border: 1px solid rgba(167, 139, 250, 0.4);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

/* BILINGUAL CONDITIONAL VIEWS */
html[lang="vi"] .lang-view.lang-en {
  display: none !important;
}

html[lang="en"] .lang-view.lang-vi {
  display: none !important;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

/* HERO SECTION */
.hero {
  padding: clamp(48px, 8vw, 84px) 0 clamp(40px, 6vw, 64px);
  text-align: center;
  position: relative;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px clamp(12px, 3vw, 18px);
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 999px;
  font-size: clamp(0.75rem, 2vw, 0.85rem);
  font-weight: 600;
  color: var(--accent-purple-light);
  margin-bottom: clamp(16px, 3vw, 24px);
  max-width: 100%;
  word-break: break-word;
  line-height: 1.4;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.22;
  margin-bottom: clamp(16px, 3vw, 24px);
  letter-spacing: -0.02em;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.hero-title-highlight,
.gradient-text {
  color: var(--accent-purple-light);
  display: inline-block;
}

.hero p {
  font-size: clamp(0.92rem, 2vw, 1.12rem);
  color: var(--text-secondary);
  max-width: 740px;
  margin: 0 auto clamp(24px, 4vw, 36px);
  line-height: 1.65;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: clamp(32px, 5vw, 48px);
  flex-wrap: wrap;
}

.trust-badges,
#trust-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 2vw, 16px);
  color: var(--text-muted);
  font-size: clamp(0.82rem, 1.8vw, 0.88rem);
  flex-wrap: wrap;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: 9999px;
  color: var(--text-secondary);
  white-space: nowrap;
  min-height: 36px;
  box-sizing: border-box;
}

.trust-item span {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

/* LIVE SHOWCASE COMPARISON SECTION */
.showcase-section {
  padding: clamp(40px, 6vw, 70px) 0;
  position: relative;
}

.showcase-header {
  text-align: center;
  margin-bottom: clamp(28px, 4.5vw, 44px);
}

.showcase-title {
  font-size: clamp(1.35rem, 3.8vw, 2.35rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.showcase-subtitle {
  color: var(--text-muted);
  font-size: clamp(0.92rem, 2vw, 1.05rem);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 32px);
  width: 100%;
}

.comparison-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.5vw, 36px);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
  word-break: break-word;
  overflow-wrap: break-word;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.comparison-card:hover {
  transform: translateY(-3px);
}

.comparison-card.bad {
  border-color: rgba(239, 68, 68, 0.35);
}

.comparison-card.good {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: var(--shadow-card);
}

.comp-badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  max-width: 100%;
  word-break: break-word;
}

.comp-badge.bad {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

.comp-badge.good {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.comp-row {
  margin-bottom: 14px;
}

.comp-row:last-child {
  margin-bottom: 0;
}

.comp-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.comp-content {
  font-size: 0.88rem;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
  padding: 12px;
  border-radius: var(--radius-sm);
  line-height: 1.5;
  font-family: monospace;
  word-break: break-word;
  overflow-wrap: break-word;
}

.diff-bad-text {
  color: #fca5a5;
}

.diff-good-text {
  color: #34d399;
}

/* FEATURES SECTION */
.features {
  padding: clamp(40px, 6vw, 70px) 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: clamp(32px, 5vw, 48px);
}

.section-title h1,
.section-title h2 {
  font-size: clamp(1.6rem, 3.8vw, 2.35rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.section-title p {
  color: var(--text-secondary);
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(16px, 2.5vw, 24px);
  width: 100%;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-sizing: border-box;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.feature-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.feature-icon {
  font-size: 1.5rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 0;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0;
  line-height: 1.3;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0;
}

/* FAQ SECTION */
.faq-section {
  padding: clamp(48px, 6vw, 80px) 0;
  position: relative;
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.faq-card {
  padding: 24px;
}

.faq-card h3,
.faq-card h4 {
  font-size: clamp(1.02rem, 2.5vw, 1.15rem);
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}

.faq-card p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.65;
}

/* PRICING SECTION */
.pricing {
  padding: clamp(48px, 7vw, 84px) 0;
  position: relative;
}

.user-auth-indicator,
#userAuthIndicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.75) 0%, rgba(15, 23, 42, 0.88) 100%);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  max-width: 660px;
  width: 100%;
  margin: 0 auto 32px;
  font-size: 0.88rem;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-sizing: border-box;
}

.auth-indicator-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.auth-indicator-user {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1;
}

.auth-status-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: #10b981;
  border: 1.5px solid rgba(16, 185, 129, 0.5);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
  display: inline-block;
}

.auth-indicator-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}

.auth-indicator-email {
  color: #e2e8f0;
  font-size: 0.86rem;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  line-height: 1.35;
  min-width: 0;
}

.auth-indicator-email strong {
  color: #fff;
  font-weight: 600;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.auth-indicator-label {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  flex-shrink: 0;
}

.auth-indicator-balance {
  display: inline-flex;
  align-items: center;
}

.balance-tag {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: #c4b5fd;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  line-height: 1.3;
}

.balance-tag strong {
  color: #fff;
  font-weight: 700;
}

.auth-indicator-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.auth-indicator-actions .btn-admin-shortcut {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  white-space: nowrap;
}

.auth-indicator-actions .btn-admin-shortcut:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-web-logout {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.btn-web-logout:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #ffffff;
  border-color: #ef4444;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.auth-indicator-guest {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  color: var(--text-secondary);
  font-size: 0.88rem;
  text-align: center;
  padding: 4px 0;
  line-height: 1.5;
}

.auth-indicator-guest a {
  color: var(--accent-purple-light);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.auth-indicator-guest a:hover {
  color: #c4b5fd;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(24px, 3vw, 32px);
  margin-bottom: 32px;
  padding-top: 16px;
  width: 100%;
}

.pricing-loading {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  padding: 40px;
}

.pricing-card,
#pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 36px) clamp(18px, 3vw, 24px) clamp(22px, 3vw, 28px);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  backdrop-filter: blur(14px);
  box-sizing: border-box;
  width: 100%;
}

.pricing-card:hover {
  border-color: rgba(139, 92, 246, 0.45);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.6);
}

.pricing-card.popular {
  border-color: rgba(139, 92, 246, 0.5);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.12) 0%, rgba(17, 24, 39, 0.85) 100%);
  box-shadow: 0 8px 32px -4px rgba(0, 0, 0, 0.5);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-brand);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 90%;
  text-overflow: ellipsis;
  overflow: hidden;
}

.pricing-name,
.pkg-title {
  font-size: clamp(1.2rem, 2.5vw, 1.35rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.pricing-price-wrap,
.pkg-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 2px;
}

.pricing-price,
.pkg-price {
  font-size: clamp(2.4rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1;
  color: #fff;
  letter-spacing: -0.02em;
}

.pricing-unit,
.pkg-unit {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.pricing-credits,
.pkg-credits {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-purple-light);
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 8px;
  padding: 5px 10px;
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
}

.pricing-features,
.pkg-features {
  list-style: none;
  padding: 0;
  margin: 0 0 26px 0;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.pricing-features li,
.pkg-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.45;
  list-style: none;
}

.pricing-features li::marker,
.pkg-features li::marker {
  content: "";
}

.feature-check {
  color: var(--accent-green);
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1.45;
}

.feature-text {
  flex: 1;
}

.paypal-button-container {
  width: 100%;
  min-height: 48px;
  margin-top: auto;
  overflow: hidden;
  border-radius: 8px;
}

.pricing-guarantee {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 24px;
  line-height: 1.5;
}

/* PRICING TRUST CARD */
.pricing-trust-card {
  max-width: 680px;
  margin: 40px auto 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
}

.pricing-trust-title {
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
  line-height: 1.3;
}

.pricing-trust-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0;
}

/* POLICY PAGES */
.policy-content {
  max-width: 840px;
  margin: 60px auto 100px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-card);
  overflow-wrap: break-word;
  word-break: break-word;
}

.policy-content h1 {
  font-size: clamp(1.75rem, 4.5vw, 2.3rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.policy-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.policy-content h2 {
  font-size: clamp(1.35rem, 3.5vw, 1.6rem);
  font-weight: 700;
  line-height: 1.35;
  margin: 32px 0 12px;
  color: var(--accent-purple-light);
  text-wrap: balance;
  overflow-wrap: break-word;
}

.policy-content p, .policy-content ul {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.policy-content code,
.policy-content a {
  word-break: break-all;
  overflow-wrap: anywhere;
}

.policy-content ul {
  padding-left: 24px;
}

.policy-content li {
  margin-bottom: 8px;
}

/* FOOTER */
.footer {
  border-top: 1px solid var(--border-color);
  background: rgba(10, 14, 23, 0.95);
  padding: 60px 0 32px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 12px;
  max-width: 380px;
}

.footer-col h3,
.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 16px;
}

/* MODAL */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 480px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.modal-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.modal-title {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.modal-desc {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.modal-title-warning {
  color: var(--accent-amber);
}

.modal-title-error {
  color: var(--accent-red);
}

.auth-modal-desc {
  line-height: 1.6;
  text-align: left;
  margin: 16px 0 24px;
  font-size: 0.95rem;
}

.auth-prompt-highlight {
  margin-bottom: 12px;
  font-weight: 500;
  color: #f8fafc;
  text-align: center;
}

.auth-steps-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.auth-step-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
}

.auth-step-row:not(:last-child) {
  margin-bottom: 8px;
}

.modal-actions-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  width: 100%;
}

/* ==========================================================================
   NAVBAR AUTH GROUP & LOGIN BUTTONS
   ========================================================================== */
.nav-auth-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-web-login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(99, 102, 241, 0.25));
  border: 1px solid rgba(139, 92, 246, 0.55);
  color: #ede9fe;
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  line-height: 1.35;
}

.btn-web-login:hover {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.45), rgba(99, 102, 241, 0.45));
  border-color: #a78bfa;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.btn-nav-install {
  border-radius: var(--radius-full) !important;
  padding: 6px 18px !important;
  font-size: 0.86rem !important;
  font-weight: 700 !important;
  line-height: 1.35;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
  white-space: nowrap;
}

.btn-nav-install:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.mobile-auth-section .btn-web-login,
#btnMobileLogin {
  width: 100% !important;
  justify-content: center !important;
  padding: 12px 20px !important;
  border-radius: 9999px !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
}

.user-nav-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.85rem;
}

.user-nav-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  background: #374151;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: bold;
}

.user-nav-email {
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #e2e8f0;
}

.user-role-badge {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.user-role-badge.admin {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: var(--accent-amber);
}

.user-role-badge.credits {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #a78bfa;
}

.btn-admin-shortcut {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-admin-shortcut:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  color: #fff !important;
}

.btn-buy-shortcut {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6ee7b7 !important;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 9999px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-buy-shortcut:hover {
  background: rgba(16, 185, 129, 0.3);
  border-color: #10b981;
  color: #fff !important;
}

.btn-logout-icon {
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 9999px;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.btn-logout-icon:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: #f87171;
}

/* ==========================================================================
   WEB LOGIN MODAL
   ========================================================================== */
.login-modal-card {
  max-width: 440px;
  width: 90%;
  background: #111827;
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
  position: relative;
}

.btn-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.25rem;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-modal-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.google-btn-container {
  margin: 20px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}

.btn-google-custom {
  width: 100%;
  max-width: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fff;
  color: #1f2937;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.btn-google-custom:hover {
  background: #f8fafc;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

.dev-login-box {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  text-align: left;
}

.dev-login-title {
  font-size: 0.8rem;
  color: #94a3b8;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dev-login-form {
  display: flex;
  gap: 8px;
}

.dev-login-input {
  flex: 1;
  background: #1f2937;
  border: 1px solid #374151;
  color: #f9fafb;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}

.dev-login-input:focus {
  outline: none;
  border-color: #8b5cf6;
}

/* ==========================================================================
   ADMIN PORTAL DASHBOARD STYLES
   ========================================================================== */
.admin-body {
  background-color: #0b0f19;
  min-height: 100vh;
}

.admin-header-bar {
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}

.admin-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.admin-brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* SR-ONLY ACCESSIBILITY UTILITY */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.admin-header-actions .btn-sm {
  border-radius: 9999px;
  padding: 5px 14px;
}

.admin-badge-super {
  background: linear-gradient(135deg, #7c3aed, #be185d);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.5px;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* KPI CARDS GRID */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.kpi-card {
  background: #111827;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
}

.kpi-card:hover {
  border-color: rgba(139, 92, 246, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

.kpi-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.kpi-title {
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.kpi-icon {
  font-size: 1.35rem;
}

.kpi-value {
  font-size: clamp(1.7rem, 2.2vw, 2.2rem);
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.1;
  margin-bottom: 8px;
}

.kpi-value.green {
  color: var(--accent-green);
}

.kpi-value.blue {
  color: var(--accent-blue);
}

.kpi-value.amber {
  color: var(--accent-amber);
}

.kpi-sub {
  font-size: 0.8rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.kpi-sub-pill {
  padding: 2px 7px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.78rem;
  white-space: nowrap;
}

.kpi-sub-pill.green {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.kpi-sub-pill.yellow {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

.kpi-sub-pill.red {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

.kpi-sub-pill.purple {
  background: rgba(139, 92, 246, 0.15);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.25);
}

.kpi-sub-pill.blue {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

/* VPS KPI Card Refinement */
.vps-hero-value {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: clamp(1.65rem, 2.1vw, 2.15rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 8px;
  white-space: nowrap;
}

.vps-metric-label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: #fbbf24;
  opacity: 0.9;
  text-transform: uppercase;
}

.vps-spec-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  font-size: 0.7rem;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0.2px;
  border-radius: 6px;
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
  vertical-align: middle;
}

.vps-sub-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  width: 100%;
}

.vps-sub-row .kpi-sub-pill {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  padding: 2px 6px;
  font-size: 0.74rem;
}

.admin-main-container {
  padding: 24px 20px 60px;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}

/* SYSTEM STATUS ROW */
.system-status-row {
  background: rgba(17, 24, 39, 0.75);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
  width: 100%;
  max-width: 100%;
}

.status-indicator-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  white-space: nowrap;
}

.status-dot-sm {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  display: inline-block;
  flex-shrink: 0;
}

.status-dot-sm.online {
  background: #10b981;
  border: 1.5px solid rgba(16, 185, 129, 0.5);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.status-dot-sm.warning {
  background: #f59e0b;
  border: 1.5px solid rgba(245, 158, 11, 0.5);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* ADMIN TABS */
.admin-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 6px;
  width: 100%;
  max-width: 100%;
}

.admin-tabs::-webkit-scrollbar {
  display: none;
}

.admin-tab-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.admin-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.admin-tab-btn.active {
  color: #fff;
  background: rgba(139, 92, 246, 0.18);
  box-shadow: inset 0 -2px 0 #8b5cf6;
}

.admin-tab-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

/* DATA TABLES & LISTS */
.admin-card {
  background: #111827;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.admin-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
  max-width: 100%;
}

.admin-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  line-height: 1.35;
}

.admin-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 100%;
}

.admin-filter-btn {
  background: #1f2937;
  border: 1px solid #374151;
  color: #94a3b8;
  font-size: 0.8rem;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-filter-btn:hover,
.admin-filter-btn.active {
  background: #374151;
  color: #fff;
  border-color: #8b5cf6;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.admin-table th {
  background: rgba(31, 41, 55, 0.5);
  color: #94a3b8;
  padding: 12px 14px;
  font-weight: 600;
  border-bottom: 1px solid var(--border-color);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.admin-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
}

.admin-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.badge-status {
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.76rem;
  display: inline-block;
}

.badge-status.s200 { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.badge-status.s400 { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.badge-status.s500 { background: rgba(239, 68, 68, 0.15); color: #f87171; }

.badge-method {
  font-weight: 800;
  font-size: 0.76rem;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

.badge-method.GET { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.badge-method.POST { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.badge-method.PUT { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.badge-method.DELETE { background: rgba(239, 68, 68, 0.2); color: #f87171; }

/* ADMIN TRUNCATION & TAP-TO-VIEW HELPERS */
.cell-truncate {
  display: inline-block;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

.cell-clickable {
  cursor: pointer;
  position: relative;
  transition: color 0.15s ease, opacity 0.15s ease;
  user-select: none;
}

.cell-clickable:hover {
  color: #38bdf8 !important;
  text-decoration: underline dotted;
}

.cell-clickable:active {
  opacity: 0.7;
}

.cell-clickable-activity {
  cursor: pointer;
}

.cell-clickable-activity:hover {
  border-color: rgba(139, 92, 246, 0.4);
  background: rgba(31, 41, 55, 0.75);
}

.user-actions-row {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.btn-xs {
  padding: 3px 6px;
  font-size: 0.76rem;
  line-height: 1.25;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

/* ACTIVITY TIMELINE */
.activity-timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 16px;
  background: rgba(31, 41, 55, 0.4);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.activity-item:hover {
  background: rgba(31, 41, 55, 0.7);
  border-color: rgba(139, 92, 246, 0.3);
}

.activity-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #1f2937;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.activity-content {
  flex: 1;
}

.activity-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.activity-title {
  font-weight: 600;
  color: #f8fafc;
  font-size: 0.92rem;
}

.activity-time {
  font-size: 0.76rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.activity-detail {
  font-size: 0.84rem;
  color: #94a3b8;
}

/* ACCESS DENIED OVERLAY */
.access-denied-box {
  max-width: 500px;
  margin: 80px auto;
  text-align: center;
  background: #111827;
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
}

.access-denied-icon {
  font-size: 3.25rem;
  margin-bottom: 16px;
}

.access-denied-title {
  margin-bottom: 12px;
  color: var(--accent-red);
}

/* ==========================================================================
   RESPONSIVE DESIGN SYSTEM (MOBILE-FIRST BREAKPOINTS)
   ========================================================================== */

/* Laptops & Intermediate Desktop (<= 1280px) */
@media (max-width: 1280px) {
  .btn-nav-install {
    display: none !important;
  }
  .user-nav-email {
    max-width: 90px;
  }
}

/* Small Laptop & Tablet Landscape (<= 1140px) */
@media (max-width: 1140px) {
  .nav-links {
    display: none !important;
  }
  .nav-toggle {
    display: flex !important;
  }
}

/* Tablet Landscape (<= 1024px) */
@media (max-width: 1024px) {
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

/* Tablet & Intermediate Screens (<= 860px) */
@media (max-width: 860px) {
  .btn-nav-home {
    display: none !important;
  }
  .user-nav-email {
    display: none !important;
  }
  .btn-admin-shortcut span[data-i18n="nav.dashboard"] {
    display: none !important;
  }
  .btn-admin-shortcut {
    padding: 6px 10px;
  }
  .comparison-grid {
    grid-template-columns: 1fr;
  }
}

/* Tablet Portrait & Mobile (<= 768px) */
@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 16px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .admin-header-bar {
    padding: 10px 0;
  }
  .admin-header-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 16px;
    width: 100%;
  }
  .admin-brand-group {
    width: auto;
    gap: 8px;
    flex-shrink: 0;
  }
  .admin-brand-group .nav-brand span {
    font-size: 1.05rem !important;
  }
  .admin-badge-super {
    display: none !important;
  }
  .admin-header-actions {
    width: auto;
    gap: 8px;
    flex-shrink: 0;
    justify-content: flex-end;
  }
  .admin-header-actions .lang-switch-web {
    display: none !important;
  }
  .admin-header-actions .user-nav-chip {
    max-width: 100%;
    padding: 4px 8px;
    gap: 6px;
    flex-shrink: 0;
  }
  .admin-header-actions .user-nav-email {
    display: none !important;
  }
  .admin-main-container {
    padding: 18px 16px 48px;
  }
  .policy-content {
    padding: clamp(20px, 4vw, 32px);
    margin: 32px auto 60px;
  }
}

/* Mobile Standard (<= 640px) */
@media (max-width: 640px) {
  .container {
    padding: 0 20px;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 16px;
  }
  .admin-main-container {
    padding: 12px 10px 48px;
  }
  .admin-header-bar {
    padding: 10px 0;
  }
  .admin-header-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 12px;
    width: 100%;
  }
  .admin-brand-group {
    width: auto;
    flex-shrink: 0;
  }
  .admin-brand-group .nav-brand span {
    font-size: 0.98rem !important;
  }
  .admin-badge-super {
    display: none !important;
  }
  .admin-header-actions {
    width: auto;
    gap: 6px;
    flex-shrink: 0;
  }
  .admin-header-actions .lang-switch-web {
    display: none !important;
  }
  .admin-header-actions .user-nav-email {
    display: none !important;
  }
  .admin-header-actions .user-nav-chip {
    flex-shrink: 0;
    padding: 3px 6px;
    gap: 5px;
  }
  .navbar .container {
    min-height: 64px;
  }
  .nav-cta .lang-switch-web {
    display: none !important;
  }
  .nav-cta #navAuthGroup {
    display: none !important;
  }
  .nav-cta .btn-nav-home {
    display: none !important;
  }
  .user-auth-indicator,
  #userAuthIndicator {
    padding: 14px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
  }
  .auth-indicator-content {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .auth-indicator-user {
    width: 100%;
  }
  .auth-indicator-info {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .auth-indicator-email {
    width: 100%;
    font-size: 0.84rem;
  }
  .auth-indicator-email strong {
    max-width: none;
    overflow: visible;
    text-overflow: unset;
    white-space: normal;
    word-break: break-word;
  }
  .auth-indicator-actions {
    width: 100%;
    display: flex;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  .auth-indicator-actions .btn-admin-shortcut,
  .auth-indicator-actions .btn-web-logout {
    flex: 1;
    justify-content: center;
    padding: 8px 12px;
    font-size: 0.8rem;
    min-height: 38px;
  }
  .system-status-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px 10px;
    margin-bottom: 12px;
  }
  .status-indicator-item {
    font-size: 0.76rem;
    white-space: normal;
  }
  .admin-tabs {
    gap: 4px;
    margin-bottom: 12px;
    padding-bottom: 4px;
  }
  .admin-tab-btn {
    padding: 6px 10px;
    font-size: 0.76rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    gap: 4px;
  }
  .admin-card {
    padding: 12px 10px;
    overflow: hidden;
    border-radius: var(--radius-md);
  }
  .admin-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
    width: 100%;
  }
  .admin-card-title {
    font-size: 0.86rem;
  }
  .admin-card-title span {
    font-size: 0.86rem;
  }
  .admin-filter-bar {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scrollbar-width: none;
    flex-wrap: nowrap;
    gap: 4px;
  }
  .admin-filter-bar::-webkit-scrollbar {
    display: none;
  }
  .admin-filter-btn {
    flex-shrink: 0;
    padding: 3px 8px;
    font-size: 0.76rem;
    border-radius: var(--radius-sm);
  }
  #inputSearchUser {
    width: 100% !important;
    padding: 4px 8px;
    font-size: 0.76rem;
    height: 30px;
  }
  .admin-table {
    font-size: 0.76rem;
    min-width: 520px;
  }
  .admin-table th {
    padding: 7px 8px;
    font-size: 0.76rem;
    letter-spacing: 0.3px;
    white-space: nowrap;
  }
  .admin-table td {
    padding: 7px 8px;
    font-size: 0.76rem;
  }
  .badge-status {
    padding: 2px 6px;
    font-size: 0.76rem;
    border-radius: var(--radius-sm);
  }
  .badge-method {
    padding: 2px 5px;
    font-size: 0.76rem;
    border-radius: var(--radius-sm);
  }
  .cell-truncate {
    max-width: 105px;
  }
  .activity-item {
    padding: 8px 10px;
    gap: 10px;
    border-radius: var(--radius-sm);
  }
  .activity-icon-box {
    width: 28px;
    height: 28px;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
  }
  .activity-title {
    font-size: 0.82rem;
    line-height: 1.3;
  }
  .activity-time {
    font-size: 0.76rem;
  }
  .activity-detail {
    font-size: 0.74rem;
    line-height: 1.35;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
    gap: 12px;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .hero h1 {
    font-size: clamp(1.65rem, 5vw, 2rem);
    line-height: 1.25;
    letter-spacing: -0.015em;
  }
  .section-title h1,
  .section-title h2 {
    font-size: clamp(1.3rem, 4.5vw, 1.6rem);
    line-height: 1.3;
  }
  .section-title p {
    font-size: 0.88rem;
    line-height: 1.5;
  }
  .showcase-header h3 {
    font-size: clamp(0.98rem, 3.5vw, 1.15rem);
    line-height: 1.35;
  }
  .policy-content {
    padding: 22px 18px;
    margin: 24px auto 48px;
  }
  .policy-content h1 {
    font-size: clamp(1.6rem, 5vw, 1.85rem);
    line-height: 1.25;
  }
  .policy-content h2 {
    font-size: clamp(1.3rem, 4vw, 1.45rem);
    line-height: 1.3;
    margin: 28px 0 10px;
  }
  .policy-content p, .policy-content ul {
    font-size: 0.95rem;
    line-height: 1.65;
  }
  .trust-badges,
  #trust-badges {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    max-width: 440px;
    margin: 0 auto;
    width: 100%;
  }
  .trust-item {
    justify-content: center;
    padding: 7px 8px;
    font-size: 0.74rem;
    min-height: 38px;
    height: 100%;
    white-space: nowrap;
    text-align: center;
  }
  .trust-item span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}

/* Mobile Small Devices (<= 480px, e.g. Pixel 9 Pro 427px) */
@media (max-width: 480px) {
  .hero h1 {
    font-size: clamp(1.75rem, 5vw, 2.1rem);
  }
  .section-title h1,
  .section-title h2 {
    font-size: clamp(1.4rem, 4.5vw, 1.65rem);
  }
  .container {
    padding: 0 18px;
  }
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin: 12px 0 16px;
  }
  .kpi-card {
    padding: 10px 10px;
  }
  .kpi-value {
    font-size: 1.25rem;
    margin-bottom: 4px;
  }
  .kpi-title {
    font-size: 0.76rem;
  }
  .kpi-icon {
    font-size: 0.95rem;
  }
  .kpi-sub-pill {
    font-size: 0.76rem;
    padding: 1px 4px;
    border-radius: var(--radius-sm);
  }
  .cell-truncate {
    max-width: 90px;
  }
  .admin-table {
    min-width: 500px;
  }
}

/* Small Mobile (<= 360px, e.g. 320px) */
@media (max-width: 360px) {
  .hero h1 {
    font-size: 1.75rem;
    line-height: 1.25;
  }
  .section-title h1,
  .section-title h2 {
    font-size: 1.38rem;
  }
  .container {
    padding: 0 14px;
  }
  .kpi-grid {
    grid-template-columns: 1fr;
  }
  .brand-icon {
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }
  .nav-brand {
    font-size: 1rem;
    gap: 8px;
  }
  .pricing-badge {
    font-size: 0.76rem;
    padding: 3px 8px;
  }
  .trust-badges,
  #trust-badges {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .trust-item {
    padding: 6px 6px;
    font-size: 0.76rem;
    min-height: 36px;
  }
  .admin-main-container {
    padding: 10px 8px 36px;
  }
  .admin-header-content {
    padding: 0 8px;
  }
  .admin-brand-group .nav-brand span {
    font-size: 0.92rem !important;
  }
  .cell-truncate {
    max-width: 80px;
  }
}

/* ==========================================================================
   EXTENSION USER GUIDE STYLES
   ========================================================================== */

.guide-hero {
  padding: 60px 0 32px;
  text-align: center;
}

.guide-hero-content {
  max-width: 860px;
  margin: 0 auto;
}

.guide-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: var(--accent-purple-light);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.guide-hero h1 {
  font-size: clamp(2rem, 5vw, 2.9rem);
  font-weight: 800;
  line-height: 1.22;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.guide-hero p {
  color: var(--text-secondary);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.7;
  max-width: 760px;
  margin: 0 auto 28px;
}

.guide-hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

/* QUICK TABLE OF CONTENTS CHIPS */
.guide-toc-container {
  max-width: 1140px;
  margin: 0 auto 48px;
  padding: 0 16px;
}

.guide-toc-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
}

.guide-toc-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-purple-light);
  margin-bottom: 14px;
}

.guide-toc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.guide-toc-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.guide-toc-chip:hover {
  background: rgba(139, 92, 246, 0.18);
  border-color: rgba(139, 92, 246, 0.4);
  color: #fff;
  transform: translateY(-2px);
}

.guide-toc-chip:focus-visible {
  outline: 2px solid var(--accent-purple-light);
  outline-offset: 2px;
}

.guide-toc-chip .chip-num {
  font-size: 0.72rem;
  background: rgba(139, 92, 246, 0.25);
  color: var(--accent-purple-light);
  padding: 2px 6px;
  border-radius: var(--radius-full);
  font-weight: 700;
}

/* GUIDE STEP CARD */
.guide-main-wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px 80px;
}

.guide-step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 36px 40px;
  margin-bottom: 48px;
  scroll-margin-top: 90px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-elevation);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.guide-step-card:hover {
  border-color: rgba(139, 92, 246, 0.4);
}

.guide-step-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.step-num-pill {
  flex-shrink: 0;
  background: var(--gradient-brand);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.guide-step-title-wrap {
  flex: 1;
}

.guide-step-title-wrap h2 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 6px;
  color: var(--text-primary);
  text-wrap: balance;
}

.guide-step-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

/* 2-COLUMN GRID (CONTENT + MOCKUP) */
.guide-step-grid {
  display: grid;
  grid-template-columns: 1fr 390px;
  gap: 36px;
  align-items: start;
}

.guide-text-body {
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.guide-text-body p {
  margin-bottom: 16px;
}

.guide-text-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 24px 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.guide-feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.guide-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  transition: all 0.2s ease;
}

.guide-feature-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(139, 92, 246, 0.2);
}

.guide-feature-icon {
  font-size: 1.25rem;
  line-height: 1.2;
  flex-shrink: 0;
}

.guide-feature-text {
  flex: 1;
}

.guide-feature-text strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.guide-feature-text span {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  display: block;
}

/* CALLOUT BOXES */
.guide-callout {
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 20px 0;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.92rem;
  line-height: 1.65;
}

.guide-callout.tip {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #d1fae5;
}
.guide-callout.tip strong {
  color: #34d399;
}

.guide-callout.algo {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #ede9fe;
}
.guide-callout.algo strong {
  color: var(--accent-purple-light);
}

.guide-callout.warning {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: #fef3c7;
}
.guide-callout.warning strong {
  color: #fbbf24;
}

.callout-icon {
  font-size: 1.3rem;
  line-height: 1.2;
  flex-shrink: 0;
}

/* SIDE PANEL MOCKUP CONTAINER */
.sidepanel-mockup-wrapper {
  position: sticky;
  top: 90px;
}

.sidepanel-mockup-card {
  background: #0f1422;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.65);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.sidepanel-mockup-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -10px rgba(0, 0, 0, 0.75);
  border-color: rgba(139, 92, 246, 0.35);
}

.mockup-top-bar {
  background: #141b2d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mockup-window-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mockup-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}
.mockup-dot.red { background: #ef4444; }
.mockup-dot.yellow { background: #f59e0b; }
.mockup-dot.green { background: #10b981; }

.mockup-title {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mockup-badge {
  font-size: 0.68rem;
  background: rgba(139, 92, 246, 0.2);
  color: var(--accent-purple-light);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

.mockup-viewport {
  max-height: 520px;
  overflow-y: auto;
  position: relative;
  background: #0d1117;
  cursor: zoom-in;
  outline: none;
}

.mockup-viewport:focus-visible {
  outline: 2px solid var(--accent-purple-light);
  outline-offset: -2px;
}

.mockup-viewport img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.2s ease;
}

.mockup-zoom-overlay {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #f9fafb;
  font-size: 0.74rem;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 5px;
  opacity: 0.85;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.sidepanel-mockup-card:hover .mockup-zoom-overlay {
  opacity: 1;
}

.mockup-caption-bar {
  background: #111827;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 14px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.mockup-caption-bar .caption-icon {
  color: var(--accent-purple-light);
  font-size: 0.95rem;
  flex-shrink: 0;
}

/* PIPELINE VISUAL FLOW */
.pipeline-flow-box {
  background: rgba(139, 92, 246, 0.06);
  border: 1px dashed rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 20px 0;
}

.pipeline-flow-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-purple-light);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pipeline-steps-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pipeline-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.pipeline-pill.auto {
  background: linear-gradient(135deg, #c2410c 0%, #be185d 100%);
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.pipeline-pill.step1 {
  background: #2563eb;
  color: #fff;
}

.pipeline-pill.step2 {
  background: var(--primary);
  color: #fff;
}

.pipeline-pill.step3 {
  background: #047857;
  color: #fff;
}

.pipeline-arrow {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ALGO RULE HIGHLIGHT TABLE / CARD */
.algo-rule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.algo-rule-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.algo-rule-card-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-purple-light);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.algo-rule-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* LIGHTBOX MODAL FOR ZOOMING SCREENSHOTS */
.guide-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(10, 14, 23, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.guide-lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.guide-lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.guide-lightbox-img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  object-fit: contain;
}

.guide-lightbox-caption {
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  text-align: center;
}

.btn-close-lightbox {
  position: absolute;
  top: -52px;
  right: 0;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.6rem;
  min-width: 44px;
  min-height: 44px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.btn-close-lightbox:hover {
  background: rgba(255, 255, 255, 0.3);
}

.btn-close-lightbox:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* RESPONSIVE STYLES FOR GUIDE */
@media (max-width: 992px) {
  .guide-step-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .sidepanel-mockup-wrapper {
    position: static;
    max-width: 440px;
    margin: 0 auto;
  }
  .mockup-viewport {
    max-height: 480px;
  }
}

@media (max-width: 640px) {
  .guide-step-card {
    padding: 24px 18px 28px;
    margin-bottom: 32px;
    border-radius: var(--radius-md);
  }
  .guide-step-header {
    flex-direction: column;
    gap: 12px;
  }
  .sidepanel-mockup-wrapper {
    max-width: 100%;
  }
  .mockup-viewport {
    max-height: 380px;
  }
  .guide-hero {
    padding: 36px 0 24px;
  }
  .guide-toc-chips {
    gap: 8px;
  }
  .guide-toc-chip {
    font-size: 0.82rem;
    padding: 8px 12px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }
}

/* ACCESSIBILITY: PREFERS REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }
  *, *::before, *::after {
    animation-iteration-count: 1 !important;
  }
  .btn, .feature-card, .kpi-card, .pricing-card, a {
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease !important;
  }
  .btn:hover, .feature-card:hover, .kpi-card:hover, .pricing-card:hover, .sidepanel-mockup-card:hover {
    transform: none !important;
  }
}


