/* ==========================================================================
   DESIGN SYSTEM - PORTAL DASHBOARD DUKCAPIL LAYANAN PUBLIK
   ========================================================================== */

/* Color & Styling Tokens */
:root {
  /* Fonts */
  --font-primary: 'Poppins', 'Inter', sans-serif;
  --font-secondary: 'Manrope', 'Inter', sans-serif;

  /* Color Palette (Aesthetic HSL & Slate Clean colors) */
  --color-bg-light: #F8FAFC;
  --color-bg-alt: #EEF4F8;
  --color-primary: #2F6FED;
  --color-primary-light: rgba(47, 111, 237, 0.1);
  --color-primary-rgb: 47, 111, 237;
  --color-secondary: #5D87FF;
  --color-secondary-light: rgba(93, 135, 255, 0.1);
  --color-accent: #00BFA6;
  --color-accent-light: rgba(0, 191, 166, 0.1);
  --color-success: #10B981;
  --color-success-light: rgba(16, 185, 129, 0.1);
  --color-danger: #EF4444;
  --color-danger-light: rgba(239, 68, 68, 0.1);

  /* Glassmorphism Styles */
  --color-card-glass: rgba(255, 255, 255, 0.65);
  --color-card-glass-border: rgba(255, 255, 255, 0.45);
  --color-text: #0F172A;
  --color-text-secondary: #64748B;
  --color-border: rgba(15, 23, 42, 0.08);

  /* Shadows & Radius */
  --shadow-card: 0 10px 30px -5px rgba(15, 23, 42, 0.06);
  --shadow-glow: 0 0 30px rgba(47, 111, 237, 0.12);
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --border-radius-xl: 32px;

  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --navbar-height: 80px;
}

/* Dark Mode Tokens Override */
html[data-theme="dark"] {
  --color-bg-light: #0B0F19;
  --color-bg-alt: #111827;
  --color-card-glass: rgba(17, 24, 39, 0.7);
  --color-card-glass-border: rgba(255, 255, 255, 0.08);
  --color-text: #F3F4F6;
  --color-text-secondary: #9CA3AF;
  --color-border: rgba(255, 255, 255, 0.06);
  --shadow-card: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(47, 111, 237, 0.2);
}

/* ==========================================================================
   BASE & RESET
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
}

html {
  scroll-behavior: initial;
  /* Lenis handles smooth scrolling */
  overflow-x: hidden;
}

body {
  font-family: var(--font-primary);
  background-color: var(--color-bg-light);
  color: var(--color-text);
  overflow-x: hidden;
  transition: background-color 0.5s ease, color 0.3s ease;
  line-height: 1.6;
}

/* Typography elements */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-secondary);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.25;
}

p {
  color: var(--color-text-secondary);
}

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

ul {
  list-style: none;
}

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

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-light);
}

::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: var(--border-radius-sm);
  border: 2px solid var(--color-bg-light);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-secondary);
}

