:root {
  --iris: #7951e8;
  --iris-dark: #5f36d9;
  --iris-light: #f1edff;
  --lav: #9a83f1;
  --per: #899bf0;
  --bg: #f8f7ff;
  --card-bg: #ffffff;
  --txt: #1e1b4b;
  --txt-muted: #64748b;
  --border: #e2dcfa;
  --green: #10a37f;
  --green-light: #ecfdf5;
  --red: #ef4444;
  --shadow-sm: 0 4px 12px rgba(121, 81, 232, 0.06);
  --shadow-md: 0 10px 30px rgba(121, 81, 232, 0.12);
  --shadow-lg: 0 20px 48px rgba(91, 66, 195, 0.18);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg);
  color: var(--txt);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* =========================================
   SPLASH SCREEN & AUTH
========================================= */
#splashScreen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 40%, #7951e8 80%, #9a83f1 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  padding: 24px;
  text-align: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#splashScreen.fade-out {
  opacity: 0;
  visibility: hidden;
}

.splash-logo-container {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.splash-badge {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.splash-title {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 900;
  letter-spacing: -1.5px;
  margin-bottom: 8px;
}

.splash-subtitle {
  font-size: 17px;
  opacity: 0.9;
  max-width: 500px;
  margin-bottom: 32px;
}

.splash-loader {
  width: 240px;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}

.splash-loader-bar {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 0%;
  background: #ffffff;
  border-radius: 99px;
  transition: width 1.2s ease-in-out;
}

/* AUTH MODAL / GATE */
#authGate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(ellipse at 50% 25%, #180e3b 0%, #0b0f24 55%, #050711 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
}

/* Neural Network Interactive Canvas */
.auth-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Ambient Floating Glowing Orbs */
.auth-ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 2;
  opacity: 0.65;
}

.auth-ambient-glow.glow-1 {
  top: -120px;
  left: -100px;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(147, 51, 234, 0.45) 0%, rgba(79, 70, 229, 0.25) 50%, transparent 70%);
  animation: floatOrb1 16s ease-in-out infinite alternate;
}

.auth-ambient-glow.glow-2 {
  bottom: -150px;
  right: -120px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.45) 0%, rgba(99, 102, 241, 0.25) 50%, transparent 70%);
  animation: floatOrb2 18s ease-in-out infinite alternate;
}

@keyframes floatOrb1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 80px) scale(1.15); }
  100% { transform: translate(30px, 40px) scale(0.95); }
}

@keyframes floatOrb2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-80px, -60px) scale(1.2); }
  100% { transform: translate(-40px, -20px) scale(0.9); }
}

.auth-card {
  position: relative;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  width: 100%;
  max-width: 440px;
  border-radius: 26px;
  padding: 38px 34px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.7) inset, 0 0 40px rgba(147, 51, 234, 0.25);
  text-align: center;
  border: 1px solid rgba(168, 85, 247, 0.35);
  animation: slideUpAuth 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.auth-card:hover {
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.8) inset, 0 0 50px rgba(147, 51, 234, 0.35);
  border-color: rgba(168, 85, 247, 0.5);
}

@keyframes slideUpAuth {
  from { opacity: 0; transform: translateY(30px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-header {
  margin-bottom: 22px;
}

.auth-logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: #ffffff;
  border-radius: 20px;
  margin-bottom: 16px;
  border: 1.5px solid rgba(121, 81, 232, 0.2);
  box-shadow: 0 8px 24px rgba(121, 81, 232, 0.12);
}

.auth-partner-logo {
  height: 60px;
  max-width: 220px;
  width: auto;
  display: block;
  object-fit: contain;
}

.auth-logo-badge picture,
.partner-logo-item picture,
.cert-logos picture {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-header h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--txt);
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.auth-header p {
  font-size: 13.5px;
  color: var(--txt-muted);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon .input-icon {
  position: absolute;
  left: 14px;
  font-size: 16px;
  opacity: 0.6;
  pointer-events: none;
}

.input-with-icon input {
  padding-left: 42px !important;
  padding-right: 42px !important;
  width: 100%;
}

.btn-toggle-pass {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  opacity: 0.6;
  padding: 4px;
  transition: opacity 0.2s;
}

.btn-toggle-pass:hover {
  opacity: 1;
}

/* НЕВИДИМАЯ ЗАЩИТА HONEYPOT */
.hp-security-field {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
}

.btn-auth-submit {
  width: 100%;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 14px;
  background: linear-gradient(135deg, #7951e8 0%, #582cd1 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 16px rgba(121, 81, 232, 0.35);
  cursor: pointer;
  transition: all 0.25s ease;
  margin-top: 4px;
}

.btn-auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(121, 81, 232, 0.45);
}

.btn-auth-submit .arrow-icon {
  transition: transform 0.2s ease;
}

.btn-auth-submit:hover .arrow-icon {
  transform: translateX(4px);
}

.form-group label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #475569;
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 15px;
  color: var(--txt);
  background: #faf8ff;
  transition: all 0.2s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--iris);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(121, 81, 232, 0.12);
}

.auth-error {
  display: none;
  background: #fef2f2;
  color: var(--red);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #fecaca;
  text-align: center;
}

.auth-demo-box {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 14px;
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--txt-muted);
  text-align: center;
}

