/* ==============================================
   DOCUMATICA V12.0 - CORE STYLES
   Compiled: January 27, 2026
   ============================================== */

/* === FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* === DESIGN TOKENS === */
:root {
  /* Colors - Brand */
  --color-brand-blue: #3b82f6;
  --color-brand-gold: #fbbf24;
  
  /* Colors - Base */
  --color-white: #ffffff;
  
  /* Colors - Slate Scale */
  --color-slate-50: #f8fafc;
  --color-slate-100: #f1f5f9;
  --color-slate-200: #e2e8f0;
  --color-slate-300: #cbd5e1;
  --color-slate-400: #94a3b8;
  --color-slate-500: #64748b;
  --color-slate-600: #475569;
  --color-slate-700: #334155;
  --color-slate-800: #1e293b;
  --color-slate-900: #0f172a;
  
  /* Colors - Semantic */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  --color-info: #3b82f6;
  
  /* Spacing */
  --spacing-0: 0;
  --spacing-1: 0.25rem;
  --spacing-2: 0.5rem;
  --spacing-3: 0.75rem;
  --spacing-4: 1rem;
  --spacing-5: 1.25rem;
  --spacing-6: 1.5rem;
  --spacing-8: 2rem;
  --spacing-10: 2.5rem;
  --spacing-12: 3rem;
  --spacing-16: 4rem;
  --spacing-20: 5rem;
  --spacing-24: 6rem;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-3xl: 2rem;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  
  /* Transitions */
  --transition-spring: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-base: all 0.3s ease;
  --transition-fast: all 0.15s ease;
  
  /* Typography */
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 700;
  --font-weight-black: 900;
  
  --letter-spacing-tight: -0.02em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.1em;
  --letter-spacing-wider: 0.2em;
  --letter-spacing-mega: 0.5em;
}

/* === CSS RESET === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-slate-900);
  background-color: var(--color-slate-50);
  overflow-x: hidden;
}

/* === PAGE TRANSITIONS === */
@supports (view-transition-name: none) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 0.3s;
    animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  
  ::view-transition-old(root) {
    animation-name: fade-out;
  }
  
  ::view-transition-new(root) {
    animation-name: fade-in;
  }
}

@keyframes fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* === PRELOADER === */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--color-slate-900);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease-in-out, visibility 0.6s;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-logo {
  margin-bottom: 1.5rem;
}

.logo-path {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: draw 1.5s ease-out forwards;
}

.logo-path-1 { animation-delay: 0.2s; }
.logo-path-2 { animation-delay: 0.4s; }
.logo-path-3 { animation-delay: 0.6s; }

.ai-dot-anim {
  opacity: 0;
  transform: scale(0);
  animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: 1.8s;
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

@keyframes popIn {
  to { opacity: 1; transform: scale(1); }
}

.preloader-text {
  color: white;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 10px;
  opacity: 0.4;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  text-align: center;
  padding: 0 1.5rem;
}

/* === NAVBAR === */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-slate-200);
  padding: var(--spacing-4) 0;
}

.navbar--dark {
  background: var(--color-slate-900);
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  border-bottom: none;
}

.navbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: var(--spacing-2);
  cursor: pointer;
}

.brand-text {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-transform: lowercase;
  color: var(--color-slate-900);
}

.navbar--dark .brand-text {
  color: var(--color-white);
}

.brand-light {
  font-weight: 300;
  color: var(--color-slate-400);
}

.navbar-menu {
  display: none;
  gap: var(--spacing-6);
  align-items: center;
}

@media (min-width: 1024px) {
  .navbar-menu {
    display: flex;
  }
}

.nav-link {
  font-size: 13px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--color-slate-400);
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none;
}

.nav-link:hover {
  color: var(--color-brand-blue);
  transform: translateY(-1px);
}

.navbar--dark .nav-link {
  color: var(--color-white);
}

.navbar--dark .nav-link:hover {
  color: var(--color-brand-gold);
  transform: translateY(-1px);
}

.navbar-actions {
  display: flex;
  gap: var(--spacing-2);
  align-items: center;
}

@media (max-width: 1023px) {
  .navbar-avatar,
  .navbar-actions .btn {
    display: none;
  }

  .navbar-actions {
    gap: var(--spacing-3);
  }
}

.navbar-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--color-slate-900);
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.navbar--dark .navbar-toggle {
  color: var(--color-white);
}

.navbar-toggle:hover {
  color: var(--color-brand-blue);
  transform: scale(1.1);
}

.navbar--dark .navbar-toggle:hover {
  color: var(--color-brand-gold);
}

@media (min-width: 1024px) {
  .navbar-toggle {
    display: none;
  }
}

/* Search */
.navbar-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 36px;
  height: 36px;
  overflow: hidden;
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.navbar-search.is-expanded {
  width: 240px;
}

@media (max-width: 1023px) {
  .navbar-search.is-expanded {
    width: 200px;
  }
}

.navbar-mobile-actions {
  padding-bottom: var(--spacing-4);
  border-bottom: 1px solid var(--color-slate-200);
  margin-bottom: var(--spacing-4);
}

.navbar--dark .navbar-mobile-actions {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.w-full {
  width: 100%;
}

.navbar-search-btn {
  position: absolute;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-md);
  color: var(--color-slate-700);
  cursor: pointer;
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 2;
}

.navbar-search-btn svg {
  width: 18px;
  height: 18px;
}

.navbar-search-btn:hover {
  border-color: var(--color-slate-300);
  background: var(--color-slate-50);
}

.navbar--dark .navbar-search-btn {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--color-white);
}

.navbar--dark .navbar-search-btn:hover {
  border-color: var(--color-white);
  background: rgba(255, 255, 255, 0.1);
}

.navbar-search-input {
  position: absolute;
  left: 0;
  width: 100%;
  height: 36px;
  padding: 0 var(--spacing-3) 0 44px;
  background: var(--color-white);
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  color: var(--color-slate-900);
  opacity: 0;
  pointer-events: none;
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.navbar-search.is-expanded .navbar-search-input {
  opacity: 1;
  pointer-events: auto;
}

.navbar-search-input:focus {
  outline: none;
  border-color: var(--color-brand-blue);
}

.navbar-search-input::placeholder {
  color: var(--color-slate-400);
}

.navbar--dark .navbar-search-input {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--color-white);
}

.navbar--dark .navbar-search-input:focus {
  border-color: var(--color-white);
  background: rgba(255, 255, 255, 0.15);
}

/* Avatar */
.navbar-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--color-slate-100);
  color: var(--color-slate-600);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.navbar-avatar:hover {
  background: var(--color-slate-200);
  transform: translateY(-2px);
}

.navbar--dark .navbar-avatar {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.navbar--dark .navbar-avatar:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--color-white);
}

.navbar-toggle-icon {
  width: 1.5rem;
  height: 1.5rem;
  position: relative;
}

.navbar-toggle-icon span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: currentColor;
  position: absolute;
  left: 0;
  transition: all 0.3s;
}

.navbar-toggle-icon span:nth-child(1) {
  top: 0;
}

.navbar-toggle-icon span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.navbar-toggle-icon span:nth-child(3) {
  bottom: 0;
}

/* Animated hamburger to X */
.navbar-toggle.active .navbar-toggle-icon span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.navbar-toggle.active .navbar-toggle-icon span:nth-child(2) {
  opacity: 0;
}

.navbar-toggle.active .navbar-toggle-icon span:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

/* Mobile Menu */
.navbar-mobile-menu {
  display: none;
  position: fixed;
  top: 73px;
  left: 0;
  right: 0;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-slate-200);
  padding: var(--spacing-6);
  max-height: calc(100vh - 73px);
  overflow-y: auto;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  z-index: 40;
}

.navbar--dark + .navbar-mobile-menu,
.navbar--dark .navbar-mobile-menu {
  background: var(--color-slate-900);
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-demo .navbar-mobile-menu {
  position: relative;
  top: 0;
  box-shadow: none;
  border-top: 1px solid var(--color-slate-200);
  max-height: none;
}

.navbar-demo .navbar--dark + .navbar-mobile-menu,
.navbar-demo .navbar--dark .navbar-mobile-menu {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: none;
}

.navbar-mobile-menu.active {
  display: block;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.navbar-mobile-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-4);
}

.navbar-mobile-nav-item {
  border-bottom: 1px solid var(--color-slate-200);
}

.navbar--dark + .navbar-mobile-menu .navbar-mobile-nav-item,
.navbar--dark .navbar-mobile-menu .navbar-mobile-nav-item {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.navbar-mobile-nav-link {
  display: block;
  font-size: 13px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--color-slate-900);
  text-decoration: none;
  padding: var(--spacing-4) 0;
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.navbar--dark + .navbar-mobile-menu .navbar-mobile-nav-link,
.navbar--dark .navbar-mobile-menu .navbar-mobile-nav-link {
  color: var(--color-white);
}

.navbar-mobile-nav-link:hover,
.navbar-mobile-nav-link.active {
  color: var(--color-brand-blue);
  padding-left: var(--spacing-4);
}

.navbar--dark + .navbar-mobile-menu .navbar-mobile-nav-link:hover,
.navbar--dark + .navbar-mobile-menu .navbar-mobile-nav-link.active,
.navbar--dark .navbar-mobile-menu .navbar-mobile-nav-link:hover,
.navbar--dark .navbar-mobile-menu .navbar-mobile-nav-link.active {
  color: var(--color-brand-gold);
}

/* Mobile submenu toggle */
.navbar-mobile-nav-item--has-submenu {
  position: relative;
}

.navbar-mobile-nav-toggle {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-mobile-nav-toggle svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.navbar-mobile-nav-toggle.active svg {
  transform: rotate(180deg);
}

.navbar-mobile-submenu {
  list-style: none;
  margin: 0;
  padding: 0;
  padding-left: var(--spacing-4);
  max-height: 0;
  overflow: hidden;
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.navbar-mobile-submenu.active {
  max-height: 500px;
  padding-top: var(--spacing-2);
  padding-bottom: var(--spacing-2);
}

.navbar-mobile-submenu-item {
  border-bottom: 1px solid var(--color-slate-100);
}

.navbar--dark + .navbar-mobile-menu .navbar-mobile-submenu-item,
.navbar--dark .navbar-mobile-menu .navbar-mobile-submenu-item {
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

.navbar-mobile-submenu-link {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-slate-600);
  text-decoration: none;
  padding: var(--spacing-3) 0;
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.navbar--dark + .navbar-mobile-menu .navbar-mobile-submenu-link,
.navbar--dark .navbar-mobile-menu .navbar-mobile-submenu-link {
  color: var(--color-slate-400);
}

.navbar-mobile-submenu-link:hover {
  color: var(--color-brand-blue);
  padding-left: var(--spacing-2);
}

.navbar--dark + .navbar-mobile-menu .navbar-mobile-submenu-link:hover,
.navbar--dark .navbar-mobile-menu .navbar-mobile-submenu-link:hover {
  color: var(--color-brand-gold);
}

/* === NAVBAR DROPDOWN === */
.navbar-dropdown {
  position: relative;
}

.navbar-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: var(--spacing-1);
}

.navbar-dropdown-trigger svg {
  width: 12px;
  height: 12px;
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.navbar-dropdown:hover .navbar-dropdown-trigger svg {
  transform: rotate(180deg);
}

.navbar-dropdown-menu {
  position: absolute;
  top: calc(100% + var(--spacing-4));
  left: 0;
  min-width: 240px;
  background: var(--color-white);
  border: 1px solid var(--color-slate-200);
  border-radius: var(--spacing-4);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  padding: var(--spacing-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 100;
}

.navbar--dark .navbar-dropdown-menu {
  background: var(--color-slate-900);
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.navbar-dropdown:hover .navbar-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.navbar-dropdown-item {
  display: block;
  padding: var(--spacing-3);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-slate-700);
  text-decoration: none;
  border-radius: var(--spacing-2);
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.navbar-dropdown-item:hover {
  background: var(--color-slate-50);
  color: var(--color-brand-blue);
  transform: translateX(4px);
}

.navbar--dark .navbar-dropdown-item {
  color: var(--color-white);
}

.navbar--dark .navbar-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-brand-gold);
}

.navbar-dropdown-item--active {
  color: var(--color-brand-blue);
  font-weight: 600;
}

.navbar--dark .navbar-dropdown-item--active {
  color: var(--color-brand-gold);
  font-weight: 600;
}

/* Nested dropdown (submenu) */
.navbar-dropdown-item--has-submenu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.navbar-dropdown-item--has-submenu svg {
  width: 10px;
  height: 10px;
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.navbar-dropdown-item--has-submenu:hover svg {
  transform: translateX(2px);
}

.navbar-dropdown-submenu {
  position: absolute;
  top: 0;
  left: calc(100% + var(--spacing-2));
  min-width: 220px;
  background: var(--color-white);
  border: 1px solid var(--color-slate-200);
  border-radius: var(--spacing-4);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  padding: var(--spacing-2);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-12px);
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 110;
}

.navbar--dark .navbar-dropdown-submenu {
  background: var(--color-slate-900);
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.navbar-dropdown-item--has-submenu:hover > .navbar-dropdown-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* Level 3 submenu */
.navbar-dropdown-submenu .navbar-dropdown-submenu {
  z-index: 120;
}

/* Level 4 submenu */
.navbar-dropdown-submenu .navbar-dropdown-submenu .navbar-dropdown-submenu {
  z-index: 130;
}

/* Mobile: hide dropdown menus (keep triggers visible as regular links) */
@media (max-width: 1023px) {
  .navbar-dropdown-menu,
  .navbar-dropdown-submenu,
  .navbar-mega-menu {
    display: none !important;
  }
  
  .navbar-dropdown-trigger svg,
  .navbar-mega-trigger svg {
    display: none;
  }
}

/* === NAVBAR MEGA MENU === */
.navbar-mega {
  position: relative;
}

.navbar-mega-trigger {
  display: flex;
  align-items: center;
  gap: var(--spacing-1);
}

.navbar-mega-trigger svg {
  width: 12px;
  height: 12px;
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.navbar-mega:hover .navbar-mega-trigger svg {
  transform: rotate(180deg);
}

.navbar-mega-menu {
  position: absolute;
  top: calc(100% + var(--spacing-4));
  left: 50%;
  transform: translateX(-50%) translateY(-12px);
  width: 900px;
  max-width: 90vw;
  background: var(--color-white);
  border: 1px solid var(--color-slate-200);
  border-radius: var(--spacing-4);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  padding: var(--spacing-8);
  opacity: 0;
  visibility: hidden;
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 100;
}

.navbar--dark .navbar-mega-menu {
  background: var(--color-slate-900);
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.navbar-mega:hover .navbar-mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.navbar-mega-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-8);
}

@media (max-width: 767px) {
  .navbar-mega-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-6);
  }
}

.navbar-mega-section {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-3);
}

.navbar-mega-title {
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-slate-400);
  margin-bottom: var(--spacing-2);
}

.navbar--dark .navbar-mega-title {
  color: var(--color-brand-gold);
}

.navbar-mega-link {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-3);
  padding: var(--spacing-3);
  border-radius: var(--spacing-2);
  text-decoration: none;
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.navbar-mega-link:hover {
  background: var(--color-slate-50);
  transform: translateX(4px);
}

.navbar--dark .navbar-mega-link:hover {
  background: rgba(255, 255, 255, 0.1);
}

.navbar-mega-link-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-slate-100);
  border-radius: var(--spacing-2);
  color: var(--color-brand-blue);
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.navbar--dark .navbar-mega-link-icon {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-brand-gold);
}

.navbar-mega-link:hover .navbar-mega-link-icon {
  transform: scale(1.1) translateY(-2px);
}

.navbar-mega-link-icon svg {
  width: 20px;
  height: 20px;
}

.navbar-mega-link-content {
  flex: 1;
}

.navbar-mega-link-title {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-slate-900);
  margin-bottom: var(--spacing-1);
}

.navbar--dark .navbar-mega-link-title {
  color: var(--color-white);
}

.navbar-mega-link-desc {
  font-size: 10px;
  color: var(--color-slate-500);
  line-height: 1.5;
}

.navbar--dark .navbar-mega-link-desc {
  color: var(--color-slate-400);
}

/* Mobile responsive mega menu grid */
@media (max-width: 767px) {
  .navbar-mega-grid {
    grid-template-columns: 1fr;
  }
}

/* === CONTAINER === */
.container {
  width: 100%;
  max-width: 1536px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 768px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* === MAIN CONTENT === */
.main-content {
  max-width: 1536px;
  margin: 0 auto;
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .main-content {
    padding: 4rem 0;
  }
}

/* === SECTION === */
.section {
  margin-bottom: 8rem;
  text-align: left;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  margin-bottom: 3rem;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 2rem;
}

.bg-surface {
  background-color: var(--color-white);
  padding: 4rem 0;
}

/* === GRID === */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2-col {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid-2-col {
    grid-template-columns: repeat(2, 1fr);
  }
}

.grid-3-col {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid-3-col {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-3-col {
    grid-template-columns: repeat(3, 1fr);
  }
}

.grid-4-col {
  grid-template-columns: 1fr;
}

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

@media (min-width: 1024px) {
  .grid-4-col {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gap-small {
  gap: 1rem;
}

.gap-medium {
  gap: 1.5rem;
}

.gap-large {
  gap: 3rem;
}

/* === MASONRY GRID (Pinterest-style) === */
.masonry-grid {
  column-count: 3;
  column-gap: 1.5rem;
}

@media (max-width: 1023px) {
  .masonry-grid {
    column-count: 2;
  }
}

@media (max-width: 767px) {
  .masonry-grid {
    column-count: 1;
  }
}

/* === SIDEBAR LAYOUTS === */
.sidebar-layout {
  display: flex;
  gap: 0;
  min-height: 100vh;
  position: relative;
}

.sidebar {
  width: 280px;
  background: white;
  border-right: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar-left {
  order: -1;
}

.sidebar-right {
  order: 1;
  border-right: none;
  border-left: 1px solid #e2e8f0;
}

.sidebar-layout-dual .sidebar-main-content {
  flex: 1;
  min-width: 0;
}

.sidebar-main-content {
  flex: 1;
  padding: 2rem;
  background: var(--color-slate-50);
  overflow-y: auto;
}

.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  position: sticky;
  top: 0;
  z-index: 10;
}

.sidebar-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-slate-900);
  margin: 0;
}

.sidebar-close-btn {
  display: none;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  border: none;
  background: var(--color-slate-100);
  color: var(--color-slate-600);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sidebar-close-btn:hover {
  background: var(--color-slate-200);
  transform: scale(1.1);
}

.sidebar-content {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
}

.sidebar-section {
  margin-bottom: 2rem;
}

.sidebar-section h3 {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-slate-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.75rem 0;
  padding: 0 0.5rem;
}

.sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-nav li {
  margin-bottom: 0.25rem;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 0.75rem;
  color: var(--color-slate-600);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sidebar-nav a:hover {
  background: var(--color-slate-100);
  color: var(--color-slate-900);
  transform: translateY(-2px);
}

.sidebar-nav a.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.sidebar-nav a.active:hover {
  transform: translateY(-2px) scale(1.02);
}

.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-list-item {
  padding: 0.75rem;
  border-radius: 0.75rem;
  margin-bottom: 0.5rem;
  background: white;
  border: 1px solid #e2e8f0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
}

.sidebar-list-item:hover {
  border-color: var(--color-slate-300);
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.sidebar-list-item-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-slate-900);
  margin: 0 0 0.25rem 0;
}

.sidebar-list-item-meta {
  font-size: 0.75rem;
  color: var(--color-slate-500);
}

.sidebar-toggle-btn {
  display: none;
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px -5px rgba(102, 126, 234, 0.5);
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sidebar-toggle-btn:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 20px 35px -5px rgba(102, 126, 234, 0.6);
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar-backdrop.active {
  opacity: 1;
}

/* Mobile Sidebar Behavior */
@media (max-width: 1023px) {
  .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    height: 100vh;
    z-index: 999;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
  }

  .sidebar-right {
    transform: translateX(100%);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .sidebar-left {
    left: 0;
  }

  .sidebar-right {
    right: 0;
  }

  .sidebar-main-content {
    padding: 1rem;
  }

  .sidebar-toggle-btn {
    display: flex;
  }

  .sidebar-close-btn {
    display: flex;
  }

  .sidebar-backdrop {
    display: block;
  }

  .sidebar-layout-dual .sidebar-toggle-btn {
    right: 5rem;
  }

  .sidebar-layout-dual .sidebar-toggle-btn.toggle-right {
    right: 2rem;
  }
}

/* Sidebar Demo Wrapper */
.sidebar-demo-wrapper {
  position: relative;
  margin-bottom: 2rem;
}

/* Sidebar Component Classes */
.sidebar-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-slate-900);
  margin: 0;
}

.sidebar-section-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-slate-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.75rem 0;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 0.75rem;
  color: var(--color-slate-600);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: transparent;
  border: none;
  width: 100%;
  cursor: pointer;
  text-align: left;
}

.sidebar-nav-item:hover {
  background: var(--color-slate-100);
  color: var(--color-slate-900);
  transform: translateY(-2px);
}

.sidebar-nav-item.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.sidebar-nav-item.active:hover {
  transform: translateY(-2px) scale(1.02);
}

.sidebar-close {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  border: none;
  background: var(--color-slate-100);
  color: var(--color-slate-600);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sidebar-close:hover {
  background: var(--color-slate-200);
  transform: scale(1.1);
}

@media (max-width: 1023px) {
  .sidebar-close {
    display: flex;
  }
}

/* Typography Utility Classes */
.page-intro {
  max-width: 800px;
}

.intro-text {
  font-size: 1.125rem;
  color: var(--color-slate-500);
  line-height: 1.75;
  margin-top: 1rem;
}

.subsection-title {
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
}

.subsection-text {
  color: var(--color-slate-500);
  margin-bottom: 2rem;
  line-height: 1.75;
}

.content-title {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

.content-text {
  color: var(--color-slate-500);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.code-block {
  background: var(--color-slate-900);
  color: var(--color-slate-200);
  padding: 1.5rem;
  border-radius: 0.75rem;
  overflow-x: auto;
  font-size: 0.875rem;
  margin-top: 2rem;
  font-family: 'Consolas', 'Monaco', monospace;
}

.info-card {
  border-left: 4px solid #3b82f6;
}

.info-list {
  list-style-type: none;
  padding-left: 0;
  color: var(--color-slate-500);
  line-height: 2;
}

.info-list li {
  margin-bottom: 0.5rem;
}

.info-list strong {
  color: var(--color-slate-900);
  font-weight: 600;
}

.toggle-buttons-wrapper {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.section-pt-large {
  padding-top: 4rem;
}

.stat-card-gradient-blue {
  background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
}

.stat-card-gradient-green {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* ==============================================
   TYPOGRAPHY SYSTEM
   ============================================== */

/* Headings */
.type-h1 {
  font-size: 4.5rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}

.type-h2 {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
}

.type-h3 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 0;
}

.type-h4 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.4;
  margin: 0;
}

.type-h5 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.5;
  margin: 0;
}

.type-h6 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.5;
  margin: 0;
}

/* Display Text (Hero sizes) */
.type-display-xl {
  font-size: 6rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  line-height: 1;
  margin: 0;
}

.type-display-lg {
  font-size: 4.5rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1.1;
  margin: 0;
}

.type-display-md {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
}

/* Body Text */
.type-body-lg {
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.75;
  margin: 0;
}

.type-body-base {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.625;
  margin: 0;
}

.type-body-sm {
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
  margin: 0;
}

.type-body-xs {
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.5;
  margin: 0;
}

/* Labels & Captions */
.type-label-lg {
  font-size: 0.875rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0;
}

.type-label-md {
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 0;
}

.type-label-sm {
  font-size: 0.625rem;
  font-weight: 900;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin: 0;
}

.type-caption {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--color-slate-500);
  margin: 0;
}

.type-overline {
  font-size: 0.6875rem;
  font-weight: 900;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--color-slate-400);
  margin: 0;
}

/* Text Styles */
.type-strong {
  font-weight: 700;
}

.type-emphasis {
  font-style: italic;
}

.type-underline {
  text-decoration: underline;
}

.type-strikethrough {
  text-decoration: line-through;
}

.type-link {
  color: var(--color-brand-blue);
  text-decoration: underline;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.type-link:hover {
  color: #1d4ed8;
  transform: translateY(-1px);
}

.type-highlight {
  background: rgba(251, 191, 36, 0.2);
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
}

/* Typography Showcase Components */
.type-box {
  padding: 3rem;
  background: white;
  border-radius: 1.5rem;
  border: 1px solid #e2e8f0;
  margin-bottom: 2rem;
}

.font-display {
  font-size: 4rem;
  font-weight: 900;
  color: var(--color-slate-900);
  margin: 0 0 1rem 0;
}

.font-meta {
  font-size: 0.875rem;
  color: var(--color-slate-500);
  margin: 0 0 2rem 0;
}

.font-alphabet {
  font-size: 1.5rem;
  color: var(--color-slate-700);
  margin: 0.5rem 0;
  letter-spacing: 0.05em;
}

.font-alphabet--lower {
  color: var(--color-slate-500);
}

.weights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
}

.weight-item {
  padding: 2rem;
  background: white;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.weight-sample {
  font-size: 3rem;
  color: var(--color-slate-900);
  margin-bottom: 0.5rem;
}

.weight-sample--regular { font-weight: 400; }
.weight-sample--medium { font-weight: 500; }
.weight-sample--bold { font-weight: 700; }
.weight-sample--black { font-weight: 900; }

.weight-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-slate-900);
  margin-bottom: 0.25rem;
}

.weight-value {
  font-size: 0.75rem;
  color: var(--color-slate-500);
}

.headings-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.heading-item {
  padding: 1.5rem;
  background: white;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
}

.heading-meta {
  display: block;
  font-size: 0.75rem;
  font-family: 'Consolas', monospace;
  color: var(--color-slate-400);
  margin-bottom: 0.75rem;
}

.display-box {
  padding: 2rem;
  background: white;
  border-radius: 1.5rem;
  border: 1px solid #e2e8f0;
  margin-bottom: 1rem;
  overflow: hidden;
}

.display-meta {
  display: block;
  font-size: 0.75rem;
  font-family: 'Consolas', monospace;
  color: var(--color-slate-400);
  margin-bottom: 1rem;
}

.body-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.body-item {
  padding: 1.5rem;
  background: white;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
}

.body-meta {
  display: block;
  font-size: 0.75rem;
  font-family: 'Consolas', monospace;
  color: var(--color-slate-400);
  margin-bottom: 0.75rem;
}

.labels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.label-item {
  padding: 1.5rem;
  background: white;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
}

.label-meta {
  display: block;
  font-size: 0.75rem;
  font-family: 'Consolas', monospace;
  color: var(--color-slate-400);
  margin-bottom: 0.75rem;
}

.styles-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.style-item {
  padding: 1.5rem;
  background: white;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.style-demo {
  font-size: 1rem;
  color: var(--color-slate-900);
}

.style-code {
  font-size: 0.75rem;
  font-family: 'Consolas', monospace;
  color: var(--color-slate-500);
  background: var(--color-slate-50);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
}

@media (max-width: 767px) {
  .type-h1 { font-size: 2.5rem; }
  .type-h2 { font-size: 2rem; }
  .type-h3 { font-size: 1.75rem; }
  .type-display-xl { font-size: 3rem; }
  .type-display-lg { font-size: 2.5rem; }
  .type-display-md { font-size: 2rem; }
  .font-display { font-size: 2.5rem; }
  .font-alphabet { font-size: 1.125rem; }
  .weight-sample { font-size: 2rem; }
  .weights-grid { grid-template-columns: repeat(2, 1fr); }
  .labels-grid { grid-template-columns: 1fr; }
}

@media (min-width: 1024px) {
  .type-h1 { font-size: 5rem; }
  .type-display-xl { font-size: 7rem; }
}

@media (min-width: 1920px) {
  .type-h1 { font-size: 6rem; }
  .type-display-xl { font-size: 8rem; }
}

/* ==============================================
   TOKENS SHOWCASE
   ============================================== */

.token-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.token-card {
  padding: 1.5rem;
  background: white;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.token-card:hover {
  border-color: var(--color-slate-300);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.token-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-slate-900);
  margin-bottom: 0.5rem;
}

.token-value {
  font-size: 0.75rem;
  font-family: 'Consolas', monospace;
  color: var(--color-slate-500);
  background: var(--color-slate-50);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  display: inline-block;
}

/* Color Swatches */
.color-swatch-large {
  width: 100%;
  height: 100px;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
}

.color-swatch-small {
  width: 60px;
  height: 60px;
  border-radius: 0.5rem;
  border: 2px solid #e2e8f0;
  flex-shrink: 0;
}

.color-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.color-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background: white;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.color-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.color-info {
  flex: 1;
}

.color-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-slate-900);
  margin-bottom: 0.25rem;
}

.color-hex {
  font-size: 0.75rem;
  font-family: 'Consolas', monospace;
  color: var(--color-slate-500);
}

/* Spacing Visualization */
.spacing-demo {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: white;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  margin-bottom: 1rem;
}

.spacing-box {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 0.25rem;
  flex-shrink: 0;
  height: 40px;
}

.spacing-box--1 {
  width: 4px;
}

.spacing-box--2 {
  width: 8px;
}

.spacing-box--3 {
  width: 12px;
}

.spacing-box--4 {
  width: 16px;
}

.spacing-box--6 {
  width: 24px;
}

.spacing-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-slate-900);
}

.spacing-value {
  font-size: 0.75rem;
  font-family: 'Consolas', monospace;
  color: var(--color-slate-500);
}

/* Radius Showcase */
.radius-demo {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 900;
  font-size: 0.875rem;
  text-align: center;
}

/* Shadow Showcase */
.shadow-demo {
  width: 100%;
  height: 100px;
  background: white;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--color-slate-900);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.shadow-demo:hover {
  transform: translateY(-4px);
}

/* === COLOR SHOWCASE === */
.color-showcase-card {
  background: white;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  transition: all 0.3s;
}

.color-showcase-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

.color-info {
  padding: 1.5rem;
}

.logo-display {
  transform: scale(1.5);
  margin-bottom: 3rem;
  transition: transform 0.7s;
}

.color-showcase-card:hover .logo-display {
  transform: scale(1.6);
}

.logo-text-display {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.4em;
  text-transform: lowercase;
  color: var(--color-slate-900);
}

.color-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.color-box {
  width: 100%;
  height: 12rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.color-box:hover {
  opacity: 0.95;
}

.color-box--success {
  background: var(--color-success);
}

.color-box--warning {
  background: var(--color-warning);
}

.color-box--error {
  background: var(--color-error);
}

.color-box--info {
  background: var(--color-brand-blue);
}

.color-label {
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 900;
  opacity: 0.6;
  margin-bottom: 0.25rem;
  display: block;
}

.color-blue {
  background-color: var(--color-brand-blue);
  color: white;
}

.color-gold {
  background-color: var(--color-brand-gold);
  color: var(--color-slate-900);
}

.color-dark {
  background-color: var(--color-slate-800);
  color: white;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.25);
}

.color-light {
  background-color: var(--color-slate-200);
  color: var(--color-slate-600);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

/* Color Swatch Grid */
.color-swatch {
  padding: 2rem;
  border-radius: 1rem;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.color-swatch:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

/* Color Swatch Background Modifiers */
.color-swatch--slate-50 {
  background: var(--color-slate-50);
}

.color-swatch--slate-100 {
  background: var(--color-slate-100);
}

.color-swatch--slate-200 {
  background: var(--color-slate-200);
}

.color-swatch--slate-300 {
  background: var(--color-slate-300);
}

.color-swatch--slate-400 {
  background: var(--color-slate-400);
}

.color-swatch--slate-500 {
  background: var(--color-slate-500);
}

.color-swatch--slate-600 {
  background: var(--color-slate-600);
}

.color-swatch--slate-700 {
  background: var(--color-slate-700);
}

.color-swatch--slate-800 {
  background: var(--color-slate-800);
}

.color-swatch--slate-900 {
  background: var(--color-slate-900);
}

.color-swatch-name {
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-slate-900);
}

.color-swatch--slate-400 .color-swatch-name,
.color-swatch--slate-500 .color-swatch-name,
.color-swatch--slate-600 .color-swatch-name,
.color-swatch--slate-700 .color-swatch-name,
.color-swatch--slate-800 .color-swatch-name,
.color-swatch--slate-900 .color-swatch-name {
  color: white;
}

.color-swatch-code {
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-slate-500);
  margin-top: 0.5rem;
}

.color-swatch--slate-400 .color-swatch-code,
.color-swatch--slate-500 .color-swatch-code,
.color-swatch--slate-600 .color-swatch-code,
.color-swatch--slate-700 .color-swatch-code,
.color-swatch--slate-800 .color-swatch-code,
.color-swatch--slate-900 .color-swatch-code {
  color: white;
}

/* Color Info */
.color-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.color-name {
  font-size: 1.25rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-slate-900);
  margin: 0;
}

.color-code {
  font-family: 'Courier New', monospace;
  font-weight: 600;
  color: var(--color-slate-500);
  font-size: 1rem;
}

.color-usage {
  color: var(--color-slate-500);
  font-size: 0.875rem;
  line-height: 1.6;
}

.color-var {
  background: var(--color-slate-100);
  color: var(--color-brand-blue);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  display: inline-block;
  margin-top: 0.5rem;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-weight: 900;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  padding: 1.25rem 2.5rem;
  border-radius: 1.5rem;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  user-select: none;
  border: none;
  outline: none;
}

.btn:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  filter: grayscale(1);
}

/* Primary Button */
.btn-primary {
  background-color: var(--color-brand-blue);
  color: white;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 10px 15px -3px rgba(59, 130, 246, 0.3);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(1px) scale(0.96);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

/* Gold Button (AI Action) */
.btn-gold {
  background-color: var(--color-brand-gold);
  color: var(--color-slate-900);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-gold:hover:not(:disabled) {
  transform: translateY(-2px);
  background-color: var(--color-warning);
  box-shadow: 0 0 25px rgba(251, 191, 36, 0.4), 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.btn-gold:active:not(:disabled) {
  transform: translateY(1px) scale(0.96);
}

/* Outline Button */
.btn-outline {
  background-color: transparent;
  color: var(--color-slate-900);
  border: 2px solid #0f172a;
  box-shadow: none;
}

.btn-outline:hover:not(:disabled) {
  transform: translateY(-2px);
  background-color: var(--color-slate-900);
  color: white;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.btn-outline:active:not(:disabled) {
  transform: translateY(1px) scale(0.96);
}

/* Ghost Button */
.btn-ghost {
  background-color: var(--color-slate-100);
  color: var(--color-slate-900);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.btn-ghost:hover:not(:disabled) {
  transform: translateY(-2px);
  background-color: var(--color-slate-200);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-ghost:active:not(:disabled) {
  transform: translateY(1px) scale(0.96);
}

/* Link Button */
.btn-link {
  background: none;
  color: var(--color-slate-900);
  padding: 0;
  box-shadow: none;
  font-weight: 900;
  letter-spacing: 0.3em;
}

.btn-link:hover:not(:disabled) {
  color: var(--color-brand-blue);
}

.btn-link:hover:not(:disabled) svg {
  transform: translateX(8px);
}

.btn-link svg {
  transition: transform 0.3s;
}

.btn-link:active:not(:disabled) {
  transform: scale(0.96);
}

/* Button Sizes */
.btn-sm {
  padding: 0.75rem 1.5rem;
  font-size: 9px;
  border-radius: 0.75rem;
}

.btn-lg {
  padding: 1.5rem 3rem;
  font-size: 12px;
  border-radius: 1.5rem;
}

.btn-massive {
  padding: 2rem 4rem;
  border-radius: 2.5rem;
  font-size: 12px;
  letter-spacing: 0.3em;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* === SHOWCASE === */
.button-showcase {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.showcase-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.showcase-subtitle {
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-slate-400);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* === FORMS === */
.form-showcase {
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-label {
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-slate-400);
  margin-left: 0.5rem;
}

.label {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-slate-900);
  margin-bottom: 0.375rem;
}

.input {
  width: 100%;
  padding: 1rem 1.5rem;
  background: var(--color-slate-50);
  border: 1px solid #e2e8f0;
  border-radius: 1.5rem;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-slate-900);
  transition: all 0.3s;
}

.input:focus {
  outline: none;
  border-color: var(--color-brand-blue);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.textarea {
  width: 100%;
  padding: 1rem 1.5rem;
  background: var(--color-slate-50);
  border: 1px solid #e2e8f0;
  border-radius: 1.5rem;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-slate-900);
  font-family: inherit;
  resize: vertical;
  transition: all 0.3s;
}

.textarea:focus {
  outline: none;
  border-color: var(--color-brand-blue);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.input-ai-wrapper {
  position: relative;
}

.ai-indicator {
  position: absolute;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  background: var(--color-brand-gold);
  border-radius: 50%;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  box-shadow: 0 0 15px rgba(251, 191, 36, 1);
  z-index: 10;
}

.input-ai {
  padding-left: 4rem;
  background: var(--color-slate-900);
  color: white;
  border: none;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.input-ai::placeholder {
  color: var(--color-slate-500);
}

.input-ai:focus {
  box-shadow: 0 0 0 8px rgba(59, 130, 246, 0.1);
}

/* Toggle */
.toggle-label {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.toggle-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.toggle-switch {
  position: relative;
  width: 3.5rem;
  height: 2rem;
  background-color: var(--color-slate-200);
  border-radius: 9999px;
  transition: all 0.3s;
  box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 0.25rem;
  left: 0.25rem;
  width: 1.5rem;
  height: 1.5rem;
  background-color: white;
  border-radius: 9999px;
  transition: all 0.3s;
}

.toggle-input:checked + .toggle-switch {
  background-color: var(--color-brand-blue);
}

.toggle-input:checked + .toggle-switch::after {
  transform: translateX(1.5rem);
}

.toggle-text {
  margin-left: 1rem;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-slate-600);
  transition: color 0.3s;
}

.toggle-label:hover .toggle-text {
  color: var(--color-brand-blue);
}

/* Input States */
.input--error {
  border-color: var(--color-error);
}

.input--success {
  border-color: var(--color-success);
}

.input-error {
  display: block;
  margin-top: 0.5rem;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-error);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.input-success {
  display: block;
  margin-top: 0.5rem;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-success);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: var(--color-slate-100);
}

/* Checkbox */
.checkbox {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
}

.checkbox + .checkbox {
  margin-left: 1.5rem;
}

.checkbox--block {
  display: flex;
}

.checkbox--block + .checkbox--block {
  margin-left: 0;
}

.checkbox__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox__box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  background-color: white;
  border: 2px solid #e2e8f0;
  border-radius: 0.375rem;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.checkbox__icon {
  width: 14px;
  height: 14px;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: white;
}

.checkbox__input:checked + .checkbox__box {
  background-color: var(--color-brand-blue);
  border-color: var(--color-brand-blue);
}

.checkbox__input:checked + .checkbox__box .checkbox__icon {
  opacity: 1;
  transform: scale(1);
}

.checkbox:hover .checkbox__box {
  border-color: var(--color-brand-blue);
}

.checkbox__input:focus-visible + .checkbox__box {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.checkbox__input:disabled + .checkbox__box {
  opacity: 0.5;
  cursor: not-allowed;
}

.checkbox--error .checkbox__box {
  border-color: var(--color-error);
}

.checkbox--success .checkbox__box {
  border-color: var(--color-success);
}

.checkbox-error {
  display: block;
  margin-top: 0.5rem;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-error);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.checkbox-success {
  display: block;
  margin-top: 0.5rem;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-success);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.checkbox__label {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-slate-900);
}

/* Radio */
.radio {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
}

.radio__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio__circle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  background-color: white;
  border: 2px solid #e2e8f0;
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.radio__circle::after {
  content: '';
  width: 10px;
  height: 10px;
  background-color: white;
  border-radius: 50%;
  transform: scale(0);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.radio__input:checked + .radio__circle {
  background-color: var(--color-brand-blue);
  border-color: var(--color-brand-blue);
}

.radio__input:checked + .radio__circle::after {
  transform: scale(1);
}

.radio:hover .radio__circle {
  border-color: var(--color-brand-blue);
}

.radio__input:focus-visible + .radio__circle {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.radio__input:disabled + .radio__circle {
  opacity: 0.5;
  cursor: not-allowed;
}

.radio--error .radio__circle {
  border-color: var(--color-error);
}

.radio--success .radio__circle {
  border-color: var(--color-success);
}

.radio-error {
  display: block;
  margin-top: 0.5rem;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-error);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.radio-success {
  display: block;
  margin-top: 0.5rem;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-success);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.radio__label {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-slate-900);
}

/* Slider / Range */
.slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  background: var(--color-slate-200);
  border-radius: 100px;
  outline: none;
  cursor: pointer;
  transition: all 0.3s;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  background: var(--color-brand-blue);
  border-radius: 50%;
  cursor: grab;
  border: 4px solid white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  background: var(--color-brand-blue);
  border-radius: 50%;
  cursor: grab;
  border: 4px solid white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.slider:hover::-webkit-slider-thumb {
  transform: scale(1.15);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2), 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.slider:hover::-moz-range-thumb {
  transform: scale(1.15);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2), 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.slider:active::-webkit-slider-thumb {
  cursor: grabbing;
}

.slider:active::-moz-range-thumb {
  cursor: grabbing;
}

.slider:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.slider:disabled::-webkit-slider-thumb {
  cursor: not-allowed;
}

.slider:disabled::-moz-range-thumb {
  cursor: not-allowed;
}

/* Slider Size Variants */
.slider--sm {
  height: 4px;
}

.slider--sm::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  border-width: 3px;
}

.slider--sm::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-width: 3px;
}

.slider--lg {
  height: 12px;
}

.slider--lg::-webkit-slider-thumb {
  width: 28px;
  height: 28px;
  border-width: 5px;
}

.slider--lg::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-width: 5px;
}

/* Slider Color Variants */
.slider--primary::-webkit-slider-thumb {
  background: var(--color-brand-blue);
}

.slider--primary::-moz-range-thumb {
  background: var(--color-brand-blue);
}

.slider--primary:hover::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2), 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.slider--primary:hover::-moz-range-thumb {
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2), 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.slider--gold::-webkit-slider-thumb {
  background: var(--color-brand-gold);
}

.slider--gold::-moz-range-thumb {
  background: var(--color-brand-gold);
}

.slider--gold:hover::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.2), 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.slider--gold:hover::-moz-range-thumb {
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.2), 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.slider--success::-webkit-slider-thumb {
  background: var(--color-success);
}

.slider--success::-moz-range-thumb {
  background: var(--color-success);
}

.slider--success:hover::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2), 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.slider--success:hover::-moz-range-thumb {
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2), 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.slider--warning::-webkit-slider-thumb {
  background: var(--color-warning);
}

.slider--warning::-moz-range-thumb {
  background: var(--color-warning);
}

.slider--warning:hover::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2), 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.slider--warning:hover::-moz-range-thumb {
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2), 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.slider--danger::-webkit-slider-thumb {
  background: var(--color-error);
}

.slider--danger::-moz-range-thumb {
  background: var(--color-error);
}

.slider--danger:hover::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.2), 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.slider--danger:hover::-moz-range-thumb {
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.2), 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Slider Value Display */
.slider-value {
  display: block;
  margin-top: var(--spacing-2);
  font-size: 14px;
  color: var(--color-slate-500);
  text-align: right;
}

.slider-value--highlight {
  font-weight: 700;
  color: var(--color-brand-blue);
  font-size: 16px;
}

/* Slider with Labels */
.slider-wrap--labeled {
  display: flex;
  align-items: center;
  gap: var(--spacing-3);
}

.slider-min,
.slider-max {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-slate-400);
  white-space: nowrap;
  min-width: 3rem;
}

.slider-min {
  text-align: right;
}

.slider-max {
  text-align: left;
}

/* Range Slider (Dual Handle) */
.range-slider {
  position: relative;
  height: 8px;
  margin: var(--spacing-4) 0;
}

.range-slider__track {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: var(--color-slate-200);
  border-radius: 100px;
}

.range-slider__fill {
  position: absolute;
  top: 0;
  height: 100%;
  background: var(--color-brand-blue);
  border-radius: 100px;
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.range-slider__fill--success {
  background: var(--color-success);
}

.range-slider__fill--gold {
  background: var(--color-brand-gold);
}

.range-slider__fill--warning {
  background: var(--color-warning);
}

.range-slider__fill--danger {
  background: var(--color-error);
}

.range-slider__input {
  position: absolute;
  top: -8px;
  left: 0;
  width: 100%;
  height: 24px;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  pointer-events: none;
  outline: none;
}

.range-slider__input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  background: var(--color-brand-blue);
  border-radius: 50%;
  cursor: grab;
  border: 4px solid var(--color-white);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  pointer-events: all;
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.range-slider__input::-moz-range-thumb {
  width: 24px;
  height: 24px;
  background: var(--color-brand-blue);
  border-radius: 50%;
  cursor: grab;
  border: 4px solid var(--color-white);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  pointer-events: all;
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.range-slider__input:hover::-webkit-slider-thumb {
  transform: scale(1.15);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2), 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.range-slider__input:hover::-moz-range-thumb {
  transform: scale(1.15);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2), 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.range-slider__input:active::-webkit-slider-thumb {
  cursor: grabbing;
  transform: scale(1.1);
}

.range-slider__input:active::-moz-range-thumb {
  cursor: grabbing;
  transform: scale(1.1);
}

/* Range Slider Color Variants */
.range-slider__input--success::-webkit-slider-thumb {
  background: var(--color-success);
}

.range-slider__input--success::-moz-range-thumb {
  background: var(--color-success);
}

.range-slider__input--success:hover::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2), 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.range-slider__input--success:hover::-moz-range-thumb {
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2), 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.range-slider__input--gold::-webkit-slider-thumb {
  background: var(--color-brand-gold);
}

.range-slider__input--gold::-moz-range-thumb {
  background: var(--color-brand-gold);
}

.range-slider__input--gold:hover::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.2), 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.range-slider__input--gold:hover::-moz-range-thumb {
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.2), 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Range Slider Values Display */
.slider-range-values {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-3);
  margin-top: var(--spacing-4);
}

.slider-range-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-brand-blue);
}

.slider-range-sep {
  color: var(--color-slate-300);
  font-weight: 400;
}

/* Vertical Sliders */
.vertical-sliders {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: var(--spacing-8);
}

.vertical-slider-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-4);
}

.vertical-slider-group .slider-label {
  font-size: 0.688rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-slate-400);
  margin: 0;
}

.slider--vertical {
  writing-mode: vertical-lr;
  direction: rtl;
  width: 8px;
  height: 150px;
}

.slider--vertical::-webkit-slider-thumb {
  transform-origin: center;
}

.slider--vertical::-moz-range-thumb {
  transform-origin: center;
}

/* Vertical Sliders Dark Variant */
.vertical-sliders-dark {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: var(--spacing-8);
  padding: 2rem;
  background-color: var(--color-slate-900);
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  border-radius: 1.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  border: 1px solid var(--color-slate-800);
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.vertical-sliders-dark:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.vertical-sliders-dark .slider-label {
  color: var(--color-slate-400);
}

.slider--dark {
  background: var(--color-slate-700);
}

.slider--dark::-webkit-slider-thumb {
  background: var(--color-white);
  border-color: var(--color-slate-900);
}

.slider--dark::-moz-range-thumb {
  background: var(--color-white);
  border-color: var(--color-slate-900);
}

.slider--dark:hover::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2), 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

.slider--dark:hover::-moz-range-thumb {
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2), 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

.slider--dark.slider--gold::-webkit-slider-thumb {
  background: var(--color-brand-gold);
  border-color: var(--color-slate-900);
}

.slider--dark.slider--gold::-moz-range-thumb {
  background: var(--color-brand-gold);
  border-color: var(--color-slate-900);
}

.slider--dark.slider--gold:hover::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.3), 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

.slider--dark.slider--gold:hover::-moz-range-thumb {
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.3), 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

.slider--dark.slider--success::-webkit-slider-thumb {
  background: var(--color-success);
  border-color: var(--color-slate-900);
}

.slider--dark.slider--success::-moz-range-thumb {
  background: var(--color-success);
  border-color: var(--color-slate-900);
}

.slider--dark.slider--success:hover::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.3), 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

.slider--dark.slider--success:hover::-moz-range-thumb {
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.3), 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

/* =========================================================================
   SELECT / DROPDOWN
   ========================================================================= */

/* Select Wrapper */
.select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

/* Select Base */
.select {
  width: 100%;
  padding: 1rem 3rem 1rem 1rem;
  font-family: var(--font-family);
  font-size: 18px;
  font-weight: 500;
  color: var(--color-slate-900);
  background: var(--color-white);
  border: 2px solid #e2e8f0;
  border-radius: 1rem;
  appearance: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.select:hover {
  border-color: var(--color-slate-300);
}

.select:focus {
  outline: none;
  border-color: var(--color-brand-blue);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.select__chevron {
  position: absolute;
  right: 1rem;
  width: 20px;
  height: 20px;
  color: var(--color-slate-400);
  pointer-events: none;
  transition: all 0.3s;
}

.select:focus ~ .select__chevron {
  color: var(--color-brand-blue);
  transform: rotate(180deg);
}

/* Select Sizes */
.select--sm {
  padding: 0.5rem 2.5rem 0.5rem 0.75rem;
  font-size: 16px;
  border-radius: 0.75rem;
}

.select__chevron--sm {
  width: 16px;
  height: 16px;
  right: 0.75rem;
}

.select--lg {
  padding: 1.25rem 3.5rem 1.25rem 1.25rem;
  font-size: 20px;
  border-radius: 1.5rem;
}

.select__chevron--lg {
  width: 24px;
  height: 24px;
  right: 1.25rem;
}

/* Select States */
.select-wrapper--disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.select-wrapper--disabled .select {
  cursor: not-allowed;
  background: var(--color-slate-50);
}

.select--error {
  border-color: var(--color-error);
}

.select--error:focus {
  border-color: var(--color-error);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15);
}

.select-wrapper--error .select__chevron {
  color: var(--color-error);
}

.select--success {
  border-color: var(--color-success);
}

.select--success:focus {
  border-color: var(--color-success);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

.select-wrapper--success .select__chevron {
  color: var(--color-success);
}

/* Select with Icon */
.select-wrapper--icon-left .select__icon-left {
  position: absolute;
  left: 1rem;
  width: 20px;
  height: 20px;
  color: var(--color-slate-400);
  pointer-events: none;
  z-index: 1;
}

.select--icon-left {
  padding-left: 3rem;
}

/* =========================================================================
   FILE UPLOAD
   ========================================================================= */

/* Dropzone */
.dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  background: var(--color-white);
  border: 2px dashed var(--color-slate-300);
  border-radius: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dropzone:hover {
  border-color: var(--color-brand-blue);
  background: var(--color-slate-50);
  transform: translateY(-2px);
}

.dropzone:active {
  transform: translateY(0) scale(0.98);
}

.dropzone__input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.dropzone__icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  background: var(--color-slate-50);
  border-radius: 1rem;
  color: var(--color-slate-300);
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dropzone:hover .dropzone__icon {
  background: var(--color-slate-200);
  color: var(--color-brand-blue);
  transform: scale(1.05);
}

.dropzone__icon svg {
  width: 32px;
  height: 32px;
  stroke-width: 2;
}

.dropzone__icon--sm {
  width: 48px;
  height: 48px;
  margin-bottom: 0;
}

.dropzone__icon--sm svg {
  width: 24px;
  height: 24px;
}

.dropzone__title {
  font-size: 18px;
  font-weight: 600;
  font-family: var(--font-family);
  color: var(--color-slate-900);
  margin: 0 0 0.5rem;
}

.dropzone__text {
  font-size: 15px;
  color: var(--color-slate-500);
  margin: 0 0 0.75rem;
}

.dropzone__link {
  color: var(--color-brand-blue);
  font-weight: 500;
  text-decoration: underline;
  cursor: pointer;
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dropzone__link:hover {
  color: var(--color-brand-gold);
}

.dropzone__hint {
  font-size: 13px;
  color: var(--color-slate-400);
  margin: 0;
}

/* Compact Dropzone */
.dropzone--compact {
  flex-direction: row;
  padding: 1.5rem;
  gap: 1rem;
  text-align: left;
}

.dropzone--compact .dropzone__icon {
  margin: 0;
}

.dropzone--compact .dropzone__content {
  flex: 1;
  text-align: left;
}

.dropzone--compact .dropzone__title {
  margin: 0 0 0.25rem;
  font-size: 15px;
}

.dropzone--compact .dropzone__hint {
  margin: 0;
}

.dropzone__btn {
  padding: 0.625rem 1.25rem;
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-brand-blue);
  background: var(--color-slate-100);
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  z-index: 2;
}

.dropzone__btn:hover {
  background: var(--color-brand-blue);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.dropzone__btn:active {
  transform: translateY(1px) scale(0.96);
}

/* Dropzone States */
.dropzone--sm {
  padding: 1.5rem;
}

.dropzone--hover {
  border-color: var(--color-brand-blue);
  background: var(--color-slate-50);
}

.dropzone--hover .dropzone__icon {
  background: var(--color-slate-100);
  color: var(--color-brand-blue);
}

.dropzone--success {
  border-color: var(--color-success);
  border-style: dashed;
  background: var(--color-slate-50);
}

.dropzone--success .dropzone__icon {
  background: var(--color-slate-100);
  color: var(--color-success);
}

.dropzone--error {
  border-color: var(--color-error);
  border-style: dashed;
  background: var(--color-slate-50);
}

.dropzone--error .dropzone__icon {
  background: var(--color-slate-100);
  color: var(--color-error);
}

.dropzone--disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* AI Smart Upload */
.dropzone--smart {
  position: relative;
  border: 2px solid var(--color-brand-gold);
  background: linear-gradient(135deg, var(--color-white) 0%, var(--color-slate-50) 100%);
  overflow: hidden;
}

.dropzone--smart::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.1), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.dropzone--smart:hover {
  border-color: var(--color-brand-gold);
  box-shadow: 0 0 40px rgba(251, 191, 36, 0.3);
}

.dropzone__icon--smart {
  background: var(--color-slate-100);
  color: var(--color-brand-gold);
}

.dropzone--smart:hover .dropzone__icon--smart {
  background: var(--color-slate-200);
  color: var(--color-brand-gold);
}

.dropzone__features {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1rem;
}

.dropzone__feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-slate-600);
}

.dropzone__feature svg {
  width: 16px;
  height: 16px;
  color: var(--color-brand-gold);
}

/* Dropzone with preview */
.dropzone--preview {
  flex-direction: row;
  padding: 1rem;
  gap: 1rem;
  cursor: default;
}

.dropzone__preview-area {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 1rem;
  overflow: hidden;
  flex-shrink: 0;
}

.dropzone__preview-area img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dropzone__remove {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-error);
  border: none;
  border-radius: 0.5rem;
  color: var(--color-white);
  cursor: pointer;
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dropzone__remove:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.dropzone__remove svg {
  width: 18px;
  height: 18px;
}

.dropzone__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
}

.dropzone__filename {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-slate-900);
}

.dropzone__filesize {
  font-size: 13px;
  color: var(--color-slate-400);
}

.dropzone--disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* File List */
.file-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--color-white);
  border: 1px solid var(--color-slate-200);
  border-radius: 1rem;
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.file-item:hover {
  border-color: var(--color-brand-blue);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
  transform: translateY(-2px);
}

.file-item--error {
  border-color: var(--color-error);
  background: var(--color-slate-50);
}

.file-item__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  flex-shrink: 0;
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.file-item:hover .file-item__icon {
  transform: scale(1.1);
}

.file-item__icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.5;
}

.file-item__icon--pdf {
  background: var(--color-slate-100);
  color: var(--color-error);
}

.file-item__icon--doc {
  background: var(--color-slate-100);
  color: var(--color-brand-blue);
}

.file-item__icon--img {
  background: var(--color-slate-100);
  color: var(--color-success);
}

.file-item__icon--xlsx {
  background: var(--color-slate-100);
  color: var(--color-brand-gold);
}

.file-item__info {
  flex: 1;
  min-width: 0;
}

.file-item__name {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-slate-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.25rem;
}

.file-item__meta {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-slate-400);
}

.file-item__meta--error {
  color: var(--color-error);
}

.file-item__progress {
  width: 120px;
  height: 6px;
  background: var(--color-slate-200);
  border-radius: 100px;
  overflow: hidden;
  flex-shrink: 0;
}

.file-item__progress-bar {
  height: 100%;
  background: var(--color-brand-blue);
  border-radius: 100px;
  transition: width 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.file-item__status {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 100px;
  flex-shrink: 0;
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.file-item__status svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.file-item__status--success {
  background: var(--color-slate-100);
  color: var(--color-success);
}

.file-item__status--error {
  background: var(--color-slate-100);
  color: var(--color-error);
}

.file-item__action {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-slate-100);
  border: none;
  border-radius: 0.75rem;
  color: var(--color-slate-600);
  cursor: pointer;
  flex-shrink: 0;
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.file-item__action:hover {
  background: var(--color-error);
  color: var(--color-white);
  transform: scale(1.1);
}

.file-item__action svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.file-item__status--success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-success);
}

.file-item__status--error {
  background: rgba(239, 68, 68, 0.1);
  color: var(--color-error);
}

.file-item__action {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 0.75rem;
  color: var(--color-slate-400);
  cursor: pointer;
  transition: all 0.3s;
  flex-shrink: 0;
}

.file-item__action svg {
  width: 18px;
  height: 18px;
}

.file-item__action:hover {
  background: var(--color-slate-100);
  color: var(--color-slate-500);
}

/* ================================================================
   INPUT WITH FLOATING ACTION
   ================================================================ */

.input-wrapper {
  position: relative;
  width: 100%;
}

.input-wrapper .input {
  padding-right: 3.5rem;
}

.input-action-btn {
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: var(--color-slate-200);
  color: var(--color-slate-700);
  border: none;
  border-radius: 0.75rem;
  height: 36px;
  min-width: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  transition: all 600ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 500ms, visibility 500ms;
  cursor: pointer;
  z-index: 10;
  white-space: nowrap;
  font-weight: 900;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transform: scale(0.8);
  opacity: 0;
  visibility: hidden;
}

.input-action-btn.show {
  transform: scale(1);
  opacity: 1;
  visibility: visible;
}

.input-action-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 600ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.input-action-btn__text {
  opacity: 0;
  width: 0;
  overflow: hidden;
  padding: 0;
  margin-left: 0;
  transition: opacity 400ms, width 400ms, margin-left 400ms, padding 400ms;
}

.input-action-btn:hover {
  transform: scale(1);
  padding: 0 12px 0 10px;
  gap: 8px;
}

.input-action-btn:hover svg {
  transform: rotate(360deg);
}

.input-action-btn:hover .input-action-btn__text {
  opacity: 1;
  width: auto;
  margin-left: 0;
}

.input-action-btn:active {
  transform: scale(0.96);
}

/* Modifiers */
.input-action-btn--gold {
  background: var(--color-brand-gold);
  color: var(--color-slate-900);
  box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

.input-action-btn--gold:hover {
  box-shadow: 0 4px 16px rgba(251, 191, 36, 0.4);
}

.input-action-btn--primary {
  background: var(--color-brand-blue);
  color: var(--color-white);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.input-action-btn--primary:hover {
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

.input-action-btn--success {
  background: var(--color-success);
  color: var(--color-white);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.input-action-btn--success:hover {
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
}

.input-action-btn--error {
  background: var(--color-error);
  color: var(--color-white);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.input-action-btn--error:hover {
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
}

.input-action-btn--warning {
  background: var(--color-warning);
  color: var(--color-slate-900);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.input-action-btn--warning:hover {
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
}

/* ================================================================
   TOP NAVBAR COMPONENT - MODERN MINIMAL
   ================================================================ */

/* Base Navbar */
.topbar {
  width: 100%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-slate-200);
  padding: var(--spacing-3) 0;
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-8);
}

/* Logo */
.topbar__logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-2);
  text-decoration: none;
  transition: opacity 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.topbar__logo:hover {
  opacity: 0.7;
}

.topbar__logo-text {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  color: var(--color-slate-900);
  letter-spacing: -0.01em;
}

.topbar__logo-mark {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Menu */
.topbar__menu {
  display: flex;
  align-items: center;
  gap: var(--spacing-1);
  flex: 1;
  justify-content: center;
}

.topbar__link {
  padding: var(--spacing-2) var(--spacing-3);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-slate-600);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.topbar__link:hover {
  color: var(--color-slate-900);
  background: var(--color-slate-100);
}

.topbar__link--active {
  color: var(--color-slate-900);
  background: var(--color-slate-100);
}

/* Actions */
.topbar__actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-2);
}

.topbar__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 var(--spacing-3);
  background: transparent;
  border: 1px solid var(--color-slate-200);
  color: var(--color-slate-700);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.topbar__btn:hover {
  border-color: var(--color-slate-300);
  background: var(--color-slate-50);
}

.topbar__btn-primary {
  background: var(--color-slate-900);
  color: var(--color-white);
  border-color: var(--color-slate-900);
}

.topbar__btn-primary:hover {
  background: var(--color-slate-800);
  border-color: var(--color-slate-800);
}

/* Avatar */
.topbar__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--color-slate-100);
  color: var(--color-slate-600);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.topbar__avatar:hover {
  background: var(--color-slate-200);
}

/* Search Input */
.topbar__search {
  position: relative;
  display: flex;
  align-items: center;
  width: 36px;
  height: 36px;
  overflow: hidden;
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.topbar__search.is-expanded {
  width: 240px;
}

.topbar__search-btn {
  position: absolute;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-md);
  color: var(--color-slate-700);
  cursor: pointer;
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 2;
}

.topbar__search-btn svg {
  width: 18px;
  height: 18px;
}

.topbar__search-btn:hover {
  border-color: var(--color-slate-300);
  background: var(--color-slate-50);
}

.topbar__search-input {
  position: absolute;
  left: 0;
  width: 100%;
  height: 36px;
  padding: 0 var(--spacing-3) 0 44px;
  background: var(--color-white);
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  color: var(--color-slate-900);
  opacity: 0;
  pointer-events: none;
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.topbar__search.is-expanded .topbar__search-input {
  opacity: 1;
  pointer-events: auto;
}

.topbar__search-input:focus {
  outline: none;
  border-color: var(--color-brand-blue);
}

.topbar__search-input::placeholder {
  color: var(--color-slate-400);
}

/* Mobile Toggle */
.topbar__mobile-toggle {
  display: none;
}

/* Responsive */
@media (max-width: 1023px) {
  .topbar__menu {
    display: none;
  }

  .topbar__mobile-toggle {
    display: flex;
  }
}

/* ================================================================
   NAVBAR VARIANTS - MODERN STYLES
   ================================================================ */

/* Dark Mode - Dotted Background */
.topbar--dark {
  background: rgba(15, 23, 42, 0.8);
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  background-attachment: fixed;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: none;
}

.topbar--dark .topbar__logo-text {
  color: var(--color-white);
}



.topbar--dark .topbar__link {
  color: var(--color-white);
  font-weight: var(--font-weight-medium);
}

.topbar--dark .topbar__link:hover {
  color: var(--color-white);
  background: transparent;
  transform: translateY(-1px);
}

.topbar--dark .topbar__link--active {
  color: var(--color-white);
  background: transparent;
  transform: translateY(-1px);
}

.topbar--dark .topbar__btn {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--color-white);
}

.topbar--dark .topbar__btn:hover {
  border-color: var(--color-white);
  background: transparent;
  transform: translateY(-1px);
}

.topbar--dark .topbar__btn-primary {
  background: var(--color-white);
  color: var(--color-slate-900);
  border-color: var(--color-white);
}

.topbar--dark .topbar__btn-primary:hover {
  background: var(--color-white);
  border-color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.topbar--dark .topbar__avatar {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.topbar--dark .topbar__avatar:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--color-white);
  transform: translateY(-1px);
}

.topbar--dark .topbar__search-btn {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--color-white);
}

.topbar--dark .topbar__search-btn:hover {
  border-color: var(--color-white);
  background: transparent;
}

.topbar--dark .topbar__search-input {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--color-white);
}

.topbar--dark .topbar__search-input:focus {
  border-color: var(--color-white);
  background: rgba(255, 255, 255, 0.1);
}

.topbar--dark .topbar__search-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* Fixed Position */
.topbar--fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

/* Logo Center Layout */
.topbar--logo-center .topbar__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.topbar--logo-center .topbar__logo {
  grid-column: 2;
  justify-self: center;
}

.topbar--logo-center .topbar__menu {
  grid-column: 1;
  justify-content: flex-start;
}

.topbar--logo-center .topbar__actions {
  grid-column: 3;
  justify-content: flex-end;
}

/* Dropdown Menu */
.topbar__dropdown {
  position: relative;
}

.topbar__dropdown-trigger {
  display: flex;
  align-items: center;
  gap: var(--spacing-1);
}

.topbar__dropdown-trigger svg {
  width: 14px;
  height: 14px;
  transition: transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.topbar__dropdown:hover .topbar__dropdown-trigger svg {
  transform: rotate(180deg);
}

.topbar__dropdown-menu {
  position: absolute;
  top: calc(100% + var(--spacing-2));
  left: 0;
  min-width: 220px;
  background: var(--color-white);
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1000;
}

.topbar__dropdown:hover .topbar__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.topbar__dropdown-item {
  position: relative;
  display: block;
  padding: var(--spacing-3);
  font-size: var(--font-size-sm);
  color: var(--color-slate-700);
  text-decoration: none;
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.topbar__dropdown-item:hover {
  background: var(--color-slate-50);
  color: var(--color-slate-900);
}

.topbar__dropdown-item--parent {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar__dropdown-item--parent::after {
  content: '›';
  font-size: var(--font-size-lg);
  color: var(--color-slate-400);
}

/* Submenu (Level 2 and 3) */
.topbar__dropdown-submenu {
  position: absolute;
  top: 0;
  left: 100%;
  min-width: 200px;
  background: var(--color-white);
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-8px);
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
  margin-left: var(--spacing-2);
  z-index: 1001;
}

.topbar__dropdown-item:hover > .topbar__dropdown-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* Mega Menu */
.topbar__mega {
  position: relative;
}

.topbar__mega-menu {
  position: absolute;
  top: calc(100% + var(--spacing-2));
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  width: 800px;
  max-width: 90vw;
  background: var(--color-white);
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  padding: var(--spacing-8);
  opacity: 0;
  visibility: hidden;
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1000;
}

.topbar__mega:hover .topbar__mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.topbar__mega-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-6);
}

.topbar__mega-section {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2);
}

.topbar__mega-title {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-black);
  color: var(--color-slate-900);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--spacing-2);
}

.topbar__mega-link {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-3);
  padding: var(--spacing-2);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.topbar__mega-link:hover {
  background: var(--color-slate-50);
}

.topbar__mega-link-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-slate-100);
  border-radius: var(--radius-md);
  color: var(--color-brand-blue);
}

.topbar__mega-link-content {
  flex: 1;
}

.topbar__mega-link-title {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  color: var(--color-slate-900);
  margin-bottom: var(--spacing-1);
}

.topbar__mega-link-desc {
  font-size: var(--font-size-xs);
  color: var(--color-slate-600);
  line-height: 1.4;
}

/* Dark Mode Dropdown/Mega */
.topbar--dark .topbar__dropdown-menu,
.topbar--dark .topbar__dropdown-submenu {
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.topbar--dark .topbar__dropdown-item {
  color: var(--color-slate-300);
}

.topbar--dark .topbar__dropdown-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-white);
}

.topbar--dark .topbar__mega-menu {
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.topbar--dark .topbar__mega-title {
  color: var(--color-white);
}

.topbar--dark .topbar__mega-link:hover {
  background: rgba(255, 255, 255, 0.05);
}

.topbar--dark .topbar__mega-link-icon {
  background: rgba(255, 255, 255, 0.1);
}

.topbar--dark .topbar__mega-link-title {
  color: var(--color-white);
}

.topbar--dark .topbar__mega-link-desc {
  color: var(--color-slate-400);
}

/* ================================================================
   ================================================================ */

.nav__list {
  display: flex;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__item {
  position: relative;
}

.nav__link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-slate-700);
  text-decoration: none;
  border-radius: 0.75rem;
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav__link:hover {
  background: var(--color-slate-100);
  color: var(--color-brand-blue);
}

.nav__link--active {
  background: var(--color-brand-blue);
  color: var(--color-white);
}

.nav__icon {
  width: 16px;
  height: 16px;
  transition: transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav__item:hover .nav__icon {
  transform: rotate(180deg);
}

/* Dropdown Menu (Level 2) */
.nav__dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 240px;
  background: var(--color-white);
  border: 1px solid var(--color-slate-200);
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 100;
  list-style: none;
  margin: 0;
  padding: 0.5rem;
}

.nav__item:hover > .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__dropdown-item {
  position: relative;
}

.nav__dropdown-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-slate-700);
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav__dropdown-link:hover {
  background: var(--color-slate-50);
  color: var(--color-brand-blue);
  transform: translateX(4px);
}

/* Sub-Dropdown Menu (Level 3) */
.nav__subdropdown {
  position: absolute;
  top: 0;
  left: calc(100% + 0.5rem);
  min-width: 220px;
  background: var(--color-white);
  border: 1px solid var(--color-slate-200);
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-10px);
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 101;
  list-style: none;
  margin: 0;
  padding: 0.5rem;
}

.nav__dropdown-item:hover > .nav__subdropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* Mega Menu */
.nav__mega {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  width: 900px;
  max-width: calc(100vw - 2rem);
  background: var(--color-white);
  border: 1px solid var(--color-slate-200);
  border-radius: 1.5rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 100;
  padding: 2rem;
}

.nav__item:hover > .nav__mega {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav__mega-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.nav__mega-column {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav__mega-title {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-slate-400);
  margin: 0 0 0.75rem;
}

.nav__mega-link {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  text-decoration: none;
  border-radius: 0.75rem;
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav__mega-link:hover {
  background: var(--color-slate-50);
  transform: translateX(4px);
}

.nav__mega-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-slate-100);
  border-radius: 0.5rem;
  color: var(--color-brand-blue);
  flex-shrink: 0;
}

.nav__mega-icon svg {
  width: 20px;
  height: 20px;
}

.nav__mega-content {
  flex: 1;
}

.nav__mega-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-slate-900);
  margin-bottom: 0.25rem;
}

.nav__mega-desc {
  display: block;
  font-size: 13px;
  color: var(--color-slate-500);
  line-height: 1.4;
}

/* Logo Center Layout */
.nav--center {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}

.nav__list--left {
  justify-content: flex-end;
}

.nav__list--right {
  justify-content: flex-start;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 20px;
  font-weight: 900;
  color: var(--color-slate-900);
  text-decoration: none;
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav__logo:hover {
  transform: scale(1.05);
}

.nav__logo-icon {
  width: 40px;
  height: 40px;
}

/* Vertical Navigation */
.nav--vertical {
  flex-direction: column;
  align-items: stretch;
  padding: 1rem;
  background: var(--color-white);
  border: 1px solid var(--color-slate-200);
  border-radius: 1rem;
}

.nav--vertical .nav__list {
  flex-direction: column;
  gap: 0.25rem;
}

.nav--vertical .nav__link {
  justify-content: space-between;
}

.nav--vertical .nav__dropdown {
  position: static;
  margin-top: 0.25rem;
  margin-left: 1rem;
  transform: none;
}

.nav--vertical .nav__item:hover > .nav__dropdown {
  transform: none;
}

/* Mobile Navigation */
.nav__mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: var(--color-slate-100);
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav__mobile-toggle:hover {
  background: var(--color-slate-200);
}

.nav__mobile-toggle svg {
  width: 24px;
  height: 24px;
  color: var(--color-slate-700);
}

@media (max-width: 767px) {
  .nav__mobile-toggle {
    display: flex;
  }

  .nav__list {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--color-white);
    border-top: 1px solid var(--color-slate-200);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
    padding: 1rem;
  }

  .nav__list--active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav__dropdown,
  .nav__subdropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    margin-top: 0.5rem;
    margin-left: 1rem;
  }

  .nav__mega {
    position: static;
    transform: none;
    width: 100%;
    margin-top: 0.5rem;
  }

  .nav__mega-grid {
    grid-template-columns: 1fr;
  }
}

/* ================================================================
   ICON SHOWCASE
   ================================================================ */

.icons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: var(--spacing-4);
}

.icon-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-3);
  padding: var(--spacing-5);
  background: var(--color-white);
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-xl);
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
}

.icon-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-brand-blue);
  box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.15);
}

.icon-card:active {
  transform: translateY(-2px) scale(0.98);
}

.icon-preview {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-slate-700);
}

.icon-preview svg {
  width: 28px;
  height: 28px;
}

.icon-preview--primary {
  color: var(--color-brand-blue);
}

.icon-preview--gold {
  color: var(--color-brand-gold);
}

.icon-preview--success {
  color: var(--color-success);
}

.icon-preview--error {
  color: var(--color-error);
}

.icon-preview--warning {
  color: var(--color-warning);
}

.icon-name {
  font-size: 11px;
  font-weight: 500;
  color: var(--color-slate-500);
  text-align: center;
  word-break: break-all;
}

.section-label {
  font-size: var(--font-size-sm);
  font-weight: 900;
  color: var(--color-slate-400);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--spacing-6);
  padding-bottom: var(--spacing-3);
  border-bottom: 1px solid var(--color-slate-200);
}

/* Responsive */
@media (min-width: 768px) {
  .icons-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
}

@media (min-width: 1024px) {
  .icons-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }
}

/* =========================================================================
   DATE PICKER
   ========================================================================= */

/* Date Input */
.date-input {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--color-white);
  border: 2px solid #e2e8f0;
  border-radius: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  max-width: 280px;
}

.date-input:hover,
.date-input:focus-within {
  border-color: var(--color-brand-blue);
}

.date-input__icon {
  width: 20px;
  height: 20px;
  color: var(--color-brand-blue);
  flex-shrink: 0;
}

.date-input input {
  flex: 1;
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 500;
  color: var(--color-slate-900);
  background: none;
  border: none;
  outline: none;
}

.date-input input::placeholder {
  color: var(--color-slate-400);
}

.date-input__chevron {
  width: 20px;
  height: 20px;
  color: var(--color-slate-400);
  flex-shrink: 0;
}

/* Date Range Inputs */
.date-range-inputs {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.date-range-separator {
  color: var(--color-slate-400);
  font-weight: 500;
}

.date-range-inputs .date-input {
  max-width: 180px;
}

/* Calendar */
.calendar-container {
  max-width: 340px;
}

.calendar-container--range {
  max-width: 400px;
}

.calendar {
  background: var(--color-white);
  border: 1px solid #e2e8f0;
  border-radius: 1.5rem;
  padding: 1.25rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.calendar__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.calendar__nav {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: 0.75rem;
  color: var(--color-slate-500);
  cursor: pointer;
  transition: all 0.3s;
}

.calendar__nav:hover {
  background: var(--color-slate-100);
  color: var(--color-brand-blue);
}

.calendar__nav svg {
  width: 20px;
  height: 20px;
}

.calendar__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-slate-900);
}

.calendar__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 0.5rem;
}

.calendar__weekdays span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-slate-400);
  text-transform: uppercase;
}

.calendar__days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.calendar__day {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-slate-900);
  background: none;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.calendar__day:hover {
  background: var(--color-slate-100);
}

.calendar__day--other {
  color: var(--color-slate-300);
}

.calendar__day--today {
  color: var(--color-brand-blue);
  font-weight: 700;
  background: rgba(59, 130, 246, 0.1);
}

.calendar__day--selected {
  color: var(--color-white);
  background: var(--color-brand-blue);
  font-weight: 700;
}

.calendar__day--selected:hover {
  background: #2563eb;
}

/* Date Range States */
.calendar__day--range-start,
.calendar__day--range-end {
  color: var(--color-white);
  background: var(--color-brand-blue);
  font-weight: 700;
}

.calendar__day--in-range {
  background: rgba(59, 130, 246, 0.1);
  color: var(--color-brand-blue);
}

.calendar__day--range-start {
  border-radius: 0.75rem 0 0 0.75rem;
}

.calendar__day--range-end {
  border-radius: 0 0.75rem 0.75rem 0;
}

.checkbox input:checked ~ .checkbox__box::after {
  transform: rotate(45deg) scale(1);
}

.checkbox__label {
  font-size: 15px;
  color: var(--color-slate-900);
}

/* Hero Meta Info */

/* Alert Base */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  background: var(--color-white);
  border: 1px solid #e2e8f0;
}

.alert__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.alert__content {
  flex: 1;
  min-width: 0;
}

.alert__title {
  display: block;
  font-size: 16px;
  font-weight: 900;
  color: var(--color-slate-900);
  margin-bottom: 0.25rem;
}

.alert__text {
  display: block;
  font-size: 16px;
  color: var(--color-slate-500);
  line-height: 1.6;
}

/* Alert Variants */
.alert--info {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.2);
}

.alert--info .alert__icon {
  color: var(--color-brand-blue);
}

.alert--info .alert__title {
  color: var(--color-brand-blue);
}

.alert--success {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.2);
}

.alert--success .alert__icon {
  color: var(--color-success);
}

.alert--success .alert__title {
  color: var(--color-success);
}

.alert--warning {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.3);
}

.alert--warning .alert__icon {
  color: #b45309;
}

.alert--warning .alert__title {
  color: #b45309;
}

.alert--danger {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.2);
}

.alert--danger .alert__icon {
  color: var(--color-error);
}

.alert--danger .alert__title {
  color: var(--color-error);
}

/* Alert Dismissible */
.alert--dismissible {
  padding-right: 3rem;
  position: relative;
}

.alert__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0.5rem;
  color: var(--color-slate-400);
  cursor: pointer;
  transition: all 0.3s;
}

.alert__close svg {
  width: 16px;
  height: 16px;
}

.alert__close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--color-slate-500);
}

/* Alert Actions */
.alert__actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.alert__btn {
  padding: 0.5rem 1rem;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 700;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.3s;
}

.alert__btn--primary {
  background: var(--color-brand-blue);
  border: none;
  color: var(--color-white);
}

.alert__btn--primary:hover {
  background: #2563eb;
}

.alert__btn--danger {
  background: var(--color-error);
  border: none;
  color: var(--color-white);
}

.alert__btn--danger:hover {
  background: #dc2626;
}

.alert__btn--ghost {
  background: transparent;
  border: none;
  color: var(--color-slate-500);
}

.alert__btn--ghost:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* =========================================================================
   BADGES
   ========================================================================= */

/* Badge Base */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 100px;
  white-space: nowrap;
}

/* Badge Variants */
.badge--success {
  background: rgba(16, 185, 129, 0.15);
  color: #047857;
}

.badge--warning {
  background: rgba(251, 191, 36, 0.2);
  color: #b45309;
}

.badge--danger {
  background: rgba(239, 68, 68, 0.15);
  color: #dc2626;
}

.badge--info {
  background: rgba(59, 130, 246, 0.15);
  color: #2563eb;
}

.badge--neutral {
  background: var(--color-slate-100);
  color: var(--color-slate-500);
}

.badge--primary {
  background: var(--color-brand-blue);
  color: var(--color-white);
}

.badge--smart {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: var(--color-slate-900);
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.4);
}

.badge--dark {
  background: var(--color-slate-900);
  color: var(--color-white);
}

/* Outline Badges */
.badge--outline {
  background: transparent;
  border: 1.5px solid;
  padding: 0.2rem 0.65rem;
}

.badge--outline-primary {
  border-color: var(--color-brand-blue);
  color: var(--color-brand-blue);
}

.badge--outline-success {
  border-color: var(--color-success);
  color: #047857;
}

.badge--outline-warning {
  border-color: #fbbf24;
  color: #b45309;
}

.badge--outline-danger {
  border-color: var(--color-error);
  color: #dc2626;
}

.badge--outline-neutral {
  border-color: var(--color-slate-300);
  color: var(--color-slate-500);
}

/* Badge with Dot */
.badge--dot {
  gap: 0.5rem;
}

.badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 100px;
  flex-shrink: 0;
}

.badge--success .badge__dot {
  background: #047857;
}

.badge--warning .badge__dot {
  background: #b45309;
}

.badge--danger .badge__dot {
  background: #dc2626;
}

.badge--info .badge__dot {
  background: #2563eb;
}

.badge__dot--pulse {
  animation: badge-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes badge-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.4);
  }
}

/* Badge Sizes */
.badge--sm {
  padding: 0.125rem 0.5rem;
  font-size: 10px;
}

.badge--lg {
  padding: 0.375rem 1rem;
  font-size: 14px;
}

/* Pill Badge */
.badge--pill {
  border-radius: 100px;
  padding: 0.375rem 1rem;
}

/* Badge with Icon */
.badge--icon svg {
  width: 14px;
  height: 14px;
}

/* Counter Badge */
.badge--counter {
  min-width: 24px;
  height: 24px;
  padding: 0 0.375rem;
  border-radius: 100px;
  justify-content: center;
  font-size: 11px;
}

/* Removable Tag */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  font-size: 14px;
  font-weight: 500;
  background: var(--color-slate-100);
  color: var(--color-slate-900);
  border-radius: 100px;
  border: 1px solid #e2e8f0;
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tag--removing {
  animation: tag-remove 400ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes tag-remove {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.9) rotateZ(-3deg);
  }
  100% {
    opacity: 0;
    transform: scale(0) rotateZ(-10deg);
  }
}

.tag--primary {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.2);
  color: #2563eb;
}

.tag__remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0.25rem;
  color: var(--color-slate-400);
  cursor: pointer;
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tag__remove:hover {
  background: rgba(0, 0, 0, 0.1);
  color: var(--color-slate-500);
  transform: scale(1.2) rotate(90deg);
}

.tag__remove:active {
  transform: scale(0.9) rotate(90deg);
}

.tag__remove svg {
  width: 12px;
  height: 12px;
}

/* Category Tags */
.category-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-slate-900);
  background: var(--color-white);
  border: 1px solid var(--color-slate-200);
  border-radius: 100px;
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.category-tag:hover {
  border-color: var(--color-slate-300);
  transform: translateY(-1px);
}

.category-tag__dot {
  width: 10px;
  height: 10px;
  border-radius: 100px;
  flex-shrink: 0;
}

.category-tag__dot--blue {
  background: var(--color-brand-blue);
}

.category-tag__dot--green {
  background: var(--color-success);
}

.category-tag__dot--gold {
  background: var(--color-brand-gold);
}

.category-tag__dot--red {
  background: var(--color-error);
}

/* Label Badges */
.label-badge {
  display: inline-flex;
  border-radius: 100px;
  overflow: hidden;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.label-badge__key {
  padding: 0.25rem 0.5rem;
  background: var(--color-slate-600);
  color: var(--color-white);
}

.label-badge__value {
  padding: 0.25rem 0.5rem;
  background: var(--color-slate-200);
  color: var(--color-slate-900);
}

.label-badge__value--success {
  background: var(--color-success);
  color: var(--color-white);
}

.label-badge__value--primary {
  background: var(--color-brand-blue);
  color: var(--color-white);
}

.label-badge__value--warning {
  background: var(--color-warning);
  color: var(--color-slate-900);
}

/* Avatar Badge (Status Indicator) */
.avatar-badge-wrap {
  position: relative;
  display: inline-block;
}

.avatar-badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  border-radius: 100px;
  border: 2px solid var(--color-white);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.avatar-badge--online {
  background: var(--color-success);
}

.avatar-badge--busy {
  background: var(--color-error);
}

.avatar-badge--away {
  background: var(--color-brand-gold);
}

.avatar-badge--offline {
  background: var(--color-slate-400);
}

/* =========================================================================
   TABLES
   ========================================================================= */

/* Table Wrapper */
/* Table Wrapper */
.table-wrapper {
  background: var(--color-white);
  border: 1px solid var(--color-slate-200);
  border-radius: 1.5rem;
  overflow: hidden;
}

/* Table Header (Title Section) */
.table-header {
  padding: 1.5rem 1.5rem;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-slate-200);
  border-radius: 1.5rem 1.5rem 0 0;
}

.table-header__title {
  margin: 0;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-slate-400);
}

/* When table has header, wrapper loses top border-radius */
.table-header + .table-wrapper {
  border-radius: 0 0 1.5rem 1.5rem;
  border-top: none;
}

/* Table Base */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table thead {
  background: var(--color-slate-50);
}

.table th {
  padding: 1rem 1.25rem;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-slate-500);
  text-align: left;
  border-bottom: 1px solid var(--color-slate-200);
}

.table td {
  padding: 1rem 1.25rem;
  color: var(--color-slate-900);
  border-bottom: 1px solid var(--color-slate-100);
  vertical-align: middle;
}

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

.table tbody tr {
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.table tbody tr:hover {
  background: var(--color-slate-50);
}

/* Table Variants */
.table--striped tbody tr:nth-child(even) {
  background: var(--color-slate-50);
}

.table--striped tbody tr:hover {
  background: rgba(59, 130, 246, 0.05);
}

.table--compact th,
.table--compact td {
  padding: 0.5rem 1rem;
  font-size: 13px;
}

/* Table Cell Styles */
.table-th-icon {
  width: 40px;
  padding: 1rem 0.5rem;
  text-align: center;
}

.table__mono {
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
  font-size: 13px;
  color: var(--color-slate-600);
}

.table__muted {
  color: var(--color-slate-400);
}

.table__success {
  color: var(--color-success);
  font-weight: 700;
}

.table__danger {
  color: var(--color-error);
  font-weight: 700;
}

/* Sortable Headers */
.table__sortable {
  cursor: pointer;
  user-select: none;
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.table__sortable:hover {
  color: var(--color-brand-blue);
}

.table__sortable svg {
  width: 14px;
  height: 14px;
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.5rem;
  opacity: 0.5;
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.table__sortable--active {
  color: var(--color-brand-blue);
}

.table__sortable--active svg {
  opacity: 1;
}

/* Table File */
.table-file {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.table-file__icon {
  width: 20px;
  height: 20px;
  color: var(--color-slate-400);
  flex-shrink: 0;
}

/* Table Actions */
.table-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.table-action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0.75rem;
  color: var(--color-slate-400);
  cursor: pointer;
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.table-action svg {
  width: 18px;
  height: 18px;
}

.table-action:hover {
  background: var(--color-slate-100);
  color: var(--color-brand-blue);
  transform: translateY(-1px);
}

.table-action:active {
  transform: translateY(0) scale(0.95);
}

.table-action--danger:hover {
  background: rgba(239, 68, 68, 0.1);
  color: var(--color-error);
}

/* Table Checkbox */
.table-check {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.table-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.table-check__box {
  position: relative;
  width: 20px;
  height: 20px;
  background: var(--color-white);
  border: 2px solid var(--color-slate-300);
  border-radius: 0.5rem;
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.table-check input:checked ~ .table-check__box {
  background: var(--color-brand-blue);
  border-color: var(--color-brand-blue);
}

.table-check__box::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 6px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.table-check input:checked ~ .table-check__box::after {
  transform: rotate(45deg) scale(1);
}

/* Table User */
.table-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.table-user__avatar {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-slate-200);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 900;
  color: var(--color-slate-900);
  flex-shrink: 0;
}

.table-user__avatar--blue {
  background: rgba(59, 130, 246, 0.2);
  color: var(--color-brand-blue);
}

.table-user__avatar--green {
  background: rgba(16, 185, 129, 0.2);
  color: var(--color-success);
}

.table-user__info {
  display: flex;
  flex-direction: column;
}

.table-user__name {
  font-weight: 700;
  color: var(--color-slate-900);
}

.table-user__role {
  font-size: 13px;
  color: var(--color-slate-400);
}

/* Table Header/Footer */
.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--color-slate-200);
}

.table-header__count {
  font-size: 13px;
  color: var(--color-slate-500);
}

.table-select {
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-slate-900);
  background: var(--color-white);
  border: 1px solid var(--color-slate-200);
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.table-select:hover {
  border-color: var(--color-slate-300);
}

.table-select:focus {
  outline: none;
  border-color: var(--color-brand-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.table-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--color-slate-200);
  display: flex;
  justify-content: center;
}

/* Expandable Row */
.table-row-expandable {
  cursor: pointer;
  position: relative;
}

.table-row-expandable::before {
  content: '';
  position: absolute;
  left: -1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: var(--color-brand-blue);
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.table-row-expandable:hover::before {
  height: 80%;
}

.table-row-project {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.table-expand-icon {
  width: 20px;
  height: 20px;
  color: var(--color-slate-400);
  flex-shrink: 0;
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.table-row-expandable.expanded .table-expand-icon {
  transform: rotate(90deg);
  color: var(--color-brand-blue);
}

.table-row-project-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.table-row-project-name {
  font-weight: 700;
  color: var(--color-slate-900);
}

.table-row-project-code {
  font-size: 12px;
  color: var(--color-slate-400);
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
}

.table-expanded-content {
  display: none;
  background: var(--color-slate-50);
}

.table-expanded-content.visible {
  display: table-row;
}

.table-expanded-inner {
  padding: 1.5rem 1.25rem;
}

.table-expanded-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.table-expanded-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.table-expanded-label {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-slate-500);
}

.table-expanded-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-slate-900);
}

/* Table Progress */
.table-progress {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.table-progress-bar {
  flex: 1;
  height: 8px;
  background: var(--color-slate-100);
  border-radius: 100px;
  overflow: hidden;
}

.table-progress-fill {
  height: 100%;
  background: var(--color-brand-blue);
  border-radius: 100px;
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.table-progress-fill--success {
  background: var(--color-success);
}

.table-progress-fill--warning {
  background: var(--color-warning);
}

.table-progress-fill--error {
  background: var(--color-error);
}

.table-progress-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 12px;
}

.table-progress-text {
  color: var(--color-slate-600);
}

.table-progress-percent {
  font-weight: 700;
  color: var(--color-slate-900);
}

/* Editable Cell */
.table-editable {
  position: relative;
  cursor: text;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.table-editable:hover {
  background: var(--color-slate-50);
}

.table-editable:focus-within {
  background: var(--color-white);
  box-shadow: 0 0 0 2px var(--color-brand-blue);
}

.table-editable input {
  width: 100%;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: transparent;
  border: none;
  outline: none;
}

.table-edit-icon {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: var(--color-slate-300);
  opacity: 0;
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.table-editable:hover .table-edit-icon {
  opacity: 1;
}

/* Table Stats */
.table-stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.table-stat-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 0.75rem;
  flex-shrink: 0;
}

.table-stat-icon svg {
  width: 18px;
  height: 18px;
  color: var(--color-brand-blue);
}

.table-stat-icon--success {
  background: rgba(16, 185, 129, 0.1);
}

.table-stat-icon--success svg {
  color: var(--color-success);
}

.table-stat-icon--warning {
  background: rgba(245, 158, 11, 0.1);
}

.table-stat-icon--warning svg {
  color: var(--color-warning);
}

.table-stat-icon--error {
  background: rgba(239, 68, 68, 0.1);
}

.table-stat-icon--error svg {
  color: var(--color-error);
}

.table-stat-value {
  display: flex;
  flex-direction: column;
}

.table-stat-number {
  font-size: 18px;
  font-weight: 900;
  color: var(--color-slate-900);
}

.table-stat-label {
  font-size: 12px;
  color: var(--color-slate-500);
}

/* Table Tags */
.table-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Table Image */
.table-image {
  width: 60px;
  height: 60px;
  border-radius: 0.75rem;
  object-fit: cover;
  flex-shrink: 0;
}

.table-product {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.table-product-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.table-product-name {
  font-weight: 700;
  color: var(--color-slate-900);
}

.table-product-sku {
  font-size: 12px;
  color: var(--color-slate-400);
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
}

/* Grouped Headers */
.table th[colspan] {
  background: var(--color-slate-50);
  color: var(--color-slate-900);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid var(--color-slate-300);
}

.table thead tr:first-child th[colspan] {
  border-bottom: 1px solid var(--color-slate-200);
}

/* Responsive Tables */
@media (max-width: 768px) {
  .table-wrapper {
    overflow-x: auto;
  }

  .table {
    min-width: 600px;
  }

  .table th,
  .table td {
    padding: 0.75rem 1rem;
  }
  
  .table-expanded-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================================
   TABS
   ========================================================================= */

/* Tabs Container */
.tabs {
  width: 100%;
}

.tabs__list {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid #e2e8f0;
}

.tabs__tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-slate-500);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.tabs__tab:hover {
  color: var(--color-brand-blue);
}

.tabs__tab--active {
  color: var(--color-brand-blue);
  border-bottom-color: var(--color-brand-blue);
}

.tabs__tab svg {
  width: 18px;
  height: 18px;
}

/* Underline Tabs */
.tabs--underline .tabs__list {
  border-bottom: 1px solid #e2e8f0;
}

.tabs--underline .tabs__tab {
  border-bottom-width: 2px;
  margin-bottom: -1px;
}

/* Pills Tabs */
.tabs--pills .tabs__list {
  border-bottom: none;
  gap: 0.25rem;
}

.tabs--pills .tabs__tab {
  border-radius: 0.75rem;
  border: none;
  margin-bottom: 0;
}

.tabs--pills .tabs__tab:hover {
  background: rgba(59, 130, 246, 0.1);
}

.tabs--pills .tabs__tab--active {
  background: var(--color-brand-blue);
  color: var(--color-white);
  border-bottom-color: transparent;
}

/* Icon Only Tabs */
.tabs--icons .tabs__list {
  border-bottom: none;
  gap: 0.25rem;
}

.tabs--icons .tabs__tab {
  width: 40px;
  height: 40px;
  padding: 0;
  justify-content: center;
  border-radius: 0.75rem;
  border: none;
  margin-bottom: 0;
}

.tabs--icons .tabs__tab:hover {
  background: rgba(59, 130, 246, 0.1);
}

.tabs--icons .tabs__tab--active {
  background: rgba(59, 130, 246, 0.15);
  color: var(--color-brand-blue);
}

.tabs--icons .tabs__tab svg {
  width: 20px;
  height: 20px;
}

/* Tab Badge */
.tabs__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 0.375rem;
  font-size: 11px;
  font-weight: 700;
  background: var(--color-slate-100);
  color: var(--color-slate-500);
  border-radius: 100px;
}

.tabs__tab--active .tabs__badge {
  background: rgba(59, 130, 246, 0.15);
  color: var(--color-brand-blue);
}

.tabs__badge--danger {
  background: rgba(239, 68, 68, 0.15);
  color: #dc2626;
}

.tabs--pills .tabs__tab--active .tabs__badge {
  background: rgba(255, 255, 255, 0.25);
  color: var(--color-white);
}

/* =========================================================================
   PAGINATION
   ========================================================================= */

/* Pagination Container */
.pagination {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.pagination__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-slate-500);
  background: var(--color-white);
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pagination__btn:hover {
  border-color: var(--color-brand-blue);
  color: var(--color-brand-blue);
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.pagination__btn--active {
  background: var(--color-brand-blue);
  border-color: var(--color-brand-blue);
  color: var(--color-white);
}

.pagination__btn--active:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: var(--color-white);
}

.pagination__btn--nav svg {
  width: 16px;
  height: 16px;
}

.pagination__btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Text Buttons */
.pagination__btn--text {
  padding: 0 1rem;
}

/* Ellipsis */
.pagination__ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-slate-400);
}

/* Simple Pagination */
.pagination--simple {
  justify-content: space-between;
  width: 100%;
}

.pagination__info {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-slate-500);
}

/* Sizes */
.pagination--sm .pagination__btn {
  min-width: 32px;
  height: 32px;
  padding: 0 0.5rem;
  font-size: 12px;
}

.pagination--sm .pagination__btn--nav svg {
  width: 14px;
  height: 14px;
}

.pagination--sm .pagination__ellipsis {
  min-width: 32px;
  height: 32px;
  font-size: 12px;
}

.pagination--lg .pagination__btn {
  min-width: 48px;
  height: 48px;
  padding: 0 1rem;
  font-size: 16px;
}

.pagination--lg .pagination__btn--nav svg {
  width: 18px;
  height: 18px;
}

.pagination--lg .pagination__ellipsis {
  min-width: 48px;
  height: 48px;
  font-size: 16px;
}

.checkbox input:checked ~ .checkbox__box::after {
  transform: rotate(45deg) scale(1);
}

.checkbox__label {
  font-size: 15px;
  color: var(--color-slate-900);
}

/* Hero Meta Info */
.hero-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--color-slate-500);
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Modal Base */
.modal {
  width: 100%;
  max-width: 480px;
  background: var(--color-white);
  border-radius: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.modal--sm {
  max-width: 360px;
}

.modal--md {
  max-width: 480px;
}

.modal--lg {
  max-width: 640px;
}

.modal--centered {
  text-align: center;
  padding: 2rem;
}

/* Modal Header */
.modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #f1f5f9;
}

.modal__title {
  font-size: 20px;
  font-weight: 900;
  color: var(--color-slate-900);
  letter-spacing: -0.02em;
}

.modal__title--center {
  margin-bottom: 0.5rem;
}

.modal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0.75rem;
  color: var(--color-slate-400);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal__close svg {
  width: 20px;
  height: 20px;
}

.modal__close:hover {
  background: var(--color-slate-100);
  color: var(--color-slate-600);
  transform: rotate(90deg);
}

/* Modal Body */
.modal__body {
  padding: 1.5rem;
}

.modal__text {
  font-size: 15px;
  color: var(--color-slate-600);
  line-height: 1.6;
}

.modal__text--center {
  margin-bottom: 1.5rem;
}

/* Modal Footer */
.modal__footer {
  display: flex;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  background: var(--color-slate-50);
  justify-content: flex-end;
}

.modal__footer--center {
  background: transparent;
  justify-content: center;
  padding: 0;
}

/* Modal Icon */
.modal__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  border-radius: 9999px;
}

.modal__icon svg {
  width: 28px;
  height: 28px;
}

.modal__icon--success {
  background: rgba(16, 185, 129, 0.15);
  color: var(--color-success);
}

.modal__icon--danger {
  background: rgba(220, 38, 38, 0.15);
  color: #dc2626;
}

/* Drawer (Side Panel) */
.drawer-demo {
  display: flex;
  justify-content: flex-end;
  background: var(--color-slate-100);
  border-radius: 2rem;
  padding: 1rem;
  min-height: 400px;
}

.drawer {
  width: 320px;
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border-radius: 2rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.drawer__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem;
  border-bottom: 1px solid #f1f5f9;
}

.drawer__title {
  font-size: 20px;
  font-weight: 900;
  color: var(--color-slate-900);
}

.drawer__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0.75rem;
  color: var(--color-slate-400);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.drawer__close svg {
  width: 20px;
  height: 20px;
}

.drawer__close:hover {
  background: var(--color-slate-100);
  transform: rotate(90deg);
}

.drawer__body {
  flex: 1;
  padding: 1.25rem;
  overflow-y: auto;
}

.drawer__footer {
  display: flex;
  gap: 0.75rem;
  padding: 1.25rem;
  border-top: 1px solid #f1f5f9;
}

/* Tooltips */
.tooltips-row {
  display: flex;
  gap: 2rem;
  justify-content: center;
  padding: 4rem 0;
}

.tooltip-demo {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tooltip-trigger {
  padding: 0.75rem 1.25rem;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-slate-900);
  background: var(--color-white);
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tooltip-trigger:hover {
  border-color: var(--color-brand-blue);
  transform: translateY(-2px);
}

.tooltip {
  position: absolute;
  z-index: 1000;
  pointer-events: none;
}

.tooltip__content {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-white);
  background: var(--color-slate-900);
  border-radius: 0.75rem;
  white-space: nowrap;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.tooltip--top {
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
}

.tooltip--bottom {
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
}

.tooltip--left {
  right: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%);
}

.tooltip--right {
  left: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%);
}

/* Popover */
.popover-demo {
  display: flex;
  justify-content: center;
  padding: 1.5rem;
}

.popover {
  max-width: 300px;
  padding: 1rem;
  background: var(--color-white);
  border: 1px solid #e2e8f0;
  border-radius: 1.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.popover__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.popover__header svg {
  width: 18px;
  height: 18px;
  color: var(--color-brand-blue);
}

.popover__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-slate-900);
}

.popover__text {
  font-size: 14px;
  color: var(--color-slate-600);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.popover__link {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-brand-blue);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.popover__link:hover {
  text-decoration: underline;
  color: #2563eb;
}

/* Command Palette */
.command-palette {
  width: 100%;
  max-width: 560px;
  background: var(--color-white);
  border-radius: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.command-palette__search {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f1f5f9;
}

.command-palette__search svg {
  width: 20px;
  height: 20px;
  color: var(--color-slate-400);
  flex-shrink: 0;
}

.command-palette__input {
  flex: 1;
  padding: 0;
  font-family: var(--font-family);
  font-size: 18px;
  color: var(--color-slate-900);
  background: transparent;
  border: none;
  outline: none;
}

.command-palette__input::placeholder {
  color: var(--color-slate-400);
}

.command-palette__kbd {
  padding: 0.25rem 0.5rem;
  font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
  font-size: 12px;
  color: var(--color-slate-500);
  background: var(--color-slate-100);
  border-radius: 0.5rem;
}

.command-palette__results {
  padding: 0.75rem;
  max-height: 300px;
  overflow-y: auto;
}

.command-palette__group {
  margin-bottom: 0.75rem;
}

.command-palette__group:last-child {
  margin-bottom: 0;
}

.command-palette__group-label {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 11px;
  font-weight: 900;
  color: var(--color-slate-400);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.command-palette__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  font-size: 15px;
  color: var(--color-slate-900);
  text-decoration: none;
  border-radius: 0.75rem;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.command-palette__item svg {
  width: 18px;
  height: 18px;
  color: var(--color-slate-400);
  flex-shrink: 0;
}

.command-palette__item span {
  flex: 1;
}

.command-palette__item kbd {
  padding: 0.25rem 0.5rem;
  font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
  font-size: 12px;
  color: var(--color-slate-400);
  background: var(--color-slate-100);
  border-radius: 0.5rem;
}

.command-palette__item:hover,
.command-palette__item--active {
  background: var(--color-slate-100);
  transform: translateX(2px);
}

.command-palette__item--active svg {
  color: var(--color-brand-blue);
}

/* Checkbox Group (for drawer filters) */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.checkbox input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkbox__box {
  width: 20px;
  height: 20px;
  background: var(--color-white);
  border: 2px solid #cbd5e1;
  border-radius: 0.5rem;
  position: relative;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
}

.checkbox input:checked ~ .checkbox__box {
  background: var(--color-brand-blue);
  border-color: var(--color-brand-blue);
}

.checkbox__box::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 6px;
  width: 5px;
  height: 10px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.checkbox input:checked ~ .checkbox__box::after {
  transform: rotate(45deg) scale(1);
}

.checkbox__label {
  font-size: 15px;
  color: var(--color-slate-900);
}

/* =========================================================================
   PROGRESS & LOADING INDICATORS
   ========================================================================= */

/* Progress Stack & Group */
.progress-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.progress-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

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

.progress-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-slate-600);
}

.progress-value {
  font-size: 14px;
  font-weight: 900;
  color: var(--color-slate-900);
}

/* Progress Bar */
.progress {
  height: 8px;
  background: var(--color-slate-200);
  border-radius: 9999px;
  overflow: hidden;
}

.progress--sm {
  height: 4px;
}

.progress--lg {
  height: 12px;
}

.progress--labeled {
  height: 24px;
}

.progress__bar {
  height: 100%;
  background: var(--color-brand-blue);
  border-radius: 9999px;
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.progress__bar--success {
  background: var(--color-success);
}

.progress__bar--warning {
  background: var(--color-brand-gold);
}

.progress__bar--danger {
  background: #dc2626;
}

.progress__label {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 0.75rem;
  font-size: 12px;
  font-weight: 900;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Animated Progress */
.progress__bar--indeterminate {
  width: 30%;
  animation: indeterminate 1.5s ease-in-out infinite;
}

@keyframes indeterminate {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(400%); }
}

.progress__bar--striped {
  background-image: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.2) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.2) 75%,
    transparent 75%,
    transparent
  );
  background-size: 20px 20px;
  animation: stripes 1s linear infinite;
}

@keyframes stripes {
  from { background-position: 20px 0; }
  to { background-position: 0 0; }
}

/* Spinners */
.spinners-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.spinners-row--align-end {
  align-items: flex-end;
}

.spinner-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--color-white);
  border: 1px solid #e2e8f0;
  border-radius: 1.5rem;
  min-width: 100px;
}

.spinner-box--dark {
  background: var(--color-slate-900);
  border-color: var(--color-slate-900);
}

.spinner-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-slate-500);
}

.spinner-label--light {
  color: var(--color-slate-400);
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #e2e8f0;
  border-top-color: var(--color-slate-500);
  border-radius: 9999px;
  animation: spin 0.8s linear infinite;
}

.spinner--primary {
  border-color: rgba(59, 130, 246, 0.2);
  border-top-color: var(--color-brand-blue);
}

.spinner--smart {
  border-color: rgba(251, 191, 36, 0.2);
  border-top-color: #fbbf24;
}

.spinner--white {
  border-color: rgba(255, 255, 255, 0.2);
  border-top-color: var(--color-white);
}

.spinner--xs {
  width: 16px;
  height: 16px;
  border-width: 2px;
}

.spinner--sm {
  width: 24px;
  height: 24px;
  border-width: 2px;
}

.spinner--lg {
  width: 48px;
  height: 48px;
  border-width: 4px;
}

.spinner--xl {
  width: 64px;
  height: 64px;
  border-width: 5px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Dots Loader */
.dots-loader {
  display: flex;
  gap: 0.5rem;
}

.dots-loader span {
  width: 10px;
  height: 10px;
  background: var(--color-slate-400);
  border-radius: 9999px;
  animation: dotsBounce 1.4s ease-in-out infinite both;
}

.dots-loader span:nth-child(1) {
  animation-delay: -0.32s;
}

.dots-loader span:nth-child(2) {
  animation-delay: -0.16s;
}

.dots-loader--primary span {
  background: var(--color-brand-blue);
}

.dots-loader--smart span {
  background: var(--color-brand-gold);
}

@keyframes dotsBounce {
  0%, 80%, 100% {
    transform: scale(0.6);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Skeleton Loaders */
.skeletons-demo {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.skeleton {
  background: linear-gradient(
    90deg,
    #e2e8f0 25%,
    #f1f5f9 50%,
    #e2e8f0 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: 0.5rem;
}

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

.skeleton--circle {
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  flex-shrink: 0;
}

.skeleton--avatar {
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  flex-shrink: 0;
}

.skeleton--title {
  height: 20px;
  width: 60%;
  margin-bottom: 0.5rem;
}

.skeleton--text {
  height: 14px;
  width: 100%;
  margin-bottom: 0.5rem;
}

.skeleton--line {
  height: 12px;
  width: 100%;
  margin-bottom: 0.5rem;
}

.skeleton--short {
  width: 40%;
}

.skeleton--wide {
  flex: 2;
}

.skeleton--button {
  width: 80px;
  height: 32px;
  border-radius: 0.75rem;
  flex-shrink: 0;
}

.skeleton--cell {
  height: 16px;
  flex: 1;
  border-radius: 0.375rem;
}

/* Skeleton Card */
.skeleton-card {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--color-white);
  border: 1px solid #e2e8f0;
  border-radius: 1.5rem;
}

.skeleton-card__content {
  flex: 1;
}

/* Skeleton Row */
.skeleton-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--color-white);
  border: 1px solid #e2e8f0;
  border-radius: 1.5rem;
}

.skeleton-row__content {
  flex: 1;
}

/* Skeleton Table */
.skeleton-table {
  background: var(--color-white);
  border: 1px solid #e2e8f0;
  border-radius: 1.5rem;
  overflow: hidden;
}

.skeleton-table__row {
  display: flex;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f1f5f9;
}

.skeleton-table__row:last-child {
  border-bottom: none;
}

/* Circular Progress */
.circular-progress {
  position: relative;
  width: 80px;
  height: 80px;
}

.circular-progress svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.circular-progress__bg {
  fill: none;
  stroke: #e2e8f0;
  stroke-width: 8;
}

.circular-progress__bar {
  fill: none;
  stroke: #3b82f6;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 283;
  stroke-dashoffset: calc(283 - (283 * var(--progress)) / 100);
  transition: stroke-dashoffset 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.circular-progress--success .circular-progress__bar {
  stroke: #10b981;
}

.circular-progress--warning .circular-progress__bar {
  stroke: #fbbf24;
}

.circular-progress__value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 18px;
  font-weight: 900;
  color: var(--color-slate-900);
}

}

.slider-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-slate-400);
}

/* === CARDS === */
.card {
  background: white;
  border-radius: 2rem;
  padding: 2rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
  transition: all 0.3s;
}

.card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.card-icon {
  margin-bottom: 1.5rem;
}

.card-icon-gold svg {
  stroke: #fbbf24;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
  color: var(--color-slate-900);
}

.card-text {
  color: var(--color-slate-500);
  line-height: 1.75;
  font-weight: 500;
}

/* === KIT CARDS (Hub Navigation) === */
.kit-card {
  background: var(--color-white);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  border: 1px solid var(--color-slate-200);
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.kit-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transform: translateY(-4px);
  border-color: var(--color-brand-blue);
  text-decoration: none;
}

.kit-card:active {
  transform: translateY(1px) scale(0.98);
}

.kit-card-icon {
  width: 80px;
  height: 80px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.kit-card:hover .kit-card-icon {
  transform: scale(1.05);
}

/* Kit Card Icon Background Gradients */
.kit-card-icon--blue {
  background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
}

.kit-card-icon--dark {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.kit-card-icon--gold {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.kit-card-icon--pink {
  background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
}

.kit-card-icon--purple {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
}

.kit-card-icon--green {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.kit-card-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.kit-card-title {
  font-size: 1.25rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-slate-900);
  margin: 0;
}

.kit-card-text {
  color: var(--color-slate-500);
  line-height: 1.75;
  font-weight: 500;
  font-size: 0.875rem;
}

.kit-card-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  background: var(--color-slate-100);
  color: var(--color-brand-blue);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  align-self: flex-start;
}

/* === CARD TYPE MODIFIERS === */

/* Stat Card */
.kit-card--stat {
  align-items: center;
  text-align: center;
  min-height: 240px;
  justify-content: center;
}

.kit-card--stat .kit-card-content {
  align-items: center;
  gap: 0.5rem;
}

.kit-card__label {
  font-size: 0.75rem;
  font-weight: 900;
  color: var(--color-slate-400);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.kit-card__value {
  font-size: 3rem;
  font-weight: 900;
  color: var(--color-slate-900);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.kit-card__change {
  font-size: 0.75rem;
  font-weight: 900;
  color: var(--color-slate-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.5rem;
}

.kit-card__change--up {
  color: var(--color-success);
}

.kit-card__change--down {
  color: var(--color-error);
}

.kit-card--stat.kit-card--brand {
  background: var(--color-brand-gold);
  border-color: #fbbf24;
}

.kit-card--stat.kit-card--brand:hover {
  background: var(--color-warning);
  border-color: #f59e0b;
}

.kit-card--feature {
  padding: 2.5rem;
}

.kit-card--feature .kit-card-icon {
  width: 64px;
  height: 64px;
}

.kit-card--promo {
  background: var(--color-brand-blue);
  border-color: var(--color-brand-blue);
  color: white;
  min-height: 320px;
  justify-content: space-between;
}

.kit-card--promo .kit-card-title,
.kit-card--promo .kit-card-text {
  color: white;
}

.kit-card--promo .kit-card-text {
  opacity: 0.9;
}

.kit-card--promo .kit-card-badge {
  background: white;
  color: var(--color-brand-blue);
}

.kit-card__bar {
  width: 40px;
  height: 4px;
  background: var(--color-brand-gold);
  border-radius: 9999px;
  margin-bottom: 1.5rem;
}

.kit-card__visual {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
}

.kit-card__visual span {
  height: 4px;
  background: var(--color-slate-200);
  border-radius: 9999px;
}
/* Сохраняем белые декоративные линии только для цветных карточек */
.kit-card--promo .kit-card__visual span,
.kit-card--dark .kit-card__visual span {
  background: rgba(255, 255, 255, 0.3);
}

.kit-card__visual span:first-child {
  width: 60px;
}

.kit-card__visual span:last-child {
  width: 30px;
}

.kit-card--article {
  gap: 1rem;
}

.kit-card--article .kit-card-content {
  gap: 1rem;
}

.kit-card__meta {
  font-size: 0.75rem;
  font-weight: 900;
  color: var(--color-slate-400);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.kit-card--info {
  padding: 1.5rem;
  gap: 1rem;
}

.kit-card--info .kit-card-title {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.kit-card--info .kit-card-text {
  font-size: 0.8125rem;
}

.kit-card--cta {
  background: var(--color-slate-900);
  border-color: var(--color-slate-900);
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 2rem;
}

.kit-card--cta .kit-card-content {
  gap: 0.25rem;
}

.kit-card--cta .kit-card-title {
  color: white;
  font-size: 1.875rem;
}

.kit-card--cta .kit-card-text {
  color: var(--color-slate-400);
  font-size: 0.875rem;
}

.kit-card__button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  background: white;
  border-radius: 1rem;
  color: var(--color-slate-900);
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.kit-card__button svg {
  width: 24px;
  height: 24px;
}

.kit-card--cta:hover .kit-card__button {
  transform: translateX(4px);
  background: var(--color-brand-gold);
}

.kit-card__arrow {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 24px;
  height: 24px;
  color: var(--color-slate-300);
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.kit-card:hover .kit-card__arrow {
  color: var(--color-brand-blue);
  transform: translateX(4px);
}

/* === CARD TYPE MODIFIERS === */

/* Pricing Card */
.kit-card--pricing {
  padding: 2.5rem 2rem;
  text-align: center;
  align-items: center;
  border: 2px solid #e2e8f0;
}

.kit-card--pricing.kit-card--featured {
  border-color: var(--color-brand-blue);
  box-shadow: 0 20px 25px -5px rgba(59, 130, 246, 0.2), 0 10px 10px -5px rgba(59, 130, 246, 0.1);
}

.kit-card__price {
  font-size: 4rem;
  font-weight: 900;
  color: var(--color-slate-900);
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 1rem 0;
}

.kit-card__price-currency {
  font-size: 2rem;
  vertical-align: top;
  opacity: 0.5;
}

.kit-card__price-period {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-slate-500);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.kit-card__features {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  text-align: left;
  width: 100%;
}

.kit-card__features li {
  padding: 0.75rem 0;
  color: var(--color-slate-600);
  font-weight: 500;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.kit-card__features li::before {
  content: "✓";
  color: var(--color-brand-blue);
  font-weight: 900;
  font-size: 1.25rem;
}

/* Testimonial Card */
.kit-card--testimonial {
  padding: 2.5rem;
  gap: 1.5rem;
}

.kit-card__quote {
  font-size: 1.25rem;
  line-height: 1.8;
  color: #1e293b;
  font-weight: 500;
  font-style: italic;
  position: relative;
}

.kit-card__quote::before {
  content: "\201C";
  position: absolute;
  left: -1.5rem;
  top: -0.5rem;
  font-size: 4rem;
  color: var(--color-slate-200);
  font-family: Georgia, serif;
}

.kit-card__author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
}

.kit-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 900;
  font-size: 1.25rem;
}

.kit-card__author-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.kit-card__author-name {
  font-weight: 900;
  color: var(--color-slate-900);
  font-size: 0.9375rem;
}

.kit-card__author-role {
  font-size: 0.8125rem;
  color: var(--color-slate-500);
}

/* Media Card */
.kit-card--media {
  padding: 0;
  overflow: hidden;
}

.kit-card__media {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  position: relative;
  overflow: hidden;
}

.kit-card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
}

.kit-card--media .kit-card-content {
  padding: 1.5rem;
}

.kit-card--media .kit-card__media + .kit-card-content {
  gap: 1rem;
}

/* Notification Card */
.kit-card--notification {
  padding: 1.25rem 1.5rem;
  flex-direction: row;
  align-items: flex-start;
  gap: 1rem;
  border-left: 4px solid #3b82f6;
}

.kit-card--notification.kit-card--success {
  border-left-color: var(--color-success);
  background: rgba(16, 185, 129, 0.02);
}

.kit-card--notification.kit-card--warning {
  border-left-color: #f59e0b;
  background: rgba(245, 158, 11, 0.02);
}

.kit-card--notification.kit-card--error {
  border-left-color: var(--color-error);
  background: rgba(239, 68, 68, 0.02);
}

.kit-card__notification-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-brand-blue);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.kit-card--notification.kit-card--success .kit-card__notification-icon {
  background: var(--color-success);
}

.kit-card--notification.kit-card--warning .kit-card__notification-icon {
  background: var(--color-warning);
}

.kit-card--notification.kit-card--error .kit-card__notification-icon {
  background: var(--color-error);
}

.kit-card__notification-content {
  flex: 1;
}

.kit-card__notification-title {
  font-weight: 900;
  color: var(--color-slate-900);
  font-size: 0.9375rem;
  margin-bottom: 0.25rem;
}

.kit-card__notification-text {
  font-size: 0.8125rem;
  color: var(--color-slate-500);
  line-height: 1.6;
}

/* Team Card */
.kit-card--team {
  align-items: center;
  text-align: center;
  padding: 2.5rem 2rem;
}

.kit-card__team-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.3);
}

.kit-card--team .kit-card-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.kit-card__team-role {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-brand-blue);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.kit-card__team-bio {
  font-size: 0.9375rem;
  color: var(--color-slate-500);
  line-height: 1.7;
}

.kit-card__team-social {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.kit-card__team-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-slate-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-slate-500);
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none;
}

.kit-card__team-social a:hover {
  background: var(--color-brand-blue);
  color: white;
  transform: translateY(-2px);
}

/* Metric Card */
.kit-card--metric {
  gap: 1.5rem;
}

.kit-card__metric-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.kit-card__metric-value {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--color-slate-900);
  letter-spacing: -0.02em;
}

.kit-card__metric-trend {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-success);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 900;
}

.kit-card__metric-trend--down {
  background: rgba(239, 68, 68, 0.1);
  color: var(--color-error);
}

.kit-card__progress {
  width: 100%;
  height: 8px;
  background: var(--color-slate-100);
  border-radius: 9999px;
  overflow: hidden;
}

.kit-card__progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  border-radius: 9999px;
  transition: width 600ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Product Card */
.kit-card--product {
  padding: 0;
  overflow: hidden;
}

.kit-card__product-image {
  width: 100%;
  height: 240px;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.kit-card__product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.375rem 0.75rem;
  background: var(--color-brand-gold);
  color: var(--color-slate-900);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.kit-card--product .kit-card-content {
  padding: 1.5rem;
  gap: 1rem;
}

.kit-card__product-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.kit-card__product-price {
  font-size: 2rem;
  font-weight: 900;
  color: var(--color-brand-blue);
  letter-spacing: -0.02em;
}

.kit-card__product-rating {
  display: flex;
  gap: 0.25rem;
  color: #fbbf24;
}

/* === CARD WIDTH MODIFIERS === */
.kit-card--full {
  width: 100%;
}

.kit-card--half {
  width: 100%;
  max-width: 600px;
}

.kit-card--third {
  width: 100%;
  max-width: 400px;
}

.kit-card--quarter {
  width: 100%;
  max-width: 300px;
}

.kit-card--auto {
  width: auto;
  min-width: 280px;
}

.kit-card--compact {
  padding: 1.25rem;
  min-height: auto;
}

.kit-card--large {
  padding: 3rem;
}

/* === CARD BACKGROUND VARIANTS === */
.kit-card--blue {
  background: var(--color-brand-blue);
  border-color: var(--color-brand-blue);
  color: white;
}

.kit-card--blue .kit-card__label {
  color: rgba(255, 255, 255, 0.7);
}

.kit-card--blue .kit-card__value {
  color: white;
}

.kit-card--blue .kit-card__change {
  color: rgba(255, 255, 255, 0.8);
}

.kit-card--dark {
  background: var(--color-slate-900);
  border-color: var(--color-slate-900);
  color: white;
}

.kit-card--dark .kit-card__label {
  color: rgba(255, 255, 255, 0.5);
}

.kit-card--dark .kit-card__value {
  color: white;
}

.kit-card--dark .kit-card__change {
  color: rgba(255, 255, 255, 0.8);
}

.kit-card--dark .kit-card__change--up {
  color: var(--color-success);
}
/* Исправляем текст на тёмных карточках (metrika-отчёты) */
.kit-card--dark .kit-card-title { color: white; }
.kit-card--dark .kit-card-text  { color: rgba(255, 255, 255, 0.7); }
.kit-card--dark .kit-card-badge { background: rgba(255,255,255,0.15); color: white; }

/* === CARD LAYOUT UTILITIES === */
.cards-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.cards-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cards-stack .kit-card {
  width: 100%;
}

@media (max-width: 768px) {
  .kit-card--half,
  .kit-card--third,
  .kit-card--quarter,
  .kit-card--auto {
    max-width: 100%;
  }
  
  .cards-inline {
    flex-direction: column;
  }
}

/* === STAT CARDS === */
.stat-card {
  background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
  border-radius: 1.5rem;
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.3);
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(59, 130, 246, 0.4), 0 10px 10px -5px rgba(59, 130, 246, 0.1);
}

.stat-value {
  font-size: 3.5rem;
  font-weight: 900;
  color: white;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  position: relative;
}

.stat-label {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.8);
  position: relative;
}

/* === FOOTER === */
.footer {
  padding: 6rem 0;
  text-align: center;
  background: var(--color-slate-900);
  position: relative;
  overflow: hidden;
}

/* Animated dots background */
.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(59, 130, 246, 0.15) 1px, transparent 1px);
  background-size: 30px 30px;
  animation: moveDots 60s linear infinite;
  z-index: 0;
}

@keyframes moveDots {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 30px 30px;
  }
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  opacity: 0.6;
  transition: opacity 0.7s;
}

.footer-brand:hover {
  opacity: 1;
}

.footer-brand svg path:last-child {
  fill: #FBBF24;
}

.footer-brand svg path:nth-child(2) {
  stroke: white;
}

.footer-text {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  text-transform: lowercase;
  color: white;
}

.footer-copy {
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--color-slate-500);
}

/* === UTILITY === */
.text-muted {
  color: var(--color-slate-400);
}

.text-brand {
  color: var(--color-brand-blue);
}

.text-primary {
  color: var(--color-brand-blue);
}

.text-primary-light {
  color: #60a5fa;
}

.text-white {
  color: var(--color-white);
}

.text-slate-300 {
  color: var(--color-slate-300);
}

.text-slate-400 {
  color: var(--color-slate-400);
}

.text-slate-500 {
  color: var(--color-slate-500);
}

.text-hero {
  font-size: 3rem;
}

.text-lg {
  font-size: 1.25rem;
  max-width: 600px;
}

.flex-1 {
  flex: 1;
  min-width: 320px;
}

.text-center {
  text-align: center;
}

.mb-4 {
  margin-bottom: 4rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

.mb-1 {
  margin-bottom: 1rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.gap-1 { gap: var(--spacing-1); }
.gap-2 { gap: var(--spacing-2); }
.gap-3 { gap: var(--spacing-3); }
.gap-4 { gap: var(--spacing-4); }
.gap-5 { gap: var(--spacing-5); }
.gap-6 { gap: var(--spacing-6); }
.gap-7 { gap: var(--spacing-7); }
.gap-8 { gap: var(--spacing-8); }
.gap-10 { gap: var(--spacing-10); }
.gap-12 { gap: var(--spacing-12); }
.gap-16 { gap: var(--spacing-16); }
.gap-20 { gap: var(--spacing-20); }
.gap-24 { gap: var(--spacing-24); }

.max-w-300 {
  max-width: 300px;
}

.max-w-400 {
  max-width: 400px;
}

.max-w-600 {
  max-width: 600px;
}

.max-w-700 {
  max-width: 700px;
}

.max-w-800 {
  max-width: 800px;
}

.max-w-1200 {
  max-width: 1200px;
}

.pt-4 {
  padding-top: 4rem;
}

.mb-3 {
  margin-bottom: 3rem;
}

.nav-link--active {
  color: var(--color-brand-blue);
}

.code-block {
  background: var(--color-slate-900);
  color: var(--color-slate-200);
  padding: 1.5rem;
  border-radius: 0.75rem;
  overflow-x: auto;
  font-size: 0.875rem;
}

.button-demo {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 2rem;
}

.card--warning {
  border-left: 4px solid #ef4444;
}

.warning-title {
  font-size: 1.25rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
  color: var(--color-error);
}

.warning-list {
  list-style-type: none;
  padding-left: 0;
  color: var(--color-slate-500);
  line-height: 2;
}

/* Additional Utility Classes */
.flex-col {
  display: flex;
  flex-direction: column;
}

.flex-start {
  align-items: flex-start;
}

.gap-small {
  gap: 0.75rem;
}

.gap-medium {
  gap: 1.5rem;
}

.gap-large {
  gap: 2rem;
}

.text-sm {
  font-size: 14px;
}

.text-slate-600 {
  color: var(--color-slate-600);
}

.text-slate-700 {
  color: var(--color-slate-700);
}

.text-slate-500 {
  color: var(--color-slate-500);
}

.text-error {
  color: var(--color-error);
}

.text-success {
  color: var(--color-success);
}

.text-gold {
  color: var(--color-brand-gold);
}

.mt-0 {
  margin-top: 0;
}

.mt-half {
  margin-top: 0.5rem;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-quarter {
  margin-bottom: 0.25rem;
}

.mb-half {
  margin-bottom: 0.5rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.m-0 {
  margin: 0;
}

.m-auto {
  margin: 0 auto;
}

.p-1 {
  padding: 1rem;
}

.p-1-5 {
  padding: 1.5rem;
}

.pl-3 {
  padding-left: 3rem;
}

.bg-slate-50 {
  background: var(--color-slate-50);
}

.bg-slate-100 {
  background: var(--color-slate-100);
}

.rounded-lg {
  border-radius: 0.75rem;
}

.rounded-xl {
  border-radius: 1rem;
}

.rounded-full {
  border-radius: 100px;
}

.border-slate-200 {
  border: 1px solid var(--color-slate-200);
}

.border-blue {
  border: 1px solid var(--color-brand-blue);
}

.opacity-40 {
  opacity: 0.4;
}

.cursor-not-allowed {
  cursor: not-allowed;
}

.pointer-events-none {
  pointer-events: none;
}

.flex-shrink-0 {
  flex-shrink: 0;
}

.w-40 {
  width: 40px;
}

.h-40 {
  height: 40px;
}

.w-48 {
  width: 48px;
}

.h-48 {
  height: 48px;
}

.w-64 {
  width: 64px;
}

.h-64 {
  height: 64px;
}

.font-weight-600 {
  font-weight: 600;
}

.font-weight-700 {
  font-weight: 700;
}

.font-size-11 {
  font-size: 11px;
}

.font-size-12 {
  font-size: 12px;
}

.font-size-13 {
  font-size: 13px;
}

.uppercase {
  text-transform: uppercase;
}

.letter-spacing-tight {
  letter-spacing: 0.05em;
}

.position-relative {
  position: relative;
}

.position-absolute {
  position: absolute;
}

.left-1 {
  left: 1rem;
}

.top-50 {
  top: 50%;
  transform: translateY(-50%);
}

.transform-lift {
  transform: translateY(-2px);
}

.transform-scale-95 {
  transform: scale(0.95);
}

.list-styled {
  list-style-position: inside;
  padding-left: 0;
}

.list-styled li {
  margin-bottom: 0.5rem;
}

.icon-16 {
  width: 16px;
  height: 16px;
}

.icon-20 {
  width: 20px;
  height: 20px;
}

.icon-24 {
  width: 24px;
  height: 24px;
}

.icon-28 {
  width: 28px;
  height: 28px;
}

.icon-32 {
  width: 32px;
  height: 32px;
}

.mr-half {
  margin-right: 0.5rem;
}

.min-w-200 {
  min-width: 200px;
}

.max-w-300 {
  max-width: 300px;
}

.info-banner {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.info-banner__icon {
  width: 48px;
  height: 48px;
  background: var(--color-brand-blue);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-banner__icon svg {
  width: 24px;
  height: 24px;
  color: white;
}

.info-banner__content {
  flex: 1;
}

.info-banner__title {
  margin: 0 0 0.5rem;
  font-weight: 700;
}

.info-banner__text {
  margin: 0 0 0.75rem;
  color: var(--color-slate-600);
}

.info-banner__link {
  color: var(--color-brand-blue);
  font-weight: 600;
  text-decoration: none;
}

.icon-demo-box {
  width: 64px;
  height: 64px;
  background: var(--color-slate-50);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  border: 1px solid var(--color-slate-200);
}

.icon-demo-box--hover {
  background: var(--color-slate-100);
  border: 1px solid var(--color-brand-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.icon-demo-box--active {
  background: var(--color-slate-200);
  border: 1px solid var(--color-brand-blue);
  transform: scale(0.95);
}

.icon-demo-box--disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.icon-demo-text {
  font-weight: 600;
  margin: 0 0 0.25rem;
}

.icon-demo-code {
  font-size: 11px;
}

.icon-size-demo {
  padding: 1.5rem;
  background: var(--color-slate-50);
  border-radius: 1rem;
  margin-bottom: 1rem;
}

.icon-size-caption {
  font-size: 12px;
  color: var(--color-slate-500);
  margin-top: 0.5rem;
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 0.75rem;
}

.status-badge--success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-badge--error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.status-badge--gold {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.2);
}

.status-badge__icon {
  width: 40px;
  height: 40px;
  background: var(--color-slate-100);
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.status-badge__title {
  margin: 0;
  font-weight: 600;
}

.status-badge__text {
  margin: 0;
  font-size: 13px;
  color: var(--color-slate-600);
}

.input-icon-wrapper {
  position: relative;
}

.input-icon {
  width: 20px;
  height: 20px;
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-slate-400);
  pointer-events: none;
}

.input--with-icon {
  padding-left: 3rem;
}

.guidelines-box {
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--color-slate-100);
  border-radius: 0.75rem;
}

.guidelines-title {
  margin: 0 0 0.5rem 0;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-slate-700);
}

.guidelines-list {
  margin: 0;
  font-size: 13px;
  color: var(--color-slate-600);
}

.info-box {
  padding: 1rem;
  background: var(--color-slate-50);
  border-radius: 0.5rem;
  border-left: 4px solid var(--color-brand-blue);
}

.info-box__title {
  margin: 0 0 0.5rem;
  font-weight: 600;
}

.card--info {
  border-left: 4px solid #3b82f6;
  margin-top: 2rem;
}

.info-title {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

.h3-title {
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--color-slate-900);
}

.inline-code {
  background: var(--color-slate-100);
  color: var(--color-brand-blue);
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-family: 'Courier New', monospace;
}

.mb-3 {
  margin-bottom: 3rem;
}

.text-caption {
  font-size: 0.875rem;
  margin-top: 0.5rem;
  opacity: 0.7;
}

.product-image {
  width: 100%;
  height: 120px;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
}

.product-image--blue {
  background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
}

.product-image--gold {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.product-image--green {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.product-image--purple {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
}

.product-title {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.product-price {
  color: var(--color-slate-500);
  font-size: 0.875rem;
}

/* === DEMO COMPONENTS === */
.demo-box {
  background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
  color: white;
  padding: 2rem;
  border-radius: 0.75rem;
  text-align: center;
  font-weight: 700;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo-box-secondary {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: var(--color-slate-900);
}

.demo-box-outline {
  background: white;
  border: 2px dashed #3b82f6;
  color: var(--color-brand-blue);
}

.spacing-demo {
  background: var(--color-slate-100);
  border: 1px solid #cbd5e1;
  padding: 0.5rem;
  display: inline-block;
}

.spacing-demo-inner {
  background: var(--color-brand-blue);
  color: white;
  padding: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.demo-grid-2fr-1fr {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
}

.demo-content-box {
  min-height: 200px;
  flex-direction: column;
  text-align: center;
}

.demo-box-label {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.demo-box-desc {
  font-size: 0.75rem;
  opacity: 0.8;
}

.blog-featured-card {
  padding: 3rem;
}

.blog-featured-layout {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.blog-featured-image {
  flex-shrink: 0;
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
  border-radius: 1rem;
}

.badge-featured {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--color-brand-gold);
  color: var(--color-slate-900);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.blog-title {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.blog-text {
  color: var(--color-slate-500);
  margin-bottom: 1rem;
  line-height: 1.75;
}

.blog-grid {
  display: grid;
  gap: 1.5rem;
}

.blog-grid-posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.blog-post-image {
  width: 100%;
  height: 150px;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
}

.blog-post-image--green {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.blog-post-image--purple {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
}

.blog-post-image--pink {
  background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
}

.blog-post-title {
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  text-transform: uppercase;
}

.blog-post-text {
  color: var(--color-slate-500);
  font-size: 0.875rem;
  line-height: 1.6;
}

.stat-card--blue {
  background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
}

.stat-card--gold {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.stat-card--green {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.stat-card--purple {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
}

.stat-card--gold .stat-value,
.stat-card--gold .stat-label {
  color: var(--color-slate-900);
}

.stat-card--gold .stat-label {
  color: rgba(15, 23, 42, 0.8);
}

.card--short {
  min-height: 200px;
}

.card--tall {
  min-height: 350px;
}

.card--medium {
  min-height: 275px;
}

.card-title-small {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.text-muted-small {
  color: var(--color-slate-500);
}

.card--tall {
  min-height: 350px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(30, 64, 175, 0.1) 100%);
}

.card--medium {
  min-height: 250px;
}

.list-simple {
  list-style-type: none;
  padding: 0;
  color: var(--color-slate-500);
}

.text-muted-p {
  color: var(--color-slate-500);
  margin-bottom: 1rem;
}

.card--form {
  max-width: 800px;
  margin: 0 auto 3rem;
}

.form-title-center {
  font-size: 1.25rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 2rem;
  text-align: center;
}

.form-group-spacing {
  margin-top: 1.5rem;
}

.btn-full {
  width: 100%;
  margin-top: 1.5rem;
}

.card--pricing {
  text-align: center;
}

.card--pricing-featured {
  text-align: center;
  border: 2px solid #3b82f6;
  box-shadow: 0 20px 25px -5px rgba(59, 130, 246, 0.2);
}

.badge-popular {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--color-brand-blue);
  color: white;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.pricing-tier {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--color-slate-500);
}

.pricing-amount {
  margin: 2rem 0;
}

.pricing-price {
  font-size: 3rem;
  font-weight: 900;
  color: var(--color-slate-900);
}

.pricing-price--featured {
  color: var(--color-brand-blue);
}

.pricing-period {
  color: var(--color-slate-500);
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  color: var(--color-slate-500);
  text-align: left;
}

.pricing-feature {
  padding: 0.5rem 0;
}

.gallery-item {
  width: 100%;
  padding-bottom: 100%;
  border-radius: 0.75rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gallery-item:hover {
  transform: scale(1.05);
}

.gallery-item--blue {
  background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
}

.gallery-item--gold {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.gallery-item--green {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.gallery-item--purple {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
}

.gallery-item--pink {
  background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
}

.gallery-item--cyan {
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

.gallery-item--orange {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.gallery-item--slate {
  background: linear-gradient(135deg, #64748b 0%, #475569 100%);
}

.gallery-item-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
}

.gallery-item--gold .gallery-item-label,
.gallery-item--orange .gallery-item-label {
  color: var(--color-slate-900);
}

.preloader-demo {
  padding: 3rem;
  text-align: center;
}

.preloader-demo-dark {
  padding: 4rem;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  position: relative;
}

.preloader-loading-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.subsection-title-sm {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

/* === Info Card === */
.card--info {
  border-left: 4px solid var(--color-brand-blue);
  margin-top: 2rem;
}

.info-title {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

.list-simple {
  list-style-type: none;
  padding-left: 0;
  color: var(--color-slate-500);
  line-height: 2;
}

/* === Subsection Elements === */
.subsection-text {
  color: var(--color-slate-500);
  margin-bottom: 1.5rem;
}

/* === Masonry Cards === */
.masonry-grid {
  margin-bottom: 3rem;
}

.masonry-card {
  break-inside: avoid;
  margin-bottom: 1.5rem;
}

.masonry-image {
  width: 100%;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
}

.masonry-image--tall {
  height: 300px;
}

.masonry-image--short {
  height: 150px;
}

.masonry-image--medium {
  height: 220px;
}

.masonry-image--extra-tall {
  height: 400px;
}

.masonry-image--small {
  height: 180px;
}

.masonry-image--tall-alt {
  height: 280px;
}

.masonry-image--standard {
  height: 200px;
}

.masonry-image--minimal {
  height: 120px;
}

.masonry-image--extra-medium {
  height: 160px;
}

.masonry-image--medium-plus {
  height: 240px;
}

.masonry-image--very-tall {
  height: 320px;
}

.masonry-image--ultra-tall {
  height: 350px;
}

.masonry-image--blue {
  background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
}

.masonry-image--gold {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.masonry-image--green {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.masonry-image--purple {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
}

.masonry-image--pink {
  background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
}

.masonry-image--cyan {
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

.masonry-image--orange {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.masonry-image--slate {
  background: linear-gradient(135deg, #64748b 0%, #475569 100%);
}

.masonry-image--blue-purple {
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
}

.masonry-image--green-cyan {
  background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
}

.masonry-image--pink-purple {
  background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
}

.masonry-image--gold-pink {
  background: linear-gradient(135deg, #fbbf24 0%, #ec4899 100%);
}

.masonry-title {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.masonry-text {
  color: var(--color-slate-500);
  font-size: 0.875rem;
  line-height: 1.6;
}

.masonry-text--compact {
  line-height: 1.6;
}

.masonry-features {
  list-style: none;
  padding: 0;
  color: var(--color-slate-500);
  font-size: 0.875rem;
  margin-top: 1rem;
}

/* === Icon Boxes === */
.icon-box {
  width: 48px;
  height: 48px;
  border-radius: 0.75rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-box--blue {
  background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
}

.icon-box--gold {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.icon-box--green {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.card-title {
  font-size: 1rem;
}

/* === Responsive & Flexbox Demo === */
.card--warning {
  border-left: 4px solid var(--color-brand-gold);
}

.warning-title-gold {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
  color: var(--color-brand-gold);
}

/* ===================================================================
   LISTS SYSTEM - v12.0
   =================================================================== */

/* --- Unordered Lists --- */

/* Default unordered list */
.list-default {
  list-style-type: disc;
  list-style-position: outside;
  padding-left: var(--spacing-6);
  margin-bottom: var(--spacing-4);
  color: var(--color-slate-700);
  line-height: 1.75;
}

.list-default li {
  margin-bottom: var(--spacing-2);
  padding-left: var(--spacing-1);
}

.list-default li::marker {
  color: var(--color-brand-blue);
}

/* Circle markers */
.list-circle {
  list-style-type: circle;
  list-style-position: outside;
  padding-left: var(--spacing-6);
  margin-bottom: var(--spacing-4);
  color: var(--color-slate-700);
  line-height: 1.75;
}

.list-circle li {
  margin-bottom: var(--spacing-2);
  padding-left: var(--spacing-1);
}

.list-circle li::marker {
  color: var(--color-brand-blue);
}

/* Square markers */
.list-square {
  list-style-type: square;
  list-style-position: outside;
  padding-left: var(--spacing-6);
  margin-bottom: var(--spacing-4);
  color: var(--color-slate-700);
  line-height: 1.75;
}

.list-square li {
  margin-bottom: var(--spacing-2);
  padding-left: var(--spacing-1);
}

.list-square li::marker {
  color: var(--color-brand-blue);
}

/* --- Ordered Lists --- */

/* Decimal numbering */
.list-decimal {
  list-style-type: decimal;
  list-style-position: outside;
  padding-left: var(--spacing-6);
  margin-bottom: var(--spacing-4);
  color: var(--color-slate-700);
  line-height: 1.75;
}

.list-decimal li {
  margin-bottom: var(--spacing-2);
  padding-left: var(--spacing-1);
}

.list-decimal li::marker {
  color: var(--color-brand-blue);
  font-weight: 700;
}

/* Roman numerals */
.list-roman {
  list-style-type: upper-roman;
  list-style-position: outside;
  padding-left: var(--spacing-6);
  margin-bottom: var(--spacing-4);
  color: var(--color-slate-700);
  line-height: 1.75;
}

.list-roman li {
  margin-bottom: var(--spacing-2);
  padding-left: var(--spacing-1);
}

.list-roman li::marker {
  color: var(--color-brand-blue);
  font-weight: 700;
}

/* Lowercase letters */
.list-alpha {
  list-style-type: lower-alpha;
  list-style-position: outside;
  padding-left: var(--spacing-6);
  margin-bottom: var(--spacing-4);
  color: var(--color-slate-700);
  line-height: 1.75;
}

.list-alpha li {
  margin-bottom: var(--spacing-2);
  padding-left: var(--spacing-1);
}

.list-alpha li::marker {
  color: var(--color-brand-blue);
  font-weight: 700;
}

/* --- Styled Lists --- */

/* Checkmark list */
.list-check {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: var(--spacing-4);
  color: var(--color-slate-700);
  line-height: 1.75;
}

.list-check li {
  position: relative;
  padding-left: var(--spacing-8);
  margin-bottom: var(--spacing-3);
}

.list-check li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-success);
  color: white;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

/* Arrow list */
.list-arrow {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: var(--spacing-4);
  color: var(--color-slate-700);
  line-height: 1.75;
}

.list-arrow li {
  position: relative;
  padding-left: var(--spacing-8);
  margin-bottom: var(--spacing-3);
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.list-arrow li::before {
  content: '→';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-brand-blue);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.75;
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.list-arrow li:hover {
  padding-left: var(--spacing-8);
  color: var(--color-brand-blue);
}

.list-arrow li:hover::before {
  transform: translateX(4px);
}

/* Star list */
.list-star {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: var(--spacing-4);
  color: var(--color-slate-700);
  line-height: 1.75;
}

.list-star li {
  position: relative;
  padding-left: var(--spacing-8);
  margin-bottom: var(--spacing-3);
}

.list-star li::before {
  content: '★';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-brand-gold);
  font-size: 20px;
  line-height: 1.75;
}

/* --- Nested Lists --- */

.list-nested {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: var(--spacing-4);
  color: var(--color-slate-700);
  line-height: 1.75;
}

.list-nested > li {
  position: relative;
  padding-left: var(--spacing-6);
  margin-bottom: var(--spacing-3);
}

.list-nested > li::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--color-brand-blue);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.list-nested ul {
  list-style-type: none;
  padding-left: var(--spacing-6);
  margin-top: var(--spacing-2);
  margin-bottom: 0;
}

.list-nested ul li {
  position: relative;
  padding-left: var(--spacing-5);
  margin-bottom: var(--spacing-2);
  color: var(--color-slate-600);
}

.list-nested ul li::before {
  content: '◦';
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--color-slate-400);
  font-size: 16px;
  line-height: 1;
}

/* --- Unstyled Lists --- */

.list-none {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: var(--spacing-4);
}

.list-none li {
  margin-bottom: var(--spacing-2);
}

/* --- Responsive Lists --- */

.list-responsive {
  list-style-type: none;
  padding-left: 0;
  color: var(--color-slate-500);
  line-height: 2;
}

.list-responsive strong {
  color: var(--color-slate-900);
}

.demo-note {
  font-size: 0.75rem;
  opacity: 0.8;
  margin-top: 0.5rem;
}

.flex-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

.flex-row-responsive {
  display: flex;
  flex-wrap: wrap;
}

.flex-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
  margin-bottom: 3rem;
}

.flex-space-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  background: var(--color-slate-100);
  border-radius: 0.75rem;
  margin-bottom: 1rem;
}

.demo-box-flex {
  min-height: 60px;
  width: 100px;
}

.demo-box-flex-tall {
  min-height: 80px;
  width: 100px;
}

/* === Spacing Scale Table === */
.spacing-table {
  width: 100%;
  border-collapse: collapse;
}

.spacing-table thead tr {
  border-bottom: 2px solid var(--color-slate-200);
}

.spacing-table th {
  text-align: left;
  padding: 1rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
}

.spacing-table tbody tr {
  border-bottom: 1px solid var(--color-slate-100);
}

.spacing-table tbody tr:last-child {
  border-bottom: none;
}

.spacing-table td {
  padding: 1rem;
}

.spacing-table-class {
  font-family: 'Courier New', monospace;
  color: var(--color-brand-blue);
}

.spacing-table-value {
  color: var(--color-slate-500);
}

.spacing-visual {
  height: 20px;
  background: var(--color-brand-blue);
  border-radius: 2px;
}

.spacing-visual--4 { width: 4px; }
.spacing-visual--8 { width: 8px; }
.spacing-visual--12 { width: 12px; }
.spacing-visual--16 { width: 16px; }
.spacing-visual--20 { width: 20px; }
.spacing-visual--24 { width: 24px; }
.spacing-visual--32 { width: 32px; }
.spacing-visual--40 { width: 40px; }
.spacing-visual--48 { width: 48px; }
.spacing-visual--64 { width: 64px; }

.code-inline {
  background: var(--color-slate-100);
  color: var(--color-brand-blue);
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-family: 'Courier New', monospace;
}

.spacing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  color: var(--color-slate-500);
}

.spacing-item {
  display: flex;
  align-items: center;
}

.spacing-item .code-inline {
  flex-shrink: 0;
}

.spacing-label {
  margin-left: 0.5rem;
}

.code-example-dark {
  background: var(--color-slate-900);
  color: var(--color-slate-200);
  padding: 1.5rem;
  border-radius: 0.75rem;
  overflow-x: auto;
  font-size: 0.875rem;
}

/* === Spacing Page Demo === */
.spacing-scale-demo {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.spacing-bar {
  background: linear-gradient(90deg, var(--color-brand-blue) 0%, var(--color-brand-gold) 100%);
  border-radius: var(--radius-sm);
  height: 12px;
  transition: all var(--transition-spring);
}

.spacing-bar:hover {
  transform: scaleX(1.05);
  transform-origin: left;
}

.spacing-bar--1 { width: 4px; }
.spacing-bar--2 { width: 8px; }
.spacing-bar--3 { width: 12px; }
.spacing-bar--4 { width: 16px; }
.spacing-bar--6 { width: 24px; }
.spacing-bar--8 { width: 32px; }

.spacing-scale-list {
  list-style: none;
  padding: 0;
  line-height: 2;
  color: var(--color-slate-500);
}

.spacing-scale-list code {
  margin-right: 0.5rem;
}

.spacing-demo-container {
  background: var(--color-slate-100);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
}

.spacing-demo-box {
  background: linear-gradient(135deg, var(--color-brand-blue) 0%, #1e40af 100%);
  color: white;
  padding: 1rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  position: relative;
  transition: all var(--transition-spring);
}

.spacing-demo-box:hover {
  transform: translateY(-2px);
}

.spacing-demo-box-padded {
  background: var(--color-slate-50);
  border: 2px dashed var(--color-brand-blue);
  color: var(--color-slate-900);
  border-radius: var(--radius-md);
  font-weight: 700;
  position: relative;
  transition: all var(--transition-spring);
}

.spacing-demo-box-padded:hover {
  border-color: var(--color-brand-gold);
  background: var(--color-slate-100);
}

.demo-label {
  position: absolute;
  top: -8px;
  right: 8px;
  background: var(--color-brand-gold);
  color: var(--color-slate-900);
  font-size: 0.625rem;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.05em;
}

.spacing-direction-demo {
  background: var(--color-slate-100);
  padding: 2rem;
  border-radius: var(--radius-lg);
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spacing-direction-box {
  background: linear-gradient(135deg, var(--color-brand-blue) 0%, #1e40af 100%);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  position: relative;
}

.spacing-direction-box-padded {
  background: var(--color-slate-50);
  border: 2px dashed var(--color-brand-blue);
  color: var(--color-slate-900);
  border-radius: var(--radius-md);
  font-weight: 700;
  position: relative;
}

.block {
  display: block;
}

.spacing-rule-section {
  border-left: 4px solid var(--color-brand-blue);
  padding-left: 1.5rem;
}

.card-example {
  background: var(--color-slate-50);
  border: 2px solid var(--color-slate-200);
  border-radius: var(--radius-lg);
  position: relative;
  transition: all var(--transition-spring);
}

.card-example:hover {
  border-color: var(--color-brand-blue);
  transform: translateY(-2px);
}

.section-spacing-demo {
  background: var(--color-slate-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.section-demo {
  background: var(--color-slate-50);
  border: 2px dashed var(--color-slate-300);
  position: relative;
}

.section-demo h3 {
  margin: 0;
  font-size: 1.25rem;
}

.section-demo p {
  margin: 0.5rem 0 0 0;
  color: var(--color-slate-500);
}

.typography-spacing-demo {
  background: var(--color-slate-50);
  padding: 2rem;
  border-radius: var(--radius-lg);
}

.typography-spacing-demo h2,
.typography-spacing-demo h3 {
  margin-top: 0;
}

.typography-spacing-demo ul {
  padding-left: 1.5rem;
}

.gap-demo-box {
  background: linear-gradient(135deg, var(--color-brand-blue) 0%, #1e40af 100%);
  color: white;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  text-align: center;
  transition: all var(--transition-spring);
}

.gap-demo-box:hover {
  transform: scale(1.05);
}

.spacing-reference-table {
  width: 100%;
  border-collapse: collapse;
}

.spacing-reference-table thead tr {
  border-bottom: 2px solid var(--color-slate-200);
}

.spacing-reference-table th {
  text-align: left;
  padding: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
}

.spacing-reference-table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--color-slate-100);
}

.spacing-reference-table tbody tr:last-child td {
  border-bottom: none;
}

.spacing-utilities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 767px) {
  .spacing-utilities-grid {
    grid-template-columns: 1fr;
  }
}

/* === ANIMATIONS === */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* === RESPONSIVE === */
@media (max-width: 767px) {
  .section-title {
    font-size: 1.875rem;
  }
  
  .color-grid {
    grid-template-columns: 1fr;
  }
  
  .button-row {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
}

@media (min-width: 1920px) {
  .section-title {
    font-size: 3rem;
  }
  
  .container {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

/* === PAGE NAVIGATION COMPONENTS === */
/* Back Link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-3);
  margin-bottom: var(--spacing-10);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-black);
  color: var(--color-slate-400);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.back-link svg {
  width: 20px;
  height: 20px;
  transition: transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.back-link:hover {
  color: var(--color-brand-blue);
}

.back-link:hover svg {
  transform: translateX(-4px);
}

/* Page Header */
.page-header {
  margin-bottom: var(--spacing-16);
}

.page-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: var(--font-weight-black);
  color: var(--color-slate-900);
  line-height: 1.1;
  margin: var(--spacing-6) 0 var(--spacing-4) 0;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.page-description {
  font-size: var(--font-size-lg);
  color: var(--color-slate-600);
  line-height: 1.6;
  margin: 0;
  max-width: 48rem;
}

/* === SPACING UTILITIES === */
/* Margin utilities */
.m-0 { margin: 0; }
.m-1 { margin: 0.25rem; }
.m-2 { margin: 0.5rem; }
.m-3 { margin: 0.75rem; }
.m-4 { margin: 1rem; }
.m-5 { margin: 1.25rem; }
.m-6 { margin: 1.5rem; }
.m-8 { margin: 2rem; }
.m-10 { margin: 2.5rem; }
.m-12 { margin: 3rem; }
.m-16 { margin: 4rem; }

/* Margin top */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }

/* Margin bottom */
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }

/* Margin left */
.ml-0 { margin-left: 0; }
.ml-1 { margin-left: 0.25rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-3 { margin-left: 0.75rem; }
.ml-4 { margin-left: 1rem; }
.ml-5 { margin-left: 1.25rem; }
.ml-6 { margin-left: 1.5rem; }
.ml-8 { margin-left: 2rem; }
.ml-10 { margin-left: 2.5rem; }
.ml-12 { margin-left: 3rem; }
.ml-16 { margin-left: 4rem; }

/* Margin right */
.mr-0 { margin-right: 0; }
.mr-1 { margin-right: 0.25rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 0.75rem; }
.mr-4 { margin-right: 1rem; }
.mr-5 { margin-right: 1.25rem; }
.mr-6 { margin-right: 1.5rem; }
.mr-8 { margin-right: 2rem; }
.mr-10 { margin-right: 2.5rem; }
.mr-12 { margin-right: 3rem; }
.mr-16 { margin-right: 4rem; }

/* Margin X-axis (left + right) */
.mx-0 { margin-left: 0; margin-right: 0; }
.mx-1 { margin-left: 0.25rem; margin-right: 0.25rem; }
.mx-2 { margin-left: 0.5rem; margin-right: 0.5rem; }
.mx-3 { margin-left: 0.75rem; margin-right: 0.75rem; }
.mx-4 { margin-left: 1rem; margin-right: 1rem; }
.mx-5 { margin-left: 1.25rem; margin-right: 1.25rem; }
.mx-6 { margin-left: 1.5rem; margin-right: 1.5rem; }
.mx-8 { margin-left: 2rem; margin-right: 2rem; }
.mx-10 { margin-left: 2.5rem; margin-right: 2.5rem; }
.mx-12 { margin-left: 3rem; margin-right: 3rem; }
.mx-16 { margin-left: 4rem; margin-right: 4rem; }

/* Margin Y-axis (top + bottom) */
.my-0 { margin-top: 0; margin-bottom: 0; }
.my-1 { margin-top: 0.25rem; margin-bottom: 0.25rem; }
.my-2 { margin-top: 0.5rem; margin-bottom: 0.5rem; }
.my-3 { margin-top: 0.75rem; margin-bottom: 0.75rem; }
.my-4 { margin-top: 1rem; margin-bottom: 1rem; }
.my-5 { margin-top: 1.25rem; margin-bottom: 1.25rem; }
.my-6 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.my-8 { margin-top: 2rem; margin-bottom: 2rem; }
.my-10 { margin-top: 2.5rem; margin-bottom: 2.5rem; }
.my-12 { margin-top: 3rem; margin-bottom: 3rem; }
.my-16 { margin-top: 4rem; margin-bottom: 4rem; }

/* Padding utilities */
.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-10 { padding: 2.5rem; }
.p-12 { padding: 3rem; }
.p-16 { padding: 4rem; }

/* Padding top */
.pt-0 { padding-top: 0; }
.pt-1 { padding-top: 0.25rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-3 { padding-top: 0.75rem; }
.pt-4 { padding-top: 1rem; }
.pt-5 { padding-top: 1.25rem; }
.pt-6 { padding-top: 1.5rem; }
.pt-8 { padding-top: 2rem; }
.pt-10 { padding-top: 2.5rem; }
.pt-12 { padding-top: 3rem; }
.pt-16 { padding-top: 4rem; }

/* Padding bottom */
.pb-0 { padding-bottom: 0; }
.pb-1 { padding-bottom: 0.25rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pb-3 { padding-bottom: 0.75rem; }
.pb-4 { padding-bottom: 1rem; }
.pb-5 { padding-bottom: 1.25rem; }
.pb-6 { padding-bottom: 1.5rem; }
.pb-8 { padding-bottom: 2rem; }
.pb-10 { padding-bottom: 2.5rem; }
.pb-12 { padding-bottom: 3rem; }
.pb-16 { padding-bottom: 4rem; }

/* Padding left */
.pl-0 { padding-left: 0; }
.pl-1 { padding-left: 0.25rem; }
.pl-2 { padding-left: 0.5rem; }
.pl-3 { padding-left: 0.75rem; }
.pl-4 { padding-left: 1rem; }
.pl-5 { padding-left: 1.25rem; }
.pl-6 { padding-left: 1.5rem; }
.pl-8 { padding-left: 2rem; }
.pl-10 { padding-left: 2.5rem; }
.pl-12 { padding-left: 3rem; }
.pl-16 { padding-left: 4rem; }

/* Padding right */
.pr-0 { padding-right: 0; }
.pr-1 { padding-right: 0.25rem; }
.pr-2 { padding-right: 0.5rem; }
.pr-3 { padding-right: 0.75rem; }
.pr-4 { padding-right: 1rem; }
.pr-5 { padding-right: 1.25rem; }
.pr-6 { padding-right: 1.5rem; }
.pr-8 { padding-right: 2rem; }
.pr-10 { padding-right: 2.5rem; }
.pr-12 { padding-right: 3rem; }
.pr-16 { padding-right: 4rem; }

/* Padding X-axis (left + right) */
.px-0 { padding-left: 0; padding-right: 0; }
.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }
.px-12 { padding-left: 3rem; padding-right: 3rem; }
.px-16 { padding-left: 4rem; padding-right: 4rem; }

/* Padding Y-axis (top + bottom) */
.py-0 { padding-top: 0; padding-bottom: 0; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }

/* === BACKGROUND PATTERNS === */

/* Dot Grid Patterns */
.pattern-dots-light {
  background-color: #f8fafc;
  background-image: radial-gradient(#3b82f6 1px, transparent 1px);
  background-size: 24px 24px;
}

.pattern-dots-dark {
  background-color: var(--color-slate-900);
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  background-attachment: fixed;
  color: var(--color-white);
}

/* Grid Lines Pattern */
.pattern-grid-lines {
  background-color: #f8fafc;
  background-image: 
    linear-gradient(rgba(59, 130, 246, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.1) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Radial Gradient Patterns */
.pattern-radial-blue {
  background: radial-gradient(circle at center, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
}

.pattern-radial-gold {
  background: radial-gradient(circle at center, rgba(251, 191, 36, 0.15) 0%, transparent 70%);
}

/* Solid Background Classes */
.bg-white {
  background-color: var(--color-white);
}

.bg-surface-light {
  background-color: var(--color-slate-100);
}

.bg-dark {
  background-color: var(--color-slate-900);
  color: var(--color-white);
}

.bg-gold {
  background-color: var(--color-brand-gold);
  color: var(--color-slate-900);
}

/* Pattern Preview Boxes */
.pattern-preview {
  height: 180px;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

/* Background Example Boxes */
.bg-example {
  text-align: center;
}

.bg-preview {
  height: 100px;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
}

/* === HERO SECTIONS === */

/* Base Hero */
.hero {
  padding: 4rem 0;
  margin-bottom: 4rem;
}

.hero-badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  background: rgba(59, 130, 246, 0.1);
  color: var(--color-brand-blue);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1;
  margin: 0 0 1rem 0;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--color-slate-900);
}

.hero-subtitle {
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 0 2rem 0;
  line-height: 1.6;
}

/* Hero Variants */
.hero--large {
  padding: 6rem 0;
}

.hero--large .hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  margin-bottom: 1.5rem;
}

.hero--large .hero-subtitle {
  font-size: 1.25rem;
  max-width: 700px;
}

.hero--compact {
  padding: 3rem 0;
  margin-bottom: 3rem;
}

.hero--compact .hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
}

.hero--compact .hero-subtitle {
  font-size: 1rem;
}

/* Hero with Pattern Background */
.hero--pattern {
  position: relative;
  overflow: hidden;
}

/* Hero Features */
.hero-features {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 100px;
  font-size: 0.875rem;
  color: var(--color-slate-300);
}

.hero-feature svg {
  width: 20px;
  height: 20px;
}

/* Hero Actions */
.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

/* Hero Meta Info */
.hero-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--color-slate-500);
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}


/* =========================================================================
   RATING SYSTEM
   ========================================================================= */

/* --- Base Rating --- */

.rating {
  display: inline-flex;
  gap: var(--spacing-1);
  align-items: center;
}

.rating-star {
  font-size: 24px;
  color: var(--color-slate-300);
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: default;
  line-height: 1;
  user-select: none;
}

.rating-star--filled {
  color: var(--color-brand-gold);
}

.rating-star--half {
  background: linear-gradient(90deg, var(--color-brand-gold) 50%, var(--color-slate-300) 50%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Rating Sizes --- */

.rating--sm .rating-star {
  font-size: 16px;
}

.rating--md .rating-star {
  font-size: 20px;
}

.rating--lg .rating-star {
  font-size: 32px;
}

.rating--xl .rating-star {
  font-size: 48px;
}

/* --- Color Variants --- */

.rating--blue .rating-star--filled {
  color: var(--color-brand-blue);
}

.rating--blue .rating-star--half {
  background: linear-gradient(90deg, var(--color-brand-blue) 50%, var(--color-slate-300) 50%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.rating--success .rating-star--filled {
  color: var(--color-success);
}

.rating--success .rating-star--half {
  background: linear-gradient(90deg, var(--color-success) 50%, var(--color-slate-300) 50%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.rating--error .rating-star--filled {
  color: var(--color-error);
}

.rating--error .rating-star--half {
  background: linear-gradient(90deg, var(--color-error) 50%, var(--color-slate-300) 50%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Interactive Rating --- */

.rating--interactive {
  cursor: pointer;
}

.rating--interactive .rating-star {
  cursor: pointer;
}

.rating--interactive .rating-star:hover {
  transform: translateY(-2px) scale(1.1);
}

.rating--interactive .rating-star:active {
  transform: translateY(0) scale(0.95);
}

/* --- Rating with Value --- */

.rating-display {
  display: flex;
  align-items: center;
  gap: var(--spacing-3);
}

.rating-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-slate-600);
}

.rating-value--lg {
  font-size: 18px;
}

/* --- Rating Card --- */

.rating-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-4);
  padding: var(--spacing-8);
  background: var(--color-white);
  border: 1px solid var(--color-slate-200);
  border-radius: var(--spacing-4);
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.rating-card:hover {
  border-color: var(--color-brand-gold);
  box-shadow: 0 10px 25px -5px rgba(251, 191, 36, 0.2);
  transform: translateY(-2px);
}

.rating-card__score {
  font-size: 3rem;
  font-weight: 900;
  color: var(--color-slate-900);
  line-height: 1;
}

.rating-card__label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-slate-500);
}

.rating-card__count {
  font-size: 12px;
  color: var(--color-slate-400);
}

/* --- Rating Breakdown --- */

.rating-breakdown {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-6);
}

.rating-breakdown__header {
  display: flex;
  align-items: center;
  gap: var(--spacing-6);
  padding-bottom: var(--spacing-6);
  border-bottom: 1px solid var(--color-slate-100);
}

.rating-breakdown__score {
  font-size: 4rem;
  font-weight: 900;
  color: var(--color-slate-900);
  line-height: 1;
}

.rating-breakdown__summary {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2);
}

.rating-breakdown__count {
  font-size: 13px;
  color: var(--color-slate-500);
}

.rating-breakdown__bars {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-3);
}

.rating-breakdown__row {
  display: grid;
  grid-template-columns: 20px 24px 1fr 50px;
  align-items: center;
  gap: var(--spacing-3);
}

.rating-breakdown__label {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-slate-600);
}

.rating-breakdown__bar {
  height: 8px;
  background: var(--color-slate-100);
  border-radius: 100px;
  overflow: hidden;
}

.rating-breakdown__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-brand-gold) 0%, var(--color-warning) 100%);
  border-radius: 100px;
  transition: all 600ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.rating-breakdown__percent {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-slate-500);
  text-align: right;
}

/* --- AI Rating Card --- */

.ai-rating-card {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-6);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(251, 191, 36, 0.05) 100%);
  border: 2px solid var(--color-slate-200);
  position: relative;
  overflow: hidden;
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ai-rating-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-brand-blue) 0%, var(--color-brand-gold) 100%);
}

.ai-rating-card:hover {
  border-color: var(--color-brand-gold);
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px rgba(59, 130, 246, 0.15);
}

.ai-rating-card__header {
  display: flex;
  align-items: center;
  gap: var(--spacing-3);
}

.ai-rating-card__icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-brand-gold);
  border-radius: 0.5rem;
  color: var(--color-white);
  flex-shrink: 0;
}

.ai-rating-card__icon svg {
  width: 20px;
  height: 20px;
}

.ai-rating-card__title {
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-slate-700);
}

.ai-rating-card__display {
  display: flex;
  align-items: baseline;
  gap: var(--spacing-4);
}

.ai-rating-card__score {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--color-slate-900);
  line-height: 1;
}

.ai-rating-card__unit {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-slate-500);
}

.ai-rating-card__bar {
  height: 12px;
  background: var(--color-slate-100);
  border-radius: 100px;
  overflow: hidden;
}

.ai-rating-card__bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-brand-blue) 0%, var(--color-brand-gold) 100%);
  border-radius: 100px;
  transition: all 800ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ai-rating-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-2);
}

.ai-rating-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--color-white);
  border: 1px solid var(--color-slate-200);
  border-radius: 100px;
  color: var(--color-slate-600);
}

.ai-rating-tag--highlight {
  background: var(--color-brand-gold);
  border-color: var(--color-brand-gold);
  color: var(--color-white);
}

/* --- Responsive --- */

@media (max-width: 767px) {
  .rating-card__score {
    font-size: 2rem;
  }
  
  .rating-breakdown__header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-4);
  }
  
  .rating-breakdown__score {
    font-size: 3rem;
  }
  
  .rating-breakdown__row {
    grid-template-columns: 16px 20px 1fr 45px;
    gap: var(--spacing-2);
  }
  
  .ai-rating-card__score {
    font-size: 2.5rem;
  }
}

/* =========================================================================
   MODAL SYSTEM
   ========================================================================= */

/* --- Modal Backdrop --- */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  opacity: 0;
  transition: opacity 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-backdrop.active {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

/* --- Modal Container --- */
.modal {
  position: relative;
  background: var(--color-white);
  border-radius: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-width: 90vw;
  max-height: 90vh;
  overflow: hidden;
  transform: scale(0.9) translateY(20px);
  opacity: 0;
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-backdrop.active .modal {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* --- Modal Sizes --- */
.modal--sm {
  width: 400px;
}

.modal--md {
  width: 600px;
}

.modal--lg {
  width: 800px;
}

.modal--xl {
  width: 1000px;
}

.modal--fullscreen {
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  border-radius: 0;
}

/* --- Modal Header --- */
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-6) var(--spacing-8);
  border-bottom: 1px solid var(--color-slate-200);
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-slate-900);
  margin: 0;
}

.modal-close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 0.5rem;
  color: var(--color-slate-400);
  cursor: pointer;
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
}

.modal-close:hover {
  background: var(--color-slate-100);
  color: var(--color-slate-900);
  transform: translateY(-2px);
}

.modal-close:active {
  transform: translateY(0) scale(0.95);
}

.modal-close svg {
  width: 24px;
  height: 24px;
}

/* --- Modal Body --- */
.modal-body {
  padding: var(--spacing-8);
  overflow-y: auto;
  max-height: calc(90vh - 180px);
}

.modal-body p {
  color: var(--color-slate-600);
  line-height: 1.75;
  margin: 0 0 var(--spacing-4) 0;
}

.modal-body p:last-child {
  margin-bottom: 0;
}

/* --- Modal Footer --- */
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--spacing-3);
  padding: var(--spacing-6) var(--spacing-8);
  border-top: 1px solid var(--color-slate-200);
}

/* --- Modal Variants --- */

/* Confirmation Modal */
.modal--confirm .modal-header {
  background: var(--color-slate-50);
}

.modal--confirm .modal-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--spacing-4);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-brand-blue);
  border-radius: 50%;
  color: var(--color-white);
}

.modal--confirm .modal-icon svg {
  width: 32px;
  height: 32px;
}

.modal--confirm .modal-body {
  text-align: center;
}

/* Success Modal */
.modal--success .modal-icon {
  background: var(--color-success);
}

/* Warning Modal */
.modal--warning .modal-icon {
  background: var(--color-warning);
}

.modal--warning .modal-header {
  background: rgba(251, 191, 36, 0.1);
  border-bottom-color: var(--color-warning);
}

/* Danger/Delete Modal */
.modal--danger .modal-icon {
  background: var(--color-error);
}

.modal--danger .modal-header {
  background: rgba(239, 68, 68, 0.1);
  border-bottom-color: var(--color-error);
}

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

/* --- Modal with Image --- */
.modal-image {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: var(--spacing-6);
  border-radius: 1rem;
}

/* --- Scrollable Modal --- */
.modal--scrollable .modal-body {
  max-height: 400px;
}

/* --- Centered Content --- */
.modal-content-center {
  text-align: center;
}

.modal-content-center .modal-title {
  text-align: center;
}

/* --- Animation Variants --- */
.modal-backdrop--slide .modal {
  transform: translateY(-100px);
}

.modal-backdrop--slide.active .modal {
  transform: translateY(0);
}

.modal-backdrop--zoom .modal {
  transform: scale(0.5);
}

.modal-backdrop--zoom.active .modal {
  transform: scale(1);
}

/* --- Dark Modal --- */
.modal--dark {
  background: var(--color-slate-900);
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}

.modal--dark .modal-header {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.modal--dark .modal-footer {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.modal--dark .modal-title {
  color: var(--color-white);
}

.modal--dark .modal-body p {
  color: var(--color-slate-300);
}

.modal--dark .modal-close {
  color: var(--color-slate-400);
}

.modal--dark .modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
}

/* --- Responsive --- */
@media (max-width: 767px) {
  .modal--sm,
  .modal--md,
  .modal--lg,
  .modal--xl {
    width: 95vw;
  }
  
  .modal-header {
    padding: var(--spacing-4) var(--spacing-5);
  }
  
  .modal-body {
    padding: var(--spacing-5);
  }
  
  .modal-footer {
    padding: var(--spacing-4) var(--spacing-5);
    flex-direction: column;
  }
  
  .modal-footer .btn {
    width: 100%;
  }
  
  .modal-title {
    font-size: 1rem;
  }
}

/* =========================================================================
   TABS SYSTEM
   ========================================================================= */

/* --- Tabs Container --- */
.tabs {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-6);
}

/* --- Tab List --- */
.tab-list {
  display: flex;
  gap: var(--spacing-2);
  border-bottom: 2px solid var(--color-slate-200);
  overflow-x: auto;
  scrollbar-width: none;
}

.tab-list::-webkit-scrollbar {
  display: none;
}

/* --- Tab Button --- */
.tab {
  position: relative;
  padding: var(--spacing-4) var(--spacing-6);
  background: transparent;
  border: none;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-slate-500);
  cursor: pointer;
  white-space: nowrap;
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tab::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-brand-blue);
  transform: scaleX(0);
  transition: transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tab:hover {
  color: var(--color-slate-900);
}

.tab.active {
  color: var(--color-brand-blue);
}

.tab.active::after {
  transform: scaleX(1);
}

/* --- Tab Panel --- */
.tab-panel {
  display: none;
  animation: tabFadeIn 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tab-panel.active {
  display: block;
}

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

/* --- Pills Variant --- */
.tab-list--pills {
  border-bottom: none;
  gap: var(--spacing-3);
}

.tab-list--pills .tab {
  padding: var(--spacing-3) var(--spacing-5);
  background: var(--color-slate-100);
  border-radius: 1rem;
}

.tab-list--pills .tab::after {
  display: none;
}

.tab-list--pills .tab:hover {
  background: var(--color-slate-200);
}

.tab-list--pills .tab.active {
  background: var(--color-brand-blue);
  color: var(--color-white);
}

/* --- Bordered Variant --- */
.tab-list--bordered {
  border: 2px solid var(--color-slate-200);
  border-radius: 1rem;
  padding: var(--spacing-2);
  gap: var(--spacing-2);
}

.tab-list--bordered .tab {
  padding: var(--spacing-3) var(--spacing-5);
  border-radius: 0.75rem;
}

.tab-list--bordered .tab::after {
  display: none;
}

.tab-list--bordered .tab.active {
  background: var(--color-slate-900);
  color: var(--color-white);
}

/* --- Full Width Variant --- */
.tab-list--full {
  gap: 0;
}

.tab-list--full .tab {
  flex: 1;
  text-align: center;
}

/* --- Card Variant --- */
.tab-list--cards {
  gap: var(--spacing-4);
  border-bottom: none;
  padding-top: var(--spacing-3);
}

.tab-list--cards .tab {
  padding: var(--spacing-6);
  background: var(--color-white);
  border: 2px solid var(--color-slate-200);
  border-radius: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-2);
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tab-list--cards .tab::after {
  display: none;
}

.tab-list--cards .tab:hover {
  border-color: var(--color-brand-blue);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.tab-list--cards .tab.active {
  border-color: var(--color-brand-blue);
  background: var(--color-brand-blue);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.4);
}

.tab-icon {
  width: 32px;
  height: 32px;
  color: var(--color-slate-400);
  transition: color 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tab:hover .tab-icon {
  color: var(--color-slate-900);
}

.tab.active .tab-icon {
  color: var(--color-brand-blue);
}

.tab-list--cards .tab.active .tab-icon {
  color: var(--color-white);
}

.tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: var(--color-slate-200);
  border-radius: 10px;
  font-size: 11px;
  font-weight: 900;
  color: var(--color-slate-600);
  margin-left: var(--spacing-2);
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tab.active .tab-badge {
  background: var(--color-brand-blue);
  color: var(--color-white);
}

.tab-list--pills .tab.active .tab-badge {
  background: rgba(255, 255, 255, 0.3);
  color: var(--color-white);
}

.tab-list--cards .tab.active .tab-badge {
  background: rgba(255, 255, 255, 0.3);
}

/* --- Vertical Tabs --- */
.tabs--vertical {
  flex-direction: row;
  gap: var(--spacing-8);
}

.tabs--vertical .tab-list {
  flex-direction: column;
  border-bottom: none;
  border-right: 2px solid var(--color-slate-200);
  min-width: 200px;
}

.tabs--vertical .tab {
  text-align: left;
}

.tabs--vertical .tab::after {
  top: 0;
  right: -2px;
  left: auto;
  width: 2px;
  height: 100%;
  transform: scaleY(0);
}

.tabs--vertical .tab.active::after {
  transform: scaleY(1);
}

/* --- Dark Variant --- */
.tab-list--dark {
  background: var(--color-slate-900);
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  border-radius: 1rem;
  padding: var(--spacing-2);
  border-bottom: none;
}

.tab-list--dark .tab {
  color: var(--color-slate-400);
}

.tab-list--dark .tab::after {
  display: none;
}

.tab-list--dark .tab:hover {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.05);
}

.tab-list--dark .tab.active {
  background: var(--color-brand-gold);
  color: var(--color-slate-900);
  border-radius: 0.75rem;
}

/* --- Tab Content with Card --- */
.tab-content-card {
  padding: var(--spacing-8);
  background: var(--color-white);
  border: 2px solid var(--color-slate-200);
  border-radius: 1.5rem;
}

/* --- Responsive --- */
@media (max-width: 767px) {
  .tab-list {
    gap: var(--spacing-1);
  }
  
  .tab {
    padding: var(--spacing-3) var(--spacing-4);
    font-size: 12px;
  }
  
  .tab-list--cards {
    flex-direction: column;
  }
  
  .tab-list--cards .tab {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
  }
  
  .tab-icon {
    width: 24px;
    height: 24px;
  }
  
  .tabs--vertical {
    flex-direction: column;
    gap: var(--spacing-6);
  }
  
  .tabs--vertical .tab-list {
    border-right: none;
    border-bottom: 2px solid var(--color-slate-200);
    min-width: auto;
  }
  
  .tabs--vertical .tab::after {
    top: auto;
    bottom: -2px;
    right: auto;
    left: 0;
    width: 100%;
    height: 2px;
    transform: scaleX(0);
  }
  
  .tabs--vertical .tab.active::after {
    transform: scaleX(1);
  }
}

/* --- Tab with Icon --- */
.tab--with-icon {
  display: flex;
  align-items: center;
  gap: var(--spacing-2);
}

.tab--with-icon .tab-icon {
  width: 20px;
  height: 20px;
}

/* --- Scrollable Tabs Indicator --- */
.tab-list-wrapper {
  position: relative;
}

.tab-list-scroll-indicator {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 60px;
  background: linear-gradient(to right, transparent, var(--color-white));
  pointer-events: none;
  opacity: 0;
  transition: opacity 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tab-list-wrapper.has-scroll .tab-list-scroll-indicator {
  opacity: 1;
}

/* --- Card Tabs Text Styling --- */
.tab-list--cards .tab .type-h5 {
  margin: 0;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-slate-900);
  transition: color 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tab-list--cards .tab.active .type-h5 {
  color: var(--color-white);
}

.tab-card-desc {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-slate-500);
  transition: color 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tab-list--cards .tab.active .tab-card-desc {
  color: rgba(255, 255, 255, 0.8);
}


/* =========================================================================
   ACCORDION SYSTEM
   ========================================================================= */

/* --- Accordion Container --- */
.accordion {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2);
}

/* --- Accordion Item --- */
.accordion-item {
  background: var(--color-white);
  border: 2px solid var(--color-slate-200);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.accordion-item:hover {
  border-color: var(--color-slate-300);
}

.accordion-item.active {
  border-color: var(--color-brand-blue);
}

/* --- Accordion Header --- */
.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-5) var(--spacing-6);
  background: transparent;
  border: none;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-slate-900);
  cursor: pointer;
  text-align: left;
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.accordion-header:hover {
  color: var(--color-brand-blue);
}

.accordion-item.active > .accordion-header {
  color: var(--color-brand-blue);
}

/* --- Accordion Icon --- */
.accordion-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-slate-400);
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.accordion-header:hover .accordion-icon {
  color: var(--color-brand-blue);
}

.accordion-item.active > .accordion-header .accordion-icon {
  transform: rotate(180deg);
  color: var(--color-brand-blue);
}

/* --- Accordion Content --- */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.accordion-body {
  padding: 0 var(--spacing-6) var(--spacing-6) var(--spacing-6);
  color: var(--color-slate-600);
  line-height: 1.75;
}

/* --- Bordered Variant --- */
.accordion--bordered {
  border: 2px solid var(--color-slate-200);
  border-radius: 1.5rem;
  padding: var(--spacing-2);
  gap: 0;
}

.accordion--bordered .accordion-item {
  border: none;
  border-bottom: 1px solid var(--color-slate-200);
  border-radius: 0;
}

.accordion--bordered .accordion-item:last-child {
  border-bottom: none;
}

.accordion--bordered .accordion-item:hover {
  background: var(--color-slate-50);
}

.accordion--bordered .accordion-item.active {
  background: rgba(59, 130, 246, 0.05);
}

/* --- Separated Variant --- */
.accordion--separated {
  gap: var(--spacing-4);
}

.accordion--separated .accordion-item {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.accordion--separated .accordion-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.accordion--separated .accordion-item.active {
  box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.3);
}

/* --- Dark Variant --- */
.accordion--dark .accordion-item {
  background: var(--color-slate-900);
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  border-color: rgba(255, 255, 255, 0.1);
}

.accordion--dark .accordion-header {
  color: var(--color-slate-300);
}

.accordion--dark .accordion-header:hover {
  color: var(--color-white);
}

.accordion--dark .accordion-item.active .accordion-header {
  color: var(--color-brand-gold);
}

.accordion--dark .accordion-icon {
  color: var(--color-slate-500);
}

.accordion--dark .accordion-header:hover .accordion-icon {
  color: var(--color-white);
}

.accordion--dark .accordion-item.active .accordion-icon {
  color: var(--color-brand-gold);
}

.accordion--dark .accordion-body {
  color: var(--color-slate-400);
}

.accordion--dark .accordion-item:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.accordion--dark .accordion-item.active {
  border-color: var(--color-brand-gold);
}

/* --- With Icon Variant --- */
.accordion-header-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-right: var(--spacing-3);
  color: var(--color-brand-blue);
}

.accordion-item.active .accordion-header-icon {
  color: var(--color-brand-blue);
}

.accordion--dark .accordion-header-icon {
  color: var(--color-brand-gold);
}

/* --- Simple Variant (No Border) --- */
.accordion--simple .accordion-item {
  border: none;
  border-bottom: 1px solid var(--color-slate-200);
  border-radius: 0;
  background: transparent;
}

.accordion--simple .accordion-item:last-child {
  border-bottom: none;
}

.accordion--simple .accordion-item:hover {
  background: var(--color-slate-50);
}

/* --- Compact Variant --- */
.accordion--compact .accordion-header {
  padding: var(--spacing-3) var(--spacing-4);
  font-size: 14px;
}

.accordion--compact .accordion-body {
  padding: 0 var(--spacing-4) var(--spacing-4) var(--spacing-4);
  font-size: 14px;
}

.accordion--compact .accordion-icon {
  width: 16px;
  height: 16px;
}

/* --- Nested Accordion --- */
.accordion-nested {
  margin-top: var(--spacing-4);
}

.accordion-nested .accordion-item {
  background: var(--color-slate-50);
  border-color: var(--color-slate-300);
}

.accordion-nested .accordion-header {
  font-size: 14px;
  padding: var(--spacing-3) var(--spacing-4);
}

.accordion-nested .accordion-body {
  padding: 0 var(--spacing-4) var(--spacing-3) var(--spacing-4);
  font-size: 14px;
}

/* --- Accordion with Badge --- */
.accordion-badge {
  margin-left: var(--spacing-3);
}

/* --- Responsive --- */
@media (max-width: 767px) {
  .accordion-header {
    padding: var(--spacing-4) var(--spacing-4);
    font-size: 14px;
  }
  
  .accordion-body {
    padding: 0 var(--spacing-4) var(--spacing-4) var(--spacing-4);
    font-size: 14px;
  }
  
  .accordion-header-icon {
    width: 20px;
    height: 20px;
    margin-right: var(--spacing-2);
  }
  
  .accordion-icon {
    width: 16px;
    height: 16px;
  }
}

/* =========================================================================
   PRICING TABLE SYSTEM
   ========================================================================= */

/* --- Pricing Grid --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-6);
}

@media (min-width: 768px) {
  .pricing-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .pricing-grid--2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
    margin: 0 auto;
  }
}

/* --- Pricing Card --- */
.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--spacing-8);
  background: var(--color-white);
  border: 2px solid var(--color-slate-200);
  border-radius: 1.5rem;
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  border-color: var(--color-slate-300);
}

.pricing-card--featured {
  border-color: var(--color-brand-blue);
  box-shadow: 0 0 0 1px var(--color-brand-blue),
              0 20px 25px -5px rgba(59, 130, 246, 0.2);
}

.pricing-card--featured:hover {
  box-shadow: 0 0 0 1px var(--color-brand-blue),
              0 20px 25px -5px rgba(59, 130, 246, 0.3);
}

/* --- Pricing Card with Dotted Pattern --- */
.pricing-card--dotted {
  background-image: radial-gradient(circle, var(--color-slate-200) 1px, transparent 1px);
  background-size: 20px 20px;
  background-color: var(--color-white);
}

.pricing-card--dotted-blue {
  background-image: radial-gradient(circle, rgba(59, 130, 246, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  background-color: var(--color-white);
  border-color: var(--color-brand-blue);
}

.pricing-card--dotted-gold {
  background-image: radial-gradient(circle, rgba(251, 191, 36, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  background-color: var(--color-white);
  border-color: var(--color-brand-gold);
}

/* --- Dark Variant --- */
.pricing-card--dark {
  background: var(--color-slate-900);
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  border-color: rgba(255, 255, 255, 0.1);
}

.pricing-card--dark:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

/* --- Badge --- */
.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: var(--spacing-2) var(--spacing-5);
  font-size: 12px;
  font-weight: 900;
  color: var(--color-white);
  background: var(--color-brand-blue);
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  white-space: nowrap;
}

.pricing-badge--gold {
  background: var(--color-brand-gold);
  color: var(--color-slate-900);
}

/* --- Header --- */
.pricing-header {
  margin-bottom: var(--spacing-6);
  text-align: center;
}

.pricing-plan {
  font-size: 20px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-slate-900);
  margin-bottom: var(--spacing-2);
}

.pricing-card--dark .pricing-plan {
  color: var(--color-white);
}

.pricing-desc {
  font-size: 14px;
  color: var(--color-slate-500);
  margin: 0;
}

.pricing-card--dark .pricing-desc {
  color: var(--color-slate-400);
}

/* --- Price --- */
.pricing-price-wrapper {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: var(--spacing-2);
  margin-bottom: var(--spacing-8);
  padding-bottom: var(--spacing-6);
  border-bottom: 2px solid var(--color-slate-100);
}

.pricing-card--dark .pricing-price-wrapper {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.pricing-currency {
  font-size: 24px;
  font-weight: 900;
  color: var(--color-slate-400);
}

.pricing-value {
  font-size: 56px;
  font-weight: 900;
  color: var(--color-slate-900);
  line-height: 1;
}

.pricing-card--featured .pricing-value {
  color: var(--color-brand-blue);
}

.pricing-card--dark .pricing-value {
  color: var(--color-white);
}

.pricing-card--dark.pricing-card--featured .pricing-value {
  color: var(--color-brand-gold);
}

.pricing-term {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-slate-400);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* --- Features List --- */
.pricing-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--spacing-8);
  flex: 1;
}

.pricing-feature-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-3);
  padding: var(--spacing-4) 0;
  font-size: 14px;
  color: var(--color-slate-600);
  border-bottom: 1px solid var(--color-slate-100);
}

.pricing-feature-item:last-child {
  border-bottom: none;
}

.pricing-card--dark .pricing-feature-item {
  color: var(--color-slate-300);
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

.pricing-feature-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-success);
}

.pricing-feature-item--disabled {
  color: var(--color-slate-400);
  opacity: 0.5;
}

.pricing-feature-item--disabled .pricing-feature-icon {
  color: var(--color-slate-300);
}

.pricing-card--dark .pricing-feature-item--disabled {
  color: var(--color-slate-600);
}

/* --- Compact Variant --- */
.pricing-card--compact {
  padding: var(--spacing-6);
}

.pricing-card--compact .pricing-plan {
  font-size: 16px;
}

.pricing-card--compact .pricing-value {
  font-size: 40px;
}

.pricing-card--compact .pricing-feature-item {
  padding: var(--spacing-3) 0;
  font-size: 13px;
}

/* --- Comparison Table --- */
.pricing-comparison {
  margin-top: var(--spacing-12);
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
  border-radius: 1rem;
  overflow: hidden;
  border: 2px solid var(--color-slate-200);
}

.pricing-table thead {
  background: var(--color-slate-50);
}

.pricing-table th,
.pricing-table td {
  padding: var(--spacing-4) var(--spacing-5);
  text-align: left;
  border-bottom: 1px solid var(--color-slate-200);
}

.pricing-table th {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-slate-900);
}

.pricing-table td {
  font-size: 14px;
  color: var(--color-slate-600);
}

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

.pricing-table tbody tr:hover {
  background: var(--color-slate-50);
}

.pricing-table-check {
  width: 20px;
  height: 20px;
  color: var(--color-success);
}

.pricing-table-cross {
  width: 20px;
  height: 20px;
  color: var(--color-slate-300);
}

/* --- Toggle (Annual/Monthly) --- */
.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-4);
  margin-bottom: var(--spacing-12);
}

.pricing-toggle-label {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-slate-500);
  cursor: pointer;
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pricing-toggle-label.active {
  color: var(--color-brand-blue);
}

.pricing-toggle-switch {
  position: relative;
  width: 56px;
  height: 28px;
  background: var(--color-slate-200);
  border-radius: 9999px;
  cursor: pointer;
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pricing-toggle-switch.active {
  background: var(--color-brand-blue);
}

.pricing-toggle-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 24px;
  height: 24px;
  background: var(--color-white);
  border-radius: 9999px;
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pricing-toggle-switch.active .pricing-toggle-knob {
  transform: translateX(28px);
}

/* --- Responsive --- */
@media (max-width: 767px) {
  .pricing-card {
    padding: var(--spacing-6);
  }
  
  .pricing-value {
    font-size: 40px;
  }
  
  .pricing-plan {
    font-size: 18px;
  }
  
  .pricing-feature-item {
    font-size: 13px;
  }
  
  .pricing-table {
    font-size: 12px;
  }
  
  .pricing-table th,
  .pricing-table td {
    padding: var(--spacing-3);
  }
}

/* --- Price Animation --- */
.pricing-value {
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* =========================================================================
   CTA (CALL-TO-ACTION) SYSTEM
   ========================================================================= */

/* --- Base CTA Section --- */
.cta-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-20) var(--spacing-6);
  text-align: center;
  background: var(--color-slate-50);
  border-radius: var(--radius-3xl);
  position: relative;
  overflow: hidden;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-2);
  padding: var(--spacing-2) var(--spacing-4);
  background: var(--color-white);
  border: 2px solid var(--color-slate-200);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
  color: var(--color-brand-blue);
  margin-bottom: var(--spacing-6);
}

.cta-title {
  font-size: 48px;
  font-weight: var(--font-weight-black);
  letter-spacing: var(--letter-spacing-tight);
  text-transform: uppercase;
  color: var(--color-slate-900);
  margin-bottom: var(--spacing-4);
  line-height: 1.1;
}

.cta-subtitle {
  font-size: 18px;
  font-weight: var(--font-weight-regular);
  color: var(--color-slate-600);
  line-height: 1.6;
  margin-bottom: var(--spacing-8);
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-4);
  flex-wrap: wrap;
}

/* --- Dark Variant --- */
.cta-section--dark {
  background: var(--color-slate-900);
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}

.cta-section--dark .cta-badge {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--color-brand-gold);
}

.cta-section--dark .cta-title {
  color: var(--color-white);
}

.cta-section--dark .cta-subtitle {
  color: var(--color-slate-400);
}

/* --- Gradient Variant --- */
.cta-section--gradient {
  background: linear-gradient(135deg, var(--color-brand-blue) 0%, var(--color-slate-900) 100%);
}

.cta-section--gradient .cta-badge {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--color-white);
  backdrop-filter: blur(10px);
}

.cta-section--gradient .cta-title {
  color: var(--color-white);
}

.cta-section--gradient .cta-subtitle {
  color: rgba(255, 255, 255, 0.9);
}

.cta-section--dark .btn-outline,
.cta-section--gradient .btn-outline,
.cta-banner .btn-outline,
.cta-countdown .btn-outline {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.cta-section--dark .btn-outline:hover:not(:disabled),
.cta-section--gradient .btn-outline:hover:not(:disabled),
.cta-banner .btn-outline:hover:not(:disabled),
.cta-countdown .btn-outline:hover:not(:disabled) {
  background: var(--color-white);
  color: var(--color-slate-900);
}

.cta-section--dark .btn-ghost,
.cta-section--gradient .btn-ghost {
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
}

.cta-section--dark .btn-ghost:hover:not(:disabled),
.cta-section--gradient .btn-ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.25);
}

/* --- Bordered Variant --- */
.cta-section--bordered {
  border: 4px solid var(--color-brand-blue);
  background: var(--color-white);
}

.cta-section--bordered .cta-title {
  background: linear-gradient(135deg, var(--color-brand-blue) 0%, var(--color-slate-900) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Split CTA --- */
.cta-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 0;
  text-align: left;
}

.cta-split-content {
  padding: var(--spacing-16);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cta-split-visual {
  background: var(--color-slate-200);
  background-image: radial-gradient(circle, var(--color-slate-300) 1px, transparent 1px);
  background-size: 20px 20px;
  position: relative;
  overflow: hidden;
}

.cta-split-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-brand-blue) 0%, var(--color-slate-900) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 48px;
  font-weight: var(--font-weight-black);
  letter-spacing: var(--letter-spacing-tight);
  text-transform: uppercase;
}

.cta-split-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-split .cta-actions {
  justify-content: flex-start;
}

/* --- Minimal Variant --- */
.cta-section--minimal {
  background: transparent;
  border: none;
  padding: var(--spacing-16) var(--spacing-6);
}

.cta-section--minimal .cta-badge {
  background: var(--color-slate-100);
  border-color: var(--color-slate-200);
}

/* --- Compact Variant --- */
.cta-section--compact {
  padding: var(--spacing-12) var(--spacing-6);
}

.cta-section--compact .cta-title {
  font-size: 32px;
  margin-bottom: var(--spacing-3);
}

.cta-section--compact .cta-subtitle {
  font-size: 16px;
  margin-bottom: var(--spacing-6);
}

/* --- Banner CTA --- */
.cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-6) var(--spacing-8);
  background: var(--color-slate-900);
  border-radius: var(--radius-2xl);
  gap: var(--spacing-8);
}

.cta-banner-content {
  flex: 1;
}

.cta-banner-title {
  font-size: 24px;
  font-weight: var(--font-weight-black);
  letter-spacing: var(--letter-spacing-tight);
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: var(--spacing-2);
}

.cta-banner-text {
  font-size: 14px;
  color: var(--color-slate-400);
}

.cta-banner-actions {
  display: flex;
  gap: var(--spacing-3);
  flex-shrink: 0;
}

/* --- Newsletter CTA --- */
.cta-newsletter {
  background: var(--color-white);
  border: 2px solid var(--color-slate-200);
  border-radius: var(--radius-2xl);
  padding: var(--spacing-10);
  text-align: center;
}

.cta-newsletter-title {
  font-size: 28px;
  font-weight: var(--font-weight-black);
  letter-spacing: var(--letter-spacing-tight);
  text-transform: uppercase;
  color: var(--color-slate-900);
  margin-bottom: var(--spacing-3);
}

.cta-newsletter-text {
  font-size: 14px;
  color: var(--color-slate-600);
  margin-bottom: var(--spacing-6);
}

.cta-newsletter-form {
  display: flex;
  gap: var(--spacing-3);
  max-width: 500px;
  margin: 0 auto;
}

.cta-newsletter-input {
  flex: 1;
  padding: var(--spacing-4) var(--spacing-5);
  border: 2px solid var(--color-slate-200);
  border-radius: var(--radius-lg);
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  transition: var(--transition-spring);
}

.cta-newsletter-input:focus {
  outline: none;
  border-color: var(--color-brand-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* --- Video CTA --- */
.cta-video {
  position: relative;
  border-radius: var(--radius-3xl);
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.cta-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 100%);
  z-index: 2;
}

.cta-video-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: var(--color-white);
  max-width: 700px;
  padding: var(--spacing-6);
}

.cta-video-play {
  width: 80px;
  height: 80px;
  background: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-6);
  cursor: pointer;
  transition: var(--transition-spring);
}

.cta-video-play:hover {
  transform: scale(1.1);
  background: var(--color-brand-gold);
}

.cta-video-play svg {
  width: 32px;
  height: 32px;
  color: var(--color-slate-900);
  margin-left: 4px;
}

/* --- Countdown CTA --- */
.cta-countdown {
  background: var(--color-slate-900);
  border-radius: var(--radius-3xl);
  padding: var(--spacing-12);
  text-align: center;
}

.cta-countdown-title {
  color: var(--color-white);
}

.cta-countdown-subtitle {
  color: var(--color-slate-400);
}

.cta-countdown-timer {
  display: flex;
  gap: var(--spacing-6);
  justify-content: center;
  margin: var(--spacing-8) 0;
}

.cta-countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-countdown-value {
  font-size: 48px;
  font-weight: var(--font-weight-black);
  color: var(--color-brand-gold);
  line-height: 1;
  margin-bottom: var(--spacing-2);
}

.cta-countdown-label {
  font-size: 12px;
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
  color: var(--color-slate-500);
}

/* --- Floating CTA --- */
.cta-floating {
  position: fixed;
  bottom: var(--spacing-6);
  right: var(--spacing-6);
  background: var(--color-slate-900);
  border: 2px solid var(--color-slate-700);
  border-radius: var(--radius-2xl);
  padding: var(--spacing-5) var(--spacing-6);
  box-shadow: var(--shadow-2xl);
  z-index: 1000;
  max-width: 400px;
  animation: slideInUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cta-floating--closing {
  animation: slideOutDown 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

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

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

.cta-floating-close {
  position: absolute;
  top: var(--spacing-3);
  right: var(--spacing-3);
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: var(--radius-md);
  color: var(--color-slate-400);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-spring);
}

.cta-floating-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--color-white);
}

.cta-floating-title {
  font-size: 16px;
  font-weight: var(--font-weight-black);
  letter-spacing: var(--letter-spacing-tight);
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: var(--spacing-2);
  padding-right: var(--spacing-8);
}

.cta-floating-text {
  font-size: 13px;
  color: var(--color-slate-400);
  margin-bottom: var(--spacing-4);
}

/* --- Social Proof CTA --- */
.cta-social-proof {
  display: flex;
  align-items: center;
  gap: var(--spacing-6);
  margin-top: var(--spacing-6);
  justify-content: center;
}

.cta-avatars {
  display: flex;
  margin-left: calc(var(--spacing-3) * -1);
}

.cta-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid var(--color-white);
  margin-left: calc(var(--spacing-3) * -1);
  object-fit: cover;
}

.cta-avatar--blue {
  background: linear-gradient(135deg, var(--color-brand-blue) 0%, var(--color-slate-900) 100%);
}

.cta-avatar--gold {
  background: linear-gradient(135deg, var(--color-brand-gold) 0%, var(--color-warning) 100%);
}

.cta-avatar--green {
  background: linear-gradient(135deg, var(--color-success) 0%, var(--color-slate-900) 100%);
}

.cta-avatar--red {
  background: linear-gradient(135deg, var(--color-error) 0%, var(--color-slate-900) 100%);
}

.cta-social-text {
  font-size: 14px;
  color: var(--color-slate-600);
  font-weight: var(--font-weight-medium);
}

.cta-section--dark .cta-social-text,
.cta-section--gradient .cta-social-text {
  color: rgba(255, 255, 255, 0.8);
}

/* --- Feature Grid CTA --- */
.cta-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-6);
  margin: var(--spacing-8) 0;
}

.cta-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--spacing-3);
}

.cta-feature-icon {
  width: 48px;
  height: 48px;
  background: var(--color-brand-blue);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
}

.cta-section--dark .cta-feature-icon,
.cta-section--gradient .cta-feature-icon {
  background: var(--color-brand-gold);
  color: var(--color-slate-900);
}

.cta-feature-icon svg {
  width: 24px;
  height: 24px;
}

.cta-feature-text {
  font-size: 14px;
  font-weight: var(--font-weight-medium);
  color: var(--color-slate-600);
}

.cta-section--dark .cta-feature-text,
.cta-section--gradient .cta-feature-text {
  color: rgba(255, 255, 255, 0.9);
}

/* --- Responsive --- */
@media (max-width: 767px) {
  .cta-title {
    font-size: 32px;
  }
  
  .cta-subtitle {
    font-size: 16px;
  }
  
  .cta-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .cta-actions .btn {
    width: 100%;
  }
  
  .cta-split {
    grid-template-columns: 1fr;
  }
  
  .cta-split-visual {
    min-height: 300px;
  }
  
  .cta-banner {
    flex-direction: column;
    gap: var(--spacing-4);
    text-align: center;
  }
  
  .cta-banner-actions {
    width: 100%;
    flex-direction: column;
  }
  
  .cta-banner-actions .btn {
    width: 100%;
  }
  
  .cta-newsletter-form {
    flex-direction: column;
  }
  
  .cta-countdown-timer {
    gap: var(--spacing-4);
  }
  
  .cta-countdown-value {
    font-size: 36px;
  }
  
  .cta-floating {
    left: var(--spacing-4);
    right: var(--spacing-4);
    bottom: var(--spacing-4);
    max-width: none;
  }
  
  .cta-features {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .cta-title {
    font-size: 40px;
  }
  
  .cta-split-content {
    padding: var(--spacing-12);
  }
}

@media (min-width: 1920px) {
  .cta-title {
    font-size: 64px;
  }
  
  .cta-subtitle {
    font-size: 20px;
  }
  
  .cta-section {
    padding: var(--spacing-24) var(--spacing-6);
  }
}

/* ===============================================
   SALISTICA APP OVERRIDES
   Appended from public/theme/styles/core.css
   =============================================== */

/**
 * Salistica — Core CSS
 * Единая таблица стилей. Подключается на всех страницах.
 * Не редактировать инлайн в страницах — все общие стили здесь.
 */

/* ───────────────────────────────────────────────
   1. CSS Variables (Design Tokens)
─────────────────────────────────────────────── */
:root {
  /* Brand */
  --color-brand-gold:       #D4A843;
  --color-brand-gold-light: #F5E6C8;
  --color-brand-gold-hover: #C09636;
  --color-brand-dark:       #1a1a2e;
  --color-brand-dark2:      #16213e;

  /* Surface (light theme) */
  --color-surface:          #ffffff;
  --color-surface-light:    #f5f6fa;
  --color-surface-alt:      #f1f5f9;
  --color-surface-elevated: #ffffff;

  /* Text */
  --color-text:             #1a1a2e;
  --color-text-muted:       #6b7280;
  --color-text-light:       #9ca3af;
  --color-text-inverse:     #ffffff;

  /* Slate palette */
  --color-slate-50:         #f8fafc;
  --color-slate-100:        #f1f5f9;
  --color-slate-200:        #e2e8f0;
  --color-slate-300:        #cbd5e1;
  --color-slate-400:        #94a3b8;
  --color-slate-500:        #64748b;
  --color-slate-600:        #475569;
  --color-slate-700:        #334155;
  --color-slate-800:        #1e293b;
  --color-slate-900:        #0f172a;

  /* Status */
  --color-success:          #22c55e;
  --color-success-bg:       rgba(34, 197, 94, 0.12);
  --color-error:            #ef4444;
  --color-error-bg:         rgba(239, 68, 68, 0.12);
  --color-warning:          #f59e0b;
  --color-warning-bg:       rgba(245, 158, 11, 0.12);
  --color-info:             #3b82f6;
  --color-info-bg:          rgba(59, 130, 246, 0.12);

  /* Accent */
  --color-accent-blue:      #3b82f6;
  --color-accent-purple:    #8b5cf6;

  /* Border */
  --color-border:           #e2e8f0;
  --color-border-focus:     var(--color-brand-gold);

  /* Primary (alias for brand-dark) */
  --color-primary:          #1a1a2e;

  /* Backward-compat aliases (old code used --gold, --dark) */
  --gold:                   var(--color-brand-gold);
  --gold-light:             var(--color-brand-gold-light);
  --dark:                   var(--color-brand-dark);
  --dark2:                  var(--color-brand-dark2);

  /* Layout */
  --navbar-height:          58px;
  --radius-sm:              6px;
  --radius-md:              10px;
  --radius-lg:              14px;
  --radius-xl:              20px;

  /* Shadows */
  --shadow-sm:              0 1px 3px rgba(0,0,0,0.06);
  --shadow-md:              0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg:              0 8px 24px rgba(0,0,0,0.12);

  /* Transitions */
  --transition:             all 0.18s ease;
}

/* ───────────────────────────────────────────────
   2. Reset & Base
─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
  background: var(--color-surface-light);
  color: var(--color-text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, sans-serif;
  min-height: 100vh;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
button { cursor: pointer; }

/* ───────────────────────────────────────────────
   3. Layout
─────────────────────────────────────────────── */
.container        { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container--narrow{ max-width: 900px;  margin: 0 auto; padding: 0 1.5rem; }
.container--wide  { max-width: 1400px; margin: 0 auto; padding: 0 1.5rem; }

/* ───────────────────────────────────────────────
   4. Navbar
─────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 900;
  height: var(--navbar-height);
}

.navbar--dark {
  background: var(--color-brand-dark);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: #fff;
}

.navbar .container {
  height: 100%;
}

.navbar-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 0.5rem;
}

.navbar-brand { flex-shrink: 0; }

.brand-text {
  color: var(--color-brand-gold) !important;
  font-weight: 800;
  font-size: 1.1rem;
  text-decoration: none;
  letter-spacing: -0.3px;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 1.5rem;
  flex: 1;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  transition: var(--transition);
  white-space: nowrap;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.07);
}

.nav-link--active {
  color: var(--color-brand-gold);
  background: rgba(212,168,67,0.12);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  flex-shrink: 0;
}

/* ───────────────────────────────────────────────
   5. Buttons
─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
  line-height: 1;
}

.btn:disabled { opacity: 0.55; cursor: not-allowed; pointer-events: none; }

/* Sizes */
.btn-sm  { padding: 0.375rem 0.875rem; font-size: 13px; border-radius: var(--radius-sm); }
.btn-lg  { padding: 0.75rem 2rem;      font-size: 15px; }
.btn-xs  { padding: 0.25rem 0.625rem;  font-size: 12px; border-radius: var(--radius-sm); }

/* Variants */
.btn-primary   { background: var(--color-brand-dark); color: #fff; border-color: var(--color-brand-dark); }
.btn-primary:hover { background: #2a2d47; border-color: #2a2d47; }

.btn-gold      { background: var(--color-brand-gold); color: #000; border-color: var(--color-brand-gold); }
.btn-gold:hover{ background: var(--color-brand-gold-hover); border-color: var(--color-brand-gold-hover); }

.btn-outline   { background: transparent; border-color: var(--color-border); color: var(--color-text-muted); }
.btn-outline:hover { border-color: var(--color-brand-gold); color: var(--color-brand-gold); }

.btn-ghost     { background: transparent; border-color: transparent; color: var(--color-text-muted); }
.btn-ghost:hover { background: var(--color-slate-100); color: var(--color-text); }

.btn-danger    { background: transparent; border-color: rgba(239,68,68,0.35); color: var(--color-error); }
.btn-danger:hover { background: var(--color-error-bg); }

.btn-success   { background: var(--color-success); color: #fff; border-color: var(--color-success); }

/* Navbar inverse buttons */
.btn-outline-inverse {
  background: transparent;
  border-color: rgba(255,255,255,0.28);
  color: rgba(255,255,255,0.85);
}
.btn-outline-inverse:hover { border-color: rgba(255,255,255,0.6); color: #fff; }

/* On dark navbar, gold button uses white text for contrast */
.navbar .btn-gold,
.navbar .btn-gold:hover { color: #fff; }

/* ───────────────────────────────────────────────
   6. Cards
─────────────────────────────────────────────── */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.card-body { padding: 1.5rem; }
.card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
}
.card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface-light);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* Metric card variant */
.metric-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.metric-value { font-size: 2rem; font-weight: 800; line-height: 1; }
.metric-label { font-size: 13px; color: var(--color-text-muted); margin-top: 0.25rem; }

/* ───────────────────────────────────────────────
   7. Forms
─────────────────────────────────────────────── */
.form-group   { margin-bottom: 1rem; }
.form-label   {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 0.375rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.form-hint    { font-size: 12px; color: var(--color-text-light); margin-top: 0.25rem; }

.input, .form-input, .form-control {
  width: 100%;
  padding: 0.625rem 0.875rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-size: 14px;
  transition: var(--transition);
}
.input:focus, .form-input:focus, .form-control:focus {
  outline: none;
  border-color: var(--color-brand-gold);
  box-shadow: 0 0 0 3px rgba(212,168,67,0.12);
}
.input::placeholder,
.form-input::placeholder { color: var(--color-text-light); }

select.input, select.form-input { cursor: pointer; }

/* ───────────────────────────────────────────────
   8. Badges & Status
─────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-trial    { background: var(--color-info-bg);    color: var(--color-info); }
.badge-active   { background: var(--color-success-bg); color: var(--color-success); }
.badge-expired,
.badge-cancelled{ background: var(--color-error-bg);   color: var(--color-error); }
.badge-warning  { background: var(--color-warning-bg); color: var(--color-warning); }
.badge-muted    { background: var(--color-slate-100);  color: var(--color-slate-500); }
.badge-gold     { background: rgba(212,168,67,0.15);   color: var(--color-brand-gold); }
.badge-current  { background: rgba(212,168,67,0.18);   color: var(--color-brand-gold); }

/* ───────────────────────────────────────────────
   9. Alerts
─────────────────────────────────────────────── */
.alert {
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 14px;
  margin-bottom: 1rem;
}
.alert-error   { background: var(--color-error-bg);   color: var(--color-error);   border: 1px solid rgba(239,68,68,0.25); }
.alert-success { background: var(--color-success-bg); color: var(--color-success); border: 1px solid rgba(34,197,94,0.25); }
.alert-warning { background: var(--color-warning-bg); color: #92400e;              border: 1px solid rgba(245,158,11,0.25); }
.alert-info    { background: var(--color-info-bg);    color: var(--color-info);    border: 1px solid rgba(59,130,246,0.25); }

/* ───────────────────────────────────────────────
   10. Tables
─────────────────────────────────────────────── */
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th {
  background: var(--color-slate-50);
  padding: 0.6rem 0.875rem;
  text-align: left;
  font-weight: 600;
  color: var(--color-text-muted);
  border-bottom: 2px solid var(--color-border);
  white-space: nowrap;
}
.table td { padding: 0.6rem 0.875rem; border-bottom: 1px solid var(--color-border); }
.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: var(--color-surface-light); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table-scroll { overflow-x: auto; }

/* ───────────────────────────────────────────────
   11. Page Header
─────────────────────────────────────────────── */
.page-header { padding: 2rem 0 1.5rem; }
.page-title  { font-size: 1.75rem; font-weight: 800; color: var(--color-text); margin-bottom: 0.25rem; }
.page-subtitle { font-size: 14px; color: var(--color-text-muted); }

/* ───────────────────────────────────────────────
   12. Section headings
─────────────────────────────────────────────── */
.section-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-brand-gold);
  margin-bottom: 0.875rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}

/* ───────────────────────────────────────────────
   13. Utility — spacing, flex, text
─────────────────────────────────────────────── */
/* Display */
.hidden        { display: none; }
.block         { display: block; }
.inline-block  { display: inline-block; }
.inline-flex   { display: inline-flex; }

/* Flex */
.flex          { display: flex; }
.flex-col      { flex-direction: column; }
.items-center  { align-items: center; }
.items-start   { align-items: flex-start; }
.justify-between{ justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-wrap     { flex-wrap: wrap; }
.flex-1        { flex: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.nowrap        { white-space: nowrap; }

/* Gap */
.gap-1 { gap: 0.25rem; } .gap-2 { gap: 0.5rem; }  .gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }    .gap-6 { gap: 1.5rem; }   .gap-8 { gap: 2rem; }

/* Grid */
.grid          { display: grid; gap: 1.5rem; }
.grid-cols-2   { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3   { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4   { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .grid-cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
  .grid-cols-2, .grid-cols-3, .grid-cols-4 { grid-template-columns: 1fr; }
}

/* Margin */
.mt-1 { margin-top: 0.25rem; } .mt-2 { margin-top: 0.5rem; } .mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }    .mt-6 { margin-top: 1.5rem; } .mt-8 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.25rem; } .mb-2 { margin-bottom: 0.5rem; } .mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; } .mb-6 { margin-bottom: 1.5rem; } .mb-8 { margin-bottom: 2rem; }
.ml-auto { margin-left: auto; }
.ml-2 { margin-left: 0.5rem; }
.mr-2 { margin-right: 0.5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Padding */
.pt-2 { padding-top: 0.5rem; }
.pt-4 { padding-top: 1rem; }
.pt-6 { padding-top: 1.5rem; }
.pt-8 { padding-top: 2rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.p-4 { padding: 1rem; } .p-6 { padding: 1.5rem; } .p-8 { padding: 2rem; }

/* Text */
.text-muted    { color: var(--color-text-muted); }
.text-light    { color: var(--color-text-light); }
.text-gold     { color: var(--color-brand-gold); }
.text-success  { color: var(--color-success); }
.text-error    { color: var(--color-error); }
.text-warning  { color: var(--color-warning); }
.text-info     { color: var(--color-info); }
.text-center   { text-align: center; }
.text-right    { text-align: right; }
.text-no-decoration { text-decoration: none; }

.text-xs       { font-size: 11px; }
.text-sm       { font-size: 13px; }
.text-base     { font-size: 14px; }
.text-md       { font-size: 15px; }
.text-lg       { font-size: 1.1rem; }
.text-xl       { font-size: 1.25rem; }
.text-2xl      { font-size: 1.5rem; }
.text-3xl      { font-size: 2rem; }
.text-icon-lg  { font-size: 3rem; }

.font-bold     { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-extrabold{ font-weight: 800; }
.type-label-sm { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-text-muted); }

/* Background */
.bg-surface       { background: var(--color-surface); }
.bg-surface-light { background: var(--color-surface-light); }

/* Border */
.border-bottom { border-bottom: 1px solid var(--color-border); }
.border-top    { border-top:    1px solid var(--color-border); }
.rounded       { border-radius: var(--radius-md); }
.rounded-lg    { border-radius: var(--radius-lg); }

/* Width */
.w-full        { width: 100%; }
.max-w-sm      { max-width: 400px; }
.max-w-md      { max-width: 560px; }
.max-w-lg      { max-width: 860px; }

/* ───────────────────────────────────────────────
   14. Page Layout
─────────────────────────────────────────────── */
.main-content    { padding-top: 2rem; padding-bottom: 3rem; }

/* Container narrow for settings-type pages */
.container--settings { max-width: 860px; margin: 0 auto; padding: 0 1.5rem; }

/* Section block */
.section         { margin-bottom: 2.5rem; }

/* ───────────────────────────────────────────────
   15. Form Grid (2-col forms)
─────────────────────────────────────────────── */
.form-grid       { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

/* ───────────────────────────────────────────────
   16. Branch Cards (settings)
─────────────────────────────────────────────── */
.branch-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 0.875rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
}
.branch-card.current { border-color: var(--color-brand-gold); box-shadow: 0 0 0 1px var(--color-brand-gold); }
.branch-avatar {
  width: 42px; height: 42px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-brand-gold), var(--color-brand-gold-hover));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem; color: #fff; flex-shrink: 0;
}
.branch-info    { flex: 1; min-width: 0; }
.branch-name    { font-weight: 700; font-size: 0.95rem; }
.branch-meta    { font-size: 12px; color: var(--color-text-muted); margin-top: 2px; }
.branch-actions { display: flex; gap: 0.5rem; }

/* ───────────────────────────────────────────────
   17. Card Variants
─────────────────────────────────────────────── */
.card--dashed {
  background: var(--color-surface);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-sm);
}
.card--setup {
  max-width: 560px;
  text-align: center;
  padding: 3rem 2rem;
}
.card--promo {
  border: 2px solid var(--color-brand-gold);
  background: linear-gradient(135deg, #fffdf5 0%, #fff9e6 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  flex-wrap: wrap;
}
.card--promo-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.35rem; }
.card--promo-desc  { font-size: 0.875rem; color: var(--color-text-muted); }

/* ───────────────────────────────────────────────
   18. Tip Box
─────────────────────────────────────────────── */
.tip-box {
  background: rgba(212,168,67,0.07);
  border: 1px solid rgba(212,168,67,0.2);
  border-radius: var(--radius-md);
  padding: 0.875rem 1.25rem;
  font-size: 13px;
  color: #b8860b;
  margin-bottom: 1rem;
}

/* ───────────────────────────────────────────────
   19. Account Info (settings)
─────────────────────────────────────────────── */
.account-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}
.account-field-label {
  font-size: 13px;
  color: var(--color-text-light);
  margin-bottom: 2px;
}
.account-field-value {
  font-weight: 600;
}

/* ───────────────────────────────────────────────
   20. KIT Card (dashboard KPI)
─────────────────────────────────────────────── */
.kit-card__label    { font-size: 13px; color: var(--color-text-muted); display: block; margin-bottom: 0.25rem; }
.kit-card__value    { font-size: 2rem; font-weight: 800; line-height: 1; }
.kit-card__value--sm{ font-size: 1.3rem; }
.kit-card__change   { font-size: 13px; font-weight: 600; margin-top: 0.25rem; display: block; }
.kit-card__metric-value { font-size: 1.75rem; font-weight: 800; line-height: 1; }

/* Kit card color borders — сброс фона/цвета чтобы перекрыть старые colored-card стили */
.kit-card--blue    { border-left: 4px solid var(--color-info);           background: #fff; color: var(--color-slate-900); }
.kit-card--purple  { border-left: 4px solid var(--color-accent-purple);  background: #fff; color: var(--color-slate-900); }
.kit-card--warning { border-left: 4px solid var(--color-warning);        background: #fff; color: var(--color-slate-900); }
.kit-card--gold    { border-left: 4px solid var(--color-brand-gold);     background: #fff; color: var(--color-slate-900); }
.kit-card--success { border-left: 4px solid var(--color-success);        background: #fff; color: var(--color-slate-900); }
.kit-card--fire    { border-left: 4px solid #FF5722;                     background: #fff; color: var(--color-slate-900); }
.kit-card--pink    { border-left: 4px solid #E91E63;                     background: #fff; color: var(--color-slate-900); }
.kit-card--violet  { border-left: 4px solid #9C27B0;                     background: #fff; color: var(--color-slate-900); }
.kit-card--green   { border-left: 4px solid #4CAF50;                     background: #fff; color: var(--color-slate-900); }
/* Тёмная и промо-карточка — тоже бордер, без цветного фона (для dashboard KPI) */
.kit-card--dark    { border-left: 4px solid var(--color-slate-700);      background: #fff; color: var(--color-slate-900); }
.kit-card--promo   { border-left: 4px solid var(--color-brand-blue);     background: #fff; color: var(--color-slate-900); }
/* Сброс белого цвета дочерних элементов (перекрываем kit-card--blue/dark/promo из старого блока) */
.kit-card--blue .kit-card__label,
.kit-card--blue .kit-card__value,
.kit-card--blue .kit-card__change,
.kit-card--dark .kit-card__label,
.kit-card--dark .kit-card__value,
.kit-card--dark .kit-card__change,
.kit-card--promo .kit-card__label,
.kit-card--promo .kit-card__value,
.kit-card--promo .kit-card__change { color: inherit; }

/* ───────────────────────────────────────────────
   21. Chart Container
─────────────────────────────────────────────── */
.chart-container     { position: relative; height: 300px; }
.chart-container--sm { height: 220px; }
.chart-container--md { height: 260px; }
.chart-container--xs { height: 200px; }
.chart-container--lg { height: 350px; }
.chart-container--xl { height: 400px; }

/* ───────────────────────────────────────────────
   22. Comparison bar (network vs branch)
─────────────────────────────────────────────── */
.cmp-detail       { margin-top: 0.5rem; }
.cmp-row          { display: flex; justify-content: space-between; font-size: 12px; color: var(--color-slate-400); margin-bottom: 3px; }
.cmp-bar-track    { background: var(--color-slate-200); border-radius: 4px; height: 8px; position: relative; }
.cmp-bar-fill     { height: 8px; border-radius: 4px; position: absolute; top: 0; left: 0; width: 0%; }
.cmp-bar-fill--gold    { background: var(--color-brand-gold); }
.cmp-bar-fill--info    { background: var(--color-info); }
.cmp-bar-fill--success { background: var(--color-success); }
.cmp-avg-line     { position: absolute; top: -2px; width: 2px; height: 12px; background: var(--color-slate-500); border-radius: 1px; }
.cmp-legend       { display: flex; justify-content: space-between; font-size: 11px; color: var(--color-slate-400); margin-top: 2px; }

/* ───────────────────────────────────────────────
   23. Dashboard Extra
─────────────────────────────────────────────── */
.dashboard-grid  { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
@media (max-width: 1024px) { .dashboard-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .dashboard-grid { grid-template-columns: 1fr; } }
/* ── Date Range Bar ── */
.date-range-form { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }

/* Period toggle group */
.period-group {
  display: flex;
  background: var(--color-white);
  border: 1px solid var(--color-slate-200);
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}
.period-group .period-btn {
  border: none !important;
  background: transparent !important;
  border-radius: 7px !important;
  padding: 0.3rem 0.875rem !important;
  font-size: 13px !important;
  font-weight: 500;
  color: var(--color-slate-500);
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.period-group .period-btn:hover {
  color: var(--color-slate-800);
  background: var(--color-slate-100) !important;
}
.period-group .period-btn.active {
  background: var(--color-brand-gold) !important;
  color: #fff !important;
  box-shadow: 0 1px 4px rgba(251,191,36,0.35);
}

/* Daterange picker composite */
.daterange-picker {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-white);
  border: 1px solid var(--color-slate-200);
  border-radius: 10px;
  padding: 0.3rem 0.5rem 0.3rem 0.75rem;
  color: var(--color-slate-400);
  transition: border-color 0.18s;
  cursor: pointer;
}
.daterange-picker:focus-within { border-color: var(--color-brand-blue); }
.daterange-input {
  border: none !important;
  outline: none !important;
  background: transparent;
  font-size: 13px;
  color: var(--color-slate-700);
  padding: 0;
  width: 130px;
  cursor: pointer;
}
.daterange-sep { color: var(--color-slate-300); font-size: 13px; }
.daterange-apply {
  background: var(--color-slate-800);
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 0.3rem 0.875rem;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s;
  white-space: nowrap;
  margin-left: 4px;
}
.daterange-apply:hover { background: var(--color-brand-blue); }

.input--sm       { width: 160px; padding: 0.4rem 0.75rem; font-size: 13px; }
.sync-indicator  { display: inline-flex; align-items: center; gap: 0.5rem; }
.sync-dot        { width: 8px; height: 8px; border-radius: 50%; background: var(--color-success); }
.sync-dot--error { background: var(--color-error); }
.sync-dot--syncing { background: var(--color-warning); animation: pulse 1s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ── Network comparison overlay ── */
.widget-controls .net-cmp-btn {
  margin-top: 0;
  align-self: center;
}
.net-cmp-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid var(--color-slate-200);
  background: var(--color-slate-50);
  color: var(--color-slate-400);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  letter-spacing: 0.03em;
}
.net-cmp-btn:hover {
  border-color: var(--color-brand-gold);
  color: var(--color-brand-gold);
  background: #fffbeb;
}
.net-cmp-btn.active {
  background: var(--color-brand-gold);
  border-color: var(--color-brand-gold);
  color: #fff;
  box-shadow: 0 1px 4px rgba(251,191,36,0.35);
}
.net-cmp-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.25rem; width: 100%; align-self: stretch; }
.net-cmp-row { font-size: 11px; color: var(--color-slate-400); margin-top: 0.5rem; display: none; }
.net-cmp-row span { margin-right: 4px; }
.card-title-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.card-title-row .card-title { margin-bottom: 0; }
/* Syncing toast */
.syncing-toast {
  position: fixed; top: 70px; left: 50%; transform: translateX(-50%);
  z-index: 9000;
  background: var(--color-brand-dark); color: #fff;
  border-radius: 40px; padding: 0.6rem 1.25rem 0.6rem 0.9rem;
  display: flex; align-items: center; gap: 0.75rem;
  box-shadow: var(--shadow-lg); font-size: 0.875rem; font-weight: 500; white-space: nowrap;
}
.syncing-toast__dot {
  width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid rgba(212,168,67,0.4); border-top-color: var(--color-brand-gold);
  animation: spin 0.85s linear infinite; flex-shrink: 0;
}
.syncing-toast__counter { color: rgba(255,255,255,0.5); margin-left: 0.25rem; font-size: 0.8rem; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ───────────────────────────────────────────────
   24. Auth Pages (login, register, onboarding)
─────────────────────────────────────────────── */
.page-auth {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}
.auth-container {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
}
.auth-logo {
  text-align: center;
  margin-bottom: 2rem;
}
.auth-logo-text {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-brand-gold);
  letter-spacing: -0.5px;
}
.auth-logo-sub {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}
.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 13px;
  color: var(--color-text-muted);
}
.auth-link {
  color: var(--color-brand-gold);
  text-decoration: none;
  font-weight: 600;
}
.auth-link:hover { text-decoration: underline; }
.auth-divider {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}
.auth-divider-text {
  color: var(--color-text-muted);
  font-size: 14px;
}
.auth-forgot {
  text-align: center;
  margin-top: 1rem;
}
.auth-or-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0 0.5rem;
  color: var(--color-text-light);
  font-size: 13px;
}
.auth-or-divider::before,
.auth-or-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}
.btn-auth-submit {
  display: block;
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--color-brand-gold) 0%, #C09636 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 0.5rem;
}
.btn-auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(212,168,67,0.3);
}
.btn-auth-oauth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 0.875rem 1rem;
  background: #fff;
  color: var(--color-text);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  margin-top: 0.75rem;
}
.btn-auth-oauth:hover {
  border-color: var(--color-brand-gold);
  background: #fffbf0;
  transform: translateY(-1px);
}
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9900;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  background: var(--color-brand-dark);
  color: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  font-weight: 500;
  animation: toastIn 0.25s ease;
  max-width: 380px;
}
.toast--success { background: var(--color-success); color: #fff; }
.toast--error   { background: var(--color-error);   color: #fff; }
@keyframes toastIn { from { opacity:0; transform: translateY(8px); } to { opacity:1; transform: translateY(0); } }

/* ───────────────────────────────────────────────
   15. Divider
─────────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 1.5rem 0;
}

/* ───────────────────────────────────────────────
   16. Branch Dropdown (in navbar)
─────────────────────────────────────────────── */
.branch-selector {
  position: relative;
  display: inline-block;
}
.branch-selector-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  background: transparent;
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
}
.branch-selector-btn:hover { border-color: var(--color-brand-gold); color: var(--color-brand-gold); }
.branch-selector-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 200px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  overflow: hidden;
}

/* ───────────────────────────────────────────────
   25. Status cards (JS-generated banners)
─────────────────────────────────────────────── */
.card--status         { text-align: center; padding: 2rem; }
.card--status-warning { text-align: center; padding: 2rem; border: 2px dashed var(--color-warning); }
.card--status-warning-solid { text-align: center; padding: 2rem; border: 2px solid var(--color-warning); }
.card--status-success { text-align: center; padding: 2rem; border: 2px solid var(--color-success); }
.card--status-error   { text-align: center; padding: 2rem; border: 2px solid var(--color-error); }

/* ───────────────────────────────────────────────
   26. Avatar image
─────────────────────────────────────────────── */
.avatar-img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }

/* ───────────────────────────────────────────────
   27. Reports Page
─────────────────────────────────────────────── */
.date-bar         { background: #fff; border-radius: 12px; padding: 1rem 1.5rem; display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; box-shadow: 0 1px 3px rgba(0,0,0,0.08); margin-bottom: 2rem; }
.date-bar input[type="date"] { border: 1px solid #ddd; border-radius: 8px; padding: 0.5rem 0.75rem; font-size: 13px; }
.date-bar .period-btn {
  border: 1px solid var(--color-slate-200);
  background: transparent;
  border-radius: 8px;
  padding: 0.4rem 0.875rem;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-slate-600);
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
  font-family: var(--font-family);
}
.date-bar .period-btn:hover {
  border-color: var(--color-slate-400);
  color: var(--color-slate-800);
  background: var(--color-slate-50);
}
.date-bar .period-btn.active {
  background: var(--color-slate-900);
  border-color: var(--color-slate-900);
  color: #fff;
  font-weight: 600;
}
.apply-btn        { background: #1a1a2e; color: #fff; border: none; padding: 0.5rem 1.5rem; border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 600; }
.apply-btn:hover  { background: #16213e; }

.report-grid      { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.875rem; margin-bottom: 2rem; }

/* Минималистичные карточки выбора отчётов */
.report-grid .kit-card {
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  gap: 0;
  min-height: 110px;
  justify-content: flex-start;
  cursor: pointer;
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}
.report-grid .kit-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.09);
}
.report-grid .kit-card.active {
  border-color: var(--color-brand-blue);
  background: #f0f6ff;
}
.report-grid .kit-card .kit-card-content {
  gap: 0.25rem;
  display: flex;
  flex-direction: column;
}
/* Бейдж — нижний правый угол, не влияет на заголовок */
.report-grid .kit-card .kit-card-badge {
  position: absolute;
  bottom: 0.75rem;
  right: 0.875rem;
  font-size: 10px;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 0.06em;
  font-weight: 700;
  background: var(--color-slate-100);
  color: var(--color-slate-500);
  text-transform: uppercase;
  margin: 0;
}
.report-grid .kit-card .kit-card-title {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--color-slate-900);
  line-height: 1.3;
  margin-bottom: 0.25rem;
}
.report-grid .kit-card .kit-card-text {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--color-slate-500);
  font-weight: 400;
}

/* Locked-карточки */
.kit-card--locked {
  cursor: default;
  opacity: 0.9;
}
.kit-card--locked .kit-card-content {
  pointer-events: none;
}
/* Иконка замка в правом верхнем углу заблокированной карточки */
.rpt-lock-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--color-slate-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-slate-400);
  flex-shrink: 0;
}
.rpt-lock-badge svg { width: 13px; height: 13px; stroke: currentColor; }
/* Overlay с кнопкой подключения — появляется при наведении */
.rpt-lock-overlay {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
  z-index: 2;
}
.kit-card--locked:hover .rpt-lock-overlay {
  opacity: 1;
  pointer-events: auto;
}
.rpt-lock-overlay__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  padding: 1rem;
}
.rpt-lock-overlay__name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-slate-700);
}
.rpt-lock-overlay__price {
  font-size: 0.75rem;
  color: var(--color-slate-400);
  margin-bottom: 0.25rem;
}
.rpt-lock-overlay .btn { pointer-events: auto; }

.report-grid .kit-card--promo {
  background: var(--color-brand-blue);
  border-color: var(--color-brand-blue);
  color: white;
  min-height: 0;
}
.report-grid .kit-card--dark {
  background: var(--color-slate-900);
  border-color: var(--color-slate-900);
  color: white;
  min-height: 0;
}
.report-grid .kit-card--promo .kit-card-title,
.report-grid .kit-card--promo .kit-card-text,
.report-grid .kit-card--dark .kit-card-title,
.report-grid .kit-card--dark .kit-card-text { color: white; }
.report-grid .kit-card--promo .kit-card-badge { background: white; color: var(--color-brand-blue); }
.report-grid .kit-card--dark .kit-card-badge  { background: rgba(255,255,255,0.15); color: white; }
.report-card      { background: #fff; border-radius: 12px; padding: 1.25rem; cursor: pointer; transition: all 0.25s; border: 2px solid transparent; box-shadow: 0 1px 3px rgba(0,0,0,0.06); display: block; color: inherit; text-decoration: none; }
.report-card:hover{ border-color: var(--color-brand-gold,#D4A843); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.report-card.active{ border-color: var(--color-brand-gold,#D4A843); background: linear-gradient(135deg, #fffdf5 0%, #fff 100%); }
.report-card--static { cursor: default; }
.report-icon      { font-size: 28px; margin-bottom: 0.5rem; }
.report-title     { font-size: 15px; font-weight: 700; color: #1a1a2e; margin-bottom: 0.25rem; }
.report-desc      { font-size: 12px; color: #666; line-height: 1.4; }
.group-title      { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--color-brand-gold,#D4A843); margin: 1.5rem 0 0.75rem; padding-left: 4px; }
.group-title:first-child { margin-top: 0; }

.report-viewer    { display: none; background: #fff; border-radius: 16px; padding: 2rem; margin-bottom: 2rem; box-shadow: 0 2px 12px rgba(0,0,0,0.08); }
.report-viewer.visible { display: block; }
.viewer-header    { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem; }
.viewer-title     { font-size: 22px; font-weight: 800; color: #1a1a2e; }
.viewer-period    { font-size: 13px; color: #999; margin-top: 4px; }
.ai-btn           { background: var(--color-brand-gold); color: var(--color-slate-900); border: 1px solid var(--color-brand-gold); padding: 0.4rem 0.9rem; border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; transition: all 0.15s ease; }
.ai-btn:hover     { background: #f59e0b; border-color: #f59e0b; box-shadow: 0 2px 8px rgba(251,191,36,0.3); }
.ai-btn:disabled  { opacity: 0.6; cursor: wait; }
.ai-btn svg       { width: 14px; height: 14px; flex-shrink: 0; }
.export-group     { display: flex; gap: 6px; align-items: center; }
.export-btn       { display: inline-flex; align-items: center; gap: 5px; padding: 0.4rem 0.9rem; border-radius: 8px; font-size: 13px; font-weight: 500; border: 1px solid; cursor: pointer; transition: all 0.15s ease; background: none; }
.export-btn svg   { width: 14px; height: 14px; flex-shrink: 0; }
.export-btn--xlsx { background: #e8f5e9; color: #2e7d32; border-color: #a5d6a7; }
.export-btn--xlsx:hover { background: #c8e6c9; }
.export-btn--pdf  { background: #fce4ec; color: #c62828; border-color: #f48fb1; }
.export-btn--pdf:hover  { background: #f8bbd0; }
.export-btn--disabled { opacity: 0.45; cursor: not-allowed; filter: grayscale(0.4); }
.export-btn--disabled:hover { background: inherit; }

/* Locked export group — tooltip on hover/focus */
.export-group--locked { position: relative; }
.export-lock-tooltip  {
  display: none; position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: #1e1e2e; color: #fff; font-size: 12px; line-height: 1.5; white-space: nowrap;
  padding: 8px 12px; border-radius: 8px; z-index: 200; pointer-events: auto;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.export-lock-tooltip::after {
  content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 6px solid transparent; border-top-color: #1e1e2e;
}
.export-lock-tooltip a { color: #D4A843; text-decoration: underline; margin-left: 4px; }
.export-group--locked:hover .export-lock-tooltip,
.export-group--locked:focus-within .export-lock-tooltip { display: block; }
.close-viewer     { background: none; border: 1px solid var(--color-slate-200); border-radius: 8px; padding: 0.4rem 0.9rem; cursor: pointer; font-size: 13px; font-weight: 500; color: var(--color-slate-600); display: inline-flex; align-items: center; gap: 5px; transition: all 0.15s ease; }
.close-viewer:hover{ background: var(--color-slate-50); border-color: var(--color-slate-300); }

/* ai-result: visibility only — visual styles come from kit-card */
.ai-result        { display: none; margin-top: 1.5rem; cursor: default; border-left: 3px solid var(--color-brand-gold) !important; scroll-margin-top: 1rem; }
.ai-result.visible{ display: flex; }
.ai-result:hover  { transform: none !important; box-shadow: 0 1px 3px 0 rgba(0,0,0,0.1) !important; border-color: var(--color-slate-200) !important; border-left-color: var(--color-brand-gold) !important; }
.ai-result:active { transform: none !important; }
.ai-result-body   { font-size: 14px; line-height: 1.8; color: var(--color-slate-700); }
.ai-result-body p { margin-bottom: 0.5rem; margin-top: 0; }
.ai-result-body h4 { font-size: 14px; font-weight: 700; color: var(--color-slate-900); margin: 1rem 0 0.25rem; }
.ai-result-body ul { margin: 0.5rem 0 0.75rem 1.25rem; padding: 0; }
.ai-result-body li { margin-bottom: 0.25rem; }
.ai-result-body strong { font-weight: 700; color: var(--color-slate-800); }
.ai-loading       { display: flex; align-items: center; gap: 0.75rem; color: var(--color-slate-500); font-size: 14px; }
.ai-spinner       { width: 18px; height: 18px; border: 2px solid var(--color-slate-200); border-top-color: var(--color-brand-gold); border-radius: 50%; animation: spin 0.8s linear infinite; flex-shrink: 0; }

.report-section   { margin-bottom: 2rem; }

/* Reports-scoped overrides for generic classes */
.report-viewer .section-title    { font-size: 16px; font-weight: 700; color: #1a1a2e; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid #f0f0f0; text-transform: none; letter-spacing: normal; }
.report-viewer .data-table       { width: 100%; border-collapse: collapse; font-size: 13px; }
.report-viewer .data-table th    { background: #f8f9fa; padding: 0.6rem 0.75rem; text-align: left; font-weight: 600; color: #555; border-bottom: 2px solid #e5e7eb; white-space: nowrap; }
.report-viewer .data-table td    { padding: 0.6rem 0.75rem; border-bottom: 1px solid #f0f0f0; }
.report-viewer .data-table tr:hover { background: #fafbfc; }
.report-viewer .data-table .num  { text-align: right; font-variant-numeric: tabular-nums; }
.report-viewer .data-table th.num { text-align: left; }
.report-viewer .data-table .bold { font-weight: 700; }
.report-viewer .chart-box        { position: relative; height: 320px; margin-bottom: 1rem; }
.report-viewer .metrics-grid     { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.report-viewer .metric-card      { background: #f8f9fa; border-radius: 10px; padding: 1rem; text-align: center; }
.report-viewer .metric-value     { font-size: 24px; font-weight: 800; color: #1a1a2e; }
.report-viewer .metric-label     { font-size: 12px; color: #888; margin-top: 0.25rem; }
.heatmap-grid     { display: grid; gap: 2px; }
.heat-cell        { border-radius: 3px; padding: 4px; text-align: center; font-size: 11px; font-weight: 600; min-width: 35px; }
.staff-avatar     { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }

/* ───────────────────────────────────────────────
   28. Report Utility Classes
─────────────────────────────────────────────── */
.report-grid-2     { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.report-grid-2-1   { display: grid; grid-template-columns: 2fr 1fr; gap: 1.5rem; }
.report-grid-2-gap4{ display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.alert--metrika    { background: #fff3cd; padding: 1rem; border-radius: 8px; margin-bottom: 1rem; border-left: 4px solid #ffc107; }
.chart-box--xs     { height: 200px; }
.chart-box--sm     { height: 220px; }
.chart-box--md     { height: 260px; }
.chart-box--lg     { height: 280px; }
.chart-box--xl     { height: 300px; }
.chart-box--2xl    { height: 350px; }
.chart-box--3xl    { height: 400px; }
.chart-box--max    { height: 500px; }
.metric-card--green  { background: #e8f5e9; }
.metric-card--blue   { background: #e3f2fd; }
.metric-card--orange { background: #fff3e0; }
.metric-card--purple { background: #f3e5f5; }
.segment-value     { font-size: 20px; font-weight: 800; }
.segment-label     { font-size: 11px; color: #888; }
.segment-title     { font-size: 18px; font-weight: 800; }
.segment-grid      { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-top: 0.75rem; }
.segment-footer    { margin-top: 0.5rem; font-size: 12px; color: #666; }
.rpt-segment-card  { background: #fff; border-radius: 10px; padding: 1rem 1.25rem; border: 1px solid var(--color-slate-200); box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
/* Tooltip-оверлей заблокированной карточки отчёта */
.rpt-tooltip {
  position: absolute; inset: 0; border-radius: inherit;
  background: rgba(255,255,255,0.95);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.5rem; padding: 1rem; text-align: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.18s ease; z-index: 3;
}
.kit-card--locked:hover .rpt-tooltip { opacity: 1; pointer-events: auto; }
.rpt-tooltip__lock { color: var(--color-slate-400); }
.rpt-tooltip__text { font-size: 13px; color: var(--color-slate-600); }
.rpt-tooltip__btn  { display: inline-flex; align-items: center; padding: 0.35rem 0.875rem; font-size: 12px; font-weight: 600; border-radius: 6px; background: var(--color-brand-blue); color: #fff; text-decoration: none; margin-top: 0.25rem; }
.rpt-tooltip__btn:hover { opacity: 0.9; }
.table-scroll--v   { max-height: 500px; overflow-y: auto; }
.loading-center    { text-align: center; padding: 3rem; color: #999; }
.loading-spinner   { margin: 0 auto 1rem; width: 30px; height: 30px; }
.opacity-50        { opacity: 0.5; }
.cursor-default    { cursor: default; }
.text-muted-light  { color: #ccc; }

/* ── Print: show only report viewer with charts ──────────────────────────── */
@media print {
  @page { size: A4 landscape; margin: 12mm; }

  /* Hide everything except the report */
  .navbar, .page-header, .date-bar, #reportCards,
  .group-title, .export-group, .ai-btn, .close-viewer,
  #aiResult, .ai-result, .mp-modal-backdrop { display: none !important; }

  /* Remove page chrome */
  body { background: #fff !important; margin: 0 !important; }
  .container { max-width: 100% !important; padding: 0 !important; }

  /* Force viewer visible */
  .report-viewer { display: block !important; box-shadow: none !important;
    border-radius: 0 !important; padding: 0 !important; margin: 0 !important; }

  /* Viewer header: only title + period, no buttons */
  .viewer-header { margin-bottom: 12px; border-bottom: 1px solid #ccc; padding-bottom: 8px; }
  .viewer-title  { font-size: 18px !important; }
  .viewer-period { font-size: 12px !important; color: #555 !important; }

  /* Keep charts visible and sized */
  .chart-box        { height: 260px !important; page-break-inside: avoid; }
  .chart-box canvas { max-width: 100% !important; }

  /* Tables */
  table { page-break-inside: auto; }
  tr    { page-break-inside: avoid; }
  th, td { font-size: 11px !important; padding: 3px 6px !important; }

  /* Sections */
  .report-section   { page-break-inside: avoid; margin-bottom: 12px !important; }
  .section-title    { font-size: 13px !important; margin-bottom: 6px !important; }
  .metric-grid, .stat-grid { break-inside: avoid; }
}

/* Report-page responsive overrides */
@media (max-width: 768px) {
  .report-grid       { grid-template-columns: 1fr; }
  .viewer-header     { flex-direction: column; }
  .metrics-grid      { grid-template-columns: repeat(2, 1fr); }
  .report-grid-2,
  .report-grid-2-1,
  .report-grid-2-gap4 { grid-template-columns: 1fr; }
}

/* ───────────────────────────────────────────────
   29. Billing Page
─────────────────────────────────────────────── */
.status-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.status-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
}
.status-left h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
}
.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}
.badge-none {
  background: rgba(156,163,175,0.15);
  color: var(--color-text-muted);
}
.status-meta {
  margin-top: 1rem;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.meta-item {
  font-size: 13px;
}
.meta-item .label {
  color: var(--color-text-muted);
  display: block;
  margin-bottom: 2px;
}
.meta-item .value {
  font-weight: 600;
  font-size: 15px;
}
.status-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Trial bar */
.trial-bar {
  background: linear-gradient(135deg, rgba(59,130,246,0.07), rgba(139,92,246,0.07));
  border: 1px solid rgba(59,130,246,0.18);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.trial-bar .trial-text {
  font-size: 14px;
}
.trial-bar .trial-text strong {
  color: var(--color-info);
}
.trial-progress {
  width: 200px;
  height: 6px;
  background: var(--color-border);
  border-radius: 3px;
  overflow: hidden;
}
.trial-progress .fill {
  height: 100%;
  background: var(--color-info);
  border-radius: 3px;
  transition: width 0.3s;
}

/* Billing section title */
.billing-section-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Module list */
.modules-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}
.mod-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 130px;
}
.mod-item.active {
  border-color: rgba(34,197,94,0.4);
}
.mod-item__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.mod-item__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  flex-wrap: wrap;
}
.mod-item__links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.mod-item .mod-name {
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.mod-item .mod-name .base-tag {
  font-size: 10px;
  background: rgba(212,168,67,0.15);
  color: var(--color-brand-gold);
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 700;
}
.mod-item .mod-price {
  font-size: 12px;
  color: var(--color-text-muted);
}
.mod-desc {
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.4;
}
.mod-link {
  font-size: 11px;
  color: var(--color-brand-gold);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}
.mod-link:hover { text-decoration: underline; }
.mod-status {
  font-size: 12px;
  color: var(--color-text-muted);
}
.mod-toggle {
  width: 44px;
  height: 24px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  position: relative;
  background: var(--color-border);
  transition: all 0.2s;
}
.mod-toggle.on {
  background: var(--color-success);
}
.mod-toggle::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  top: 3px;
  left: 3px;
  transition: transform 0.2s;
}
.mod-toggle.on::after {
  transform: translateX(20px);
}
.mod-toggle:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Cost summary */
/* ─── Pay block ───────────────────────────────────────────── */
.pay-block {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 20px;
  padding: 2rem 2.25rem 1.75rem;
  margin-top: 1.5rem;
  color: #fff;
}
.pay-block__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.pay-block__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 4px;
}
.pay-block__monthly {
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--color-brand-gold, #D4A843);
  line-height: 1;
  letter-spacing: -0.02em;
}
.pay-block__trial {
  font-size: 12px;
  color: #4ade80;
  font-weight: 600;
  margin-top: 6px;
}
.pay-block__hint {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  text-align: right;
  max-width: 200px;
  line-height: 1.4;
}
.pay-periods {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 1.5rem;
}
.pay-period {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 12px 14px;
  background: rgba(255,255,255,0.07);
  border: 2px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}
.pay-period:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.3);
}
.pay-period.is-selected {
  background: rgba(212,168,67,0.15);
  border-color: var(--color-brand-gold, #D4A843);
}
.pay-period--accent {
  border-color: rgba(212,168,67,0.4);
}
.pay-period__badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-brand-gold, #D4A843);
  color: #1a1a2e;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
}
.pay-period__name {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.55);
  margin-top: 4px;
}
.pay-period.is-selected .pay-period__name { color: var(--color-brand-gold, #D4A843); }
.pay-period__price {
  font-size: 1.3rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.pay-period__per {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  font-weight: 500;
}
.pay-period__save {
  font-size: 10px;
  color: #4ade80;
  font-weight: 700;
  margin-top: 2px;
}
.pay-period__save--empty { color: transparent; }
.pay-block__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  flex-wrap: wrap;
}
.pay-block__summary {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.pay-block__summary-label {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.pay-block__summary-amount {
  font-size: 1.75rem;
  font-weight: 900;
  color: #fff;
}
.pay-block__summary-save {
  font-size: 12px;
  color: #4ade80;
  font-weight: 700;
}
.pay-block__btn {
  background: var(--color-brand-gold, #D4A843);
  color: #1a1a2e;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 14px 40px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  white-space: nowrap;
}
.pay-block__btn:hover { opacity: 0.9; transform: translateY(-1px); }
.pay-block__btn:disabled { opacity: 0.5; cursor: default; transform: none; }
@media (max-width: 640px) {
  .pay-periods { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .pay-block__top { flex-direction: column; align-items: flex-start; }
  .pay-block__hint { text-align: left; }
}

/* legacy cost-card (не используется) */
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.25rem;
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.cost-total {
  font-size: 1.5rem;
  font-weight: 800;
}
.cost-total span {
  color: var(--color-brand-gold);
}
.cost-annual {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 2px;
}
.cost-periods {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: stretch;
}
.cost-period-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 10px 16px;
  border: 2px solid var(--color-border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
}
.cost-period-btn:hover:not(:disabled) {
  border-color: var(--color-brand-gold);
  background: #fffbf0;
}
.cost-period-btn:disabled { opacity: 0.6; cursor: default; }
.cost-period-label {
  font-size: 10px;
  color: var(--color-text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.cost-period-price {
  font-size: 15px;
  font-weight: 800;
  color: var(--color-slate-900);
}
.cost-period-disc {
  font-size: 10px;
  color: var(--color-success);
  font-weight: 700;
}
.mod-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mod-net-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  user-select: none;
}
.mod-net-toggle input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: var(--color-brand-gold);
  cursor: pointer;
}
.mod-net-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-muted);
  white-space: nowrap;
}
.mod-net-toggle:has(input:checked) .mod-net-label {
  color: var(--color-brand-gold);
}

/* Payments table */
.payments-table {
  width: 100%;
  border-collapse: collapse;
}
.payments-table th {
  text-align: left;
  font-size: 11px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--color-border);
}
.payments-table td {
  padding: 0.625rem 0.75rem;
  border-bottom: 1px solid var(--color-border);
  font-size: 13px;
}
.pay-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}
.pay-succeeded {
  background: rgba(34,197,94,0.12);
  color: var(--color-success);
}
.pay-pending {
  background: rgba(245,158,11,0.12);
  color: var(--color-warning);
}
.pay-failed {
  background: rgba(239,68,68,0.12);
  color: var(--color-error);
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 2rem;
  color: var(--color-text-muted);
  font-size: 14px;
  background: var(--color-surface);
  border-radius: 12px;
  border: 1px solid var(--color-border);
}

/* Billing responsive */
@media (max-width: 600px) {
  .status-top { flex-direction: column; }
  .modules-list { grid-template-columns: 1fr; }
}

/* ───────────────────────────────────────────────
   30. Chat Page
─────────────────────────────────────────────── */
.chat-container {
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: calc(100vh - 64px);
  max-width: 1200px;
  margin: 0 auto;
}
.chat-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--color-slate-200);
  background: var(--color-surface);
}
.chat-messages {
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--color-surface-light);
}
.chat-messages .empty-state {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 4rem 2rem;
}
.chat-input-area {
  padding: 1.5rem;
  border-top: 1px solid var(--color-slate-200);
  background: var(--color-surface);
}
.message {
  display: flex;
  gap: 0.75rem;
  max-width: 75%;
  animation: chatSlideIn 0.2s ease-out;
}
@keyframes chatSlideIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.message--user {
  margin-left: auto;
  flex-direction: row-reverse;
}
.message-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.message-avatar--user {
  background: var(--color-accent-blue);
  color: #fff;
}
.message-avatar--ai {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}
.message-content {
  background: var(--color-surface);
  padding: 0.875rem 1rem;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.message--user .message-content {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}
.message--ai .message-content {
  background: linear-gradient(135deg, #f5f7fa 0%, #e8eef5 100%);
  border: 1px solid #e0e7ef;
}
.message-action {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(0,0,0,0.05);
}
.message--user .message-action {
  border-color: rgba(255,255,255,0.2);
}
.chat-input-form {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
}
.chat-input {
  flex: 1;
  min-height: 44px;
  max-height: 120px;
  resize: none;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--color-slate-300);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
}
.chat-input:focus {
  outline: none;
  border-color: var(--color-accent-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.suggestions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.suggestion-card {
  padding: 0.75rem 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-slate-200);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
  font-size: 14px;
  color: var(--color-text);
}
.suggestion-card:hover {
  border-color: var(--color-accent-blue);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
  transform: translateY(-1px);
}
.empty-state-icon {
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-brand-gold);
  margin-bottom: 1rem;
}
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 12px;
}
.typing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-slate-400);
  animation: chatTyping 1.4s infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes chatTyping {
  0%, 60%, 100% { transform: translateY(0); }
  30%           { transform: translateY(-10px); }
}
.chat-sql-details {
  margin-top: 0.5rem;
  font-size: 12px;
  opacity: 0.7;
}
.metric-display {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: var(--color-surface-light);
  border-radius: 8px;
  margin-top: 0.75rem;
}
.metric-display .metric-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-accent-blue);
}
.metric-display .metric-label {
  font-size: 14px;
  color: var(--color-text-muted);
}
.message-content .chart-box {
  margin-top: 0.75rem;
  padding: 1rem;
  background: var(--color-surface-light);
  border-radius: 8px;
  height: 300px;
  position: relative;
  margin-bottom: 0;
}
.message-content .data-table-wrap {
  overflow-x: auto;
  margin-top: 0.75rem;
}

/* ───────────────────────────────────────────────
   31. Marketplace Page
─────────────────────────────────────────────── */
.mp-hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  padding: 3rem 0 2rem;
  color: #fff;
  text-align: center;
}
.mp-hero-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.mp-hero-desc {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}
.mp-cost-bar {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 0.75rem 1.5rem;
  backdrop-filter: blur(10px);
}
.mp-cost-item {
  text-align: center;
}
.mp-cost-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.mp-cost-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #D4A843;
}
.mp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  padding: 2rem 0;
}
.mp-card {
  background: #fff;
  border: 2px solid var(--color-slate-200, #e5e7eb);
  border-radius: 16px;
  padding: 1.75rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.mp-card:hover {
  border-color: var(--color-slate-300, #d1d5db);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.mp-card.mp-card--active {
  border-color: #22c55e;
  background: linear-gradient(135deg, rgba(34,197,94,0.03) 0%, #fff 100%);
}
.mp-card-header {
  margin-bottom: 1rem;
}
.mp-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 0.25rem;
}
.mp-card-tagline {
  font-size: 0.85rem;
  color: #666;
}
.mp-card-benefits {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.25rem;
}
.mp-card-benefits li {
  padding: 0.35rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.9rem;
  color: #444;
  line-height: 1.4;
}
.mp-card-benefits li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #D4A843;
}
.mp-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--color-slate-100, #f1f5f9);
}
.mp-card-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a2e;
}
.mp-card-price span {
  font-size: 0.8rem;
  font-weight: 400;
  color: #888;
}
.mp-btn {
  padding: 0.6rem 1.5rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.mp-btn--activate {
  background: linear-gradient(135deg, #D4A843 0%, #C09636 100%);
  color: #fff;
}
.mp-btn--activate:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(212,168,67,0.3);
}
.mp-btn--deactivate {
  background: transparent;
  color: #ef4444;
  border: 2px solid #fecaca;
}
.mp-btn--deactivate:hover {
  background: #fef2f2;
}
.mp-badge-active {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #dcfce7;
  color: #16a34a;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  margin-left: 0.75rem;
}
.mp-badge-active::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #16a34a;
}
.mp-free-banner {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 2px solid #bbf7d0;
  border-radius: 16px;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  margin-top: -1rem;
}
.mp-free-icon {
  font-size: 2rem;
  font-weight: 800;
  color: #16a34a;
}
.mp-free-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #166534;
  margin-bottom: 0.25rem;
}
.mp-free-desc {
  font-size: 0.9rem;
  color: #15803d;
}
.mp-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.mp-back-link:hover {
  color: #fff;
}
.mp-pricing-note {
  text-align: center;
  padding: 1.5rem 0 3rem;
  color: #888;
  font-size: 0.85rem;
}
@media (max-width: 768px) {
  .mp-grid { grid-template-columns: 1fr; }
  .mp-hero-title { font-size: 1.5rem; }
  .mp-cost-bar { flex-direction: column; gap: 0.75rem; }
}

/* Marketplace Checkout Modal */
.mp-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.mp-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: all;
}
.mp-modal {
  background: #fff;
  border-radius: 20px;
  padding: 2rem;
  width: 100%;
  max-width: 480px;
  margin: 1rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  transform: translateY(20px);
  transition: transform 0.25s;
}
.mp-modal-backdrop.is-open .mp-modal {
  transform: translateY(0);
}
.mp-modal-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.mp-modal-icon {
  font-size: 2.5rem;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-slate-50, #f8fafc);
  border-radius: 16px;
  flex-shrink: 0;
}
.mp-modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 0.2rem;
}
.mp-modal-subtitle {
  font-size: 0.85rem;
  color: #666;
}
.mp-modal-section {
  background: #f8fafc;
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}
.mp-modal-section--center {
  text-align: center;
  padding: 1.5rem;
}
.mp-modal-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.3rem 0;
  font-size: 0.9rem;
  color: #555;
}
.mp-modal-row--total {
  border-top: 1px solid #e5e7eb;
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  font-weight: 700;
  color: #1a1a2e;
  font-size: 1rem;
}
.mp-modal-amount {
  font-weight: 600;
  color: #1a1a2e;
}
.mp-modal-due-box {
  background: linear-gradient(135deg, #fff7ed 0%, #fef3c7 100%);
  border: 2px solid #fde68a;
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  text-align: center;
}
.mp-modal-due-label {
  font-size: 0.8rem;
  color: #92400e;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.3rem;
}
.mp-modal-due-amount {
  font-size: 2rem;
  font-weight: 800;
  color: #92400e;
}
.mp-modal-due-hint {
  font-size: 0.8rem;
  color: #a16207;
  margin-top: 0.2rem;
}
.mp-modal-next {
  font-size: 0.82rem;
  color: #666;
  text-align: center;
  margin-bottom: 1.25rem;
}
.mp-modal-actions {
  display: flex;
  gap: 0.75rem;
}
.mp-modal-cancel {
  flex: 1;
  padding: 0.75rem;
  border-radius: 12px;
  border: 2px solid #e5e7eb;
  background: transparent;
  font-size: 0.95rem;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  transition: all 0.2s;
}
.mp-modal-cancel:hover { background: #f8fafc; }
.mp-modal-confirm {
  flex: 2;
  padding: 0.75rem;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #D4A843 0%, #C09636 100%);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
}
.mp-modal-confirm:hover:not(:disabled) {
  box-shadow: 0 4px 16px rgba(212,168,67,0.4);
  transform: translateY(-1px);
}
.mp-modal-confirm:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }
.mp-loading-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}
.mp-modal--danger .mp-modal-confirm {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}
.mp-modal--danger .mp-modal-confirm:hover:not(:disabled) {
  box-shadow: 0 4px 16px rgba(239,68,68,0.35);
}
.mp-deactivate-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}
.mp-deactivate-title {
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 0.5rem;
}
.mp-deactivate-text {
  font-size: 0.9rem;
  color: #666;
}
.mp-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #1a1a2e;
  color: #fff;
  padding: 0.85rem 1.5rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 9999;
  transition: transform 0.3s;
  pointer-events: none;
}
.mp-toast.is-visible { transform: translateX(-50%) translateY(0); }
.mp-toast--success { background: #16a34a; }
.mp-toast--error   { background: #dc2626; }

/* ─── Module Icons (CSS SVG) ─────────────────────────────── */
.mp-card-icon[class*="mp-icon--"]::before,
.mpw-hero-icon[class*="mp-icon--"]::before,
.mp-modal-icon[class*="mp-icon--"]::before,
.mpw-cta-icon[class*="mp-icon--"]::before {
  content: "";
  display: block;
  width: 28px; height: 28px;
  background-color: #374151;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
}
.mpw-hero-icon[class*="mp-icon--"]::before { width: 40px; height: 40px; background-color: #1a1a2e; }
.mpw-cta-icon[class*="mp-icon--"]::before { width: 36px; height: 36px; background-color: #fff; }
.mp-modal-icon[class*="mp-icon--"]::before { width: 32px; height: 32px; background-color: #374151; }
.mp-icon--ai_analytics::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='16' height='16' rx='2'/%3E%3Crect x='9' y='9' width='6' height='6'/%3E%3Cline x1='9' y1='1' x2='9' y2='4'/%3E%3Cline x1='15' y1='1' x2='15' y2='4'/%3E%3Cline x1='9' y1='20' x2='9' y2='23'/%3E%3Cline x1='15' y1='20' x2='15' y2='23'/%3E%3Cline x1='20' y1='9' x2='23' y2='9'/%3E%3Cline x1='20' y1='14' x2='23' y2='14'/%3E%3Cline x1='1' y1='9' x2='4' y2='9'/%3E%3Cline x1='1' y1='14' x2='4' y2='14'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='16' height='16' rx='2'/%3E%3Crect x='9' y='9' width='6' height='6'/%3E%3Cline x1='9' y1='1' x2='9' y2='4'/%3E%3Cline x1='15' y1='1' x2='15' y2='4'/%3E%3Cline x1='9' y1='20' x2='9' y2='23'/%3E%3Cline x1='15' y1='20' x2='15' y2='23'/%3E%3Cline x1='20' y1='9' x2='23' y2='9'/%3E%3Cline x1='20' y1='14' x2='23' y2='14'/%3E%3Cline x1='1' y1='9' x2='4' y2='9'/%3E%3Cline x1='1' y1='14' x2='4' y2='14'/%3E%3C/svg%3E"); }
.mp-icon--metrika::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='20' x2='18' y2='10'/%3E%3Cline x1='12' y1='20' x2='12' y2='4'/%3E%3Cline x1='6' y1='20' x2='6' y2='14'/%3E%3Cline x1='2' y1='20' x2='22' y2='20'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='20' x2='18' y2='10'/%3E%3Cline x1='12' y1='20' x2='12' y2='4'/%3E%3Cline x1='6' y1='20' x2='6' y2='14'/%3E%3Cline x1='2' y1='20' x2='22' y2='20'/%3E%3C/svg%3E"); }
.mp-icon--telegram_bot::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E"); }
.mp-icon--network_compare::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='12 2 2 7 12 12 22 7 12 2'/%3E%3Cpolyline points='2 17 12 22 22 17'/%3E%3Cpolyline points='2 12 12 17 22 12'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='12 2 2 7 12 12 22 7 12 2'/%3E%3Cpolyline points='2 17 12 22 22 17'/%3E%3Cpolyline points='2 12 12 17 22 12'/%3E%3C/svg%3E"); }
.mp-icon--network_dashboard::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7'/%3E%3Crect x='14' y='3' width='7' height='7'/%3E%3Crect x='14' y='14' width='7' height='7'/%3E%3Crect x='3' y='14' width='7' height='7'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7'/%3E%3Crect x='14' y='3' width='7' height='7'/%3E%3Crect x='14' y='14' width='7' height='7'/%3E%3Crect x='3' y='14' width='7' height='7'/%3E%3C/svg%3E"); }
.mp-icon--export::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8'/%3E%3Cpolyline points='16 6 12 2 8 6'/%3E%3Cline x1='12' y1='2' x2='12' y2='15'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8'/%3E%3Cpolyline points='16 6 12 2 8 6'/%3E%3Cline x1='12' y1='2' x2='12' y2='15'/%3E%3C/svg%3E"); }
.mp-icon--advanced_reports::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='22 7 13.5 15.5 8.5 10.5 2 17'/%3E%3Cpolyline points='16 7 22 7 22 13'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='22 7 13.5 15.5 8.5 10.5 2 17'/%3E%3Cpolyline points='16 7 22 7 22 13'/%3E%3C/svg%3E"); }
.mp-icon--lost_clients::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='8.5' cy='7' r='4'/%3E%3Cline x1='18' y1='8' x2='23' y2='13'/%3E%3Cline x1='23' y1='8' x2='18' y2='13'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='8.5' cy='7' r='4'/%3E%3Cline x1='18' y1='8' x2='23' y2='13'/%3E%3Cline x1='23' y1='8' x2='18' y2='13'/%3E%3C/svg%3E"); }

/* ───────────────────────────────────────────────
   18. Marketplace v2 — catalog
═══════════════════════════════════════════════ */

/* — Hero badge — */
.mp-hero-badge {
  display: inline-block;
  background: linear-gradient(135deg,#22c55e,#16a34a);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

/* — Hero stats row — */
.mp-hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 24px;
  padding: 16px 24px;
  background: #f8fafc;
  border-radius: 12px;
}
.mp-hero-stat { text-align: center; flex: 1; color: #1e293b; }
.mp-hero-stat-value {
  font-size: 22px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1;
}
.mp-hero-stat-label { font-size: 12px; color: #64748b; margin-top: 4px; }
.mp-hero-stat-sep { width: 1px; height: 36px; background: #e2e8f0; }

/* — Module card trial badge — */
.mp-card-wrapper { position: relative; }
.mp-card-trial-badge {
  position: absolute;
  top: 12px; right: 12px;
  background: #22c55e;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 10px;
  z-index: 1;
}

/* — Card price display — */
.mp-card-price-free {
  font-size: 18px;
  font-weight: 700;
  color: #22c55e;
}
.mp-card-price-hint {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 2px;
}
.mp-card-price-hint strong { color: #64748b; }

/* — Two-button card footer — */
.mp-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.mp-card-actions button,
.mp-card-actions a { flex: 1; text-align: center; }

/* — "Подробнее" secondary button — */
.mp-btn--details {
  padding: 8px 16px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  background: transparent;
  color: #475569;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.mp-btn--details:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

/* — Period selector (catalog modal) — */
.mp-period-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 8px;
}
.mp-period-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.mp-period-tab {
  flex: 1 1 auto;
  min-width: 80px;
  padding: 7px 10px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #475569;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: border-color .15s, background .15s;
}
.mp-period-tab:hover { border-color: #94a3b8; }
.mp-period-tab.is-active {
  border-color: #d4a017;
  background: #fef9e7;
  color: #92400e;
}
.mp-period-discount {
  font-size: 10px;
  font-weight: 700;
  color: #22c55e;
  background: #f0fdf4;
  padding: 1px 5px;
  border-radius: 6px;
}
.mp-period-tab.is-active .mp-period-discount {
  background: #fff;
  color: #16a34a;
}

/* — Network toggle (catalog modal) — */
.mp-network-toggle {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: #f8fafc;
  border-radius: 10px;
  cursor: pointer;
  margin-bottom: 12px;
}
.mp-network-toggle input[type="checkbox"] { display: none; }
.mp-network-toggle-box {
  flex-shrink: 0;
  width: 18px; height: 18px;
  border: 2px solid #cbd5e1;
  border-radius: 4px;
  background: #fff;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, border-color .15s;
}
.mp-network-toggle input:checked ~ .mp-network-toggle-box {
  background: #667eea;
  border-color: #667eea;
}
.mp-network-toggle input:checked ~ .mp-network-toggle-box::after {
  content: "";
  width: 9px; height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
  display: block;
}
.mp-network-toggle-label { font-size: 13px; font-weight: 600; color: #1e293b; }
.mp-network-toggle-hint  { font-size: 11px; color: #94a3b8; margin-top: 1px; }

/* — Trial callout box (catalog modal) — */
.mp-modal-trial-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg,#f0fdf4,#dcfce7);
  border: 1.5px solid #bbf7d0;
  border-radius: 12px;
  margin-bottom: 18px;
}
.mp-modal-trial-emoji { font-size: 22px; flex-shrink: 0; }
.mp-modal-trial-title  { font-size: 14px; font-weight: 700; color: #166534; }
.mp-modal-trial-desc   { font-size: 12px; color: #15803d; margin-top: 2px; }
.mp-modal-trial-hint {
  font-size: 12px;
  color: #64748b;
  text-align: center;
  margin-top: 8px;
  margin-bottom: 12px;
}
.mp-modal-trial-hint strong { color: #1e293b; }

/* — Price summary box (catalog modal) — */
.mp-modal-price-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
}
.mp-modal-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #475569;
}
.mp-modal-price-row + .mp-modal-price-row { margin-top: 8px; }
.mp-modal-price-row--savings { color: #15803d; font-size: 13px; }
.mp-modal-price-row--hint    { color: #94a3b8; font-size: 12px; }
.mp-modal-price-amount {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
}
.mp-modal-price-saved { font-weight: 700; }


/* ═══════════════════════════════════════════════
   19. Marketplace Widget Page (mpw-*)
═══════════════════════════════════════════════ */

/* — Breadcrumb — */
.mpw-breadcrumb { background: #f8fafc; border-bottom: 1px solid #e2e8f0; padding: 12px 0; }
.mpw-back {
  font-size: 13px;
  color: #667eea;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.mpw-back:hover { color: #5a67d8; text-decoration: underline; }

/* — Hero layout — */
.mpw-hero { padding: 48px 0 64px; }
.mpw-hero-inner {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) {
  .mpw-hero-inner { grid-template-columns: 1fr; }
  .mpw-hero-right { order: -1; }
}
.mpw-hero-icon { font-size: 48px; margin-bottom: 12px; }
.mpw-hero-trial-badge {
  display: inline-block;
  background: linear-gradient(135deg,#22c55e,#16a34a);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.mpw-hero-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #1e293b;
  line-height: 1.2;
  margin: 0 0 10px;
}
.mpw-hero-tagline {
  font-size: 1.1rem;
  color: #475569;
  margin: 0 0 14px;
}
.mpw-hero-intro {
  font-size: 1rem;
  color: #64748b;
  line-height: 1.6;
  max-width: 560px;
  margin: 0;
}
.mpw-hero-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.mpw-cta-hint { font-size: 12px; color: #94a3b8; }
.mpw-active-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #f0fdf4;
  border: 1.5px solid #22c55e;
  border-radius: 20px;
  color: #166534;
  font-size: 14px;
  font-weight: 600;
}
.mpw-btn-activate {
  padding: 12px 24px;
  background: linear-gradient(135deg,#667eea,#764ba2);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .15s;
}
.mpw-btn-activate:hover { opacity: .9; }
.mpw-btn-deactivate {
  padding: 10px 20px;
  background: transparent;
  border: 1.5px solid #fca5a5;
  border-radius: 10px;
  color: #ef4444;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.mpw-btn-deactivate:hover { background: #fff1f2; }

/* — Right: pricing card — */
.mpw-price-card {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  position: sticky;
  top: 80px;
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
}
.mpw-price-card-label { font-size: 11px; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 12px; }
.mpw-period-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.mpw-period-tab {
  flex: 1 1 auto;
  min-width: 70px;
  padding: 7px 8px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #475569;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: border-color .15s;
}
.mpw-period-tab:hover { border-color: #94a3b8; }
.mpw-period-tab.is-active { border-color: #d4a017; background: #fef9e7; color: #92400e; }
.mpw-period-discount {
  font-size: 9px;
  font-weight: 700;
  color: #22c55e;
  background: #f0fdf4;
  padding: 1px 4px;
  border-radius: 4px;
}
.mpw-price-main { margin: 4px 0 8px; }
.mpw-price-amount { font-size: 28px; font-weight: 800; color: #1e293b; }
.mpw-price-period { font-size: 13px; color: #94a3b8; margin-left: 4px; }
.mpw-price-savings { font-size: 13px; color: #15803d; margin-bottom: 4px; }
.mpw-price-total   { font-size: 13px; color: #64748b; margin-bottom: 12px; }
.mpw-price-sep { height: 1px; background: #f1f5f9; margin: 14px 0; }
.mpw-free-today { font-size: 12px; color: #94a3b8; margin-top: 6px; text-align: center; }
.mpw-free-today strong { color: #22c55e; }
.mpw-price-active-note { font-size: 13px; color: #166534; font-weight: 600; text-align: center; }

/* ═══════════════════════════════════════════════════════════════════
   FLOATING AI CHAT WIDGET
   ═══════════════════════════════════════════════════════════════════ */
.ai-chat-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9000;
  height: 48px;
  padding: 0 20px 0 16px;
  border-radius: 24px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(102,126,234,.45);
  display: flex;
  align-items: center;
  gap: 9px;
  transition: transform .2s, box-shadow .2s;
  color: #fff;
}
.ai-chat-fab:hover { transform: scale(1.05); box-shadow: 0 6px 28px rgba(102,126,234,.6); }
.ai-chat-fab svg { pointer-events: none; flex-shrink: 0; }
.ai-chat-fab-label {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
}

/* Badge on FAB */
.ai-chat-fab-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 10px;
  height: 10px;
  background: #22c55e;
  border-radius: 50%;
  border: 2px solid #fff;
  pointer-events: none;
}

/* Backdrop */
.ai-chat-overlay {
  position: fixed;
  inset: 0;
  z-index: 9001;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 20px;
}
.ai-chat-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

/* Chat panel */
.ai-chat-panel {
  width: min(860px, calc(100vw - 40px));
  height: calc(100vh - 40px);
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(24px) scale(.97);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.ai-chat-overlay.is-open .ai-chat-panel {
  transform: translateY(0) scale(1);
}

/* Panel header */
.ai-chat-panel-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid #f1f5f9;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-radius: 20px 20px 0 0;
  flex-shrink: 0;
}
.ai-chat-panel-avatar {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}
.ai-chat-panel-title { font-weight: 700; font-size: 15px; flex: 1; }
.ai-chat-panel-subtitle { font-size: 11px; opacity: .75; margin-top: 1px; }
.ai-chat-panel-actions { display: flex; gap: 6px; align-items: center; }
.ai-chat-panel-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255,255,255,.15);
  border: none;
  cursor: pointer;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.ai-chat-panel-btn:hover { background: rgba(255,255,255,.3); }

/* Messages area */
.ai-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scroll-behavior: smooth;
}

/* Empty state */
.ai-chat-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-align: center;
  padding: 2rem;
  gap: 12px;
}
.ai-chat-empty-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 22px;
  margin-bottom: 8px;
}
.ai-chat-empty-title { font-size: 17px; font-weight: 700; color: #1e293b; }
.ai-chat-empty-desc { font-size: 14px; color: #64748b; }
.ai-chat-suggestions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
  width: 100%;
  max-width: 520px;
}
.ai-chat-suggestion {
  padding: 10px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  color: #334155;
  font-size: 13px;
  cursor: pointer;
  text-align: left;
  line-height: 1.4;
  transition: border-color .15s, background .15s;
}
.ai-chat-suggestion:hover { border-color: #767ced; background: #f0f1ff; }

/* Messages */
.ai-chat-msg {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.ai-chat-msg--user { flex-direction: row-reverse; }
.ai-chat-msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}
.ai-chat-msg--ai .ai-chat-msg-avatar { background: linear-gradient(135deg,#667eea,#764ba2); color:#fff; }
.ai-chat-msg--user .ai-chat-msg-avatar { background: #e2e8f0; color: #475569; }
.ai-chat-msg-bubble {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.6;
  word-break: break-word;
}
.ai-chat-msg--ai .ai-chat-msg-bubble {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #1e293b;
  border-radius: 4px 16px 16px 16px;
}
.ai-chat-msg--user .ai-chat-msg-bubble {
  background: linear-gradient(135deg,#667eea,#764ba2);
  color: #fff;
  border-radius: 16px 16px 4px 16px;
}

/* Typing */
.ai-chat-typing {
  display: flex;
  gap: 4px;
  padding: 8px 0;
  align-items: center;
}
.ai-chat-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #94a3b8;
  animation: aichatDot 1.2s infinite;
}
.ai-chat-typing span:nth-child(2) { animation-delay: .2s; }
.ai-chat-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes aichatDot { 0%,80%,100%{transform:scale(.7);opacity:.5} 40%{transform:scale(1);opacity:1} }

/* Data table inside chat */
.ai-chat-msg-bubble .data-table-wrap { overflow-x: auto; margin-top: 8px; }
.ai-chat-msg-bubble .data-table { border-collapse: collapse; font-size: 12px; width: 100%; }
.ai-chat-msg-bubble .data-table th { background: #f1f5f9; padding: 6px 10px; text-align: left; font-weight: 600; }
.ai-chat-msg-bubble .data-table td { padding: 5px 10px; border-top: 1px solid #e2e8f0; }
.ai-chat-msg-bubble .chart-box { height: 200px; margin-top: 8px; }
.ai-chat-msg-bubble .metric-display { text-align: center; padding: 12px 0; }
.ai-chat-msg-bubble .metric-value { font-size: 28px; font-weight: 800; display: block; }
.ai-chat-msg-bubble .metric-label { font-size: 12px; color: #64748b; }

/* Input area */
.ai-chat-input-area {
  padding: 16px 20px;
  border-top: 1px solid #f1f5f9;
  flex-shrink: 0;
  background: #fff;
}
.ai-chat-input-form {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}
.ai-chat-input {
  flex: 1;
  resize: none;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 14px;
  font-family: inherit;
  line-height: 1.5;
  max-height: 120px;
  overflow-y: auto;
  transition: border-color .15s;
  outline: none;
}
.ai-chat-input:focus { border-color: #667eea; }
.ai-chat-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg,#667eea,#764ba2);
  border: none;
  cursor: pointer;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity .15s;
}
.ai-chat-send-btn:hover { opacity: .85; }
.ai-chat-send-btn:disabled { opacity: .45; cursor: not-allowed; }

/* Upsell (no module) */
.ai-chat-upsell {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.5rem 2rem;
  gap: 14px;
}
.ai-chat-upsell-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgba(102,126,234,.12), rgba(118,75,162,.12));
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #667eea;
  margin-bottom: 4px;
}
.ai-chat-upsell-title { font-size: 18px; font-weight: 700; color: #1e293b; }
.ai-chat-upsell-desc { font-size: 14px; color: #64748b; max-width: 380px; line-height: 1.6; }
.ai-chat-upsell-price { font-size: 14px; color: #475569; }
.ai-chat-upsell-price strong { color: #667eea; }
.ai-chat-upsell-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  text-decoration: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  margin-top: 4px;
  transition: opacity .15s;
}
.ai-chat-upsell-btn:hover { opacity: .88; }

/* In-message: action button */
.ai-chat-action { margin-top: 10px; }
.ai-chat-action-btn {
  display: inline-block;
  padding: 7px 14px;
  background: rgba(102,126,234,.12);
  color: #667eea;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s;
}
.ai-chat-action-btn:hover { background: rgba(102,126,234,.22); }

/* SQL details */
.ai-chat-sql { margin-top: 8px; font-size: 12px; }
.ai-chat-sql summary { cursor: pointer; color: #94a3b8; user-select: none; }
.ai-chat-sql code { display: block; background: #1e293b; color: #e2e8f0; padding: 8px; border-radius: 6px; margin-top: 6px; white-space: pre-wrap; font-size: 11px; }

/* Navbar logout icon button */
.navbar-logout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  transition: color .15s, background .15s;
}
.navbar-logout-btn:hover { color: #fff; background: rgba(255,255,255,.1); }

@media (max-width: 600px) {
  .ai-chat-overlay { padding: 0; }
  .ai-chat-panel { width: 100vw; height: 100vh; border-radius: 0; }
  .ai-chat-suggestions { grid-template-columns: 1fr; }
}

.mpw-uk-locked-note {
  font-size: 13px;
  color: #78350f;
  font-weight: 600;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #fef3c7;
  border: 1.5px solid #fcd34d;
  border-radius: 10px;
  padding: 10px 14px;
}
.mpw-uk-locked-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #fef3c7;
  border: 1.5px solid #fcd34d;
  border-radius: 20px;
  color: #78350f;
  font-size: 14px;
  font-weight: 600;
}
.mpw-price-includes { list-style: none; padding: 0; margin: 12px 0 0; }
.mpw-price-includes li { font-size: 12px; color: #64748b; padding: 3px 0; }

/* — Sections — */
.mpw-section { padding: 56px 0; }
.mpw-section--dark { background: #1e293b; color: #fff; }
.mpw-section--dark .mpw-section-title { color: #fff; }
.mpw-section--gray { background: #f8fafc; }
.mpw-section-title { font-size: 1.6rem; font-weight: 700; color: #1e293b; margin: 0 0 32px; }

/* — Benefits grid — */
.mpw-benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(280px,1fr));
  gap: 16px;
}
.mpw-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  background: #f8fafc;
  border-radius: 12px;
}
.mpw-benefit-num {
  flex-shrink: 0;
  width: 28px; height: 28px;
  background: linear-gradient(135deg,#667eea,#764ba2);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mpw-benefit-text { font-size: 14px; color: #475569; line-height: 1.5; }

/* — Stats grid — */
.mpw-stats-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
}
@media (max-width: 600px) { .mpw-stats-grid { grid-template-columns: 1fr; } }
.mpw-stat-item { text-align: center; }
.mpw-stat-value { font-size: 2.4rem; font-weight: 800; color: #fff; line-height: 1; }
.mpw-stat-label { font-size: 14px; color: #94a3b8; margin-top: 6px; }

/* — Screenshots — */
.mpw-screenshots { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 0; }
.mpw-screenshot-item { border-radius: 12px; overflow: hidden; border: 1px solid var(--color-slate-200); box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.mpw-screenshot-item img { display: block; width: 100%; height: auto; }

/* — FAQ — */
.mpw-faq { display: flex; flex-direction: column; gap: 12px; }
.mpw-faq-item {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 18px 20px;
}
.mpw-faq-q { font-size: 15px; font-weight: 600; color: #1e293b; margin-bottom: 8px; }
.mpw-faq-a { font-size: 14px; color: #64748b; line-height: 1.55; }

/* — Bottom CTA — */
.mpw-cta-section { padding: 56px 0; }
.mpw-cta-box {
  display: flex;
  align-items: center;
  gap: 24px;
  background: linear-gradient(135deg,#667eea 0%,#764ba2 100%);
  border-radius: 20px;
  padding: 32px 40px;
  flex-wrap: wrap;
}
.mpw-cta-icon { font-size: 42px; }
.mpw-cta-title { font-size: 1.2rem; font-weight: 700; color: #fff; }
.mpw-cta-desc  { font-size: 14px; color: rgba(255,255,255,.75); margin-top: 4px; }
.mpw-cta-box .mpw-btn-activate {
  margin-left: auto;
  background: rgba(255,255,255,.15);
  border: 2px solid rgba(255,255,255,.5);
  backdrop-filter: blur(4px);
}
.mpw-cta-box .mpw-btn-activate:hover { background: rgba(255,255,255,.25); opacity: 1; }

/* — Widget-page network-toggle (inherits from .mp-network-toggle but with mpw-prefix) — */
.mpw-network-toggle {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: #f8fafc;
  border-radius: 10px;
  cursor: pointer;
  margin-bottom: 10px;
}
.mpw-network-toggle input[type="checkbox"] { display: none; }
.mpw-network-toggle .mp-network-toggle-box {
  flex-shrink: 0;
  width: 18px; height: 18px;
  border: 2px solid #cbd5e1;
  border-radius: 4px;
  background: #fff;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, border-color .15s;
}
.mpw-network-toggle input:checked ~ .mp-network-toggle-box {
  background: #667eea;
  border-color: #667eea;
}
.mpw-network-toggle input:checked ~ .mp-network-toggle-box::after {
  content: "";
  width: 9px; height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
  display: block;
}
   32. Admin Page
─────────────────────────────────────────────── */

/* Button secondary (generic) */
.btn-secondary { background: var(--color-slate-500, #6c757d); color: #fff; border-color: var(--color-slate-500, #6c757d); }
.btn-secondary:hover { background: var(--color-slate-600, #5a6268); border-color: var(--color-slate-600, #5a6268); }

/* Italic utility */
.italic { font-style: italic; }

/* Modal system */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  overflow-y: auto;
}
.modal.active { display: flex; align-items: center; justify-content: center; }
.modal-content {
  background: var(--color-surface, #fff);
  border-radius: var(--radius-lg, 8px);
  padding: 1.875rem;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}
.modal-close {
  font-size: 28px;
  cursor: pointer;
  color: var(--color-text-light, #999);
  background: none;
  border: none;
  line-height: 1;
}
.modal-close:hover { color: var(--color-text, #333); }

/* Form group extended (admin) */
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--color-text, #333);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.625rem;
  border: 1px solid var(--color-border, #ddd);
  border-radius: var(--radius-md, 6px);
  font-size: 14px;
  color: var(--color-text, #333);
  background: var(--color-surface, #fff);
  transition: var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-brand-gold, #007bff);
}
.form-group input[type="checkbox"] {
  width: auto;
  margin-right: 0.5rem;
}

/* Form actions */
.form-actions {
  display: flex;
  gap: 0.625rem;
  justify-content: flex-end;
  margin-top: 1.875rem;
}

/* Admin user card */
.user-card {
  background: var(--color-surface, #fff);
  border-radius: var(--radius-lg, 8px);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm, 0 2px 4px rgba(0,0,0,0.1));
}
.user-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.9375rem;
  padding-bottom: 0.9375rem;
  border-bottom: 2px solid var(--color-border, #f0f0f0);
}
.user-info h3 { color: var(--color-text, #333); margin-bottom: 0.3125rem; }
.user-meta { color: var(--color-text-muted, #666); font-size: 14px; }
.badge-admin { background: var(--color-warning, #ffc107); color: #000; }
.badge-user  { background: var(--color-slate-100, #e0e0e0); color: var(--color-text-muted, #666); }

/* Admin branches */
.branches-list { margin-top: 0.9375rem; }
.admin-branches-title { margin-bottom: 0.625rem; color: var(--color-text-muted, #666); }
.branch-item {
  background: var(--color-surface-light, #f8f9fa);
  padding: 0.9375rem;
  border-radius: var(--radius-md, 6px);
  margin-bottom: 0.625rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.branch-info h4 { font-size: 1rem; margin-bottom: 0.3125rem; }
.branch-details { font-size: 13px; color: var(--color-text-muted, #666); }
.branch-status {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  margin-left: 0.625rem;
}
.status-active   { background: var(--color-success-bg, #d4edda); color: var(--color-success, #155724); }
.status-inactive { background: var(--color-error-bg, #f8d7da);   color: var(--color-error, #721c24); }
.admin-no-branches { color: var(--color-text-light, #999); font-style: italic; }
.admin-section-heading { margin: 1.25rem 0 0.625rem; color: var(--color-text-muted, #666); }

/* ───────────────────────────────────────────────
   33. Pricing Page
─────────────────────────────────────────────── */
.pricing-page {
  --bg: #0f1117;
  --bg-card: #1a1d27;
  --border: #2a2d3a;
  --text: #e4e4e7;
  --text-muted: #9ca3af;
  --green: #22c55e;
  --blue: #3b82f6;
  --purple: #8b5cf6;
  background: var(--bg);
  color: var(--text);
}

/* Pricing header */
.pricing-header { text-align: center; padding: 3rem 0 2rem; }
.pricing-header h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 0.75rem; }
.pricing-header h1 span { color: var(--gold); }
.pricing-header p { color: var(--text-muted); font-size: 1.125rem; max-width: 600px; margin: 0 auto; }

/* Period toggle */
.period-toggle { display: flex; justify-content: center; gap: 0; margin: 2rem 0; }
.pricing-page .period-btn {
  padding: 0.625rem 1.5rem; border: 1px solid var(--border);
  background: var(--bg-card); color: var(--text-muted); cursor: pointer;
  font-size: 14px; font-weight: 600; transition: all 0.2s;
}
.pricing-page .period-btn:first-child { border-radius: 8px 0 0 8px; }
.pricing-page .period-btn:last-child { border-radius: 0 8px 8px 0; }
.pricing-page .period-btn.active { background: var(--gold); color: #000; border-color: var(--gold); }
.discount-badge {
  display: inline-block; background: rgba(34,197,94,0.15); color: var(--green);
  font-size: 11px; padding: 2px 6px; border-radius: 4px; margin-left: 6px; font-weight: 700;
}

/* Module cards */
.modules-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 1.5rem; }

.module-card {
  background: var(--bg-card); border: 2px solid var(--border); border-radius: 16px;
  padding: 1.5rem; position: relative; transition: all 0.2s; cursor: pointer; user-select: none;
}
.module-card:hover { border-color: rgba(212,168,67,0.4); }
.module-card.selected { border-color: var(--gold); box-shadow: 0 0 20px rgba(212,168,67,0.15); }
.module-card.required { border-color: var(--gold); background: rgba(212,168,67,0.05); }

.module-card .card-badge {
  position: absolute; top: 1rem; right: 1rem;
  padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 700;
}
.badge-required { background: rgba(212,168,67,0.15); color: var(--gold); }
.badge-popular { background: rgba(139,92,246,0.15); color: var(--purple); }

.module-card .checkbox {
  width: 22px; height: 22px; border: 2px solid var(--border); border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-right: 0.75rem; transition: all 0.2s; flex-shrink: 0;
}
.module-card.selected .checkbox,
.module-card.required .checkbox { background: var(--gold); border-color: var(--gold); }
.module-card.selected .checkbox::after,
.module-card.required .checkbox::after { content: "\2713"; color: #000; font-weight: 800; font-size: 14px; }

.module-top { display: flex; align-items: center; margin-bottom: 0.75rem; }
.module-name { font-size: 1.125rem; font-weight: 700; }
.module-price { font-size: 1.5rem; font-weight: 800; color: var(--gold); margin: 0.5rem 0; }
.module-price small { font-size: 14px; color: var(--text-muted); font-weight: 400; }
.module-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* Pricing summary bar */
.summary-bar {
  position: sticky; bottom: 0; left: 0; right: 0;
  background: var(--bg-card); border-top: 2px solid var(--gold);
  padding: 1.25rem 0; z-index: 100;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.5);
}
.summary-inner {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
}
.summary-price { font-size: 1.5rem; font-weight: 800; }
.summary-price span { color: var(--gold); }
.summary-price small { font-size: 14px; color: var(--text-muted); font-weight: 400; }
.summary-details { font-size: 13px; color: var(--text-muted); }
.summary-details .old-price { text-decoration: line-through; margin-right: 6px; }

.btn-cta {
  background: var(--gold); color: #000; border: none;
  padding: 0.75rem 2rem; border-radius: 10px;
  font-size: 16px; font-weight: 700; cursor: pointer;
  transition: all 0.2s; text-decoration: none; display: inline-block;
}
.btn-cta:hover { background: #C09636; transform: translateY(-1px); }

/* Public top nav (pricing non-auth) */
.pub-top-nav {
  border-bottom: 1px solid var(--border); padding: 0.75rem 0;
  display: flex; justify-content: space-between; align-items: center;
}
.pub-top-nav a { color: var(--text-muted); text-decoration: none; font-size: 14px; }
.pub-top-nav a:hover { color: var(--text); }
.pub-nav-links { display: flex; gap: 1.5rem; }
.brand { color: var(--gold) !important; font-weight: 800; font-size: 18px; }

/* Trial banner */
.trial-banner {
  text-align: center; padding: 1.25rem; margin: 1.5rem 0;
  background: linear-gradient(135deg, rgba(34,197,94,0.1), rgba(59,130,246,0.1));
  border: 1px solid rgba(34,197,94,0.2); border-radius: 12px;
}
.trial-banner strong { color: var(--green); }

/* Pricing features */
.pricing-features { margin-top: 3rem; padding: 2.5rem 0; border-top: 1px solid var(--border); }
.pricing-features h2 { text-align: center; font-size: 1.5rem; font-weight: 700; margin-bottom: 2rem; }
.pricing-features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.pricing-feature-item { text-align: center; padding: 1.5rem; }
.pricing-feature-item .icon { font-size: 2rem; margin-bottom: 0.5rem; }
.pricing-feature-item h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.375rem; }
.pricing-feature-item p { font-size: 13px; color: var(--text-muted); }

/* Pricing responsive */
@media (max-width: 900px) { .modules-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .pricing-features-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .modules-grid { grid-template-columns: 1fr; } }

/* Auth / Register extras */
.auth-container--wide   { max-width: 480px; }
.form-row               { display: flex; gap: 1rem; }
.form-row > .form-group  { flex: 1; }
.text-required          { color: var(--color-error); }
.password-strength {
  height: 4px;
  border-radius: 2px;
  margin-top: 0.5rem;
  background: var(--color-border);
  overflow: hidden;
}
.password-strength-bar {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s, background-color 0.3s;
  width: 0;
}

/* ───────────────────────────────────────────────
   35. Onboarding Page
─────────────────────────────────────────────── */
.onboarding-wizard {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  width: 100%;
  max-width: 560px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.onboarding-progress {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.onboarding-progress__step {
  width: 60px;
  height: 5px;
  border-radius: 3px;
  background: var(--color-border);
  transition: background 0.3s;
}
.onboarding-progress__step--active {
  background: var(--color-brand-gold);
}
.onboarding-progress__step--done {
  background: var(--color-success);
}
.onboarding-step-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
  text-align: center;
  margin-bottom: 0.5rem;
}
.onboarding-step-desc {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 14px;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.onboarding-icon {
  text-align: center;
  font-size: 48px;
  font-weight: 800;
  color: var(--color-brand-gold);
  margin-bottom: 1rem;
}
.onboarding-icon--success {
  color: var(--color-success);
}
.onboarding-connect {
  text-align: center;
  margin: 1.5rem 0;
}
.onboarding-connect__icon {
  margin-bottom: 1rem;
}
.onboarding-connect__text {
  color: var(--color-text-muted);
  font-size: 14px;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.btn-onboarding {
  display: block;
  width: 100%;
  padding: 0.875rem;
  background: linear-gradient(135deg, var(--color-brand-gold) 0%, #C09636 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 0.5rem;
  text-align: center;
  text-decoration: none;
}
.btn-onboarding:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(212,168,67,0.3);
}
.btn-onboarding--skip {
  background: transparent;
  color: var(--color-text-light);
  border: 2px solid var(--color-border);
  padding: 0.75rem;
  font-size: 14px;
  font-weight: 400;
}
.btn-onboarding--skip:hover {
  border-color: var(--color-text-muted);
  color: var(--color-text-muted);
  transform: none;
  box-shadow: none;
}
.onboarding-module {
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.onboarding-module:hover {
  border-color: var(--color-brand-gold);
}
.onboarding-module--selected {
  border-color: var(--color-brand-gold);
  background: rgba(212,168,67,0.05);
}
.onboarding-module--base {
  border-color: var(--color-success);
  background: rgba(34,197,94,0.05);
  cursor: default;
}
.onboarding-module__name {
  font-size: 15px;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}
.onboarding-module__desc {
  font-size: 12px;
  color: var(--color-text-muted);
}
.onboarding-module__price {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-brand-gold);
  white-space: nowrap;
}
.onboarding-module__price--base {
  color: var(--color-success);
}
.onboarding-module__badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  margin-left: 0.5rem;
}
.onboarding-module__badge--included {
  background: var(--color-success-bg);
  color: var(--color-success);
}
.onboarding-module__badge--trial {
  background: var(--color-info-bg);
  color: var(--color-info);
}
.onboarding-total {
  text-align: center;
  font-size: 18px;
  color: var(--color-text);
  margin: 1rem 0;
  padding: 1rem;
  background: var(--color-surface-light);
  border-radius: var(--radius-md);
}
.onboarding-total strong {
  color: var(--color-brand-gold);
  font-size: 22px;
}

/* ───────────────────────────────────────────────
   25. Auth — Verify / Forgot Password helpers
─────────────────────────────────────────────── */
.auth-icon {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 1rem;
  text-align: center;
}
.auth-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-align: center;
}
.auth-message {
  color: var(--color-text-muted);
  font-size: 14px;
  margin-bottom: 1.5rem;
  text-align: center;
}
.auth-expired-text {
  text-align: center;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

/* ───────────────────────────────────────────────
   26. Invite Page
─────────────────────────────────────────────── */
.card--narrow-center {
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ───────────────────────────────────────────────
   27. Landing Page
─────────────────────────────────────────────── */
.landing-body {
  background-color: var(--color-white);
  color: var(--color-text-primary);
  overflow-x: hidden;
}
.landing-hero {
  position: relative;
  padding: 6rem 0 4rem;
  background: linear-gradient(135deg, var(--color-slate-900) 0%, #1a2744 50%, var(--color-slate-800) 100%);
  color: var(--color-white);
  overflow: hidden;
}
.landing-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(59,130,246,0.15) 1px, transparent 0);
  background-size: 24px 24px;
  pointer-events: none;
}
.landing-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-6);
  display: flex;
  align-items: center;
  gap: var(--spacing-16);
}
.landing-hero-content { flex: 1; min-width: 0; }
.landing-hero-visual  { flex: 1; min-width: 0; display: none; }
@media (min-width: 1024px) {
  .landing-hero-visual { display: block; }
}
.landing-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-2);
  padding: var(--spacing-2) var(--spacing-5);
  background: rgba(59,130,246,0.15);
  border: 1px solid rgba(59,130,246,0.3);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #93c5fd;
  margin-bottom: var(--spacing-6);
}
.landing-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--spacing-6);
}
.landing-hero h1 span { color: var(--color-brand-blue); }
.landing-hero-sub {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-slate-300);
  max-width: 540px;
  margin-bottom: var(--spacing-8);
}
.landing-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-4);
  margin-bottom: var(--spacing-10);
}
.landing-hero-stats { display: flex; gap: var(--spacing-10); }
.landing-hero-stat-value {
  font-size: 2rem;
  font-weight: 900;
  color: var(--color-white);
}
.landing-hero-stat-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-slate-400);
  margin-top: var(--spacing-1);
}
.landing-hero-mockup {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
}
.landing-hero-mockup-stats {
  margin-top: var(--spacing-6);
  display: flex;
  gap: var(--spacing-8);
}
.landing-hero-mockup-stats .landing-goal-metric-val {
  font-size: 1.5rem;
}

/* Trusted by */
.landing-trust {
  padding: var(--spacing-10) 0;
  background: var(--color-slate-50);
  border-bottom: 1px solid var(--color-slate-200);
}
.landing-trust-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-6);
  text-align: center;
}
.landing-trust-label {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-slate-400);
  margin-bottom: var(--spacing-6);
}
.landing-trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--spacing-10);
}
.landing-trust-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-slate-300);
  letter-spacing: -0.02em;
}

/* Sections common */
.landing-section { padding: 5rem 0; }
.landing-section--alt { background: var(--color-slate-50); }
.landing-section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-6);
}
.landing-section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--spacing-12);
}
.landing-section-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--spacing-4);
}
.landing-section-header p {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-slate-500);
}

/* Ecosystem grid */
.landing-eco-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-4);
}
@media (min-width: 768px) {
  .landing-eco-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .landing-eco-grid { grid-template-columns: repeat(4, 1fr); }
}
.landing-eco-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-3);
  padding: var(--spacing-5);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-slate-200);
  transition: var(--transition-base);
  cursor: default;
}
.landing-eco-item:hover {
  border-color: var(--color-brand-blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.landing-eco-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.landing-eco-icon--blue   { background: rgba(59,130,246,0.1); color: var(--color-brand-blue); }
.landing-eco-icon--gold   { background: rgba(251,191,36,0.1); color: #d97706; }
.landing-eco-icon--green  { background: rgba(16,185,129,0.1); color: var(--color-success); }
.landing-eco-icon--purple { background: rgba(139,92,246,0.12); color: #8b5cf6; }
.landing-eco-icon--red    { background: rgba(239,68,68,0.1); color: var(--color-error); }
.landing-eco-name {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-text-primary);
}

/* Goals */
.landing-goals-list { display: grid; gap: var(--spacing-16); }
.landing-goal {
  display: flex;
  align-items: center;
  gap: var(--spacing-12);
}
.landing-goal:nth-child(even) { flex-direction: row-reverse; }
@media (max-width: 767px) {
  .landing-goal,
  .landing-goal:nth-child(even) {
    flex-direction: column;
    gap: var(--spacing-8);
  }
}
.landing-goal-content { flex: 1; min-width: 0; }
.landing-goal-visual  { flex: 1; min-width: 0; }
.landing-goal-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-brand-blue);
  margin-bottom: var(--spacing-3);
}
.landing-goal h3 {
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: var(--spacing-4);
}
.landing-goal p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-slate-500);
}
.landing-goal-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--spacing-8);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-slate-200);
}
.landing-goal-card--dark {
  background: var(--color-slate-900);
  border-color: var(--color-slate-700);
  color: var(--color-white);
}
.landing-goal-metric {
  display: flex;
  align-items: baseline;
  gap: var(--spacing-2);
  margin-bottom: var(--spacing-2);
}
.landing-goal-metric-val {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--color-brand-blue);
}
.landing-goal-card--dark .landing-goal-metric-val {
  color: var(--color-brand-gold);
}
.landing-goal-metric-unit {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-slate-400);
}
.landing-goal-metric-label {
  font-size: 0.8125rem;
  color: var(--color-slate-500);
}
.landing-goal-card--dark .landing-goal-metric-label {
  color: var(--color-slate-400);
}

/* Industries */
.landing-industries-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-4);
}
@media (min-width: 768px) {
  .landing-industries-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .landing-industries-grid { grid-template-columns: repeat(4, 1fr); }
}
.landing-industry {
  text-align: center;
  padding: var(--spacing-8) var(--spacing-4);
  background: var(--color-white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-slate-200);
  transition: var(--transition-base);
}
.landing-industry:hover {
  border-color: var(--color-brand-blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.landing-industry-icon {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-3);
}
.landing-industry-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-text-primary);
}

/* Enterprise */
.landing-enterprise {
  background: linear-gradient(135deg, var(--color-slate-900) 0%, #1a2744 100%);
  color: var(--color-white);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}
.landing-enterprise::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(251,191,36,0.08) 1px, transparent 0);
  background-size: 32px 32px;
  pointer-events: none;
}
.landing-ent-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-6);
}
.landing-ent-header {
  text-align: center;
  margin-bottom: var(--spacing-12);
}
.landing-ent-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 900;
  margin-bottom: var(--spacing-4);
}
.landing-ent-header h2 span { color: var(--color-brand-gold); }
.landing-ent-header p {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-slate-400);
  max-width: 600px;
  margin: 0 auto;
}
.landing-ent-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-6);
}
@media (min-width: 768px) {
  .landing-ent-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .landing-ent-grid { grid-template-columns: repeat(3, 1fr); }
}
.landing-ent-card {
  padding: var(--spacing-8);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  transition: var(--transition-base);
}
.landing-ent-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(251,191,36,0.3);
  transform: translateY(-2px);
}
.landing-ent-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: rgba(251,191,36,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--spacing-5);
}
.landing-ent-card h3 {
  font-size: 1.125rem;
  font-weight: 800;
  margin-bottom: var(--spacing-3);
}
.landing-ent-card p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--color-slate-400);
}

/* Onboarding steps */
.landing-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-6);
  counter-reset: step;
}
@media (min-width: 768px) {
  .landing-steps { grid-template-columns: repeat(3, 1fr); }
}
.landing-step {
  position: relative;
  padding: var(--spacing-8);
  background: var(--color-white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-slate-200);
  text-align: center;
}
.landing-step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--color-brand-blue);
  color: var(--color-white);
  font-size: 1.25rem;
  font-weight: 900;
  margin: 0 auto var(--spacing-5);
}
.landing-step h3 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: var(--spacing-3);
}
.landing-step p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--color-slate-500);
}

/* Pricing preview */
.landing-pricing-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-6);
}
@media (min-width: 768px) {
  .landing-pricing-cards { grid-template-columns: repeat(3, 1fr); }
}
.landing-price-card {
  padding: var(--spacing-8);
  border-radius: var(--radius-xl);
  border: 2px solid var(--color-slate-200);
  text-align: center;
  background: var(--color-white);
  transition: var(--transition-base);
}
.landing-price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}
.landing-price-card--featured {
  border-color: var(--color-brand-blue);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.landing-price-card--featured::before {
  content: 'Популярный';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: var(--spacing-1) var(--spacing-5);
  background: var(--color-brand-blue);
  color: var(--color-white);
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.landing-price-name {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-slate-400);
  margin-bottom: var(--spacing-4);
}
.landing-price-amount {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-1);
}
.landing-price-amount span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-slate-400);
}
.landing-price-desc {
  font-size: 0.875rem;
  color: var(--color-slate-500);
  margin-bottom: var(--spacing-6);
  line-height: 1.6;
}
.landing-price-features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--spacing-8);
  text-align: left;
}
.landing-price-features li {
  padding: var(--spacing-2) 0;
  font-size: 0.875rem;
  color: var(--color-slate-600);
  display: flex;
  align-items: center;
  gap: var(--spacing-3);
}
.landing-price-features li::before {
  content: '\2713';
  color: var(--color-success);
  font-weight: 900;
  flex-shrink: 0;
}

/* Testimonials */
.landing-testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-6);
}
@media (min-width: 768px) {
  .landing-testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .landing-testimonials-grid { grid-template-columns: repeat(3, 1fr); }
}
.landing-testimonial {
  padding: var(--spacing-8);
  background: var(--color-white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-slate-200);
}
.landing-testimonial-quote {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--color-slate-600);
  margin-bottom: var(--spacing-6);
  position: relative;
  padding-left: var(--spacing-5);
  border-left: 3px solid var(--color-brand-blue);
}
.landing-testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--spacing-3);
}
.landing-testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--color-brand-blue);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.875rem;
  flex-shrink: 0;
}
.landing-testimonial-name {
  font-size: 0.875rem;
  font-weight: 700;
}
.landing-testimonial-role {
  font-size: 0.75rem;
  color: var(--color-slate-400);
}

/* CTA final */
.landing-cta {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--color-brand-blue) 0%, #2563eb 100%);
  color: var(--color-white);
  text-align: center;
}
.landing-cta-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--spacing-6);
}
.landing-cta h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 900;
  margin-bottom: var(--spacing-4);
}
.landing-cta p {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.8);
  margin-bottom: var(--spacing-8);
}
.landing-cta .btn-gold { font-size: 12px; }

/* Footer */
.landing-footer {
  background: var(--color-slate-900);
  color: var(--color-slate-400);
  padding: var(--spacing-12) 0 var(--spacing-8);
}
.landing-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-6);
}
.landing-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--spacing-10);
  margin-bottom: var(--spacing-10);
}
@media (max-width: 767px) {
  .landing-footer-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-8);
  }
}
.landing-footer-brand-name {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--color-white);
  margin-bottom: var(--spacing-3);
}
.landing-footer-brand-desc {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--color-slate-400);
}
.landing-footer-col-title {
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-white);
  margin-bottom: var(--spacing-5);
}
.landing-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.landing-footer-links li { margin-bottom: var(--spacing-3); }
.landing-footer-links a {
  font-size: 0.875rem;
  color: var(--color-slate-400);
  text-decoration: none;
  transition: var(--transition-fast);
}
.landing-footer-links a:hover { color: var(--color-white); }
.landing-footer-bottom {
  border-top: 1px solid var(--color-slate-700);
  padding-top: var(--spacing-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--spacing-4);
}
.landing-footer-copy {
  font-size: 0.8125rem;
  color: var(--color-slate-500);
}
.landing-footer-legal {
  display: flex;
  gap: var(--spacing-6);
}
.landing-footer-legal a {
  font-size: 0.8125rem;
  color: var(--color-slate-500);
  text-decoration: none;
  transition: var(--transition-fast);
}
.landing-footer-legal a:hover { color: var(--color-white); }

/* Nav */
.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--spacing-4) 0;
  transition: var(--transition-base);
}
.landing-nav--scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}
.landing-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.landing-nav-brand {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--color-white);
  text-decoration: none;
  transition: var(--transition-base);
}
.landing-nav--scrolled .landing-nav-brand {
  color: var(--color-text-primary);
}
.landing-nav-links {
  display: none;
  align-items: center;
  gap: var(--spacing-8);
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 768px) {
  .landing-nav-links { display: flex; }
}
.landing-nav-links a {
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: var(--transition-base);
}
.landing-nav-links a:hover { color: var(--color-white); }
.landing-nav--scrolled .landing-nav-links a {
  color: var(--color-slate-500);
}
.landing-nav--scrolled .landing-nav-links a:hover {
  color: var(--color-brand-blue);
}
.landing-nav-cta {
  display: flex;
  gap: var(--spacing-3);
}
.landing-nav-cta .btn {
  padding: var(--spacing-3) var(--spacing-6);
  font-size: 9px;
}
.btn-white-outline {
  background: transparent;
  color: var(--color-white);
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-lg);
  transition: var(--transition-base);
}
.btn-white-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
}
.landing-nav--scrolled .btn-white-outline {
  color: var(--color-text-primary);
  border-color: var(--color-slate-300);
}
.landing-nav--scrolled .btn-white-outline:hover {
  background: var(--color-slate-100);
}

/* Mobile burger */
.landing-burger {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-2);
}
@media (min-width: 768px) {
  .landing-burger { display: none; }
}
.landing-burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-white);
  border-radius: 1px;
  transition: var(--transition-base);
}
.landing-nav--scrolled .landing-burger span {
  background: var(--color-text-primary);
}

/* Mobile menu */
.landing-mobile-menu {
  display: none;
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  background: var(--color-white);
  box-shadow: var(--shadow-lg);
  padding: var(--spacing-6);
  z-index: 999;
}
.landing-mobile-menu.active { display: block; }
.landing-mobile-menu a {
  display: block;
  padding: var(--spacing-3) 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-text-primary);
  text-decoration: none;
}
.landing-mobile-menu .btn {
  margin-top: var(--spacing-4);
  width: 100%;
}

/* ───────────────────────────────────────────────
   28. Integration Modal & Dropdown (branch_selector)
─────────────────────────────────────────────── */
.integration-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: integrationFadeIn 0.2s ease;
}
.integration-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
}
.integration-modal-content {
  position: relative;
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow: hidden;
  animation: integrationSlideUp 0.3s ease;
}
.integration-modal-header {
  padding: 2rem;
  border-bottom: 1px solid var(--color-slate-200, #e2e8f0);
}
.integration-modal-body {
  padding: 1.5rem 2rem 2rem;
  overflow-y: auto;
  max-height: 60vh;
}
.integration-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.integration-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: white;
  border: 2px solid var(--color-slate-200, #e2e8f0);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  text-align: left;
}
.integration-card:hover {
  border-color: var(--color-primary, #0f172a);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}
.integration-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--color-slate-100, #f1f5f9);
  border-radius: 8px;
  color: var(--color-slate-600, #475569);
  flex-shrink: 0;
}
.integration-card-body { flex: 1; }
.integration-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-slate-900, #0f172a);
  margin-bottom: 0.25rem;
}
.integration-card-subtitle {
  font-size: 0.875rem;
  color: var(--color-slate-500, #64748b);
}
.integration-card-arrow {
  font-size: 1.5rem;
  color: var(--color-slate-400, #94a3b8);
  transition: transform 0.2s ease;
}
.integration-card:hover .integration-card-arrow {
  transform: translateX(4px);
}

/* Integration Dropdown */
.integration-dropdown { position: relative; }
.integration-dropdown-btn {
  display: flex;
  align-items: center;
  color: #1a1a2e !important;
  background: #fff !important;
  border: 2px solid rgba(255, 255, 255, 0.6) !important;
  white-space: nowrap;
  max-width: 300px;
  border-radius: 8px !important;
  padding: 6px 12px !important;
  font-weight: 600 !important;
  font-size: 13px !important;
}
.integration-dropdown-btn:hover {
  background: #f1f5f9 !important;
  border-color: #D4A843 !important;
}
#currentIntegrationName {
  overflow: hidden;
  text-overflow: ellipsis;
}
.integration-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 300px;
  background: white;
  border: 1px solid var(--color-slate-200, #e2e8f0);
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  animation: integrationFadeIn 0.15s ease;
  z-index: 1000;
}

/* Mega-dropdown: поиск и скроллируемый список */
.integration-dropdown-search {
  position: sticky;
  top: 0;
  padding: 10px 10px 0;
  background: white;
  z-index: 2;
}
.integration-dropdown-search-inner {
  position: relative;
  display: flex;
  align-items: center;
}
.integration-dropdown-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-slate-400, #94a3b8);
  pointer-events: none;
  flex-shrink: 0;
}
.integration-dropdown-search .input {
  width: 100%;
  padding-left: 34px !important;
  padding-top: 7px !important;
  padding-bottom: 7px !important;
  font-size: 13px !important;
  border-radius: 6px !important;
}
.integration-dropdown-count {
  padding: 6px 12px 8px;
  font-size: 11px;
  font-weight: 500;
  color: var(--color-slate-400, #94a3b8);
  letter-spacing: 0.03em;
  background: white;
}
.integration-dropdown-list {
  overflow-y: auto;
  max-height: 340px;
  overscroll-behavior: contain;
}
.integration-dropdown-empty {
  padding: 24px 16px;
  text-align: center;
  color: var(--color-slate-400, #94a3b8);
  font-size: 13px;
  display: none;
}
.integration-dropdown-empty.visible { display: block; }

.integration-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.875rem 1rem;
  background: white;
  border: none;
  border-bottom: 1px solid var(--color-slate-100, #f1f5f9);
  cursor: pointer;
  transition: background 0.15s ease;
  text-align: left;
}
.integration-dropdown-item:hover:not(:disabled) {
  background: var(--color-slate-50, #f8fafc);
}
.integration-dropdown-item:last-child { border-bottom: none; }
.integration-dropdown-item.active,
.integration-dropdown-item:disabled {
  background: var(--color-slate-100, #f1f5f9);
  cursor: default;
}
.integration-dropdown-item-name {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-slate-900, #0f172a);
}
.integration-dropdown-item-id {
  font-size: 0.8125rem;
  color: var(--color-slate-500, #64748b);
  margin-left: auto;
  margin-right: 0.5rem;
}
.integration-icon-mr { margin-right: 6px; flex-shrink: 0; }
.integration-icon-ml { margin-left: 6px; flex-shrink: 0; }
.integration-icon-check { margin-left: auto; }

@keyframes integrationFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes integrationSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (max-width: 768px) {
  .integration-dropdown-btn { max-width: 200px; }
  #currentIntegrationName   { font-size: 0.8125rem; }
  .integration-modal-content { width: 95%; max-width: none; }
}

/* ───────────────────────────────────────────────
   36. Connect Pages (yclients-connect, metrika-connect)
─────────────────────────────────────────────── */

/* — YClients Connect — */
.connect-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.connect-page--yclients {
  background: linear-gradient(135deg, #f5f7fa 0%, #fdf6e3 100%);
}
.connect-page--metrika {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.connect-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
  width: 100%;
  max-width: 480px;
  padding: 2.5rem;
}
.connect-card .logo {
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  color: #D4A843;
  margin-bottom: 0.25rem;
}
.connect-card .subtitle {
  text-align: center;
  color: #888;
  font-size: 14px;
  margin-bottom: 2rem;
}
.connect-card .step { display: none; }
.connect-card .step.active { display: block; }
.connect-card .step-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 0.5rem;
}
.connect-card .step-desc {
  font-size: 13px;
  color: #888;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}
.connect-card .form-group { margin-bottom: 1.25rem; }
.connect-card .form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #444;
  margin-bottom: 0.4rem;
}
.connect-card .form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e8e8e8;
  border-radius: 10px;
  font-size: 15px;
  outline: none;
  transition: border 0.2s;
}
.connect-card .form-input:focus { border-color: #D4A843; }
.connect-card .btn-primary {
  width: 100%;
  padding: 0.875rem 1rem;
  background: linear-gradient(135deg, #D4A843, #C09636);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
}
.connect-card .btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212,168,67,0.3);
}
.connect-card .btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.connect-card .btn-secondary {
  display: block;
  text-align: center;
  color: #888;
  text-decoration: none;
  font-size: 13px;
  margin-top: 1rem;
}
.connect-card .btn-secondary:hover { color: #D4A843; }
.connect-card .alert {
  padding: 0.875rem 1rem;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 1.25rem;
}
.connect-card .alert-error { background: #fee; color: #c33; border-left: 4px solid #c33; }
.connect-card .alert-info  { background: #e3f2fd; color: #1565c0; border-left: 4px solid #1976d2; }
.company-list { list-style: none; margin-bottom: 1.5rem; }
.company-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 2px solid #e8e8e8;
  border-radius: 12px;
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}
.company-item:hover,
.company-item.selected {
  border-color: #D4A843;
  background: #fffbf0;
}
.company-item input[type="radio"] { accent-color: #D4A843; width: 18px; height: 18px; flex-shrink: 0; }
.company-info { flex: 1; min-width: 0; }
.company-name { font-weight: 700; color: #1a1a2e; font-size: 14px; }
.company-meta { color: #888; font-size: 12px; margin-top: 2px; }
.connect-spinner {
  display: inline-block;
  width: 20px; height: 20px;
  border: 3px solid #f0e0b0;
  border-top-color: #D4A843;
  border-radius: 50%;
  animation: connectSpin 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 0.5rem;
}
@keyframes connectSpin { to { transform: rotate(360deg); } }
.connect-card .back-link {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #f0f0f0;
}
.connect-card .back-link a { color: #D4A843; text-decoration: none; font-size: 13px; }
.success-icon {
  text-align: center;
  font-size: 48px;
  margin-bottom: 1rem;
}

/* — Metrika Connect — */
.metrika-container {
  background: white;
  border-radius: 16px;
  padding: 48px;
  max-width: 600px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.metrika-container .logo {
  text-align: center;
  margin-bottom: 32px;
}
.metrika-container .logo svg {
  width: 64px;
  height: 64px;
  fill: #667eea;
}
.metrika-container h1 {
  font-size: 28px;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 16px;
  text-align: center;
}
.metrika-container .description {
  color: #4a5568;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 32px;
  text-align: center;
}
.metrika-features {
  background: #f7fafc;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
}
.metrika-features h3 {
  font-size: 16px;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 16px;
}
.metrika-feature-item {
  display: flex;
  align-items: start;
  margin-bottom: 12px;
  color: #4a5568;
  font-size: 14px;
}
.metrika-feature-item:last-child { margin-bottom: 0; }
.metrika-feature-item::before {
  content: "\2713";
  color: #48bb78;
  font-weight: bold;
  margin-right: 12px;
  font-size: 18px;
}
.metrika-connect-btn {
  width: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 16px 32px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}
.metrika-connect-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}
.metrika-connect-btn:active { transform: translateY(0); }
.metrika-status {
  margin-top: 24px;
  padding: 16px;
  border-radius: 8px;
  text-align: center;
  font-size: 14px;
}
.metrika-status.loading { background: #edf2f7; color: #4a5568; }
.metrika-status.error   { background: #fed7d7; color: #c53030; }
.metrika-status.success { background: #c6f6d5; color: #22543d; }
.metrika-container .back-link {
  display: block;
  text-align: center;
  margin-top: 24px;
  color: #667eea;
  text-decoration: none;
  font-size: 14px;
}
.metrika-container .back-link:hover { text-decoration: underline; }

/* ───────────────────────────────────────────────
   17. Responsive
─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .container, .container--narrow, .container--wide { padding: 0 1rem; }
  .navbar-menu { display: none; } /* mobile: collapse */
  .page-title  { font-size: 1.4rem; }
}

/* ───────────────────────────────────────────────
   18. УК-режим (settings.php) — v3.7.0
─────────────────────────────────────────────── */

/* Badge */
.badge-uk {
  background: rgba(212,168,67,0.18);
  color: var(--color-brand-gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 1px 7px;
  border-radius: 4px;
  vertical-align: middle;
}

/* UK section wrapper */
.section--uk {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: var(--space-4, 1.5rem);
}

/* UK toggle row (label wrapping the whole row) */
.uk-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
}
.uk-toggle-info { flex: 1; }
.uk-toggle-title {
  font-weight: 600;
  font-size: 15px;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.uk-toggle-desc {
  margin-top: 4px;
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.5;
  max-width: 560px;
}
.uk-toggle-ctrl {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Generic CSS toggle-track (used in settings) */
.toggle-track {
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: var(--color-border);
  position: relative;
  transition: background 0.2s;
  cursor: pointer;
  flex-shrink: 0;
}
.toggle-track.on { background: var(--color-success); }
.toggle-track::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  top: 3px;
  left: 3px;
  transition: transform 0.2s;
}
.toggle-track.on::after { transform: translateX(20px); }

/* Branch users list */
.branch-users-group {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
}
.branch-users-header {
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
.branch-user-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--color-border);
}
.branch-user-row:last-child { border-bottom: none; }
.branch-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(212,168,67,0.15);
  color: var(--color-brand-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
.branch-user-login {
  font-weight: 600;
  font-size: 14px;
  color: var(--color-text);
}

/* Disabled net-toggle в режиме УК */
.mod-net-toggle--disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}
.mod-net-uk-hint {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--color-brand-gold);
  background: rgba(212,168,67,0.12);
  padding: 1px 5px;
  border-radius: 3px;
  margin-left: 4px;
}

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

/* ═══════════════════════════════════════════════════════════════════════════
   MODULE SETTINGS PAGE  (.ms-*)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Layout */
.ms-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 900px) {
  .ms-grid { grid-template-columns: 1fr; }
}

.ms-col { display: flex; flex-direction: column; gap: 20px; }
.ms-col--aside { gap: 16px; }

/* Card */
.ms-card {
  background: var(--card-bg, #fff);
  border: 1px solid var(--border-color, #e8eaed);
  border-radius: 16px;
  padding: 24px;
}
.ms-card--guide { background: #f8faff; border-color: #c8d8ff; }
.ms-card--info  { background: #f0faf4; border-color: #b2dfce; }

.ms-card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}
.ms-card-icon {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
}
.ms-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary, #1a1d2e);
}
.ms-card-sub {
  font-size: 13px;
  color: var(--text-muted, #6b7280);
  margin-top: 2px;
}

/* Fields */
.ms-field { margin-bottom: 18px; }
.ms-field:last-of-type { margin-bottom: 0; }
.ms-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary, #1a1d2e);
  margin-bottom: 6px;
}
.ms-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border-color, #e8eaed);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  background: var(--input-bg, #fafafa);
  color: var(--text-primary, #1a1d2e);
  transition: border-color .18s;
  box-sizing: border-box;
}
.ms-input:focus {
  outline: none;
  border-color: #667eea;
  background: #fff;
}
.ms-textarea { resize: vertical; min-height: 80px; }
.ms-input--sm { max-width: 120px; }

.ms-input-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ms-input-suffix {
  font-size: 14px;
  color: var(--text-muted, #6b7280);
  flex-shrink: 0;
}

.ms-hint {
  font-size: 12px;
  color: var(--text-muted, #6b7280);
  margin-top: 5px;
  line-height: 1.5;
}
.ms-hint a { color: #667eea; text-decoration: none; }
.ms-hint a:hover { text-decoration: underline; }
.ms-hint code {
  background: #f0f0f5;
  padding: 1px 5px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 11px;
}

/* Toggle */
.ms-toggle {
  display: flex;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: auto;
}
.ms-toggle input { display: none; }
.ms-toggle-track {
  width: 44px;
  height: 24px;
  background: #d1d5db;
  border-radius: 12px;
  position: relative;
  transition: background .2s;
}
.ms-toggle-track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
  transition: transform .2s;
}
.ms-toggle input:checked + .ms-toggle-track {
  background: #667eea;
}
.ms-toggle input:checked + .ms-toggle-track::after {
  transform: translateX(20px);
}

/* Checkbox rows */
.ms-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color, #e8eaed);
  cursor: pointer;
}
.ms-checkbox-row:last-of-type { border-bottom: none; }
.ms-checkbox-row input[type=checkbox] {
  width: 18px;
  height: 18px;
  accent-color: #667eea;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 1px;
}
.ms-checkbox-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ms-checkbox-label strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary, #1a1d2e);
}
.ms-checkbox-label small {
  font-size: 12px;
  color: var(--text-muted, #6b7280);
}

/* Scope toggles: per-branch + network-wide */
.ms-scope-toggles {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 4px 0 8px;
  border-bottom: 1px solid var(--border-color, #e8eaed);
  margin-bottom: 16px;
}
.ms-scope-toggles .ms-checkbox-row {
  border-bottom: none;
  padding: 10px 0;
}
.ms-checkbox-row--network {
  background: #eff6ff;
  border-radius: 8px;
  padding: 10px 12px !important;
  border: 1px solid #bfdbfe !important;
  margin-top: 4px;
}
.ms-checkbox-row--network input[type=checkbox] {
  accent-color: #2563eb;
}
.ms-checkbox-row--network .ms-checkbox-label strong {
  color: #1d4ed8;
}
.ms-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color, #e8eaed);
}

/* Feedback */
.ms-feedback {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  margin-top: 14px;
}
.ms-feedback--success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.ms-feedback--error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.ms-feedback--info    { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

/* Guide steps */
.ms-guide-steps {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ms-guide-steps li {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-primary, #1a1d2e);
}
.ms-guide-steps li strong { font-weight: 700; }
.ms-guide-steps li a { color: #667eea; text-decoration: none; }
.ms-guide-steps li a:hover { text-decoration: underline; }
.ms-guide-steps li code {
  background: #e8eeff;
  padding: 1px 5px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 11px;
}

/* Info list */
.ms-info-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ms-info-list li {
  font-size: 13px;
  color: var(--text-primary, #1a1d2e);
  line-height: 1.5;
}

/* mt-4 utility */
.mt-4 { margin-top: 16px; }

/* ═══════════════════════════════════════════════════════════════════════════
   MARKETPLACE WIDGET — Settings button  (.mpw-btn-settings)
   ═══════════════════════════════════════════════════════════════════════════ */

.mpw-btn-settings {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: #f0f3ff;
  color: #4f46e5;
  border: 1.5px solid #c7d2fe;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s, border-color .18s;
}
.mpw-btn-settings:hover {
  background: #e0e7ff;
  border-color: #818cf8;
}
.mpw-btn-settings--lg {
  padding: 12px 28px;
  font-size: 15px;
}

/* Active state CTA section */
.mpw-cta-section--active .mpw-cta-box {
  background: #f8faff;
  border-color: #c8d8ff;
}

/* Module settings — alert banner */
.ms-alert {
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 14px;
  margin-bottom: 20px;
}
.ms-alert--warn {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

/* Module settings — bot badge (central bot display) */
.ms-bot-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #e8f4fe;
  border: 1px solid #c3ddf9;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #1565c0;
  margin-bottom: 18px;
}

/* Module settings — report groups (export email) */
.ms-checkgroup {
  margin-bottom: 20px;
}
.ms-checkgroup-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted, #6b7280);
  padding: 4px 0 8px;
  border-bottom: 1px solid var(--border-color, #e8eaed);
  margin-bottom: 4px;
}
.ms-checkgroup .ms-checkbox-row:last-of-type {
  border-bottom: none;
}

/* Module settings — radio group (frequency) */
.ms-radio-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ms-radio-group .ms-checkbox-row input[type=radio] {
  accent-color: var(--accent, #7b61ff);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