/* ==========================================================================
   LAYOUT & CONTAINER
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.grid {
  display: grid;
}

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

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

.gap-12 {
  gap: 3rem;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.items-end {
  align-items: flex-end;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

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

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-grow {
  flex-grow: 1;
}

.flex-shrink-0 {
  flex-shrink: 0;
}

.w-full {
  width: 100%;
}

.col-span-2 {
  grid-column: span 2 / span 2;
}

.relative {
  position: relative;
}

.overflow-hidden {
  overflow: hidden;
}

.overflow-x-auto {
  overflow-x: auto;
}

.overflow-y-auto {
  overflow-y: auto;
}

.section {
  padding: 120px 0;
  position: relative;
}

.bg-alt {
  background-color: var(--color-bg-alt);
  transition: background-color 0.5s ease;
}

.text-center {
  text-align: center;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.max-w-3xl {
  max-width: 48rem;
}

.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;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.mt-8 {
  margin-top: 2rem;
}

.mt-12 {
  margin-top: 3rem;
}

.mr-1 {
  margin-right: 0.25rem;
}

.mr-2 {
  margin-right: 0.5rem;
}

.ml-8 {
  margin-left: 2rem;
}

.pl-4 {
  padding-left: 1rem;
}

.pt-4 {
  padding-top: 1rem;
}

.pt-6 {
  padding-top: 1.5rem;
}

.pb-2 {
  padding-bottom: 0.5rem;
}

.pb-3 {
  padding-bottom: 0.75rem;
}

.p-4 {
  padding: 1rem;
}

.p-6 {
  padding: 1.5rem;
}

.p-8 {
  padding: 2rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.border-t {
  border-top: 1px solid var(--color-border);
}

.border-b {
  border-bottom: 1px solid var(--color-border);
}

.rounded-lg {
  border-radius: var(--border-radius-md);
}

.list-disc {
  list-style: disc;
}

.list-decimal {
  list-style: decimal;
}

/* Common Helper classes */
.text-gradient {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.primary-bg {
  background-color: var(--color-primary-light);
  color: var(--color-primary);
}

.secondary-bg {
  background-color: var(--color-secondary-light);
  color: var(--color-secondary);
}

.accent-bg {
  background-color: var(--color-accent-light);
  color: var(--color-accent);
}

.danger-bg {
  background-color: var(--color-danger-light);
  color: var(--color-danger);
}

/* Background light variants (used as .bg-primary-light etc.) */
.bg-primary-light {
  background-color: var(--color-primary-light);
  color: var(--color-primary);
}

.bg-secondary-light {
  background-color: var(--color-secondary-light);
  color: var(--color-secondary);
}

.bg-accent-light {
  background-color: var(--color-accent-light);
  color: var(--color-accent);
}

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

.bg-danger-light {
  background-color: var(--color-danger-light);
  color: var(--color-danger);
}

/* Solid background utilities */
.bg-primary {
  background-color: var(--color-primary);
  color: #FFF;
}

.bg-success {
  background-color: var(--color-success);
  color: #FFF;
}

.bg-danger {
  background-color: var(--color-danger);
  color: #FFF;
}

/* Height utilities */
.h-2 {
  height: 0.5rem;
}

/* Width utilities */
.w-full {
  width: 100% !important;
}

.text-sm {
  font-size: 0.875rem;
}

.text-xs {
  font-size: 0.75rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-4xl {
  font-size: 2.25rem;
}

.font-bold {
  font-weight: 700;
}

.font-extrabold {
  font-weight: 800;
}

.font-base {
  font-size: 1rem;
}

.text-base {
  font-size: 1rem;
}

.text-white {
  color: #FFF;
}

.text-primary {
  color: var(--color-primary);
}

.text-secondary {
  color: var(--color-secondary);
}

.text-secondary-text {
  color: var(--color-text-secondary);
}

.text-success {
  color: var(--color-success);
}

.text-danger {
  color: var(--color-danger);
}

.text-accent {
  color: var(--color-accent);
}

/* ==========================================================================
   PREMIUM PRELOADER
   ========================================================================== */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-bg-light);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s;
}

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

.preloader-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.preloader-logo {
  animation: float 3s ease-in-out infinite;
  margin-bottom: 20px;
}

.preloader-text {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 4px;
  color: var(--color-text);
  margin-bottom: 5px;
}

.preloader-subtitle {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 25px;
}

.preloader-spinner-wrapper {
  width: 40px;
  height: 40px;
  position: relative;
}

.preloader-spinner {
  width: 100%;
  height: 100%;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* ==========================================================================
   GLASSMORPHISM CARD STYLING
   ========================================================================== */
.glass-card {
  background: var(--color-card-glass);
  backdrop-filter: blur(18px) saturate(185%);
  -webkit-backdrop-filter: blur(18px) saturate(185%);
  border: 1px solid var(--color-card-glass-border);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
}

.glass-card.hover-glow:hover {
  border-color: rgba(47, 111, 237, 0.25);
  box-shadow: var(--shadow-glow);
  transform: translateY(-5px);
}

/* Card Icon Circles */
.card-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.card-icon-wrapper.primary {
  background-color: var(--color-primary-light);
  color: var(--color-primary);
}

.card-icon-wrapper.secondary {
  background-color: var(--color-secondary-light);
  color: var(--color-secondary);
}

.card-icon-wrapper.accent {
  background-color: var(--color-accent-light);
  color: var(--color-accent);
}

.glass-card > h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.glass-card > p {
  font-size: 0.938rem;
  line-height: 1.6;
}

/* ==========================================================================
   ABOUT SECTION CARDS
   ========================================================================== */
.about-card {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}

.about-card-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.about-card-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.about-card-label.primary { color: var(--color-primary); }
.about-card-label.secondary { color: var(--color-secondary); }
.about-card-label.accent { color: var(--color-accent); }

.about-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-text);
  font-family: var(--font-secondary);
}

.about-card-desc {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--color-text-secondary);
  margin: 0;
}

.about-card-desc strong {
  color: var(--color-text);
  font-weight: 600;
}