.auth-demo-box strong {
  color: var(--txt);
}

/* =========================================
   MAIN APP LAYOUT
========================================= */
.app {
  display: flex;
  min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
  width: 280px;
  flex-shrink: 0;
  background: #ffffff;
  border-right: 1px solid var(--border);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 50;
  overflow-y: auto;
}

.brand {
  display: flex;
  flex-direction: column;
  padding: 8px 12px;
}

.brand-title {
  font-weight: 900;
  font-size: 23px;
  line-height: 1.1;
  letter-spacing: -0.8px;
  color: var(--iris);
}

.brand-badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: 1.2px;
  color: var(--txt-muted);
  margin-top: 6px;
  text-transform: uppercase;
}

/* MENU */
.menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.menu button {
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: 0;
  color: #475569;
  text-align: left;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  transition: all 0.15s ease;
}

.menu button:hover {
  background: var(--iris-light);
  color: var(--iris-dark);
}

.menu button.active {
  background: var(--iris);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(121, 81, 232, 0.25);
}

.menu button .menu-icon {
  font-size: 17px;
  line-height: 1;
}

/* USER PANEL IN SIDEBAR */
.user-panel {
  margin-top: auto;
  padding: 16px 14px;
  border-top: 1px solid var(--border);
  background: #faf8ff;
  border-radius: 14px;
}

.user-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--txt);
  margin-bottom: 4px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
}

.user-meta {
  font-size: 11.5px;
  color: var(--txt-muted);
  line-height: 1.4;
  margin-bottom: 10px;
}

.btn-logout {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--txt-muted);
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-logout:hover {
  color: var(--red);
  border-color: #fecaca;
  background: #fff5f5;
}

/* =========================================
   MAIN CONTENT AREA
========================================= */
.main {
  flex: 1;
  min-width: 0;
  padding: 30px 40px 60px;
}

/* TOP BAR */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.top-headline b {
  font-size: 18px;
  font-weight: 800;
  color: var(--txt);
}

.top-headline .small {
  font-size: 13px;
  color: var(--txt-muted);
}

.partner-logos {
  display: flex;
  align-items: center;
  gap: 16px;
}

