/* ==========================================================================
   KLIK.RE — DESIGN SYSTEM & THEME TOKENS
   Strict design tokens, zero inline styles, dark tech aesthetic.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  /* Surface & Backgrounds */
  --bg: #0B0E14;
  --bg-raise: #10141C;
  --card: #151922;
  --card-hover: #1A202C;
  --card-subtle: #121620;
  
  /* Borders */
  --border: #232936;
  --border-hi: #323B4B;
  --border-focus: #FF6B00;
  
  /* Brand Accent */
  --orange: #FF6B00;
  --orange-soft: #FF8533;
  --orange-dim: rgba(255, 107, 0, 0.12);
  --orange-glow: rgba(255, 107, 0, 0.35);
  
  /* Status Colors */
  --success: #3FCF7A;
  --success-dim: rgba(63, 207, 122, 0.15);
  --cyan: #00D2FF;
  --cyan-dim: rgba(0, 210, 255, 0.15);
  --purple: #A855F7;
  --purple-dim: rgba(168, 85, 247, 0.15);
  --red: #E8544C;
  --red-dim: rgba(232, 84, 76, 0.12);
  
  /* Typography & Neutrals */
  --text: #F3F5F8;
  --text-dim: #CBD2DC;
  --text-light: #DCE1E8;
  --muted: #8B96A8;
  --muted-dim: #5B6577;
  
  /* Font Families */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  
  /* Layout Dimensions */
  --wrap: 1120px;
  --wrap-narrow: 820px;
  --wrap-wide: 1280px;
  
  /* Radii */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-card: 0 30px 70px -40px rgba(0, 0, 0, 0.7);
  --shadow-orange: 0 24px 60px -32px rgba(255, 107, 0, 0.45);
  --shadow-glow: 0 0 24px rgba(255, 107, 0, 0.2);
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  
  /* Spacings */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
}

/* ==========================================================================
   RESET & BASE TYPOGRAPHY
   ========================================================================== */

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

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

body,
body.klik-body,
body.customers {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  font-size: 15.5px;
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100vw;
}

::selection {
  background: var(--orange);
  color: #0B0E14;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text);
}

.mono {
  font-family: var(--font-mono);
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--space-6);
  width: 100%;
}

.wrap-narrow {
  max-width: var(--wrap-narrow);
  margin: 0 auto;
  padding: 0 var(--space-6);
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img, svg {
  max-width: 100%;
  display: block;
}

/* ==========================================================================
   SIGNATURE TERMINAL COMPONENTS & PRICE TAGS
   ========================================================================== */

.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--orange);
  background: var(--orange-dim);
  border: 1px solid rgba(255, 107, 0, 0.35);
  padding: 7px 14px;
  border-radius: var(--radius-full);
  letter-spacing: 0.01em;
}

.tag::before {
  content: '//';
  opacity: 0.55;
}

.tag-clean::before {
  content: '';
  display: none;
}

.cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--orange);
  vertical-align: -2px;
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.price {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 28px;
  color: var(--text);
  display: inline-flex;
  align-items: baseline;
}

.price .prompt {
  color: var(--muted-dim);
  font-weight: 400;
  margin-right: 3px;
}

.price .unit {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-left: 6px;
}

.price-line {
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14.5px;
  padding: 12px 22px;
  border-radius: 7px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  text-decoration: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--orange);
  color: #0B0E14;
}

.btn-primary:hover {
  background: var(--orange-soft);
  color: #0B0E14;
  box-shadow: var(--shadow-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-hi);
}

.btn-ghost:hover {
  border-color: var(--muted-dim);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.klik-header .btn-primary,
body.customers .klik-header .btn-primary {
  background: var(--orange) !important;
  color: #0B0E14 !important;
  border-color: transparent !important;
}

.klik-header .btn-primary:hover,
body.customers .klik-header .btn-primary:hover {
  background: var(--orange-soft) !important;
  color: #0B0E14 !important;
  box-shadow: var(--shadow-glow) !important;
}

.klik-header .btn-ghost,
body.customers .klik-header .btn-ghost {
  background: transparent !important;
  color: var(--text) !important;
  border-color: var(--border-hi) !important;
}

.klik-header .btn-ghost:hover,
body.customers .klik-header .btn-ghost:hover {
  border-color: var(--muted-dim) !important;
  color: var(--text) !important;
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

.klik-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 14, 20, 0.88) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border) !important;
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
  border-radius: 0 !important;
  margin-bottom: 0 !important;
}

.klik-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  position: relative;
}

.klik-burger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: 10px;
  z-index: 105;
}

.klik-burger-btn span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.klik-burger-btn.open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
  background: var(--orange);
}

.klik-burger-btn.open span:nth-child(2) {
  opacity: 0;
}

.klik-burger-btn.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
  background: var(--orange);
}