/* ==========================================================================
   BUTTONS STYLING
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-secondary);
  font-weight: 600;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #FFF;
  box-shadow: 0 4px 15px rgba(47, 111, 237, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(47, 111, 237, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-outline:hover {
  background: var(--color-border);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.813rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 0.938rem;
}

/* ==========================================================================
   NAVBAR STYLING
   ========================================================================== */
.navbar-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--navbar-height);
  z-index: 1000;
  background: transparent;
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: var(--transition-smooth);
}

.navbar-wrapper.scrolled {
  height: 70px;
  background: var(--color-card-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--color-border);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

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

/* Navbar Brand & Logo */
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  display: flex;
  align-items: center;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--color-text);
  font-family: var(--font-secondary);
}

.brand-subtitle {
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  letter-spacing: 1.5px;
}

/* Desktop Navigation Link items */
.nav-links {
  display: flex;
  gap: 24px;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  padding: 8px 4px;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: var(--transition-smooth);
}

.nav-link:hover {
  color: var(--color-text);
}

.nav-link:hover::after {
  width: 100%;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Theme switcher button */
.theme-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-card-glass);
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.theme-toggle-btn:hover {
  background: var(--color-border);
  transform: scale(1.05);
}

/* Show/hide icon depending on light/dark mode */
html.light .light-icon {
  display: none;
}

html.light .dark-icon {
  display: block;
}

html[data-theme="dark"] .dark-icon {
  display: none;
}

html[data-theme="dark"] .light-icon {
  display: block;
}

/* Mobile nav menu toggle burger */
.mobile-toggle-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.mobile-toggle-btn .bar {
  width: 100%;
  height: 2px;
  background-color: var(--color-text);
  transition: var(--transition-smooth);
}

/* Toggle menu animation state */
.mobile-toggle-btn.active .bar-1 {
  transform: translateY(8px) rotate(45deg);
}

.mobile-toggle-btn.active .bar-2 {
  opacity: 0;
}

.mobile-toggle-btn.active .bar-3 {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Nav Drawer overlay */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 320px;
  height: 100vh;
  background: var(--color-bg-light);
  border-left: 1px solid var(--color-border);
  padding: 100px 32px 32px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-card);
}

.mobile-nav-drawer.active {
  right: 0;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-nav-link {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text-secondary);
}

.mobile-nav-link:hover {
  color: var(--color-text);
}

/* ==========================================================================
   HERO SECTION STYLING
   ========================================================================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 120px;
  padding-bottom: 80px;
  background: radial-gradient(circle at 10% 20%, rgba(238, 244, 248, 0.8) 0%, rgba(248, 250, 252, 0.9) 100%);
}

html[data-theme="dark"] .hero-section {
  background: radial-gradient(circle at 10% 20%, rgba(17, 24, 39, 0.8) 0%, rgba(11, 15, 25, 0.9) 100%);
}

.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Gradient background blobs */
.hero-blob-1,
.hero-blob-2 {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
}

.hero-blob-1 {
  top: -100px;
  right: -50px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  animation: pulse-blob 8s ease-in-out infinite alternate;
}

.hero-blob-2 {
  bottom: -150px;
  left: -100px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
  animation: pulse-blob 12s ease-in-out infinite alternate-reverse;
}

.hero-container {
  position: relative;
  z-index: 2;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-card-glass);
  border: 1px solid var(--color-card-glass-border);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  width: max-content;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-primary);
  animation: pulse-dot 1.5s infinite;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-description {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

/* Stat grid under Hero */
.hero-stats {
  border-top: 1px solid var(--color-border);
  padding-top: 32px;
}

.hero-stat-card {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 2.2rem;
  font-weight: 800;
  font-family: var(--font-secondary);
  color: var(--color-primary);
  line-height: 1;
}

.stat-num-suffix {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-top: 4px;
}

/* Hero Visual Mockup card */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-mockup-wrapper {
  width: 100%;
  max-width: 520px;
  perspective: 1000px;
}

.hero-glass-card {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--border-radius-xl);
  box-shadow: 0 30px 60px -15px rgba(15, 23, 42, 0.12);
  width: 100%;
  height: 380px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
}

html[data-theme="dark"] .hero-glass-card {
  background: rgba(17, 24, 39, 0.55);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.4);
}

.glass-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.glass-window-dots {
  display: flex;
  gap: 6px;
}

.glass-window-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.glass-window-dots .red {
  background-color: var(--color-danger);
}

.glass-window-dots .yellow {
  background-color: #FBBF24;
}

.glass-window-dots .green {
  background-color: var(--color-success);
}

.glass-card-title {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--color-text-secondary);
}

.mockup-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.mockup-info span {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--color-text-secondary);
}