.partner-logo-item {
  height: 68px;
  padding: 6px 18px;
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.partner-logo-item:hover {
  border-color: var(--iris);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(121, 81, 232, 0.12);
}

.partner-logo-item img {
  height: 52px;
  max-height: 56px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* MOBILE TOP */
.mobile-top {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 60;
}

.mobile-top strong {
  color: var(--iris);
  font-size: 18px;
  font-weight: 900;
}

.nav-toggle {
  display: none;
  background: var(--iris-light);
  border: none;
  border-radius: 10px;
  padding: 8px 14px;
  color: var(--iris);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

/* =========================================
   COMPONENTS: HERO, CARDS, BUTTONS
========================================= */
.hero {
  background: linear-gradient(112deg, #7951e8 0%, #9a83f1 45%, #899bf0 82%, #b5a5f8 100%);
  color: white;
  padding: 42px 48px;
  border-radius: 26px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 32px;
}

.hero:before {
  content: '';
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  right: -60px;
  top: -140px;
  box-shadow: 0 0 0 28px rgba(255, 255, 255, 0.08), 0 0 0 65px rgba(255, 255, 255, 0.05);
}

.eyebrow {
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.95;
  margin-bottom: 8px;
}

.hero h1 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  line-height: 1.15;
  margin: 8px 0 14px;
  letter-spacing: -1.2px;
}

.hero p {
  max-width: 620px;
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.95;
  margin-bottom: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  background: var(--iris);
  color: white;
  border-radius: 12px;
  padding: 12px 22px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(91, 63, 207, 0.2);
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(91, 63, 207, 0.3);
}

.btn.light {
  background: #ffffff;
  color: var(--iris-dark);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.btn.outline {
  color: var(--iris);
  background: transparent;
  border: 1.5px solid var(--border);
  box-shadow: none;
}

.btn.outline:hover {
  background: var(--iris-light);
  border-color: var(--iris);
  transform: none;
}

.btn.green {
  background: var(--green);
  box-shadow: 0 6px 18px rgba(16, 163, 127, 0.25);
}

.page-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--txt);
  margin: 32px 0 18px;
  letter-spacing: -0.5px;
}

/* GRIDS */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 18px;
}

@media (max-width: 1200px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 18px;
}

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

.card {
  background: var(--card-bg);
  border-radius: 20px;
  border: 1px solid var(--border);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  border-color: var(--lav);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.card.lav {
  background: linear-gradient(135deg, #f7f4ff 0%, #ede7ff 100%);
  border-color: #dcd0ff;
}

.card.blue {
  background: linear-gradient(135deg, #f4f7ff 0%, #e6edff 100%);
  border-color: #d1ddfc;
}

.card .card-emoji {
  font-size: 32px;
  margin-bottom: 12px;
}

.card h3 {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--txt);
}

.card p {
  color: var(--txt-muted);
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 20px;
  flex: 1;
}

/* DETAILS & VIEWS */
.view-section {
  display: none;
  animation: fadeIn 0.25s ease;
}

.view-section.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   SCHEDULE SECTION
========================================= */
.schedule-controls {
  display: flex;
  gap: 10px;
  margin: 18px 0 24px;
  flex-wrap: wrap;
}

.pill-filter {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1px solid var(--border);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--txt-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.pill-filter.active, .pill-filter:hover {
  background: var(--iris);
  color: #ffffff;
  border-color: var(--iris);
}

.event-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.event-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.event-item:hover {
  border-color: var(--iris);
  box-shadow: var(--shadow-md);
}

.event-item.featured {
  border-left: 5px solid var(--iris);
  background: linear-gradient(90deg, #faf8ff 0%, #ffffff 100%);
}

.event-item strong {
  font-size: 16px;
  color: var(--txt);
  display: block;
  margin-bottom: 4px;
}

.event-item p {
  font-size: 14px;
  color: var(--txt-muted);
  margin: 0;
}

.event-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.badge-format {
  font-size: 11.5px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-format.offline {
  background: #f1edff;
  color: var(--iris);
}

.badge-format.online {
  background: #ecfdf5;
  color: #059669;
}

/* =========================================
   KNOWLEDGE BASE (14 COURSES)
========================================= */
.kb-search-box {
  margin-bottom: 24px;
}

.kb-search-box input {
  width: 100%;
  padding: 15px 20px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  font-size: 15px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.kb-search-box input:focus {
  outline: none;
  border-color: var(--iris);
  box-shadow: 0 0 0 4px rgba(121, 81, 232, 0.12);
}

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

.course-card {
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 22px;
  border-radius: 18px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  border-color: var(--iris);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.course-card b {
  font-size: 17px;
  font-weight: 800;
  color: var(--txt);
  margin-bottom: 8px;
}

.course-card p {
  font-size: 13.5px;
  color: var(--txt-muted);
  margin-bottom: 14px;
  flex: 1;
}

.course-card .course-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--iris);
  font-weight: 700;
}

.article-view {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 36px 40px;
  max-width: 920px;
  box-shadow: var(--shadow-sm);
  line-height: 1.8;
}

.article-breadcrumb {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--txt-muted);
  margin-bottom: 20px;
}

.article-step {
  background: #faf8ff;
  border-left: 4px solid var(--iris);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 14.5px;
}

.article-step b {
  color: var(--iris-dark);
}

/* =========================================
   GOLDEN PROMPTS
========================================= */
.prompt-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.prompt-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}

.prompt-card:hover {
  border-color: var(--iris);
  box-shadow: var(--shadow-md);
}

.prompt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.prompt-header h3 {
  font-size: 19px;
  font-weight: 800;
  color: var(--txt);
}

.prompt-code {
  background: #faf8ff;
  border: 1px solid #e7dffd;
  border-radius: 14px;
  padding: 20px;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 14.5px;
  line-height: 1.65;
  color: #2e1065;
  white-space: pre-wrap;
  margin-bottom: 18px;
}

/* =========================================
   VPN & CHATGPT MODULE (FROM EXISTING SERVER)
========================================= */
.vpn-box {
  background: #ffffff;
  border: 2px solid var(--iris);
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-md);
}

.captcha-container {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 24px;
  margin: 20px 0;
}

.captcha-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.captcha-canvas-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  padding: 6px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
}

#captchaCanvas {
  border-radius: 6px;
  cursor: pointer;
}

.btn-refresh-captcha {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 6px 10px;
  color: #64748b;
  transition: transform 0.2s;
}

.btn-refresh-captcha:hover {
  transform: rotate(45deg);
}

.captcha-input {
  width: 160px;
  padding: 12px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-family: monospace;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
  color: var(--txt);
  background: #ffffff;
}

.captcha-error {
  display: none;
  color: var(--red);
  font-weight: 700;
  font-size: 13px;
  margin-top: 10px;
}

.unlocked-vpn-box {
  display: none;
  background: var(--green-light);
  border: 1.5px solid #6ee7b7;
  border-radius: 14px;
  padding: 24px;
  margin: 20px 0;
}

.vpn-input-row {
  display: flex;
  gap: 12px;
  margin: 14px 0;
  flex-wrap: wrap;
}

.vpn-input-row input {
  flex: 1;
  min-width: 280px;
  padding: 12px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-family: monospace;
  font-size: 14px;
  background: #ffffff;
}

.vpn-instructions {
  background: #f1f5f9;
  border-radius: 12px;
  padding: 18px 22px;
  font-size: 14px;
  margin-top: 16px;
}

.vpn-instructions ul {
  margin: 8px 0 0 20px;
  line-height: 1.7;
}

.step-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

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

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--iris);
  color: #ffffff;
  font-size: 17px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screenshot-box {
  background: #0f172a;
  border-radius: 14px;
  padding: 14px;
  margin: 20px 0;
  text-align: center;
}