.klik-mobile-drawer {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  background: rgba(11, 14, 20, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
  padding: 0 16px;
}

.klik-mobile-drawer.open {
  max-height: 520px;
  opacity: 1;
  padding: 16px 16px 24px;
}

.mobile-drawer-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-navlinks {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-navlink {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.mobile-navlink:hover,
.mobile-navlink.active {
  background: rgba(255, 107, 0, 0.08);
  color: var(--orange);
  border-color: rgba(255, 107, 0, 0.2);
}

.mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

@media(max-width: 991px) {
  .desktop-only,
  .klik-nav .desktop-only {
    display: none !important;
  }
  .mobile-only {
    display: block !important;
  }
  .klik-burger-btn.mobile-only {
    display: flex !important;
  }
  .klik-nav .nav-actions {
    gap: 0 !important;
  }
}

@media(min-width: 992px) {
  .mobile-only,
  .klik-mobile-drawer.mobile-only,
  .klik-burger-btn.mobile-only {
    display: none !important;
  }
  .desktop-only {
    display: inline-flex !important;
  }
  .dropdown.desktop-only {
    display: inline-block !important;
  }
  .navlinks.desktop-only {
    display: flex !important;
  }
}

.mobile-user-greeting {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.mobile-user-name {
  font-weight: 700;
  color: var(--text);
  font-size: 14px;
}

.mobile-user-role {
  font-size: 12px;
  color: var(--muted);
}

.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 1px;
}

.logo .dot {
  color: var(--orange);
}

.navlinks {
  display: none;
  align-items: center;
  gap: 32px;
  font-size: 14.5px;
  color: var(--muted);
  font-weight: 500;
}

@media(min-width: 880px) {
  .navlinks {
    display: flex;
  }
}

.navlinks a:hover {
  color: var(--text);
}

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

.nav-actions .btn {
  white-space: nowrap !important;
}

@media(max-width: 768px) {
  .nav-actions {
    gap: 8px;
  }

  .nav-actions .btn {
    padding: 7px 12px !important;
    font-size: 12.5px !important;
  }
}

.back {
  font-size: 13.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.back:hover {
  color: var(--text);
  text-decoration: none;
}

/* ==========================================================================
   HERO SECTIONS
   ========================================================================== */

.hero {
  padding: var(--space-24) 0 var(--space-20);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -220px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 520px;
  background: radial-gradient(circle, rgba(255, 107, 0, 0.16), transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.hero h1 {
  font-size: clamp(34px, 5.6vw, 58px);
  margin: var(--space-6) 0 var(--space-5);
}

.hero h1 .accent {
  color: var(--orange);
}

.hero p {
  font-size: 18px;
  color: var(--muted);
  max-width: 580px;
  margin: 0 auto var(--space-10);
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
  margin-bottom: var(--space-6);
}

.hero-note {
  font-size: 13px;
  color: var(--muted-dim);
  font-family: var(--font-mono);
}

/* Pack Hero Grid Layout */
.hero-pack {
  padding: var(--space-20) 0 var(--space-16);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.hero-pack::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -100px;
  width: 700px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 107, 0, 0.14), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 52px;
  align-items: center;
  position: relative;
}

@media(min-width: 920px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.hero-grid h1 {
  font-size: clamp(32px, 4.6vw, 46px);
  margin: var(--space-5) 0 var(--space-4);
}

.hero-grid p {
  color: var(--muted);
  font-size: 17px;
  max-width: 480px;
  margin-bottom: var(--space-8);
}

.hero-grid .hero-ctas {
  justify-content: flex-start;
}

/* Legal & Standard Hero */
.hero-legal {
  padding: var(--space-16) 0 var(--space-10);
  border-bottom: 1px solid var(--border);
}

.hero-legal h1 {
  font-size: clamp(28px, 4vw, 40px);
  margin: var(--space-4) 0 var(--space-3);
}

.hero-legal p {
  color: var(--muted);
  font-size: 16px;
  max-width: 680px;
}

/* ==========================================================================
   SECTIONS & LAYOUT GRIDS
   ========================================================================== */

section {
  padding: var(--space-20) 0;
}

.section-head {
  max-width: 600px;
  margin: 0 auto var(--space-12);
  text-align: center;
}

.section-head h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  margin-top: var(--space-4);
}

.section-head p {
  color: var(--muted);
  margin-top: var(--space-3);
  font-size: 16px;
}

/* Section Background Alternation */
.section-raised {
  background: var(--bg-raise);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ==========================================================================
   COMPARATIF SECTION
   ========================================================================== */

.compare-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  max-width: 920px;
  margin: 0 auto;
}

@media(min-width: 760px) {
  .compare-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.compare-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-8);
}

.compare-card.win {
  border-color: rgba(255, 107, 0, 0.4);
  box-shadow: 0 0 0 1px rgba(255, 107, 0, 0.12), 0 20px 50px -30px rgba(255, 107, 0, 0.4);
}

.compare-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border-radius: var(--radius-xs);
  display: inline-block;
  margin-bottom: var(--space-5);
}

.compare-card:not(.win) .compare-label {
  color: var(--red);
  background: var(--red-dim);
}

.compare-card.win .compare-label {
  color: var(--orange);
  background: var(--orange-dim);
}

.compare-list {
  list-style: none;
}

.compare-list li {
  display: flex;
  gap: var(--space-3);
  font-size: 14.5px;
  color: var(--muted);
  padding: 11px 0;
  border-top: 1px solid var(--border);
}

.compare-list li:first-of-type {
  border-top: none;
}

.compare-card.win .compare-list li {
  color: var(--text-light);
}

.mark {
  flex-shrink: 0;
  font-weight: 700;
  font-family: var(--font-mono);
}

.compare-card:not(.win) .mark {
  color: var(--red);
}

.compare-card.win .mark {
  color: var(--orange);
}

/* ==========================================================================
   OFFRES SECTION (3 PACKS)
   ========================================================================== */

.offers-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

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

.offer-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color var(--transition-normal), transform var(--transition-normal), box-shadow var(--transition-normal);
}

.offer-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hi);
}

.offer-card.featured {
  border-color: var(--orange);
  box-shadow: var(--shadow-orange);
}

.offer-badge {
  position: absolute;
  top: -13px;
  left: 30px;
  background: var(--orange);
  color: #0B0E14;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.offer-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-dim);
  margin-bottom: var(--space-2);
  letter-spacing: 0.02em;
}

.offer-card h3 {
  font-size: 23px;
  margin-bottom: var(--space-3);
}

.offer-pitch {
  color: var(--muted);
  font-size: 14.5px;
  margin-bottom: var(--space-6);
  min-height: 44px;
}

.offer-price {
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--border);
}

.offer-features {
  list-style: none;
  margin-bottom: var(--space-8);
  flex-grow: 1;
}

.offer-features li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: var(--text-dim);
  padding: 8px 0;
}

.offer-features li .mark {
  color: var(--orange);
}

/* ==========================================================================
   ABONNEMENT SÉRÉNITÉ
   ========================================================================== */

.serenite-box {
  max-width: 960px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-10);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  align-items: center;
  justify-content: space-between;
}

.serenite-content h3 {
  font-size: 22px;
  margin-top: var(--space-4);
  margin-bottom: var(--space-2);
}

.serenite-content p {
  color: var(--muted);
  font-size: 14.5px;
  max-width: 460px;
}

.serenite-price {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-2);
}

.serenite-price .price {
  font-size: 34px;
}

/* ==========================================================================
   FEATURE INCLUSIONS GRID (PACK PAGES)
   ========================================================================== */

.feat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

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

.feat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
}

.feat-key {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--orange);
  margin-bottom: var(--space-2);
}

.feat-card h3 {
  font-size: 17px;
  margin-bottom: var(--space-2);
}

.feat-card p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
}

/* CTA Band */
.cta-band {
  max-width: 820px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  text-align: center;
}

.cta-band h2 {
  font-size: 26px;
  margin-bottom: var(--space-3);
}