.mockup-info h4 {
  font-size: 1.1rem;
  font-weight: 800;
}

.mockup-badge {
  background-color: var(--color-success-light);
  color: var(--color-success);
  font-size: 0.6rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 10px;
}

.mockup-wave-container {
  height: 120px;
  margin-bottom: 20px;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  position: relative;
}

/* Floating overlay widgets */
.floating-widget {
  position: absolute;
  background: var(--color-card-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-card-glass-border);
  box-shadow: var(--shadow-card);
  padding: 12px 16px;
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
  transition: var(--transition-smooth);
}

.floating-widget:hover {
  transform: scale(1.05) translateY(-2px);
}

.widget-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.widget-info {
  display: flex;
  flex-direction: column;
}

.widget-label {
  font-size: 0.6rem;
  color: var(--color-text-secondary);
}

.widget-value {
  font-size: 0.813rem;
  font-weight: 700;
}

.widget-1 {
  top: 75px;
  left: -40px;
}

.widget-2 {
  bottom: 60px;
  right: -30px;
}

.widget-3 {
  bottom: -10px;
  left: 30px;
}

/* Scroll down indicator icon */
.hero-scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  text-align: center;
  opacity: 0.8;
}

.hero-scroll-indicator a {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-text-secondary);
}

.mouse-wheel-icon {
  width: 20px;
  height: 32px;
  border: 2px solid var(--color-text-secondary);
  border-radius: 12px;
  margin-bottom: 8px;
  position: relative;
}

.mouse-wheel-icon .wheel {
  width: 4px;
  height: 6px;
  background-color: var(--color-text-secondary);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll-wheel 1.5s infinite;
}

/* ==========================================================================
   SECTIONS GENERAL STYLING
   ========================================================================== */
.section-subtitle {
  font-size: 0.813rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-primary);
  display: inline-block;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-description {
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ==========================================================================
   PROBLEM SECTION LISTS
   ========================================================================== */
.problem-check-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.problem-check-list li {
  display: flex;
  align-items: center;
  font-size: 0.938rem;
  font-weight: 500;
}

.icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* ==========================================================================
   FEATURE CARDS GRID (LEGACY - kept for about section cards)
   ========================================================================== */
.feature-card {
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 24px;
  transition: var(--transition-smooth);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.813rem;
  line-height: 1.6;
}

/* ==========================================================================
   NEW PREMIUM FEATURES GRID (FR-01 to FR-10)
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.feature-card-new {
  background: var(--color-card-glass);
  backdrop-filter: blur(18px) saturate(185%);
  -webkit-backdrop-filter: blur(18px) saturate(185%);
  border: 1px solid var(--color-card-glass-border);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  overflow: hidden;
  cursor: pointer;
}

.feature-card-new:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(47, 111, 237, 0.25);
}

.feature-card-top {
  background: linear-gradient(135deg, color-mix(in srgb, var(--feat-color) 8%, transparent), color-mix(in srgb, var(--feat-color) 3%, transparent));
  border-bottom: 1px solid color-mix(in srgb, var(--feat-color, var(--color-primary)) 15%, transparent);
  padding: 20px 20px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
}

.feature-card-top::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--feat-color, var(--color-primary));
}

.feature-icon-new {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #FFF;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.feature-num-badge {
  font-size: 2rem;
  font-weight: 800;
  color: var(--feat-color, var(--color-primary));
  font-family: var(--font-secondary);
  opacity: 0.15;
  line-height: 1;
  margin-left: auto;
}

.feature-card-body {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.feature-title-new {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
  font-family: var(--font-secondary);
  line-height: 1.3;
}

.feature-desc-new {
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin-bottom: 14px;
  flex-grow: 1;
}

.feature-desc-new strong {
  color: var(--color-text);
  font-weight: 600;
}

.feature-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: fit-content;
}

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

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

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

/* ==========================================================================
   DASHBOARD SIMULATOR WIDGET (POWER BI / STRIPE MIX)
   ========================================================================== */
.dashboard-widget {
  padding: 0;
  overflow: visible;
}

.dashboard-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-end;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 24px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 200px;
}

.filter-group label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  background-color: var(--color-bg-light);
  color: var(--color-text);
  border-radius: var(--border-radius-sm);
  font-family: var(--font-primary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='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 16px center;
  background-size: 16px;
}

.form-select:hover {
  border-color: var(--color-primary);
}

.form-select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.filter-actions {
  flex-shrink: 0;
}

/* KPI Dashboard Cards */
.kpi-card {
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: center;
  position: relative;
}

.kpi-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.kpi-icon.primary {
  background-color: var(--color-primary-light);
  color: var(--color-primary);
}

