/* guide.css - لوحة التعليمات ودليل أنظمة سمسار */

:root {
  --guide-purple: #9068f8;
  --guide-purple-light: #c2aaff;
  --guide-card-bg: linear-gradient(145deg, rgba(20, 24, 46, 0.7), rgba(11, 14, 28, 0.75));
  --guide-card-border: rgba(184, 163, 255, 0.16);
  --guide-card-hover: rgba(184, 163, 255, 0.28);
}

/* Header Elements */
.guide-badge-box {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.guide-badge-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 42px;
  padding: 4px 12px 4px 14px;
  border: 1px solid rgba(184, 163, 255, 0.22);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.04);
  color: #f2efff;
  text-decoration: none;
  transition: all 0.2s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-sizing: border-box;
}

.guide-badge-link:hover {
  border-color: rgba(168, 130, 255, 0.65);
  background: rgba(144, 104, 248, 0.14);
  box-shadow: 0 4px 16px rgba(124, 83, 233, 0.2);
  transform: translateY(-1px);
}

.guide-badge-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: linear-gradient(135deg, #9068f8, #5940d8);
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(124, 83, 233, 0.35);
}

.guide-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.guide-badge-text strong {
  font-size: 13px;
  font-weight: 800;
  color: #f7f5ff;
}

.guide-badge-text small {
  font-size: 10px;
  color: #c4aaff;
  font-weight: 700;
}

/* Sidebar Head */
.guide-sidebar-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38ef7d;
  box-shadow: 0 0 10px #38ef7d;
}

.guide-sidebar-head strong {
  font-size: 13px;
  color: #fff;
}

/* Nav Category Accordion */
.nav-category {
  display: grid;
  gap: 4px;
}

.nav-category + .nav-category {
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.nav-category-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0;
  padding: 7px 8px;
  border: 0;
  background: transparent;
  color: #9ea3be;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  text-align: right;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
}

.nav-category-toggle:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #e5ddff;
}

.nav-category-toggle i {
  width: 7px;
  height: 7px;
  border-left: 2px solid #a88cff;
  border-bottom: 2px solid #a88cff;
  transform: rotate(-45deg);
  transition: transform 0.22s cubic-bezier(0.2, 0, 0, 1);
}

.nav-category.collapsed .nav-category-toggle i {
  transform: rotate(135deg);
}

.nav-category-pages {
  display: grid;
  grid-template-rows: 1fr;
  overflow: hidden;
  opacity: 1;
  transition: grid-template-rows 0.26s cubic-bezier(0.2, 0, 0, 1), opacity 0.18s ease;
}

.nav-category-pages-inner {
  display: grid;
  min-height: 0;
  overflow: hidden;
  gap: 4px;
  padding-top: 3px;
}

.nav-category.collapsed .nav-category-pages {
  grid-template-rows: 0fr;
  opacity: 0;
}

/* Subcategory styling */
.nav-subcategory {
  display: grid;
  gap: 0;
  overflow: hidden;
}

.nav-subcategory-toggle {
  cursor: pointer;
}

.nav-subcategory-pages {
  display: grid;
  grid-template-rows: 1fr;
  overflow: hidden;
  opacity: 1;
  transition: grid-template-rows 0.24s ease, opacity 0.18s ease;
}

.nav-subcategory-pages-inner {
  display: grid;
  min-height: 0;
  overflow: hidden;
  gap: 4px;
  padding-right: 14px;
  border-right: 2px solid rgba(168, 140, 255, 0.22);
  margin-right: 6px;
}

.nav-subcategory.collapsed .nav-subcategory-pages {
  grid-template-rows: 0fr;
  opacity: 0;
}

/* Nav Item styling */
.nav-item {
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #d7d3e4;
  text-align: right;
  font: inherit;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, transform 0.12s ease;
}

.nav-item:hover {
  background: rgba(144, 104, 248, 0.1);
  color: #fff;
  transform: translateX(-2px);
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(126, 82, 236, 0.35), rgba(96, 66, 183, 0.25));
  border: 1px solid rgba(168, 140, 255, 0.32);
  color: #fff;
}

.nav-icon-badge {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #bfaaff;
  font-size: 13px;
  flex: none;
  transition: background 0.18s, color 0.18s;
}

.nav-item.active .nav-icon-badge {
  background: linear-gradient(135deg, #7c53e9, #a175ff);
  color: #fff;
  box-shadow: 0 4px 12px rgba(124, 83, 233, 0.38);
}

.nav-item-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.nav-item-content strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-item-content small {
  display: block;
  margin-top: 1px;
  color: #9295aa;
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-item.active .nav-item-content small {
  color: #d6cbff;
}

/* Page Header */
.guide-page-header {
  grid-column: 1 / -1;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(17, 21, 39, 0.91), rgba(9, 12, 24, 0.87));
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.18);
  margin-bottom: 22px;
}

.page-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.guide-cat-badge {
  margin: 0;
  color: #bca7ff;
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.guide-mode-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(184, 163, 255, 0.28);
  background: rgba(144, 104, 248, 0.12);
  color: #ded2ff;
  font-size: 11px;
  font-weight: 700;
}

.guide-mode-tag svg {
  color: #8ce196;
}

.guide-page-header h1 {
  margin: 0;
  font-size: clamp(26px, 3.5vw, 36px);
  color: #fff;
}

.guide-page-header h1 strong {
  color: #a47bff;
}

.guide-page-header > span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

/* Workspace Canvas */
.guide-content-canvas {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

/* Notice Banner */
.guide-notice-banner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 22px;
  border: 1px solid rgba(184, 163, 255, 0.25);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(32, 26, 60, 0.55), rgba(18, 16, 36, 0.65));
  backdrop-filter: blur(8px);
}

.notice-icon {
  font-size: 26px;
  line-height: 1;
}

.notice-body h3 {
  margin: 0 0 6px;
  font-size: 15px;
  color: #f1edff;
  font-weight: 800;
}

.notice-body p {
  margin: 0;
  color: #b0acca;
  font-size: 13px;
  line-height: 1.6;
}

.notice-body strong {
  color: #c9b4ff;
}

/* Empty Sections Grid */
.guide-empty-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.guide-empty-card {
  padding: 22px;
  border: 1.5px dashed rgba(184, 163, 255, 0.22);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.015);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 190px;
}

.guide-empty-card:hover {
  border-color: rgba(184, 163, 255, 0.45);
  background: rgba(144, 104, 248, 0.035);
  transform: translateY(-2px);
}

.empty-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.empty-card-index {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(144, 104, 248, 0.24), rgba(89, 54, 205, 0.2));
  border: 1px solid rgba(184, 163, 255, 0.25);
  color: #cbb4ff;
  font-size: 13px;
  font-weight: 800;
  flex: none;
}

.empty-card-head h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: #ede8ff;
}

.empty-card-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Skeleton Placeholder Lines */
.placeholder-skeleton {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 6px 0;
}

.sk-line {
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(184, 163, 255, 0.08), rgba(184, 163, 255, 0.16), rgba(184, 163, 255, 0.08));
  background-size: 200% 100%;
  animation: sk-shimmer 2.2s infinite ease-in-out;
}

.sk-line.w-40 { width: 40%; }
.sk-line.w-50 { width: 50%; }
.sk-line.w-60 { width: 60%; }
.sk-line.w-65 { width: 65%; }
.sk-line.w-70 { width: 70%; }
.sk-line.w-75 { width: 75%; }
.sk-line.w-80 { width: 80%; }
.sk-line.w-85 { width: 85%; }
.sk-line.w-90 { width: 90%; }
.sk-line.w-95 { width: 95%; }
.sk-line.w-100 { width: 100%; }

@keyframes sk-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.empty-hint {
  margin: 0;
  color: #8b8ea5;
  font-size: 11.5px;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 6px;
}

.empty-hint::before {
  content: "•";
  color: #9068f8;
  font-size: 16px;
}

/* Overview Welcome Page */
.guide-overview-shell {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.guide-hero-banner {
  padding: 34px 30px;
  border-radius: 20px;
  border: 1px solid rgba(184, 163, 255, 0.28);
  background: radial-gradient(circle at 85% 15%, rgba(135, 95, 246, 0.25), transparent 60%),
              linear-gradient(145deg, rgba(22, 27, 54, 0.9), rgba(10, 13, 28, 0.92));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.24);
  position: relative;
  overflow: hidden;
}

.guide-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(184, 163, 255, 0.35);
  background: rgba(144, 104, 248, 0.16);
  color: #d8c9ff;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

.guide-hero-banner h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3.2vw, 32px);
  color: #fff;
}

.guide-hero-banner h2 strong {
  background: linear-gradient(135deg, #c4aaff, #895bf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.guide-hero-banner p {
  max-width: 680px;
  margin: 0;
  color: #b3aed1;
  font-size: 14px;
  line-height: 1.8;
}

.guide-categories-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.category-overview-card {
  padding: 22px;
  border-radius: 18px;
  border: 1px solid rgba(184, 163, 255, 0.18);
  background: linear-gradient(145deg, rgba(20, 24, 46, 0.8), rgba(10, 13, 28, 0.85));
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all 0.2s ease;
}

.category-overview-card:hover {
  border-color: rgba(184, 163, 255, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.26);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-top h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-count-badge {
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(144, 104, 248, 0.16);
  border: 1px solid rgba(184, 163, 255, 0.28);
  color: #c9b4ff;
  font-size: 11px;
  font-weight: 800;
}

.card-systems-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.system-chip {
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #d1ccdf;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
  text-decoration: none;
}

.system-chip:hover {
  background: rgba(144, 104, 248, 0.22);
  border-color: rgba(184, 163, 255, 0.45);
  color: #fff;
  transform: translateY(-1px);
}

/* Light Theme Overrides */
html[data-theme="light"] .guide-badge-link {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(91, 66, 160, 0.22) !important;
  color: #2a2540 !important;
  box-shadow: 0 2px 8px rgba(70, 45, 120, 0.06) !important;
}

html[data-theme="light"] .guide-badge-link:hover {
  background: #fff !important;
  border-color: #8b60ee !important;
  box-shadow: 0 4px 18px rgba(120, 80, 220, 0.12) !important;
}

html[data-theme="light"] .guide-badge-text strong {
  color: #211d32 !important;
}

html[data-theme="light"] .guide-badge-text small {
  color: #633ec4 !important;
}

html[data-theme="light"] .guide-sidebar-head strong {
  color: #241c3c;
}

html[data-theme="light"] .nav-category-toggle {
  color: #4b416e;
}

html[data-theme="light"] .nav-category-toggle:hover {
  background: rgba(135, 95, 246, 0.08);
  color: #34226a;
}

html[data-theme="light"] .nav-item {
  color: #383151;
}

html[data-theme="light"] .nav-item:hover {
  background: rgba(135, 95, 246, 0.1);
  color: #1f1442;
}

html[data-theme="light"] .nav-item.active {
  background: linear-gradient(135deg, #8058e7, #a177ff) !important;
  color: #fff !important;
  border-color: #8058e7;
}

html[data-theme="light"] .nav-item.active .nav-item-content small {
  color: #f0ebff !important;
}

html[data-theme="light"] .guide-page-header {
  background: #ffffff;
  border-color: rgba(135, 95, 246, 0.2);
  box-shadow: 0 10px 30px rgba(50, 30, 90, 0.08);
}

html[data-theme="light"] .guide-page-header h1 {
  color: #231b3e;
}

html[data-theme="light"] .guide-page-header > span {
  color: #635c7e;
}

html[data-theme="light"] .guide-mode-tag {
  background: rgba(135, 95, 246, 0.09);
  border-color: rgba(135, 95, 246, 0.25);
  color: #5535b0;
}

html[data-theme="light"] .guide-notice-banner {
  background: linear-gradient(145deg, #f7f4fd, #ede8fa);
  border-color: rgba(135, 95, 246, 0.28);
}

html[data-theme="light"] .notice-body h3 {
  color: #2c1f51;
}

html[data-theme="light"] .notice-body p {
  color: #5d5479;
}

html[data-theme="light"] .notice-body strong {
  color: #4f2fb9;
}

html[data-theme="light"] .guide-empty-card {
  border-color: rgba(135, 95, 246, 0.28);
  background: #faf8fe;
}

html[data-theme="light"] .guide-empty-card:hover {
  border-color: rgba(135, 95, 246, 0.55);
  background: #f4effd;
}

html[data-theme="light"] .empty-card-head h4 {
  color: #271d43;
}

html[data-theme="light"] .empty-hint {
  color: #6d6689;
}

html[data-theme="light"] .sk-line {
  background: linear-gradient(90deg, rgba(135, 95, 246, 0.1), rgba(135, 95, 246, 0.22), rgba(135, 95, 246, 0.1));
}

html[data-theme="light"] .guide-hero-banner {
  background: radial-gradient(circle at 85% 15%, rgba(135, 95, 246, 0.15), transparent 60%),
              linear-gradient(145deg, #ffffff, #f7f4fc);
  border-color: rgba(135, 95, 246, 0.22);
  box-shadow: 0 15px 40px rgba(50, 30, 90, 0.08);
}

html[data-theme="light"] .guide-hero-banner h2 {
  color: #231b3e;
}

html[data-theme="light"] .guide-hero-banner p {
  color: #5e567b;
}

html[data-theme="light"] .category-overview-card {
  background: #ffffff;
  border-color: rgba(135, 95, 246, 0.2);
  box-shadow: 0 8px 24px rgba(50, 30, 90, 0.05);
}

html[data-theme="light"] .card-top h3 {
  color: #281f44;
}

html[data-theme="light"] .system-chip {
  background: #f4effc;
  border-color: rgba(135, 95, 246, 0.18);
  color: #3b2c66;
}

html[data-theme="light"] .system-chip:hover {
  background: rgba(135, 95, 246, 0.22);
  color: #20114a;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .guide-empty-grid,
  .guide-categories-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .guide-badge-box {
    flex: 1;
    min-width: 0;
    max-width: 170px;
  }
  .guide-badge-link {
    width: 100%;
    min-width: 0;
    height: 36px;
    padding: 2px 8px;
    gap: 7px;
    border-radius: 11px;
  }
  .guide-badge-icon {
    width: 24px;
    height: 24px;
    border-radius: 7px;
  }
  .guide-badge-icon svg {
    width: 13px;
    height: 13px;
  }
  .guide-badge-text strong {
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .guide-badge-text small {
    display: none;
  }
  .guide-page-header {
    padding: 18px 20px;
  }
  .page-header-top {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Brand Logo Reset for Guide */
.server-brand .brand-mark {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  height: auto !important;
}

.server-brand .smsar-brand-svg {
  display: block;
  width: 32px;
  height: 32px;
  flex: none;
  overflow: visible;
  filter: drop-shadow(0 2px 8px rgba(147, 64, 246, 0.42));
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), filter 0.25s ease;
  pointer-events: none;
}

.server-brand:hover .smsar-brand-svg {
  transform: scale(1.08) rotate(-2deg);
  filter: drop-shadow(0 4px 14px rgba(168, 85, 255, 0.65));
}


/* ==========================================================================
   دليل نظام القوانين (Rules Guide & Discord Simulator)
   ========================================================================== */

.rules-guide-container {
  display: flex;
  flex-direction: column;
  gap: 26px;
  animation: fadeIn 0.3s ease;
}

/* Hero Section */
.rules-hero-card {
  padding: 28px 30px;
  border-radius: 20px;
  border: 1px solid rgba(184, 163, 255, 0.28);
  background: radial-gradient(circle at 90% 10%, rgba(144, 104, 248, 0.22), transparent 55%),
              linear-gradient(145deg, rgba(22, 26, 52, 0.92), rgba(11, 14, 30, 0.94));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rules-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.rules-hero-title-box {
  display: flex;
  align-items: center;
  gap: 14px;
}

.rules-hero-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(144, 104, 248, 0.35), rgba(95, 63, 220, 0.28));
  border: 1px solid rgba(184, 163, 255, 0.35);
  display: grid;
  place-items: center;
  font-size: 26px;
  box-shadow: 0 8px 24px rgba(124, 83, 233, 0.3);
  flex: none;
}

.rules-hero-text h2 {
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
}

.rules-hero-text p {
  margin: 0;
  color: #cbbde8;
  font-size: 13.5px;
}

.rules-feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.rules-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(144, 104, 248, 0.12);
  border: 1px solid rgba(184, 163, 255, 0.22);
  color: #ded6f9;
  font-size: 12px;
  font-weight: 700;
}

.rules-pill strong {
  color: #fff;
}

/* Sections */
.rules-section {
  padding: 26px 28px;
  border-radius: 18px;
  border: 1px solid rgba(184, 163, 255, 0.18);
  background: linear-gradient(145deg, rgba(20, 24, 46, 0.78), rgba(11, 14, 28, 0.84));
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rules-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(184, 163, 255, 0.12);
}

.rules-section-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(144, 104, 248, 0.25), rgba(89, 54, 205, 0.2));
  border: 1px solid rgba(184, 163, 255, 0.28);
  display: grid;
  place-items: center;
  font-size: 18px;
  flex: none;
}

.rules-section-header h3 {
  margin: 0 0 2px;
  font-size: 18px;
  font-weight: 800;
  color: #f7f5ff;
}

.rules-section-header p {
  margin: 0;
  font-size: 13px;
  color: #a7a1c4;
}

/* Steps Cards Grid */
.rules-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.rules-step-card {
  padding: 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(184, 163, 255, 0.16);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rules-step-card:hover {
  transform: translateY(-2px);
  border-color: rgba(184, 163, 255, 0.4);
}

.rules-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #7c53e9;
  color: #fff;
  font-weight: 800;
  font-size: 12px;
}

.rules-step-card h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #ede8ff;
}

.rules-step-card p {
  margin: 0;
  font-size: 13px;
  color: #b0acca;
  line-height: 1.6;
}

/* Discord Mockup Container */
.discord-mockup-wrapper {
  background: #313338;
  border: 1px solid #3f4147;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  font-family: 'Tajawal', system-ui, -apple-system, sans-serif;
  color: #dbdee1;
  direction: rtl;
}

.discord-channel-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #2b2d31;
  border-bottom: 1px solid #1f2023;
  font-size: 13.5px;
  font-weight: 700;
  color: #f2f3f5;
}

.discord-channel-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.discord-channel-hash {
  color: #80848e;
  font-size: 16px;
}

.discord-channel-badge {
  background: #232428;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  color: #949ba4;
}

.discord-chat-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Discord Message Item */
.discord-msg-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.discord-author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c53e9, #a175ff);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 18px;
  flex: none;
  overflow: hidden;
}

.discord-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.discord-msg-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.discord-author-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.3;
}

.discord-author-name {
  font-size: 14px;
  font-weight: 700;
  color: #f2f3f5;
}

.discord-bot-tag {
  display: inline-flex;
  align-items: center;
  background: #5865f2;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  line-height: 14px;
  letter-spacing: 0.5px;
}

.discord-timestamp {
  font-size: 11px;
  color: #949ba4;
}

/* Discord Embed */
.discord-embed-box {
  background: #2b2d31;
  border-right: 4px solid #9068f8;
  border-radius: 4px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 580px;
}

.discord-embed-title {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
}

.discord-embed-desc {
  font-size: 13px;
  line-height: 1.6;
  color: #dbdee1;
  white-space: pre-line;
}

.discord-embed-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #949ba4;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Discord Select Menu */
.discord-menu-container {
  max-width: 580px;
  position: relative;
  margin-top: 4px;
}

.discord-select-trigger {
  width: 100%;
  padding: 10px 14px;
  background: #2b2d31;
  border: 1px solid #3f4147;
  border-radius: 4px;
  color: #dbdee1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  transition: border-color 0.18s ease;
}

.discord-select-trigger:hover {
  border-color: #4e5058;
}

.discord-select-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.discord-select-chevron {
  font-size: 11px;
  color: #949ba4;
  transition: transform 0.2s ease;
}

.discord-select-trigger.is-open .discord-select-chevron {
  transform: rotate(180deg);
}

.discord-select-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  left: 0;
  background: #2b2d31;
  border: 1px solid #3f4147;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  z-index: 10;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.discord-select-dropdown[hidden] {
  display: none;
}

.discord-select-item {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 0;
  color: #dbdee1;
  text-align: right;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, color 0.15s ease;
}

.discord-select-item:hover,
.discord-select-item.is-selected {
  background: #35373c;
  color: #fff;
}

.discord-select-item-icon {
  font-size: 16px;
  flex: none;
}

.discord-select-item-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.discord-select-item-text strong {
  font-size: 13px;
}

.discord-select-item-text small {
  font-size: 11px;
  color: #949ba4;
}

/* Ephemeral Simulated Section */
.discord-ephemeral-wrapper {
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px dashed #3f4147;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.discord-ephemeral-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: #949ba4;
  padding: 0 4px;
}

.discord-ephemeral-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.discord-dismiss-btn {
  background: transparent;
  border: 0;
  color: #00a8fc;
  cursor: pointer;
  font-size: 11px;
  font-family: inherit;
  text-decoration: underline;
}

.discord-dismiss-btn:hover {
  color: #58b9ff;
}

/* Settings Breakdown Cards */
.rules-breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rules-breakdown-card {
  padding: 20px 22px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(184, 163, 255, 0.14);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rules-breakdown-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.rules-breakdown-title-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rules-breakdown-num {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(144, 104, 248, 0.22);
  color: #cbb4ff;
  font-weight: 800;
  font-size: 12px;
  display: grid;
  place-items: center;
}

.rules-breakdown-head strong {
  font-size: 15px;
  color: #f7f5ff;
}

.rules-field-badge {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(144, 104, 248, 0.16);
  border: 1px solid rgba(184, 163, 255, 0.25);
  color: #d8caff;
}

.rules-breakdown-desc {
  margin: 0;
  font-size: 13.5px;
  color: #b3aed1;
  line-height: 1.65;
}

.rules-breakdown-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 4px;
}

.rules-detail-item {
  padding: 10px 14px;
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(184, 163, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.rules-detail-item span {
  font-size: 11px;
  color: #948fb1;
  font-weight: 700;
}

.rules-detail-item strong {
  font-size: 12.5px;
  color: #e5ddff;
}

/* Quick Setup Flow */
.rules-quick-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.rules-flow-card {
  padding: 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(184, 163, 255, 0.14);
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.rules-flow-step {
  font-size: 20px;
  font-weight: 900;
  color: #8c5ff8;
  line-height: 1;
}

.rules-flow-card h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: #f1edff;
}

.rules-flow-card p {
  margin: 0;
  font-size: 12px;
  color: #a49fc4;
  line-height: 1.5;
}

/* Permissions Grid */
.rules-perms-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.rules-perm-card {
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(184, 163, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.rules-perm-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rules-perm-info strong {
  font-size: 13px;
  color: #ede8ff;
}

.rules-perm-info small {
  font-size: 11px;
  color: #928cae;
}

.rules-perm-tag {
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(56, 239, 125, 0.14);
  border: 1px solid rgba(56, 239, 125, 0.3);
  color: #5ef092;
  white-space: nowrap;
}

/* FAQ Grid */
.rules-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.rules-faq-card {
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(184, 163, 255, 0.14);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rules-faq-card h4 {
  margin: 0;
  font-size: 14px;
  color: #f3efff;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
}

.rules-faq-card p {
  margin: 0;
  font-size: 12.5px;
  color: #a49fc4;
  line-height: 1.6;
}

/* Action CTAs */
.rules-cta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(144, 104, 248, 0.18), rgba(95, 63, 220, 0.12));
  border: 1px solid rgba(184, 163, 255, 0.3);
  gap: 16px;
  flex-wrap: wrap;
}

.rules-cta-text h4 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}

.rules-cta-text p {
  margin: 0;
  font-size: 13px;
  color: #cbbde8;
}

.rules-cta-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rules-btn-primary {
  padding: 9px 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, #7c53e9, #a175ff);
  color: #fff;
  border: 0;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(124, 83, 233, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.rules-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(124, 83, 233, 0.5);
  color: #fff;
}

.rules-btn-secondary {
  padding: 9px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(184, 163, 255, 0.25);
  color: #ded6f9;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.18s ease;
}

.rules-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Light Theme Overrides */
html[data-theme="light"] .rules-hero-card {
  background: radial-gradient(circle at 90% 10%, rgba(135, 95, 246, 0.12), transparent 55%),
              linear-gradient(145deg, #ffffff, #f7f4fc);
  border-color: rgba(135, 95, 246, 0.22);
  box-shadow: 0 12px 30px rgba(50, 30, 90, 0.07);
}

html[data-theme="light"] .rules-hero-text h2 {
  color: #261c42;
}

html[data-theme="light"] .rules-hero-text p {
  color: #5d5479;
}

html[data-theme="light"] .rules-pill {
  background: rgba(135, 95, 246, 0.1);
  border-color: rgba(135, 95, 246, 0.22);
  color: #4b3687;
}

html[data-theme="light"] .rules-pill strong {
  color: #261c42;
}

html[data-theme="light"] .rules-section {
  background: #ffffff;
  border-color: rgba(135, 95, 246, 0.2);
  box-shadow: 0 8px 24px rgba(50, 30, 90, 0.05);
}

html[data-theme="light"] .rules-section-header h3 {
  color: #261c42;
}

html[data-theme="light"] .rules-section-header p {
  color: #635c7e;
}

html[data-theme="light"] .rules-step-card,
html[data-theme="light"] .rules-breakdown-card,
html[data-theme="light"] .rules-flow-card,
html[data-theme="light"] .rules-perm-card,
html[data-theme="light"] .rules-faq-card {
  background: #faf8fe;
  border-color: rgba(135, 95, 246, 0.18);
}

html[data-theme="light"] .rules-step-card h4,
html[data-theme="light"] .rules-breakdown-head strong,
html[data-theme="light"] .rules-flow-card h4,
html[data-theme="light"] .rules-perm-info strong,
html[data-theme="light"] .rules-faq-card h4 {
  color: #261c42;
}

html[data-theme="light"] .rules-step-card p,
html[data-theme="light"] .rules-breakdown-desc,
html[data-theme="light"] .rules-flow-card p,
html[data-theme="light"] .rules-faq-card p {
  color: #5e567b;
}

html[data-theme="light"] .rules-detail-item {
  background: #f1ecfa;
  border-color: rgba(135, 95, 246, 0.16);
}

html[data-theme="light"] .rules-detail-item strong {
  color: #261c42;
}

html[data-theme="light"] .rules-cta-bar {
  background: linear-gradient(135deg, rgba(135, 95, 246, 0.12), rgba(95, 63, 220, 0.08));
  border-color: rgba(135, 95, 246, 0.28);
}

html[data-theme="light"] .rules-cta-text h4 {
  color: #261c42;
}

html[data-theme="light"] .rules-cta-text p {
  color: #5e567b;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .rules-steps-grid {
    grid-template-columns: 1fr;
  }
  .rules-quick-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rules-perms-grid,
  .rules-faq-grid,
  .rules-breakdown-details {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .rules-quick-flow {
    grid-template-columns: 1fr;
  }
  .rules-hero-card,
  .rules-section {
    padding: 18px 20px;
  }
  .rules-cta-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .rules-cta-buttons {
    width: 100%;
    flex-direction: column;
  }
  .rules-btn-primary,
  .rules-btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   دليل نظام التفاعل التلقائي (Auto-Reaction Guide & Live Simulator)
   ========================================================================== */

.reaction-guide-container {
  display: flex;
  flex-direction: column;
  gap: 26px;
  animation: fadeIn 0.3s ease;
}

/* Feature Pills in Hero */
.reaction-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(56, 239, 125, 0.15);
  border: 1px solid rgba(56, 239, 125, 0.35);
  color: #38ef7d;
  font-size: 11.5px;
  font-weight: 800;
}

.reaction-hero-badge .pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38ef7d;
  box-shadow: 0 0 8px #38ef7d;
  animation: reactionPulse 2s infinite ease-in-out;
}

@keyframes reactionPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Discord Reaction Simulator Pills */
.discord-reaction-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.discord-reaction-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 8px;
  background: #2b2d31;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #b5bac1;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.discord-reaction-pill:hover {
  background: #35373c;
  border-color: rgba(255, 255, 255, 0.18);
  color: #dbdee1;
  transform: translateY(-1px);
}

.discord-reaction-pill.is-active {
  background: rgba(88, 101, 242, 0.18);
  border-color: #5865f2;
  color: #c9cdfb;
  box-shadow: 0 2px 8px rgba(88, 101, 242, 0.25);
}

.discord-reaction-pill .reaction-count {
  font-size: 11.5px;
  font-weight: 800;
  color: inherit;
}

.discord-reaction-bot-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: #232428;
  border-top: 1px solid #1f2023;
  font-size: 11.5px;
  color: #949ba4;
}

.discord-reaction-bot-notice strong {
  color: #bba6ff;
}

/* Dashboard UI Mockup Card */
.dashboard-ui-preview-card {
  padding: 22px 24px;
  border-radius: 16px;
  background: rgba(14, 18, 38, 0.85);
  border: 1px solid rgba(184, 163, 255, 0.22);
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.dashboard-ui-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(184, 163, 255, 0.12);
}

.dashboard-ui-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(184, 163, 255, 0.14);
}

.dashboard-ui-toggle-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dashboard-ui-toggle-info strong {
  color: #f7f5ff;
  font-size: 14px;
}

.dashboard-ui-toggle-info small {
  color: #a49fc4;
  font-size: 12px;
}

.dashboard-ui-switch-active {
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7c53e9, #a175ff);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 3px;
  box-shadow: 0 0 10px rgba(124, 83, 233, 0.4);
}

.dashboard-ui-switch-handle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Mockup Rule Item */
.mockup-rule-box {
  border-radius: 14px;
  border: 1px solid rgba(184, 163, 255, 0.25);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.mockup-rule-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(144, 104, 248, 0.08);
  border-bottom: 1px solid rgba(184, 163, 255, 0.12);
}

.mockup-rule-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  color: #ede8ff;
}

.mockup-rule-badge span {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #7c53e9;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
}

.mockup-rule-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mockup-field-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mockup-field-row label {
  font-size: 12px;
  font-weight: 800;
  color: #cbbde8;
}

.mockup-input-like {
  padding: 10px 14px;
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(184, 163, 255, 0.2);
  color: #dfd8f8;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mockup-emojis-taglist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mockup-emoji-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(144, 104, 248, 0.15);
  border: 1px solid rgba(184, 163, 255, 0.28);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.mockup-emoji-chip .remove-x {
  color: #ff8585;
  font-size: 14px;
  cursor: default;
}

/* Supported Formats Grid */
.reaction-formats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.reaction-format-card {
  padding: 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(184, 163, 255, 0.16);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.reaction-format-card:hover {
  transform: translateY(-2px);
  border-color: rgba(184, 163, 255, 0.4);
}

.reaction-format-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reaction-format-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(144, 104, 248, 0.18);
  border: 1px solid rgba(184, 163, 255, 0.25);
  display: grid;
  place-items: center;
  font-size: 16px;
}

.reaction-format-card h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: #f7f5ff;
}

.reaction-format-code {
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(184, 163, 255, 0.18);
  font-family: monospace;
  font-size: 12.5px;
  color: #dfd4ff;
  direction: ltr;
  text-align: center;
  user-select: all;
}

.reaction-format-card p {
  margin: 0;
  font-size: 12px;
  color: #a49fc4;
  line-height: 1.55;
}

/* Presets & Templates Grid */
.reaction-presets-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.reaction-preset-card {
  padding: 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(184, 163, 255, 0.16);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.reaction-preset-card:hover {
  transform: translateY(-2px);
  border-color: rgba(184, 163, 255, 0.4);
}

.reaction-preset-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.reaction-preset-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 800;
  color: #fff;
}

.reaction-preset-channel {
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #c9b4ff;
  font-size: 11px;
  font-weight: 700;
}

.reaction-preset-emojis {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(184, 163, 255, 0.15);
  font-size: 18px;
}

.reaction-preset-emojis span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.reaction-preset-card p {
  margin: 0;
  font-size: 12px;
  color: #a49fc4;
  line-height: 1.55;
}

.reaction-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 9px;
  background: rgba(144, 104, 248, 0.14);
  border: 1px solid rgba(184, 163, 255, 0.26);
  color: #dfd5fd;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.reaction-copy-btn:hover {
  background: rgba(144, 104, 248, 0.28);
  border-color: rgba(184, 163, 255, 0.5);
  color: #fff;
}

.reaction-copy-btn.copied {
  background: rgba(56, 239, 125, 0.2) !important;
  border-color: #38ef7d !important;
  color: #38ef7d !important;
}

/* Floating Save Bar in Mockup */
.mockup-save-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(144, 104, 248, 0.24), rgba(89, 54, 205, 0.2));
  border: 1px solid rgba(184, 163, 255, 0.35);
  font-size: 12.5px;
  color: #ede8ff;
  font-weight: 700;
}

.mockup-save-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mockup-save-btn {
  padding: 5px 12px;
  border-radius: 7px;
  background: #38ef7d;
  color: #0b2213;
  font-size: 11.5px;
  font-weight: 800;
  border: 0;
}

.mockup-discard-btn {
  padding: 5px 12px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  color: #dfd8f8;
  font-size: 11.5px;
  font-weight: 700;
  border: 0;
}

/* Toast Notification for copying */
.guide-toast-alert {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 10px 22px;
  border-radius: 999px;
  background: #1f2338;
  border: 1px solid #7c53e9;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 8px;
}

.guide-toast-alert.is-shown {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Light Theme Overrides for Auto-Reaction */
html[data-theme="light"] .dashboard-ui-preview-card {
  background: #ffffff;
  border-color: rgba(135, 95, 246, 0.22);
  box-shadow: 0 12px 28px rgba(50, 30, 90, 0.06);
}

html[data-theme="light"] .dashboard-ui-toggle-row {
  background: #faf8fe;
  border-color: rgba(135, 95, 246, 0.2);
}

html[data-theme="light"] .dashboard-ui-toggle-info strong {
  color: #261c42;
}

html[data-theme="light"] .dashboard-ui-toggle-info small {
  color: #635c7e;
}

html[data-theme="light"] .mockup-rule-box {
  background: #ffffff;
  border-color: rgba(135, 95, 246, 0.22);
}

html[data-theme="light"] .mockup-rule-header {
  background: rgba(135, 95, 246, 0.08);
  border-bottom-color: rgba(135, 95, 246, 0.18);
}

html[data-theme="light"] .mockup-rule-badge {
  color: #261c42;
}

html[data-theme="light"] .mockup-field-row label {
  color: #4b3687;
}

html[data-theme="light"] .mockup-input-like {
  background: #faf8fe;
  border-color: rgba(135, 95, 246, 0.25);
  color: #2b2146;
}

html[data-theme="light"] .mockup-emoji-chip {
  background: #ede8f8;
  border-color: rgba(135, 95, 246, 0.3);
  color: #261c42;
}

html[data-theme="light"] .reaction-format-card,
html[data-theme="light"] .reaction-preset-card {
  background: #faf8fe;
  border-color: rgba(135, 95, 246, 0.2);
}

html[data-theme="light"] .reaction-format-card:hover,
html[data-theme="light"] .reaction-preset-card:hover {
  background: #f4effd;
  border-color: rgba(135, 95, 246, 0.45);
}

html[data-theme="light"] .reaction-format-card h4,
html[data-theme="light"] .reaction-preset-title {
  color: #261c42;
}

html[data-theme="light"] .reaction-format-code,
html[data-theme="light"] .reaction-preset-emojis {
  background: #ede8f8;
  border-color: rgba(135, 95, 246, 0.25);
  color: #432b7a;
}

html[data-theme="light"] .reaction-format-card p,
html[data-theme="light"] .reaction-preset-card p {
  color: #635c7e;
}

html[data-theme="light"] .mockup-save-bar {
  background: linear-gradient(135deg, rgba(135, 95, 246, 0.16), rgba(95, 63, 220, 0.12));
  border-color: rgba(135, 95, 246, 0.3);
  color: #261c42;
}

@media (max-width: 900px) {
  .reaction-formats-grid,
  .reaction-presets-grid {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   Welcome Guide Specialized Styles (دليل نظام الترحيب الشامل)
   ========================================================================== */

.welcome-guide-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
}

/* Quick Navigation Anchor Bar */
.welcome-quick-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: linear-gradient(145deg, rgba(22, 27, 54, 0.75), rgba(12, 16, 32, 0.8));
  border: 1px solid rgba(184, 163, 255, 0.18);
  border-radius: 16px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: thin;
  position: sticky;
  top: 72px;
  z-index: 20;
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.welcome-quick-nav::-webkit-scrollbar {
  height: 4px;
}
.welcome-quick-nav::-webkit-scrollbar-thumb {
  background: rgba(184, 163, 255, 0.25);
  border-radius: 4px;
}

.welcome-nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 10px;
  border: 1px solid rgba(184, 163, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  color: #cfc8e6;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s ease;
  flex-shrink: 0;
}

.welcome-nav-pill:hover,
.welcome-nav-pill.active {
  background: rgba(144, 104, 248, 0.22);
  border-color: rgba(184, 163, 255, 0.45);
  color: #fff;
  transform: translateY(-1px);
}

.welcome-nav-pill.cta-pill {
  background: linear-gradient(135deg, #7c54e7, #9f76ff);
  color: #fff;
  border-color: transparent;
  margin-right: auto;
}
.welcome-nav-pill.cta-pill:hover {
  background: linear-gradient(135deg, #6c42dd, #8f62f8);
  box-shadow: 0 4px 16px rgba(124, 84, 231, 0.45);
}

/* Sections & Cards */
.guide-content-section {
  padding: 26px 28px;
  border-radius: 20px;
  border: 1px solid var(--guide-card-border);
  background: var(--guide-card-bg);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  gap: 20px;
  scroll-margin-top: 140px;
  position: relative;
  overflow: hidden;
}

.guide-content-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(144, 104, 248, 0.12), transparent 70%);
  pointer-events: none;
}

.guide-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding-bottom: 14px;
}

.guide-section-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.guide-section-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(144, 104, 248, 0.28), rgba(89, 54, 205, 0.22));
  border: 1px solid rgba(184, 163, 255, 0.3);
  font-size: 18px;
  flex-shrink: 0;
}

.guide-section-title-wrap h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

.guide-section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(144, 104, 248, 0.15);
  border: 1px solid rgba(184, 163, 255, 0.25);
  color: #d1c1ff;
}

.guide-lead-text {
  margin: 0;
  color: #b5b1cb;
  font-size: 14px;
  line-height: 1.8;
}

/* Timeline / Workflow steps */
.guide-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 6px;
}

.timeline-step-card {
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(184, 163, 255, 0.15);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  transition: all 0.2s ease;
}

.timeline-step-card:hover {
  background: rgba(144, 104, 248, 0.05);
  border-color: rgba(184, 163, 255, 0.35);
  transform: translateY(-2px);
}

.step-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.step-num {
  font-size: 11px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 8px;
  background: linear-gradient(135deg, #7c54e7, #a177ff);
  color: #fff;
}

.step-icon {
  font-size: 20px;
}

.timeline-step-card h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: #eee9ff;
}

.timeline-step-card p {
  margin: 0;
  color: #9ea3be;
  font-size: 12px;
  line-height: 1.6;
}

/* Feature Grid for Settings */
.guide-features-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 820px) {
  .guide-features-grid {
    grid-template-columns: 1fr;
  }
}

.guide-feature-box {
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(184, 163, 255, 0.16);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.guide-feature-box.highlight {
  border-color: rgba(144, 104, 248, 0.4);
  background: linear-gradient(145deg, rgba(144, 104, 248, 0.08), rgba(20, 24, 46, 0.6));
}

.feature-box-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-box-top h4 {
  margin: 0;
  font-size: 14.5px;
  font-weight: 800;
  color: #f0ecff;
}

.feature-box-top .tag {
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(144, 104, 248, 0.2);
  color: #cfbaff;
  font-weight: 700;
}

.guide-feature-box p {
  margin: 0;
  font-size: 12.5px;
  color: #a4a8c1;
  line-height: 1.65;
}

.feature-tips-list {
  margin: 4px 0 0;
  padding: 0 16px 0 0;
  color: #c7c3df;
  font-size: 12px;
  line-height: 1.7;
}

.feature-tips-list li {
  margin-bottom: 4px;
}

/* Variables Table */
.variables-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(184, 163, 255, 0.18);
  border-radius: 14px;
  background: rgba(10, 13, 28, 0.4);
}

.variables-table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
  font-size: 13px;
}

.variables-table th {
  padding: 12px 16px;
  background: rgba(144, 104, 248, 0.12);
  color: #d8cbff;
  font-weight: 800;
  border-bottom: 1px solid rgba(184, 163, 255, 0.18);
  white-space: nowrap;
}

.variables-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #b7b3cc;
  vertical-align: middle;
}

.variables-table tr:last-child td {
  border-bottom: none;
}

.variables-table tr:hover td {
  background: rgba(144, 104, 248, 0.04);
}

.var-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(144, 104, 248, 0.18);
  border: 1px solid rgba(184, 163, 255, 0.3);
  color: #f5f2ff;
  font-family: monospace;
  font-size: 12.5px;
  font-weight: 700;
  direction: ltr;
}

.copy-mini-btn {
  border: 0;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 6px;
  padding: 3px 7px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.16s ease;
}

.copy-mini-btn:hover {
  background: #7c54e7;
}

.copy-mini-btn.copied {
  background: #2ecc71 !important;
  color: #fff;
}

/* Interactive Playground */
.variable-playground {
  padding: 18px 20px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(25, 30, 60, 0.6), rgba(13, 16, 35, 0.7));
  border: 1px solid rgba(184, 163, 255, 0.22);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.playground-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.playground-header strong {
  font-size: 13.5px;
  color: #eee9ff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.playground-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(184, 163, 255, 0.25);
  color: #fff;
  font: inherit;
  font-size: 13px;
  resize: vertical;
  min-height: 70px;
  box-sizing: border-box;
}

.playground-input:focus {
  outline: none;
  border-color: #9d77fa;
  box-shadow: 0 0 0 3px rgba(144, 104, 248, 0.16);
}

.playground-preview-box {
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(20, 24, 46, 0.85);
  border: 1px dashed rgba(184, 163, 255, 0.25);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.playground-preview-box small {
  color: #9699ac;
  font-size: 11px;
  font-weight: 700;
}

.playground-preview-output {
  margin: 0;
  color: #fff;
  font-size: 13.5px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.playground-preview-output .mention {
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(88, 101, 242, 0.3);
  color: #c9cdfb;
  font-weight: 700;
}

/* Studio Tabs and Image Editor Showcase */
.studio-tabs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 10px;
}

.studio-tab-btn {
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(184, 163, 255, 0.2);
  background: rgba(255, 255, 255, 0.03);
  color: #ded8f5;
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.studio-tab-btn:hover,
.studio-tab-btn.active {
  background: #7657dc;
  border-color: #8c6cf5;
  color: #fff;
  box-shadow: 0 4px 14px rgba(118, 87, 220, 0.35);
}

.studio-tab-panel {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(184, 163, 255, 0.14);
}

@media (max-width: 800px) {
  .studio-tab-panel {
    grid-template-columns: 1fr;
  }
}

.studio-panel-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.studio-panel-content h4 {
  margin: 0;
  font-size: 15px;
  color: #f1edff;
  font-weight: 800;
}

.studio-panel-content p {
  margin: 0;
  color: #b0acca;
  font-size: 13px;
  line-height: 1.7;
}

.studio-panel-specs {
  display: grid;
  gap: 8px;
}

.spec-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 12px;
}

.spec-item span {
  color: #9295aa;
}

.spec-item strong {
  color: #ddd6f3;
}

.studio-panel-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border-radius: 14px;
  background: linear-gradient(145deg, #181432, #0f1023);
  border: 1px solid rgba(184, 163, 255, 0.2);
  text-align: center;
  gap: 10px;
}

.studio-canvas-mockup {
  position: relative;
  width: 100%;
  aspect-ratio: 1200 / 480;
  border-radius: 10px;
  background: linear-gradient(135deg, #24174c, #0d1836);
  border: 1px solid rgba(184, 163, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.mock-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c54e7, #9f76ff);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  border: 3px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.mock-text-layer {
  position: absolute;
  bottom: 22px;
  text-align: center;
  width: 100%;
}

.mock-title {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.mock-username {
  font-size: 11px;
  font-weight: 700;
  color: #c4aaff;
  margin-top: 2px;
}

/* Discord Simulated Chat View */
.discord-chat-simulation {
  background: #313338;
  border-radius: 14px;
  padding: 18px;
  display: flex;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: 'gg sans', 'Segoe UI', Tahoma, sans-serif;
  color: #dbdee1;
  direction: rtl;
  text-align: right;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.discord-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #875ff6, #5f3fdc);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #fff;
  font-weight: 900;
  font-size: 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.discord-message-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
  min-width: 0;
}

.discord-author-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.discord-bot-name {
  font-weight: 700;
  color: #f2f3f5;
  font-size: 15px;
}

.discord-bot-tag {
  background: #5865f2;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  text-transform: uppercase;
}

.discord-timestamp {
  color: #949ba4;
  font-size: 11px;
}

.discord-text-content {
  color: #dbdee1;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.discord-text-content .mention {
  background: rgba(88, 101, 242, 0.3);
  color: #c9cdfb;
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 600;
}

.discord-image-attachment {
  max-width: 580px;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  margin-top: 4px;
}

.discord-action-buttons-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.discord-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 5px;
  background: #4e5058;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.15s;
}

.discord-link-btn:hover {
  background: #6d6f78;
}

.discord-link-btn svg {
  width: 14px;
  height: 14px;
  opacity: 0.8;
}

/* Template Cards Grid */
.templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.template-card {
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(184, 163, 255, 0.16);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: all 0.2s ease;
}

.template-card:hover {
  background: rgba(144, 104, 248, 0.04);
  border-color: rgba(184, 163, 255, 0.35);
  transform: translateY(-2px);
}

.template-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.template-card-head h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: #ede8ff;
}

.template-text-box {
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(184, 163, 255, 0.14);
  color: #cfcbdf;
  font-size: 12.5px;
  line-height: 1.6;
  white-space: pre-wrap;
  margin: 0;
  font-family: inherit;
}

.template-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 9px;
  border-radius: 9px;
  border: 1px solid rgba(184, 163, 255, 0.25);
  background: rgba(144, 104, 248, 0.14);
  color: #ded8f5;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
}

.template-copy-btn:hover {
  background: rgba(144, 104, 248, 0.26);
  border-color: rgba(184, 163, 255, 0.5);
  color: #fff;
}

.template-copy-btn.copied {
  background: #27ae60 !important;
  border-color: #27ae60 !important;
  color: #fff !important;
}

/* Permissions Checklist */
.perms-checklist-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 760px) {
  .perms-checklist-grid {
    grid-template-columns: 1fr;
  }
}

.perm-item-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(184, 163, 255, 0.14);
}

.perm-icon-status {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(46, 204, 113, 0.18);
  border: 1px solid rgba(46, 204, 113, 0.4);
  color: #2ecc71;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 2px;
}

.perm-info strong {
  display: block;
  font-size: 13px;
  color: #f0ebff;
  margin-bottom: 2px;
}

.perm-info small {
  display: block;
  font-size: 11.5px;
  color: #9295aa;
  line-height: 1.5;
}

/* FAQs Accordion */
.guide-faq-list {
  display: grid;
  gap: 10px;
}

.guide-faq-item {
  border: 1px solid rgba(184, 163, 255, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  transition: all 0.2s ease;
}

.guide-faq-item:hover {
  border-color: rgba(184, 163, 255, 0.35);
}

.guide-faq-question {
  width: 100%;
  padding: 14px 18px;
  border: 0;
  background: transparent;
  color: #eee9ff;
  font: inherit;
  font-size: 13.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: right;
  cursor: pointer;
  gap: 12px;
}

.guide-faq-question i {
  width: 8px;
  height: 8px;
  border-left: 2px solid #a88cff;
  border-bottom: 2px solid #a88cff;
  transform: rotate(-45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.guide-faq-item.is-open .guide-faq-question i {
  transform: rotate(135deg);
}

.guide-faq-answer {
  display: none;
  padding: 0 18px 16px;
  color: #b0acca;
  font-size: 13px;
  line-height: 1.7;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: -2px;
  padding-top: 12px;
}

.guide-faq-item.is-open .guide-faq-answer {
  display: block;
}

/* Call to Action Banner */
.welcome-cta-card {
  padding: 30px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(124, 84, 231, 0.25), rgba(46, 26, 105, 0.35)),
              linear-gradient(145deg, rgba(20, 24, 46, 0.95), rgba(10, 13, 28, 0.95));
  border: 1px solid rgba(184, 163, 255, 0.32);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.25);
}

.welcome-cta-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 550px;
}

.welcome-cta-info h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}

.welcome-cta-info p {
  margin: 0;
  color: #c4aaff;
  font-size: 13.5px;
  line-height: 1.6;
}

.welcome-cta-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.welcome-primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  background: linear-gradient(135deg, #7c54e7, #a175ff);
  color: #fff;
  font-size: 13.5px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  box-shadow: 0 6px 20px rgba(124, 84, 231, 0.4);
  transition: all 0.2s ease;
}

.welcome-primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(124, 84, 231, 0.55);
}

.welcome-secondary-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(184, 163, 255, 0.24);
  color: #ddd6f3;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.welcome-secondary-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Light Theme Overrides for Welcome Guide */
html[data-theme="light"] .welcome-quick-nav {
  background: #ffffff;
  border-color: rgba(135, 95, 246, 0.2);
  box-shadow: 0 8px 24px rgba(50, 30, 90, 0.06);
}

html[data-theme="light"] .welcome-nav-pill {
  background: #f7f4fc;
  border-color: rgba(135, 95, 246, 0.16);
  color: #4b3d68;
}

html[data-theme="light"] .welcome-nav-pill:hover,
html[data-theme="light"] .welcome-nav-pill.active {
  background: rgba(135, 95, 246, 0.14);
  color: #24134a;
}

html[data-theme="light"] .guide-content-section {
  background: #ffffff;
  border-color: rgba(135, 95, 246, 0.18);
  box-shadow: 0 10px 30px rgba(50, 30, 90, 0.05);
}

html[data-theme="light"] .guide-section-title-wrap h3 {
  color: #231b3e;
}

html[data-theme="light"] .guide-lead-text {
  color: #5d5577;
}

html[data-theme="light"] .timeline-step-card {
  background: #faf8fe;
  border-color: rgba(135, 95, 246, 0.16);
}

html[data-theme="light"] .timeline-step-card h4 {
  color: #271c42;
}

html[data-theme="light"] .timeline-step-card p {
  color: #686180;
}

html[data-theme="light"] .guide-feature-box {
  background: #faf8fe;
  border-color: rgba(135, 95, 246, 0.16);
}

html[data-theme="light"] .guide-feature-box.highlight {
  background: linear-gradient(145deg, #f5effe, #ffffff);
}

html[data-theme="light"] .feature-box-top h4 {
  color: #281d43;
}

html[data-theme="light"] .guide-feature-box p {
  color: #5c5573;
}

html[data-theme="light"] .feature-tips-list {
  color: #4d4468;
}

html[data-theme="light"] .variables-table-wrap {
  background: #faf8fe;
  border-color: rgba(135, 95, 246, 0.2);
}

html[data-theme="light"] .variables-table th {
  background: #ede6fc;
  color: #382468;
  border-color: rgba(135, 95, 246, 0.2);
}

html[data-theme="light"] .variables-table td {
  color: #473d61;
  border-color: rgba(135, 95, 246, 0.1);
}

html[data-theme="light"] .var-tag-pill {
  background: #ede6fc;
  border-color: rgba(135, 95, 246, 0.3);
  color: #3a2273;
}

html[data-theme="light"] .copy-mini-btn {
  background: #ded5f5;
  color: #38226e;
}

html[data-theme="light"] .variable-playground {
  background: #f7f4fc;
  border-color: rgba(135, 95, 246, 0.24);
}

html[data-theme="light"] .playground-header strong {
  color: #2b1f48;
}

html[data-theme="light"] .playground-input {
  background: #ffffff;
  border-color: rgba(135, 95, 246, 0.25);
  color: #2b1f48;
}

html[data-theme="light"] .playground-preview-box {
  background: #ffffff;
  border-color: rgba(135, 95, 246, 0.25);
}

html[data-theme="light"] .playground-preview-output {
  color: #2b1f48;
}

html[data-theme="light"] .studio-tab-btn {
  background: #ffffff;
  border-color: rgba(135, 95, 246, 0.2);
  color: #433760;
}

html[data-theme="light"] .studio-tab-panel {
  background: #f7f4fc;
  border-color: rgba(135, 95, 246, 0.18);
}

html[data-theme="light"] .studio-panel-content h4 {
  color: #281d44;
}

html[data-theme="light"] .studio-panel-content p {
  color: #5c5573;
}

html[data-theme="light"] .spec-item {
  background: #ffffff;
}

html[data-theme="light"] .spec-item strong {
  color: #2f234f;
}

html[data-theme="light"] .template-card {
  background: #faf8fe;
  border-color: rgba(135, 95, 246, 0.18);
}

html[data-theme="light"] .template-card-head h4 {
  color: #271c43;
}

html[data-theme="light"] .template-text-box {
  background: #ffffff;
  border-color: rgba(135, 95, 246, 0.18);
  color: #3a2e55;
}

html[data-theme="light"] .template-copy-btn {
  background: #ede6fc;
  border-color: rgba(135, 95, 246, 0.25);
  color: #432b7a;
}

html[data-theme="light"] .perm-item-card {
  background: #faf8fe;
  border-color: rgba(135, 95, 246, 0.16);
}

html[data-theme="light"] .perm-info strong {
  color: #271d43;
}

html[data-theme="light"] .perm-info small {
  color: #635c7c;
}

html[data-theme="light"] .guide-faq-item {
  background: #faf8fe;
  border-color: rgba(135, 95, 246, 0.18);
}

html[data-theme="light"] .guide-faq-question {
  color: #271c43;
}

html[data-theme="light"] .guide-faq-answer {
  color: #595171;
  border-color: rgba(135, 95, 246, 0.12);
}

html[data-theme="light"] .welcome-cta-card {
  background: linear-gradient(135deg, #ede6fc, #f6f1fd);
  border-color: rgba(135, 95, 246, 0.3);
}

html[data-theme="light"] .welcome-cta-info h3 {
  color: #251b41;
}

html[data-theme="light"] .welcome-cta-info p {
  color: #5f4ca6;
}

html[data-theme="light"] .welcome-secondary-btn {
  background: #ffffff;
  border-color: rgba(135, 95, 246, 0.25);
  color: #4b3d6c;
}



/* ==========================================================================
   دليل نظام الخاتمة التلقائية (Auto Signature Guide & Interactive Previews)
   ========================================================================== */

.as-header {
  position: relative;
  overflow: hidden;
}

.as-hero-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
}

.as-hero-subtitle {
  margin: 8px 0 0;
  color: #c9bede;
  font-size: 14.5px;
  line-height: 1.7;
  max-width: 780px;
}

.as-hero-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.as-primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, #7c53e9, #a175ff);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 13.5px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(124, 83, 233, 0.35);
  transition: all 0.2s ease;
}

.as-primary-btn:hover {
  background: linear-gradient(135deg, #8c63f9, #b185ff);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(124, 83, 233, 0.5);
  color: #fff;
}

.as-primary-btn.big {
  padding: 12px 24px;
  font-size: 15px;
}

.as-secondary-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(184, 163, 255, 0.25);
  color: #ded6f9;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.as-secondary-btn:hover {
  background: rgba(144, 104, 248, 0.16);
  border-color: rgba(184, 163, 255, 0.45);
  color: #fff;
}

.as-meta-chips {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.as-meta-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(184, 163, 255, 0.16);
  backdrop-filter: blur(6px);
}

.as-chip-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(144, 104, 248, 0.25), rgba(89, 54, 205, 0.2));
  border: 1px solid rgba(184, 163, 255, 0.22);
  font-size: 18px;
  flex: none;
}

.as-meta-chip div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.3;
}

.as-meta-chip strong {
  font-size: 12px;
  color: #ede7ff;
}

.as-meta-chip span {
  font-size: 11px;
  color: #a89fca;
}

/* Container & Cards */
.as-guide-container {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-top: 24px;
}

.as-card {
  padding: 28px;
  border-radius: 20px;
  border: 1px solid rgba(184, 163, 255, 0.18);
  background: linear-gradient(145deg, rgba(20, 24, 46, 0.82), rgba(11, 14, 28, 0.88));
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 22px;
  transition: border-color 0.2s ease;
}

.as-card:hover {
  border-color: rgba(184, 163, 255, 0.32);
}

.as-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(184, 163, 255, 0.12);
}

.as-icon-badge {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(144, 104, 248, 0.3), rgba(89, 54, 205, 0.25));
  border: 1px solid rgba(184, 163, 255, 0.3);
  font-size: 22px;
  flex: none;
  box-shadow: 0 6px 16px rgba(124, 83, 233, 0.25);
}

.as-card-header h2 {
  margin: 0 0 4px;
  font-size: 19px;
  font-weight: 800;
  color: #fff;
}

.as-card-header p {
  margin: 0;
  color: #b0a6cc;
  font-size: 13px;
}

.as-card-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.as-subheading {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 800;
  color: #ded6f9;
}

/* Alert Boxes */
.as-alert {
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13.5px;
  line-height: 1.6;
}

.as-alert-tip {
  background: rgba(144, 104, 248, 0.1);
  border-color: rgba(184, 163, 255, 0.3);
  color: #ded6f9;
}

.as-alert-tip strong {
  color: #c9b4ff;
  font-size: 14px;
}

/* Workflow Steps */
.as-workflow-wrapper {
  margin-top: 8px;
  padding: 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(184, 163, 255, 0.12);
}

.as-workflow-grid {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin-top: 14px;
}

.as-step-item {
  flex: 1;
  padding: 18px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(184, 163, 255, 0.16);
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.as-step-item:hover {
  transform: translateY(-2px);
  border-color: rgba(184, 163, 255, 0.4);
  background: rgba(144, 104, 248, 0.08);
}

.as-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #7c53e9, #a175ff);
  color: #fff;
  font-weight: 800;
  font-size: 12px;
}

.as-step-item h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}

.as-step-item p {
  margin: 0;
  color: #aba1c6;
  font-size: 12.5px;
  line-height: 1.55;
}

.as-step-connector {
  display: grid;
  place-items: center;
  color: #8c6bf3;
  font-size: 20px;
  font-weight: 900;
  user-select: none;
}

/* Feature Breakdown Grid */
.as-features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.as-feature-box {
  padding: 22px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(184, 163, 255, 0.16);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.2s ease;
}

.as-feature-box:hover {
  border-color: rgba(184, 163, 255, 0.35);
  background: rgba(144, 104, 248, 0.04);
}

.as-feature-wide {
  grid-column: 1 / -1;
}

.as-feature-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.as-feature-badge {
  font-size: 11px;
  font-weight: 700;
  color: #a499c4;
}

.as-badge-status.on {
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(56, 239, 125, 0.16);
  border: 1px solid rgba(56, 239, 125, 0.35);
  color: #55ef88;
  font-size: 11px;
  font-weight: 800;
}

.as-badge-counter {
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(144, 104, 248, 0.18);
  border: 1px solid rgba(184, 163, 255, 0.3);
  color: #d8cbff;
  font-size: 11px;
  font-weight: 800;
}

.as-badge-tag {
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e5ddff;
  font-size: 11px;
  font-weight: 700;
}

.as-badge-tag.purple {
  background: rgba(144, 104, 248, 0.2);
  border-color: rgba(184, 163, 255, 0.35);
  color: #d9ccff;
}

.as-feature-box h3 {
  margin: 0;
  font-size: 15.5px;
  font-weight: 800;
  color: #fff;
}

.as-feature-box p {
  margin: 0;
  color: #aba1c6;
  font-size: 13px;
  line-height: 1.6;
}

.as-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.as-checklist li {
  font-size: 12.5px;
  color: #c4b9de;
  line-height: 1.5;
}

.as-checklist li strong {
  color: #f1edff;
}

/* Type Subgrid */
.as-type-subgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 6px;
}

.as-type-card {
  padding: 16px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(184, 163, 255, 0.14);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.as-type-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.as-type-icon {
  font-size: 18px;
}

.as-type-head strong {
  color: #fff;
  font-size: 14px;
}

.as-type-card p {
  color: #9f96bd;
  font-size: 12.5px;
  margin: 0;
}

.as-type-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11.5px;
  color: #c4b9de;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 8px;
}

/* Preview Section */
.as-preview-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(144, 104, 248, 0.1);
  border: 1px solid rgba(184, 163, 255, 0.25);
}

.as-preview-label {
  font-size: 13.5px;
  font-weight: 800;
  color: #ded6f9;
}

.as-type-selector {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.as-type-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(184, 163, 255, 0.2);
  color: #ded6f9;
  font: 700 13px inherit;
  cursor: pointer;
  transition: all 0.18s ease;
}

.as-type-tab-btn:hover {
  background: rgba(144, 104, 248, 0.18);
  border-color: rgba(184, 163, 255, 0.4);
  color: #fff;
}

.as-type-tab-btn.active {
  background: linear-gradient(135deg, #7c53e9, #a175ff);
  border-color: #a175ff;
  color: #fff;
  box-shadow: 0 4px 14px rgba(124, 83, 233, 0.4);
}

.as-dual-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 10px;
}

.as-preview-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.as-column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
}

.as-badge-view {
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(144, 104, 248, 0.2);
  border: 1px solid rgba(184, 163, 255, 0.3);
  color: #ded6f9;
}

.as-badge-view.discord {
  background: rgba(88, 101, 242, 0.2);
  border-color: rgba(88, 101, 242, 0.4);
  color: #99aab5;
}

.as-column-header small {
  color: #8c85a6;
  font-size: 11.5px;
}

/* Dashboard Mockup Card */
.as-mockup-dashboard {
  border-radius: 16px;
  border: 1px solid rgba(184, 163, 255, 0.2);
  background: #111424;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.as-mockup-rule-card {
  border: 1px solid rgba(184, 163, 255, 0.24);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.as-mockup-rule-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(144, 104, 248, 0.12);
  border-bottom: 1px solid rgba(184, 163, 255, 0.16);
}

.as-mockup-number {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #7c53e9;
  color: #fff;
  font: 800 12px Arial, sans-serif;
}

.as-mockup-title strong {
  display: block;
  font-size: 13px;
  color: #fff;
}

.as-mockup-title small {
  font-size: 10.5px;
  color: #b0a4cb;
}

.as-mockup-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38ef7d;
  box-shadow: 0 0 8px #38ef7d;
  margin-right: auto;
}

.as-mockup-rule-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.as-mockup-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.as-mockup-field label {
  font-size: 12px;
  font-weight: 700;
  color: #ded6f9;
}

.as-mockup-select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(184, 163, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  color: #e0d6fa;
}

.as-mockup-btn-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.as-mockup-type-btn {
  padding: 7px;
  border-radius: 7px;
  border: 1px solid rgba(184, 163, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  color: #c9bfdf;
  font: 700 11px inherit;
  cursor: pointer;
  transition: all 0.16s ease;
}

.as-mockup-type-btn.active {
  border-color: #946df5;
  background: rgba(128, 90, 213, 0.35);
  color: #fff;
}

.as-content-view label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: #ded6f9;
  margin-bottom: 6px;
}

.as-mockup-textarea {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(184, 163, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  color: #ded6f9;
  font-size: 11px;
  line-height: 1.6;
  white-space: pre-wrap;
  font-family: monospace, inherit;
}

.as-mockup-embed-picker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(184, 163, 255, 0.25);
  background: rgba(144, 104, 248, 0.1);
}

.as-picker-preview {
  font-size: 12px;
  font-weight: 700;
  color: #ded6f9;
}

.as-picker-tag {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  background: #7c53e9;
  color: #fff;
}

.as-mockup-upload-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(184, 163, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
}

.as-upload-btn-fake {
  padding: 5px 10px;
  border-radius: 6px;
  background: linear-gradient(135deg, #6f52e3, #9b6dff);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.as-upload-info-fake {
  font-size: 11px;
  color: #38ef7d;
  font-weight: 600;
}

/* Discord Mockup */
.as-mockup-discord {
  border-radius: 16px;
  background: #313338;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  color: #dbdee1;
  display: flex;
  flex-direction: column;
}

.as-discord-channel-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #2b2d31;
  border-bottom: 1px solid #1f2023;
  font-size: 13.5px;
}

.as-discord-hash {
  color: #80848e;
  font-size: 18px;
  font-weight: 700;
}

.as-discord-channel-bar strong {
  color: #f2f3f5;
}

.as-discord-topic {
  font-size: 11.5px;
  color: #949ba4;
  margin-right: auto;
}

.as-discord-messages {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #313338;
}

.as-discord-msg {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.as-msg-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  font-weight: 800;
}

.as-msg-avatar.user-avatar {
  background: #5865f2;
  color: #fff;
  font-size: 15px;
}

.as-msg-avatar.bot-avatar {
  background: linear-gradient(135deg, #7c53e9, #a175ff);
  color: #fff;
}

.as-msg-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.as-msg-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.as-user-name {
  color: #f2f3f5;
  font-size: 14px;
  font-weight: 700;
}

.as-bot-name {
  color: #c9aaff;
  font-size: 14px;
  font-weight: 700;
}

.as-bot-badge {
  background: #5865f2;
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 3px;
}

.as-msg-time {
  font-size: 10.5px;
  color: #949ba4;
}

.as-msg-text {
  font-size: 13.5px;
  color: #dbdee1;
  line-height: 1.5;
}

/* Discord Signature Renderings */
.as-discord-sig {
  margin-top: 4px;
}

.as-sig-text {
  font-size: 12.5px;
  color: #e0d8f5;
  line-height: 1.6;
}

.as-sig-divider {
  margin: 4px 0;
  color: #7c53e9;
  letter-spacing: 2px;
  font-size: 11px;
}

.as-sig-body {
  margin: 0;
}

.as-discord-mention {
  background: rgba(88, 101, 242, 0.3);
  color: #c9cdfb;
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 12px;
}

/* Discord Embed Mockup */
.as-discord-embed-card {
  display: flex;
  border-radius: 4px;
  background: #2b2d31;
  overflow: hidden;
  max-width: 480px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.as-embed-accent {
  width: 4px;
  background: #9068f8;
  flex: none;
}

.as-embed-inner {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.as-embed-author {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #f2f3f5;
}

.as-embed-title {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}

.as-embed-desc {
  margin: 0;
  font-size: 12px;
  color: #dbdee1;
  line-height: 1.5;
}

.as-embed-fields {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.as-embed-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.as-embed-field strong {
  font-size: 11px;
  color: #b5bac1;
}

.as-embed-field span {
  font-size: 11.5px;
  color: #f2f3f5;
}

.as-embed-footer {
  font-size: 10px;
  color: #949ba4;
  padding-top: 4px;
}

/* Fake Image Banner */
.as-discord-image-frame {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.as-fake-banner {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #1b1633, #3a226b, #19142b);
  border: 1px solid rgba(184, 163, 255, 0.3);
  text-align: center;
}

.as-banner-glow {
  position: absolute;
  top: -50%;
  left: 30%;
  width: 40%;
  height: 200%;
  background: radial-gradient(circle, rgba(144, 104, 248, 0.45), transparent 70%);
  transform: rotate(25deg);
  pointer-events: none;
}

.as-banner-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.as-banner-brand {
  font-size: 14px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 1px;
}

.as-banner-content small {
  font-size: 11px;
  color: #cbbde8;
}

.as-img-meta {
  font-size: 10px;
  color: #80848e;
}

/* Use Cases */
.as-usecases-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.as-usecase-card {
  padding: 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(184, 163, 255, 0.16);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.2s ease;
}

.as-usecase-card:hover {
  transform: translateY(-2px);
  border-color: rgba(184, 163, 255, 0.35);
  background: rgba(144, 104, 248, 0.05);
}

.as-usecase-icon {
  font-size: 26px;
}

.as-usecase-card h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
}

.as-usecase-card p {
  margin: 0;
  font-size: 12.5px;
  color: #b0a4cb;
  line-height: 1.6;
}

.as-usecase-tag {
  font-size: 11.5px;
  color: #ded6f9;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.as-usecase-tag strong {
  color: #a175ff;
}

/* Permissions Table */
.as-table-wrapper {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid rgba(184, 163, 255, 0.18);
  background: rgba(255, 255, 255, 0.02);
}

.as-permissions-table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
  font-size: 13px;
}

.as-permissions-table th {
  padding: 14px 18px;
  background: rgba(144, 104, 248, 0.12);
  color: #fff;
  font-weight: 800;
  border-bottom: 1px solid rgba(184, 163, 255, 0.2);
}

.as-permissions-table td {
  padding: 13px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #d2c8ea;
}

.as-permissions-table tr:last-child td {
  border-bottom: none;
}

.as-permissions-table code {
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(144, 104, 248, 0.18);
  border: 1px solid rgba(184, 163, 255, 0.25);
  color: #eedeff;
  font-size: 12px;
}

.as-pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.as-pill.required {
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.as-pill.recommended {
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #7dd3fc;
}

/* Tips Grid */
.as-tips-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.as-tip-card {
  padding: 18px 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(184, 163, 255, 0.16);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.as-tip-icon {
  font-size: 24px;
}

.as-tip-card h4 {
  margin: 0;
  font-size: 14.5px;
  font-weight: 800;
  color: #fff;
}

.as-tip-card p {
  margin: 0;
  color: #aba1c6;
  font-size: 12.5px;
  line-height: 1.6;
}

/* FAQ Accordion */
.as-faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.as-faq-item {
  border-radius: 12px;
  border: 1px solid rgba(184, 163, 255, 0.16);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  transition: all 0.2s ease;
}

.as-faq-item[open] {
  border-color: rgba(184, 163, 255, 0.35);
  background: rgba(144, 104, 248, 0.05);
}

.as-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 800;
  color: #fff;
  user-select: none;
  list-style: none;
}

.as-faq-question::-webkit-details-marker {
  display: none;
}

.as-faq-arrow {
  width: 8px;
  height: 8px;
  border-left: 2px solid #a88cff;
  border-bottom: 2px solid #a88cff;
  transform: rotate(-45deg);
  transition: transform 0.2s ease;
}

.as-faq-item[open] .as-faq-arrow {
  transform: rotate(135deg);
}

.as-faq-answer {
  padding: 0 20px 18px;
  color: #c4b9de;
  font-size: 13.5px;
  line-height: 1.7;
}

.as-faq-answer p {
  margin: 0 0 10px;
}

.as-faq-answer ol {
  margin: 0;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Bottom CTA Banner */
.as-bottom-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: 30px;
  border-radius: 20px;
  border: 1px solid rgba(184, 163, 255, 0.3);
  background: radial-gradient(circle at 10% 50%, rgba(144, 104, 248, 0.28), transparent 60%),
              linear-gradient(145deg, rgba(22, 26, 52, 0.95), rgba(11, 14, 30, 0.96));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.as-cta-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.as-cta-sparkle {
  font-size: 36px;
}

.as-cta-content h3 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}

.as-cta-content p {
  margin: 0;
  color: #bfaee3;
  font-size: 13.5px;
}

.as-cta-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Light Theme Overrides */
html[data-theme="light"] .as-hero-subtitle {
  color: #5d5479;
}

html[data-theme="light"] .as-meta-chip {
  background: #ffffff;
  border-color: rgba(135, 95, 246, 0.2);
  box-shadow: 0 4px 12px rgba(50, 30, 90, 0.04);
}

html[data-theme="light"] .as-meta-chip strong {
  color: #271c43;
}

html[data-theme="light"] .as-meta-chip span {
  color: #635c7e;
}

html[data-theme="light"] .as-card {
  background: #ffffff;
  border-color: rgba(135, 95, 246, 0.18);
  box-shadow: 0 10px 30px rgba(50, 30, 90, 0.06);
}

html[data-theme="light"] .as-card-header h2 {
  color: #241c3c;
}

html[data-theme="light"] .as-card-header p {
  color: #635c7e;
}

html[data-theme="light"] .as-card-header {
  border-bottom-color: rgba(135, 95, 246, 0.15);
}

html[data-theme="light"] .as-subheading {
  color: #3b2c66;
}

html[data-theme="light"] .as-concept-text p {
  color: #3f365c;
}

html[data-theme="light"] .as-alert-tip {
  background: #f7f4fd;
  border-color: rgba(135, 95, 246, 0.3);
  color: #4b3d75;
}

html[data-theme="light"] .as-alert-tip strong {
  color: #4f2fb9;
}

html[data-theme="light"] .as-workflow-wrapper {
  background: #fbf9fe;
  border-color: rgba(135, 95, 246, 0.18);
}

html[data-theme="light"] .as-step-item {
  background: #ffffff;
  border-color: rgba(135, 95, 246, 0.2);
  box-shadow: 0 4px 12px rgba(50, 30, 90, 0.03);
}

html[data-theme="light"] .as-step-item h4 {
  color: #281e44;
}

html[data-theme="light"] .as-step-item p {
  color: #615a7d;
}

html[data-theme="light"] .as-feature-box {
  background: #faf8fe;
  border-color: rgba(135, 95, 246, 0.2);
}

html[data-theme="light"] .as-feature-box h3 {
  color: #251d3e;
}

html[data-theme="light"] .as-feature-box p {
  color: #5c5578;
}

html[data-theme="light"] .as-checklist li {
  color: #50476e;
}

html[data-theme="light"] .as-checklist li strong {
  color: #241c3c;
}

html[data-theme="light"] .as-type-card {
  background: #f3eefc;
  border-color: rgba(135, 95, 246, 0.2);
}

html[data-theme="light"] .as-type-head strong {
  color: #281d44;
}

html[data-theme="light"] .as-type-card p {
  color: #5a5276;
}

html[data-theme="light"] .as-type-details {
  color: #4a416a;
  border-top-color: rgba(135, 95, 246, 0.15);
}

html[data-theme="light"] .as-preview-controls {
  background: #f7f3fd;
  border-color: rgba(135, 95, 246, 0.25);
}

html[data-theme="light"] .as-preview-label {
  color: #281e44;
}

html[data-theme="light"] .as-type-tab-btn {
  background: #ffffff;
  border-color: rgba(135, 95, 246, 0.25);
  color: #473970;
}

html[data-theme="light"] .as-type-tab-btn.active {
  background: linear-gradient(135deg, #7c53e9, #a175ff);
  color: #fff;
}

html[data-theme="light"] .as-badge-view {
  background: rgba(135, 95, 246, 0.12);
  border-color: rgba(135, 95, 246, 0.25);
  color: #5131a8;
}

html[data-theme="light"] .as-usecase-card {
  background: #faf8fe;
  border-color: rgba(135, 95, 246, 0.2);
}

html[data-theme="light"] .as-usecase-card h3 {
  color: #281d44;
}

html[data-theme="light"] .as-usecase-card p {
  color: #5d5578;
}

html[data-theme="light"] .as-usecase-tag {
  border-top-color: rgba(135, 95, 246, 0.15);
  color: #473c68;
}

html[data-theme="light"] .as-table-wrapper {
  border-color: rgba(135, 95, 246, 0.2);
  background: #ffffff;
}

html[data-theme="light"] .as-permissions-table th {
  background: #f4effc;
  color: #2b1f48;
  border-bottom-color: rgba(135, 95, 246, 0.2);
}

html[data-theme="light"] .as-permissions-table td {
  color: #483f65;
  border-bottom-color: rgba(135, 95, 246, 0.1);
}

html[data-theme="light"] .as-permissions-table code {
  background: #efe8fa;
  border-color: rgba(135, 95, 246, 0.25);
  color: #4f2fb9;
}

html[data-theme="light"] .as-tip-card {
  background: #faf8fe;
  border-color: rgba(135, 95, 246, 0.2);
}

html[data-theme="light"] .as-tip-card h4 {
  color: #281d44;
}

html[data-theme="light"] .as-tip-card p {
  color: #5d5578;
}

html[data-theme="light"] .as-faq-item {
  background: #faf8fe;
  border-color: rgba(135, 95, 246, 0.2);
}

html[data-theme="light"] .as-faq-question {
  color: #281d44;
}

html[data-theme="light"] .as-faq-answer {
  color: #554d70;
}

html[data-theme="light"] .as-bottom-cta {
  background: radial-gradient(circle at 10% 50%, rgba(135, 95, 246, 0.16), transparent 60%),
              linear-gradient(145deg, #ffffff, #f7f4fc);
  border-color: rgba(135, 95, 246, 0.25);
  box-shadow: 0 16px 40px rgba(50, 30, 90, 0.08);
}

html[data-theme="light"] .as-cta-content h3 {
  color: #281d44;
}

html[data-theme="light"] .as-cta-content p {
  color: #5d5578;
}

/* Responsive Styles */
@media (max-width: 1050px) {
  .as-features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .as-type-subgrid {
    grid-template-columns: 1fr;
  }
  .as-meta-chips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .as-dual-preview-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .as-workflow-grid {
    flex-direction: column;
  }
  .as-step-connector {
    transform: rotate(90deg);
  }
  .as-features-grid,
  .as-usecases-grid,
  .as-tips-grid {
    grid-template-columns: 1fr;
  }
  .as-meta-chips {
    grid-template-columns: 1fr;
  }
  .as-bottom-cta {
    flex-direction: column;
    align-items: flex-start;
  }
  .as-cta-actions {
    width: 100%;
    flex-direction: column;
  }
  .as-primary-btn,
  .as-secondary-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   دليل نظام الرد التلقائي (Auto-Responder Guide & Interactive Simulator)
   ========================================================================== */

.ar-header {
  position: relative;
  overflow: hidden;
}

.ar-hero-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.ar-hero-subtitle {
  margin: 10px 0 0;
  max-width: 820px;
  color: #cbbde8;
  font-size: 14.5px;
  line-height: 1.7;
}

.ar-hero-cta {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ar-primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, #7c53e9, #a877ff);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(124, 83, 233, 0.4);
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.ar-primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(124, 83, 233, 0.55);
  background: linear-gradient(135deg, #6c41dd, #9962fc);
}

.ar-secondary-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(184, 163, 255, 0.25);
  color: #d1ccdf;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.18s ease;
}

.ar-secondary-btn:hover {
  background: rgba(144, 104, 248, 0.15);
  border-color: rgba(184, 163, 255, 0.45);
  color: #fff;
}

/* Quick Meta Chips */
.ar-meta-chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ar-meta-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(184, 163, 255, 0.14);
}

.ar-chip-icon {
  font-size: 18px;
  flex: none;
}

.ar-meta-chip strong {
  display: block;
  font-size: 11px;
  color: #a79ad2;
}

.ar-meta-chip span {
  display: block;
  font-size: 11.5px;
  color: #f1edff;
  font-weight: 700;
}

/* Guide Container & Sticky Nav */
.ar-guide-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 20px;
}

.ar-sticky-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(20, 24, 46, 0.88), rgba(11, 14, 28, 0.92));
  border: 1px solid rgba(184, 163, 255, 0.18);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 16px;
  z-index: 30;
  overflow-x: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  scrollbar-width: none;
}

.ar-sticky-nav::-webkit-scrollbar {
  display: none;
}

.ar-nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.04);
  color: #c9c5dc;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.18s ease;
}

.ar-nav-pill:hover {
  background: rgba(144, 104, 248, 0.18);
  border-color: rgba(184, 163, 255, 0.35);
  color: #fff;
  transform: translateY(-1px);
}

.ar-nav-pill.active {
  background: linear-gradient(135deg, #7c53e9, #9d6ef8);
  color: #fff;
  border-color: rgba(184, 163, 255, 0.5);
  box-shadow: 0 3px 12px rgba(124, 83, 233, 0.35);
}

/* Card Blocks */
.ar-card {
  padding: 26px 28px;
  border-radius: 20px;
  border: 1px solid rgba(184, 163, 255, 0.16);
  background: linear-gradient(145deg, rgba(18, 22, 42, 0.75), rgba(11, 14, 28, 0.8));
  backdrop-filter: blur(8px);
  scroll-margin-top: 85px;
}

.ar-card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.ar-icon-badge {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(144, 104, 248, 0.28), rgba(95, 63, 220, 0.22));
  border: 1px solid rgba(184, 163, 255, 0.32);
  color: #c9b2ff;
  font-size: 20px;
  flex: none;
}

.ar-card-header h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  color: #fff;
}

.ar-card-header p {
  margin: 4px 0 0;
  color: #a4a0c0;
  font-size: 13px;
  line-height: 1.5;
}

/* Concept & Alert */
.ar-concept-text p {
  margin: 0 0 14px;
  color: #cfc8e6;
  font-size: 14px;
  line-height: 1.7;
}

.ar-alert {
  padding: 14px 18px;
  border-radius: 12px;
  margin: 14px 0;
}

.ar-alert.ar-alert-tip {
  background: rgba(144, 104, 248, 0.12);
  border: 1px solid rgba(184, 163, 255, 0.25);
  color: #e5dcff;
}

.ar-alert strong {
  display: block;
  font-size: 13px;
  color: #fff;
  margin-bottom: 6px;
}

.ar-alert span {
  font-size: 12.5px;
  line-height: 1.6;
  color: #cfc8ea;
}

/* Workflow Lifecycle */
.ar-workflow-wrapper {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.ar-subheading {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 800;
  color: #ede7ff;
}

.ar-workflow-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 8px;
  align-items: center;
}

.ar-step-item {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(184, 163, 255, 0.2);
  background: linear-gradient(145deg, rgba(28, 24, 52, 0.6), rgba(16, 14, 32, 0.7));
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ar-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, #7c53e9, #a375ff);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.ar-step-item h4 {
  margin: 0;
  font-size: 13.5px;
  font-weight: 800;
  color: #fff;
}

.ar-step-item p {
  margin: 0;
  color: #a7a4bf;
  font-size: 11.5px;
  line-height: 1.5;
}

.ar-step-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(144, 104, 248, 0.15);
  border: 1px solid rgba(184, 163, 255, 0.2);
  color: #cbbaff;
  font-size: 10.5px;
  font-weight: 700;
  margin-top: auto;
}

.ar-step-badge.success {
  background: rgba(56, 239, 125, 0.15);
  border-color: rgba(56, 239, 125, 0.35);
  color: #8ef5b4;
}

.ar-step-connector {
  font-size: 20px;
  color: #a88cff;
  font-weight: 800;
  user-select: none;
}

/* Features Grid */
.ar-features-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ar-feature-box {
  padding: 20px;
  border-radius: 16px;
  border: 1px solid rgba(184, 163, 255, 0.16);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.2s ease;
}

.ar-feature-box:hover {
  border-color: rgba(184, 163, 255, 0.35);
  background: rgba(144, 104, 248, 0.04);
}

.ar-feature-box.as-feature-wide {
  grid-column: 1 / -1;
}

.ar-feature-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ar-feature-badge {
  font-size: 11px;
  font-weight: 800;
  color: #a88cff;
}

.ar-badge-status.on {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(56, 239, 125, 0.15);
  border: 1px solid rgba(56, 239, 125, 0.3);
  color: #8ef5b4;
  font-size: 11px;
  font-weight: 800;
}

.ar-badge-counter {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(144, 104, 248, 0.16);
  border: 1px solid rgba(184, 163, 255, 0.28);
  color: #d6c6ff;
  font-size: 11px;
  font-weight: 800;
}

.ar-badge-tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #d1ccdf;
  font-size: 11px;
  font-weight: 700;
}

.ar-badge-tag.purple {
  background: rgba(144, 104, 248, 0.18);
  border-color: rgba(184, 163, 255, 0.35);
  color: #dccfff;
}

.ar-badge-tag.green {
  background: rgba(56, 239, 125, 0.15);
  border-color: rgba(56, 239, 125, 0.35);
  color: #8ef5b4;
}

.ar-feature-box h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
}

.ar-feature-box p {
  margin: 0;
  color: #aca7c5;
  font-size: 13px;
  line-height: 1.6;
}

.ar-checklist {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.ar-checklist li {
  position: relative;
  padding-right: 18px;
  color: #9fa0b8;
  font-size: 12.5px;
  line-height: 1.5;
}

.ar-checklist li::before {
  content: "✔";
  position: absolute;
  right: 0;
  top: 0;
  color: #8ce196;
  font-size: 11px;
  font-weight: 800;
}

.ar-checklist li code {
  background: rgba(144, 104, 248, 0.18);
  border: 1px solid rgba(184, 163, 255, 0.25);
  padding: 1px 5px;
  border-radius: 4px;
  color: #f1edff;
  font-size: 11px;
}

/* Type subgrid */
.ar-type-subgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 10px;
}

.ar-type-card {
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(184, 163, 255, 0.18);
  background: rgba(10, 13, 28, 0.5);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ar-type-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ar-type-icon {
  font-size: 18px;
}

.ar-type-head strong {
  font-size: 14px;
  color: #fff;
}

.ar-type-card p {
  margin: 0;
  color: #b0acca;
  font-size: 12px;
}

.ar-type-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ar-type-details span {
  font-size: 11.5px;
  color: #9295aa;
  line-height: 1.5;
}

/* Interactive Simulator Toolbar */
.ar-sim-toolbar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(10, 13, 28, 0.65);
  border: 1px solid rgba(184, 163, 255, 0.18);
  margin-bottom: 20px;
}

.ar-sim-input-row label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #f1edff;
  margin-bottom: 8px;
}

.ar-input-group {
  display: flex;
  gap: 8px;
}

.ar-test-input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(184, 163, 255, 0.25);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}

.ar-test-input:focus {
  border-color: #8c63ff;
  background: rgba(255, 255, 255, 0.08);
}

.ar-sim-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 0;
  background: linear-gradient(135deg, #7c53e9, #a072ff);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.ar-sim-submit-btn:hover {
  background: linear-gradient(135deg, #6c3fdd, #9260fc);
  transform: translateY(-1px);
}

.ar-preset-chips-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.ar-chips-label {
  font-size: 12px;
  color: #9295aa;
}

.ar-kw-chip {
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid rgba(184, 163, 255, 0.2);
  background: rgba(144, 104, 248, 0.12);
  color: #d1beff;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
}

.ar-kw-chip:hover,
.ar-kw-chip.active {
  background: rgba(144, 104, 248, 0.28);
  border-color: #946df5;
  color: #fff;
}

.ar-sim-options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ar-type-selector {
  display: flex;
  gap: 8px;
}

.ar-type-tab-btn {
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid rgba(184, 163, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  color: #aba8c4;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.ar-type-tab-btn.active {
  background: rgba(144, 104, 248, 0.25);
  border-color: #8d62fc;
  color: #fff;
}

.ar-sim-toggle-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 12.5px;
  color: #ded6f9;
}

.ar-toggle-switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 20px;
}

.ar-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.ar-toggle-switch i {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  transition: 0.22s;
}

.ar-toggle-switch i:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.22s;
}

.ar-toggle-switch input:checked + i {
  background: #7c53e9;
}

.ar-toggle-switch input:checked + i:before {
  transform: translateX(18px);
}

/* Dual Preview Grid */
.ar-dual-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.ar-preview-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ar-column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ar-badge-view {
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(144, 104, 248, 0.15);
  border: 1px solid rgba(184, 163, 255, 0.25);
  color: #d1beff;
  font-size: 11.5px;
  font-weight: 800;
}

.ar-badge-view.discord {
  background: rgba(88, 101, 242, 0.18);
  border-color: rgba(88, 101, 242, 0.35);
  color: #c9cdfb;
}

.ar-column-header small {
  color: #8e91aa;
  font-size: 11px;
}

/* Mockup Dashboard */
.ar-mockup-dashboard {
  border-radius: 14px;
  border: 1px solid rgba(184, 163, 255, 0.18);
  background: rgba(10, 13, 26, 0.7);
  padding: 16px;
}

.ar-mockup-rule-card {
  border-radius: 12px;
  border: 1px solid rgba(184, 163, 255, 0.2);
  background: rgba(20, 24, 46, 0.6);
  overflow: hidden;
}

.ar-mockup-rule-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ar-mockup-number {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: rgba(144, 104, 248, 0.25);
  color: #c9b4ff;
  font-size: 12px;
  font-weight: 800;
}

.ar-mockup-title {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ar-mockup-title strong {
  font-size: 12.5px;
  color: #fff;
}

.ar-mockup-title small {
  font-size: 10px;
  color: #9295aa;
}

.ar-mockup-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38ef7d;
  box-shadow: 0 0 8px #38ef7d;
}

.ar-mockup-rule-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ar-mockup-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.ar-mockup-field label {
  font-size: 11.5px;
  font-weight: 700;
  color: #ded6f9;
}

.ar-mockup-kw-count {
  font-size: 11px;
  color: #a88cff;
  font-weight: 700;
}

.ar-mockup-keywords-box {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ar-mockup-kw-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ar-mockup-kw-row input {
  flex: 1;
  padding: 6px 10px;
  border-radius: 7px;
  border: 1px solid rgba(184, 163, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font: inherit;
  font-size: 11.5px;
  outline: none;
}

.ar-kw-req-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 5px;
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.ar-kw-opt-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 5px;
  background: rgba(56, 239, 125, 0.15);
  color: #86efac;
  border: 1px solid rgba(56, 239, 125, 0.3);
}

.ar-mockup-select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: 7px;
  border: 1px solid rgba(184, 163, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  font-size: 11.5px;
  color: #e0d6fa;
  margin-top: 4px;
}

.ar-mockup-btn-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 4px;
}

.ar-mockup-type-btn {
  padding: 6px;
  border-radius: 7px;
  border: 1px solid rgba(184, 163, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  color: #c9bfdf;
  font: 700 11px inherit;
  cursor: pointer;
  transition: all 0.16s ease;
}

.ar-mockup-type-btn.active {
  border-color: #946df5;
  background: rgba(128, 90, 213, 0.35);
  color: #fff;
}

.ar-mockup-textarea {
  padding: 9px;
  border-radius: 8px;
  border: 1px solid rgba(184, 163, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  color: #ded6f9;
  font-size: 11px;
  line-height: 1.55;
  white-space: pre-wrap;
  margin-top: 4px;
}

.ar-mockup-embed-picker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(184, 163, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  margin-top: 4px;
}

.ar-picker-preview {
  font-size: 11.5px;
  color: #fff;
  font-weight: 700;
}

.ar-picker-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(144, 104, 248, 0.2);
  color: #cbb4ff;
}

/* Mockup Discord */
.ar-mockup-discord {
  border-radius: 14px;
  background: #313338;
  border: 1px solid #232428;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.ar-discord-channel-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #2b2d31;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.ar-discord-hash {
  font-size: 16px;
  color: #80848e;
  font-weight: 800;
}

.ar-discord-channel-bar strong {
  font-size: 13.5px;
  color: #f2f3f5;
}

.ar-discord-topic {
  font-size: 11px;
  color: #949ba4;
  margin-right: auto;
}

.ar-discord-messages {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ar-discord-msg {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.ar-msg-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.ar-msg-avatar.user-avatar {
  background: #5865f2;
  color: #fff;
  font-size: 14px;
}

.ar-msg-avatar.bot-avatar {
  background: linear-gradient(135deg, #7c53e9, #a879ff);
  color: #fff;
}

.ar-msg-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ar-msg-header {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ar-user-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #f2f3f5;
}

.ar-bot-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #f2f3f5;
}

.ar-bot-badge {
  background: #5865f2;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 4px;
  line-height: 1.2;
}

.ar-msg-time {
  font-size: 11px;
  color: #949ba4;
}

.ar-msg-text {
  font-size: 13px;
  line-height: 1.5;
  color: #dbdee1;
  word-break: break-word;
}

.ar-highlight-kw {
  background: rgba(144, 104, 248, 0.35);
  color: #f1edff;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 4px;
  border-bottom: 2px solid #8c63ff;
}

.ar-discord-mention-line {
  margin-bottom: 3px;
}

.ar-discord-mention {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(88, 101, 242, 0.25);
  color: #c9cdfb;
  font-weight: 600;
  font-size: 12.5px;
}

.ar-discord-reply-text p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #dbdee1;
}

.ar-discord-link {
  color: #00a8fc;
  text-decoration: underline;
  cursor: pointer;
}

/* Discord Embed Card */
.ar-discord-embed-card {
  position: relative;
  display: flex;
  border-radius: 4px;
  background: #2b2d31;
  max-width: 500px;
  overflow: hidden;
  margin-top: 4px;
}

.ar-embed-accent {
  width: 4px;
  background: #7c53e9;
  flex: none;
}

.ar-embed-inner {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}

.ar-embed-author {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: #f2f3f5;
}

.ar-embed-author-icon {
  font-size: 14px;
}

.ar-embed-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.ar-embed-desc {
  margin: 0;
  font-size: 12.5px;
  color: #dbdee1;
  line-height: 1.45;
}

.ar-embed-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}

.ar-embed-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ar-embed-field strong {
  font-size: 11.5px;
  color: #fff;
}

.ar-embed-field span {
  font-size: 11.5px;
  color: #b5bac1;
}

.ar-embed-footer {
  font-size: 10.5px;
  color: #949ba4;
  margin-top: 4px;
}

/* Presets Grid */
.ar-presets-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.ar-preset-card {
  padding: 20px;
  border-radius: 16px;
  border: 1px solid rgba(184, 163, 255, 0.18);
  background: linear-gradient(145deg, rgba(22, 26, 48, 0.6), rgba(12, 15, 30, 0.7));
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.2s ease;
}

.ar-preset-card:hover {
  border-color: rgba(184, 163, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.ar-preset-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ar-preset-icon {
  font-size: 22px;
  flex: none;
}

.ar-preset-head h4 {
  margin: 0;
  font-size: 14.5px;
  font-weight: 800;
  color: #fff;
}

.ar-preset-head small {
  color: #9295aa;
  font-size: 11px;
}

.ar-preset-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ar-meta-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ar-meta-row span {
  font-size: 11px;
  color: #8e91aa;
}

.ar-meta-row b {
  font-size: 11.5px;
  color: #d8cdfc;
}

.ar-kw-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.ar-kw-badge {
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(144, 104, 248, 0.15);
  border: 1px solid rgba(184, 163, 255, 0.2);
  color: #d1bfff;
  font-size: 10.5px;
  font-weight: 700;
}

.ar-preset-text-box {
  padding: 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  max-height: 85px;
  overflow-y: auto;
}

.ar-preset-code {
  margin: 0;
  font-family: inherit;
  font-size: 11.5px;
  color: #b9b6d0;
  line-height: 1.5;
  white-space: pre-wrap;
}

.ar-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(184, 163, 255, 0.25);
  background: rgba(144, 104, 248, 0.12);
  color: #ded5ff;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  margin-top: auto;
}

.ar-copy-btn:hover {
  background: rgba(144, 104, 248, 0.25);
  border-color: rgba(184, 163, 255, 0.5);
  color: #fff;
}

.ar-copy-btn.copied {
  background: rgba(56, 239, 125, 0.2);
  border-color: #38ef7d;
  color: #8ef5b4;
}

/* Permissions Grid */
.ar-perms-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ar-perm-card {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(184, 163, 255, 0.15);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  gap: 12px;
}

.ar-perm-badge {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  flex: none;
}

.ar-perm-badge.ok {
  background: rgba(56, 239, 125, 0.15);
  border: 1px solid rgba(56, 239, 125, 0.35);
  color: #38ef7d;
}

.ar-perm-badge.info {
  background: rgba(144, 104, 248, 0.18);
  border: 1px solid rgba(184, 163, 255, 0.35);
  color: #c9b4ff;
}

.ar-perm-info strong {
  display: block;
  font-size: 13px;
  color: #fff;
}

.ar-perm-info p {
  margin: 2px 0 0;
  font-size: 11.5px;
  color: #9295aa;
  line-height: 1.45;
}

/* FAQ Grid */
.ar-faq-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ar-faq-item {
  border-radius: 12px;
  border: 1px solid rgba(184, 163, 255, 0.15);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  transition: border-color 0.18s;
}

.ar-faq-item:hover {
  border-color: rgba(184, 163, 255, 0.3);
}

.ar-faq-toggle {
  width: 100%;
  padding: 14px 18px;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 13.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: right;
  cursor: pointer;
}

.ar-faq-toggle i {
  width: 7px;
  height: 7px;
  border-left: 2px solid #a88cff;
  border-bottom: 2px solid #a88cff;
  transform: rotate(-45deg);
  transition: transform 0.22s ease;
  flex: none;
}

.ar-faq-item.is-open .ar-faq-toggle i {
  transform: rotate(135deg);
}

.ar-faq-answer {
  padding: 0 18px 16px;
  color: #aaa6c2;
  font-size: 13px;
  line-height: 1.6;
  display: none;
}

.ar-faq-item.is-open .ar-faq-answer {
  display: block;
}

/* Bottom CTA */
.ar-bottom-cta {
  padding: 26px 30px;
  border-radius: 20px;
  border: 1px solid rgba(184, 163, 255, 0.24);
  background: radial-gradient(circle at 10% 50%, rgba(144, 104, 248, 0.18), transparent 50%),
              linear-gradient(145deg, rgba(22, 26, 52, 0.9), rgba(11, 14, 30, 0.92));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.2);
}

.ar-cta-text h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

.ar-cta-text p {
  margin: 0;
  color: #a7a1c4;
  font-size: 13px;
}

.ar-cta-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

/* Light Theme Overrides for Auto-Responder Guide */
html[data-theme="light"] .ar-hero-subtitle {
  color: #554d72;
}

html[data-theme="light"] .ar-meta-chip {
  background: #f7f4fd;
  border-color: rgba(135, 95, 246, 0.18);
}

html[data-theme="light"] .ar-meta-chip strong {
  color: #6a4ec7;
}

html[data-theme="light"] .ar-meta-chip span {
  color: #241c3c;
}

html[data-theme="light"] .ar-sticky-nav {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(135, 95, 246, 0.22);
  box-shadow: 0 8px 24px rgba(60, 40, 100, 0.08);
}

html[data-theme="light"] .ar-nav-pill {
  background: rgba(135, 95, 246, 0.06);
  color: #433966;
}

html[data-theme="light"] .ar-nav-pill:hover {
  background: rgba(135, 95, 246, 0.15);
  color: #1e1145;
}

html[data-theme="light"] .ar-nav-pill.active {
  background: linear-gradient(135deg, #7c53e9, #9d6ef8);
  color: #fff;
}

html[data-theme="light"] .ar-card {
  background: #ffffff;
  border-color: rgba(135, 95, 246, 0.2);
  box-shadow: 0 8px 24px rgba(60, 40, 100, 0.06);
}

html[data-theme="light"] .ar-card-header h2 {
  color: #241a46;
}

html[data-theme="light"] .ar-card-header p {
  color: #5c5579;
}

html[data-theme="light"] .ar-concept-text p {
  color: #423b5d;
}

html[data-theme="light"] .ar-alert.ar-alert-tip {
  background: #f4effd;
  border-color: rgba(135, 95, 246, 0.3);
}

html[data-theme="light"] .ar-alert strong {
  color: #311c6d;
}

html[data-theme="light"] .ar-alert span {
  color: #4b416e;
}

html[data-theme="light"] .ar-subheading {
  color: #241a46;
}

html[data-theme="light"] .ar-step-item {
  background: #f8f6fd;
  border-color: rgba(135, 95, 246, 0.22);
}

html[data-theme="light"] .ar-step-item h4 {
  color: #281d4a;
}

html[data-theme="light"] .ar-step-item p {
  color: #5f577f;
}

html[data-theme="light"] .ar-feature-box {
  background: #faf8fd;
  border-color: rgba(135, 95, 246, 0.16);
}

html[data-theme="light"] .ar-feature-box:hover {
  background: #f5effe;
  border-color: rgba(135, 95, 246, 0.38);
}

html[data-theme="light"] .ar-feature-box h3 {
  color: #251b47;
}

html[data-theme="light"] .ar-feature-box p {
  color: #574f73;
}

html[data-theme="light"] .ar-checklist li {
  color: #554e70;
}

html[data-theme="light"] .ar-checklist li code {
  background: rgba(135, 95, 246, 0.1);
  border-color: rgba(135, 95, 246, 0.25);
  color: #3b2289;
}

html[data-theme="light"] .ar-type-card {
  background: #f4f0fb;
  border-color: rgba(135, 95, 246, 0.2);
}

html[data-theme="light"] .ar-type-head strong {
  color: #261c47;
}

html[data-theme="light"] .ar-type-card p {
  color: #5a5377;
}

html[data-theme="light"] .ar-type-details span {
  color: #6a6485;
}

html[data-theme="light"] .ar-sim-toolbar {
  background: #f8f6fd;
  border-color: rgba(135, 95, 246, 0.2);
}

html[data-theme="light"] .ar-sim-input-row label {
  color: #241a45;
}

html[data-theme="light"] .ar-test-input {
  background: #ffffff;
  border-color: rgba(135, 95, 246, 0.25);
  color: #271c46;
}

html[data-theme="light"] .ar-kw-chip {
  background: #f0ebfa;
  border-color: rgba(135, 95, 246, 0.2);
  color: #4b3687;
}

html[data-theme="light"] .ar-kw-chip:hover,
html[data-theme="light"] .ar-kw-chip.active {
  background: #8058e7;
  color: #fff;
  border-color: #8058e7;
}

html[data-theme="light"] .ar-type-tab-btn {
  background: #ffffff;
  border-color: rgba(135, 95, 246, 0.2);
  color: #4b416e;
}

html[data-theme="light"] .ar-type-tab-btn.active {
  background: #8058e7;
  color: #fff;
}

html[data-theme="light"] .ar-sim-toggle-label {
  color: #291e4c;
}

html[data-theme="light"] .ar-mockup-dashboard {
  background: #f9f7fe;
  border-color: rgba(135, 95, 246, 0.2);
}

html[data-theme="light"] .ar-mockup-rule-card {
  background: #ffffff;
  border-color: rgba(135, 95, 246, 0.18);
}

html[data-theme="light"] .ar-mockup-rule-head {
  background: #faf8fd;
  border-color: rgba(135, 95, 246, 0.12);
}

html[data-theme="light"] .ar-mockup-title strong {
  color: #251c44;
}

html[data-theme="light"] .ar-mockup-kw-row input {
  background: #faf8fd;
  border-color: rgba(135, 95, 246, 0.2);
  color: #261c46;
}

html[data-theme="light"] .ar-mockup-select {
  background: #faf8fd;
  border-color: rgba(135, 95, 246, 0.2);
  color: #261c46;
}

html[data-theme="light"] .ar-mockup-type-btn {
  background: #faf8fd;
  border-color: rgba(135, 95, 246, 0.2);
  color: #4a4168;
}

html[data-theme="light"] .ar-mockup-type-btn.active {
  background: #8058e7;
  color: #fff;
}

html[data-theme="light"] .ar-mockup-textarea {
  background: #faf8fd;
  border-color: rgba(135, 95, 246, 0.2);
  color: #271c46;
}

html[data-theme="light"] .ar-preset-card {
  background: #ffffff;
  border-color: rgba(135, 95, 246, 0.2);
}

html[data-theme="light"] .ar-preset-head h4 {
  color: #261b47;
}

html[data-theme="light"] .ar-meta-row b {
  color: #3b2289;
}

html[data-theme="light"] .ar-preset-text-box {
  background: #f7f4fd;
  border-color: rgba(135, 95, 246, 0.18);
}

html[data-theme="light"] .ar-preset-code {
  color: #372e54;
}

html[data-theme="light"] .ar-copy-btn {
  background: rgba(135, 95, 246, 0.12);
  border-color: rgba(135, 95, 246, 0.28);
  color: #4b2bb0;
}

html[data-theme="light"] .ar-perm-card {
  background: #faf8fd;
  border-color: rgba(135, 95, 246, 0.18);
}

html[data-theme="light"] .ar-perm-info strong {
  color: #251b47;
}

html[data-theme="light"] .ar-faq-item {
  background: #faf8fd;
  border-color: rgba(135, 95, 246, 0.18);
}

html[data-theme="light"] .ar-faq-toggle {
  color: #251b47;
}

html[data-theme="light"] .ar-faq-answer {
  color: #585075;
}

html[data-theme="light"] .ar-bottom-cta {
  background: linear-gradient(145deg, #ffffff, #f7f4fc);
  border-color: rgba(135, 95, 246, 0.22);
  box-shadow: 0 10px 30px rgba(50, 30, 90, 0.08);
}

html[data-theme="light"] .ar-cta-text h3 {
  color: #241b44;
}

html[data-theme="light"] .ar-cta-text p {
  color: #5c5579;
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
  .ar-workflow-grid {
    grid-template-columns: 1fr;
  }
  .ar-step-connector {
    display: none;
  }
  .ar-features-grid,
  .ar-type-subgrid,
  .ar-dual-preview-grid,
  .ar-presets-grid,
  .ar-perms-grid,
  .ar-meta-chips {
    grid-template-columns: 1fr;
  }
  .ar-bottom-cta {
    flex-direction: column;
    align-items: flex-start;
  }
  .ar-cta-actions {
    width: 100%;
    flex-direction: column;
  }
  .ar-primary-btn,
  .ar-secondary-btn {
    width: 100%;
    justify-content: center;
  }
}


/* ==========================================================
   TEMPORARY ROOMS DETAILED GUIDE STYLES
   ========================================================== */

.tr-header {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 32px 34px;
  border: 1px solid rgba(184, 163, 255, 0.28);
  background: radial-gradient(circle at 90% 12%, rgba(144, 104, 248, 0.28), transparent 55%),
              radial-gradient(circle at 10% 88%, rgba(88, 101, 242, 0.16), transparent 50%),
              linear-gradient(145deg, rgba(22, 26, 52, 0.95), rgba(11, 14, 29, 0.96));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  margin-bottom: 22px;
}

.tr-hero-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 10px;
  margin-bottom: 22px;
}

.tr-hero-title-row h1 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3.6vw, 36px);
  color: #fff;
  font-weight: 900;
  line-height: 1.3;
}

.tr-hero-title-row h1 strong {
  background: linear-gradient(135deg, #d3c0ff, #996cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tr-hero-subtitle {
  max-width: 740px;
  margin: 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: #b7b3ce;
}

.tr-hero-cta {
  display: flex;
  align-items: center;
}

.tr-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 22px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 800;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #7c53e9, #a175ff);
  box-shadow: 0 6px 20px rgba(124, 83, 233, 0.45);
  transition: all 0.22s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  white-space: nowrap;
}

.tr-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(124, 83, 233, 0.6);
  color: #fff;
}

.tr-meta-chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(184, 163, 255, 0.14);
}

.tr-meta-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(184, 163, 255, 0.15);
}

.tr-chip-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(144, 104, 248, 0.18);
  font-size: 16px;
  flex: none;
}

.tr-meta-chip div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.tr-meta-chip strong {
  font-size: 12px;
  font-weight: 800;
  color: #f1edff;
}

.tr-meta-chip span {
  font-size: 11px;
  color: #a49fb9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Quick Nav Bar */
.tr-quick-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid rgba(184, 163, 255, 0.18);
  background: rgba(18, 22, 44, 0.85);
  backdrop-filter: blur(12px);
  overflow-x: auto;
  scrollbar-width: thin;
  margin-bottom: 24px;
  position: sticky;
  top: 16px;
  z-index: 10;
}

.tr-nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  color: #c9c3dc;
  background: transparent;
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.18s ease;
  cursor: pointer;
  font-family: inherit;
}

.tr-nav-pill:hover,
.tr-nav-pill.active {
  background: rgba(144, 104, 248, 0.18);
  border-color: rgba(184, 163, 255, 0.38);
  color: #fff;
}

/* Guide Container & Cards */
.tr-guide-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tr-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px;
  border-radius: 20px;
  border: 1px solid rgba(184, 163, 255, 0.18);
  background: linear-gradient(145deg, rgba(20, 24, 48, 0.82), rgba(10, 13, 28, 0.88));
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
}

.tr-card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(184, 163, 255, 0.12);
}

.tr-icon-badge {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(144, 104, 248, 0.25), rgba(89, 54, 205, 0.22));
  border: 1px solid rgba(184, 163, 255, 0.28);
  color: #d2c0ff;
  font-size: 18px;
  flex: none;
}

.tr-card-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

.tr-card-header p {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: #9d9ab3;
}

.tr-card-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tr-concept-text p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: #c0bbd6;
}

.tr-concept-text strong {
  color: #f1edff;
}

.tr-subheading {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 800;
  color: #ede7fc;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 01 Lifecycle Flow Grid */
.tr-flow-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.tr-flow-step {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(184, 163, 255, 0.16);
  background: rgba(255, 255, 255, 0.025);
  transition: all 0.2s ease;
}

.tr-flow-step:hover {
  transform: translateY(-2px);
  border-color: rgba(184, 163, 255, 0.4);
  background: rgba(144, 104, 248, 0.06);
}

.tr-flow-step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tr-step-num {
  font-size: 11px;
  font-weight: 800;
  color: #b79aff;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(144, 104, 248, 0.18);
}

.tr-step-icon {
  font-size: 20px;
}

.tr-flow-step h4 {
  margin: 0;
  font-size: 13.5px;
  font-weight: 800;
  color: #f1edff;
}

.tr-flow-step p {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.6;
  color: #9c97b2;
}

.tr-info-banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(144, 104, 248, 0.14), rgba(95, 63, 220, 0.09));
  border: 1px solid rgba(184, 163, 255, 0.28);
}

.tr-info-banner-icon {
  font-size: 24px;
  line-height: 1;
}

.tr-info-banner-body h4 {
  margin: 0 0 4px;
  font-size: 13.5px;
  font-weight: 800;
  color: #e5dcff;
}

.tr-info-banner-body p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: #bbb4d3;
}

/* 02 Dashboard Configuration Cards */
.tr-settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tr-setting-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid rgba(184, 163, 255, 0.18);
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.2s ease;
}

.tr-setting-card:hover {
  border-color: rgba(184, 163, 255, 0.4);
  background: rgba(144, 104, 248, 0.04);
}

.tr-setting-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tr-setting-idx {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(144, 104, 248, 0.22);
  color: #c9b4ff;
  font-size: 12px;
  font-weight: 800;
  flex: none;
}

.tr-setting-head h3 {
  margin: 0;
  font-size: 14.5px;
  font-weight: 800;
  color: #fff;
}

.tr-setting-intro {
  margin: 0;
  font-size: 12px;
  color: #9d98b4;
  line-height: 1.6;
}

.tr-fields-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tr-field-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.tr-field-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tr-field-name {
  font-size: 12.5px;
  font-weight: 800;
  color: #eae5f7;
}

.tr-field-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(144, 104, 248, 0.16);
  color: #cfbcff;
}

.tr-field-desc {
  font-size: 11.5px;
  line-height: 1.6;
  color: #9a96b0;
  margin: 0;
}

.tr-field-desc code {
  background: rgba(144, 104, 248, 0.16);
  padding: 1px 5px;
  border-radius: 4px;
  color: #e5dcff;
  font-size: 11px;
}

.tr-field-tip {
  font-size: 11px;
  color: #b7a9de;
  margin: 2px 0 0;
}

/* 03 Discord Actions Grid */
.tr-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.tr-action-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(184, 163, 255, 0.16);
  background: rgba(255, 255, 255, 0.025);
  transition: all 0.2s ease;
}

.tr-action-card:hover {
  transform: translateY(-2px);
  border-color: rgba(184, 163, 255, 0.4);
  background: rgba(144, 104, 248, 0.05);
}

.tr-action-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tr-action-icon-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tr-action-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(144, 104, 248, 0.18);
  font-size: 15px;
  flex: none;
}

.tr-action-icon-title strong {
  font-size: 13.5px;
  font-weight: 800;
  color: #fff;
}

.tr-action-perm-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.tr-action-perm-tag.owner {
  background: rgba(255, 171, 0, 0.15);
  border: 1px solid rgba(255, 171, 0, 0.35);
  color: #ffc44d;
}

.tr-action-perm-tag.both {
  background: rgba(56, 239, 125, 0.12);
  border: 1px solid rgba(56, 239, 125, 0.3);
  color: #8ce196;
}

.tr-action-desc {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: #a49fb9;
}

.tr-action-detail {
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
  font-size: 11px;
  line-height: 1.6;
  color: #c1b9df;
  border-right: 3px solid #9068f8;
}

.tr-action-detail code {
  background: rgba(144, 104, 248, 0.16);
  padding: 1px 4px;
  border-radius: 4px;
  color: #e5dcff;
}

/* 04 Permissions Table */
.tr-table-wrapper {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid rgba(184, 163, 255, 0.18);
  background: rgba(255, 255, 255, 0.02);
}

.tr-table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
  font-size: 13px;
}

.tr-table th {
  padding: 12px 16px;
  background: rgba(144, 104, 248, 0.14);
  color: #e5dcff;
  font-weight: 800;
  border-bottom: 1px solid rgba(184, 163, 255, 0.2);
  white-space: nowrap;
}

.tr-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #c5c0d6;
}

.tr-table tr:last-child td {
  border-bottom: none;
}

.tr-table tr:hover td {
  background: rgba(144, 104, 248, 0.04);
}

.tr-table-check {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  white-space: nowrap;
}

.tr-table-check.yes {
  color: #4cd964;
}

.tr-table-check.no {
  color: #ff5e57;
}

/* 05 Bot Permissions Grid */
.tr-perms-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.tr-perm-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(184, 163, 255, 0.15);
}

.tr-perm-card strong {
  font-size: 12.5px;
  font-weight: 800;
  color: #f1edff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tr-perm-card span {
  font-size: 11px;
  line-height: 1.55;
  color: #9e9bb0;
}

/* 06 Simulator Section */
.tr-sim-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 20px;
  align-items: start;
}

.tr-sim-panel {
  padding: 20px;
  border-radius: 16px;
  border: 1px solid rgba(184, 163, 255, 0.22);
  background: rgba(16, 20, 42, 0.75);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tr-sim-voice-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(144, 104, 248, 0.14);
  border: 1px solid rgba(184, 163, 255, 0.25);
  font-size: 13px;
  color: #e3d7ff;
}

.tr-sim-voice-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.tr-sim-voice-right {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  direction: ltr;
}

.tr-sim-members {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tr-sim-member {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.tr-sim-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #7c53e9;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  flex: none;
}

.tr-sim-member-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tr-sim-member-info strong {
  font-size: 12px;
  color: #fff;
}

.tr-sim-member-info small {
  font-size: 10px;
  color: #c2aaff;
}

.tr-sim-embed {
  padding: 16px;
  border-radius: 10px;
  background: rgba(20, 24, 48, 0.9);
  border-inline-start: 4px solid #9068f8;
  border: 1px solid rgba(184, 163, 255, 0.15);
  border-inline-start-width: 4px;
  border-inline-start-color: #9068f8;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tr-sim-embed h4 {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
}

.tr-sim-embed p {
  margin: 0;
  font-size: 11.5px;
  color: #a9a4c0;
  line-height: 1.5;
}

.tr-sim-select-mock {
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  background: #111429;
  border: 1px solid rgba(184, 163, 255, 0.3);
  color: #ded7f6;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
}

.tr-sim-controls {
  padding: 20px;
  border-radius: 16px;
  border: 1px solid rgba(184, 163, 255, 0.18);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tr-sim-controls h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}

.tr-sim-controls p {
  margin: 0;
  font-size: 12px;
  color: #9995b0;
  line-height: 1.6;
}

.tr-sim-btns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.tr-sim-btn {
  padding: 9px 10px;
  border-radius: 8px;
  background: rgba(144, 104, 248, 0.14);
  border: 1px solid rgba(184, 163, 255, 0.25);
  color: #dfd7f7;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
  text-align: center;
}

.tr-sim-btn:hover {
  background: rgba(144, 104, 248, 0.28);
  border-color: rgba(184, 163, 255, 0.5);
  color: #fff;
}

.tr-sim-log {
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  font-size: 11.5px;
  color: #8ce196;
  font-family: monospace;
  direction: rtl;
  min-height: 38px;
  display: flex;
  align-items: center;
}

/* 07 FAQ Grid */
.tr-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.tr-faq-card {
  padding: 18px;
  border-radius: 14px;
  border: 1px solid rgba(184, 163, 255, 0.16);
  background: rgba(255, 255, 255, 0.025);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tr-faq-card h4 {
  margin: 0;
  font-size: 13.5px;
  font-weight: 800;
  color: #f3efff;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.45;
}

.tr-faq-card p {
  margin: 0;
  font-size: 12px;
  line-height: 1.65;
  color: #a4a0ba;
}

.tr-faq-card code {
  background: rgba(144, 104, 248, 0.16);
  padding: 1px 4px;
  border-radius: 4px;
  color: #e5dcff;
}

/* 08 Call to Action Banner */
.tr-cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: 26px 30px;
  border-radius: 20px;
  border: 1px solid rgba(184, 163, 255, 0.32);
  background: linear-gradient(135deg, rgba(144, 104, 248, 0.25), rgba(76, 42, 185, 0.3)),
              linear-gradient(145deg, rgba(20, 24, 48, 0.95), rgba(10, 13, 28, 0.95));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.tr-cta-text h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

.tr-cta-text p {
  margin: 0;
  font-size: 13px;
  color: #c7bedf;
}

/* Light Theme Overrides for Temporary Rooms Guide */
html[data-theme="light"] .tr-header {
  background: radial-gradient(circle at 90% 12%, rgba(135, 95, 246, 0.18), transparent 55%),
              linear-gradient(145deg, #ffffff, #f7f4fc);
  border-color: rgba(135, 95, 246, 0.25);
  box-shadow: 0 15px 40px rgba(50, 30, 90, 0.08);
}

html[data-theme="light"] .tr-hero-title-row h1 {
  color: #231b3e;
}

html[data-theme="light"] .tr-hero-subtitle {
  color: #5c5578;
}

html[data-theme="light"] .tr-meta-chip {
  background: #fbf9ff;
  border-color: rgba(135, 95, 246, 0.18);
}

html[data-theme="light"] .tr-meta-chip strong {
  color: #281d48;
}

html[data-theme="light"] .tr-meta-chip span {
  color: #635a80;
}

html[data-theme="light"] .tr-quick-nav {
  background: #ffffff;
  border-color: rgba(135, 95, 246, 0.2);
}

html[data-theme="light"] .tr-nav-pill {
  color: #4a3e6c;
}

html[data-theme="light"] .tr-nav-pill:hover,
html[data-theme="light"] .tr-nav-pill.active {
  background: rgba(135, 95, 246, 0.14);
  border-color: rgba(135, 95, 246, 0.35);
  color: #2e1d67;
}

html[data-theme="light"] .tr-card {
  background: #ffffff;
  border-color: rgba(135, 95, 246, 0.2);
  box-shadow: 0 8px 24px rgba(50, 30, 90, 0.05);
}

html[data-theme="light"] .tr-card-header h2 {
  color: #231b3e;
}

html[data-theme="light"] .tr-card-header p {
  color: #6a6485;
}

html[data-theme="light"] .tr-concept-text p {
  color: #4b416e;
}

html[data-theme="light"] .tr-concept-text strong {
  color: #231b3e;
}

html[data-theme="light"] .tr-subheading {
  color: #2c2052;
}

html[data-theme="light"] .tr-flow-step,
html[data-theme="light"] .tr-setting-card,
html[data-theme="light"] .tr-action-card,
html[data-theme="light"] .tr-perm-card,
html[data-theme="light"] .tr-faq-card {
  background: #faf8fe;
  border-color: rgba(135, 95, 246, 0.18);
}

html[data-theme="light"] .tr-flow-step:hover,
html[data-theme="light"] .tr-setting-card:hover,
html[data-theme="light"] .tr-action-card:hover {
  background: #f4effd;
  border-color: rgba(135, 95, 246, 0.45);
}

html[data-theme="light"] .tr-flow-step h4,
html[data-theme="light"] .tr-setting-head h3,
html[data-theme="light"] .tr-action-icon-title strong,
html[data-theme="light"] .tr-perm-card strong,
html[data-theme="light"] .tr-faq-card h4 {
  color: #251c41;
}

html[data-theme="light"] .tr-flow-step p,
html[data-theme="light"] .tr-setting-intro,
html[data-theme="light"] .tr-field-desc,
html[data-theme="light"] .tr-action-desc,
html[data-theme="light"] .tr-perm-card span,
html[data-theme="light"] .tr-faq-card p {
  color: #5d5477;
}

html[data-theme="light"] .tr-info-banner {
  background: linear-gradient(135deg, #f7f4fe, #ede8fa);
  border-color: rgba(135, 95, 246, 0.28);
}

html[data-theme="light"] .tr-info-banner-body h4 {
  color: #271c46;
}

html[data-theme="light"] .tr-info-banner-body p {
  color: #584e75;
}

html[data-theme="light"] .tr-field-item {
  background: #ffffff;
  border-color: rgba(135, 95, 246, 0.14);
}

html[data-theme="light"] .tr-field-name {
  color: #271e44;
}

html[data-theme="light"] .tr-field-desc code,
html[data-theme="light"] .tr-action-detail code,
html[data-theme="light"] .tr-faq-card code {
  background: rgba(135, 95, 246, 0.12);
  color: #4b31a8;
}

html[data-theme="light"] .tr-action-detail {
  background: #f1ecfa;
  color: #4b3975;
}

html[data-theme="light"] .tr-table th {
  background: rgba(135, 95, 246, 0.12);
  color: #3b2282;
}

html[data-theme="light"] .tr-table td {
  color: #463d63;
  border-bottom-color: rgba(135, 95, 246, 0.1);
}

html[data-theme="light"] .tr-table-wrapper {
  background: #fff;
  border-color: rgba(135, 95, 246, 0.2);
}

html[data-theme="light"] .tr-sim-panel,
html[data-theme="light"] .tr-sim-controls {
  background: #faf8fe;
  border-color: rgba(135, 95, 246, 0.2);
}

html[data-theme="light"] .tr-sim-voice-bar {
  background: rgba(135, 95, 246, 0.12);
  color: #331f72;
}

html[data-theme="light"] .tr-sim-member {
  background: #ffffff;
}

html[data-theme="light"] .tr-sim-member-info strong {
  color: #261d43;
}

html[data-theme="light"] .tr-sim-member-info small {
  color: #6848c7;
}

html[data-theme="light"] .tr-sim-embed {
  background: #ffffff;
  border-color: rgba(135, 95, 246, 0.2);
}

html[data-theme="light"] .tr-sim-embed h4 {
  color: #261d43;
}

html[data-theme="light"] .tr-sim-embed p {
  color: #5f577b;
}

html[data-theme="light"] .tr-sim-select-mock {
  background: #f7f4fd;
  border-color: rgba(135, 95, 246, 0.25);
  color: #281d48;
}

html[data-theme="light"] .tr-sim-btn {
  background: rgba(135, 95, 246, 0.12);
  border-color: rgba(135, 95, 246, 0.25);
  color: #4a2f9e;
}

html[data-theme="light"] .tr-sim-btn:hover {
  background: rgba(135, 95, 246, 0.22);
  color: #2b1473;
}

html[data-theme="light"] .tr-sim-log {
  background: #231b3e;
  color: #72ff9f;
}

html[data-theme="light"] .tr-cta-banner {
  background: linear-gradient(135deg, rgba(135, 95, 246, 0.18), rgba(95, 63, 220, 0.15)),
              linear-gradient(145deg, #ffffff, #f7f4fd);
  border-color: rgba(135, 95, 246, 0.3);
}

html[data-theme="light"] .tr-cta-text h3 {
  color: #251c41;
}

html[data-theme="light"] .tr-cta-text p {
  color: #5c5478;
}

/* Responsive adjustments for temporary rooms guide */
@media (max-width: 1100px) {
  .tr-flow-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .tr-settings-grid,
  .tr-actions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tr-perms-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tr-sim-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .tr-header {
    padding: 22px 18px;
  }
  .tr-card {
    padding: 18px;
  }
  .tr-flow-grid,
  .tr-settings-grid,
  .tr-actions-grid,
  .tr-perms-grid,
  .tr-faq-grid {
    grid-template-columns: 1fr;
  }
  .tr-sim-btns {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   دليل نظام التقديم والقبول الإلكتروني (Applications System Guide)
   ========================================================================== */

.app-guide-header {
  border-radius: 22px;
  background: radial-gradient(circle at 90% 15%, rgba(157, 92, 247, 0.2), transparent 55%),
              linear-gradient(145deg, rgba(22, 26, 52, 0.94), rgba(11, 14, 30, 0.95));
  border: 1px solid rgba(184, 163, 255, 0.28);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.22);
}

.app-hero-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-top: 12px;
  margin-bottom: 24px;
}

.app-hero-subtitle {
  margin: 10px 0 0 0;
  color: #b7b3d3;
  font-size: 14.5px;
  line-height: 1.8;
  max-width: 820px;
}

.app-hero-cta {
  flex: none;
}

.app-primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, #8d58f7, #6e35eb);
  border: 1px solid rgba(184, 163, 255, 0.45);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(124, 75, 246, 0.35);
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-primary-btn:hover {
  background: linear-gradient(135deg, #9d6bf9, #7c44f5);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(124, 75, 246, 0.48);
  color: #fff;
}

.app-primary-btn.big {
  padding: 13px 26px;
  font-size: 15px;
}

.app-secondary-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(184, 163, 255, 0.22);
  color: #dedaf5;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.app-secondary-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(184, 163, 255, 0.45);
  color: #fff;
  transform: translateY(-2px);
}

.app-meta-chips {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(184, 163, 255, 0.16);
}

.app-meta-chip {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(184, 163, 255, 0.14);
}

.app-chip-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(144, 104, 248, 0.24), rgba(95, 63, 220, 0.18));
  border: 1px solid rgba(184, 163, 255, 0.28);
  font-size: 16px;
  flex: none;
}

.app-meta-chip strong {
  display: block;
  color: #f2eeff;
  font-size: 12px;
  font-weight: 800;
}

.app-meta-chip span {
  display: block;
  color: #a4a0c0;
  font-size: 10.5px;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Container & Quick Navigation */
.app-guide-container {
  display: flex;
  flex-direction: column;
  gap: 26px;
  animation: fadeIn 0.25s ease;
}

.app-quick-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(18, 22, 44, 0.88), rgba(9, 12, 26, 0.9));
  border: 1px solid rgba(184, 163, 255, 0.2);
  overflow-x: auto;
  scrollbar-width: none;
  backdrop-filter: blur(12px);
  position: sticky;
  top: 14px;
  z-index: 40;
}

.app-quick-nav::-webkit-scrollbar {
  display: none;
}

.app-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 10px;
  background: transparent;
  color: #b7b3d3;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.18s ease;
  border: 1px solid transparent;
}

.app-nav-link:hover {
  background: rgba(144, 104, 248, 0.12);
  color: #f1edff;
}

.app-nav-link.active {
  background: linear-gradient(135deg, rgba(144, 104, 248, 0.28), rgba(100, 60, 225, 0.22));
  border-color: rgba(184, 163, 255, 0.4);
  color: #ffffff;
}

/* Common Card Styles */
.app-card {
  padding: 30px;
  border-radius: 22px;
  border: 1px solid var(--guide-card-border);
  background: var(--guide-card-bg);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.app-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(184, 163, 255, 0.12);
}

.app-icon-badge {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(144, 104, 248, 0.25), rgba(95, 63, 220, 0.2));
  border: 1px solid rgba(184, 163, 255, 0.32);
  font-size: 22px;
  flex: none;
}

.app-card-header h2 {
  margin: 0 0 5px 0;
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
}

.app-card-header p {
  margin: 0;
  color: #a4a0c0;
  font-size: 13px;
}

.app-subheading {
  margin: 22px 0 14px 0;
  font-size: 15px;
  font-weight: 800;
  color: #e4ddff;
}

/* Concept & Alerts */
.app-concept-text p {
  margin: 0 0 14px 0;
  color: #cfcbdf;
  font-size: 14px;
  line-height: 1.8;
}

.app-concept-text p:last-child {
  margin-bottom: 0;
}

.app-alert {
  padding: 16px 20px;
  border-radius: 14px;
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  line-height: 1.65;
}

.app-alert-tip {
  background: linear-gradient(145deg, rgba(35, 29, 68, 0.65), rgba(20, 18, 42, 0.7));
  border: 1px solid rgba(162, 126, 255, 0.32);
  color: #d8cfff;
}

.app-alert-tip strong {
  color: #c9b4ff;
  font-size: 13.5px;
}

.app-alert-warning {
  background: linear-gradient(145deg, rgba(58, 44, 20, 0.65), rgba(36, 28, 12, 0.7));
  border: 1px solid rgba(246, 173, 85, 0.35);
  color: #fbd38d;
}

.app-alert-warning strong {
  color: #feebc8;
  font-size: 13.5px;
}

/* Workflow Flowchart */
.app-workflow-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(184, 163, 255, 0.12);
}

.app-step-item {
  flex: 1;
  padding: 16px;
  border-radius: 13px;
  background: rgba(144, 104, 248, 0.06);
  border: 1px solid rgba(184, 163, 255, 0.16);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.app-step-num {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #8d58f7, #6632e6);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 8px;
}

.app-step-item h4 {
  margin: 0 0 6px 0;
  font-size: 13.5px;
  color: #f2eeff;
  font-weight: 800;
}

.app-step-item p {
  margin: 0;
  font-size: 11.5px;
  color: #9a96b4;
  line-height: 1.5;
}

.app-step-connector {
  color: #a47bff;
  font-size: 20px;
  font-weight: 800;
  flex: none;
}

/* Step Cards */
.app-steps-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.app-guide-step {
  display: flex;
  gap: 16px;
  padding: 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(184, 163, 255, 0.15);
  transition: all 0.2s ease;
}

.app-guide-step:hover {
  background: rgba(144, 104, 248, 0.06);
  border-color: rgba(184, 163, 255, 0.35);
  transform: translateY(-2px);
}

.step-badge {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(144, 104, 248, 0.28), rgba(95, 63, 220, 0.2));
  border: 1px solid rgba(184, 163, 255, 0.32);
  color: #d1b8ff;
  font-size: 15px;
  font-weight: 800;
  flex: none;
}

.step-body h3 {
  margin: 0 0 6px 0;
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
}

.step-body p {
  margin: 0;
  font-size: 12.5px;
  color: #a4a0c0;
  line-height: 1.6;
}

/* Features Grid */
.app-features-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.app-feature-box {
  padding: 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(184, 163, 255, 0.16);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.app-feature-box.app-feature-wide {
  grid-column: 1 / -1;
}

.app-feature-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-feature-badge {
  font-size: 11.5px;
  font-weight: 800;
  color: #a47bff;
}

.app-badge-status {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
}

.app-badge-status.on {
  background: rgba(56, 239, 125, 0.15);
  border: 1px solid rgba(56, 239, 125, 0.35);
  color: #57f287;
}

.app-badge-tag {
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(144, 104, 248, 0.15);
  border: 1px solid rgba(184, 163, 255, 0.28);
  color: #d1b8ff;
  font-size: 10.5px;
  font-weight: 700;
}

.app-feature-box h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
}

.app-feature-box p {
  margin: 0;
  font-size: 13px;
  color: #a4a0c0;
  line-height: 1.65;
}

.app-checklist {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12.5px;
  color: #c9c5de;
}

.app-checklist li {
  position: relative;
  padding-right: 18px;
  line-height: 1.55;
}

.app-checklist li::before {
  content: "✓";
  position: absolute;
  right: 0;
  color: #9d5cf7;
  font-weight: 800;
}

.app-checklist li strong {
  color: #f1edff;
}

.app-sub-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 6px;
}

.compare-item {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(184, 163, 255, 0.12);
  font-size: 12px;
  line-height: 1.6;
}

.compare-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 12.5px;
}

.compare-item.off strong {
  color: #fbb6ce;
}

.compare-item.on strong {
  color: #b2f5ea;
}

.compare-item span {
  color: #a4a0c0;
}

/* Deep Grid for Questions */
.app-questions-deep-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.question-deep-card {
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(184, 163, 255, 0.16);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(144, 104, 248, 0.15);
  color: #c9b4ff;
  font-size: 10.5px;
  font-weight: 800;
}

.question-deep-card h4 {
  margin: 0;
  font-size: 14.5px;
  font-weight: 800;
  color: #ffffff;
}

.question-deep-card p {
  margin: 0;
  font-size: 12.5px;
  color: #a4a0c0;
  line-height: 1.6;
}

.app-code-example {
  margin-top: auto;
  padding-top: 8px;
}

.app-code-example code {
  display: block;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(184, 163, 255, 0.18);
  color: #d1b8ff;
  font-size: 11px;
  font-family: inherit;
  direction: rtl;
}

/* Outcomes Grid */
.app-outcomes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.app-outcome-panel {
  padding: 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(184, 163, 255, 0.18);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.app-outcome-panel.accept {
  border-color: rgba(87, 242, 135, 0.32);
}

.app-outcome-panel.reject {
  border-color: rgba(237, 66, 69, 0.32);
}

.outcome-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.outcome-icon {
  font-size: 24px;
}

.outcome-header h3 {
  margin: 0 0 3px 0;
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
}

.outcome-header small {
  color: #a4a0c0;
  font-size: 11.5px;
}

.outcome-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.outcome-item-title {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #f1edff;
  margin-bottom: 4px;
}

.outcome-item p {
  margin: 0;
  font-size: 12.5px;
  color: #a4a0c0;
  line-height: 1.6;
}

.outcome-badge-summary {
  padding: 10px 14px;
  border-radius: 11px;
  background: rgba(87, 242, 135, 0.1);
  border: 1px solid rgba(87, 242, 135, 0.25);
  color: #bbf7d0;
  font-size: 12px;
  line-height: 1.5;
}

.outcome-badge-summary.danger {
  background: rgba(237, 66, 69, 0.1);
  border-color: rgba(237, 66, 69, 0.25);
  color: #fecdd3;
}

.outcome-badge-summary span {
  font-weight: 800;
}

/* Deploy Box */
.app-deploy-box {
  margin-top: 20px;
  padding: 22px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(32, 24, 60, 0.6), rgba(18, 14, 38, 0.65));
  border: 1px solid rgba(184, 163, 255, 0.25);
}

.deploy-box-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.deploy-icon {
  font-size: 24px;
}

.deploy-box-head h4 {
  margin: 0 0 3px 0;
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
}

.deploy-box-head p {
  margin: 0;
  color: #a4a0c0;
  font-size: 12.5px;
}

.deploy-box-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.deploy-method {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(184, 163, 255, 0.12);
  font-size: 12.5px;
  line-height: 1.6;
}

.deploy-method strong {
  display: block;
  margin-bottom: 6px;
  color: #f1edff;
  font-size: 13px;
}

.deploy-method p {
  margin: 0;
  color: #a4a0c0;
}

.deploy-method code {
  color: #c9b4ff;
  background: rgba(144, 104, 248, 0.16);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 11.5px;
}

/* Simulator Styles */
.app-sim-shell {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.app-sim-tabs {
  display: flex;
  gap: 8px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(184, 163, 255, 0.16);
  overflow-x: auto;
}

.app-sim-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
  color: #a4a0c0;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

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

.app-sim-tab.active {
  background: linear-gradient(135deg, rgba(144, 104, 248, 0.32), rgba(95, 63, 220, 0.26));
  border-color: rgba(184, 163, 255, 0.45);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(124, 75, 246, 0.25);
}

.app-sim-viewport {
  position: relative;
  min-height: 480px;
  border-radius: 18px;
  background: #313338;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  padding: 24px;
}

.app-sim-screen {
  display: none;
  animation: fadeIn 0.2s ease;
}

.app-sim-screen.active {
  display: block;
}

/* Discord UI Elements inside simulator */
.discord-sim-message {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 680px;
}

.discord-user-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.discord-avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 16px;
  flex: none;
}

.discord-avatar.bot-avatar {
  background: linear-gradient(135deg, #7c4bf5, #9d6bf9);
  color: #ffffff;
}

.discord-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-name {
  color: #f2f3f5;
  font-size: 15px;
  font-weight: 800;
}

.bot-badge {
  padding: 1px 5px;
  border-radius: 4px;
  background: #5865f2;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.msg-time {
  color: #949ba4;
  font-size: 11.5px;
}

.discord-sim-embed {
  display: flex;
  border-radius: 6px;
  background: #2b2d31;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.embed-accent-bar {
  width: 5px;
  flex: none;
  background: #9d5cf7;
  transition: background-color 0.25s ease;
}

.embed-content {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.embed-title {
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
}

.embed-description {
  color: #dbdee1;
  font-size: 13px;
  line-height: 1.65;
}

.embed-footer {
  color: #949ba4;
  font-size: 11px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.embed-author-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2px;
}

.user-avatar-circle {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #4e5058;
  font-size: 14px;
}

.embed-author-bar strong {
  display: block;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 800;
}

.embed-author-bar small {
  color: #949ba4;
  font-size: 11px;
}

.discord-sim-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.discord-ui-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 4px;
  border: none;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
}

.discord-ui-btn.primary-btn {
  background: #5865f2;
  color: #ffffff;
}

.discord-ui-btn.primary-btn:hover {
  background: #4752c4;
}

.discord-ui-btn.success-btn {
  background: #248046;
  color: #ffffff;
}

.discord-ui-btn.success-btn:hover {
  background: #1a6334;
}

.discord-ui-btn.danger-btn {
  background: #da373c;
  color: #ffffff;
}

.discord-ui-btn.danger-btn:hover {
  background: #a1282c;
}

.discord-ui-btn.ghost-btn {
  background: transparent;
  color: #fff;
}

.discord-ui-btn.ghost-btn:hover {
  text-decoration: underline;
}

.discord-ui-btn.reset-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #dbdee1;
}

.discord-ui-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.sim-click-hint {
  font-size: 11.5px;
  color: #b7b3d3;
}

/* Discord Modal Simulation */
.discord-modal-overlay-sim {
  display: grid;
  place-items: center;
  min-height: 440px;
}

.discord-modal-box {
  width: 100%;
  max-width: 520px;
  border-radius: 8px;
  background: #313338;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}

.modal-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-box-header h3 {
  margin: 0;
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: #949ba4;
  font-size: 16px;
  cursor: pointer;
}

.modal-box-fields {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal-input-group label {
  color: #b5bac1;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.req-star {
  color: #f23f43;
}

.modal-input-group input,
.modal-input-group textarea {
  width: 100%;
  border-radius: 4px;
  background: #1e1f22;
  border: 1px solid rgba(0, 0, 0, 0.3);
  padding: 10px 12px;
  color: #dbdee1;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  resize: none;
}

.modal-box-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 20px;
  background: #2b2d31;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Review Box inside simulator */
.qa-blocks-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.qa-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.qa-block strong {
  color: #f2f3f5;
  font-size: 13px;
}

.qa-block pre {
  margin: 0;
  padding: 8px 12px;
  border-radius: 5px;
  background: #1e1f22;
  border: 1px solid rgba(0, 0, 0, 0.3);
  overflow-x: auto;
}

.qa-block code {
  color: #dbdee1;
  font-size: 12px;
  font-family: monospace;
  white-space: pre-wrap;
}

.sim-decision-box {
  margin-top: 8px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 12.5px;
  line-height: 1.6;
}

.sim-decision-box.success {
  background: rgba(36, 128, 70, 0.2);
  border: 1px solid rgba(36, 128, 70, 0.45);
  color: #bbf7d0;
}

.sim-decision-box.danger {
  background: rgba(218, 55, 60, 0.2);
  border: 1px solid rgba(218, 55, 60, 0.45);
  color: #fecdd3;
}

.sim-decision-box code {
  background: rgba(0, 0, 0, 0.25);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Lifecycle Stages */
.app-lifecycle-stages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.stage-card {
  padding: 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(184, 163, 255, 0.16);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stage-index {
  align-self: flex-start;
  padding: 3px 9px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(144, 104, 248, 0.3), rgba(95, 63, 220, 0.25));
  border: 1px solid rgba(184, 163, 255, 0.3);
  color: #d1b8ff;
  font-size: 11px;
  font-weight: 800;
}

.stage-card h4 {
  margin: 0;
  font-size: 14.5px;
  font-weight: 800;
  color: #ffffff;
}

.stage-card p {
  margin: 0;
  font-size: 12.5px;
  color: #a4a0c0;
  line-height: 1.65;
}

/* Tips Grid */
.app-tips-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.app-tip-box {
  padding: 20px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.app-tip-box.warning {
  background: linear-gradient(145deg, rgba(58, 44, 20, 0.45), rgba(36, 28, 12, 0.5));
  border: 1px solid rgba(246, 173, 85, 0.3);
}

.app-tip-box.info {
  background: linear-gradient(145deg, rgba(20, 36, 58, 0.45), rgba(12, 22, 36, 0.5));
  border: 1px solid rgba(99, 179, 237, 0.3);
}

.app-tip-box.success {
  background: linear-gradient(145deg, rgba(20, 58, 36, 0.45), rgba(12, 36, 22, 0.5));
  border: 1px solid rgba(72, 187, 120, 0.3);
}

.tip-box-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tip-icon {
  font-size: 20px;
}

.tip-box-top strong {
  color: #ffffff;
  font-size: 14px;
}

.app-tip-box p {
  margin: 0;
  font-size: 12.5px;
  color: #c9c5de;
  line-height: 1.65;
}

/* FAQ Accordion using details */
.app-faq-accordion-wrapper {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.app-faq-item {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(184, 163, 255, 0.16);
  transition: all 0.2s ease;
  overflow: hidden;
}

.app-faq-item[open] {
  border-color: rgba(184, 163, 255, 0.38);
  background: rgba(144, 104, 248, 0.05);
}

.app-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.app-faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-chevron {
  font-size: 16px;
  color: #a47bff;
  transition: transform 0.2s ease;
}

.app-faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 20px 18px 20px;
  color: #b7b3d3;
  font-size: 13px;
  line-height: 1.7;
}

.faq-answer p {
  margin: 0;
}

/* Bottom CTA */
.app-bottom-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px;
  border-radius: 22px;
  background: radial-gradient(circle at 10% 50%, rgba(144, 104, 248, 0.25), transparent 60%),
              linear-gradient(145deg, rgba(22, 26, 52, 0.94), rgba(11, 14, 30, 0.95));
  border: 1px solid rgba(184, 163, 255, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.app-cta-content {
  display: flex;
  align-items: center;
  gap: 18px;
}

.app-cta-sparkle {
  font-size: 34px;
}

.app-cta-content h3 {
  margin: 0 0 6px 0;
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
}

.app-cta-content p {
  margin: 0;
  font-size: 13.5px;
  color: #b7b3d3;
}

.app-cta-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

/* Light Theme Overrides for Applications Guide */
html[data-theme="light"] .app-guide-header {
  background: radial-gradient(circle at 90% 15%, rgba(135, 95, 246, 0.12), transparent 55%),
              linear-gradient(145deg, #ffffff, #f7f4fc);
  border-color: rgba(135, 95, 246, 0.22);
}

html[data-theme="light"] .app-hero-subtitle {
  color: #5d5578;
}

html[data-theme="light"] .app-meta-chip {
  background: #f7f4fc;
  border-color: rgba(135, 95, 246, 0.18);
}

html[data-theme="light"] .app-meta-chip strong {
  color: #281d44;
}

html[data-theme="light"] .app-meta-chip span {
  color: #635c7e;
}

html[data-theme="light"] .app-quick-nav {
  background: #ffffff;
  border-color: rgba(135, 95, 246, 0.22);
  box-shadow: 0 6px 20px rgba(50, 30, 90, 0.08);
}

html[data-theme="light"] .app-nav-link {
  color: #554e6e;
}

html[data-theme="light"] .app-nav-link:hover {
  background: rgba(135, 95, 246, 0.1);
  color: #1f1442;
}

html[data-theme="light"] .app-nav-link.active {
  background: linear-gradient(135deg, #8058e7, #a177ff);
  color: #fff;
  border-color: #8058e7;
}

html[data-theme="light"] .app-card {
  background: #ffffff;
  border-color: rgba(135, 95, 246, 0.2);
  box-shadow: 0 8px 25px rgba(50, 30, 90, 0.06);
}

html[data-theme="light"] .app-card-header h2 {
  color: #231b3e;
}

html[data-theme="light"] .app-card-header p {
  color: #635c7e;
}

html[data-theme="light"] .app-concept-text p {
  color: #4b4466;
}

html[data-theme="light"] .app-alert-tip {
  background: linear-gradient(145deg, #f7f4fd, #ede8fa);
  border-color: rgba(135, 95, 246, 0.28);
  color: #48397a;
}

html[data-theme="light"] .app-step-item {
  background: #faf8fe;
  border-color: rgba(135, 95, 246, 0.2);
}

html[data-theme="light"] .app-step-item h4 {
  color: #241c3c;
}

html[data-theme="light"] .app-step-item p {
  color: #645e7e;
}

html[data-theme="light"] .app-guide-step {
  background: #faf8fe;
  border-color: rgba(135, 95, 246, 0.18);
}

html[data-theme="light"] .step-body h3 {
  color: #241c3c;
}

html[data-theme="light"] .step-body p {
  color: #645e7e;
}

html[data-theme="light"] .app-feature-box {
  background: #faf8fe;
  border-color: rgba(135, 95, 246, 0.18);
}

html[data-theme="light"] .app-feature-box h3 {
  color: #241c3c;
}

html[data-theme="light"] .app-feature-box p {
  color: #5d5578;
}

html[data-theme="light"] .app-checklist {
  color: #4b4466;
}

html[data-theme="light"] .app-checklist li strong {
  color: #1f1442;
}

html[data-theme="light"] .question-deep-card {
  background: #faf8fe;
  border-color: rgba(135, 95, 246, 0.18);
}

html[data-theme="light"] .question-deep-card h4 {
  color: #241c3c;
}

html[data-theme="light"] .question-deep-card p {
  color: #5d5578;
}

html[data-theme="light"] .app-outcome-panel {
  background: #faf8fe;
}

html[data-theme="light"] .outcome-header h3 {
  color: #241c3c;
}

html[data-theme="light"] .outcome-header small {
  color: #645e7e;
}

html[data-theme="light"] .outcome-item-title {
  color: #241c3c;
}

html[data-theme="light"] .outcome-item p {
  color: #5d5578;
}

html[data-theme="light"] .app-deploy-box {
  background: linear-gradient(145deg, #f7f4fd, #ede8fa);
  border-color: rgba(135, 95, 246, 0.28);
}

html[data-theme="light"] .deploy-box-head h4 {
  color: #241c3c;
}

html[data-theme="light"] .deploy-box-head p {
  color: #645e7e;
}

html[data-theme="light"] .deploy-method {
  background: #ffffff;
  border-color: rgba(135, 95, 246, 0.2);
}

html[data-theme="light"] .deploy-method strong {
  color: #241c3c;
}

html[data-theme="light"] .deploy-method p {
  color: #5d5578;
}

html[data-theme="light"] .stage-card {
  background: #faf8fe;
  border-color: rgba(135, 95, 246, 0.18);
}

html[data-theme="light"] .stage-card h4 {
  color: #241c3c;
}

html[data-theme="light"] .stage-card p {
  color: #5d5578;
}

html[data-theme="light"] .tip-box-top strong {
  color: #241c3c;
}

html[data-theme="light"] .app-tip-box p {
  color: #4b4466;
}

html[data-theme="light"] .app-faq-item {
  background: #faf8fe;
  border-color: rgba(135, 95, 246, 0.18);
}

html[data-theme="light"] .app-faq-item summary {
  color: #241c3c;
}

html[data-theme="light"] .faq-answer {
  color: #5d5578;
}

html[data-theme="light"] .app-bottom-cta {
  background: radial-gradient(circle at 10% 50%, rgba(135, 95, 246, 0.16), transparent 60%),
              linear-gradient(145deg, #ffffff, #f7f4fc);
  border-color: rgba(135, 95, 246, 0.25);
  box-shadow: 0 16px 40px rgba(50, 30, 90, 0.08);
}

html[data-theme="light"] .app-cta-content h3 {
  color: #281d44;
}

html[data-theme="light"] .app-cta-content p {
  color: #5d5578;
}

/* Responsive Rules for Applications Guide */
@media (max-width: 1050px) {
  .app-meta-chips {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .app-questions-deep-grid,
  .app-lifecycle-stages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .app-hero-title-row {
    flex-direction: column;
    align-items: stretch;
  }
  .app-meta-chips {
    grid-template-columns: 1fr;
  }
  .app-workflow-grid {
    flex-direction: column;
  }
  .app-step-connector {
    transform: rotate(90deg);
  }
  .app-features-grid,
  .app-questions-deep-grid,
  .app-outcomes-grid,
  .deploy-box-body,
  .app-lifecycle-stages,
  .app-tips-cards-grid {
    grid-template-columns: 1fr;
  }
  .app-bottom-cta {
    flex-direction: column;
    align-items: flex-start;
  }
  .app-cta-actions {
    width: 100%;
    flex-direction: column;
  }
  .app-primary-btn,
  .app-secondary-btn {
    width: 100%;
    justify-content: center;
  }
  .discord-sim-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ==========================================================================
   Summons Guide (دليل نظام الاستدعاء الإداري والرتب) Styles
   ========================================================================== */

.sm-guide-header {
  margin-bottom: 24px;
}

.sm-hero-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-top: 14px;
}

.sm-hero-title-row h1 {
  margin: 0 0 10px 0;
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.35;
}

.sm-hero-title-row h1 strong {
  background: linear-gradient(135deg, #caa9ff, #9068f8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sm-hero-subtitle {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #b7b3d3;
  max-width: 820px;
}

.sm-hero-cta {
  flex-shrink: 0;
}

.sm-primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, #9068f8, #6f42ec);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 18px rgba(144, 104, 248, 0.35);
  cursor: pointer;
  transition: all 0.2s ease;
}

.sm-primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(144, 104, 248, 0.5);
  background: linear-gradient(135deg, #9d78fa, #7b50f3);
}

.sm-primary-btn.big {
  padding: 13px 26px;
  font-size: 15px;
}

.sm-primary-btn.small {
  padding: 7px 14px;
  font-size: 12.5px;
  border-radius: 9px;
}

.sm-secondary-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: #d1ccf0;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(184, 163, 255, 0.2);
  cursor: pointer;
  transition: all 0.2s ease;
}

.sm-secondary-btn:hover {
  background: rgba(144, 104, 248, 0.15);
  color: #ffffff;
  border-color: rgba(184, 163, 255, 0.4);
}

.sm-secondary-btn.small {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 8px;
}

.sm-danger-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 11px;
  background: linear-gradient(135deg, #ed4245, #c03538);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.2s ease;
}

.sm-danger-btn:hover {
  background: linear-gradient(135deg, #f05356, #d23b3e);
  transform: translateY(-1px);
}

.sm-danger-btn.small {
  padding: 7px 14px;
  font-size: 12.5px;
  border-radius: 9px;
}

/* Meta Chips */
.sm-meta-chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.sm-meta-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(20, 24, 50, 0.65);
  border: 1px solid rgba(184, 163, 255, 0.14);
  backdrop-filter: blur(8px);
}

.sm-chip-icon {
  font-size: 24px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: rgba(144, 104, 248, 0.15);
  border: 1px solid rgba(184, 163, 255, 0.25);
  flex-shrink: 0;
}

.sm-meta-chip strong {
  display: block;
  font-size: 13px;
  color: #f1edff;
  font-weight: 800;
  margin-bottom: 2px;
}

.sm-meta-chip span {
  display: block;
  font-size: 11.5px;
  color: #9f9abf;
  line-height: 1.35;
}

/* Quick Nav */
.sm-quick-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(18, 22, 44, 0.92), rgba(9, 12, 26, 0.94));
  border: 1px solid rgba(184, 163, 255, 0.22);
  overflow-x: auto;
  scrollbar-width: none;
  backdrop-filter: blur(14px);
  position: sticky;
  top: 14px;
  z-index: 45;
  margin-bottom: 24px;
}

.sm-quick-nav::-webkit-scrollbar {
  display: none;
}

.sm-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 10px;
  background: transparent;
  color: #b7b3d3;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.18s ease;
  border: 1px solid transparent;
}

.sm-nav-link:hover {
  background: rgba(144, 104, 248, 0.12);
  color: #f1edff;
}

.sm-nav-link.active {
  background: linear-gradient(135deg, rgba(144, 104, 248, 0.32), rgba(100, 60, 225, 0.25));
  border-color: rgba(184, 163, 255, 0.45);
  color: #ffffff;
}

/* Container & Cards */
.sm-guide-container {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.sm-card {
  padding: 28px;
  border-radius: 22px;
  border: 1px solid var(--guide-card-border);
  background: var(--guide-card-bg);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.sm-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(184, 163, 255, 0.12);
}

.sm-icon-badge {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(144, 104, 248, 0.28), rgba(95, 63, 220, 0.2));
  border: 1px solid rgba(184, 163, 255, 0.35);
  font-size: 22px;
  flex: none;
}

.sm-card-header h2 {
  margin: 0 0 4px 0;
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
}

.sm-card-header p {
  margin: 0;
  color: #a4a0c0;
  font-size: 13px;
}

.sm-subheading {
  margin: 22px 0 14px 0;
  font-size: 15px;
  font-weight: 800;
  color: #e4ddff;
}

.sm-concept-text p {
  margin: 0 0 14px 0;
  color: #cfcbdf;
  font-size: 14px;
  line-height: 1.8;
}

.sm-alert {
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(144, 104, 248, 0.1);
  border: 1px solid rgba(184, 163, 255, 0.3);
  margin-top: 18px;
}

.sm-alert strong {
  display: block;
  font-size: 14px;
  color: #ffffff;
  margin-bottom: 6px;
}

.sm-alert span {
  display: block;
  font-size: 13px;
  color: #d1ccf0;
  line-height: 1.7;
}

/* Workflow Grid */
.sm-workflow-wrapper {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(184, 163, 255, 0.1);
}

.sm-workflow-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sm-step-item {
  flex: 1;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(184, 163, 255, 0.14);
  text-align: center;
  transition: transform 0.2s;
}

.sm-step-item:hover {
  transform: translateY(-2px);
  border-color: rgba(184, 163, 255, 0.35);
}

.sm-step-num {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 8px;
  background: linear-gradient(135deg, #9068f8, #6038dd);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  margin-bottom: 8px;
}

.sm-step-item h4 {
  margin: 0 0 6px 0;
  font-size: 14px;
  color: #ffffff;
  font-weight: 800;
}

.sm-step-item p {
  margin: 0;
  font-size: 12px;
  color: #a4a0c0;
  line-height: 1.5;
}

.sm-step-connector {
  font-size: 20px;
  color: #8c7ab8;
}

/* Steps List (Roadmap) */
.sm-steps-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sm-guide-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(184, 163, 255, 0.12);
  transition: all 0.2s ease;
}

.sm-guide-step:hover {
  background: rgba(144, 104, 248, 0.05);
  border-color: rgba(184, 163, 255, 0.3);
}

.sm-guide-step .step-badge {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #9068f8, #5935d4);
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(144, 104, 248, 0.35);
}

.sm-guide-step .step-body h3 {
  margin: 0 0 6px 0;
  font-size: 15.5px;
  color: #f1edff;
  font-weight: 800;
}

.sm-guide-step .step-body p {
  margin: 0;
  font-size: 13.5px;
  color: #bbb6d6;
  line-height: 1.7;
}

.sm-guide-step .step-body code {
  background: rgba(144, 104, 248, 0.18);
  padding: 2px 7px;
  border-radius: 6px;
  color: #e5dcff;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
}

/* Dashboard Settings Breakdown */
.sm-setting-box {
  margin-bottom: 24px;
  padding: 22px;
  border-radius: 18px;
  background: rgba(16, 20, 42, 0.7);
  border: 1px solid rgba(184, 163, 255, 0.16);
}

.sm-box-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(184, 163, 255, 0.1);
}

.sm-num-pill {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #9068f8;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.sm-box-head h3 {
  margin: 0 0 2px 0;
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
}

.sm-box-head small {
  color: #9f9abe;
  font-size: 12px;
}

.sm-fields-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.sm-field-card {
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(184, 163, 255, 0.12);
}

.sm-field-card.highlight {
  border-color: rgba(144, 104, 248, 0.45);
  background: linear-gradient(145deg, rgba(144, 104, 248, 0.12), rgba(20, 24, 50, 0.6));
}

.sm-field-card .field-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.sm-field-card .field-icon {
  font-size: 18px;
}

.sm-field-card .field-title strong {
  font-size: 13.5px;
  color: #ffffff;
  font-weight: 800;
}

.sm-field-card p {
  margin: 0;
  font-size: 12.5px;
  color: #aaa5c8;
  line-height: 1.6;
}

.sm-switches-desc {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: #b7b3d3;
}

.sm-switches-desc strong {
  color: #e5dcff;
}

/* Token Guide Box */
.sm-session-explainer p {
  font-size: 14px;
  color: #cfcbdf;
  line-height: 1.8;
  margin-bottom: 18px;
}

.sm-token-guide-box {
  padding: 20px;
  border-radius: 16px;
  background: rgba(18, 22, 48, 0.8);
  border: 1px solid rgba(184, 163, 255, 0.22);
}

.guide-box-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: #ffffff;
  margin-bottom: 14px;
}

.key-icon {
  font-size: 20px;
}

.sm-guide-ol {
  margin: 0 0 16px 0;
  padding-inline-start: 22px;
  color: #cfcbdf;
  font-size: 13px;
  line-height: 1.9;
}

.sm-guide-ol a {
  color: #c2aaff;
  text-decoration: underline;
}

.sm-guide-ol code {
  background: rgba(144, 104, 248, 0.2);
  padding: 2px 6px;
  border-radius: 5px;
  color: #f1edff;
}

.sm-security-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(56, 239, 125, 0.08);
  border: 1px solid rgba(56, 239, 125, 0.25);
  color: #b7f5cf;
}

.sm-security-badge small {
  font-size: 12px;
  line-height: 1.5;
}

/* Panel Actions Grid */
.sm-panel-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.sm-panel-item {
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(184, 163, 255, 0.14);
  transition: all 0.2s ease;
}

.sm-panel-item:hover {
  transform: translateY(-2px);
  border-color: rgba(184, 163, 255, 0.35);
  background: rgba(144, 104, 248, 0.06);
}

.sm-panel-item.highlight {
  border-color: rgba(144, 104, 248, 0.5);
  background: linear-gradient(145deg, rgba(144, 104, 248, 0.14), rgba(20, 24, 50, 0.6));
}

.sm-panel-item .item-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.opt-badge {
  font-size: 20px;
}

.sm-panel-item h4 {
  margin: 0;
  font-size: 14px;
  color: #ffffff;
  font-weight: 800;
}

.sm-panel-item p {
  margin: 0;
  font-size: 12.5px;
  color: #aaa5c8;
  line-height: 1.6;
}

/* Simulator Tabs & Viewport */
.sm-sim-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(184, 163, 255, 0.15);
  margin-bottom: 20px;
}

.sm-sim-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 12px;
  border: 1px solid rgba(184, 163, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: #b7b3d3;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.sm-sim-tab:hover {
  background: rgba(144, 104, 248, 0.14);
  color: #ffffff;
}

.sm-sim-tab.active {
  background: linear-gradient(135deg, #9068f8, #6038dd);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 16px rgba(144, 104, 248, 0.35);
}

.sm-sim-viewport {
  background: #2b2d31;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px;
  min-height: 380px;
}

.sm-sim-screen {
  display: none;
  animation: fadeIn 0.2s ease;
}

.sm-sim-screen.active {
  display: block;
}

/* Discord Simulated Message */
.discord-sim-message {
  display: flex;
  gap: 16px;
}

.sim-bot-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #9068f8, #5935d4);
  display: grid;
  place-items: center;
  font-size: 22px;
  color: #fff;
  flex-shrink: 0;
}

.sim-msg-content {
  flex: 1;
}

.sim-msg-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.sim-bot-name {
  font-weight: 700;
  color: #ffffff;
  font-size: 14.5px;
}

.sim-bot-tag {
  background: #5865f2;
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 4px;
}

.sim-msg-time {
  font-size: 11.5px;
  color: #949ba4;
}

.discord-embed-card {
  background: #1e1f22;
  border-radius: 8px;
  border-right: 4px solid #9068f8;
  border-left: 4px solid #9068f8;
  padding: 16px 20px;
  max-width: 620px;
  margin-bottom: 14px;
}

.embed-author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: #dbdee1;
  margin-bottom: 6px;
}

.embed-title {
  margin: 0 0 8px 0;
  font-size: 16px;
  color: #ffffff;
  font-weight: 800;
}

.embed-desc {
  margin: 0 0 14px 0;
  font-size: 13.5px;
  color: #dbdee1;
  line-height: 1.5;
}

.embed-fields-row {
  display: flex;
  gap: 24px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.embed-field small {
  display: block;
  font-size: 11.5px;
  color: #949ba4;
  margin-bottom: 3px;
}

.embed-field strong {
  font-size: 14px;
  color: #ffffff;
}

.color-green {
  color: #57f287 !important;
}

.embed-instructions {
  font-size: 12.5px;
  color: #b5bac1;
  line-height: 1.6;
  margin-bottom: 12px;
}

.embed-instructions strong {
  color: #f2f3f5;
}

.embed-instructions p {
  margin: 4px 0;
}

.embed-footer {
  font-size: 11px;
  color: #949ba4;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.discord-component-row {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sim-select-menu {
  width: 100%;
  max-width: 620px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #1e1f22;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #dbdee1;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  outline: none;
}

.sim-select-menu:focus {
  border-color: #9068f8;
}

.sim-action-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 12px;
  color: #caa9ff;
}

/* Discord Modal Simulation */
.discord-modal-sim {
  background: #313338;
  border-radius: 12px;
  max-width: 520px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.modal-sim-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #2b2d31;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-sim-header strong {
  font-size: 15px;
  color: #ffffff;
}

.sim-close-btn {
  font-size: 20px;
  color: #949ba4;
  cursor: pointer;
}

.modal-sim-body {
  padding: 20px;
}

.modal-label {
  display: block;
  margin-bottom: 16px;
}

.modal-label span {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: #b5bac1;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.sim-user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #1e1f22;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #dbdee1;
  font-size: 13px;
  font-weight: 700;
}

.sim-modal-textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  background: #1e1f22;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-family: inherit;
  font-size: 13px;
  resize: vertical;
  outline: none;
  box-sizing: border-box;
}

.sim-modal-textarea:focus {
  border-color: #5865f2;
}

.modal-security-note {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(144, 104, 248, 0.12);
  border: 1px solid rgba(144, 104, 248, 0.25);
  color: #caa9ff;
  font-size: 12px;
}

.modal-sim-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 14px 20px;
  background: #2b2d31;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sim-btn-cancel {
  padding: 8px 16px;
  border-radius: 6px;
  background: transparent;
  border: 0;
  color: #dbdee1;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.sim-btn-submit {
  padding: 8px 20px;
  border-radius: 6px;
  background: #5865f2;
  border: 0;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s;
}

.sim-btn-submit:hover {
  background: #4752c4;
}

/* Waiting Room View */
.sim-view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sim-view-header h4 {
  margin: 0 0 4px 0;
  font-size: 16px;
  color: #ffffff;
}

.sim-view-header p {
  margin: 0;
  font-size: 12px;
  color: #949ba4;
}

.sim-player-card {
  background: #1e1f22;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px;
  max-width: 580px;
}

.player-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.player-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.player-avatar {
  font-size: 26px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  display: grid;
  place-items: center;
}

.player-info strong {
  display: block;
  font-size: 15px;
  color: #ffffff;
}

.player-info small {
  color: #949ba4;
  font-size: 12px;
}

.status-pill {
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}

.status-pill.green {
  background: rgba(87, 242, 135, 0.15);
  color: #57f287;
  border: 1px solid rgba(87, 242, 135, 0.3);
}

.status-pill.red {
  background: rgba(237, 66, 69, 0.15);
  color: #ed4245;
  border: 1px solid rgba(237, 66, 69, 0.3);
}

.player-card-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: #dbdee1;
  margin-bottom: 16px;
}

.player-card-details strong {
  color: #949ba4;
}

.tag-role {
  background: rgba(144, 104, 248, 0.2);
  color: #caa9ff;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 700;
}

.player-card-actions {
  display: flex;
  gap: 10px;
}

/* Voice Room Simulation */
.sim-voice-room {
  background: #1e1f22;
  border-radius: 16px;
  padding: 24px;
  max-width: 640px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.voice-room-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.room-title-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.room-icon {
  font-size: 26px;
}

.room-title-box strong {
  display: block;
  font-size: 16px;
  color: #ffffff;
}

.room-title-box small {
  color: #949ba4;
  font-size: 12px;
}

.rec-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(237, 66, 69, 0.15);
  border: 1px solid rgba(237, 66, 69, 0.35);
  color: #ed4245;
  font-size: 12px;
  font-weight: 800;
}

.rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ed4245;
  animation: pulseDot 1s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.voice-participants-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

.voice-member-card {
  background: #2b2d31;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  border: 2px solid transparent;
  transition: all 0.2s;
}

.voice-member-card.speaking {
  border-color: #57f287;
  box-shadow: 0 0 14px rgba(87, 242, 135, 0.25);
}

.member-avatar {
  font-size: 32px;
  margin-bottom: 8px;
}

.voice-member-card strong {
  display: block;
  font-size: 13.5px;
  color: #ffffff;
  margin-bottom: 2px;
}

.member-role {
  font-size: 11px;
  color: #949ba4;
}

.audio-waves-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  margin-bottom: 20px;
}

.wave-bar {
  width: 5px;
  height: 10px;
  border-radius: 3px;
  background: #9068f8;
  animation: waveMotion 1.2s ease-in-out infinite alternate;
}

.wave-bar:nth-child(2) { animation-delay: 0.15s; height: 18px; }
.wave-bar:nth-child(3) { animation-delay: 0.3s; height: 26px; }
.wave-bar:nth-child(4) { animation-delay: 0.45s; height: 32px; }
.wave-bar:nth-child(5) { animation-delay: 0.6s; height: 24px; }
.wave-bar:nth-child(6) { animation-delay: 0.75s; height: 28px; }
.wave-bar:nth-child(7) { animation-delay: 0.9s; height: 16px; }
.wave-bar:nth-child(8) { animation-delay: 1.05s; height: 12px; }

@keyframes waveMotion {
  0% { transform: scaleY(0.4); background: #6f42ec; }
  100% { transform: scaleY(1.3); background: #caa9ff; }
}

.voice-room-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.voice-room-footer p {
  margin: 0;
  font-size: 12px;
  color: #949ba4;
  line-height: 1.4;
}

/* Audio Attachment Simulator */
.sim-audio-attachment {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #2b2d31;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 12px;
  margin-bottom: 12px;
}

.att-icon {
  font-size: 22px;
}

.att-info {
  flex: 1;
}

.att-info strong {
  display: block;
  font-size: 13px;
  color: #ffffff;
}

.att-info small {
  font-size: 11px;
  color: #949ba4;
}

.att-play-btn {
  padding: 6px 14px;
  border-radius: 6px;
  background: #5865f2;
  color: #fff;
  border: 0;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
}

.att-play-btn:hover {
  background: #4752c4;
}

.att-play-btn.playing {
  background: #ed4245;
}

/* Points Simulator Decision */
.sim-btn-approve-points {
  padding: 8px 18px;
  border-radius: 6px;
  background: #248046;
  color: #fff;
  border: 0;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.sim-btn-approve-points:hover {
  background: #1a6334;
}

.sim-btn-reject-points {
  padding: 8px 18px;
  border-radius: 6px;
  background: #da373c;
  color: #fff;
  border: 0;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.sim-btn-reject-points:hover {
  background: #b82b30;
}

.sim-btn-reset-sim {
  padding: 8px 14px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: #dbdee1;
  border: 0;
  font-size: 13px;
  cursor: pointer;
}

.sim-decision-box {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
}

.sim-decision-box.success {
  background: rgba(87, 242, 135, 0.15);
  border: 1px solid rgba(87, 242, 135, 0.35);
  color: #57f287;
}

.sim-decision-box.danger {
  background: rgba(237, 66, 69, 0.15);
  border: 1px solid rgba(237, 66, 69, 0.35);
  color: #ed4245;
}

/* Lifecycle Grid */
.sm-lifecycle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.lifecycle-card {
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(184, 163, 255, 0.14);
}

.card-status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 900;
  margin-bottom: 8px;
}

.card-status.active { background: rgba(144, 104, 248, 0.25); color: #cbb2ff; }
.card-status.claimed { background: rgba(88, 101, 242, 0.25); color: #8ea1e1; }
.card-status.completed { background: rgba(87, 242, 135, 0.2); color: #57f287; }
.card-status.cancelled { background: rgba(237, 66, 69, 0.2); color: #ed4245; }

.lifecycle-card h4 {
  margin: 0 0 6px 0;
  font-size: 14px;
  color: #ffffff;
}

.lifecycle-card p {
  margin: 0;
  font-size: 12px;
  color: #a4a0c0;
  line-height: 1.5;
}

.sm-resilience-box {
  padding-top: 18px;
  border-top: 1px solid rgba(184, 163, 255, 0.1);
}

.resilience-features-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.res-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(184, 163, 255, 0.1);
}

.res-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.res-item strong {
  display: block;
  font-size: 13.5px;
  color: #f1edff;
  margin-bottom: 3px;
}

.res-item p {
  margin: 0;
  font-size: 12.5px;
  color: #aaa5c8;
  line-height: 1.6;
}

/* Permissions Table */
.sm-table-responsive {
  overflow-x: auto;
}

.sm-perm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  text-align: right;
}

[dir="ltr"] .sm-perm-table {
  text-align: left;
}

.sm-perm-table th,
.sm-perm-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(184, 163, 255, 0.12);
}

.sm-perm-table th {
  background: rgba(144, 104, 248, 0.14);
  color: #f1edff;
  font-weight: 800;
  font-size: 13px;
}

.sm-perm-table td strong {
  color: #e4ddff;
}

.perm-yes {
  color: #57f287;
  font-weight: 800;
  font-size: 15px;
}

.perm-no {
  color: #ed4245;
  font-weight: 800;
  font-size: 15px;
}

/* Points Info Grid */
.sm-points-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.points-card {
  padding: 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(184, 163, 255, 0.14);
}

.p-icon {
  font-size: 26px;
  display: inline-block;
  margin-bottom: 10px;
}

.points-card h4 {
  margin: 0 0 6px 0;
  font-size: 15px;
  color: #ffffff;
  font-weight: 800;
}

.points-card p {
  margin: 0;
  font-size: 13px;
  color: #aaa5c8;
  line-height: 1.6;
}

/* FAQ Accordion */
.sm-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sm-faq-item {
  border-radius: 14px;
  border: 1px solid rgba(184, 163, 255, 0.14);
  background: rgba(255, 255, 255, 0.025);
  overflow: hidden;
  transition: all 0.2s ease;
}

.sm-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 800;
  color: #f1edff;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.sm-faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-chevron {
  font-style: normal;
  font-size: 14px;
  color: #9068f8;
  transition: transform 0.2s ease;
}

.sm-faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.sm-faq-item[open] {
  background: rgba(144, 104, 248, 0.06);
  border-color: rgba(184, 163, 255, 0.3);
}

.faq-answer {
  padding: 0 20px 18px 20px;
  font-size: 13.5px;
  color: #cfcbdf;
  line-height: 1.7;
}

.faq-answer p {
  margin: 0;
}

/* Bottom CTA Card */
.sm-bottom-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  border-radius: 22px;
  background: radial-gradient(circle at 10% 50%, rgba(144, 104, 248, 0.25), transparent 60%),
              linear-gradient(145deg, rgba(20, 24, 52, 0.9), rgba(10, 14, 30, 0.95));
  border: 1px solid rgba(184, 163, 255, 0.3);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.3);
  margin-top: 10px;
}

.sm-cta-content {
  display: flex;
  align-items: center;
  gap: 18px;
}

.sm-cta-sparkle {
  font-size: 36px;
  flex-shrink: 0;
}

.sm-cta-content h3 {
  margin: 0 0 6px 0;
  font-size: 19px;
  color: #ffffff;
  font-weight: 800;
}

.sm-cta-content p {
  margin: 0;
  font-size: 13.5px;
  color: #bbb6d6;
  line-height: 1.5;
}

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

/* ==========================================================================
   Light Mode Overrides for Summons Guide
   ========================================================================== */

html[data-theme="light"] .sm-hero-title-row h1 {
  color: #1e153b;
}

html[data-theme="light"] .sm-hero-subtitle {
  color: #554e74;
}

html[data-theme="light"] .sm-meta-chip {
  background: #ffffff;
  border-color: rgba(135, 95, 246, 0.18);
  box-shadow: 0 4px 14px rgba(60, 40, 100, 0.04);
}

html[data-theme="light"] .sm-meta-chip strong {
  color: #241a45;
}

html[data-theme="light"] .sm-meta-chip span {
  color: #645c85;
}

html[data-theme="light"] .sm-quick-nav {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(135, 95, 246, 0.22);
}

html[data-theme="light"] .sm-nav-link {
  color: #5d5578;
}

html[data-theme="light"] .sm-nav-link:hover {
  background: rgba(135, 95, 246, 0.1);
  color: #1d143c;
}

html[data-theme="light"] .sm-nav-link.active {
  background: linear-gradient(135deg, rgba(135, 95, 246, 0.18), rgba(110, 65, 235, 0.12));
  color: #6e41eb;
  border-color: rgba(135, 95, 246, 0.4);
}

html[data-theme="light"] .sm-card {
  background: #ffffff;
  border-color: rgba(135, 95, 246, 0.18);
  box-shadow: 0 12px 32px rgba(50, 30, 90, 0.05);
}

html[data-theme="light"] .sm-card-header h2 {
  color: #20173e;
}

html[data-theme="light"] .sm-card-header p {
  color: #615982;
}

html[data-theme="light"] .sm-subheading {
  color: #3b2d6a;
}

html[data-theme="light"] .sm-concept-text p {
  color: #4a4269;
}

html[data-theme="light"] .sm-alert {
  background: rgba(135, 95, 246, 0.08);
  border-color: rgba(135, 95, 246, 0.25);
}

html[data-theme="light"] .sm-alert strong {
  color: #2b1f54;
}

html[data-theme="light"] .sm-alert span {
  color: #554d78;
}

html[data-theme="light"] .sm-step-item {
  background: #fbf9fe;
  border-color: rgba(135, 95, 246, 0.15);
}

html[data-theme="light"] .sm-step-item h4 {
  color: #241a45;
}

html[data-theme="light"] .sm-step-item p {
  color: #625985;
}

html[data-theme="light"] .sm-guide-step {
  background: #faf8fe;
  border-color: rgba(135, 95, 246, 0.15);
}

html[data-theme="light"] .sm-guide-step .step-body h3 {
  color: #221844;
}

html[data-theme="light"] .sm-guide-step .step-body p {
  color: #544c77;
}

html[data-theme="light"] .sm-setting-box {
  background: #fbf9fe;
  border-color: rgba(135, 95, 246, 0.18);
}

html[data-theme="light"] .sm-box-head h3 {
  color: #231945;
}

html[data-theme="light"] .sm-box-head small {
  color: #675f8c;
}

html[data-theme="light"] .sm-field-card {
  background: #ffffff;
  border-color: rgba(135, 95, 246, 0.14);
}

html[data-theme="light"] .sm-field-card .field-title strong {
  color: #221844;
}

html[data-theme="light"] .sm-field-card p {
  color: #574f7c;
}

html[data-theme="light"] .sm-token-guide-box {
  background: #f7f4fc;
  border-color: rgba(135, 95, 246, 0.22);
}

html[data-theme="light"] .guide-box-header {
  color: #231945;
}

html[data-theme="light"] .sm-guide-ol {
  color: #4b436c;
}

html[data-theme="light"] .sm-panel-item {
  background: #ffffff;
  border-color: rgba(135, 95, 246, 0.14);
}

html[data-theme="light"] .sm-panel-item h4 {
  color: #221844;
}

html[data-theme="light"] .sm-panel-item p {
  color: #59517e;
}

html[data-theme="light"] .lifecycle-card {
  background: #ffffff;
  border-color: rgba(135, 95, 246, 0.15);
}

html[data-theme="light"] .lifecycle-card h4 {
  color: #20173e;
}

html[data-theme="light"] .lifecycle-card p {
  color: #59517e;
}

html[data-theme="light"] .res-item {
  background: #ffffff;
  border-color: rgba(135, 95, 246, 0.14);
}

html[data-theme="light"] .res-item strong {
  color: #221844;
}

html[data-theme="light"] .res-item p {
  color: #564e7a;
}

html[data-theme="light"] .sm-perm-table th {
  background: #f0eafc;
  color: #281d4e;
}

html[data-theme="light"] .sm-perm-table td strong {
  color: #281d4e;
}

html[data-theme="light"] .sm-perm-table td {
  border-bottom-color: rgba(135, 95, 246, 0.12);
}

html[data-theme="light"] .points-card {
  background: #ffffff;
  border-color: rgba(135, 95, 246, 0.15);
}

html[data-theme="light"] .points-card h4 {
  color: #221844;
}

html[data-theme="light"] .points-card p {
  color: #564e7a;
}

html[data-theme="light"] .sm-faq-item {
  background: #faf8fe;
  border-color: rgba(135, 95, 246, 0.18);
}

html[data-theme="light"] .sm-faq-item summary {
  color: #241c3c;
}

html[data-theme="light"] .faq-answer {
  color: #5d5578;
}

html[data-theme="light"] .sm-bottom-cta {
  background: radial-gradient(circle at 10% 50%, rgba(135, 95, 246, 0.16), transparent 60%),
              linear-gradient(145deg, #ffffff, #f7f4fc);
  border-color: rgba(135, 95, 246, 0.25);
  box-shadow: 0 16px 40px rgba(50, 30, 90, 0.08);
}

html[data-theme="light"] .sm-cta-content h3 {
  color: #281d44;
}

html[data-theme="light"] .sm-cta-content p {
  color: #5d5578;
}

/* ==========================================================================
   Responsive Rules for Summons Guide
   ========================================================================== */

@media (max-width: 1050px) {
  .sm-meta-chips {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .sm-workflow-grid {
    flex-wrap: wrap;
  }
}

@media (max-width: 760px) {
  .sm-hero-title-row {
    flex-direction: column;
    align-items: stretch;
  }
  .sm-meta-chips {
    grid-template-columns: 1fr;
  }
  .sm-workflow-grid {
    flex-direction: column;
  }
  .sm-step-connector {
    transform: rotate(90deg);
  }
  .sm-fields-grid,
  .sm-panel-actions-grid,
  .sm-lifecycle-grid,
  .sm-points-info-grid {
    grid-template-columns: 1fr;
  }
  .voice-participants-grid {
    grid-template-columns: 1fr;
  }
  .sm-bottom-cta {
    flex-direction: column;
    align-items: flex-start;
  }
  .sm-cta-actions {
    width: 100%;
    flex-direction: column;
  }
  .sm-primary-btn,
  .sm-secondary-btn {
    width: 100%;
    justify-content: center;
  }
}



/* ==========================================================================
   دليل نظام حفظ الرتبة (Role Backup System Guide)
   ========================================================================== */

.rb-guide-header {
  border-radius: 22px;
  background: radial-gradient(circle at 90% 15%, rgba(145, 104, 239, 0.22), transparent 55%),
              linear-gradient(145deg, rgba(22, 26, 52, 0.94), rgba(11, 14, 30, 0.95));
  border: 1px solid rgba(184, 163, 255, 0.28);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.22);
  padding: 26px 30px;
}

.rb-hero-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-top: 12px;
  margin-bottom: 24px;
}

.rb-hero-title-row h1 {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  line-height: 1.35;
  margin: 0;
}

.rb-hero-title-row h1 strong {
  background: linear-gradient(135deg, #c2aaff, #9068f8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.rb-hero-subtitle {
  margin: 10px 0 0 0;
  color: #b7b3d3;
  font-size: 14.5px;
  line-height: 1.8;
  max-width: 840px;
}

.rb-hero-cta {
  flex: none;
}

.rb-primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, #8d58f7, #6e35eb);
  border: 1px solid rgba(184, 163, 255, 0.45);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(124, 75, 246, 0.35);
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.rb-primary-btn:hover {
  background: linear-gradient(135deg, #9d6bf9, #7c44f5);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(124, 75, 246, 0.48);
  color: #fff;
}

.rb-primary-btn.big {
  padding: 13px 26px;
  font-size: 15px;
}

.rb-secondary-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(184, 163, 255, 0.22);
  color: #dedaf5;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.rb-secondary-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(184, 163, 255, 0.45);
  color: #fff;
  transform: translateY(-2px);
}

.rb-meta-chips {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(184, 163, 255, 0.16);
}

.rb-meta-chip {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(184, 163, 255, 0.14);
}

.rb-chip-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(144, 104, 248, 0.24), rgba(95, 63, 220, 0.18));
  border: 1px solid rgba(184, 163, 255, 0.28);
  font-size: 16px;
  flex: none;
}

.rb-meta-chip strong {
  display: block;
  color: #f2eeff;
  font-size: 12px;
  font-weight: 800;
}

.rb-meta-chip span {
  display: block;
  color: #a4a0c0;
  font-size: 10.5px;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Container & Quick Navigation */
.rb-guide-container {
  display: flex;
  flex-direction: column;
  gap: 26px;
  animation: fadeIn 0.25s ease;
  margin-top: 16px;
}

.rb-quick-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(18, 22, 44, 0.88), rgba(9, 12, 26, 0.9));
  border: 1px solid rgba(184, 163, 255, 0.2);
  backdrop-filter: blur(14px);
  overflow-x: auto;
  scrollbar-width: thin;
  position: sticky;
  top: 14px;
  z-index: 20;
}

.rb-quick-nav::-webkit-scrollbar {
  height: 4px;
}
.rb-quick-nav::-webkit-scrollbar-thumb {
  background: rgba(184, 163, 255, 0.3);
  border-radius: 4px;
}

.rb-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 10px;
  color: #b7b3d3;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.18s ease;
}

.rb-nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.rb-nav-link.active {
  background: rgba(144, 104, 248, 0.24);
  color: #d8c7ff;
  border: 1px solid rgba(184, 163, 255, 0.35);
}

/* Cards & Headings */
.rb-card {
  border-radius: 20px;
  background: var(--guide-card-bg);
  border: 1px solid var(--guide-card-border);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.rb-card:hover {
  border-color: var(--guide-card-hover);
}

.rb-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 28px;
  border-bottom: 1px solid rgba(184, 163, 255, 0.14);
  background: rgba(255, 255, 255, 0.02);
}

.rb-icon-badge {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(144, 104, 248, 0.3), rgba(89, 64, 216, 0.2));
  border: 1px solid rgba(184, 163, 255, 0.32);
  font-size: 20px;
  flex: none;
}

.rb-card-header h2 {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.rb-card-header p {
  margin: 4px 0 0 0;
  color: #a4a0c2;
  font-size: 13px;
}

.rb-card-body {
  padding: 26px 28px;
}

.rb-subheading {
  font-size: 15px;
  font-weight: 800;
  color: #dedaf5;
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Concept & Alert Box */
.rb-concept-text p {
  color: #ccc8e5;
  font-size: 14px;
  line-height: 1.85;
  margin: 0 0 14px 0;
}

.rb-alert {
  padding: 16px 20px;
  border-radius: 14px;
  margin-top: 18px;
  line-height: 1.8;
  font-size: 13.5px;
}

.rb-alert-tip {
  background: rgba(144, 104, 248, 0.1);
  border: 1px solid rgba(184, 163, 255, 0.28);
  color: #dedaf5;
}

.rb-alert-tip strong {
  display: block;
  color: #dccaff;
  font-size: 14px;
  margin-bottom: 6px;
}

.rb-alert-warning {
  background: rgba(245, 166, 35, 0.1);
  border: 1px solid rgba(245, 166, 35, 0.3);
  color: #ffe6ba;
}

.rb-alert-warning strong {
  display: block;
  color: #ffc97a;
  font-size: 14px;
  margin-bottom: 6px;
}

/* Workflow 5 Steps */
.rb-workflow-wrapper {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(184, 163, 255, 0.14);
}

.rb-workflow-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.rb-step-item {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(184, 163, 255, 0.16);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  transition: all 0.2s ease;
}

.rb-step-item:hover {
  background: rgba(144, 104, 248, 0.08);
  border-color: rgba(184, 163, 255, 0.35);
  transform: translateY(-2px);
}

.rb-step-num {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #9068f8, #6941db);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 10px;
}

.rb-step-item h4 {
  font-size: 13.5px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 6px 0;
}

.rb-step-item p {
  color: #a49fc4;
  font-size: 11.5px;
  line-height: 1.6;
  margin: 0;
}

.rb-step-connector {
  color: #7b75a6;
  font-size: 18px;
  flex: none;
  font-weight: bold;
}

/* Quick Setup List */
.rb-steps-list {
  display: grid;
  gap: 16px;
}

.rb-guide-step {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 16px 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(184, 163, 255, 0.14);
  transition: all 0.2s ease;
}

.rb-guide-step:hover {
  background: rgba(144, 104, 248, 0.06);
  border-color: rgba(184, 163, 255, 0.3);
}

.step-badge {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, #9068f8, #5940d8);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  flex: none;
  box-shadow: 0 4px 12px rgba(124, 83, 233, 0.3);
}

.step-body h3 {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 6px 0;
}

.step-body p {
  color: #b7b2d5;
  font-size: 13px;
  line-height: 1.7;
  margin: 0;
}

.step-body code {
  background: rgba(144, 104, 248, 0.18);
  color: #dccaff;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 12px;
}

/* Dashboard Features Grid */
.rb-features-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.rb-feature-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(184, 163, 255, 0.16);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
}

.rb-feature-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.rb-feature-badge {
  font-size: 11px;
  font-weight: 800;
  color: #bfaaff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rb-badge-status {
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
}

.rb-badge-status.on {
  background: rgba(56, 239, 125, 0.15);
  color: #4ef08f;
  border: 1px solid rgba(56, 239, 125, 0.3);
}

.rb-badge-status.limit {
  background: rgba(144, 104, 248, 0.2);
  color: #cbb8ff;
  border: 1px solid rgba(184, 163, 255, 0.35);
  direction: ltr;
}

.rb-badge-status.opt {
  background: rgba(52, 152, 219, 0.18);
  color: #69b8ff;
  border: 1px solid rgba(52, 152, 219, 0.35);
}

.rb-badge-status.optional {
  background: rgba(255, 255, 255, 0.08);
  color: #dedaf5;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.rb-feature-box h3 {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 8px 0;
}

.rb-feature-box p {
  color: #a8a3c8;
  font-size: 13px;
  line-height: 1.7;
  margin: 0 0 14px 0;
}

.rb-feature-points {
  list-style: none;
  padding: 0;
  margin: auto 0 0 0;
  display: grid;
  gap: 8px;
  border-top: 1px solid rgba(184, 163, 255, 0.1);
  padding-top: 14px;
}

.rb-feature-points li {
  color: #c4c0e0;
  font-size: 12.5px;
  line-height: 1.6;
}

.rb-feature-points strong {
  color: #dedaf5;
}

/* Official Note Box matching Dashboard */
.rb-official-note-box {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 22px;
  border-radius: 14px;
  background: rgba(139, 96, 245, 0.08);
  border-inline-start: 4px solid #9168ef;
  border-top: 1px solid rgba(184, 163, 255, 0.16);
  border-bottom: 1px solid rgba(184, 163, 255, 0.16);
  border-inline-end: 1px solid rgba(184, 163, 255, 0.16);
  margin-top: 24px;
}

.note-box-icon {
  font-size: 24px;
  flex: none;
}

.note-box-content h4 {
  font-size: 15px;
  font-weight: 800;
  color: #ded9ed;
  margin: 0 0 6px 0;
}

.note-box-content p {
  color: #aaa5bd;
  font-size: 13px;
  line-height: 1.8;
  margin: 0 0 10px 0;
}

.note-box-content small {
  display: block;
  color: #c4b5f0;
  font-size: 12px;
  line-height: 1.7;
}

/* Welcome System Comparison */
.rb-welcome-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.comparison-col {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(184, 163, 255, 0.16);
  overflow: hidden;
}

.comparison-header {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(184, 163, 255, 0.14);
}

.comparison-header.on {
  background: rgba(56, 239, 125, 0.08);
}
.comparison-header.off {
  background: rgba(245, 166, 35, 0.08);
}

.comparison-header h4 {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 4px 0;
}

.comparison-header small {
  color: #a49fc4;
  font-size: 11.5px;
}

.comparison-body {
  padding: 20px;
}

.comparison-body ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.comparison-body li {
  color: #ccc8e5;
  font-size: 13px;
  line-height: 1.7;
}

/* Simulator Styles */
.rb-sim-shell {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rb-sim-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(184, 163, 255, 0.16);
}

.sim-ctrl-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #b7b3d3;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.sim-ctrl-group input[type="checkbox"] {
  accent-color: #9068f8;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.sim-toggle-label {
  color: #dedaf5;
  font-size: 12.5px;
}

.sim-ctrl-group select {
  background: rgba(18, 22, 44, 0.9);
  border: 1px solid rgba(184, 163, 255, 0.3);
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.rb-sim-member-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(144, 104, 248, 0.12), rgba(20, 24, 46, 0.6));
  border: 1px solid rgba(184, 163, 255, 0.25);
}

.member-avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c4bf6, #4f28b5);
  font-size: 22px;
  flex: none;
}

.member-details {
  flex: 1;
  display: grid;
  gap: 8px;
}

.member-name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.member-name-row strong {
  font-size: 15px;
  color: #fff;
}

.member-id {
  color: #8c87ad;
  font-size: 11px;
  direction: ltr;
}

.member-status-pill {
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(56, 239, 125, 0.18);
  color: #4ef08f;
  border: 1px solid rgba(56, 239, 125, 0.35);
}

.member-status-pill.left {
  background: rgba(237, 66, 69, 0.18);
  color: #ff7679;
  border-color: rgba(237, 66, 69, 0.35);
}

.member-status-pill.present {
  background: rgba(56, 239, 125, 0.18);
  color: #4ef08f;
  border-color: rgba(56, 239, 125, 0.35);
}

.member-roles-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.role-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--role-color);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.role-chip-hint {
  color: #9893bb;
  font-size: 11px;
}

.rb-sim-actions-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.rb-sim-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rb-sim-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
}

.rb-sim-btn.danger {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: #fff;
  box-shadow: 0 4px 14px rgba(231, 76, 60, 0.3);
}

.rb-sim-btn.danger:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(231, 76, 60, 0.45);
}

.rb-sim-btn.success {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  color: #fff;
  box-shadow: 0 4px 14px rgba(46, 204, 113, 0.3);
}

.rb-sim-btn.success:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(46, 204, 113, 0.45);
}

.rb-sim-btn.ghost {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(184, 163, 255, 0.2);
  color: #dedaf5;
}

.rb-sim-btn.ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.rb-sim-output-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.rb-sim-panel {
  border-radius: 16px;
  background: rgba(14, 17, 34, 0.85);
  border: 1px solid rgba(184, 163, 255, 0.18);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(184, 163, 255, 0.12);
}

.panel-header h4 {
  font-size: 13.5px;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.panel-body {
  padding: 20px;
  flex: 1;
}

.db-empty-state, .discord-empty-state {
  text-align: center;
  padding: 24px 16px;
  color: #928dae;
}

.db-empty-state p, .discord-empty-state p {
  font-size: 13.5px;
  font-weight: 700;
  color: #b7b2d5;
  margin: 0 0 6px 0;
}

.db-empty-state small, .discord-empty-state small {
  font-size: 11.5px;
  color: #7d789e;
}

/* Database Card Presentation */
.db-record-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(184, 163, 255, 0.22);
  border-radius: 12px;
  padding: 16px;
  display: grid;
  gap: 12px;
}

.db-record-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(184, 163, 255, 0.12);
  padding-bottom: 8px;
}

.db-badge {
  font-size: 11px;
  font-weight: 800;
  color: #cbb8ff;
  font-family: monospace;
}

.db-status-active {
  font-size: 11.5px;
  font-weight: 800;
  color: #38ef7d;
}

.db-record-rows {
  display: grid;
  gap: 8px;
}

.db-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
}

.db-label {
  color: #8f8aa9;
}

.db-val {
  color: #dedaf5;
  font-family: monospace;
  direction: ltr;
}

.db-val.highlight {
  color: #f1c40f;
  font-weight: 700;
}

.db-roles-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mini-chip {
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
}
.mini-chip.gold { background: rgba(241, 196, 15, 0.18); color: #f1c40f; }
.mini-chip.purple { background: rgba(155, 89, 182, 0.18); color: #c388dc; }
.mini-chip.green { background: rgba(46, 204, 113, 0.18); color: #2ecc71; }

.db-silent-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #9e99be;
  border-top: 1px solid rgba(184, 163, 255, 0.1);
  padding-top: 10px;
}

.db-alert-box {
  padding: 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(184, 163, 255, 0.18);
  font-size: 13px;
  line-height: 1.7;
}

.db-alert-box.danger {
  background: rgba(231, 76, 60, 0.1);
  border-color: rgba(231, 76, 60, 0.35);
  color: #ff9d9f;
}

.db-alert-box.danger strong {
  display: block;
  color: #ff7679;
  font-size: 14px;
  margin-bottom: 6px;
}

.db-safe-preserve {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #ffe6ba;
  background: rgba(245, 166, 35, 0.12);
  padding: 8px 12px;
  border-radius: 8px;
  margin-top: 10px;
}

.db-success-box {
  text-align: center;
  padding: 20px 16px;
}

.success-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.db-success-box h4 {
  font-size: 16px;
  font-weight: 800;
  color: #38ef7d;
  margin: 0 0 6px 0;
}

.db-success-box p {
  color: #b7b2d5;
  font-size: 13px;
  line-height: 1.7;
  margin: 0 0 14px 0;
}

.welcome-outcome-tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}

.welcome-outcome-tag.skipped {
  background: rgba(56, 239, 125, 0.15);
  color: #38ef7d;
  border: 1px solid rgba(56, 239, 125, 0.35);
}

.welcome-outcome-tag.combined {
  background: rgba(52, 152, 219, 0.15);
  color: #5dade2;
  border: 1px solid rgba(52, 152, 219, 0.35);
}

/* Discord Sim Message & Embed */
.discord-sim-message {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.discord-user-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.discord-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8d58f7, #5935be);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  flex: none;
}

.discord-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}

.user-name {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}

.bot-badge {
  background: #5865f2;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 4px;
}

.msg-time {
  color: #72767d;
  font-size: 11px;
}

.discord-sim-embed {
  position: relative;
  border-radius: 6px;
  background: #2b2d31;
  border-inline-start: 4px solid #8d58f7;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.embed-accent-bar {
  display: none;
}

.embed-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.embed-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #fff;
}

.embed-description {
  font-size: 13px;
  color: #dbdee1;
  line-height: 1.6;
}

.discord-mention {
  background: rgba(88, 101, 242, 0.3);
  color: #c9cdfb;
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 700;
}

.embed-field-box {
  background: rgba(0, 0, 0, 0.15);
  padding: 10px 12px;
  border-radius: 6px;
}

.field-title {
  display: block;
  font-size: 11.5px;
  font-weight: 800;
  color: #b5bac1;
  margin-bottom: 4px;
}

.field-value {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.discord-role-pill {
  background: rgba(255, 255, 255, 0.08);
  color: #dedaf5;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 700;
}

.embed-footer {
  color: #949ba4;
  font-size: 11px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 8px;
  margin-top: 4px;
}

.discord-error-pill {
  background: rgba(237, 66, 69, 0.18);
  border: 1px solid rgba(237, 66, 69, 0.35);
  color: #ff8b8d;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  line-height: 1.6;
}

/* Discord Role Hierarchy Visual Tree */
.rb-hierarchy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.hierarchy-ladder {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ladder-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(184, 163, 255, 0.14);
}

.ladder-item.server-owner {
  background: rgba(241, 196, 15, 0.06);
  border-color: rgba(241, 196, 15, 0.25);
}

.ladder-item.bot-role.target {
  background: linear-gradient(135deg, rgba(144, 104, 248, 0.25), rgba(89, 64, 216, 0.18));
  border: 2px solid #9068f8;
  box-shadow: 0 4px 18px rgba(124, 83, 233, 0.25);
}

.ladder-badge {
  font-size: 18px;
  flex: none;
}

.ladder-item strong {
  display: block;
  color: #fff;
  font-size: 13.5px;
}

.ladder-item small {
  color: #a49fc4;
  font-size: 11px;
}

.ladder-item small.highlight-green {
  color: #38ef7d;
  font-weight: 700;
}

.ladder-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: #cbb8ff;
  border: 1px dashed rgba(184, 163, 255, 0.35);
  border-radius: 8px;
  background: rgba(144, 104, 248, 0.08);
}

.ladder-item.saved-role {
  background: rgba(255, 255, 255, 0.025);
  border-color: rgba(184, 163, 255, 0.12);
}

.perms-cards-list {
  display: grid;
  gap: 12px;
}

.perm-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(184, 163, 255, 0.14);
}

.perm-icon {
  font-size: 20px;
  flex: none;
}

.perm-card strong {
  display: block;
  color: #fff;
  font-size: 13px;
  margin-bottom: 2px;
}

.perm-card p {
  color: #b7b2d5;
  font-size: 12px;
  line-height: 1.6;
  margin: 0;
}

/* Architecture & Tech Grid */
.rb-architecture-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.arch-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(184, 163, 255, 0.16);
  border-radius: 14px;
  padding: 20px;
}

.arch-badge {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(144, 104, 248, 0.18);
  font-size: 18px;
  margin-bottom: 12px;
}

.arch-box h4 {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 8px 0;
}

.arch-box p {
  color: #b7b2d5;
  font-size: 12.5px;
  line-height: 1.8;
  margin: 0;
}

.arch-box code {
  background: rgba(144, 104, 248, 0.18);
  color: #dccaff;
  padding: 2px 6px;
  border-radius: 5px;
}

/* FAQ Details */
.rb-faq-list {
  display: grid;
  gap: 12px;
}

.rb-faq-item {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(184, 163, 255, 0.16);
  overflow: hidden;
  transition: all 0.2s ease;
}

.rb-faq-item[open] {
  border-color: rgba(184, 163, 255, 0.35);
  background: rgba(144, 104, 248, 0.06);
}

.rb-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  list-style: none;
}

.rb-faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-icon {
  font-size: 14px;
  color: #a49fc4;
  transition: transform 0.2s ease;
}

.rb-faq-item[open] .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 20px 18px 20px;
  color: #ccc8e5;
  font-size: 13px;
  line-height: 1.8;
  border-top: 1px solid rgba(184, 163, 255, 0.1);
  padding-top: 14px;
}

/* Bottom CTA Banner */
.rb-bottom-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px;
  border-radius: 20px;
  background: radial-gradient(circle at 10% 50%, rgba(144, 104, 248, 0.25), transparent 60%),
              linear-gradient(145deg, rgba(22, 26, 52, 0.95), rgba(11, 14, 30, 0.95));
  border: 1px solid rgba(184, 163, 255, 0.3);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.25);
  margin-top: 10px;
}

.rb-cta-content h3 {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 8px 0;
}

.rb-cta-content p {
  color: #b7b3d3;
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

.rb-cta-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

/* Light Theme Overrides */
html[data-theme="light"] .rb-guide-header {
  background: radial-gradient(circle at 90% 15%, rgba(135, 95, 246, 0.14), transparent 55%),
              linear-gradient(145deg, #ffffff, #f7f4fc);
  border-color: rgba(135, 95, 246, 0.22);
  box-shadow: 0 14px 35px rgba(50, 30, 90, 0.06);
}

html[data-theme="light"] .rb-hero-title-row h1 {
  color: #1f1836;
}

html[data-theme="light"] .rb-hero-subtitle {
  color: #5d5578;
}

html[data-theme="light"] .rb-meta-chip {
  background: #fdfcff;
  border-color: rgba(135, 95, 246, 0.16);
}

html[data-theme="light"] .rb-meta-chip strong {
  color: #2b2247;
}

html[data-theme="light"] .rb-meta-chip span {
  color: #6d668c;
}

html[data-theme="light"] .rb-quick-nav {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(135, 95, 246, 0.2);
  box-shadow: 0 6px 20px rgba(50, 30, 90, 0.05);
}

html[data-theme="light"] .rb-nav-link {
  color: #5d5578;
}

html[data-theme="light"] .rb-nav-link.active {
  background: rgba(135, 95, 246, 0.12);
  color: #593bbd;
  border-color: rgba(135, 95, 246, 0.3);
}

html[data-theme="light"] .rb-card {
  background: #ffffff;
  border-color: #e6def8;
  box-shadow: 0 10px 30px rgba(50, 30, 90, 0.05);
}

html[data-theme="light"] .rb-card-header {
  background: #faf8fe;
  border-color: #ede7fb;
}

html[data-theme="light"] .rb-card-header h2 {
  color: #241c3c;
}

html[data-theme="light"] .rb-card-header p {
  color: #6d668c;
}

html[data-theme="light"] .rb-concept-text p {
  color: #4b4466;
}

html[data-theme="light"] .rb-subheading {
  color: #2a2147;
}

html[data-theme="light"] .rb-step-item,
html[data-theme="light"] .rb-guide-step,
html[data-theme="light"] .rb-feature-box,
html[data-theme="light"] .comparison-col,
html[data-theme="light"] .arch-box,
html[data-theme="light"] .perm-card,
html[data-theme="light"] .ladder-item {
  background: #faf8fe;
  border-color: #e9e2f9;
}

html[data-theme="light"] .rb-step-item h4,
html[data-theme="light"] .step-body h3,
html[data-theme="light"] .rb-feature-box h3,
html[data-theme="light"] .comparison-header h4,
html[data-theme="light"] .arch-box h4,
html[data-theme="light"] .perm-card strong,
html[data-theme="light"] .ladder-item strong {
  color: #241c3c;
}

html[data-theme="light"] .rb-step-item p,
html[data-theme="light"] .step-body p,
html[data-theme="light"] .rb-feature-box p,
html[data-theme="light"] .rb-feature-points li,
html[data-theme="light"] .comparison-body li,
html[data-theme="light"] .arch-box p,
html[data-theme="light"] .perm-card p {
  color: #5d5578;
}

html[data-theme="light"] .rb-official-note-box {
  background: #f7f2fe;
  border-color: #ded1f7;
}

html[data-theme="light"] .note-box-content h4 {
  color: #3b2f5c;
}

html[data-theme="light"] .note-box-content p {
  color: #645b80;
}

html[data-theme="light"] .note-box-content small {
  color: #5439a0;
}

html[data-theme="light"] .rb-sim-panel {
  background: #f5f2fc;
  border-color: #dfd4f6;
}

html[data-theme="light"] .panel-header {
  background: #eae3f8;
  border-color: #dcd0f4;
}

html[data-theme="light"] .panel-header h4 {
  color: #241c3c;
}

html[data-theme="light"] .rb-faq-item {
  background: #faf8fe;
  border-color: #e9e2f9;
}

html[data-theme="light"] .rb-faq-item summary {
  color: #241c3c;
}

html[data-theme="light"] .faq-answer {
  color: #5d5578;
}

html[data-theme="light"] .rb-bottom-cta {
  background: radial-gradient(circle at 10% 50%, rgba(135, 95, 246, 0.16), transparent 60%),
              linear-gradient(145deg, #ffffff, #f7f4fc);
  border-color: rgba(135, 95, 246, 0.25);
  box-shadow: 0 16px 40px rgba(50, 30, 90, 0.08);
}

html[data-theme="light"] .rb-cta-content h3 {
  color: #281d44;
}

html[data-theme="light"] .rb-cta-content p {
  color: #5d5578;
}

/* Responsive Rules for Role Backup Guide */
@media (max-width: 1050px) {
  .rb-meta-chips {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .rb-features-grid,
  .rb-welcome-comparison,
  .rb-sim-output-grid,
  .rb-hierarchy-grid,
  .rb-architecture-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .rb-hero-title-row {
    flex-direction: column;
    align-items: stretch;
  }
  .rb-meta-chips {
    grid-template-columns: 1fr;
  }
  .rb-workflow-grid {
    flex-direction: column;
  }
  .rb-step-connector {
    transform: rotate(90deg);
  }
  .rb-bottom-cta {
    flex-direction: column;
    align-items: flex-start;
  }
  .rb-cta-actions {
    width: 100%;
    flex-direction: column;
  }
  .rb-primary-btn,
  .rb-secondary-btn {
    width: 100%;
    justify-content: center;
  }
  .rb-sim-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .rb-sim-actions-bar {
    flex-direction: column;
  }
  .rb-sim-btn {
    width: 100%;
    justify-content: center;
  }
}
/* ==========================================================================
   MODERATION & ATTENDANCE GUIDE STYLES (modguide-*)
   ========================================================================== */

.modguide-header {
  border-radius: 22px;
  background: radial-gradient(circle at 90% 15%, rgba(144, 104, 248, 0.22), transparent 55%),
              linear-gradient(145deg, rgba(22, 26, 52, 0.94), rgba(11, 14, 30, 0.95));
  border: 1px solid rgba(184, 163, 255, 0.28);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.25);
  padding: 30px;
  margin-bottom: 25px;
}

.modguide-hero-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin: 18px 0 24px;
}

.modguide-hero-title-row h1 {
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  line-height: 1.35;
}

.modguide-hero-title-row h1 strong {
  background: linear-gradient(135deg, #c2aaff, #9068f8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.modguide-hero-subtitle {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: #b7b3d9;
  max-width: 860px;
}

.modguide-hero-cta {
  flex-shrink: 0;
}

.modguide-primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #7c53e9, #9068f8);
  color: #fff;
  padding: 12px 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(124, 83, 233, 0.35);
  transition: all 0.22s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.modguide-primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(144, 104, 248, 0.45);
  background: linear-gradient(135deg, #8a62f5, #9e7aff);
}

.modguide-secondary-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #e2dcff;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(184, 163, 255, 0.2);
  transition: all 0.2s ease;
}

.modguide-secondary-btn:hover {
  background: rgba(144, 104, 248, 0.15);
  border-color: rgba(184, 163, 255, 0.4);
  color: #fff;
}

.modguide-meta-chips {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.modguide-meta-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(16, 20, 42, 0.65);
  border: 1px solid rgba(184, 163, 255, 0.14);
  border-radius: 14px;
  padding: 12px 14px;
  backdrop-filter: blur(8px);
}

.modguide-chip-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.modguide-meta-chip div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.modguide-meta-chip strong {
  font-size: 13px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modguide-meta-chip span {
  font-size: 11px;
  color: #9f9ac5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modguide-quick-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 25px;
  background: rgba(18, 22, 46, 0.7);
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(184, 163, 255, 0.16);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 75px;
  z-index: 10;
}

.modguide-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #b5aedb;
  text-decoration: none;
  transition: all 0.2s ease;
}

.modguide-nav-link:hover,
.modguide-nav-link.active {
  color: #fff;
  background: rgba(144, 104, 248, 0.22);
}

.modguide-card {
  background: var(--guide-card-bg);
  border: 1px solid var(--guide-card-border);
  border-radius: 20px;
  padding: 28px;
  margin-bottom: 25px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
}

.modguide-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(184, 163, 255, 0.12);
}

.modguide-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(144, 104, 248, 0.3), rgba(89, 54, 205, 0.2));
  border: 1px solid rgba(184, 163, 255, 0.28);
  display: grid;
  place-items: center;
  font-size: 22px;
  flex-shrink: 0;
}

.modguide-card-header h2 {
  margin: 0 0 4px;
  font-size: 19px;
  font-weight: 800;
  color: #fff;
}

.modguide-card-header p {
  margin: 0;
  font-size: 13px;
  color: #9d98c2;
}

.modguide-concept-text p {
  font-size: 14.5px;
  line-height: 1.8;
  color: #dbd7f5;
  margin: 0 0 14px;
}

.modguide-comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 22px;
}

.modguide-compare-card {
  padding: 20px;
  border-radius: 16px;
  border: 1px solid;
}

.modguide-compare-card.is-bad {
  background: rgba(239, 68, 68, 0.05);
  border-color: rgba(239, 68, 68, 0.25);
}

.modguide-compare-card.is-good {
  background: rgba(16, 185, 129, 0.06);
  border-color: rgba(16, 185, 129, 0.3);
}

.compare-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.compare-card-head h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.compare-list {
  margin: 0;
  padding: 0 18px 0 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 13.5px;
  line-height: 1.6;
  color: #c7c2e8;
}

[dir="ltr"] .compare-list {
  padding: 0 0 0 18px;
}

.modguide-flow-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.modguide-flow-step {
  background: rgba(17, 21, 46, 0.6);
  border: 1px solid rgba(184, 163, 255, 0.16);
  border-radius: 16px;
  padding: 18px 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.2s ease;
}

.modguide-flow-step:hover {
  border-color: rgba(184, 163, 255, 0.4);
  transform: translateY(-2px);
  background: rgba(24, 29, 64, 0.7);
}

.modguide-flow-step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modguide-step-num {
  font-size: 12px;
  font-weight: 800;
  color: #9068f8;
  background: rgba(144, 104, 248, 0.15);
  padding: 3px 8px;
  border-radius: 6px;
}

.modguide-step-icon {
  font-size: 20px;
}

.modguide-flow-step h4 {
  margin: 0;
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
}

.modguide-flow-step p {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: #a49ec9;
  flex-grow: 1;
}

.modguide-step-tag {
  align-self: flex-start;
  font-size: 10.5px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: #c5beec;
  border: 1px solid rgba(184, 163, 255, 0.18);
}

.modguide-sections-breakdown {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.modguide-breakdown-box {
  background: rgba(17, 21, 46, 0.55);
  border: 1px solid rgba(184, 163, 255, 0.16);
  border-radius: 18px;
  overflow: hidden;
}

.breakdown-box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: rgba(24, 29, 64, 0.6);
  border-bottom: 1px solid rgba(184, 163, 255, 0.12);
}

.box-head-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.breakdown-idx {
  font-size: 16px;
  font-weight: 900;
  color: #9068f8;
  background: rgba(144, 104, 248, 0.16);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
}

.breakdown-box-head h3 {
  margin: 0 0 3px;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}

.breakdown-box-head p {
  margin: 0;
  font-size: 12.5px;
  color: #9f9ac5;
}

.breakdown-badge {
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(144, 104, 248, 0.15);
  color: #c4aaff;
  border: 1px solid rgba(184, 163, 255, 0.25);
}

.breakdown-box-content {
  padding: 22px;
}

.modguide-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.modguide-field-card {
  background: rgba(12, 15, 34, 0.65);
  border: 1px solid rgba(184, 163, 255, 0.12);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.field-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.field-type {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  color: #a49ec9;
}

.field-desc {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: #bab5dc;
  flex-grow: 1;
}

.field-tip {
  font-size: 11.5px;
  line-height: 1.5;
  color: #e0dbff;
  background: rgba(144, 104, 248, 0.12);
  padding: 8px 10px;
  border-radius: 8px;
  border-inline-start: 3px solid #9068f8;
}

.modguide-command-features-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.cmd-feature-chip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(14, 18, 38, 0.65);
  border: 1px solid rgba(184, 163, 255, 0.12);
  border-radius: 12px;
  padding: 12px;
}

.cmd-feature-chip span {
  font-size: 20px;
  flex-shrink: 0;
}

.cmd-feature-chip div {
  font-size: 12.5px;
  line-height: 1.5;
  color: #c7c2e8;
}

.cmd-feature-chip strong {
  display: block;
  color: #fff;
  margin-bottom: 2px;
  font-size: 13px;
}

.modguide-deployment-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.deploy-card {
  background: rgba(17, 21, 46, 0.55);
  border: 1px solid rgba(184, 163, 255, 0.16);
  border-radius: 16px;
  padding: 20px;
}

.deploy-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.deploy-num {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #7c53e9, #9068f8);
  color: #fff;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.deploy-card-head h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.deploy-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: #c2bddf;
}

.modguide-table-responsive {
  overflow-x: auto;
}

.modguide-cmd-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.modguide-cmd-table th,
.modguide-cmd-table td {
  padding: 12px 14px;
  text-align: start;
  border-bottom: 1px solid rgba(184, 163, 255, 0.12);
}

.modguide-cmd-table th {
  background: rgba(24, 29, 64, 0.6);
  color: #fff;
  font-weight: 700;
}

.modguide-cmd-table td code {
  background: rgba(144, 104, 248, 0.15);
  color: #c4aaff;
  padding: 3px 6px;
  border-radius: 5px;
  font-family: monospace;
}

.cmd-role-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
}

.cmd-role-badge.is-admin {
  background: rgba(144, 104, 248, 0.16);
  color: #d1b8ff;
  border: 1px solid rgba(184, 163, 255, 0.25);
}

.cmd-role-badge.is-mod {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.cmd-role-badge.is-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

/* SIMULATOR STYLES */
.modguide-sim-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(184, 163, 255, 0.12);
  padding-bottom: 10px;
}

.modguide-sim-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(184, 163, 255, 0.16);
  color: #c5beec;
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modguide-sim-tab:hover,
.modguide-sim-tab.active {
  background: linear-gradient(135deg, #7c53e9, #9068f8);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(124, 83, 233, 0.3);
}

.discord-interactive-select {
  margin-top: 14px;
  position: relative;
  max-width: 440px;
}

.discord-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #2b2d31;
  border: 1px solid #1e1f22;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  color: #dbdee1;
  transition: border-color 0.2s;
  user-select: none;
}

.discord-select-trigger:hover {
  border-color: #5865f2;
}

.trigger-label-group {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
}

.trigger-arrow {
  font-size: 10px;
  color: #949ba4;
}

.discord-select-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 6px;
  background: #2b2d31;
  border: 1px solid #1e1f22;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  z-index: 25;
}

.discord-select-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.15s;
}

.discord-select-option:last-child {
  border-bottom: none;
}

.discord-select-option:hover {
  background: #35373c;
}

.opt-badge {
  font-size: 18px;
  flex-shrink: 0;
}

.opt-texts {
  display: flex;
  flex-direction: column;
}

.opt-texts strong {
  font-size: 13px;
  color: #f2f3f5;
}

.opt-texts small {
  font-size: 11px;
  color: #949ba4;
}

.discord-ephemeral-box {
  margin-top: 14px;
  background: #2b2d31;
  border: 1px solid #3f4147;
  border-radius: 8px;
  padding: 14px;
  max-width: 520px;
}

.ephemeral-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #949ba4;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ephemeral-dismiss-btn {
  margin-inline-start: auto;
  background: none;
  border: none;
  color: #5865f2;
  font-size: 11px;
  cursor: pointer;
  text-decoration: underline;
}

.ephemeral-alert {
  padding: 10px;
  border-radius: 6px;
  font-size: 12.5px;
  line-height: 1.6;
}

.ephemeral-alert.is-success {
  background: rgba(16, 185, 129, 0.08);
  border-inline-start: 4px solid #10b981;
}

.ephemeral-alert.is-danger {
  background: rgba(239, 68, 68, 0.08);
  border-inline-start: 4px solid #ef4444;
}

.ephemeral-alert.is-info {
  background: rgba(59, 130, 246, 0.08);
  border-inline-start: 4px solid #3b82f6;
}

.ephemeral-alert.is-gold {
  background: rgba(245, 158, 11, 0.08);
  border-inline-start: 4px solid #f59e0b;
}

.alert-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: #fff;
  font-size: 13px;
}

.alert-details p {
  margin: 3px 0;
  color: #dbdee1;
}

.alert-notice {
  margin-top: 8px;
  font-size: 11px;
  color: #949ba4;
}

.badge-active {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
}

.on-duty-member {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.member-info {
  display: flex;
  align-items: center;
  gap: 6px;
}

.member-meta {
  display: flex;
  gap: 10px;
  font-size: 11px;
  color: #949ba4;
}

.alert-lb-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lb-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  padding: 6px 10px;
  border-radius: 6px;
}

.lb-entry.rank-1 {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.lb-rank {
  font-weight: 800;
  width: 32px;
}

.presence-countdown {
  color: #f59e0b;
  font-weight: 800;
  font-family: monospace;
}

.discord-button-row {
  margin-top: 12px;
}

.discord-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #248046;
  border: 1px solid #2da659;
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.discord-btn:hover {
  background: #1a6334;
}

.discord-inline-alert {
  margin-top: 10px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.discord-embed-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.embed-field {
  display: flex;
  flex-direction: column;
}

.field-label {
  font-size: 11px;
  color: #949ba4;
  margin-bottom: 2px;
}

.field-val {
  font-size: 12.5px;
  color: #f2f3f5;
}

.modguide-setup-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.setup-step-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: rgba(17, 21, 46, 0.55);
  border: 1px solid rgba(184, 163, 255, 0.14);
  border-radius: 14px;
  padding: 16px 18px;
}

.setup-step-idx {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, #7c53e9, #9068f8);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.setup-step-content h4 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.setup-step-content p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #b8b3db;
}

.modguide-faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modguide-faq-item {
  background: rgba(17, 21, 46, 0.55);
  border: 1px solid rgba(184, 163, 255, 0.14);
  border-radius: 14px;
  overflow: hidden;
}

.modguide-faq-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: none;
  border: none;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-align: start;
  cursor: pointer;
  transition: background 0.2s;
}

.modguide-faq-toggle:hover {
  background: rgba(144, 104, 248, 0.08);
}

.faq-icon {
  font-size: 16px;
  transition: transform 0.2s;
}

.modguide-faq-item.is-open .faq-icon {
  transform: rotate(180deg);
}

.modguide-faq-content {
  padding: 0 18px 16px;
  font-size: 13px;
  line-height: 1.7;
  color: #b8b3db;
}

.modguide-faq-content p {
  margin: 0;
}

.modguide-bottom-cta {
  background: radial-gradient(circle at 10% 20%, rgba(144, 104, 248, 0.25), transparent 50%),
              linear-gradient(145deg, rgba(22, 26, 52, 0.94), rgba(11, 14, 30, 0.95));
  border: 1px solid rgba(184, 163, 255, 0.25);
  border-radius: 20px;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.cta-text h3 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}

.cta-text p {
  margin: 0;
  font-size: 13.5px;
  color: #b7b3d9;
  line-height: 1.6;
}

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

/* LIGHT THEME SUPPORT */
html[data-theme="light"] .modguide-header {
  background: radial-gradient(circle at 90% 15%, rgba(135, 95, 246, 0.12), transparent 55%),
              linear-gradient(145deg, #ffffff, #f7f4fc);
  border-color: rgba(135, 95, 246, 0.22);
}

html[data-theme="light"] .modguide-hero-title-row h1 {
  color: #1e1538;
}

html[data-theme="light"] .modguide-hero-subtitle {
  color: #5d5578;
}

html[data-theme="light"] .modguide-meta-chip {
  background: #ffffff;
  border-color: rgba(135, 95, 246, 0.16);
}

html[data-theme="light"] .modguide-meta-chip strong {
  color: #1e1538;
}

html[data-theme="light"] .modguide-meta-chip span {
  color: #6b6385;
}

html[data-theme="light"] .modguide-quick-nav {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(135, 95, 246, 0.18);
}

html[data-theme="light"] .modguide-nav-link {
  color: #5d5578;
}

html[data-theme="light"] .modguide-nav-link:hover,
html[data-theme="light"] .modguide-nav-link.active {
  color: #7c53e9;
  background: rgba(144, 104, 248, 0.12);
}

html[data-theme="light"] .modguide-card {
  background: #ffffff;
  border-color: rgba(135, 95, 246, 0.16);
}

html[data-theme="light"] .modguide-card-header h2 {
  color: #1e1538;
}

html[data-theme="light"] .modguide-card-header p {
  color: #6b6385;
}

html[data-theme="light"] .modguide-concept-text p {
  color: #3b3353;
}

html[data-theme="light"] .modguide-flow-step {
  background: #fbf9ff;
  border-color: rgba(135, 95, 246, 0.15);
}

html[data-theme="light"] .modguide-flow-step h4 {
  color: #1e1538;
}

html[data-theme="light"] .modguide-flow-step p {
  color: #5d5578;
}

html[data-theme="light"] .modguide-breakdown-box {
  background: #ffffff;
  border-color: rgba(135, 95, 246, 0.16);
}

html[data-theme="light"] .breakdown-box-head {
  background: #f7f4fc;
}

html[data-theme="light"] .breakdown-box-head h3 {
  color: #1e1538;
}

html[data-theme="light"] .modguide-field-card {
  background: #faf8fd;
  border-color: rgba(135, 95, 246, 0.14);
}

html[data-theme="light"] .field-name {
  color: #1e1538;
}

html[data-theme="light"] .field-desc {
  color: #4a4365;
}

html[data-theme="light"] .setup-step-item {
  background: #ffffff;
  border-color: rgba(135, 95, 246, 0.16);
}

html[data-theme="light"] .setup-step-content h4 {
  color: #1e1538;
}

html[data-theme="light"] .setup-step-content p {
  color: #5d5578;
}

html[data-theme="light"] .modguide-faq-item {
  background: #ffffff;
  border-color: rgba(135, 95, 246, 0.16);
}

html[data-theme="light"] .modguide-faq-toggle {
  color: #1e1538;
}

html[data-theme="light"] .modguide-faq-content {
  color: #4a4365;
}

html[data-theme="light"] .modguide-bottom-cta {
  background: radial-gradient(circle at 10% 20%, rgba(135, 95, 246, 0.15), transparent 50%),
              linear-gradient(145deg, #ffffff, #f7f4fc);
  border-color: rgba(135, 95, 246, 0.22);
}

html[data-theme="light"] .cta-text h3 {
  color: #1e1538;
}

html[data-theme="light"] .cta-text p {
  color: #5d5578;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1050px) {
  .modguide-meta-chips {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .modguide-flow-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .modguide-fields-grid,
  .modguide-command-features-list,
  .modguide-deployment-steps,
  .modguide-comparison-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .modguide-hero-title-row {
    flex-direction: column;
    align-items: stretch;
  }
  .modguide-meta-chips {
    grid-template-columns: 1fr;
  }
  .modguide-flow-grid {
    grid-template-columns: 1fr;
  }
  .modguide-bottom-cta {
    flex-direction: column;
    align-items: flex-start;
  }
  .cta-actions {
    width: 100%;
    flex-direction: column;
  }
  .modguide-primary-btn,
  .modguide-secondary-btn {
    width: 100%;
    justify-content: center;
  }
  .discord-embed-fields-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   BANS & PROGRESSIVE DISCIPLINE SYSTEM GUIDE STYLES
   ========================================================================== */

.bans-guide-header {
  margin-bottom: 24px;
}

.bans-hero-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-top: 14px;
}

.bans-hero-subtitle {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-muted, #a0aec0);
  margin-top: 8px;
  max-width: 860px;
}

.bans-hero-cta {
  flex-shrink: 0;
}

.bans-primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  border-radius: 11px;
  background: linear-gradient(135deg, #8055df 0%, #683ad4 100%);
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(128, 85, 223, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.bans-primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(128, 85, 223, 0.5);
  filter: brightness(1.08);
}

.bans-secondary-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 11px;
  background: rgba(144, 104, 248, 0.09);
  border: 1px solid rgba(184, 163, 255, 0.22);
  color: var(--text-normal, #e2e8f0) !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.bans-secondary-btn:hover {
  background: rgba(144, 104, 248, 0.16);
  border-color: rgba(184, 163, 255, 0.4);
}

/* Meta Chips */
.bans-meta-chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.bans-meta-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(22, 27, 46, 0.7);
  border: 1px solid rgba(184, 163, 255, 0.14);
  backdrop-filter: blur(8px);
}

.bans-chip-icon {
  font-size: 20px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(144, 104, 248, 0.12);
}

.bans-meta-chip div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bans-meta-chip strong {
  font-size: 13px;
  color: #ebe7f6;
}

.bans-meta-chip span {
  font-size: 11px;
  color: var(--text-muted, #a0aec0);
}

/* Quick Nav */
.bans-quick-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 4px;
  margin: 18px 0 28px;
  scrollbar-width: thin;
  position: sticky;
  top: 70px;
  z-index: 10;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(12px);
  border-radius: 14px;
  border: 1px solid rgba(184, 163, 255, 0.12);
}

.bans-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted, #a0aec0);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
  background: transparent;
  border: 1px solid transparent;
}

.bans-nav-link:hover {
  color: #fff;
  background: rgba(144, 104, 248, 0.12);
}

.bans-nav-link.active {
  color: #fff;
  background: #8055df;
  border-color: #9068f8;
  box-shadow: 0 2px 10px rgba(128, 85, 223, 0.35);
}

/* Guide Container & Cards */
.bans-guide-container {
  display: grid;
  gap: 28px;
}

.bans-card {
  border-radius: 18px;
  background: rgba(18, 22, 40, 0.75);
  border: 1px solid rgba(184, 163, 255, 0.15);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
}

.bans-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(184, 163, 255, 0.1);
  background: linear-gradient(180deg, rgba(144, 104, 248, 0.06) 0%, transparent 100%);
}

.bans-icon-badge {
  font-size: 22px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(144, 104, 248, 0.14);
  border: 1px solid rgba(184, 163, 255, 0.25);
  flex-shrink: 0;
}

.bans-card-header h2 {
  font-size: 17px;
  margin: 0;
  color: #fff;
}

.bans-card-header p {
  font-size: 12px;
  margin: 4px 0 0;
  color: var(--text-muted, #a0aec0);
}

.bans-card-body {
  padding: 24px;
}

.bans-concept-text p {
  font-size: 13.5px;
  line-height: 1.85;
  color: #d2d2d8;
  margin: 0 0 16px;
}

/* Progression Flow */
.bans-pipeline-flow {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin: 24px 0;
}

.bans-pipe-step {
  flex: 1;
  padding: 18px;
  border-radius: 14px;
  background: rgba(13, 17, 32, 0.85);
  border: 1px solid rgba(184, 163, 255, 0.16);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.bans-pipe-step:hover {
  transform: translateY(-3px);
  border-color: #9068f8;
}

.pipe-step-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pipe-num {
  font-size: 11px;
  font-weight: 800;
  color: #b99aff;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(144, 104, 248, 0.12);
}

.ban-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.ban-dot.first { background: #e3b65e; box-shadow: 0 0 10px #e3b65e88; }
.ban-dot.second { background: #ef8d87; box-shadow: 0 0 10px #ef8d8788; }
.ban-dot.third { background: #b295f0; box-shadow: 0 0 10px #b295f088; }

.pipe-step-content h4 {
  font-size: 14.5px;
  margin: 0 0 6px;
  color: #ebe7f6;
}

.pipe-step-content p {
  font-size: 12px;
  line-height: 1.7;
  color: #aaa7bc;
  margin: 0;
}

.pipe-step-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed rgba(184, 163, 255, 0.15);
}

.pipe-step-meta span {
  font-size: 10.5px;
  color: #b99aff;
  font-weight: 500;
}

.bans-pipe-arrow {
  display: grid;
  place-items: center;
  font-size: 20px;
  color: #9068f8;
  font-weight: bold;
}

/* Callout Box */
.bans-callout {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 12px;
  background: rgba(144, 104, 248, 0.08);
  border: 1px solid rgba(184, 163, 255, 0.2);
  border-inline-start: 4px solid #9068f8;
  margin-top: 18px;
}

.bans-callout strong {
  font-size: 13.5px;
  color: #fff;
  display: block;
  margin-bottom: 4px;
}

.bans-callout p {
  font-size: 12.5px;
  line-height: 1.75;
  color: #d2d2d8;
  margin: 0;
}

/* Settings Grid (Cards 01 to 04) */
.bans-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.bans-setting-card {
  padding: 20px;
  border-radius: 14px;
  background: rgba(13, 17, 32, 0.7);
  border: 1px solid rgba(184, 163, 255, 0.14);
}

.setting-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(184, 163, 255, 0.1);
}

.card-step-badge {
  font-size: 12px;
  font-weight: 800;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(144, 104, 248, 0.15);
  color: #b99aff;
}

.setting-card-head h3 {
  font-size: 15px;
  margin: 0;
  color: #ebe7f6;
}

.setting-card-head small {
  font-size: 11px;
  color: #aaa7bc;
}

.bans-field-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.bans-field-list li strong {
  font-size: 12.5px;
  color: #b99aff;
  display: block;
  margin-bottom: 3px;
}

.bans-field-list li p {
  font-size: 12px;
  line-height: 1.7;
  color: #aaa7bc;
  margin: 0;
}

/* Actions Table */
.bans-actions-table-wrapper {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(184, 163, 255, 0.16);
}

.bans-actions-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  text-align: start;
}

.bans-actions-table th {
  background: rgba(144, 104, 248, 0.12);
  color: #ebe7f6;
  padding: 14px 16px;
  font-weight: 700;
  border-bottom: 1px solid rgba(184, 163, 255, 0.16);
}

.bans-actions-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(184, 163, 255, 0.08);
  color: #d2d2d8;
  line-height: 1.6;
}

.bans-actions-table tr:hover td {
  background: rgba(144, 104, 248, 0.04);
}

/* Action Pills */
.action-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.action-pill.warn-1 {
  background: rgba(227, 182, 94, 0.15);
  color: #e3b65e;
  border: 1px solid rgba(227, 182, 94, 0.3);
}
.action-pill.warn-2 {
  background: rgba(239, 141, 135, 0.15);
  color: #ef8d87;
  border: 1px solid rgba(239, 141, 135, 0.3);
}
.action-pill.reactivate {
  background: rgba(178, 149, 240, 0.15);
  color: #b295f0;
  border: 1px solid rgba(178, 149, 240, 0.3);
}
.action-pill.inquiry {
  background: rgba(87, 242, 135, 0.15);
  color: #57f287;
  border: 1px solid rgba(87, 242, 135, 0.3);
}

/* Live Simulator */
.bans-sim-container {
  display: grid;
  gap: 20px;
}

.bans-sim-controls {
  padding: 16px 20px;
  border-radius: 12px;
  background: rgba(13, 17, 32, 0.85);
  border: 1px solid rgba(184, 163, 255, 0.16);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.bans-sim-dropdown {
  min-width: 220px;
  padding: 9px 12px;
  border-radius: 9px;
  background: #181d33;
  color: #fff;
  border: 1px solid rgba(184, 163, 255, 0.25);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.bans-sim-meta-box {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.bans-sim-meta-box p {
  margin: 0;
  font-size: 12px;
  color: #aaa7bc;
}

.bans-sim-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 20px;
}

/* Discord Channel Column */
.bans-sim-discord-col {
  padding: 18px;
  border-radius: 14px;
  background: #2b2d31;
  border: 1px solid #383a40;
  color: #dbdee1;
}

.discord-col-header {
  font-size: 11.5px;
  font-weight: 700;
  color: #949ba4;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.discord-msg-box {
  display: grid;
  gap: 10px;
}

.discord-bot-author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.discord-bot-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #8055df;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
}

.discord-bot-author.mini .discord-bot-avatar {
  width: 22px;
  height: 22px;
  font-size: 12px;
}

.discord-bot-name {
  font-weight: 700;
  color: #fff;
}

.discord-bot-badge {
  font-size: 9px;
  padding: 2px 4px;
  border-radius: 3px;
  background: #5865f2;
  color: #fff;
  font-weight: 600;
}

.discord-embed-box {
  padding: 14px 16px;
  border-radius: 6px;
  background: #1e1f22;
  border-inline-start: 4px solid #9068f8;
  display: grid;
  gap: 8px;
}

.discord-embed-box h4 {
  font-size: 14px;
  margin: 0;
  color: #fff;
}

.discord-embed-box p {
  font-size: 12px;
  line-height: 1.6;
  color: #dbdee1;
  margin: 0;
}

.discord-embed-footer {
  font-size: 10.5px;
  color: #949ba4;
}

.discord-select-menu-mock {
  padding: 10px 14px;
  border-radius: 6px;
  background: #1e1f22;
  border: 1px solid #383a40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #dbdee1;
  cursor: pointer;
}

/* Outputs (DM & Log) */
.bans-sim-output-col {
  display: grid;
  gap: 16px;
}

.sim-output-card {
  border-radius: 14px;
  background: #2b2d31;
  border: 1px solid #383a40;
  padding: 16px;
}

.output-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  color: #949ba4;
}

.dm-badge {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(144, 104, 248, 0.2);
  color: #b99aff;
}

.log-badge {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(87, 242, 135, 0.2);
  color: #57f287;
}

.dm-bubble {
  padding: 12px 14px;
  border-radius: 10px;
  background: #1e1f22;
  border: 1px solid #383a40;
  font-size: 12.5px;
  line-height: 1.7;
  color: #dbdee1;
  white-space: pre-line;
  margin-top: 8px;
}

.log-embed-line {
  padding: 12px 14px;
  border-radius: 6px;
  background: #1e1f22;
  border-inline-start: 4px solid #8055df;
  font-size: 12px;
  line-height: 1.7;
  color: #dbdee1;
}
.log-embed-line.warning {
  border-inline-start-color: #ef8d87;
}
.log-embed-line.success {
  border-inline-start-color: #b295f0;
}
.log-embed-line.info {
  border-inline-start-color: #57f287;
}

.log-action-title {
  color: #fff;
  font-size: 13px;
  display: block;
  margin-bottom: 6px;
}

/* Validation Lab */
.bans-lab-box {
  padding: 22px;
  border-radius: 14px;
  background: rgba(13, 17, 32, 0.85);
  border: 1px solid rgba(184, 163, 255, 0.16);
  display: grid;
  gap: 18px;
  margin-top: 14px;
}

.bans-lab-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.lab-input-group label {
  font-size: 12.5px;
  color: #ebe7f6;
  display: block;
  margin-bottom: 6px;
}

.lab-duration-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px;
  gap: 8px;
}

.lab-duration-row input,
.lab-duration-row select {
  padding: 9px 12px;
  border-radius: 9px;
  border: 1px solid rgba(184, 163, 255, 0.22);
  background: #121628;
  color: #fff;
  font-size: 13px;
}

.lab-hours-comparison {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 14px;
  font-weight: 700;
  color: #b99aff;
}

.comparison-symbol {
  font-size: 20px;
  font-weight: 900;
}

.lab-status-badge {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}
.lab-status-badge.success {
  background: rgba(87, 242, 135, 0.12);
  border: 1px solid rgba(87, 242, 135, 0.3);
  color: #57f287;
}
.lab-status-badge.error {
  background: rgba(237, 66, 69, 0.12);
  border: 1px solid rgba(237, 66, 69, 0.3);
  color: #f2a3a3;
}

/* Rules Summary Grid */
.bans-rules-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.rule-summary-item {
  padding: 16px;
  border-radius: 12px;
  background: rgba(13, 17, 32, 0.6);
  border: 1px solid rgba(184, 163, 255, 0.1);
}

.rule-summary-item .rule-icon {
  font-size: 22px;
  margin-bottom: 8px;
  display: block;
}

.rule-summary-item h4 {
  font-size: 13.5px;
  margin: 0 0 6px;
  color: #ebe7f6;
}

.rule-summary-item p {
  font-size: 11.5px;
  line-height: 1.65;
  color: #aaa7bc;
  margin: 0;
}

/* Lifecycle Grid */
.bans-lifecycle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.lifecycle-card {
  padding: 18px;
  border-radius: 13px;
  background: rgba(13, 17, 32, 0.7);
  border: 1px solid rgba(184, 163, 255, 0.12);
}

.lifecycle-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.lifecycle-icon {
  font-size: 20px;
}

.lifecycle-card-top h4 {
  font-size: 14px;
  margin: 0;
  color: #ebe7f6;
}

.lifecycle-card p {
  font-size: 12px;
  line-height: 1.7;
  color: #aaa7bc;
  margin: 0;
}

/* FAQ Grid */
.bans-faq-grid {
  display: grid;
  gap: 12px;
}

.bans-faq-item {
  border-radius: 12px;
  background: rgba(13, 17, 32, 0.6);
  border: 1px solid rgba(184, 163, 255, 0.14);
  overflow: hidden;
}

.bans-faq-item summary {
  padding: 14px 18px;
  cursor: pointer;
  font-size: 13.5px;
  color: #ebe7f6;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bans-faq-item summary::-webkit-details-marker {
  display: none;
}

.bans-faq-item summary::after {
  content: '⌄';
  font-size: 16px;
  color: #b99aff;
}

.bans-faq-item[open] summary::after {
  content: '⌃';
}

.bans-faq-item[open] summary {
  border-bottom: 1px solid rgba(184, 163, 255, 0.1);
  background: rgba(144, 104, 248, 0.06);
}

.faq-content {
  padding: 16px 18px;
  font-size: 12.5px;
  line-height: 1.75;
  color: #d2d2d8;
}

.faq-content p {
  margin: 0;
}

/* Bottom CTA */
.bans-bottom-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 30px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(144, 104, 248, 0.15) 0%, rgba(20, 24, 46, 0.8) 100%);
  border: 1px solid rgba(184, 163, 255, 0.25);
  margin-top: 10px;
}

.bans-bottom-cta h3 {
  font-size: 18px;
  margin: 0 0 6px;
  color: #fff;
}

.bans-bottom-cta p {
  font-size: 13px;
  margin: 0;
  color: #aaa7bc;
}

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

/* Light Theme Adaptations */
html[data-theme="light"] .bans-card,
html[data-theme="light"] .bans-setting-card,
html[data-theme="light"] .bans-pipe-step,
html[data-theme="light"] .bans-meta-chip,
html[data-theme="light"] .bans-lab-box,
html[data-theme="light"] .lifecycle-card,
html[data-theme="light"] .bans-faq-item,
html[data-theme="light"] .rule-summary-item {
  background: #ffffff;
  border-color: #e4dbf2;
}

html[data-theme="light"] .bans-card-header h2,
html[data-theme="light"] .setting-card-head h3,
html[data-theme="light"] .pipe-step-content h4,
html[data-theme="light"] .lifecycle-card-top h4,
html[data-theme="light"] .rule-summary-item h4,
html[data-theme="light"] .bans-faq-item summary,
html[data-theme="light"] .bans-meta-chip strong,
html[data-theme="light"] .bans-bottom-cta h3 {
  color: #342d46;
}

html[data-theme="light"] .bans-concept-text p,
html[data-theme="light"] .bans-actions-table td,
html[data-theme="light"] .pipe-step-content p,
html[data-theme="light"] .bans-field-list li p,
html[data-theme="light"] .lifecycle-card p,
html[data-theme="light"] .rule-summary-item p,
html[data-theme="light"] .faq-content,
html[data-theme="light"] .bans-bottom-cta p {
  color: #605770;
}

html[data-theme="light"] .bans-quick-nav {
  background: rgba(255, 255, 255, 0.9);
  border-color: #e4dbf2;
}

html[data-theme="light"] .bans-nav-link {
  color: #605770;
}

html[data-theme="light"] .bans-actions-table th {
  background: #faf8fe;
  color: #342d46;
  border-bottom-color: #e4dbf2;
}

html[data-theme="light"] .lab-duration-row input,
html[data-theme="light"] .lab-duration-row select {
  background: #faf8fe;
  color: #342d46;
  border-color: #e4dbf2;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .bans-settings-grid,
  .bans-lifecycle-grid,
  .bans-sim-columns {
    grid-template-columns: minmax(0, 1fr);
  }
  .bans-pipeline-flow {
    flex-direction: column;
  }
  .bans-pipe-arrow {
    transform: rotate(90deg);
    padding: 6px 0;
  }
}

@media (max-width: 768px) {
  .bans-hero-title-row {
    flex-direction: column;
    align-items: stretch;
  }
  .bans-hero-cta {
    width: 100%;
  }
  .bans-primary-btn,
  .bans-secondary-btn {
    width: 100%;
    justify-content: center;
  }
  .bans-meta-chips {
    grid-template-columns: 1fr;
  }
  .bans-lab-inputs {
    grid-template-columns: 1fr;
  }
  .bans-bottom-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .bans-cta-actions {
    flex-direction: column;
    width: 100%;
  }
}

/* ==========================================================================
   🎧 SUPPORT SYSTEM GUIDE STYLES (.sup-*)
   ========================================================================== */

.sup-guide-header {
  margin-bottom: 24px;
}

.sup-hero-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin: 18px 0 24px;
}

.sup-hero-title-row h1 {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 10px;
  line-height: 1.4;
}

.sup-hero-title-row h1 strong {
  background: linear-gradient(135deg, #a78bfa, #c084fc, #e879f9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sup-hero-subtitle {
  font-size: 14px;
  line-height: 1.8;
  color: #a3a0ba;
  max-width: 820px;
  margin: 0;
}

.sup-hero-cta {
  flex-shrink: 0;
}

.sup-primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  background: linear-gradient(135deg, #7c3aed, #9333ea);
  color: #fff;
  border-radius: 12px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  border: 1px solid rgba(192, 132, 252, 0.35);
  box-shadow: 0 4px 18px rgba(124, 58, 237, 0.35);
  transition: all 0.25s ease;
}

.sup-primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(124, 58, 237, 0.5);
  color: #fff;
}

.sup-meta-chips {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.sup-meta-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(184, 163, 255, 0.14);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.sup-meta-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(184, 163, 255, 0.35);
  background: rgba(144, 104, 248, 0.05);
}

.sup-chip-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.sup-meta-chip div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.sup-meta-chip strong {
  font-size: 12px;
  font-weight: 800;
  color: #f1edff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sup-meta-chip span {
  font-size: 10px;
  color: #9290a6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Quick Nav */
.sup-quick-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 28px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(19, 23, 44, 0.7);
  border: 1px solid rgba(184, 163, 255, 0.16);
  backdrop-filter: blur(10px);
}

.sup-nav-pill {
  padding: 8px 14px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
  color: #a7a2c0;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.sup-nav-pill:hover {
  color: #fff;
  background: rgba(144, 104, 248, 0.12);
  border-color: rgba(184, 163, 255, 0.25);
}

.sup-nav-pill.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.35), rgba(168, 85, 247, 0.35));
  border-color: rgba(192, 132, 252, 0.45);
  box-shadow: 0 2px 10px rgba(124, 58, 237, 0.25);
}

/* Guide Container & Cards */
.sup-guide-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.sup-card {
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(26, 29, 56, 0.7), rgba(15, 18, 38, 0.85));
  border: 1px solid rgba(184, 163, 255, 0.18);
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.sup-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(144, 104, 248, 0.05);
}

.sup-icon-badge {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(144, 104, 248, 0.2);
  border: 1px solid rgba(184, 163, 255, 0.3);
  font-size: 22px;
  flex-shrink: 0;
}

.sup-card-header h2 {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 4px;
}

.sup-card-header p {
  font-size: 12px;
  color: #9a96b2;
  margin: 0;
}

.sup-card-body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sup-concept-intro p {
  font-size: 14px;
  line-height: 1.85;
  color: #cdc7e5;
  margin: 0;
}

/* 3 Components Grid */
.sup-components-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.sup-component-box {
  padding: 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(184, 163, 255, 0.15);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.2s ease;
}

.sup-component-box:hover {
  transform: translateY(-2px);
  border-color: rgba(184, 163, 255, 0.35);
  background: rgba(144, 104, 248, 0.06);
}

.sup-component-icon {
  font-size: 28px;
}

.sup-component-box h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #f3efff;
}

.sup-component-box p {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
  color: #9d98b5;
}

/* Lifecycle flow */
.sup-flow-heading {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sup-flow-heading strong {
  font-size: 15px;
  color: #fff;
}

.sup-flow-heading small {
  font-size: 12px;
  color: #8c89a4;
}

.sup-flow-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.sup-flow-step {
  padding: 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(184, 163, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sup-flow-step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sup-step-num {
  font-size: 10px;
  font-weight: 800;
  color: #c4b5fd;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(124, 58, 237, 0.2);
}

.sup-step-icon {
  font-size: 18px;
}

.sup-flow-step h4 {
  font-size: 12px;
  font-weight: 800;
  color: #f1edff;
  margin: 0;
}

.sup-flow-step p {
  font-size: 11px;
  line-height: 1.6;
  color: #9793ad;
  margin: 0;
}

/* Info banners */
.sup-info-banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(168, 85, 247, 0.08));
  border: 1px solid rgba(184, 163, 255, 0.25);
}

.sup-info-banner-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.sup-info-banner-body h4 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 800;
  color: #e5dcff;
}

.sup-info-banner-body p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: #beb8d7;
}

.sup-alert-banner {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.12), rgba(202, 138, 4, 0.06));
  border-color: rgba(234, 179, 8, 0.3);
}

.sup-alert-banner .sup-info-banner-body h4 {
  color: #fef08a;
}

.sup-security-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(5, 150, 105, 0.06));
  border-color: rgba(16, 185, 129, 0.3);
}

.sup-security-banner .sup-info-banner-body h4 {
  color: #a7f3d0;
}

/* Dashboard Settings Grid */
.sup-settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.sup-setting-card {
  padding: 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(184, 163, 255, 0.18);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sup-setting-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sup-setting-idx {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(144, 104, 248, 0.2);
  color: #c4b5fd;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.sup-setting-head h3 {
  margin: 0;
  font-size: 14.5px;
  font-weight: 800;
  color: #fff;
}

.sup-setting-intro {
  margin: 2px 0 0;
  font-size: 11px;
  color: #9691ab;
}

.sup-fields-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sup-field-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.sup-field-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sup-field-name {
  font-size: 12px;
  font-weight: 800;
  color: #ede9fe;
}

.sup-field-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(144, 104, 248, 0.18);
  color: #c4b5fd;
}

.sup-field-desc {
  font-size: 11.5px;
  line-height: 1.6;
  color: #9894ad;
  margin: 0;
}

.sup-field-tip {
  font-size: 10.5px;
  color: #c4b5fd;
  margin: 2px 0 0;
}

/* Deep Grid & Checklist */
.sup-deep-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.sup-deep-item {
  padding: 22px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(184, 163, 255, 0.16);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sup-deep-icon {
  font-size: 26px;
}

.sup-deep-item h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
}

.sup-deep-item p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: #beb8d6;
}

.sup-checklist {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sup-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  line-height: 1.6;
  color: #c2bdd8;
}

.sup-checklist li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}

/* Recording Pipeline */
.sup-recording-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.sup-rec-box {
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(184, 163, 255, 0.18);
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}

.sup-rec-badge {
  display: inline-block;
  align-self: center;
  font-size: 10px;
  font-weight: 800;
  color: #c4b5fd;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(124, 58, 237, 0.2);
}

.sup-rec-box h4 {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
}

.sup-rec-box p {
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
  color: #9c97b2;
}

.sup-rec-arrow {
  color: #7c3aed;
  font-size: 18px;
  font-weight: 800;
}

/* Tables */
.sup-table-wrapper {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid rgba(184, 163, 255, 0.18);
  background: rgba(255, 255, 255, 0.02);
}

.sup-table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
  font-size: 12.5px;
}

.sup-table th {
  padding: 12px 16px;
  background: rgba(144, 104, 248, 0.14);
  color: #e5dcff;
  font-weight: 800;
  border-bottom: 1px solid rgba(184, 163, 255, 0.2);
  white-space: nowrap;
}

.sup-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #c5c0d6;
}

.sup-table tr:last-child td {
  border-bottom: none;
}

.sup-table tr:hover td {
  background: rgba(144, 104, 248, 0.04);
}

.sup-table code {
  background: rgba(124, 58, 237, 0.18);
  padding: 2px 6px;
  border-radius: 4px;
  color: #ddd6fe;
  font-size: 11px;
}

/* Logs Layout */
.sup-logs-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.sup-logs-desc h4,
.sup-review-actions-box h4 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
}

.sup-logs-desc p,
.sup-review-note {
  margin: 0 0 12px;
  font-size: 12.5px;
  line-height: 1.7;
  color: #beb8d7;
}

.sup-buttons-preview {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sup-btn-preview-card {
  padding: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sup-btn-preview-card.approve {
  border-left: 3px solid #10b981;
}

.sup-btn-preview-card.reject {
  border-left: 3px solid #ef4444;
}

.sup-btn-mock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  width: fit-content;
}

.sup-btn-mock.success {
  background: #10b981;
  color: #fff;
}

.sup-btn-mock.danger {
  background: #ef4444;
  color: #fff;
}

.sup-btn-preview-card p {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.6;
  color: #9d98b4;
}

/* Rating Flow Grid */
.sup-rating-flow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.sup-rating-step-box {
  padding: 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(184, 163, 255, 0.16);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sup-rating-badge {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: rgba(124, 58, 237, 0.2);
  color: #c4b5fd;
  font-size: 11px;
  font-weight: 800;
}

.sup-rating-step-box h4 {
  margin: 0;
  font-size: 13.5px;
  font-weight: 800;
  color: #fff;
}

.sup-rating-step-box p {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.6;
  color: #9b96b2;
}

/* Steps Grid */
.sup-steps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.sup-step-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(184, 163, 255, 0.15);
}

.sup-step-circle {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #7c3aed;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}

.sup-step-item h4 {
  margin: 0 0 4px;
  font-size: 13.5px;
  font-weight: 800;
  color: #f1edff;
}

.sup-step-item p {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.6;
  color: #9c97b2;
}

/* Simulator Tabs & Screens */
.sup-sim-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  border-radius: 12px;
  background: rgba(15, 18, 38, 0.8);
  border: 1px solid rgba(184, 163, 255, 0.16);
}

.sup-sim-tab {
  padding: 8px 16px;
  border-radius: 8px;
  background: transparent;
  color: #9a96b2;
  font-weight: 700;
  font-size: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.sup-sim-tab:hover {
  color: #fff;
  background: rgba(144, 104, 248, 0.1);
}

.sup-sim-tab.active {
  background: #7c3aed;
  color: #fff;
  box-shadow: 0 2px 10px rgba(124, 58, 237, 0.35);
}

.sup-sim-screens {
  border-radius: 14px;
  background: #313338;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.sup-sim-screen {
  display: none;
  flex-direction: column;
}

.sup-sim-screen.active {
  display: flex;
}

.discord-channel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #2b2d31;
  border-bottom: 1px solid rgba(0, 0, 0, 0.24);
}

.discord-hash {
  font-size: 18px;
  color: #80848e;
  font-weight: 700;
}

.discord-ch-name {
  font-size: 14px;
  font-weight: 700;
  color: #f2f3f5;
}

.discord-ch-topic {
  font-size: 11.5px;
  color: #949ba4;
  margin-right: 12px;
}

.discord-live-rec {
  margin-right: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.rec-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  animation: pulseRec 1.2s infinite;
}

@keyframes pulseRec {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.25); }
}

.discord-chat-area {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #313338;
  min-height: 200px;
}

.discord-message {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.discord-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #5865f2;
  color: #fff;
  font-size: 20px;
  flex-shrink: 0;
}

.discord-msg-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.discord-msg-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.discord-bot-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #f2f3f5;
}

.discord-bot-tag {
  font-size: 9px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 3px;
  background: #5865f2;
  color: #fff;
}

.discord-timestamp {
  font-size: 10px;
  color: #949ba4;
}

.discord-msg-body p {
  margin: 3px 0;
  font-size: 13px;
  color: #dbdee1;
  line-height: 1.5;
}

.discord-mention {
  padding: 0 4px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 12px;
}

.discord-mention.role {
  background: rgba(88, 101, 242, 0.3);
  color: #c9cdfb;
}

.discord-mention.user {
  background: rgba(88, 101, 242, 0.25);
  color: #c9cdfb;
}

.discord-mention.channel {
  background: rgba(148, 155, 164, 0.2);
  color: #dbdee1;
}

.discord-components-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.discord-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}

.discord-btn.success {
  background: #248046;
  color: #fff;
}

.discord-btn.success:hover:not(:disabled) {
  background: #1a6334;
}

.discord-btn.danger {
  background: #da373c;
  color: #fff;
}

.discord-btn.danger:hover:not(:disabled) {
  background: #a12828;
}

.discord-btn.secondary {
  background: #4e5058;
  color: #fff;
}

.discord-btn.secondary:hover:not(:disabled) {
  background: #6d6f78;
}

.discord-btn.primary {
  background: #5865f2;
  color: #fff;
}

.discord-btn.primary:hover:not(:disabled) {
  background: #4752c4;
}

.discord-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.sim-feedback-toast {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  background: rgba(36, 128, 70, 0.2);
  border: 1px solid rgba(36, 128, 70, 0.4);
  color: #57f287;
  font-size: 11.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sim-text-success {
  color: #57f287 !important;
  font-weight: 700;
}

/* Voice Screen */
.sup-voice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 24px;
  background: #2b2d31;
}

.sup-voice-user {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px;
  border-radius: 14px;
  background: #313338;
  border: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.sup-voice-user.admin {
  border-color: rgba(234, 179, 8, 0.4);
}

.sup-voice-user.member {
  border-color: rgba(16, 185, 129, 0.4);
}

.sup-voice-user.bot {
  border-color: rgba(147, 51, 234, 0.4);
}

.sup-user-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #5865f2;
  display: grid;
  place-items: center;
  font-size: 26px;
}

.sup-user-avatar.bot-rec {
  background: #7c3aed;
}

.sup-user-name {
  font-size: 13.5px;
  color: #f2f3f5;
}

.sup-user-role-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  color: #dbdee1;
}

.sup-user-role-badge.bot {
  background: rgba(124, 58, 237, 0.25);
  color: #c4b5fd;
}

.sup-audio-waves {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 16px;
}

.sup-audio-waves span {
  width: 3px;
  height: 6px;
  background: #57f287;
  border-radius: 2px;
}

.sup-audio-waves.active span {
  animation: wavePulse 0.8s infinite ease-in-out alternate;
}

.sup-audio-waves.active span:nth-child(2) { animation-delay: 0.2s; }
.sup-audio-waves.active span:nth-child(3) { animation-delay: 0.4s; }
.sup-audio-waves.active span:nth-child(4) { animation-delay: 0.6s; }

@keyframes wavePulse {
  0% { height: 4px; }
  100% { height: 16px; }
}

.sup-rec-status {
  font-size: 10px;
  color: #ef4444;
  font-weight: 700;
}

.sup-sim-voice-controls {
  padding: 16px 24px;
  background: #1e1f22;
  display: flex;
  justify-content: center;
}

.sup-sim-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}

.sup-sim-btn.primary {
  background: #5865f2;
  color: #fff;
}

.sup-sim-btn.primary:hover {
  background: #4752c4;
}

/* Discord Embed & Logs */
.discord-embed {
  padding: 14px 16px;
  border-radius: 4px;
  background: #2b2d31;
  border-right: 4px solid #5865f2;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 540px;
}

.sup-log-embed {
  border-right-color: #8b5cf6;
}

.discord-embed-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.discord-embed-title {
  font-size: 14.5px;
  color: #f2f3f5;
}

.sup-embed-status-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 5px;
}

.sup-embed-status-badge.pending {
  background: rgba(234, 179, 8, 0.2);
  color: #facc15;
}

.sup-embed-status-badge.approved {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.sup-embed-status-badge.rejected {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.discord-embed-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.discord-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.discord-field-name {
  font-size: 11px;
  font-weight: 700;
  color: #949ba4;
}

.discord-field-val {
  font-size: 12px;
  color: #dbdee1;
}

.sup-audio-player-mock {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #1e1f22;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.audio-mock-icon {
  font-size: 20px;
  cursor: pointer;
}

.audio-mock-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.audio-mock-info strong {
  font-size: 11.5px;
  color: #f2f3f5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.audio-mock-info small {
  font-size: 10px;
  color: #949ba4;
}

.audio-mock-wave {
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 3px;
}

.audio-mock-wave span {
  width: 3px;
  height: 12px;
  background: #8b5cf6;
  border-radius: 2px;
}

.audio-mock-wave span:nth-child(odd) { height: 6px; }

/* DM Rating Select Menu */
.sup-dm-embed {
  border-right-color: #f59e0b;
}

.sup-dm-embed strong {
  font-size: 14px;
  color: #f2f3f5;
}

.sup-dm-embed p {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: #dbdee1;
}

.discord-select-menu-mock {
  position: relative;
  max-width: 380px;
}

.discord-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 4px;
  background: #1e1f22;
  border: 1px solid #4e5058;
  color: #dbdee1;
  font-size: 12px;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.discord-select-trigger:hover {
  border-color: #72767d;
}

.discord-select-arrow {
  font-size: 10px;
  color: #949ba4;
}

.discord-select-options {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  left: 0;
  background: #2b2d31;
  border: 1px solid #1e1f22;
  border-radius: 4px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
  z-index: 10;
  overflow: hidden;
}

.discord-select-option {
  padding: 9px 12px;
  font-size: 12px;
  color: #dbdee1;
  cursor: pointer;
  transition: background 0.15s ease;
}

.discord-select-option:hover {
  background: #404249;
  color: #fff;
}

/* Discord Modal */
.discord-modal-backdrop {
  position: relative;
  margin-top: 14px;
}

.discord-modal-dialog {
  border-radius: 6px;
  background: #313338;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  max-width: 440px;
  overflow: hidden;
}

.discord-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #2b2d31;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.discord-modal-head h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #f2f3f5;
}

.discord-modal-close {
  background: transparent;
  border: 0;
  color: #949ba4;
  font-size: 16px;
  cursor: pointer;
}

.discord-modal-body {
  padding: 18px;
}

.discord-modal-body label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.discord-modal-body span {
  font-size: 12px;
  font-weight: 700;
  color: #dbdee1;
}

.discord-modal-body textarea {
  width: 100%;
  padding: 10px;
  border-radius: 4px;
  background: #1e1f22;
  border: 1px solid #4e5058;
  color: #f2f3f5;
  font: inherit;
  font-size: 12px;
  outline: none;
  resize: vertical;
}

.discord-modal-body textarea:focus {
  border-color: #5865f2;
}

.discord-modal-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 18px;
  background: #2b2d31;
}

/* Bottom CTA */
.sup-bottom-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 30px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.25), rgba(168, 85, 247, 0.15));
  border: 1px solid rgba(192, 132, 252, 0.35);
  margin-top: 10px;
}

.sup-bottom-cta h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

.sup-bottom-cta p {
  margin: 0;
  font-size: 13px;
  color: #cdc7e5;
  max-width: 650px;
}

.sup-cta-actions {
  flex-shrink: 0;
}

/* ==========================================================================
   LIGHT MODE OVERRIDES FOR SUPPORT GUIDE
   ========================================================================== */

html[data-theme="light"] .sup-hero-title-row h1 {
  color: #1f1b2e;
}

html[data-theme="light"] .sup-hero-subtitle {
  color: #605a75;
}

html[data-theme="light"] .sup-meta-chip {
  background: #ffffff;
  border-color: #e2daf0;
}

html[data-theme="light"] .sup-meta-chip:hover {
  background: #faf7ff;
  border-color: #bfa8ea;
}

html[data-theme="light"] .sup-meta-chip strong {
  color: #1f1b2e;
}

html[data-theme="light"] .sup-meta-chip span {
  color: #736d85;
}

html[data-theme="light"] .sup-quick-nav {
  background: #f7f4fc;
  border-color: #e5daf3;
}

html[data-theme="light"] .sup-nav-pill {
  color: #5c5573;
}

html[data-theme="light"] .sup-nav-pill:hover {
  background: #ede6f9;
  color: #1f1b2e;
}

html[data-theme="light"] .sup-nav-pill.active {
  background: #7c3aed;
  color: #fff;
}

html[data-theme="light"] .sup-card {
  background: #ffffff;
  border-color: #e5daf3;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

html[data-theme="light"] .sup-card-header {
  background: #faf7ff;
  border-bottom-color: #ede6f9;
}

html[data-theme="light"] .sup-card-header h2 {
  color: #1f1b2e;
}

html[data-theme="light"] .sup-card-header p {
  color: #736d85;
}

html[data-theme="light"] .sup-concept-intro p {
  color: #3a354c;
}

html[data-theme="light"] .sup-component-box {
  background: #fbf9ff;
  border-color: #e5daf3;
}

html[data-theme="light"] .sup-component-box h4 {
  color: #1f1b2e;
}

html[data-theme="light"] .sup-component-box p {
  color: #655f79;
}

html[data-theme="light"] .sup-flow-heading strong {
  color: #1f1b2e;
}

html[data-theme="light"] .sup-flow-step {
  background: #faf7ff;
  border-color: #e5daf3;
}

html[data-theme="light"] .sup-flow-step h4 {
  color: #1f1b2e;
}

html[data-theme="light"] .sup-flow-step p {
  color: #6a6480;
}

html[data-theme="light"] .sup-info-banner {
  background: #f5f0ff;
  border-color: #d8c7f7;
}

html[data-theme="light"] .sup-info-banner-body h4 {
  color: #4c1d95;
}

html[data-theme="light"] .sup-info-banner-body p {
  color: #4b4562;
}

html[data-theme="light"] .sup-setting-card {
  background: #faf7ff;
  border-color: #e5daf3;
}

html[data-theme="light"] .sup-setting-head h3 {
  color: #1f1b2e;
}

html[data-theme="light"] .sup-field-item {
  background: #ffffff;
  border-color: #e5daf3;
}

html[data-theme="light"] .sup-field-name {
  color: #1f1b2e;
}

html[data-theme="light"] .sup-field-desc {
  color: #655f79;
}

html[data-theme="light"] .sup-deep-item {
  background: #faf7ff;
  border-color: #e5daf3;
}

html[data-theme="light"] .sup-deep-item h4 {
  color: #1f1b2e;
}

html[data-theme="light"] .sup-deep-item p {
  color: #4a4460;
}

html[data-theme="light"] .sup-checklist li {
  color: #4a4460;
}

html[data-theme="light"] .sup-rec-box {
  background: #faf7ff;
  border-color: #e5daf3;
}

html[data-theme="light"] .sup-rec-box h4 {
  color: #1f1b2e;
}

html[data-theme="light"] .sup-rec-box p {
  color: #6a6480;
}

html[data-theme="light"] .sup-table-wrapper {
  background: #ffffff;
  border-color: #e5daf3;
}

html[data-theme="light"] .sup-table th {
  background: #f5f0ff;
  color: #4c1d95;
  border-bottom-color: #e5daf3;
}

html[data-theme="light"] .sup-table td {
  color: #3b354f;
  border-bottom-color: #f0eaf7;
}

html[data-theme="light"] .sup-logs-desc h4,
html[data-theme="light"] .sup-review-actions-box h4 {
  color: #1f1b2e;
}

html[data-theme="light"] .sup-logs-desc p,
html[data-theme="light"] .sup-review-note {
  color: #4a4460;
}

html[data-theme="light"] .sup-btn-preview-card {
  background: #faf7ff;
  border-color: #e5daf3;
}

html[data-theme="light"] .sup-btn-preview-card p {
  color: #655f79;
}

html[data-theme="light"] .sup-rating-step-box {
  background: #faf7ff;
  border-color: #e5daf3;
}

html[data-theme="light"] .sup-rating-step-box h4 {
  color: #1f1b2e;
}

html[data-theme="light"] .sup-rating-step-box p {
  color: #655f79;
}

html[data-theme="light"] .sup-step-item {
  background: #faf7ff;
  border-color: #e5daf3;
}

html[data-theme="light"] .sup-step-item h4 {
  color: #1f1b2e;
}

html[data-theme="light"] .sup-step-item p {
  color: #655f79;
}

html[data-theme="light"] .sup-bottom-cta {
  background: linear-gradient(135deg, #ede6f9, #f7f3fd);
  border-color: #d8c7f7;
}

html[data-theme="light"] .sup-bottom-cta h3 {
  color: #1f1b2e;
}

html[data-theme="light"] .sup-bottom-cta p {
  color: #4a4460;
}

/* ==========================================================================
   RESPONSIVE QUERIES FOR SUPPORT GUIDE
   ========================================================================== */

@media (max-width: 1080px) {
  .sup-meta-chips {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .sup-settings-grid {
    grid-template-columns: 1fr;
  }
  .sup-flow-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .sup-components-grid {
    grid-template-columns: 1fr;
  }
  .sup-rating-flow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sup-logs-layout {
    grid-template-columns: 1fr;
  }
  .sup-recording-flow {
    grid-template-columns: 1fr;
  }
  .sup-rec-arrow {
    transform: rotate(90deg);
    padding: 4px 0;
  }
}

@media (max-width: 768px) {
  .sup-hero-title-row {
    flex-direction: column;
    align-items: stretch;
  }
  .sup-hero-cta {
    width: 100%;
  }
  .sup-primary-btn {
    width: 100%;
    justify-content: center;
  }
  .sup-meta-chips {
    grid-template-columns: 1fr;
  }
  .sup-quick-nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 12px;
  }
  .sup-nav-pill {
    white-space: nowrap;
  }
  .sup-flow-steps {
    grid-template-columns: 1fr;
  }
  .sup-deep-grid {
    grid-template-columns: 1fr;
  }
  .sup-steps-grid {
    grid-template-columns: 1fr;
  }
  .sup-rating-flow-grid {
    grid-template-columns: 1fr;
  }
  .sup-voice-grid {
    grid-template-columns: 1fr;
  }
  .sup-bottom-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .sup-cta-actions {
    width: 100%;
  }
}



/* ==========================================================================
   دليل نظام النقاط (Points System Guide)
   ========================================================================== */

.pts-header {
  border-radius: 22px;
  border: 1px solid rgba(255, 193, 7, 0.22);
  background: radial-gradient(circle at 90% 10%, rgba(255, 193, 7, 0.12), transparent 50%),
              linear-gradient(135deg, rgba(20, 24, 46, 0.8), rgba(13, 16, 32, 0.88));
  padding: 30px;
  margin-bottom: 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.pts-hero-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 18px 0 22px 0;
}

.pts-hero-title-row h1 {
  margin: 0 0 8px 0;
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.35;
}

.pts-hero-title-row h1 strong {
  color: #ffc83b;
  text-shadow: 0 0 18px rgba(255, 200, 59, 0.35);
}

.pts-hero-subtitle {
  margin: 0;
  color: #c2bece;
  font-size: 14px;
  line-height: 1.7;
  max-width: 820px;
}

.pts-hero-cta {
  flex-shrink: 0;
}

.pts-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  border-radius: 13px;
  background: linear-gradient(135deg, #f5a623, #d48806);
  color: #1a1202;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(245, 166, 35, 0.35);
  transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
  border: 1px solid rgba(255, 222, 128, 0.4);
}

.pts-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(245, 166, 35, 0.5);
  background: linear-gradient(135deg, #ffb536, #e6950f);
  color: #0d0700;
}

.pts-btn-primary.big {
  padding: 14px 26px;
  font-size: 15px;
}

.pts-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(184, 163, 255, 0.24);
  color: #f2efff;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.pts-btn-secondary:hover {
  background: rgba(144, 104, 248, 0.16);
  border-color: rgba(184, 163, 255, 0.45);
  transform: translateY(-2px);
}

.pts-meta-chips {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pts-meta-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.pts-chip-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.pts-meta-chip div {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.pts-meta-chip strong {
  font-size: 12.5px;
  color: #ffffff;
  font-weight: 800;
}

.pts-meta-chip span {
  font-size: 11px;
  color: #a49fb6;
}

/* Quick Nav Pills */
.pts-quick-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 4px 14px 4px;
  margin-bottom: 24px;
  scrollbar-width: thin;
}

.pts-nav-pill {
  flex-shrink: 0;
  padding: 8px 15px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(18, 22, 42, 0.7);
  color: #c9c5d8;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pts-nav-pill:hover {
  background: rgba(255, 200, 59, 0.12);
  border-color: rgba(255, 200, 59, 0.35);
  color: #ffde70;
}

.pts-nav-pill.active {
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.28), rgba(212, 136, 6, 0.22));
  border-color: rgba(255, 200, 59, 0.55);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(245, 166, 35, 0.25);
}

/* Cards & Layout */
.pts-guide-container {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.pts-card {
  padding: 30px;
  border-radius: 22px;
  border: 1px solid var(--guide-card-border);
  background: var(--guide-card-bg);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.pts-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(184, 163, 255, 0.12);
}

.pts-icon-badge {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.25), rgba(144, 104, 248, 0.2));
  border: 1px solid rgba(255, 200, 59, 0.35);
  font-size: 22px;
  flex-shrink: 0;
}

.pts-card-header h2 {
  margin: 0 0 5px 0;
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
}

.pts-card-header p {
  margin: 0;
  color: #a4a0c0;
  font-size: 13px;
}

.pts-subheading {
  margin: 22px 0 14px 0;
  font-size: 15px;
  font-weight: 800;
  color: #ffde70;
}

.pts-concept-text p {
  margin: 0 0 14px 0;
  color: #cfcbdf;
  font-size: 14px;
  line-height: 1.8;
}

/* Workflow Step Box */
.pts-workflow-box {
  margin-top: 24px;
  padding: 22px;
  border-radius: 16px;
  background: rgba(14, 17, 36, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pts-workflow-grid {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.pts-step-card {
  flex: 1;
  position: relative;
  padding: 18px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  text-align: center;
}

.pts-step-num {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 11px;
  font-weight: 900;
  color: #ffc83b;
  opacity: 0.8;
}

.pts-step-icon {
  font-size: 24px;
  margin-bottom: 8px;
}

.pts-step-card h4 {
  margin: 0 0 6px 0;
  font-size: 13.5px;
  color: #ffffff;
  font-weight: 800;
}

.pts-step-card p {
  margin: 0;
  font-size: 11.5px;
  color: #a29db4;
  line-height: 1.5;
}

.pts-step-connector {
  font-size: 18px;
  color: #ffc83b;
  opacity: 0.7;
}

/* Sections Overview */
.pts-sections-overview {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pts-section-item {
  display: flex;
  gap: 18px;
  padding: 22px;
  border-radius: 16px;
  background: rgba(14, 18, 38, 0.75);
  border: 1px solid rgba(184, 163, 255, 0.14);
}

.pts-sec-badge {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 200, 59, 0.3), rgba(144, 104, 248, 0.2));
  color: #ffde70;
  font-weight: 900;
  font-size: 15px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 200, 59, 0.4);
}

.pts-sec-details {
  flex: 1;
}

.pts-sec-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.pts-sec-title-row h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
}

.pts-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  background: rgba(144, 104, 248, 0.2);
  color: #d1bfff;
  border: 1px solid rgba(184, 163, 255, 0.3);
}

.pts-pill.active {
  background: rgba(56, 239, 125, 0.16);
  color: #55ef96;
  border-color: rgba(56, 239, 125, 0.35);
}

.pts-pill.warning {
  background: rgba(255, 200, 59, 0.16);
  color: #ffde70;
  border-color: rgba(255, 200, 59, 0.35);
}

.pts-pill.danger {
  background: rgba(255, 77, 79, 0.16);
  color: #ff7875;
  border-color: rgba(255, 77, 79, 0.35);
}

.pts-pill.required {
  background: rgba(245, 106, 0, 0.16);
  color: #ff9c6e;
  border-color: rgba(245, 106, 0, 0.35);
}

.pts-sec-details p {
  margin: 0 0 12px 0;
  font-size: 13px;
  color: #aba6c0;
  line-height: 1.6;
}

/* Param Card */
.pts-param-card {
  padding: 16px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 10px;
}

.pts-param-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.pts-param-header code {
  font-family: monospace;
  background: rgba(255, 200, 59, 0.15);
  color: #ffde70;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 12px;
}

.pts-type {
  font-size: 11px;
  color: #928ca8;
}

.pts-param-card ul {
  margin: 0;
  padding-right: 18px;
  color: #c9c5d8;
  font-size: 12.5px;
  line-height: 1.7;
}

.pts-param-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.pts-param-col strong {
  display: block;
  font-size: 13.5px;
  color: #ffffff;
  margin-bottom: 4px;
}

.pts-param-col code {
  font-size: 11px;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 5px;
  color: #c2bece;
}

.pts-param-col p {
  margin: 6px 0 0 0;
  font-size: 12px;
  color: #a49fb6;
  line-height: 1.5;
}

/* Grid Mini */
.pts-grid-mini {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.pts-mini-card {
  padding: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pts-mini-top {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}

.pts-mini-top strong {
  font-size: 13.5px;
  color: #ffffff;
}

.pts-field-tag {
  font-size: 10px;
  font-family: monospace;
  color: #ffde70;
  opacity: 0.85;
}

.pts-mini-card p {
  font-size: 11.5px;
  color: #9d98af;
  margin: 0 0 10px 0;
  line-height: 1.5;
}

.pts-value-badge {
  align-self: flex-start;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 11px;
  color: #d1bfff;
  font-weight: 700;
}

.pts-value-badge.highlight {
  background: rgba(255, 200, 59, 0.15);
  color: #ffde70;
  border: 1px solid rgba(255, 200, 59, 0.3);
}

.pts-tip-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(144, 104, 248, 0.1);
  border: 1px solid rgba(184, 163, 255, 0.2);
}

.pts-tip-inline p {
  margin: 0;
  font-size: 12px;
  color: #d2c8f6;
  line-height: 1.5;
}

/* Commands Preview Grid */
.pts-commands-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.pts-cmd-tag {
  display: flex;
  flex-direction: column;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pts-cmd-tag span {
  font-family: monospace;
  font-weight: 800;
  font-size: 13px;
  color: #a88cff;
}

.pts-cmd-tag small {
  font-size: 11px;
  color: #8f8a9e;
  margin-top: 2px;
}

.pts-cmd-tag.danger span {
  color: #ff7875;
}

/* Tables */
.pts-table-wrapper {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 13, 28, 0.6);
}

.pts-sources-table,
.pts-perms-table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
  font-size: 13px;
}

.pts-sources-table th,
.pts-perms-table th {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  font-weight: 800;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pts-sources-table td,
.pts-perms-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #cfcbdf;
  line-height: 1.5;
}

.pts-sources-table tr:last-child td,
.pts-perms-table tr:last-child td {
  border-bottom: 0;
}

.pts-sources-table code,
.pts-perms-table code {
  font-family: monospace;
  background: rgba(255, 200, 59, 0.12);
  color: #ffde70;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 12px;
}

/* Math Card */
.pts-math-card {
  margin-top: 22px;
  padding: 22px;
  border-radius: 16px;
  background: radial-gradient(circle at 10% 20%, rgba(255, 200, 59, 0.08), transparent 45%),
              rgba(14, 18, 38, 0.8);
  border: 1px solid rgba(255, 200, 59, 0.25);
}

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

.pts-math-icon {
  font-size: 26px;
}

.pts-math-header h4 {
  margin: 0 0 3px 0;
  font-size: 15px;
  color: #ffffff;
  font-weight: 800;
}

.pts-math-header p {
  margin: 0;
  font-size: 12.5px;
  color: #a49fb6;
}

.pts-math-body p {
  margin: 0 0 12px 0;
  font-size: 13.5px;
  color: #c9c5d8;
  line-height: 1.7;
}

.pts-formula-box {
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 200, 59, 0.3);
  font-family: monospace;
  color: #55ef96;
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 14px;
}

.pts-math-example {
  padding: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.pts-math-example strong {
  display: block;
  font-size: 13px;
  color: #ffde70;
  margin-bottom: 6px;
}

.pts-math-example p {
  margin: 0 0 8px 0;
  font-size: 12.5px;
  color: #a49fb6;
}

.pts-math-example ul {
  margin: 0;
  padding-right: 18px;
  font-size: 12.5px;
  color: #cfcbdf;
  line-height: 1.7;
}

/* Admin Grid */
.pts-admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.pts-admin-card {
  padding: 22px;
  border-radius: 16px;
  background: rgba(14, 18, 38, 0.75);
  border: 1px solid rgba(184, 163, 255, 0.14);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pts-admin-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.pts-admin-icon {
  font-size: 24px;
}

.pts-admin-head h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
}

.pts-admin-head small {
  font-family: monospace;
  color: #ffde70;
  font-size: 11px;
}

.pts-admin-card p {
  margin: 0 0 12px 0;
  font-size: 13px;
  color: #a49fb6;
  line-height: 1.6;
}

.pts-check-list {
  margin: 0 0 16px 0;
  padding-right: 18px;
  font-size: 12.5px;
  color: #cfcbdf;
  line-height: 1.7;
}

.pts-check-list code {
  background: rgba(255, 200, 59, 0.14);
  color: #ffde70;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 11px;
}

.pts-warning-badge,
.pts-info-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 11.5px;
  line-height: 1.4;
}

.pts-warning-badge {
  background: rgba(255, 77, 79, 0.12);
  border: 1px solid rgba(255, 77, 79, 0.25);
  color: #ff9290;
}

.pts-info-badge {
  background: rgba(144, 104, 248, 0.12);
  border: 1px solid rgba(184, 163, 255, 0.25);
  color: #d1bfff;
}

/* Commands Cards Grid */
.pts-cmd-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.pts-cmd-box {
  padding: 18px;
  border-radius: 14px;
  background: rgba(14, 18, 38, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pts-cmd-box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.pts-cmd-name {
  font-family: monospace;
  font-size: 14px;
  font-weight: 800;
  color: #ffde70;
}

.pts-cmd-desc {
  margin: 0 0 12px 0;
  font-size: 12px;
  color: #9d98af;
  line-height: 1.5;
}

.pts-cmd-params {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.pts-cmd-params div {
  display: flex;
  flex-direction: column;
  font-size: 11px;
}

.pts-cmd-params code {
  font-family: monospace;
  color: #ffffff;
  font-weight: 700;
}

.pts-cmd-params span {
  color: #837e96;
}

/* Modal Walkthrough */
.pts-modal-walkthrough {
  padding: 22px;
  border-radius: 16px;
  background: rgba(10, 13, 28, 0.6);
  border: 1px solid rgba(184, 163, 255, 0.15);
}

.pts-modal-features-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.pts-mf-card {
  padding: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.pts-mf-icon {
  font-size: 22px;
  margin-bottom: 8px;
  display: block;
}

.pts-mf-card h4 {
  margin: 0 0 6px 0;
  font-size: 13px;
  color: #ffffff;
  font-weight: 800;
}

.pts-mf-card p {
  margin: 0;
  font-size: 11.5px;
  color: #9d98af;
  line-height: 1.5;
}

/* Interactive Calculator */
.pts-calc-shell {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: start;
}

.pts-calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pts-calc-row {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(14, 18, 38, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.pts-calc-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.pts-calc-label strong {
  font-size: 13.5px;
  color: #ffffff;
}

.pts-calc-label span {
  font-size: 12.5px;
  color: #ffde70;
  font-weight: 700;
}

.pts-range {
  width: 100%;
  accent-color: #f5a623;
  margin: 4px 0 10px 0;
  cursor: pointer;
}

.pts-rate-box {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: #9d98af;
}

.pts-number-input {
  width: 65px;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.35);
  color: #ffffff;
  font-weight: 700;
  font-size: 12px;
  text-align: center;
}

/* Result Box */
.pts-calc-result-box {
  padding: 24px;
  border-radius: 18px;
  background: radial-gradient(circle at 85% 15%, rgba(255, 200, 59, 0.15), transparent 50%),
              linear-gradient(145deg, rgba(20, 24, 48, 0.85), rgba(12, 15, 30, 0.9));
  border: 1px solid rgba(255, 200, 59, 0.3);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
}

.pts-res-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pts-res-star {
  font-size: 38px;
  filter: drop-shadow(0 0 12px rgba(255, 200, 59, 0.6));
}

.pts-res-head small {
  display: block;
  font-size: 12px;
  color: #a49fb6;
}

.pts-res-total {
  font-size: 42px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  margin: 4px 0;
  display: block;
  letter-spacing: -1px;
}

.pts-res-unit {
  font-size: 12px;
  color: #ffde70;
  font-weight: 700;
}

.pts-breakdown-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.pts-bar-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pts-bar-info {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: #c9c5d8;
}

.pts-bar-info b {
  color: #ffde70;
}

.pts-bar-track {
  height: 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.pts-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.pts-bar-fill.tickets { background: #5865f2; }
.pts-bar-fill.censor { background: #f5a623; }
.pts-bar-fill.support { background: #eb459e; }
.pts-bar-fill.act { background: #57f287; }
.pts-bar-fill.summons { background: #fee75c; }

.pts-tier-badge {
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 200, 59, 0.12);
  border: 1px solid rgba(255, 200, 59, 0.3);
  text-align: center;
}

.pts-tier-badge span {
  display: block;
  font-size: 11.5px;
  color: #d1bfff;
  margin-bottom: 3px;
}

.pts-tier-badge strong {
  font-size: 14px;
  color: #ffffff;
  font-weight: 800;
}

/* Simulator Tabs & Mockups */
.pts-sim-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.pts-sim-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(18, 22, 42, 0.7);
  color: #c9c5d8;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pts-sim-tab:hover {
  background: rgba(255, 200, 59, 0.12);
  color: #ffde70;
}

.pts-sim-tab.active {
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.25), rgba(144, 104, 248, 0.2));
  border-color: rgba(255, 200, 59, 0.5);
  color: #ffffff;
}

.discord-message-mockup {
  display: flex;
  gap: 14px;
  padding: 18px;
  border-radius: 14px;
  background: #313338;
  border: 1px solid #3f4147;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #dbdee1;
}

.discord-avatar-mock {
  flex-shrink: 0;
}

.mock-avatar-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5865f2, #792df5);
  display: grid;
  place-items: center;
  font-size: 20px;
}

.discord-content-mock {
  flex: 1;
}

.discord-header-mock {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.discord-author {
  font-weight: 700;
  font-size: 14px;
  color: #f2f3f5;
}

.discord-tag {
  background: #5865f2;
  color: #ffffff;
  font-size: 10px;
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 800;
}

.discord-timestamp {
  font-size: 11px;
  color: #949ba4;
}

.discord-embed {
  border-right: 4px solid #5865f2;
  border-radius: 4px;
  background: #2b2d31;
  padding: 14px 16px;
  margin-top: 6px;
  max-width: 520px;
}

.pts-embed-purple {
  border-right-color: #9068f8;
}

.pts-embed-gold {
  border-right-color: #f5a623;
}

.embed-title {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.embed-desc {
  font-size: 13px;
  line-height: 1.6;
  color: #dbdee1;
  margin-bottom: 12px;
}

.discord-mention {
  background: rgba(88, 101, 242, 0.3);
  color: #c9cdfb;
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 600;
}

.embed-fields-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 10px;
}

.embed-field {
  display: flex;
  flex-direction: column;
}

.field-name {
  font-size: 12px;
  font-weight: 700;
  color: #949ba4;
  margin-bottom: 2px;
}

.field-val {
  font-size: 13.5px;
  font-weight: 800;
  color: #ffffff;
}

.embed-footer {
  font-size: 11px;
  color: #949ba4;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.pts-lb-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lb-row {
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

/* Modal Mockup */
.mock-modal-shell {
  max-width: 520px;
  margin: 0 auto;
  border-radius: 16px;
  background: #181c34;
  border: 1px solid rgba(184, 163, 255, 0.3);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  padding: 22px;
}

.mock-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mock-modal-head strong {
  font-size: 15px;
  color: #ffffff;
}

.mock-close-btn {
  font-size: 20px;
  color: #9d98af;
  cursor: pointer;
}

.mock-modal-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mock-modal-body label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: #c9c5d8;
}

.mock-chips-input {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.mock-alias-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 200, 59, 0.2);
  color: #ffde70;
  font-weight: 700;
  font-size: 11px;
}

.mock-alias-chip b {
  color: #ff7875;
  cursor: pointer;
}

.mock-chips-input input {
  border: 0;
  background: transparent;
  color: #ffffff;
  font-size: 11px;
  flex: 1;
}

.mock-picker-btn {
  padding: 9px 12px;
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 12px;
}

.mock-modal-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mock-foot-btn {
  padding: 7px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

/* Tips Grid */
.pts-tips-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.pts-tip-box {
  padding: 20px 16px;
  border-radius: 14px;
  background: rgba(14, 18, 38, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pts-tb-icon {
  font-size: 26px;
  margin-bottom: 10px;
  display: block;
}

.pts-tip-box h4 {
  margin: 0 0 8px 0;
  font-size: 14px;
  color: #ffffff;
  font-weight: 800;
}

.pts-tip-box p {
  margin: 0;
  font-size: 12px;
  color: #9d98af;
  line-height: 1.6;
}

/* FAQ Accordion */
.pts-faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pts-faq-item {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(14, 18, 38, 0.65);
  overflow: hidden;
  transition: all 0.2s ease;
}

.pts-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 800;
  font-size: 14px;
  color: #ffffff;
  user-select: none;
}

.pts-faq-item summary:hover {
  background: rgba(255, 200, 59, 0.08);
}

.pts-arrow {
  width: 8px;
  height: 8px;
  border-left: 2px solid #ffc83b;
  border-bottom: 2px solid #ffc83b;
  transform: rotate(-45deg);
  transition: transform 0.2s ease;
}

.pts-faq-item[open] .pts-arrow {
  transform: rotate(135deg);
}

.pts-faq-answer {
  padding: 0 20px 18px 20px;
  font-size: 13px;
  color: #a49fb6;
  line-height: 1.7;
}

.pts-faq-answer p {
  margin: 0;
}

.pts-faq-answer code {
  background: rgba(255, 200, 59, 0.14);
  color: #ffde70;
  padding: 1px 5px;
  border-radius: 4px;
}

/* Bottom CTA */
.pts-bottom-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px;
  border-radius: 22px;
  border: 1px solid rgba(255, 200, 59, 0.35);
  background: radial-gradient(circle at 10% 50%, rgba(255, 200, 59, 0.16), transparent 60%),
              linear-gradient(135deg, rgba(20, 24, 46, 0.9), rgba(12, 15, 30, 0.95));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.pts-cta-content {
  display: flex;
  align-items: center;
  gap: 18px;
}

.pts-cta-icon {
  font-size: 36px;
  flex-shrink: 0;
}

.pts-cta-content h3 {
  margin: 0 0 6px 0;
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
}

.pts-cta-content p {
  margin: 0;
  font-size: 13.5px;
  color: #a49fb6;
  line-height: 1.6;
}

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

/* Responsive Rules */
@media (max-width: 1050px) {
  .pts-meta-chips {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .pts-grid-mini,
  .pts-commands-preview-grid,
  .pts-cmd-cards-grid,
  .pts-modal-features-grid,
  .pts-tips-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pts-calc-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .pts-hero-title-row {
    flex-direction: column;
    align-items: stretch;
  }
  .pts-meta-chips {
    grid-template-columns: 1fr;
  }
  .pts-workflow-grid {
    flex-direction: column;
  }
  .pts-step-connector {
    transform: rotate(90deg);
  }
  .pts-section-item {
    flex-direction: column;
  }
  .pts-param-row,
  .pts-admin-grid,
  .pts-grid-mini,
  .pts-commands-preview-grid,
  .pts-cmd-cards-grid,
  .pts-modal-features-grid,
  .pts-tips-grid {
    grid-template-columns: 1fr;
  }
  .pts-bottom-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .pts-cta-actions {
    flex-direction: column;
    width: 100%;
  }
  .pts-btn-primary,
  .pts-btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* Light Theme Overrides */
html[data-theme="light"] .pts-header {
  background: radial-gradient(circle at 90% 10%, rgba(255, 193, 7, 0.14), transparent 50%),
              linear-gradient(135deg, #ffffff, #f7f5fd);
  border-color: rgba(255, 193, 7, 0.35);
  box-shadow: 0 16px 40px rgba(70, 45, 110, 0.08);
}

html[data-theme="light"] .pts-hero-title-row h1 {
  color: #1e1633;
}

html[data-theme="light"] .pts-hero-title-row h1 strong {
  color: #d48806;
}

html[data-theme="light"] .pts-hero-subtitle {
  color: #5d5578;
}

html[data-theme="light"] .pts-meta-chip {
  background: #ffffff;
  border-color: rgba(144, 104, 248, 0.12);
}

html[data-theme="light"] .pts-meta-chip strong {
  color: #241c3c;
}

html[data-theme="light"] .pts-meta-chip span {
  color: #696282;
}

html[data-theme="light"] .pts-nav-pill {
  background: #ffffff;
  border-color: rgba(144, 104, 248, 0.14);
  color: #4f476a;
}

html[data-theme="light"] .pts-card {
  background: #ffffff;
  border-color: rgba(144, 104, 248, 0.14);
  box-shadow: 0 16px 40px rgba(50, 30, 90, 0.06);
}

html[data-theme="light"] .pts-card-header h2 {
  color: #201736;
}

html[data-theme="light"] .pts-card-header p {
  color: #60577a;
}

html[data-theme="light"] .pts-concept-text p {
  color: #403859;
}

html[data-theme="light"] .pts-section-item,
html[data-theme="light"] .pts-workflow-box,
html[data-theme="light"] .pts-admin-card,
html[data-theme="light"] .pts-calc-row,
html[data-theme="light"] .pts-cmd-box,
html[data-theme="light"] .pts-tip-box,
html[data-theme="light"] .pts-faq-item {
  background: #fbf9fe;
  border-color: rgba(144, 104, 248, 0.14);
}

html[data-theme="light"] .pts-sec-title-row h3,
html[data-theme="light"] .pts-admin-head h4,
html[data-theme="light"] .pts-calc-label strong,
html[data-theme="light"] .pts-tip-box h4,
html[data-theme="light"] .pts-faq-item summary {
  color: #201736;
}

html[data-theme="light"] .pts-calc-result-box {
  background: #ffffff;
  border-color: rgba(255, 200, 59, 0.45);
}

html[data-theme="light"] .pts-res-total {
  color: #1e1633;
}

html[data-theme="light"] .pts-bottom-cta {
  background: radial-gradient(circle at 10% 50%, rgba(255, 200, 59, 0.15), transparent 60%),
              linear-gradient(135deg, #ffffff, #f7f4fc);
  border-color: rgba(255, 200, 59, 0.35);
}

html[data-theme="light"] .pts-cta-content h3 {
  color: #241c3c;
}

html[data-theme="light"] .pts-cta-content p {
  color: #5d5578;
}


/* ==========================================================================
   ACTIVATION SYSTEM (نظام التفعيل) DETAILED GUIDE STYLES
   ========================================================================== */

.act-guide-header {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 34px 36px;
  border: 1px solid rgba(184, 163, 255, 0.28);
  background: radial-gradient(circle at 90% 12%, rgba(56, 217, 169, 0.22), transparent 55%),
              radial-gradient(circle at 10% 88%, rgba(144, 104, 248, 0.25), transparent 50%),
              linear-gradient(145deg, rgba(20, 24, 48, 0.96), rgba(10, 13, 26, 0.98));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.32);
  margin-bottom: 24px;
}

.act-hero-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 12px;
  margin-bottom: 24px;
}

.act-hero-title-row h1 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3.6vw, 36px);
  color: #ffffff;
  font-weight: 900;
  line-height: 1.35;
}

.act-hero-title-row h1 strong {
  background: linear-gradient(135deg, #a8ff78, #78ffd6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.act-hero-subtitle {
  max-width: 780px;
  margin: 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: #b7b3ce;
}

.act-hero-cta {
  display: flex;
  align-items: center;
}

.act-primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  color: #ffffff;
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.22s ease;
  white-space: nowrap;
}

.act-primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(16, 185, 129, 0.5);
  filter: brightness(1.1);
}

.act-meta-chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.act-meta-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(184, 163, 255, 0.14);
}

.act-chip-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.act-meta-chip strong {
  display: block;
  font-size: 13px;
  color: #ffffff;
  margin-bottom: 2px;
}

.act-meta-chip span {
  font-size: 11.5px;
  color: #9f9cb8;
  line-height: 1.4;
}

/* Quick Navigation */
.act-quick-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 0 18px;
  margin-bottom: 16px;
  scrollbar-width: thin;
}

.act-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  color: #b7b3ce;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(184, 163, 255, 0.14);
  transition: all 0.2s ease;
}

.act-nav-link:hover,
.act-nav-link.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.35), rgba(5, 150, 105, 0.25));
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
}

/* Base Cards */
.act-guide-container {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.act-card {
  border-radius: 20px;
  padding: 28px 30px;
  background: linear-gradient(145deg, rgba(20, 24, 46, 0.72), rgba(11, 14, 28, 0.78));
  border: 1px solid rgba(184, 163, 255, 0.16);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
}

.act-card-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
}

.act-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(5, 150, 105, 0.18));
  border: 1px solid rgba(16, 185, 129, 0.35);
  flex-shrink: 0;
}

.act-card-header h2 {
  margin: 0 0 6px;
  font-size: 21px;
  color: #ffffff;
  font-weight: 800;
}

.act-card-header p {
  margin: 0;
  font-size: 13.5px;
  color: #9f9cb8;
}

.act-concept-text p {
  font-size: 14.5px;
  line-height: 1.85;
  color: #c7c3df;
  margin-bottom: 16px;
}

.act-alert {
  padding: 16px 20px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.7;
  margin-top: 18px;
}

.act-alert strong {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}

.act-alert-tip {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.26);
  color: #a7f3d0;
}

.act-alert-tip strong {
  color: #34d399;
}

.act-alert-warning {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.26);
  color: #fde68a;
}

.act-alert-warning strong {
  color: #fbbf24;
}

/* Lifecycle Workflow */
.act-workflow-grid {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.act-step-item {
  flex: 1;
  min-width: 150px;
  padding: 18px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(184, 163, 255, 0.14);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.act-step-num {
  font-size: 11px;
  font-weight: 900;
  color: #10b981;
  background: rgba(16, 185, 129, 0.15);
  padding: 2px 8px;
  border-radius: 6px;
  margin-bottom: 6px;
}

.act-step-icon {
  font-size: 26px;
  margin-bottom: 8px;
}

.act-step-item h4 {
  margin: 0 0 6px;
  font-size: 14px;
  color: #ffffff;
  font-weight: 800;
}

.act-step-item p {
  margin: 0;
  font-size: 11.5px;
  color: #9f9cb8;
  line-height: 1.55;
}

.act-step-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #10b981;
  opacity: 0.6;
}

/* Dashboard Grid Breakdown */
.act-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.act-db-card {
  border-radius: 18px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(184, 163, 255, 0.16);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.act-db-card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border-bottom: 1px solid rgba(184, 163, 255, 0.12);
  padding-bottom: 14px;
}

.act-db-index {
  font-size: 14px;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 8px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
}

.act-db-card-header h3 {
  margin: 0 0 4px;
  font-size: 16px;
  color: #ffffff;
  font-weight: 800;
}

.act-db-card-header p {
  margin: 0;
  font-size: 12px;
  color: #9f9cb8;
}

.act-fields-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.act-field-item {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(184, 163, 255, 0.1);
}

.act-field-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 4px;
}

.act-field-item strong {
  display: block;
  font-size: 13.5px;
  color: #ffffff;
  margin-bottom: 4px;
}

.act-field-item p {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: #a4a0c0;
}

.act-toggles-summary {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
  font-size: 12px;
}

.act-toggles-summary code {
  color: #6ee7b7;
  font-weight: 700;
}

.act-toggles-summary span {
  color: #9f9cb8;
}

/* Outcomes Block */
.act-outcomes-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.act-outcome-block {
  padding: 16px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.2);
}

.act-outcome-block.accepted {
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.act-outcome-block.rejected {
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.outcome-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.act-outcome-block.accepted .outcome-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #10b981;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
}

.act-outcome-block.rejected .outcome-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ef4444;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
}

.outcome-head h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
}

.outcome-details {
  margin: 0;
  padding-inline-start: 18px;
  font-size: 12px;
  color: #a4a0c0;
  line-height: 1.7;
}

.outcome-details strong {
  color: #e5e7eb;
}

/* Deploy Box */
.act-deploy-box {
  margin-top: 24px;
  padding: 24px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(11, 14, 28, 0.7));
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.deploy-box-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.deploy-icon {
  font-size: 28px;
}

.deploy-box-head h4 {
  margin: 0 0 4px;
  font-size: 17px;
  color: #ffffff;
  font-weight: 800;
}

.deploy-box-head p {
  margin: 0;
  font-size: 13px;
  color: #9f9cb8;
}

.deploy-box-body {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.deploy-method {
  padding: 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(184, 163, 255, 0.12);
}

.deploy-method strong {
  display: block;
  font-size: 13px;
  color: #ffffff;
  margin-bottom: 6px;
}

.deploy-method p {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.6;
  color: #a4a0c0;
}

/* Discord In-Chat Panel Actions Grid */
.act-menu-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.act-menu-action-card {
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(184, 163, 255, 0.16);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.action-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.action-emoji {
  font-size: 20px;
}

.action-card-top strong {
  font-size: 14px;
  color: #ffffff;
  flex: 1;
}

.action-perm-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
}

.action-perm-badge.evaluator {
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.action-perm-badge.staff {
  background: rgba(59, 130, 246, 0.18);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.act-menu-action-card p {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: #9f9cb8;
}

/* Modal Mockup */
.act-modal-preview-box {
  margin-top: 24px;
  padding: 22px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(184, 163, 255, 0.18);
}

.modal-box-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.modal-badge {
  font-size: 11px;
  font-weight: 800;
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.15);
  padding: 2px 8px;
  border-radius: 6px;
}

.modal-box-header h4 {
  margin: 0;
  font-size: 16px;
  color: #ffffff;
}

.act-modal-preview-box > p {
  font-size: 13px;
  color: #9f9cb8;
  margin-bottom: 16px;
}

.modal-mockup {
  max-width: 500px;
  background: #313338;
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mockup-input label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #b5bac1;
  margin-bottom: 4px;
}

.mockup-input label .req {
  color: #fa777c;
}

.mockup-field {
  padding: 10px 12px;
  background: #1e1f22;
  border-radius: 4px;
  font-size: 13px;
  color: #dbdee1;
  border: 1px solid #111214;
}

.mockup-field.text-area {
  min-height: 55px;
}

/* Panel Comparison & Grace Period */
.act-panel-comparison {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 24px;
  align-items: flex-start;
}

.discord-embed-card {
  background: #2b2d31;
  border-inline-start: 4px solid #10b981;
  border-radius: 4px 8px 8px 4px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.embed-author {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
}

.embed-title {
  font-size: 15px;
  font-weight: 800;
  color: #10b981;
}

.embed-desc {
  font-size: 12.5px;
  color: #dbdee1;
  line-height: 1.6;
}

.mention-channel {
  background: rgba(88, 101, 242, 0.3);
  color: #c9cdfb;
  padding: 2px 4px;
  border-radius: 3px;
  font-weight: 600;
}

.embed-fields-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.embed-field {
  background: rgba(0, 0, 0, 0.18);
  padding: 8px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.embed-field .f-name {
  font-size: 10.5px;
  color: #949ba4;
  font-weight: 700;
}

.embed-field .f-val {
  font-size: 13px;
  color: #ffffff;
  font-weight: 800;
}

.embed-queue-list {
  background: #1e1f22;
  border-radius: 6px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: #dbdee1;
}

.embed-queue-list strong {
  color: #ffffff;
  margin-bottom: 4px;
}

.queue-ready {
  color: #10b981;
  font-weight: 700;
}

.queue-grace {
  color: #f59e0b;
  font-weight: 700;
}

.embed-footer {
  font-size: 10.5px;
  color: #949ba4;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 8px;
}

.grace-flow-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.grace-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(184, 163, 255, 0.14);
}

.g-num {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
  flex-shrink: 0;
}

.grace-card strong {
  display: block;
  font-size: 13.5px;
  color: #ffffff;
  margin-bottom: 2px;
}

.grace-card p {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: #9f9cb8;
}

/* Review Columns */
.act-review-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: flex-start;
}

.log-embed-mockup {
  background: #2b2d31;
  border-inline-start: 4px solid #10b981;
  border-radius: 4px 8px 8px 4px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.log-title {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
}

.log-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  font-size: 12px;
  color: #dbdee1;
}

.status-pending {
  color: #fbbf24;
  font-weight: 700;
}

.log-notes {
  font-size: 12px;
  color: #dbdee1;
  background: rgba(0, 0, 0, 0.2);
  padding: 8px 10px;
  border-radius: 4px;
}

.log-audio-attachment {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 6px;
  background: #1e1f22;
  border: 1px solid #111214;
}

.audio-icon {
  font-size: 20px;
}

.log-audio-attachment strong {
  display: block;
  font-size: 12.5px;
  color: #ffffff;
}

.log-audio-attachment small {
  font-size: 10.5px;
  color: #949ba4;
}

.log-review-buttons {
  display: flex;
  gap: 8px;
}

.log-btn {
  flex: 1;
  padding: 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  color: #ffffff;
}

.log-btn.approve {
  background: #248046;
}

.log-btn.reject {
  background: #da373c;
}

.rules-list-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rule-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(184, 163, 255, 0.14);
}

.rule-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.rule-card strong {
  display: block;
  font-size: 13.5px;
  color: #ffffff;
  margin-bottom: 2px;
}

.rule-card p {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: #9f9cb8;
}

/* Simulator Styles */
.act-simulator-wrapper {
  border-radius: 18px;
  background: rgba(14, 18, 38, 0.85);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sim-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(184, 163, 255, 0.14);
}

.sim-server-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sim-server-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.sim-server-info strong {
  display: block;
  font-size: 15px;
  color: #ffffff;
}

.sim-status-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  margin-top: 2px;
}

.sim-status-badge.open {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.sim-status-badge.closed {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.sim-stats {
  display: flex;
  gap: 14px;
}

.sim-stat-box {
  background: rgba(0, 0, 0, 0.35);
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(184, 163, 255, 0.12);
  text-align: center;
}

.sim-stat-box .s-label {
  display: block;
  font-size: 11px;
  color: #9f9cb8;
  margin-bottom: 2px;
}

.sim-stat-box strong {
  font-size: 16px;
  color: #10b981;
}

.sim-workspace {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 20px;
}

.sim-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sim-card-title {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sim-select-wrapper label {
  display: block;
  font-size: 12px;
  color: #9f9cb8;
  margin-bottom: 6px;
}

.sim-select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  background: #2b2d31;
  border: 1px solid rgba(184, 163, 255, 0.22);
  color: #ffffff;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
}

.sim-actions-quick-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.sim-btn {
  padding: 7px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(184, 163, 255, 0.16);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.sim-btn:hover {
  background: rgba(16, 185, 129, 0.25);
  border-color: rgba(16, 185, 129, 0.5);
}

.sim-terminal-output {
  background: #0d1117;
  border-radius: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: monospace;
  font-size: 11.5px;
}

.terminal-title {
  color: #10b981;
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 11px;
}

#sim-terminal-log {
  margin: 0;
  white-space: pre-wrap;
  color: #8b949e;
  max-height: 120px;
  overflow-y: auto;
  line-height: 1.5;
}

.sim-queue-box {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  padding: 14px;
  border: 1px solid rgba(184, 163, 255, 0.12);
}

.sim-queue-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.sim-queue-head strong {
  font-size: 13px;
  color: #ffffff;
}

.sim-add-btn {
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.sim-queue-entries {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 150px;
  overflow-y: auto;
}

.sim-empty-queue {
  font-size: 12px;
  color: #8b949e;
  text-align: center;
  padding: 16px 0;
}

.sim-queue-entry {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.q-pos {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.q-avatar {
  font-size: 16px;
}

.q-info strong {
  display: block;
  font-size: 12px;
  color: #ffffff;
}

.q-info small {
  font-size: 10.5px;
  color: #9f9cb8;
}

.sim-voice-status {
  background: #1e1f22;
  border-radius: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.voice-status-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12px;
  color: #10b981;
}

.v-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.voice-members-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.v-member {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: #dbdee1;
}

.v-member.interviewer {
  border-inline-start: 3px solid #5865f2;
}

.v-member.active-interviewee {
  border-inline-start: 3px solid #10b981;
  background: rgba(16, 185, 129, 0.12);
  color: #a7f3d0;
}

.v-member.empty {
  color: #72767d;
  font-style: italic;
}

/* Simulated Log Card Section */
.sim-log-section {
  padding-top: 16px;
  border-top: 1px solid rgba(184, 163, 255, 0.14);
}

.sim-log-card {
  background: #2b2d31;
  border-inline-start: 4px solid #10b981;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sim-log-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sim-log-header strong {
  font-size: 15px;
  color: #ffffff;
}

.badge-pending {
  font-size: 11px;
  font-weight: 700;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.15);
  padding: 2px 8px;
  border-radius: 4px;
}

.badge-approved {
  font-size: 11px;
  font-weight: 700;
  color: #34d399;
  background: rgba(16, 185, 129, 0.15);
  padding: 2px 8px;
  border-radius: 4px;
}

.badge-rejected {
  font-size: 11px;
  font-weight: 700;
  color: #f87171;
  background: rgba(239, 68, 68, 0.15);
  padding: 2px 8px;
  border-radius: 4px;
}

.sim-log-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  font-size: 12px;
  color: #dbdee1;
}

.sim-log-details {
  font-size: 12px;
  color: #dbdee1;
  background: rgba(0, 0, 0, 0.2);
  padding: 8px 10px;
  border-radius: 4px;
}

.sim-log-audio {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 6px;
  background: #1e1f22;
}

.sim-log-audio strong {
  display: block;
  font-size: 12px;
  color: #ffffff;
}

.sim-log-audio small {
  font-size: 10.5px;
  color: #949ba4;
}

.sim-review-actions {
  display: flex;
  gap: 10px;
}

.sim-action-btn {
  flex: 1;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  color: #ffffff;
  transition: all 0.18s ease;
}

.sim-action-btn.success {
  background: #248046;
}

.sim-action-btn.success:hover {
  background: #1a6334;
}

.sim-action-btn.danger {
  background: #da373c;
}

.sim-action-btn.danger:hover {
  background: #a1282c;
}

/* Modal Backdrop & Dialog */
.sim-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 20px;
}

.sim-modal-backdrop[hidden],
.sim-modal-backdrop:not(.is-open) {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.sim-review-actions[hidden],
.sim-log-section[hidden] {
  display: none !important;
}

.sim-modal-dialog {
  width: 100%;
  max-width: 460px;
  background: #313338;
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sim-modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sim-modal-top h3 {
  margin: 0;
  font-size: 17px;
  color: #ffffff;
  font-weight: 800;
}

.sim-modal-x {
  background: none;
  border: none;
  color: #949ba4;
  font-size: 20px;
  cursor: pointer;
}

.sim-modal-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #b5bac1;
  margin-bottom: 6px;
}

.form-group label .req {
  color: #fa777c;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 6px;
  background: #1e1f22;
  border: 1px solid #111214;
  color: #dbdee1;
  font-size: 13px;
  font-family: inherit;
  box-sizing: border-box;
}

.sim-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}

.sim-btn-secondary {
  padding: 8px 16px;
  border-radius: 6px;
  background: transparent;
  color: #ffffff;
  border: none;
  cursor: pointer;
  font-size: 13px;
}

.sim-btn-primary {
  padding: 8px 16px;
  border-radius: 6px;
  background: #5865f2;
  color: #ffffff;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

/* Permissions Table */
.act-perms-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
}

.perms-table-wrapper {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(184, 163, 255, 0.16);
  background: rgba(0, 0, 0, 0.2);
  margin-bottom: 16px;
}

.perms-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  text-align: start;
}

.perms-table th,
.perms-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(184, 163, 255, 0.1);
}

.perms-table th {
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  font-weight: 800;
}

.perms-table td {
  color: #a4a0c0;
}

.perms-table code {
  color: #34d399;
  font-weight: 700;
}

.p-badge {
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.p-badge.critical {
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
}

.p-badge.high {
  background: rgba(59, 130, 246, 0.18);
  color: #93c5fd;
}

.setup-steps-list {
  margin: 0;
  padding-inline-start: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 12.5px;
  color: #a4a0c0;
  line-height: 1.6;
}

.setup-steps-list strong {
  display: block;
  color: #ffffff;
  margin-bottom: 2px;
}

.setup-steps-list a {
  color: #34d399;
  text-decoration: underline;
}

/* FAQ Accordion */
.act-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.act-faq-item {
  border-radius: 14px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(184, 163, 255, 0.14);
}

.act-faq-item summary {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.act-faq-item summary::-webkit-details-marker {
  display: none;
}

.act-faq-item summary::after {
  content: '+';
  font-size: 18px;
  color: #10b981;
}

.act-faq-item[open] summary::after {
  content: '−';
}

.faq-answer {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.7;
  color: #9f9cb8;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 10px;
}

/* Bottom CTA */
.act-bottom-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 34px;
  border-radius: 20px;
  background: radial-gradient(circle at 10% 50%, rgba(16, 185, 129, 0.18), transparent 60%),
              linear-gradient(145deg, rgba(22, 27, 54, 0.95), rgba(10, 13, 28, 0.98));
  border: 1px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.act-cta-content h3 {
  margin: 0 0 6px;
  font-size: 20px;
  color: #ffffff;
  font-weight: 800;
}

.act-cta-content p {
  margin: 0;
  font-size: 13.5px;
  color: #9f9cb8;
  max-width: 650px;
}

/* Light Theme Overrides */
html[data-theme="light"] .act-guide-header {
  background: radial-gradient(circle at 90% 12%, rgba(16, 185, 129, 0.15), transparent 55%),
              linear-gradient(145deg, #ffffff, #f7fdf9);
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 16px 40px rgba(16, 185, 129, 0.08);
}

html[data-theme="light"] .act-hero-title-row h1 {
  color: #1a202c;
}

html[data-theme="light"] .act-hero-title-row h1 strong {
  background: linear-gradient(135deg, #059669, #10b981);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

html[data-theme="light"] .act-hero-subtitle {
  color: #4b5563;
}

html[data-theme="light"] .act-meta-chip {
  background: #ffffff;
  border-color: rgba(16, 185, 129, 0.2);
}

html[data-theme="light"] .act-meta-chip strong {
  color: #1f2937;
}

html[data-theme="light"] .act-meta-chip span {
  color: #6b7280;
}

html[data-theme="light"] .act-card {
  background: #ffffff;
  border-color: rgba(16, 185, 129, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .act-card-header h2 {
  color: #111827;
}

html[data-theme="light"] .act-concept-text p {
  color: #374151;
}

html[data-theme="light"] .act-step-item {
  background: #f9fafb;
  border-color: rgba(16, 185, 129, 0.2);
}

html[data-theme="light"] .act-step-item h4 {
  color: #111827;
}

html[data-theme="light"] .act-db-card {
  background: #f9fafb;
  border-color: rgba(16, 185, 129, 0.2);
}

html[data-theme="light"] .act-db-card-header h3 {
  color: #111827;
}

html[data-theme="light"] .act-field-item {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .act-field-item strong {
  color: #111827;
}

html[data-theme="light"] .act-field-item p {
  color: #4b5563;
}

html[data-theme="light"] .act-menu-action-card {
  background: #f9fafb;
  border-color: rgba(16, 185, 129, 0.2);
}

html[data-theme="light"] .act-menu-action-card strong {
  color: #111827;
}

html[data-theme="light"] .act-faq-item {
  background: #f9fafb;
  border-color: rgba(16, 185, 129, 0.2);
}

html[data-theme="light"] .act-faq-item summary {
  color: #111827;
}

html[data-theme="light"] .act-bottom-cta {
  background: linear-gradient(145deg, #ffffff, #f0fdf4);
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 16px 40px rgba(16, 185, 129, 0.08);
}

html[data-theme="light"] .act-cta-content h3 {
  color: #111827;
}

html[data-theme="light"] .act-cta-content p {
  color: #4b5563;
}

/* Responsive Rules */
@media (max-width: 1050px) {
  .act-meta-chips {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .act-dashboard-grid,
  .act-panel-comparison,
  .act-review-columns,
  .act-perms-grid,
  .act-faq-grid,
  .sim-workspace {
    grid-template-columns: 1fr;
  }
  .deploy-box-body,
  .act-menu-actions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .act-hero-title-row {
    flex-direction: column;
    align-items: stretch;
  }
  .act-meta-chips {
    grid-template-columns: 1fr;
  }
  .act-workflow-grid {
    flex-direction: column;
  }
  .act-step-connector {
    transform: rotate(90deg);
  }
  .deploy-box-body,
  .act-menu-actions-grid {
    grid-template-columns: 1fr;
  }
  .act-bottom-cta {
    flex-direction: column;
    align-items: flex-start;
  }
  .act-cta-actions {
    width: 100%;
  }
  .act-primary-btn {
    width: 100%;
    justify-content: center;
  }
}


/* ==========================================================================
   دليل نظام التذاكر والدعم الفني (Tickets System Guide)
   ========================================================================== */

.tg-guide-header {
  border-radius: 22px;
  background: radial-gradient(circle at 90% 15%, rgba(157, 92, 247, 0.22), transparent 55%),
              linear-gradient(145deg, rgba(22, 26, 52, 0.94), rgba(11, 14, 30, 0.95));
  border: 1px solid rgba(184, 163, 255, 0.28);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.22);
}

.tg-hero-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-top: 12px;
  margin-bottom: 24px;
}

.tg-hero-subtitle {
  margin: 10px 0 0 0;
  color: #b7b3d3;
  font-size: 14.5px;
  line-height: 1.8;
  max-width: 820px;
}

.tg-hero-cta {
  flex: none;
}

.tg-primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, #8d58f7, #6e35eb);
  border: 1px solid rgba(184, 163, 255, 0.45);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(124, 75, 246, 0.35);
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.tg-primary-btn:hover {
  background: linear-gradient(135deg, #9d6bf9, #7c44f5);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(124, 75, 246, 0.48);
  color: #fff;
}

.tg-primary-btn.big {
  padding: 13px 26px;
  font-size: 15px;
}

.tg-secondary-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(184, 163, 255, 0.22);
  color: #dedaf5;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.tg-secondary-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(184, 163, 255, 0.45);
  color: #fff;
  transform: translateY(-2px);
}

.tg-meta-chips {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(184, 163, 255, 0.16);
}

.tg-meta-chip {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(184, 163, 255, 0.14);
}

.tg-chip-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(144, 104, 248, 0.24), rgba(95, 63, 220, 0.18));
  border: 1px solid rgba(184, 163, 255, 0.28);
  font-size: 16px;
  flex: none;
}

.tg-meta-chip strong {
  display: block;
  color: #f2eeff;
  font-size: 12px;
  font-weight: 800;
}

.tg-meta-chip span {
  display: block;
  color: #a4a0c0;
  font-size: 10.5px;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Quick Navigation */
.tg-guide-container {
  display: flex;
  flex-direction: column;
  gap: 26px;
  animation: fadeIn 0.25s ease;
}

.tg-quick-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(18, 22, 44, 0.88), rgba(9, 12, 26, 0.9));
  border: 1px solid rgba(184, 163, 255, 0.2);
  overflow-x: auto;
  scrollbar-width: none;
  backdrop-filter: blur(12px);
  position: sticky;
  top: 14px;
  z-index: 40;
}

.tg-quick-nav::-webkit-scrollbar {
  display: none;
}

.tg-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 10px;
  background: transparent;
  color: #b7b3d3;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.18s ease;
  border: 1px solid transparent;
}

.tg-nav-link:hover {
  background: rgba(144, 104, 248, 0.12);
  color: #f1edff;
}

.tg-nav-link.active {
  background: linear-gradient(135deg, rgba(144, 104, 248, 0.28), rgba(100, 60, 225, 0.22));
  border-color: rgba(184, 163, 255, 0.4);
  color: #ffffff;
}

/* Card Styles */
.tg-card {
  padding: 30px;
  border-radius: 22px;
  border: 1px solid var(--guide-card-border);
  background: var(--guide-card-bg);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.tg-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(184, 163, 255, 0.12);
}

.tg-icon-badge {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(144, 104, 248, 0.25), rgba(95, 63, 220, 0.2));
  border: 1px solid rgba(184, 163, 255, 0.32);
  font-size: 22px;
  flex: none;
}

.tg-card-header h2 {
  margin: 0 0 5px 0;
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
}

.tg-card-header p {
  margin: 0;
  color: #a4a0c0;
  font-size: 13px;
}

.tg-subheading {
  margin: 22px 0 14px 0;
  font-size: 15px;
  font-weight: 800;
  color: #e4ddff;
}

.tg-concept-text p {
  margin: 0 0 14px 0;
  color: #cfcbdf;
  font-size: 14px;
  line-height: 1.8;
}

.tg-concept-text p:last-child {
  margin-bottom: 0;
}

/* Flow Grid */
.tg-workflow-wrapper {
  margin-top: 20px;
}

.tg-flow-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.tg-flow-step {
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(184, 163, 255, 0.14);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tg-flow-step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tg-step-num {
  font-size: 11px;
  font-weight: 900;
  color: #9d5cf7;
  letter-spacing: 0.5px;
}

.tg-step-icon {
  font-size: 18px;
}

.tg-flow-step h4 {
  margin: 0;
  font-size: 13.5px;
  font-weight: 800;
  color: #ffffff;
}

.tg-flow-step p {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: #a4a0c0;
}

/* Alerts */
.tg-alert {
  padding: 16px 20px;
  border-radius: 14px;
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  line-height: 1.65;
}

.tg-alert-tip {
  background: linear-gradient(145deg, rgba(35, 29, 68, 0.65), rgba(20, 18, 42, 0.7));
  border: 1px solid rgba(162, 126, 255, 0.32);
  color: #d8cfff;
}

.tg-alert-tip strong {
  color: #c9b4ff;
  font-size: 13.5px;
}

.tg-alert-warning {
  background: linear-gradient(145deg, rgba(58, 44, 20, 0.65), rgba(36, 28, 12, 0.7));
  border: 1px solid rgba(246, 173, 85, 0.35);
  color: #fbd38d;
}

.tg-alert-warning strong {
  color: #feebc8;
  font-size: 13.5px;
}

/* Steps Grid */
.tg-steps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.tg-step-card {
  padding: 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(184, 163, 255, 0.14);
}

.tg-step-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.tg-step-badge {
  padding: 4px 9px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(144, 104, 248, 0.35), rgba(95, 63, 220, 0.25));
  border: 1px solid rgba(184, 163, 255, 0.3);
  font-size: 12px;
  font-weight: 800;
  color: #d8cfff;
}

.tg-step-card-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
}

.tg-step-card p {
  margin: 0 0 10px 0;
  font-size: 13px;
  color: #b7b3d3;
}

.tg-check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tg-check-list li {
  position: relative;
  padding-inline-start: 20px;
  font-size: 13px;
  color: #cfcbdf;
  line-height: 1.5;
}

.tg-check-list li::before {
  content: '✓';
  position: absolute;
  inset-inline-start: 0;
  color: #9d5cf7;
  font-weight: 800;
}

/* Feature Blocks */
.tg-feature-block {
  padding: 22px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(184, 163, 255, 0.14);
  margin-bottom: 20px;
}

.tg-feature-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.tg-feature-tag {
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(157, 92, 247, 0.2);
  border: 1px solid rgba(184, 163, 255, 0.3);
  font-size: 11px;
  font-weight: 800;
  color: #c9b4ff;
  text-transform: uppercase;
}

.tg-feature-top h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
}

.tg-feature-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.tg-hl-item {
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(184, 163, 255, 0.1);
}

.tg-hl-item strong {
  display: block;
  font-size: 13px;
  color: #ffffff;
  margin-bottom: 4px;
}

.tg-hl-item span {
  font-size: 11.5px;
  color: #a4a0c0;
  line-height: 1.5;
}

/* Fields Table */
.tg-fields-table {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.tg-field-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(184, 163, 255, 0.08);
}

.tg-field-name strong {
  display: block;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 800;
}

.tg-field-name code {
  display: inline-block;
  font-size: 11px;
  color: #9d5cf7;
  margin-top: 3px;
  font-family: monospace;
}

.tg-field-desc p {
  margin: 0 0 8px 0;
  color: #cfcbdf;
  font-size: 13px;
  line-height: 1.6;
}

.tg-field-desc p:last-child {
  margin-bottom: 0;
}

.tg-sub-bullets {
  margin: 6px 0 0 0;
  padding-inline-start: 20px;
  color: #b7b3d3;
  font-size: 12.5px;
  line-height: 1.6;
}

/* Types Spec Grid */
.tg-types-spec-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.tg-spec-item {
  display: flex;
  gap: 12px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(184, 163, 255, 0.12);
}

.tg-spec-num {
  font-size: 18px;
  font-weight: 900;
  color: #9d5cf7;
  line-height: 1;
}

.tg-spec-item strong {
  display: block;
  font-size: 13.5px;
  color: #ffffff;
  margin-bottom: 4px;
}

.tg-spec-item p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #a4a0c0;
}

/* Panel Guide Grid & Mockup */
.tg-panel-guide-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 22px;
  align-items: start;
}

.tg-panel-info h3 {
  margin: 0 0 10px 0;
  font-size: 16px;
  color: #ffffff;
}

.tg-panel-info p {
  margin: 0 0 16px 0;
  font-size: 13.5px;
  color: #cfcbdf;
  line-height: 1.7;
}

.tg-steps-compact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tg-step-mini {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(184, 163, 255, 0.1);
}

.tg-mini-dot {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(157, 92, 247, 0.3);
  color: #e4ddff;
  font-size: 12px;
  font-weight: 900;
  flex: none;
}

.tg-step-mini strong {
  display: block;
  font-size: 13px;
  color: #ffffff;
}

.tg-step-mini span {
  font-size: 12px;
  color: #a4a0c0;
}

.tg-panel-card-mockup {
  border-radius: 16px;
  background: rgba(18, 22, 44, 0.9);
  border: 1px solid rgba(184, 163, 255, 0.28);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.tg-mockup-header {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(184, 163, 255, 0.14);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tg-mockup-header strong {
  color: #ffffff;
  font-size: 14px;
}

.tg-mockup-header span {
  font-size: 11px;
  color: #9d5cf7;
  font-weight: 800;
}

.tg-mockup-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tg-mock-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  color: #dedaf5;
  font-weight: 700;
}

.tg-mock-label small {
  font-size: 11px;
  color: #a4a0c0;
  font-weight: 400;
}

.tg-mock-picker {
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(184, 163, 255, 0.2);
  color: #ffffff;
  font-size: 13px;
}

.tg-mock-input {
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(184, 163, 255, 0.2);
  color: #ffffff;
  font-size: 13px;
}

.tg-mock-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

.tg-mock-btn-cancel {
  padding: 8px 16px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid rgba(184, 163, 255, 0.2);
  color: #b7b3d3;
  font-size: 13px;
  cursor: pointer;
}

.tg-mock-btn-confirm {
  padding: 8px 18px;
  border-radius: 8px;
  background: linear-gradient(135deg, #8d58f7, #6e35eb);
  border: none;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

/* Simulator Viewport & Tabs */
.tg-sim-desc {
  margin: 0 0 16px 0;
  color: #cfcbdf;
  font-size: 14px;
}

.tg-sim-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(184, 163, 255, 0.14);
  padding-bottom: 12px;
  margin-bottom: 18px;
  overflow-x: auto;
}

.tg-sim-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(184, 163, 255, 0.12);
  color: #b7b3d3;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.tg-sim-tab:hover {
  background: rgba(157, 92, 247, 0.12);
  color: #ffffff;
}

.tg-sim-tab.active {
  background: linear-gradient(135deg, rgba(144, 104, 248, 0.28), rgba(100, 60, 225, 0.22));
  border-color: rgba(184, 163, 255, 0.4);
  color: #ffffff;
}

.tg-sim-viewport {
  padding: 24px;
  border-radius: 16px;
  background: #313338;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tg-sim-screen {
  display: none;
  animation: fadeIn 0.2s ease;
}

.tg-sim-screen.active {
  display: block;
}

.tg-embed-fields-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.tg-embed-fields-grid.two-cols {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tg-emb-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tg-emb-field.full-width {
  grid-column: 1 / -1;
}

.tg-emb-field small {
  font-size: 11px;
  color: #949ba4;
  font-weight: 700;
}

.tg-emb-field strong {
  font-size: 13px;
  color: #ffffff;
}

.tg-emb-field span {
  font-size: 12.5px;
  color: #dbdee1;
}

.tg-sim-feedback-box {
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.6;
}

.tg-sim-feedback-box.success {
  background: rgba(36, 128, 70, 0.22);
  border: 1px solid rgba(36, 128, 70, 0.45);
  color: #bbf7d0;
}

.tg-sim-feedback-box.info {
  background: rgba(88, 101, 242, 0.22);
  border: 1px solid rgba(88, 101, 242, 0.45);
  color: #c7d2fe;
}

/* Star Reviews Card in Simulator */
.tg-review-sim-card {
  margin-top: 14px;
  padding: 16px 20px;
  border-radius: 10px;
  background: #2b2d31;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tg-review-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tg-review-head span {
  font-size: 22px;
}

.tg-review-head strong {
  display: block;
  color: #ffffff;
  font-size: 14px;
}

.tg-review-head small {
  color: #949ba4;
  font-size: 12px;
}

.tg-stars-row {
  display: flex;
  gap: 8px;
}

.tg-star-btn {
  padding: 6px 14px;
  border-radius: 6px;
  background: #383a40;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tg-star-btn:hover {
  background: #4e5058;
}

.tg-star-btn.active {
  background: #248046;
  border-color: #57F287;
  color: #ffffff;
}

.tg-review-outcome {
  font-size: 13px;
  font-weight: 700;
  color: #57F287;
}

/* Transcript Attachment Card */
.tg-transcript-file-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 18px;
  border-radius: 10px;
  background: #2b2d31;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 10px;
}

.tg-file-icon {
  font-size: 24px;
}

.tg-file-info {
  flex: 1;
}

.tg-file-info strong {
  display: block;
  color: #ffffff;
  font-size: 13px;
  font-family: monospace;
}

.tg-file-info small {
  color: #949ba4;
  font-size: 11px;
}

.tg-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 6px;
  background: #5865F2;
  border: none;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.16s ease;
}

.tg-download-btn:hover {
  background: #4752c4;
}

/* Lifecycle Stages Grid */
.tg-lifecycle-stages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tg-stage-card {
  padding: 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(184, 163, 255, 0.12);
}

.tg-stage-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.tg-stage-idx {
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(157, 92, 247, 0.25);
  color: #c9b4ff;
  font-size: 11px;
  font-weight: 800;
}

.tg-stage-head h4 {
  margin: 0;
  font-size: 14px;
  color: #ffffff;
}

.tg-stage-card p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: #a4a0c0;
}

/* Integrations Grid */
.tg-integrations-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.tg-integ-box {
  padding: 22px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(184, 163, 255, 0.14);
}

.tg-integ-box.full-span {
  grid-column: 1 / -1;
}

.tg-integ-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.tg-integ-icon {
  font-size: 26px;
}

.tg-integ-top strong {
  display: block;
  font-size: 15px;
  color: #ffffff;
}

.tg-integ-top small {
  color: #9d5cf7;
  font-size: 11.5px;
}

.tg-integ-box p {
  margin: 0 0 12px 0;
  color: #cfcbdf;
  font-size: 13.5px;
  line-height: 1.7;
}

/* Permissions Table */
.tg-perms-table-wrapper {
  overflow-x: auto;
}

.tg-perms-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.tg-perms-table th,
.tg-perms-table td {
  padding: 12px 16px;
  text-align: start;
  border-bottom: 1px solid rgba(184, 163, 255, 0.1);
}

.tg-perms-table th {
  background: rgba(255, 255, 255, 0.03);
  color: #e4ddff;
  font-weight: 800;
}

.tg-perms-table td code {
  color: #c9b4ff;
  background: rgba(157, 92, 247, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
}

.tg-badge-crit {
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(237, 66, 69, 0.2);
  border: 1px solid rgba(237, 66, 69, 0.4);
  color: #fca5a5;
  font-size: 11px;
  font-weight: 800;
}

.tg-badge-opt {
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(87, 242, 135, 0.2);
  border: 1px solid rgba(87, 242, 135, 0.4);
  color: #86efac;
  font-size: 11px;
  font-weight: 800;
}

/* FAQ List */
.tg-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tg-faq-item {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(184, 163, 255, 0.12);
  overflow: hidden;
}

.tg-faq-item summary {
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}

.tg-faq-item summary::-webkit-details-marker {
  display: none;
}

.tg-faq-item summary i::after {
  content: '▼';
  font-size: 10px;
  color: #9d5cf7;
  transition: transform 0.2s ease;
}

.tg-faq-item[open] summary i::after {
  transform: rotate(180deg);
}

.tg-faq-answer {
  padding: 0 20px 16px 20px;
  font-size: 13.5px;
  line-height: 1.7;
  color: #cfcbdf;
  border-top: 1px solid rgba(184, 163, 255, 0.06);
  padding-top: 12px;
}

/* Bottom CTA */
.tg-bottom-cta {
  padding: 32px;
  border-radius: 22px;
  background: radial-gradient(circle at 10% 50%, rgba(157, 92, 247, 0.22), transparent 60%),
              linear-gradient(145deg, rgba(22, 26, 52, 0.95), rgba(11, 14, 30, 0.96));
  border: 1px solid rgba(184, 163, 255, 0.3);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.tg-cta-content h3 {
  margin: 0 0 8px 0;
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
}

.tg-cta-content p {
  margin: 0;
  color: #b7b3d3;
  font-size: 14px;
  max-width: 620px;
  line-height: 1.6;
}

.tg-cta-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

/* Light Theme Overrides */
html[data-theme="light"] .tg-guide-header {
  background: linear-gradient(145deg, #f7f4fd, #ede8fa);
  border-color: rgba(135, 95, 246, 0.28);
  box-shadow: 0 16px 40px rgba(50, 30, 90, 0.08);
}

html[data-theme="light"] .tg-hero-subtitle {
  color: #5d5578;
}

html[data-theme="light"] .tg-meta-chip {
  background: #ffffff;
  border-color: rgba(135, 95, 246, 0.18);
}

html[data-theme="light"] .tg-meta-chip strong {
  color: #241c3c;
}

html[data-theme="light"] .tg-meta-chip span {
  color: #645e7e;
}

html[data-theme="light"] .tg-quick-nav {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(135, 95, 246, 0.22);
}

html[data-theme="light"] .tg-nav-link {
  color: #5d5578;
}

html[data-theme="light"] .tg-nav-link.active {
  background: rgba(135, 95, 246, 0.15);
  border-color: rgba(135, 95, 246, 0.4);
  color: #6e35eb;
}

html[data-theme="light"] .tg-card {
  background: #ffffff;
  border-color: rgba(135, 95, 246, 0.2);
  box-shadow: 0 16px 40px rgba(50, 30, 90, 0.06);
}

html[data-theme="light"] .tg-card-header h2 {
  color: #241c3c;
}

html[data-theme="light"] .tg-card-header p {
  color: #645e7e;
}

html[data-theme="light"] .tg-concept-text p {
  color: #3f3957;
}

html[data-theme="light"] .tg-flow-step,
html[data-theme="light"] .tg-step-card,
html[data-theme="light"] .tg-feature-block,
html[data-theme="light"] .tg-spec-item,
html[data-theme="light"] .tg-stage-card,
html[data-theme="light"] .tg-integ-box,
html[data-theme="light"] .tg-faq-item {
  background: #faf8fe;
  border-color: rgba(135, 95, 246, 0.18);
}

html[data-theme="light"] .tg-flow-step h4,
html[data-theme="light"] .tg-step-card-head h3,
html[data-theme="light"] .tg-feature-top h3,
html[data-theme="light"] .tg-spec-item strong,
html[data-theme="light"] .tg-stage-head h4,
html[data-theme="light"] .tg-integ-top strong,
html[data-theme="light"] .tg-faq-item summary {
  color: #241c3c;
}

html[data-theme="light"] .tg-flow-step p,
html[data-theme="light"] .tg-step-card p,
html[data-theme="light"] .tg-spec-item p,
html[data-theme="light"] .tg-stage-card p,
html[data-theme="light"] .tg-integ-box p,
html[data-theme="light"] .tg-faq-answer {
  color: #5d5578;
}

html[data-theme="light"] .tg-check-list li {
  color: #3f3957;
}

html[data-theme="light"] .tg-field-row {
  background: #ffffff;
  border-color: rgba(135, 95, 246, 0.12);
}

html[data-theme="light"] .tg-field-name strong {
  color: #241c3c;
}

html[data-theme="light"] .tg-field-desc p {
  color: #4b4466;
}

html[data-theme="light"] .tg-bottom-cta {
  background: radial-gradient(circle at 10% 50%, rgba(135, 95, 246, 0.16), transparent 60%),
              linear-gradient(145deg, #ffffff, #f7f4fc);
  border-color: rgba(135, 95, 246, 0.25);
  box-shadow: 0 16px 40px rgba(50, 30, 90, 0.08);
}

html[data-theme="light"] .tg-cta-content h3 {
  color: #281d44;
}

html[data-theme="light"] .tg-cta-content p {
  color: #5d5578;
}

/* Responsive Rules for Tickets Guide */
@media (max-width: 1050px) {
  .tg-meta-chips {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .tg-flow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tg-steps-grid,
  .tg-types-spec-grid,
  .tg-panel-guide-grid,
  .tg-lifecycle-stages,
  .tg-integrations-grid {
    grid-template-columns: 1fr;
  }
  .tg-feature-highlights {
    grid-template-columns: 1fr;
  }
  .tg-field-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .tg-hero-title-row {
    flex-direction: column;
    align-items: stretch;
  }
  .tg-meta-chips {
    grid-template-columns: 1fr;
  }
  .tg-flow-grid {
    grid-template-columns: 1fr;
  }
  .tg-embed-fields-grid {
    grid-template-columns: 1fr;
  }
  .tg-embed-fields-grid.two-cols {
    grid-template-columns: 1fr;
  }
  .tg-stars-row {
    flex-wrap: wrap;
  }
  .tg-transcript-file-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .tg-download-btn {
    width: 100%;
    justify-content: center;
  }
  .tg-bottom-cta {
    flex-direction: column;
    align-items: flex-start;
  }
  .tg-cta-actions {
    width: 100%;
    flex-direction: column;
  }
  .tg-primary-btn,
  .tg-secondary-btn {
    width: 100%;
    justify-content: center;
  }
}


/* ==========================================================================
   Logs Guide Styles (سجلات المراقبة والأنشطة الإدارية)
   ========================================================================== */

.logs-guide-header {
  position: relative;
  background: radial-gradient(circle at 85% 15%, rgba(139, 92, 246, 0.18), transparent 55%),
              linear-gradient(135deg, rgba(26, 21, 48, 0.95), rgba(16, 14, 30, 0.98));
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 18px;
  padding: 28px 32px;
  margin-bottom: 24px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.logs-hero-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-top: 14px;
  margin-bottom: 22px;
}

.logs-hero-title-row h1 {
  font-size: 26px;
  font-weight: 800;
  color: #f7f5ff;
  line-height: 1.35;
  margin: 0 0 10px;
}

.logs-hero-title-row h1 strong {
  color: #a78bfa;
  font-weight: 900;
}

.logs-hero-subtitle {
  font-size: 14px;
  line-height: 1.7;
  color: #c4b5fd;
  max-width: 820px;
  margin: 0;
}

.logs-hero-cta {
  flex-shrink: 0;
}

.logs-primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #ffffff;
  border: 0;
  border-radius: 12px;
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.4);
  transition: all 0.22s ease;
}

.logs-primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(124, 58, 237, 0.55);
  color: #ffffff;
}

.logs-secondary-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #e9d5ff;
  border-radius: 12px;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.logs-secondary-btn:hover {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.5);
}

.logs-meta-chips {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(139, 92, 246, 0.15);
}

.logs-meta-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(139, 92, 246, 0.16);
  border-radius: 12px;
  padding: 10px 12px;
  transition: all 0.2s ease;
}

.logs-meta-chip:hover {
  background: rgba(139, 92, 246, 0.08);
  border-color: rgba(139, 92, 246, 0.32);
}

.logs-chip-icon {
  font-size: 20px;
  line-height: 1;
}

.logs-meta-chip div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.logs-meta-chip strong {
  font-size: 12px;
  color: #ffffff;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.logs-meta-chip span {
  font-size: 10.5px;
  color: #a78bfa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Quick Nav */
.logs-quick-nav {
  position: sticky;
  top: 75px;
  z-index: 40;
  display: flex;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(18, 15, 34, 0.88);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(139, 92, 246, 0.22);
  border-radius: 14px;
  margin-bottom: 24px;
  overflow-x: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.logs-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: #c4b5fd;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.18s ease;
}

.logs-nav-link:hover {
  background: rgba(139, 92, 246, 0.15);
  color: #ffffff;
}

.logs-nav-link.active {
  background: linear-gradient(135deg, #7c3aed, #9333ea);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
}

/* Container & Cards */
.logs-guide-container {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.logs-card {
  background: linear-gradient(145deg, rgba(22, 18, 42, 0.85), rgba(15, 12, 29, 0.9));
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  scroll-margin-top: 140px;
}

.logs-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 26px;
  background: rgba(139, 92, 246, 0.06);
  border-bottom: 1px solid rgba(139, 92, 246, 0.15);
}

.logs-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(168, 85, 247, 0.15));
  border: 1px solid rgba(139, 92, 246, 0.35);
  display: grid;
  place-items: center;
  font-size: 20px;
  flex-shrink: 0;
}

.logs-card-header h2 {
  font-size: 19px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 4px;
}

.logs-card-header p {
  font-size: 12.5px;
  color: #a78bfa;
  margin: 0;
}

.logs-card-body {
  padding: 26px;
}

.logs-lead-text {
  font-size: 14.5px;
  line-height: 1.75;
  color: #ddd6fe;
  margin-top: 0;
  margin-bottom: 20px;
}

.logs-subheading {
  font-size: 15px;
  font-weight: 800;
  color: #f5f3ff;
  margin: 0 0 16px;
}

/* Concept & Workflow */
.logs-concept-text p {
  font-size: 14px;
  line-height: 1.75;
  color: #d1d5db;
  margin-bottom: 16px;
}

.logs-alert {
  padding: 18px 20px;
  border-radius: 14px;
  margin-top: 20px;
}

.logs-alert-highlight {
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.28);
}

.logs-alert-highlight strong {
  display: block;
  font-size: 14px;
  color: #e9d5ff;
  margin-bottom: 12px;
}

.logs-pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.logs-pillar-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(139, 92, 246, 0.16);
  border-radius: 12px;
  padding: 12px 14px;
}

.pillar-icon {
  font-size: 22px;
  flex-shrink: 0;
  line-height: 1.2;
}

.logs-pillar-item strong {
  display: block;
  font-size: 13px;
  color: #ffffff;
  margin-bottom: 4px;
}

.logs-pillar-item p {
  font-size: 11.5px;
  line-height: 1.55;
  color: #c4b5fd;
  margin: 0;
}

/* Lifecycle flow steps */
.logs-workflow-wrapper {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(139, 92, 246, 0.15);
}

.logs-workflow-steps {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logs-flow-step {
  flex: 1;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(139, 92, 246, 0.18);
  border-radius: 14px;
  padding: 16px 14px;
  position: relative;
  transition: all 0.2s ease;
}

.logs-flow-step:hover {
  background: rgba(139, 92, 246, 0.08);
  border-color: rgba(139, 92, 246, 0.35);
  transform: translateY(-2px);
}

.logs-step-num {
  font-size: 22px;
  font-weight: 900;
  color: rgba(139, 92, 246, 0.4);
  line-height: 1;
  margin-bottom: 6px;
}

.logs-step-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  color: #a78bfa;
  background: rgba(139, 92, 246, 0.15);
  border-radius: 6px;
  padding: 2px 7px;
  margin-bottom: 8px;
}

.logs-flow-step h4 {
  font-size: 13.5px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px;
}

.logs-flow-step p {
  font-size: 11px;
  line-height: 1.55;
  color: #c4b5fd;
  margin: 0;
}

.logs-step-arrow {
  color: rgba(139, 92, 246, 0.5);
  font-size: 16px;
  font-weight: 900;
  flex-shrink: 0;
}

/* Dashboard controls walkthrough */
.logs-controls-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.logs-control-card {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(139, 92, 246, 0.18);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.control-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.control-num {
  font-size: 18px;
  font-weight: 900;
  color: #a78bfa;
}

.control-tag {
  font-size: 10.5px;
  font-weight: 800;
  border-radius: 6px;
  padding: 3px 9px;
}

.tag-toggle {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.tag-channel {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.tag-color {
  background: rgba(236, 72, 153, 0.15);
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.3);
}

.tag-save {
  background: rgba(139, 92, 246, 0.15);
  color: #c084fc;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.logs-control-card h3 {
  font-size: 14.5px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.logs-control-card p {
  font-size: 12px;
  line-height: 1.6;
  color: #c4b5fd;
  margin: 0;
}

.control-tip {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(139, 92, 246, 0.12);
  font-size: 11px;
  line-height: 1.5;
  color: #e9d5ff;
}

.control-tip strong {
  color: #f59e0b;
}

.logs-accordion-explanation {
  background: rgba(139, 92, 246, 0.05);
  border: 1px dashed rgba(139, 92, 246, 0.25);
  border-radius: 12px;
  padding: 16px 18px;
}

.accordion-expl-text h4 {
  font-size: 13.5px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px;
}

.accordion-expl-text p {
  font-size: 12px;
  line-height: 1.6;
  color: #c4b5fd;
  margin: 0;
}

/* Catalog Groups */
.catalog-intro-bar {
  margin-bottom: 20px;
}

.catalog-intro-bar p {
  font-size: 13.5px;
  color: #ddd6fe;
  margin: 0;
}

.catalog-group-box {
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(139, 92, 246, 0.18);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 22px;
}

.catalog-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(139, 92, 246, 0.15);
}

.group-title-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.group-icon {
  font-size: 24px;
}

.group-title-box h3 {
  font-size: 15.5px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 3px;
}

.group-title-box small {
  font-size: 11.5px;
  color: #a78bfa;
}

.group-count-pill {
  font-size: 11px;
  font-weight: 800;
  background: rgba(139, 92, 246, 0.2);
  color: #c4b5fd;
  border-radius: 20px;
  padding: 4px 12px;
}

.catalog-items-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.catalog-item-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.catalog-item-card:hover {
  background: rgba(139, 92, 246, 0.06);
  border-color: rgba(139, 92, 246, 0.35);
  transform: translateY(-2px);
}

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

.item-badge {
  font-size: 10px;
  font-family: monospace;
  font-weight: 700;
  border-radius: 5px;
  padding: 2px 7px;
  background: rgba(255, 255, 255, 0.06);
  color: #c4b5fd;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.item-default-color {
  font-size: 10px;
  font-family: monospace;
  font-weight: 700;
  color: var(--c);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.item-default-color:before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c);
}

.catalog-item-card h4 {
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px;
}

.item-desc {
  font-size: 11px;
  line-height: 1.5;
  color: #9496aa;
  margin: 0 0 10px;
}

.item-features-list {
  margin: auto 0 0;
  padding: 8px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.item-features-list li {
  font-size: 10.5px;
  line-height: 1.5;
  color: #c4b5fd;
}

.item-features-list strong {
  color: #ffffff;
}

/* Simulator controls */
.logs-sim-controls-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(139, 92, 246, 0.22);
  border-radius: 14px;
  margin-bottom: 20px;
}

.sim-control-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sim-control-group label {
  font-size: 12.5px;
  color: #e9d5ff;
}

.logs-sim-dropdown {
  background: #1e1b38;
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 10px;
  color: #ffffff;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 14px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s ease;
}

.logs-sim-dropdown:focus {
  border-color: #a855f7;
}

.sim-color-picker-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sim-color-picker-row input[type="color"] {
  width: 32px;
  height: 32px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
}

.sim-color-code {
  font-family: monospace;
  font-weight: 700;
  font-size: 11px;
  color: #ddd6fe;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.sim-preset-swatches {
  display: flex;
  gap: 6px;
}

.swatch-btn {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: transform 0.18s ease;
}

.swatch-btn:hover {
  transform: scale(1.15);
}

/* Simulator Embed Layout */
.logs-sim-embed {
  transition: border-color 0.2s ease;
}

.logs-sim-embed-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.logs-sim-embed-text {
  flex: 1;
  min-width: 0;
}

.logs-sim-thumb-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.logs-sim-tinted-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 26px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: background-color 0.2s ease;
}

.thumb-hint {
  font-size: 9.5px;
  color: #949ba4;
  font-weight: 600;
}

.logs-sim-footer-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 10px 14px;
  background: rgba(139, 92, 246, 0.06);
  border: 1px solid rgba(139, 92, 246, 0.16);
  border-radius: 10px;
}

.sim-note-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a855f7;
  flex-shrink: 0;
}

.logs-sim-footer-note p {
  font-size: 11.5px;
  line-height: 1.55;
  color: #c4b5fd;
  margin: 0;
}

/* Mentions & Channel Links in Discord Preview */
.d-mention {
  background: rgba(88, 101, 242, 0.3);
  color: #c9cdfb;
  padding: 1px 4px;
  border-radius: 4px;
  font-weight: 600;
}

.d-channel {
  background: rgba(255, 255, 255, 0.08);
  color: #949ba4;
  padding: 1px 4px;
  border-radius: 4px;
  font-weight: 600;
}

.d-role {
  background: rgba(236, 72, 153, 0.25);
  color: #fbcfe8;
  padding: 1px 4px;
  border-radius: 4px;
  font-weight: 600;
}

/* Architecture Strategies */
.logs-strategies-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.strategy-card {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
}

.strategy-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 10.5px;
  font-weight: 800;
  border-radius: 6px;
  padding: 3px 10px;
  margin-bottom: 12px;
}

.badge-recommended {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.badge-enterprise {
  background: rgba(139, 92, 246, 0.18);
  color: #c084fc;
  border: 1px solid rgba(139, 92, 246, 0.35);
}

.strategy-card h3 {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px;
}

.strategy-card p {
  font-size: 12.5px;
  line-height: 1.6;
  color: #c4b5fd;
  margin: 0 0 16px;
}

.strategy-rooms-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.strategy-room-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: 10px;
  padding: 8px 12px;
}

.room-hash {
  font-size: 18px;
  color: #8b5cf6;
  font-weight: 900;
}

.strategy-room-row strong {
  display: block;
  font-size: 12px;
  color: #ffffff;
}

.strategy-room-row small {
  font-size: 10px;
  color: #a78bfa;
}

/* Permissions & Security */
.perms-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.perms-card {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 16px;
  padding: 20px;
}

.perms-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.check-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 900;
}

.lock-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  display: grid;
  place-items: center;
  font-size: 14px;
}

.perms-card-top h4 {
  font-size: 14.5px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.perms-card p {
  font-size: 12px;
  line-height: 1.6;
  color: #c4b5fd;
  margin: 0 0 14px;
}

.perms-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.perms-checklist li {
  font-size: 11.5px;
  line-height: 1.5;
  color: #ddd6fe;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.perms-checklist strong {
  display: block;
  color: #ffffff;
  margin-bottom: 2px;
}

/* FAQ */
.logs-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.logs-faq-item {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.18);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.logs-faq-item[open] {
  border-color: rgba(139, 92, 246, 0.4);
}

.logs-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  font-size: 13.5px;
  font-weight: 700;
  color: #f5f3ff;
  cursor: pointer;
  user-select: none;
}

.logs-faq-item summary i {
  width: 8px;
  height: 8px;
  border-left: 2px solid #a78bfa;
  border-bottom: 2px solid #a78bfa;
  transform: rotate(-45deg);
  transition: transform 0.2s ease;
}

.logs-faq-item[open] summary i {
  transform: rotate(135deg);
}

.faq-answer {
  padding: 0 18px 16px;
  font-size: 12.5px;
  line-height: 1.65;
  color: #c4b5fd;
}

.faq-answer p {
  margin: 0;
}

/* Bottom Banner */
.logs-bottom-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px;
  background: radial-gradient(circle at 10% 50%, rgba(139, 92, 246, 0.2), transparent 60%),
              linear-gradient(135deg, rgba(28, 22, 54, 0.95), rgba(18, 14, 36, 0.98));
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 18px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

.banner-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.banner-icon {
  font-size: 32px;
}

.banner-content h3 {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 4px;
}

.banner-content p {
  font-size: 12.5px;
  color: #c4b5fd;
  margin: 0;
}

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

/* ==========================================================================
   Light Theme Overrides for Logs Guide
   ========================================================================== */
html[data-theme="light"] .logs-guide-header {
  background: radial-gradient(circle at 85% 15%, rgba(139, 92, 246, 0.12), transparent 55%),
              linear-gradient(135deg, #ffffff, #f7f4fc);
  border-color: rgba(139, 92, 246, 0.25);
  box-shadow: 0 12px 36px rgba(80, 50, 140, 0.08);
}

html[data-theme="light"] .logs-hero-title-row h1 {
  color: #241c3c;
}

html[data-theme="light"] .logs-hero-title-row h1 strong {
  color: #7c3aed;
}

html[data-theme="light"] .logs-hero-subtitle {
  color: #5d5578;
}

html[data-theme="light"] .logs-secondary-btn {
  background: #ffffff;
  border-color: rgba(139, 92, 246, 0.3);
  color: #5b21b6;
}

html[data-theme="light"] .logs-secondary-btn:hover {
  background: #f3e8ff;
}

html[data-theme="light"] .logs-meta-chips {
  border-top-color: rgba(139, 92, 246, 0.18);
}

html[data-theme="light"] .logs-meta-chip {
  background: #ffffff;
  border-color: rgba(139, 92, 246, 0.2);
}

html[data-theme="light"] .logs-meta-chip strong {
  color: #241c3c;
}

html[data-theme="light"] .logs-meta-chip span {
  color: #6d28d9;
}

html[data-theme="light"] .logs-quick-nav {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(139, 92, 246, 0.25);
  box-shadow: 0 8px 24px rgba(80, 50, 140, 0.08);
}

html[data-theme="light"] .logs-nav-link {
  color: #5d5578;
}

html[data-theme="light"] .logs-nav-link:hover {
  background: rgba(139, 92, 246, 0.12);
  color: #241c3c;
}

html[data-theme="light"] .logs-nav-link.active {
  color: #ffffff;
}

html[data-theme="light"] .logs-card {
  background: #ffffff;
  border-color: rgba(139, 92, 246, 0.2);
  box-shadow: 0 10px 30px rgba(80, 50, 140, 0.06);
}

html[data-theme="light"] .logs-card-header {
  background: rgba(139, 92, 246, 0.04);
  border-bottom-color: rgba(139, 92, 246, 0.15);
}

html[data-theme="light"] .logs-card-header h2 {
  color: #241c3c;
}

html[data-theme="light"] .logs-card-header p {
  color: #6d28d9;
}

html[data-theme="light"] .logs-lead-text,
html[data-theme="light"] .logs-concept-text p {
  color: #4b4466;
}

html[data-theme="light"] .logs-subheading {
  color: #241c3c;
}

html[data-theme="light"] .logs-alert-highlight {
  background: #fbf9ff;
  border-color: rgba(139, 92, 246, 0.22);
}

html[data-theme="light"] .logs-alert-highlight strong {
  color: #241c3c;
}

html[data-theme="light"] .logs-pillar-item {
  background: #ffffff;
  border-color: rgba(139, 92, 246, 0.18);
}

html[data-theme="light"] .logs-pillar-item strong {
  color: #241c3c;
}

html[data-theme="light"] .logs-pillar-item p {
  color: #5d5578;
}

html[data-theme="light"] .logs-workflow-wrapper {
  border-top-color: rgba(139, 92, 246, 0.18);
}

html[data-theme="light"] .logs-flow-step {
  background: #fbf9fe;
  border-color: rgba(139, 92, 246, 0.18);
}

html[data-theme="light"] .logs-flow-step h4 {
  color: #241c3c;
}

html[data-theme="light"] .logs-flow-step p {
  color: #5d5578;
}

html[data-theme="light"] .logs-control-card {
  background: #fbf9fe;
  border-color: rgba(139, 92, 246, 0.18);
}

html[data-theme="light"] .logs-control-card h3 {
  color: #241c3c;
}

html[data-theme="light"] .logs-control-card p {
  color: #5d5578;
}

html[data-theme="light"] .control-tip {
  border-top-color: rgba(139, 92, 246, 0.15);
  color: #4b4466;
}

html[data-theme="light"] .logs-accordion-explanation {
  background: #f6f2fd;
  border-color: rgba(139, 92, 246, 0.25);
}

html[data-theme="light"] .accordion-expl-text h4 {
  color: #241c3c;
}

html[data-theme="light"] .accordion-expl-text p {
  color: #5d5578;
}

html[data-theme="light"] .catalog-intro-bar p {
  color: #5d5578;
}

html[data-theme="light"] .catalog-group-box {
  background: #faf8fe;
  border-color: rgba(139, 92, 246, 0.2);
}

html[data-theme="light"] .catalog-group-head {
  border-bottom-color: rgba(139, 92, 246, 0.16);
}

html[data-theme="light"] .group-title-box h3 {
  color: #241c3c;
}

html[data-theme="light"] .group-title-box small {
  color: #6d28d9;
}

html[data-theme="light"] .group-count-pill {
  background: #ede8fa;
  color: #6d28d9;
}

html[data-theme="light"] .catalog-item-card {
  background: #ffffff;
  border-color: rgba(139, 92, 246, 0.18);
}

html[data-theme="light"] .catalog-item-card h4 {
  color: #241c3c;
}

html[data-theme="light"] .item-desc {
  color: #5d5578;
}

html[data-theme="light"] .item-features-list {
  border-top-color: rgba(139, 92, 246, 0.12);
}

html[data-theme="light"] .item-features-list li {
  color: #5d5578;
}

html[data-theme="light"] .item-features-list strong {
  color: #241c3c;
}

html[data-theme="light"] .logs-sim-controls-panel {
  background: #f7f4fc;
  border-color: rgba(139, 92, 246, 0.22);
}

html[data-theme="light"] .sim-control-group label {
  color: #241c3c;
}

html[data-theme="light"] .logs-sim-dropdown {
  background: #ffffff;
  border-color: rgba(139, 92, 246, 0.3);
  color: #241c3c;
}

html[data-theme="light"] .sim-color-code {
  background: #ffffff;
  color: #5d5578;
  border-color: rgba(139, 92, 246, 0.2);
}

html[data-theme="light"] .logs-sim-footer-note {
  background: #f7f4fc;
  border-color: rgba(139, 92, 246, 0.2);
}

html[data-theme="light"] .logs-sim-footer-note p {
  color: #5d5578;
}

html[data-theme="light"] .strategy-card {
  background: #fbf9fe;
  border-color: rgba(139, 92, 246, 0.2);
}

html[data-theme="light"] .strategy-card h3 {
  color: #241c3c;
}

html[data-theme="light"] .strategy-card p {
  color: #5d5578;
}

html[data-theme="light"] .strategy-room-row {
  background: #ffffff;
  border-color: rgba(139, 92, 246, 0.18);
}

html[data-theme="light"] .strategy-room-row strong {
  color: #241c3c;
}

html[data-theme="light"] .strategy-room-row small {
  color: #6d28d9;
}

html[data-theme="light"] .perms-card {
  background: #fbf9fe;
  border-color: rgba(139, 92, 246, 0.2);
}

html[data-theme="light"] .perms-card-top h4 {
  color: #241c3c;
}

html[data-theme="light"] .perms-card p {
  color: #5d5578;
}

html[data-theme="light"] .perms-checklist li {
  background: #ffffff;
  border-color: rgba(139, 92, 246, 0.16);
  color: #5d5578;
}

html[data-theme="light"] .perms-checklist strong {
  color: #241c3c;
}

html[data-theme="light"] .logs-faq-item {
  background: #fbf9fe;
  border-color: rgba(139, 92, 246, 0.18);
}

html[data-theme="light"] .logs-faq-item summary {
  color: #241c3c;
}

html[data-theme="light"] .faq-answer {
  color: #5d5578;
}

html[data-theme="light"] .logs-bottom-banner {
  background: radial-gradient(circle at 10% 50%, rgba(139, 92, 246, 0.12), transparent 60%),
              linear-gradient(135deg, #ffffff, #f7f4fc);
  border-color: rgba(139, 92, 246, 0.28);
  box-shadow: 0 12px 36px rgba(80, 50, 140, 0.08);
}

html[data-theme="light"] .banner-content h3 {
  color: #241c3c;
}

html[data-theme="light"] .banner-content p {
  color: #5d5578;
}

/* ==========================================================================
   Responsive Overrides for Logs Guide
   ========================================================================== */
@media (max-width: 1080px) {
  .logs-meta-chips {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .catalog-items-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .logs-workflow-steps {
    flex-direction: column;
    align-items: stretch;
  }
  .logs-step-arrow {
    transform: rotate(90deg);
    align-self: center;
  }
}

@media (max-width: 760px) {
  .logs-hero-title-row {
    flex-direction: column;
    align-items: stretch;
  }
  .logs-meta-chips {
    grid-template-columns: 1fr;
  }
  .logs-controls-breakdown-grid,
  .logs-pillars-grid,
  .logs-strategies-grid,
  .perms-grid {
    grid-template-columns: 1fr;
  }
  .catalog-items-grid {
    grid-template-columns: 1fr;
  }
  .logs-sim-controls-panel {
    flex-direction: column;
    align-items: stretch;
  }
  .sim-control-group {
    flex-direction: column;
    align-items: flex-start;
  }
  .logs-sim-dropdown {
    width: 100%;
  }
  .logs-bottom-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .banner-actions {
    width: 100%;
    flex-direction: column;
  }
  .logs-primary-btn,
  .logs-secondary-btn {
    width: 100%;
    justify-content: center;
  }
}