.cta-band p {
  color: var(--muted);
  margin-bottom: var(--space-6);
  font-size: 16px;
}

/* ==========================================================================
   INTERACTIVE MOCKUPS (RESTAURANT / BTP / SERVICES)
   ========================================================================== */

.mock {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-card);
}

.mock-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-5);
}

.mock-title {
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-heading);
}

.mock-status {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.mock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px var(--success-dim);
}

.service-toggle {
  display: flex;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: var(--space-4);
  cursor: pointer;
}

.service-toggle span {
  flex: 1;
  text-align: center;
  padding: 9px;
  font-size: 13px;
  border-radius: var(--radius-xs);
  font-weight: 600;
  color: var(--muted);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.service-toggle span.active {
  background: var(--orange);
  color: #0B0E14;
}

.mock-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
}

.mock-row:first-of-type {
  border-top: none;
}

.mock-row .lbl {
  color: var(--muted);
}

.mock-row .val {
  font-family: var(--font-mono);
  font-weight: 500;
}

.stepper {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  justify-content: center;
}

.stepper button {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-xs);
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition-fast);
}

.stepper button:hover {
  border-color: var(--orange);
}

.stepper .n {
  font-family: var(--font-mono);
  font-size: 15px;
  min-width: 20px;
  text-align: center;
}

.slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
  margin: var(--space-4) 0;
}

.slot {
  text-align: center;
  padding: 10px 0;
  border-radius: 7px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.slot:hover {
  border-color: var(--border-hi);
  color: var(--text);
}

.slot.sel {
  background: var(--orange-dim);
  border-color: var(--orange);
  color: var(--orange);
  font-weight: 600;
}

.slot.off {
  opacity: 0.35;
  cursor: not-allowed;
}

.mock-sms {
  margin-top: var(--space-4);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 12px 14px;
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.45;
}

.mock-sms .ic {
  color: var(--orange);
  font-family: var(--font-mono);
  font-weight: 600;
  flex-shrink: 0;
}

/* BTP Mockup Specifics */
.steps-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: var(--space-5);
}

.steps-indicator .step-bar {
  flex: 1;
  height: 4px;
  border-radius: 3px;
  background: var(--border);
  transition: background var(--transition-normal);
}

.steps-indicator .step-bar.done {
  background: var(--orange);
}

.step-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: var(--space-4);
}

.step-label b {
  color: var(--orange);
}

.chips {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-5);
}

.chip {
  padding: 8px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--muted);
  cursor: pointer;
  background: var(--bg);
  transition: all var(--transition-fast);
}

.chip:hover {
  border-color: var(--border-hi);
  color: var(--text);
}

.chip.sel {
  background: var(--orange-dim);
  border-color: var(--orange);
  color: var(--orange);
  font-weight: 600;
}

.upload-box {
  border: 1.5px dashed var(--border-hi);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted-dim);
  margin: var(--space-4) 0 var(--space-5);
  font-family: var(--font-mono);
  background: var(--bg);
}

/* Services Mockup Specifics */
.presta-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 12px 14px;
  margin-bottom: var(--space-4);
}

.presta-item .name {
  font-size: 13.5px;
  font-weight: 600;
}

.presta-item .meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
}

.days-row {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.day-item {
  flex: 1;
  text-align: center;
  padding: 9px 0;
  border-radius: 7px;
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
  cursor: pointer;
  background: var(--bg);
  transition: all var(--transition-fast);
}

.day-item:hover {
  border-color: var(--border-hi);
  color: var(--text);
}

.day-item.sel {
  background: var(--orange);
  color: #0B0E14;
  border-color: var(--orange);
  font-weight: 600;
}

/* ==========================================================================
   CONTACT FORM & FIELDS
   ========================================================================== */

.contact-box {
  max-width: 580px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 38px;
}

.field {
  margin-bottom: var(--space-5);
}

.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.field input, 
.field select, 
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 13px 14px;
  border-radius: 6px;
  font-size: 14.5px;
  font-family: var(--font-sans);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.field select,
.auth-card-panel select,
body.customers select.form-control,
select.form-control,
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23FF6B00' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 44px;
  cursor: pointer;
}

.field select:hover,
.auth-card-panel select:hover,
body.customers select.form-control:hover,
select:hover {
  border-color: var(--border-hi);
}

.field input:focus, 
.field select:focus, 
.field textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-dim);
}

.field select option,
select option {
  background: var(--card);
  color: var(--text);
  padding: 10px;
}

.field input::placeholder, 
.field textarea::placeholder {
  color: var(--muted-dim);
}

.form-row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

@media(max-width: 540px) {
  .form-row2 {
    grid-template-columns: 1fr;
  }
}

.form-alert {
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 13.5px;
  margin-bottom: var(--space-4);
  display: none;
}

.form-alert.success {
  background: var(--success-dim);
  border: 1px solid var(--success);
  color: #3FCF7A;
  display: block;
}

.form-alert.error {
  background: var(--red-dim);
  border: 1px solid var(--red);
  color: var(--red);
  display: block;
}

/* ==========================================================================
   LEGAL PAGES & DOCUMENTATION LAYOUT
   ========================================================================== */

main.legal-main {
  padding: 56px 0 90px;
  flex: 1;
}

.legal-notice {
  background: var(--card);
  border: 1px solid var(--border-hi);
  border-left: 3px solid var(--orange);
  border-radius: 8px;
  padding: 18px 22px;
  margin-bottom: 48px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
}

.legal-notice b {
  color: var(--text);
}

.legal-article section {
  margin-bottom: 40px;
  padding: 0;
}

.legal-article h2 {
  font-size: 19px;
  margin-bottom: 14px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.legal-article h2 .num {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--orange);
  font-weight: 600;
}

.legal-article p, 
.legal-article li {
  color: var(--text-dim);
  font-size: 14.5px;
  margin-bottom: 10px;
  line-height: 1.7;
}

.legal-article ul {
  padding-left: 20px;
  margin-bottom: 10px;
}

.legal-field {
  color: var(--orange);
  font-style: normal;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}

.legal-table th {
  text-align: left;
  padding: 10px 0;
  color: var(--muted);
  font-weight: 500;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 1px solid var(--border-hi);
  font-family: var(--font-mono);
}

.legal-table td {
  padding: 11px 0;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
}

.legal-table td:first-child {
  color: var(--muted);
  width: 220px;
}