.kpi-icon.secondary {
  background-color: var(--color-secondary-light);
  color: var(--color-secondary);
}

.kpi-icon.accent {
  background-color: var(--color-accent-light);
  color: var(--color-accent);
}

.kpi-icon.success {
  background-color: var(--color-success-light);
  color: var(--color-success);
}

.kpi-data {
  display: flex;
  flex-direction: column;
}

.kpi-label {
  font-size: 0.688rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.kpi-value {
  font-size: 1.5rem;
  font-weight: 800;
  font-family: var(--font-secondary);
  line-height: 1.2;
  margin: 2px 0;
}

.kpi-unit {
  font-size: 0.938rem;
  font-weight: 700;
}

.kpi-trend {
  font-size: 0.688rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Chart block wrapper */
.chart-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.chart-header {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 12px;
}

.badge {
  font-size: 0.625rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 12px;
  text-transform: uppercase;
}

.badge-primary {
  background-color: var(--color-primary-light);
  color: var(--color-primary);
}

.chart-container-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 240px;
}

/* Skeleton Loading for Charts */
.skeleton-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-card-glass);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  border-radius: var(--border-radius-sm);
}

.skeleton-overlay.active {
  opacity: 1;
  visibility: visible;
}

.skeleton-chart-bar {
  width: 80%;
  height: 60%;
  background: linear-gradient(90deg, var(--color-border) 25%, var(--color-bg-light) 50%, var(--color-border) 75%);
  background-size: 200% 100%;
  animation: loading-shimmer 1.5s infinite;
  border-radius: 4px;
}

.skeleton-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--color-border) 25%, var(--color-bg-light) 50%, var(--color-border) 75%);
  background-size: 200% 100%;
  animation: loading-shimmer 1.5s infinite;
}

/* ==========================================================================
   ROADMAP / TIMELINE MODULE
   ========================================================================== */
.timeline-line {
  position: absolute;
  top: 0;
  left: 30px;
  width: 2px;
  height: 100%;
  background: var(--color-border);
  z-index: 1;
}

.timeline-item {
  position: relative;
  z-index: 2;
  margin-bottom: 40px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #FFF;
  font-family: var(--font-secondary);
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(47, 111, 237, 0.3);
  flex-shrink: 0;
}

.timeline-content {
  padding: 32px;
  width: 100%;
}

.timeline-date {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  margin-bottom: 8px;
}

.timeline-content h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.timeline-content p {
  font-size: 0.875rem;
  line-height: 1.6;
}

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

.badge-outline {
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
}

/* ==========================================================================
   TEAM SECTION
   ========================================================================== */
.team-card {
  padding: 32px 24px;
}

.avatar-container {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
}

.avatar-svg {
  width: 100%;
  height: 100%;
}

.member-name {
  font-size: 1rem;
  margin-bottom: 4px;
  line-height: 1.3;
}

.member-role {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ==========================================================================
   NEW PREMIUM TEAM GRID LAYOUT
   ========================================================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.team-member-card {
  background: var(--color-card-glass);
  backdrop-filter: blur(18px) saturate(185%);
  -webkit-backdrop-filter: blur(18px) saturate(185%);
  border: 1px solid var(--color-card-glass-border);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-card);
  padding: 28px 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.team-member-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--avatar-color, var(--color-primary));
  opacity: 0.7;
}

.team-member-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(47, 111, 237, 0.2);
}

.team-avatar-ring {
  position: relative;
  margin-bottom: 16px;
}

.team-avatar-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.team-avatar-initials {
  font-size: 1.35rem;
  font-weight: 800;
  color: #FFF;
  font-family: var(--font-secondary);
  letter-spacing: 1px;
}

.team-avatar-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFF;
  font-size: 0.65rem;
  border: 2px solid var(--color-card-glass);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.team-member-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.team-member-name {
  font-size: 0.938rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
  line-height: 1.35;
  font-family: var(--font-secondary);
}

.team-member-role {
  font-size: 0.688rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
  display: inline-block;
}

.team-member-desc {
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--color-text-secondary);
  margin: 0;
}

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

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

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

/* ==========================================================================
   BENEFITS SECTION
   ========================================================================== */