.screenshot-box img {
  max-width: 100%;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

.screenshot-caption {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 8px;
}

/* =========================================
   CERTIFICATES
========================================= */
.cert-card {
  background: #ffffff;
  border: 2px solid var(--border);
  border-radius: 24px;
  padding: 44px;
  text-align: center;
  max-width: 720px;
  margin: 20px auto;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.cert-card:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: linear-gradient(90deg, #ff5964 0%, #7951e8 50%, #10a37f 100%);
}

.cert-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.cert-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.cert-logo-divider {
  width: 1.5px;
  height: 36px;
  background: var(--border);
}

.cert-badge {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--iris);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.cert-name {
  font-size: 32px;
  font-weight: 900;
  color: var(--txt);
  margin-bottom: 12px;
}

.cert-desc {
  font-size: 15px;
  color: var(--txt-muted);
  max-width: 520px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

.cert-signatures {
  display: flex;
  justify-content: space-around;
  border-top: 1px solid var(--border);
  padding-top: 24px;
  margin-top: 30px;
  text-align: center;
  font-size: 12.5px;
  color: var(--txt-muted);
}

/* =========================================
   RESPONSIVE DESIGN
========================================= */
@media (max-width: 1050px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .main {
    padding: 24px;
  }
}

@media (max-width: 768px) {
  .app {
    display: block;
  }

  .sidebar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    height: 100vh;
    box-shadow: 20px 0 50px rgba(0, 0, 0, 0.2);
  }

  .sidebar.open {
    display: flex;
  }

  .mobile-top, .nav-toggle {
    display: flex;
  }

  .partner-logos {
    gap: 10px;
    width: 100%;
    margin-top: 12px;
  }

  .partner-logo-item {
    height: 56px;
    padding: 6px 14px;
    flex: 1;
    min-width: 140px;
  }

  .partner-logo-item img {
    height: 42px;
  }

  .main {
    padding: 16px;
  }

  .grid-3, .grid-2, .course-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 30px 24px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .event-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .article-view {
    padding: 22px;
  }
}


/* ===================================================
   СТИЛИ ДЛЯ 152-ФЗ И ИНТЕРАКТИВНЫХ КОМПОНЕНТОВ
=================================================== */

.fz152-wrap {
  margin-top: 28px;
}

.fz152-wrap .section {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.fz152-wrap .section-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: -0.5px;
}

.fz152-wrap .section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 800;
}

/* Law tag button */
.law-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(121, 81, 232, 0.12);
  color: #7951e8;
  font-weight: 700;
  font-size: 12.5px;
  padding: 2px 8px;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid rgba(121, 81, 232, 0.25);
  transition: all 0.2s ease;
  vertical-align: middle;
  text-decoration: none;
}