.legal-table td.price {
  font-family: var(--font-mono);
  color: var(--text);
  font-weight: 600;
}

.legal-datacard {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
  margin: 14px 0;
}

.legal-datacard .k {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--orange);
  margin-bottom: 6px;
}

.legal-datacard p {
  margin-bottom: 0;
  font-size: 13.5px;
  color: var(--text-light);
}

.legal-article a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-article a:hover {
  color: var(--orange-soft);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.klik-footer {
  border-top: 1px solid var(--border);
  padding: 44px 0;
  margin-top: auto;
  background: var(--bg);
}

.foot-inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  justify-content: space-between;
}

.foot-legal {
  font-size: 13px;
  color: var(--muted-dim);
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.foot-legal a {
  color: var(--muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.foot-legal a:hover {
  color: var(--text);
}

.foot-copy {
  font-size: 13px;
  color: var(--muted-dim);
}

.cookie-manage-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 13px;
  font-family: var(--font-sans);
  cursor: pointer;
  padding: 0;
  transition: color var(--transition-fast);
}

.cookie-manage-btn:hover {
  color: var(--text);
  text-decoration: underline;
}

/* ==========================================================================
   REVEAL ON SCROLL ANIMATIONS
   Progressive enhancement: visible by default, animated when JS marks it.
   ========================================================================== */

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.js-ready .reveal {
  opacity: 0;
  transform: translateY(18px);
}

.js-ready .reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js-ready .reveal,
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .cursor {
    animation: none;
  }
}

/* ==========================================================================
   AUTHENTICATION PAGES & CUSTOMER PORTAL OVERRIDES
   ========================================================================== */

body.customers {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
}

body.customers #wrapper {
  background-color: var(--bg);
}

body.customers .login-heading {
  font-family: var(--font-heading);
  color: var(--text);
}

.auth-box-container {
  max-width: 440px;
  margin: 40px auto 60px;
  width: 100%;
}

.auth-brand-head {
  text-align: center;
  margin-bottom: 28px;
}

.auth-brand-head .logo {
  display: inline-flex;
  font-size: 26px;
  margin-bottom: 8px;
}

.auth-brand-head h1 {
  font-size: 22px;
  margin: 10px 0 6px;
}

.auth-brand-head p {
  color: var(--muted);
  font-size: 14px;
}

.auth-card-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
}

.auth-card-panel .form-group {
  margin-bottom: 18px;
}

.auth-card-panel label,
body.customers .control-label,
body.customers label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.auth-card-panel .form-control,
body.customers .form-control {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 14px;
  height: auto;
  box-shadow: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.auth-card-panel .form-control:focus,
body.customers .form-control:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-dim);
}

.klik-logo-img {
  height: 38px;
  width: auto;
  display: block;
  max-width: 160px;
}

.input-password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-password-wrapper .form-control {
  padding-right: 44px;
}

.btn-toggle-password {
  position: absolute;
  right: 8px;
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast);
}

.btn-toggle-password:hover {
  color: var(--orange);
}

.btn-toggle-password .eye-hide {
  display: none;
}

.input-password-wrapper.show-password .btn-toggle-password .eye-show {
  display: none;
}

.input-password-wrapper.show-password .btn-toggle-password .eye-hide {
  display: block;
}

body.customers .panel_s {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}

body.customers .panel-body {
  padding: 30px;
}

/* Custom Bulletproof Checkboxes */
.custom-chk-label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  cursor: pointer !important;
  user-select: none;
  font-family: var(--font-sans) !important;
  font-size: 13.5px !important;
  color: var(--muted) !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  margin: 10px 0 !important;
  padding: 0 !important;
}

.custom-chk-label:hover .custom-chk-text {
  color: var(--text);
}

.custom-chk-input {
  position: absolute !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  pointer-events: none !important;
}

.custom-chk-box {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background-color: var(--bg);
  border: 1.5px solid var(--border-hi);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.custom-chk-label:hover .custom-chk-box {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-dim);
}

.custom-chk-input:checked + .custom-chk-box {
  background-color: var(--orange) !important;
  border-color: var(--orange) !important;
  box-shadow: var(--shadow-glow);
}

.custom-chk-input:checked + .custom-chk-box::after {
  content: "";
  display: block;
  width: 5px;
  height: 9px;
  border: solid #0B0E14;
  border-width: 0 2.2px 2.2px 0;
  transform: rotate(45deg) translate(-0.5px, -1px);
}

body.customers .checkbox {
  margin: 16px 0;
  display: flex;
  align-items: center;
}

body.customers .btn-primary {
  background: var(--orange);
  color: #0B0E14;
  border-color: transparent;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 7px;
  transition: all var(--transition-fast);
}

body.customers .btn-primary:hover,
body.customers .btn-primary:focus {
  background: var(--orange-soft);
  color: #0B0E14;
  box-shadow: var(--shadow-glow);
  border-color: transparent;
}

body.customers .btn-default {
  background: transparent;
  color: var(--text);
  border-color: var(--border-hi);
  padding: 12px 22px;
  border-radius: 7px;
}

body.customers .btn-default:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: var(--muted-dim);
}

.auth-sublinks {
  text-align: center;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13.5px;
}

.auth-sublinks a {
  color: var(--muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.auth-sublinks a:hover {
  color: var(--orange);
}

.auth-back-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
  color: var(--muted-dim);
  font-size: 13px;
}

.auth-back-home:hover {
  color: var(--text);
}

/* ==========================================================================
   MODERN CLIENT PORTAL DASHBOARD (NILOVA INSPIRED)
   ========================================================================== */

.dash-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: var(--space-6) var(--space-4) var(--space-12);
}

/* Customer Submenu Bar */
.customer-top-submenu {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 8px 14px;
  margin-bottom: 24px;
  list-style: none;
}

.customer-top-submenu li a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13.5px;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.customer-top-submenu li a:hover,
.customer-top-submenu li.active a {
  color: var(--text);
  background: rgba(255, 107, 0, 0.08);
}

.klik-nav .navlinks a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  white-space: nowrap;
  line-height: 1.2;
  transition: all var(--transition-fast);
}

.klik-nav .navlinks a:hover,
.klik-nav .navlinks a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
}

.klik-nav .navlinks a.active {
  color: var(--orange);
  background: rgba(255, 107, 0, 0.08);
  border-color: rgba(255, 107, 0, 0.2);
}