.benefit-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary);
  font-family: var(--font-secondary);
  line-height: 1;
  background-color: var(--color-primary-light);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.benefits-glass-ring {
  background: var(--color-card-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--color-card-glass-border);
  box-shadow: var(--shadow-card);
  border-radius: var(--border-radius-xl);
  padding: 48px;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

/* ==========================================================================
   DEVICE GALLERY MOCKUP
   ========================================================================== */
.mockup-frame {
  background-color: #1E293B;
  border: 8px solid #475569;
  box-shadow: var(--shadow-card);
}

/* Laptop Mockup */
.laptop-frame {
  width: 100%;
  max-width: 480px;
  height: 260px;
  border-radius: 12px 12px 0 0;
  border-bottom: none;
  padding: 10px;
  position: relative;
}

.laptop-frame::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: -20px;
  width: calc(100% + 40px);
  height: 12px;
  background-color: #64748B;
  border-radius: 0 0 12px 12px;
}

.laptop-screen {
  width: 100%;
  height: 100%;
  background-color: var(--color-bg-light);
  border-radius: 4px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
}

.laptop-top-bar-sim {
  height: 12px;
  background-color: var(--color-border);
  border-radius: 2px;
}

.laptop-dashboard-sim {
  flex-grow: 1;
}

.chart-block-sim {
  background-color: var(--color-primary-light);
  border-radius: 4px;
  height: 100%;
}

.card-block-sim {
  background-color: var(--color-accent-light);
  border-radius: 4px;
  height: 100%;
}

/* Tablet Mockup */
.tablet-frame {
  width: 240px;
  height: 320px;
  border-radius: 24px;
  padding: 14px;
}

.tablet-screen {
  width: 100%;
  height: 100%;
  background-color: var(--color-bg-light);
  border-radius: 12px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}

.tablet-nav-bar-sim {
  height: 16px;
  background-color: var(--color-border);
  border-radius: 4px;
}

.tablet-dashboard-sim {
  flex-grow: 1;
}

/* Mobile Mockup */
.mobile-frame {
  width: 160px;
  height: 280px;
  border-radius: 30px;
  padding: 12px 10px;
}

.mobile-screen {
  width: 100%;
  height: 100%;
  background-color: var(--color-bg-light);
  border-radius: 20px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}

.mobile-nav-bar-sim {
  height: 12px;
  background-color: var(--color-border);
  border-radius: 2px;
}

.mobile-stat-card-sim {
  height: 40px;
  background-color: var(--color-secondary-light);
  border-radius: 4px;
}

.mobile-chart-sim {
  flex-grow: 1;
  background-color: var(--color-primary-light);
  border-radius: 4px;
}

/* ==========================================================================
   FAQ ACCORDION MODULE
   ========================================================================== */
.faq-card {
  padding: 0;
  overflow: hidden;
}