.law-tag:hover {
  background: #7951e8;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(121, 81, 232, 0.3);
}

/* Traffic light styles */
.traffic-light-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.zone-card {
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.zone-red {
  background: #fff5f5;
  border-color: #feb2b2;
}

.zone-yellow {
  background: #fffaf0;
  border-color: #fbd38d;
}

.zone-green {
  background: #f0fff4;
  border-color: #9ae6b4;
}

.zone-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 12px;
}

.zone-red .zone-header { color: #c53030; }
.zone-yellow .zone-header { color: #dd6b20; }
.zone-green .zone-header { color: #2f855a; }

.zone-card ul {
  padding-left: 20px;
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

/* Modal Window */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  background: var(--card-bg);
  border-radius: 16px;
  width: 100%;
  max-width: 680px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  overflow: hidden;
  border: 1px solid var(--border);
  animation: modalIn 0.25s ease-out;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

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

.modal-close-btn {
  background: none;
  border: none;
  font-size: 26px;
  color: var(--txt-muted);
  cursor: pointer;
  line-height: 1;
}

.modal-close-btn:hover {
  color: var(--txt-main);
}

/* VIDEO MODAL & PROTECTED PLAYER */
.modal-card.video-modal-card {
  max-width: 960px;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.4);
}

.video-modal-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(121, 81, 232, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.video-modal-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.video-drm-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(16, 163, 127, 0.1);
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  border: 1px solid rgba(16, 163, 127, 0.2);
}

.video-modal-body {
  padding: 20px 24px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.video-player-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
  user-select: none;
  -webkit-user-select: none;
}

.video-player-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
}

.video-watermark {
  position: absolute;
  top: 14px;
  right: 16px;
  padding: 6px 12px;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.4px;
  pointer-events: none;
  z-index: 5;
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.video-info-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.video-meta-row {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 12px 18px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 13.5px;
}

.video-timecodes-block {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 20px;
}

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

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

.timecode-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #faf8ff;
  border: 1px solid rgba(121, 81, 232, 0.15);
  border-radius: 10px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.timecode-btn:hover {
  background: #f0eaff;
  border-color: var(--iris);
  transform: translateY(-1px);
}

.tc-time {
  font-family: monospace;
  font-weight: 700;
  font-size: 13px;
  color: var(--iris);
  background: rgba(121, 81, 232, 0.1);
  padding: 3px 8px;
  border-radius: 6px;
}

.tc-label {
  font-size: 12.5px;
  color: var(--txt);
  font-weight: 600;
  flex: 1;
}

.video-drm-notice {
  font-size: 12.5px;
  line-height: 1.5;
  color: #64748b;
  background: #f1f5f9;
  border-left: 3px solid var(--iris);
  padding: 10px 14px;
  border-radius: 0 8px 8px 0;
}

/* Event item clickable */
.event-item.event-clickable {
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.event-item.event-clickable:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(121, 81, 232, 0.15);
  border-color: var(--iris);
}

.badge-video-ready {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #10a37f, #059669);
  padding: 4px 10px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(16, 163, 127, 0.25);
}

/* Checklist */
.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--bg);
  margin-bottom: 10px;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.checklist-item:hover {
  border-color: var(--accent);
}

.checklist-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  cursor: pointer;
}

.progress-bar-container {
  background: var(--border);
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
  margin: 16px 0;
}

.progress-fill {
  background: linear-gradient(90deg, #7951e8, #22c55e);
  height: 100%;
  width: 0%;
  transition: width 0.3s ease;
}

.progress-status {
  font-weight: 700;
  font-size: 14px;
}
.progress-status.safe { color: #16a34a; }
.progress-status.warning { color: #d97706; }
.progress-status.danger { color: #dc2626; }

/* ===================================================
   ТАБЛИЦЫ, БЕЙДЖИ И СВЕТОФОР 152-ФЗ
=================================================== */

.table-wrapper {
  overflow-x: auto;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  margin-top: 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th {
  background: rgba(121, 81, 232, 0.06);
  color: var(--txt-main);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 14px 16px;
  border-bottom: 2px solid var(--border);
}

td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--txt-main);
  vertical-align: top;
  line-height: 1.55;
}

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

tr:hover td {
  background: rgba(121, 81, 232, 0.03);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.badge-allow {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

.badge-deny {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}

.badge-warn {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

/* Traffic Light Zones */
.zone-box {
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 16px;
  border-left: 6px solid;
  border-top: 1px solid;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.zone-box.zone-red {
  background: #fef2f2;
  border-color: #fecaca;
  border-left-color: #ef4444;
}

.zone-box.zone-yellow {
  background: #fffbeb;
  border-color: #fef3c7;
  border-left-color: #f59e0b;
}

.zone-box.zone-green {
  background: #f0fdf4;
  border-color: #bbf7d0;
  border-left-color: #22c55e;
}

.zone-title {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.zone-box.zone-red .zone-title { color: #b91c1c; }
.zone-box.zone-yellow .zone-title { color: #b45309; }
.zone-box.zone-green .zone-title { color: #15803d; }

.zone-list {
  list-style: none;
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
}

.zone-list li {
  font-size: 14px;
  color: var(--txt-main);
  position: relative;
  padding-left: 20px;
  line-height: 1.55;
}

.zone-list li::before {
  content: "•";
  position: absolute;
  left: 4px;
  font-weight: bold;
  font-size: 18px;
  line-height: 1;
}

.zone-box.zone-red .zone-list li::before { color: #ef4444; }
.zone-box.zone-yellow .zone-list li::before { color: #f59e0b; }
.zone-box.zone-green .zone-list li::before { color: #22c55e; }

.callout-warn {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 5px solid #f59e0b;
  border-radius: 12px;
  padding: 16px 20px;
  margin-top: 18px;
}

.callout-warn h4 {
  color: #b45309;
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 6px;
}

.callout-warn p {
  color: var(--txt-main);
  font-size: 13.5px;
  margin: 0;
  line-height: 1.5;
}

/* Compare Grid */
.compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 18px;
}

.compare-box {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card-bg);
  box-shadow: var(--shadow-sm);
}

.compare-header {
  padding: 12px 18px;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.compare-header.bad { background: #dc2626; }
.compare-header.good { background: #16a34a; }

.compare-body {
  padding: 18px;
  font-size: 14px;
}

.prompt-quote {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  background: rgba(121, 81, 232, 0.05);
  padding: 14px;
  border-radius: 10px;
  margin-bottom: 12px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--txt-main);
  border: 1px solid var(--border);
}

/* ===================================================
   ИНТЕРАКТИВНЫЙ ТРЕНАЖЕР: СТУДИЯ АВТООЧИСТКИ
=================================================== */
.trainer-section {
  background: linear-gradient(180deg, rgba(121, 81, 232, 0.03) 0%, rgba(255, 255, 255, 1) 100%);
  border: 2px solid rgba(121, 81, 232, 0.25) !important;
  box-shadow: 0 10px 30px rgba(121, 81, 232, 0.08) !important;
}

.trainer-preset-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 16px;
  background: rgba(121, 81, 232, 0.06);
  border-radius: 12px;
  margin-bottom: 20px;
  border: 1px solid rgba(121, 81, 232, 0.15);
}

.preset-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--txt-muted);
}

.preset-btn {
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--txt-main);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.preset-btn:hover {
  background: #7951e8;
  color: #ffffff;
  border-color: #7951e8;
  transform: translateY(-1px);
}

.preset-btn.clear-btn {
  margin-left: auto;
  color: #dc2626;
  border-color: #fecaca;
  background: #fef2f2;
}

.preset-btn.clear-btn:hover {
  background: #dc2626;
  color: #ffffff;
}

/* Dual Column Layout */
.trainer-dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

@media (max-width: 860px) {
  .trainer-dual-grid {
    grid-template-columns: 1fr;
  }
}

.trainer-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.2s ease;
}

.trainer-card.input-card {
  border-top: 4px solid #ef4444;
}

.trainer-card.output-card {
  border-top: 4px solid #10b981;
}

.trainer-card-header {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.02);
  border-bottom: 1px solid var(--border);
}

.trainer-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
}

.trainer-card-badge.danger { color: #b91c1c; }
.trainer-card-badge.success { color: #047857; }

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot.red { background: #ef4444; box-shadow: 0 0 8px rgba(239, 68, 68, 0.6); }
.dot.green { background: #10b981; box-shadow: 0 0 8px rgba(16, 185, 129, 0.6); }

.char-count {
  font-size: 12px;
  color: var(--txt-muted);
  font-weight: 500;
}

.clean-badge-legal {
  font-size: 12px;
  font-weight: 800;
  color: #047857;
  background: #d1fae5;
  padding: 3px 8px;
  border-radius: 6px;
}

.trainer-card-body {
  padding: 14px 18px;
  flex: 1;
}

.trainer-textarea {
  width: 100%;
  height: 220px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
  background: #ffffff;
  color: var(--txt-main);
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

.trainer-textarea:focus {
  outline: none;
  border-color: #7951e8;
  box-shadow: 0 0 0 3px rgba(121, 81, 232, 0.15);
}

.trainer-textarea.result {
  background: #f8fafc;
  color: #0f172a;
}

.trainer-card-footer {
  padding: 12px 18px;
  background: rgba(0, 0, 0, 0.02);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
}

.btn-clean-action {
  background: linear-gradient(135deg, #7951e8 0%, #6366f1 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(121, 81, 232, 0.3);
  transition: all 0.2s ease;
}

.btn-clean-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(121, 81, 232, 0.4);
}

.btn-copy-action {
  background: #ffffff;
  color: #047857;
  border: 1.5px solid #10b981;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-copy-action:hover {
  background: #10b981;
  color: #ffffff;
}

.btn-copy-action.copied {
  background: #10b981;
  color: #ffffff;
}

/* Detection Summary Results Panel */
.sanitizer-results-panel {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
  animation: slideUpAuth 0.3s ease;
}

.detection-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.detection-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--txt-main);
}

.detection-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
}

.detection-status-badge.safe {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

.detection-status-badge.neutral {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.detection-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.detection-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
}

.detection-chip.highlight {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.legal-guarantee-note {
  background: #f0fdf4;
  border-left: 4px solid #10b981;
  padding: 12px 16px;
  border-radius: 0 10px 10px 0;
  font-size: 13px;
  line-height: 1.55;
  color: #166534;
}

/* Mode Selector */
.trainer-mode-selector {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 16px;
  background: rgba(121, 81, 232, 0.04);
  border-radius: 12px;
  margin-bottom: 12px;
  border: 1px solid rgba(121, 81, 232, 0.12);
}

.mode-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--txt-muted);
}

.mode-pill {
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--txt-main);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mode-pill:hover {
  border-color: #7951e8;
  color: #7951e8;
}

.mode-pill.active {
  background: #7951e8;
  color: #ffffff;
  border-color: #7951e8;
  box-shadow: 0 2px 8px rgba(121, 81, 232, 0.35);
}

/* Detokenizer Module */
.detokenizer-card {
  background: #fbfbfd;
  border: 1.5px dashed #cbd5e1;
  border-radius: 14px;
  padding: 18px;
  margin-top: 18px;
}

.detokenizer-header {
  margin-bottom: 14px;
}

.tokens-table {
  border-collapse: collapse;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  width: 100%;
}

.tokens-table th {
  background: #f1f5f9;
  color: #334155;
  font-weight: 700;
  text-align: left;
  border-bottom: 1px solid var(--border);
  padding: 8px 12px;
  font-size: 13px;
}

.tokens-table td {
  border-bottom: 1px solid #f1f5f9;
  padding: 8px 12px;
  font-size: 13px;
}

.tokens-table tr:hover td {
  background: #f8fafc;
}