.klik-nav .dropdown,
.dropdown {
  position: relative;
}

.dropdown-menu,
.klik-nav .dropdown-menu {
  display: none !important;
  position: absolute;
  top: 100%;
  right: 0;
  list-style: none !important;
  padding: 8px 0 !important;
  margin: 6px 0 0 0 !important;
  background: var(--card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 107, 0, 0.15) !important;
  min-width: 190px;
  z-index: 1000;
}

/* Invisible hover bridge to prevent menu from closing when moving mouse */
.dropdown-menu::before,
.klik-nav .dropdown-menu::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
  background: transparent;
  display: block;
}

.dropdown.open > .dropdown-menu,
.dropdown:hover > .dropdown-menu,
.dropdown.show > .dropdown-menu {
  display: block !important;
}

.dropdown-menu > li,
.klik-nav .dropdown-menu > li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.dropdown-menu > li > a,
.klik-nav .dropdown-menu > li > a {
  color: var(--text) !important;
  font-size: 13.5px !important;
  padding: 10px 18px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  text-decoration: none !important;
  transition: all var(--transition-fast) !important;
  background: transparent !important;
}

.dropdown-menu > li > a:hover,
.klik-nav .dropdown-menu > li > a:hover {
  background: rgba(255, 107, 0, 0.08) !important;
  color: var(--orange) !important;
}

.dropdown-menu .divider,
.klik-nav .dropdown-menu .divider {
  height: 1px;
  background-color: var(--border) !important;
  margin: 6px 0 !important;
  padding: 0 !important;
}

.client-profile-avatar-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-full);
  padding: 4px 14px 4px 4px;
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  transition: all var(--transition-fast);
}

.client-profile-avatar-btn:hover {
  border-color: var(--orange);
  color: var(--text);
}

.client-avatar-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--orange);
  color: #0B0E14;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

/* Welcome Top Bar */
.dash-welcome {
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.08) 0%, rgba(21, 25, 34, 0.95) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  margin-bottom: var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.dash-welcome::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 107, 0, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.dash-welcome-info h1 {
  font-size: 24px;
  font-family: var(--font-heading);
  color: var(--text);
  margin: 0 0 6px;
}

.dash-welcome-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}

.dash-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 229, 153, 0.1);
  color: #00E599;
  border: 1px solid rgba(0, 229, 153, 0.2);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 11px;
}

.dash-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00E599;
  box-shadow: 0 0 8px #00E599;
}

.dash-welcome-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* 4-Column KPI Grid (Desktop 4 cols, Mobile/Tablet 2x2 cols) */
.dash-kpi-grid,
.dash-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

@media(max-width: 991px) {
  .dash-kpi-grid,
  .dash-kpis {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  .dash-welcome {
    flex-direction: column;
    align-items: flex-start;
  }
}

.dash-kpi-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  position: relative;
}

.dash-kpi-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hi);
  box-shadow: var(--shadow-card);
}

.dash-kpi-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.dash-kpi-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.dash-kpi-icon.orange {
  background: var(--orange-dim);
  color: var(--orange);
  border: 1px solid rgba(255, 107, 0, 0.25);
}

.dash-kpi-icon.green {
  background: var(--success-dim);
  color: var(--success);
  border: 1px solid rgba(63, 207, 122, 0.25);
}

.dash-kpi-icon.cyan {
  background: var(--cyan-dim);
  color: var(--cyan);
  border: 1px solid rgba(0, 210, 255, 0.25);
}

.dash-kpi-icon.purple {
  background: var(--purple-dim);
  color: var(--purple);
  border: 1px solid rgba(168, 85, 247, 0.25);
}

.dash-kpi-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
}

.dash-kpi-value {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.dash-kpi-label {
  font-size: 13px;
  color: var(--muted);
}

/* Dashboard Two-Column Layout */
.dash-layout-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}

@media(max-width: 992px) {
  .dash-layout-grid {
    grid-template-columns: 1fr;
  }
}

.dash-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-card);
  margin-bottom: var(--space-6);
}

.dash-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.dash-card-head h2 {
  font-size: 17px;
  font-family: var(--font-heading);
  color: var(--text);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dash-card-head a {
  font-size: 13px;
  color: var(--orange);
  text-decoration: none;
  font-family: var(--font-mono);
}

.dash-card-head a:hover {
  text-decoration: underline;
}

/* Project Progress Card */
.dash-project-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
}

.dash-project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.dash-project-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.dash-project-desc {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

.dash-progress-bar-wrap {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: 14px 0 8px;
}

.dash-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--orange) 0%, #FFA04D 100%);
  border-radius: var(--radius-full);
  transition: width 0.8s ease-in-out;
}

.dash-project-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--muted);
}

/* Milestone Steps */
.dash-milestones {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}

.dash-step {
  text-align: center;
  font-size: 11.5px;
  font-family: var(--font-mono);
  color: var(--muted-dim);
}

.dash-step.active {
  color: var(--orange);
  font-weight: 600;
}

.dash-step.done {
  color: #00E599;
}

/* Modern Dashboard Table */
.dash-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.dash-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.dash-table th {
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.dash-table td {
  padding: 14px;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--text);
  vertical-align: middle;
}

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

.dash-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
}

.dash-pill.paid,
.dash-pill.success {
  background: rgba(0, 229, 153, 0.1);
  color: #00E599;
  border: 1px solid rgba(0, 229, 153, 0.2);
}

.dash-pill.unpaid,
.dash-pill.warning {
  background: rgba(255, 107, 0, 0.1);
  color: var(--orange);
  border: 1px solid rgba(255, 107, 0, 0.2);
}

.dash-pill.overdue,
.dash-pill.danger {
  background: rgba(255, 51, 102, 0.1);
  color: #FF3366;
  border: 1px solid rgba(255, 51, 102, 0.2);
}

.dash-pill.info {
  background: rgba(0, 184, 212, 0.1);
  color: #00B8D4;
  border: 1px solid rgba(0, 184, 212, 0.2);
}

/* Advisor & Support Card */
.dash-advisor {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
}

.dash-advisor-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange) 0%, #FF8533 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #0B0E14;
  font-family: var(--font-heading);
  flex-shrink: 0;
}

.dash-advisor-details h3 {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 2px;
}

.dash-advisor-details p {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0;
}

.dash-quick-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dash-quick-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  text-decoration: none;
  font-size: 13.5px;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.dash-quick-link:hover {
  border-color: var(--orange);
  color: var(--text);
  background: rgba(255, 107, 0, 0.04);
}