.faq-header {
  padding: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.faq-header:hover {
  background: var(--color-border);
}

.faq-question {
  color: var(--color-text);
  text-align: left;
  padding-right: 20px;
}

.faq-toggle-icon {
  color: var(--color-primary);
  transition: transform 0.3s ease;
}

.faq-header[aria-expanded="true"] .faq-toggle-icon {
  transform: rotate(180deg);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-answer-inner {
  padding: 0 24px 24px;
  line-height: 1.6;
}

/* ==========================================================================
   FOOTER MODULE
   ========================================================================== */
.footer-wrapper {
  background-color: #0F172A;
  padding: 80px 0 40px;
  color: #94A3B8;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

html[data-theme="dark"] .footer-wrapper {
  background-color: #05070C;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.footer-socials a:hover {
  background-color: var(--color-primary);
  transform: translateY(-2px);
}

.footer-title {
  color: #FFF;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  font-family: var(--font-secondary);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.875rem;
  color: #94A3B8;
}

.footer-links a:hover {
  color: #FFF;
  padding-left: 4px;
}

.footer-copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   INTERACTIVE FEATURE DETAIL MODAL STYLING
   ========================================================================== */
.feature-card[data-feature] {
  cursor: pointer;
}

.feature-card[data-feature]:active {
  transform: scale(0.98) translateY(-2px);
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  background-color: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
  padding: 20px;
}

html[data-theme="dark"] .modal-backdrop {
  background-color: rgba(0, 0, 0, 0.6);
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-wrapper {
  background: var(--color-card-glass);
  backdrop-filter: blur(24px) saturate(185%);
  -webkit-backdrop-filter: blur(24px) saturate(185%);
  border: 1px solid var(--color-card-glass-border);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.15);
  border-radius: var(--border-radius-lg);
  width: 100%;
  max-width: 640px;
  position: relative;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

html[data-theme="dark"] .modal-wrapper {
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}

.modal-backdrop.active .modal-wrapper {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-border);
  border: none;
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  z-index: 10;
}

.modal-close:hover {
  transform: rotate(90deg) scale(1.1);
  background: var(--color-text-secondary);
  color: var(--color-bg-light);
}

.modal-content {
  padding: 40px;
  max-height: 85vh;
  overflow-y: auto;
}

/* Modal Content Elements */
.modal-header-section {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 20px;
}

.modal-header-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.modal-header-icon.primary {
  background-color: var(--color-primary-light);
  color: var(--color-primary);
}

.modal-header-icon.secondary {
  background-color: var(--color-secondary-light);
  color: var(--color-secondary);
}

.modal-header-icon.accent {
  background-color: var(--color-accent-light);
  color: var(--color-accent);
}

.modal-header-icon.success {
  background-color: var(--color-success-light);
  color: var(--color-success);
}

.modal-header-info h2 {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.modal-intro {
  font-size: 0.938rem;
  color: var(--color-text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

/* Interactive Demos Inside Modal */
.modal-demo-box {
  background: rgba(var(--color-primary-rgb), 0.03);
  border: 1px dashed var(--color-border);
  border-radius: var(--border-radius-md);
  padding: 24px;
  margin-bottom: 28px;
}

.demo-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Feature 1: Filter Demo Styling */
.filter-demo-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.filter-demo-row {
  display: flex;
  gap: 12px;
}

.filter-demo-row select {
  flex: 1;
}

.filter-demo-preview {
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-sm);
  padding: 16px;
  margin-top: 12px;
}

.preview-kpi-item {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-border);
  padding: 8px 0;
  font-size: 0.875rem;
}

.preview-kpi-item:last-child {
  border-bottom: none;
}

/* Feature 2: Chart Switcher Demo Styling */
.chart-demo-container {
  text-align: center;
}

.chart-type-selector {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.btn-chart-type {
  padding: 6px 14px;
  font-size: 0.75rem;
  border-radius: 20px;
  border: 1px solid var(--color-border);
  background: var(--color-bg-light);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-chart-type.active {
  background: var(--color-primary);
  color: #FFF;
  border-color: var(--color-primary);
}

.chart-visual-simulation {
  height: 140px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  padding: 10px 0;
  position: relative;
}

.sim-bar {
  width: 32px;
  background: linear-gradient(to top, var(--color-primary), var(--color-secondary));
  border-radius: 4px 4px 0 0;
  transition: height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.sim-bar.sim-bar-2 {
  background: linear-gradient(to top, var(--color-accent), var(--color-success));
}

.sim-bar-label {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
}

/* Pie Chart simulation */
.sim-pie-wrapper {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: conic-gradient(var(--color-primary) 0% 60%, var(--color-accent) 60% 90%, var(--color-danger) 90% 100%);
  transition: transform 0.6s ease;
  margin: 0 auto;
}

/* Line Chart simulation */
.sim-line-svg {
  width: 100%;
  height: 100px;
  stroke: var(--color-primary);
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
}

.sim-line-path {
  transition: d 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Feature 3: Progress Ring Demo Styling */
.kpi-demo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.ring-demo-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
}

.ring-demo-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-demo-bg {
  fill: none;
  stroke: var(--color-border);
  stroke-width: 8;
}

.ring-demo-indicator {
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 301.6;
  /* 2 * PI * r (r=48) */
  stroke-dashoffset: 75.4;
  /* initial 75% filled */
  transition: stroke-dashoffset 0.3s ease;
}

.ring-demo-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.ring-demo-percent {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-text);
}

.slider-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.slider-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-secondary);
}

.demo-range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--color-border);
  outline: none;
}

.demo-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
  transition: transform 0.1s ease;
}

.demo-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Feature 4: PDF Export Demo Styling */
.export-demo-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.export-preview-sheet {
  background: #FFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--border-radius-sm);
  padding: 16px;
  color: #0F172A;
  font-family: var(--font-secondary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.sheet-header-mock {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid #0F172A;
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.sheet-logo-mock {
  width: 20px;
  height: 20px;
  background: #2F6FED;
  border-radius: 3px;
}

.sheet-title-mock {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #0F172A;
}

.sheet-grid-mock {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}

.sheet-card-mock {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 4px;
  padding: 6px;
  font-size: 0.55rem;
}

.sheet-chart-mock {
  height: 50px;
  background: #EEF2F6;
  border-radius: 4px;
  border: 1px dashed #CBD5E1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  color: #64748B;
}

/* Modal Bottom Actions */
.modal-footer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid var(--color-border);
  padding-top: 20px;
}

/* Modal Responsiveness */
@media (max-width: 480px) {
  .modal-content {
    padding: 24px;
  }

  .modal-header-section {
    gap: 12px;
    padding-bottom: 16px;
    margin-bottom: 16px;
  }

  .modal-header-info h2 {
    font-size: 1.2rem;
  }

  .modal-intro {
    font-size: 0.813rem;
  }

  .modal-demo-box {
    padding: 16px;
  }
}

/* Clickable Dashboard Items Styling */
.kpi-card[data-kpi],
.chart-card[data-chart] {
  cursor: pointer;
  transition: var(--transition-smooth);
}

.kpi-card[data-kpi]:hover,
.chart-card[data-chart]:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(47, 111, 237, 0.3);
  box-shadow: var(--shadow-glow);
}

/* Premium Data Table styling inside modal */
.modal-data-table-wrapper {
  margin-top: 16px;
  overflow-x: auto;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--color-border);
}

.modal-data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.813rem;
  background: var(--color-bg-light);
}