/* ==========================================================================
   PERFEX DATA TABLES & CLIENT VIEWS (DARK TECH STYLING)
   ========================================================================== */

body.customers .panel_s {
  background: var(--card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-xl) !important;
  box-shadow: var(--shadow-card) !important;
  color: var(--text) !important;
  margin-bottom: 24px !important;
}

body.customers .panel-body {
  background: transparent !important;
  padding: 24px !important;
  color: var(--text) !important;
}

body.customers .section-heading,
body.customers h4.section-heading,
body.customers .tickets-summary-heading,
body.customers h4.tickets-summary-heading {
  font-family: var(--font-heading);
  color: var(--text) !important;
  font-size: 18px;
  margin: 28px 0 16px;
}

/* Project Summary Status Boxes */
body.customers .project-summary-box,
body.customers .tickets-summary-box,
body.customers .summary-box,
body.customers [class*="project-status-"] {
  border-radius: var(--radius-lg) !important;
}

body.customers .panel_s .panel-body > .row > [class*="col-"] .panel_s,
body.customers .row.tw-mb-2 .col-md-2,
body.customers .row.tw-mb-2 .col-xs-6,
body.customers [class*="col-"] > .panel_s {
  background: var(--card) !important;
  border: 1px solid var(--border) !important;
}

/* ==========================================================================
   DATATABLES & TABLE THEMING (ZERO WHITE / PURE DARK TECH)
   ========================================================================== */

body.customers .dataTables_wrapper,
.dataTables_wrapper {
  color: var(--text) !important;
}

/* DataTables Search Input & Addon */
body.customers .dataTables_filter,
.dataTables_filter {
  margin-bottom: 16px !important;
}

body.customers .dataTables_filter label,
.dataTables_filter label {
  color: var(--text-dim) !important;
  font-size: 13.5px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

body.customers .dataTables_filter .input-group,
.dataTables_filter .input-group {
  border-radius: var(--radius-md) !important;
  overflow: hidden !important;
  border: 1px solid var(--border) !important;
  background: var(--bg) !important;
}

body.customers .dataTables_filter .input-group-addon,
.dataTables_filter .input-group-addon,
body.customers .input-group-addon,
.input-group-addon {
  background: var(--card-subtle) !important;
  border: 1px solid var(--border) !important;
  color: var(--muted) !important;
  font-size: 13px !important;
  padding: 8px 12px !important;
}

body.customers .dataTables_filter input,
.dataTables_filter input,
body.customers .dataTables_filter input[type="search"],
.dataTables_filter input[type="search"] {
  background: var(--bg) !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
  padding: 8px 14px !important;
  border-radius: var(--radius-md) !important;
  font-size: 13.5px !important;
}

body.customers .dataTables_filter input:focus,
.dataTables_filter input:focus {
  border-color: var(--orange) !important;
  outline: none !important;
  box-shadow: 0 0 0 2px var(--orange-dim) !important;
}

/* DataTables Length Select */
body.customers .dataTables_length select,
.dataTables_length select {
  background-color: var(--bg) !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
  padding: 6px 12px !important;
  border-radius: var(--radius-md) !important;
  outline: none !important;
}

body.customers .label {
  padding: 4px 10px !important;
  border-radius: var(--radius-full) !important;
  font-family: var(--font-mono) !important;
  font-size: 11px !important;
  font-weight: 500 !important;
}

body.customers .table-responsive,
.table-responsive {
  border: none !important;
  background: transparent !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  margin-bottom: 16px !important;
}

body.customers table.dataTable,
body.customers .table,
table.dataTable,
.table.dataTable {
  background-color: var(--bg) !important;
  color: var(--text) !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border-radius: var(--radius-lg) !important;
  border: 1px solid var(--border) !important;
  width: 100% !important;
  margin: 0 !important;
}

body.customers table.dataTable thead,
body.customers table.dataTable thead:first-child,
body.customers table.dataTable thead>tr,
body.customers table.dataTable thead:first-child>tr:first-child {
  border: none !important;
}

body.customers table.dataTable thead th,
body.customers .table thead th,
body.customers .table.dataTable>thead:first-child>tr:first-child>th,
body.customers .table.dataTable>thead:first-child>tr:first-child>th:first-child,
body.customers table.dataTable thead>tr>th,
body.customers table.dataTable thead .sorting,
body.customers table.dataTable thead .sorting_asc,
body.customers table.dataTable thead .sorting_desc,
body.customers table.dataTable thead .sorting_asc_disabled,
body.customers table.dataTable thead .sorting_desc_disabled,
table.dataTable thead th,
.table.dataTable>thead:first-child>tr:first-child>th {
  background-color: var(--card-subtle) !important;
  color: var(--muted) !important;
  font-family: var(--font-mono) !important;
  font-size: 11.5px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
  border-bottom: 1px solid var(--border) !important;
  border-color: var(--border) !important;
  padding: 14px 16px !important;
}

body.customers table.dataTable thead tr:first-child th:first-child,
body.customers .table thead tr:first-child th:first-child {
  border-top-left-radius: var(--radius-lg) !important;
}

body.customers table.dataTable thead tr:first-child th:last-child,
body.customers .table thead tr:first-child th:last-child {
  border-top-right-radius: var(--radius-lg) !important;
}

body.customers table.dataTable thead th.sorting::after,
body.customers table.dataTable thead th.sorting_asc::after,
body.customers table.dataTable thead th.sorting_desc::after {
  opacity: 0.6 !important;
  color: var(--orange) !important;
}

body.customers table.dataTable tbody td,
body.customers .table tbody td,
table.dataTable tbody td {
  padding: 14px 16px !important;
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
  border-bottom: 1px solid var(--border) !important;
  border-color: var(--border) !important;
  font-size: 13.5px !important;
  vertical-align: middle !important;
  background-color: var(--card) !important;
}

body.customers table.dataTable tbody tr:last-child td:first-child,
body.customers .table tbody tr:last-child td:first-child {
  border-bottom-left-radius: var(--radius-lg) !important;
}

body.customers table.dataTable tbody tr:last-child td:last-child,
body.customers .table tbody tr:last-child td:last-child {
  border-bottom-right-radius: var(--radius-lg) !important;
}

body.customers table.dataTable tbody tr:last-child td,
body.customers .table tbody tr:last-child td {
  border-bottom: none !important;
}

body.customers table.dataTable tbody tr:hover td,
body.customers .table tbody tr:hover td {
  background-color: rgba(255, 255, 255, 0.03) !important;
}

body.customers table.dataTable tbody tr td a {
  color: var(--orange) !important;
  font-weight: 500;
  text-decoration: none;
}

body.customers table.dataTable tbody tr td a:hover {
  text-decoration: underline;
}

body.customers .dataTables_info,
.dataTables_info {
  color: var(--muted) !important;
  font-size: 13px !important;
  margin: 16px 0 !important;
}

/* DataTables Pagination (Bootstrap 3 & Native) */
body.customers .dataTables_paginate,
.dataTables_paginate,
body.customers .pagination,
.pagination {
  margin: 16px 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
}

body.customers .dataTables_paginate ul.pagination,
.dataTables_paginate ul.pagination {
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
}

body.customers .dataTables_paginate ul.pagination > li > a,
body.customers .dataTables_paginate ul.pagination > li > span,
body.customers .pagination > li > a,
body.customers .pagination > li > span,
body.customers .dataTables_wrapper .dataTables_paginate .paginate_button,
body.customers .dataTables_paginate .paginate_button {
  background: var(--card) !important;
  border: 1px solid var(--border) !important;
  color: var(--muted) !important;
  border-radius: var(--radius-sm) !important;
  padding: 6px 14px !important;
  margin: 0 2px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  transition: all var(--transition-fast) !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

body.customers .dataTables_paginate ul.pagination > li.active > a,
body.customers .dataTables_paginate ul.pagination > li.active > span,
body.customers .pagination > li.active > a,
body.customers .dataTables_wrapper .dataTables_paginate .paginate_button.current,
body.customers .dataTables_paginate .paginate_button.current {
  background: var(--orange) !important;
  color: #0B0E14 !important;
  border-color: var(--orange) !important;
  font-weight: 700 !important;
}

body.customers .dataTables_paginate ul.pagination > li > a:hover,
body.customers .dataTables_paginate ul.pagination > li > span:hover,
body.customers .pagination > li > a:hover,
body.customers .dataTables_wrapper .dataTables_paginate .paginate_button:hover:not(.disabled),
body.customers .dataTables_paginate .paginate_button:hover:not(.disabled) {
  background: var(--card-hover) !important;
  color: var(--text) !important;
  border-color: var(--border-hi) !important;
}

body.customers .dataTables_paginate ul.pagination > li.disabled > a,
body.customers .dataTables_paginate ul.pagination > li.disabled > span,
body.customers .dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
body.customers .dataTables_paginate .paginate_button.disabled {
  background: rgba(21, 25, 34, 0.4) !important;
  border-color: var(--border) !important;
  color: var(--muted-dim) !important;
  cursor: not-allowed !important;
  opacity: 0.5 !important;
}

body.customers .dt-buttons .btn {
  background: var(--card) !important;
  border: 1px solid var(--border) !important;
  color: var(--muted) !important;
}

/* Nav Tabs in Project details */
body.customers .nav-tabs {
  border-bottom: 1px solid var(--border) !important;
  margin-bottom: 24px !important;
}

body.customers .nav-tabs > li > a {
  background: transparent !important;
  border: 1px solid transparent !important;
  color: var(--muted) !important;
  font-size: 13.5px !important;
  padding: 10px 18px !important;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
  transition: all var(--transition-fast) !important;
}

body.customers .nav-tabs > li.active > a,
body.customers .nav-tabs > li > a:hover {
  background: var(--card) !important;
  border-color: var(--border) var(--border) transparent !important;
  color: var(--orange) !important;
}

/* Nilova Project Card Styles */
.project-card-nilova {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--border);
  transition: all var(--transition-base);
}

.project-card-nilova:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 107, 0, 0.08);
}

.dash-milestones-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dash-milestones-pills .dash-step {
  font-size: 11.5px;
  font-family: var(--font-mono);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--muted);
  border: 1px solid var(--border);
}

.dash-milestones-pills .dash-step.done {
  color: var(--green);
  border-color: rgba(0, 229, 153, 0.25);
  background: rgba(0, 229, 153, 0.05);
}

.dash-milestones-pills .dash-step.active {
  color: var(--orange);
  border-color: rgba(255, 107, 0, 0.35);
  background: rgba(255, 107, 0, 0.08);
  font-weight: 600;
}

.project-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.meta-label {
  font-size: 11px;
  color: var(--muted-dim);
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.meta-value {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}

.project-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.advisor-mini {
  display: flex;
  align-items: center;
  gap: 8px;
}

.advisor-mini-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--orange);
  color: #0B0E14;
  font-weight: 700;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}




/* ==========================================================================
   INTERNAL GDPR COOKIE CONSENT BANNER & MODAL
   ========================================================================== */

.klik-cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  width: calc(100% - 48px);
  max-width: 860px;
  background: rgba(21, 25, 34, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-xl);
  padding: 24px 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 107, 0, 0.15);
  z-index: 9999;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media(min-width: 768px) {
  .klik-cookie-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 20px 26px;
  }
}

@media(max-width: 767px) {
  .klik-cookie-banner {
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    transform: translateY(120%) !important;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 20px 20px 0 0 !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: none !important;
    border-top: 1px solid var(--border-hi) !important;
    padding: 16px 18px 20px !important;
    gap: 12px !important;
    background: rgba(14, 17, 24, 0.98) !important;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.9) !important;
  }

  .klik-cookie-banner.show {
    transform: translateY(0) !important;
  }

  .cookie-banner-text h4 {
    font-size: 13px !important;
    margin-bottom: 2px !important;
  }

  .cookie-banner-text p {
    font-size: 11.5px !important;
    line-height: 1.4 !important;
    color: var(--muted) !important;
    margin-bottom: 0 !important;
  }

  .cookie-banner-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .cookie-banner-actions #klik-cookie-accept-all {
    grid-column: 1 / -1 !important;
    padding: 10px 14px !important;
  }

  .cookie-banner-actions button {
    padding: 8px 10px !important;
    font-size: 12px !important;
  }
}

/* ==========================================================================
   NILOVA APP LAYOUT (SIDEBAR + TOPBAR + MAIN BODY)
   ========================================================================== */

.klik-app-wrapper {
  display: flex;
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--text);
  position: relative;
  width: 100%;
}