.modal-data-table th,
.modal-data-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--color-border);
}

.modal-data-table th {
  background-color: var(--color-border);
  font-weight: 700;
  color: var(--color-text);
  font-family: var(--font-secondary);
}

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

.modal-data-table tr:hover td {
  background-color: rgba(47, 111, 237, 0.02);
}

.excel-formula-badge {
  background-color: rgba(16, 185, 129, 0.08);
  color: var(--color-success);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 4px 8px;
  border-radius: var(--border-radius-sm);
  font-family: monospace;
  font-size: 0.813rem;
  display: inline-block;
  margin-top: 4px;
}

/* ==========================================================================
   EXCEL SHEET TABS & WORKBOOK STYLING
   ========================================================================== */
.excel-sheet-tabs-container {
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  padding: 0 16px;
  overflow-x: auto;
  white-space: nowrap;
  display: flex;
  align-items: flex-end;
  border-top-left-radius: var(--border-radius-md);
  border-top-right-radius: var(--border-radius-md);
  scrollbar-width: thin;
}

.excel-sheet-tabs {
  display: flex;
  gap: 2px;
}

.sheet-tab {
  background: transparent;
  border: 1px solid transparent;
  border-bottom: none;
  padding: 10px 18px;
  font-family: var(--font-secondary);
  font-size: 0.813rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  transition: all 0.2s ease;
  position: relative;
  top: 1px;
}

.sheet-tab i {
  font-size: 0.9rem;
}

.sheet-tab:hover {
  background: rgba(47, 111, 237, 0.05);
  color: var(--color-primary);
}

.sheet-tab.active {
  background: var(--color-card-glass);
  border-color: var(--color-border);
  border-bottom: 3px solid var(--color-primary);
  color: var(--color-primary);
  font-weight: 600;
  backdrop-filter: blur(20px);
}

.sheet-panel {
  display: none;
  padding: 28px;
  overflow: visible;
}

.sheet-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Dashboard footer bar */
.dashboard-footer-action {
  margin-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
}

/* max-h utility for log table */
.max-h-\[220px\] {
  max-height: 220px;
}

/* min-h utilities used in chart cards */
.min-h-\[350px\] {
  min-height: 350px;
}

.min-h-\[300px\] {
  min-height: 300px;
}

/* ==========================================================================
   PIVOT TABLE & CONTROL STYLING
   ========================================================================== */
.pivot-controls-bar {
  background-color: rgba(47, 111, 237, 0.02) !important;
  border: 1px solid var(--color-border);
}

/* ==========================================================================
   FORM INPUT & DATA VALIDATION STYLING
   ========================================================================== */
.form-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.form-input-group label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-secondary);
}

.form-input-control {
  background-color: var(--color-bg-light);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  border-radius: var(--border-radius-sm);
  padding: 10px 14px;
  font-family: var(--font-primary);
  font-size: 0.875rem;
  transition: var(--transition-smooth);
  width: 100%;
}

.form-input-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.15);
}

.validation-error-alert {
  background-color: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.2);
  color: #DC2626;
  transition: var(--transition-smooth);
}

html[data-theme="dark"] .validation-error-alert {
  background-color: rgba(239, 68, 68, 0.15);
  color: #F87171;
  border-color: rgba(239, 68, 68, 0.3);
}

.validation-success-alert {
  background-color: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.2);
  color: #059669;
  transition: var(--transition-smooth);
}

html[data-theme="dark"] .validation-success-alert {
  background-color: rgba(16, 185, 129, 0.15);
  color: #34D399;
  border-color: rgba(16, 185, 129, 0.3);
}

/* Master historical list log table colors */
html[data-theme="dark"] .modal-data-table th {
  background-color: rgba(255, 255, 255, 0.05);
}

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