/* 1. Nilova Left Sidebar */
.klik-app-sidebar {
  width: 270px;
  min-width: 270px;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  background: var(--card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 1000;
  transition: transform var(--transition-base), width var(--transition-base);
}

.sidebar-top-section {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 76px);
}

.sidebar-brand {
  height: 72px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.sidebar-close-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
}

.sidebar-close-btn:hover {
  color: var(--text);
  border-color: var(--orange);
}

.sidebar-menu-wrap {
  flex: 1;
  overflow-y: auto;
  padding: 22px 14px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.sidebar-category-title {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-dim);
  padding: 0 12px;
  margin-bottom: 8px;
}

.sidebar-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sidebar-menu-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.sidebar-menu-item a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.sidebar-menu-item a.active {
  color: var(--orange);
  background: rgba(255, 107, 0, 0.08);
  border-color: rgba(255, 107, 0, 0.2);
  font-weight: 600;
}

.sidebar-menu-item a svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: currentColor;
}

/* User Card at Bottom of Sidebar */
.sidebar-user-footer {
  height: 76px;
  padding: 0 18px;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.sidebar-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.sidebar-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--orange);
  color: #0B0E14;
  font-weight: 700;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar-user-meta {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sidebar-user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.sidebar-user-company {
  font-size: 11px;
  color: var(--muted-dim);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.sidebar-logout-btn {
  color: var(--muted);
  padding: 8px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.sidebar-logout-btn:hover {
  color: #FF3366;
  background: rgba(255, 51, 102, 0.1);
}

/* 2. Main App Content with Top Bar */
.klik-app-main {
  flex: 1;
  margin-left: 270px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: calc(100% - 270px);
}

.klik-app-topbar {
  height: 72px;
  background: rgba(11, 14, 20, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sidebar-toggle-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 10px;
  border-radius: var(--radius-md);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.sidebar-toggle-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.topbar-live-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.klik-app-body {
  flex: 1;
  padding: 28px;
}

.klik-app-body .container-fluid {
  padding: 0;
}

.klik-app-main .klik-footer {
  margin-top: auto !important;
  border-top: 1px solid var(--border) !important;
  padding: 16px 28px !important;
  background: rgba(11, 14, 20, 0.6) !important;
  width: 100% !important;
}

.klik-app-main .klik-footer .foot-inner {
  max-width: 100% !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

/* Sidebar Mobile Backdrop */
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-backdrop.show {
  opacity: 1;
  visibility: visible;
}

.topbar-mobile-logo {
  display: none;
  align-items: center;
  margin-left: 10px;
}

/* Mobile & Tablet Responsive for App Layout */
@media(max-width: 991px) {
  .klik-app-sidebar {
    transform: translateX(-100%) !important;
    width: 280px !important;
    max-width: 85vw !important;
    z-index: 1000 !important;
  }

  .klik-app-sidebar.sidebar-open {
    transform: translateX(0) !important;
    box-shadow: 20px 0 60px rgba(0, 0, 0, 0.9) !important;
  }

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

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

  .topbar-mobile-logo.mobile-only {
    display: flex !important;
  }

  .klik-app-main {
    margin-left: 0 !important;
    width: 100% !important;
  }

  .klik-app-topbar {
    height: 60px !important;
    padding: 0 14px !important;
  }

  .client-profile-avatar-btn {
    padding: 3px !important;
    border: none !important;
  }

  .klik-app-body {
    padding: 16px 12px !important;
  }

  .dash-welcome {
    padding: 18px 16px !important;
  }

  .dash-welcome-info h1 {
    font-size: 20px !important;
  }

  .dash-welcome-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    width: 100% !important;
    margin-top: 14px !important;
  }

  .dash-welcome-actions .btn {
    width: 100% !important;
    padding: 9px 10px !important;
    font-size: 12px !important;
    text-align: center !important;
    justify-content: center !important;
  }

  .project-meta-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .dash-grid,
  .dash-layout-grid {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 16px !important;
  }

  .dash-container,
  .dash-welcome,
  .dash-card,
  .dash-project-item,
  .project-card-nilova,
  body.customers .container,
  body.customers .container-fluid,
  body.customers .row,
  .klik-app-body {
    box-sizing: border-box !important;
  }

  .klik-app-body {
    padding: 12px 8px !important;
  }

  .dash-welcome {
    padding: 16px 14px !important;
    margin-bottom: 14px !important;
  }

  .dash-card {
    padding: 16px 12px !important;
    margin-bottom: 14px !important;
    overflow: hidden !important;
  }

  .dash-project-item {
    padding: 14px 12px !important;
    box-sizing: border-box !important;
  }

  .dash-project-foot {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }

  .dash-milestones {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  .dash-step {
    text-align: left !important;
    font-size: 11px !important;
    white-space: normal !important;
    word-break: break-word !important;
  }

  .project-card-foot {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }

  .project-card-foot .btn {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
  }
}


.cookie-banner-text h4 {
  font-size: 15px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cookie-banner-text h4 .tag-sm {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--orange);
  background: var(--orange-dim);
  padding: 2px 8px;
  border-radius: 100px;
}

.cookie-banner-text p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* Cookie Preferences Modal */
.klik-cookie-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.klik-cookie-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.klik-cookie-modal {
  background: var(--card);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-xl);
  max-width: 600px;
  width: 100%;
  padding: 32px;
  box-shadow: var(--shadow-card);
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.klik-cookie-backdrop.open .klik-cookie-modal {
  transform: scale(1);
}

.cookie-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-5);
}

.cookie-modal-head h3 {
  font-size: 20px;
}

.cookie-modal-close {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
}

.cookie-modal-close:hover {
  color: var(--text);
}

.cookie-category {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 14px;
}

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

.cookie-category-title {
  font-size: 14.5px;
  font-weight: 600;
}

.cookie-category-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

/* Custom Toggle Switch */
.cookie-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

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

.cookie-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: var(--border-hi);
  transition: .25s;
  border-radius: 24px;
}

.cookie-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: var(--text);
  transition: .25s;
  border-radius: 50%;
}

.cookie-switch input:checked + .cookie-slider {
  background-color: var(--orange);
}

.cookie-switch input:checked + .cookie-slider:before {
  transform: translateX(20px);
  background-color: #0B0E14;
}

.cookie-switch input:disabled + .cookie-slider {
  opacity: 0.6;
  cursor: not-allowed;
}

.cookie-modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}
