/**
 * DENTSHUB RISET - Unified Stylesheet (Phase 1 UI Foundation)
 * Filosofi: Single, clean, high-contrast, academic-grade CSS system.
 * Tanpa ketergantungan external CSS frameworks (Tailwind/Bootstrap CLI).
 */

/* ==========================================================================
   1. DESIGN TOKENS & SYSTEM VARIABLES
   ========================================================================== */
:root {
  /* Color Palette: Deep Slate, Academic Navy, Vivid Sapphire, Emerald Accent */
  --primary-900: #0c1524;
  --primary-800: #111d33;
  --primary-700: #1b2d4f;
  --primary-600: #0284c7;
  --primary-500: #0ea5e9;
  --primary-400: #38bdf8;
  --primary-100: #e0f2fe;
  --primary-50:  #f0f9ff;

  --accent-emerald: #10b981;
  --accent-emerald-light: #d1fae5;
  --accent-amber:   #f59e0b;
  --accent-rose:    #ef4444;
  --accent-purple:  #8b5cf6;

  /* Neutral & Surfaces */
  --bg-app:     #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle:  #f1f5f9;
  --bg-dark:    #0f172a;
  --bg-dark-surface: #1e293b;

  --text-main:    #0f172a;
  --text-muted:   #64748b;
  --text-light:   #94a3b8;
  --text-inverse: #f8fafc;

  --border-color:       #e2e8f0;
  --border-color-dark:  #334155;
  --border-focus:       #0284c7;

  /* Theme System: Strict Light Mode Defaults */
  --theme-bg: #f8fafc;
  --theme-bg-gradient: radial-gradient(at 0% 0%, rgba(224, 242, 254, 0.85) 0px, transparent 50%),
                       radial-gradient(at 100% 0%, rgba(243, 232, 255, 0.85) 0px, transparent 50%),
                       radial-gradient(at 50% 50%, rgba(236, 253, 245, 0.65) 0px, transparent 50%),
                       radial-gradient(at 100% 100%, rgba(224, 242, 254, 0.75) 0px, transparent 50%);
  --theme-text-title: #0f172a;
  --theme-text-body: #334155;
  --theme-text-muted: #64748b;
  --theme-card-bg: rgba(255, 255, 255, 0.94);
  --theme-card-border: rgba(226, 232, 240, 0.95);
  --theme-header-bg: rgba(255, 255, 255, 0.92);
  --theme-header-border: rgba(226, 232, 240, 0.85);
  --theme-card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);

  /* Spacing & Layout Metrics */
  --sidebar-width: 270px;
  --sidebar-collapsed-width: 76px;
  --header-height: 68px;
  --container-max-width: 1240px;

  /* Elevation Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.08), 0 1px 2px -1px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.06);

  /* Border Radiuses */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Menlo, Monaco, Consolas, monospace;
}

/* ==========================================================================
   2. CSS RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-app);
  color: var(--text-main);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

body.landing-body {
  background-color: var(--theme-bg);
  background-image: var(--theme-bg-gradient);
  color: var(--theme-text-body);
  transition: background-color 0.25s ease, color 0.25s ease;
}

a {
  color: var(--primary-600);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover {
  color: var(--primary-700);
}

img, svg {
  vertical-align: middle;
  display: inline-block;
  max-width: 100%;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
}

/* ==========================================================================
   3. TYPOGRAPHY & UTILITY CLASSES
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.15rem; }

p {
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.text-main { color: var(--text-main) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-primary { color: var(--primary-600) !important; }
.text-emerald { color: var(--accent-emerald) !important; }
.text-danger { color: var(--accent-rose) !important; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  line-height: 1;
}

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

.badge-emerald {
  background: var(--accent-emerald-light);
  color: #065f46;
}

.badge-amber {
  background: #fef3c7;
  color: #92400e;
}

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

/* ==========================================================================
   4. BUTTONS & FORM INPUTS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.925rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  line-height: 1.35;
  white-space: nowrap;
}

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

.btn-primary {
  background: var(--primary-600);
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(2, 132, 199, 0.25);
}

.btn-primary:hover {
  background: var(--primary-700);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.35);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: #cbd5e1;
}

.btn-dark {
  background: var(--bg-dark);
  color: #ffffff;
}

.btn-dark:hover {
  background: var(--primary-900);
  color: #ffffff;
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.825rem;
  border-radius: var(--radius-sm);
}

.btn-block {
  width: 100%;
}

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 0.7rem 0.95rem;
  font-size: 0.95rem;
  color: var(--text-main);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.form-control::placeholder {
  color: var(--text-light);
}

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

.input-icon-wrapper .form-control {
  padding-right: 2.75rem;
}

.input-icon-btn {
  position: absolute;
  right: 0.75rem;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
}

.input-icon-btn:hover {
  color: var(--text-main);
}

/* ==========================================================================
   5. CARDS, TABLES, ALERTS & CONTAINERS
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: box-shadow 0.2s, border-color 0.2s;
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-sm);
}

.card-header {
  padding: 1.15rem 1.4rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
}

.card-body {
  padding: 1.4rem;
}

.card-footer {
  padding: 1rem 1.4rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-subtle);
}

/* Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.table-custom {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.885rem;
}

.table-custom th {
  padding: 0.85rem 1.15rem;
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-color);
}

.table-custom td {
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
  vertical-align: middle;
}

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

.table-custom tr:hover td {
  background: rgba(241, 245, 249, 0.5);
}

/* Alerts */
.alert {
  padding: 0.9rem 1.15rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.alert-danger {
  background: #fef2f2;
  border: 1px solid #fee2e2;
  color: #991b1b;
}

.alert-info {
  background: #eff6ff;
  border: 1px solid #dbeafe;
  color: #1e40af;
}

/* ==========================================================================
   6. UPGRADED PUBLIC LANDING PAGE (DEFAULT LIGHT AESTHETIC MODERN)
      CSS3 Glassmorphism + Neumorphism + Holographic
   ========================================================================== */

:root {
  --landing-bg: #f8fafc;
  --landing-card-bg: rgba(255, 255, 255, 0.88);
  --landing-card-hover: rgba(255, 255, 255, 0.98);
  --landing-card-border: rgba(226, 232, 240, 0.9);
  --landing-card-border-bright: rgba(56, 189, 248, 0.5);
  --landing-shadow: 0 10px 30px -5px rgba(2, 132, 199, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --landing-shadow-hover: 0 20px 40px -5px rgba(2, 132, 199, 0.14), 0 0 25px rgba(56, 189, 248, 0.2);
  --landing-text-primary: #0f172a;
  --landing-text-secondary: #334155;
  --landing-text-muted: #64748b;
  --holo-gradient: linear-gradient(135deg, #0284c7 0%, #4f46e5 35%, #7c3aed 70%, #059669 100%);
  --holo-gradient-soft: linear-gradient(135deg, rgba(2, 132, 199, 0.08) 0%, rgba(99, 102, 241, 0.08) 50%, rgba(16, 185, 129, 0.08) 100%);
}

/* Base Landing Light Theme Shell (Default) */
.landing-body {
  background-color: #f8fafc;
  background-image: 
    radial-gradient(at 0% 0%, rgba(224, 242, 254, 0.75) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(243, 232, 255, 0.75) 0px, transparent 50%),
    radial-gradient(at 50% 50%, rgba(236, 253, 245, 0.55) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(224, 242, 254, 0.65) 0px, transparent 50%);
  color: var(--landing-text-primary);
  overflow-x: hidden;
  position: relative;
  font-family: var(--font-sans);
}

/* Ambient Radial Glow Spots (Light Mode Harmonized) */
.ambient-glow-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.45;
  pointer-events: none;
}

.ambient-glow-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.4), transparent 70%);
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
}

.ambient-glow-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.3), transparent 70%);
  top: 900px;
  right: -100px;
}

.ambient-glow-3 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.35), transparent 70%);
  top: 2400px;
  left: -150px;
}

/* Holographic Shimmer Keyframes */
@keyframes holoShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

@keyframes floatGentle {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

/* Public Header (Glassmorphic Sticky Nav - Clean & No Overlapping) */
.public-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  height: 74px;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.public-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  border-bottom-color: rgba(56, 189, 248, 0.3);
}

.public-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 1rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.03em;
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
  margin-right: 1rem;
}

.brand-logo .logo-icon-img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.25);
  transition: transform 0.3s ease;
}

.brand-logo:hover .logo-icon-img {
  transform: rotate(5deg) scale(1.05);
}

.brand-logo span span.text-primary {
  background: var(--holo-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: holoShimmer 6s ease infinite;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-shrink: 1;
  min-width: 0;
  white-space: nowrap;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
  padding: 0.35rem 0.15rem;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: #0284c7;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--holo-gradient);
  transition: width 0.25s ease;
  border-radius: 2px;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  white-space: nowrap;
}

.btn-glass {
  background: rgba(241, 245, 249, 0.85);
  border: 1px solid rgba(203, 213, 225, 0.8);
  color: #1e293b;
  backdrop-filter: blur(10px);
  border-radius: var(--radius-full);
  padding: 0.5rem 1.15rem;
  font-size: 0.875rem;
  font-weight: 700;
  transition: all 0.25s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.btn-glass:hover {
  background: #ffffff;
  border-color: #0284c7;
  color: #0284c7;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.15);
  transform: translateY(-1px);
}

.btn-holo {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  border: 1px solid rgba(56, 189, 248, 0.5);
  color: #ffffff;
  border-radius: var(--radius-full);
  padding: 0.55rem 1.35rem;
  font-size: 0.885rem;
  font-weight: 700;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 4px 20px rgba(2, 132, 199, 0.35);
}

.btn-holo:hover {
  background: linear-gradient(135deg, #0369a1 0%, #1d4ed8 100%);
  box-shadow: 0 8px 25px rgba(2, 132, 199, 0.5);
  transform: translateY(-2px);
  color: #ffffff;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  padding: 0.45rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* Mobile Nav Drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  top: 74px;
  left: 0;
  width: 100%;
  height: calc(100vh - 74px);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(25px);
  z-index: 99;
  padding: 2rem 1.5rem;
  flex-direction: column;
  gap: 1.25rem;
  overflow-y: auto;
}

.mobile-drawer.active {
  display: flex;
}

.mobile-drawer .nav-link {
  font-size: 1.1rem;
  color: #1e293b;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

/* ==========================================================================
   HERO SECTION (LIGHT MODE AESTHETIC)
   ========================================================================== */
.landing-hero {
  position: relative;
  padding: 5.5rem 0 4.5rem;
  text-align: center;
  overflow: hidden;
  z-index: 1;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1.15rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.45);
  box-shadow: 0 4px 20px rgba(2, 132, 199, 0.12), inset 0 1px 0 #ffffff;
  margin-bottom: 1.85rem;
  animation: floatGentle 4s ease-in-out infinite;
}

.hero-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0284c7;
  box-shadow: 0 0 10px #0284c7;
  animation: pulseGlow 2s infinite;
}

.hero-pill-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
  letter-spacing: 0.02em;
}

.hero-pill-highlight {
  background: var(--holo-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.hero-main-title {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.04em;
  max-width: 980px;
  margin: 0 auto 1.35rem;
  color: #0f172a;
}

.hero-gradient-text {
  background: linear-gradient(135deg, #0284c7 0%, #4f46e5 50%, #059669 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: holoShimmer 8s ease infinite;
}

.hero-lead-text {
  font-size: 1.185rem;
  line-height: 1.65;
  color: #475569;
  max-width: 760px;
  margin: 0 auto 2.5rem;
  font-weight: 400;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 3.75rem;
}

.btn-hero-primary {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  color: #ffffff;
  padding: 0.95rem 2.25rem;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  box-shadow: 0 10px 30px rgba(2, 132, 199, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(56, 189, 248, 0.5);
}

.btn-hero-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 40px rgba(2, 132, 199, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  color: #ffffff;
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(203, 213, 225, 0.85);
  color: #1e293b;
  padding: 0.95rem 2rem;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
  background: #ffffff;
  border-color: #0284c7;
  color: #0284c7;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(2, 132, 199, 0.12);
}

/* Stats Counter Strip */
.hero-stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1060px;
  margin: 0 auto 3.75rem;
  padding: 1.75rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  backdrop-filter: blur(16px);
  box-shadow: var(--landing-shadow);
}

.stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-right: 1px solid rgba(226, 232, 240, 0.8);
  padding: 0.25rem 1rem;
}

.stat-box:last-child {
  border-right: none;
}

.stat-number {
  font-size: 2.15rem;
  font-weight: 900;
  font-family: var(--font-mono);
  color: #0f172a;
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.stat-number.cyan {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-number.emerald {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 600;
}

/* High Contrast Realistic 3D Editor Mockup */
.editor-mockup-wrapper {
  max-width: 1040px;
  margin: 0 auto;
  position: relative;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.5) 0%, rgba(147, 51, 234, 0.35) 50%, rgba(16, 185, 129, 0.45) 100%);
  padding: 2px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15), 0 0 50px rgba(2, 132, 199, 0.15);
}

.editor-mockup-window {
  background: #090e1c;
  border-radius: 18px;
  overflow: hidden;
  text-align: left;
}

.mockup-titlebar {
  background: #0f172a;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.traffic-dots {
  display: flex;
  gap: 8px;
}

.traffic-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.traffic-red { background: #ef4444; }
.traffic-yellow { background: #f59e0b; }
.traffic-green { background: #10b981; }

.mockup-filename {
  font-size: 0.85rem;
  font-family: var(--font-mono);
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mockup-status-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: #34d399;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.mockup-body {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 420px;
}

.mockup-sidebar {
  background: rgba(15, 23, 42, 0.85);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.25rem 1rem;
}

.mockup-tree-title {
  font-size: 0.725rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.mockup-tree-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.825rem;
  color: #94a3b8;
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  margin-bottom: 0.25rem;
  cursor: pointer;
  transition: all 0.2s;
}

.mockup-tree-item.active {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  font-weight: 600;
}

.mockup-tree-item:hover:not(.active) {
  background: rgba(255, 255, 255, 0.04);
  color: #f1f5f9;
}

.mockup-editor-view {
  padding: 1.75rem;
  background: #090e1c;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mockup-paper-heading {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.75rem;
}

.mockup-paper-para {
  font-size: 0.925rem;
  color: #cbd5e1;
  line-height: 1.7;
}

.mockup-citation-badge {
  background: rgba(56, 189, 248, 0.18);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 4px;
  padding: 0.15rem 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.mockup-tools-strip {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mockup-turnitin-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.825rem;
  color: #34d399;
  background: rgba(16, 185, 129, 0.1);
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

/* ==========================================================================
   SECTION COMMON STYLES (NO MUDDY BACKGROUNDS, 100% CLEAN)
   ========================================================================== */
.landing-section {
  padding: 5.5rem 0;
  position: relative;
  z-index: 1;
  background: transparent;
}

.landing-section-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 3.5rem;
}

.section-tag-pill {
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #0284c7;
  background: rgba(2, 132, 199, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.4);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.section-main-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-lead-subtitle {
  font-size: 1.1rem;
  color: #475569;
  line-height: 1.6;
}

/* ==========================================================================
   TENTANG SECTION (ANTI-FABRIKASI & INTEGRITAS AKADEMIK)
   ========================================================================== */
.about-card-hero {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 24px;
  padding: 3rem;
  backdrop-filter: blur(16px);
  box-shadow: var(--landing-shadow);
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
}

.about-card-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--holo-gradient);
}

.about-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-badge-shield {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #059669;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}

.about-principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.principle-box {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 18px;
  padding: 1.85rem;
  box-shadow: var(--landing-shadow);
  transition: all 0.3s ease;
}

.principle-box:hover {
  border-color: rgba(56, 189, 248, 0.6);
  transform: translateY(-4px);
  box-shadow: var(--landing-shadow-hover);
}

.principle-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(2, 132, 199, 0.1);
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(2, 132, 199, 0.2);
}

.principle-icon.emerald {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border-color: rgba(16, 185, 129, 0.2);
}

.principle-icon.purple {
  background: rgba(147, 51, 234, 0.1);
  color: #7c3aed;
  border-color: rgba(147, 51, 234, 0.2);
}

.principle-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.65rem;
}

.principle-desc {
  font-size: 0.885rem;
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   FITUR (13 TAHAPAN RISET & 6 CORE MODULES - CLEAN LIGHT MODE)
   ========================================================================== */
.workflow-13-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 4.5rem;
}

.stage-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 16px;
  padding: 1.35rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.stage-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.6);
  background: #ffffff;
  box-shadow: var(--landing-shadow-hover);
}

.stage-card-num {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 800;
  color: #0284c7;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.stage-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.45rem;
}

.stage-card-desc {
  font-size: 0.825rem;
  color: #475569;
  line-height: 1.5;
  margin: 0;
}

/* 6 Core Modules Grid */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.module-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  padding: 2.25rem;
  box-shadow: var(--landing-shadow);
  position: relative;
  transition: all 0.3s ease;
}

.module-card:hover {
  transform: translateY(-5px);
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: var(--landing-shadow-hover);
}

.module-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(2, 132, 199, 0.1);
  border: 1px solid rgba(2, 132, 199, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #0284c7;
}

.module-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.75rem;
}

.module-desc {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.module-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.module-tag-item {
  font-size: 0.75rem;
  color: #0284c7;
  background: rgba(2, 132, 199, 0.08);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(2, 132, 199, 0.15);
  font-weight: 600;
}

/* ==========================================================================
   CARA KERJA (4 STEPS VISUAL PIPELINE)
   ========================================================================== */
.steps-pipeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}

.step-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  box-shadow: var(--landing-shadow);
  position: relative;
  transition: all 0.3s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: var(--landing-shadow-hover);
}

.step-badge-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(2, 132, 199, 0.1);
  border: 2px solid #0284c7;
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
}

.step-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.65rem;
}

.step-desc {
  font-size: 0.885rem;
  color: #475569;
  line-height: 1.55;
  margin: 0;
}

/* ==========================================================================
   VISI & MISI DENTSHUB RISET + STRUKTUR PENDIRI
   ========================================================================== */
.vision-mission-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: var(--landing-shadow);
  margin-bottom: 3.5rem;
  position: relative;
}

.vision-box {
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.vision-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #0284c7;
  margin-bottom: 0.85rem;
}

.vision-quote {
  font-size: 1.35rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.6;
  max-width: 860px;
  margin: 0 auto;
  font-style: italic;
}

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

.mission-item-box {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.925rem;
  color: #334155;
  line-height: 1.6;
}

.mission-check-icon {
  color: #059669;
  background: rgba(16, 185, 129, 0.12);
  border-radius: 50%;
  padding: 0.25rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

/* Founder Profile Cards (Owner, Admin, Supervisor) */
.founders-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.founder-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 22px;
  padding: 2.25rem 2rem;
  box-shadow: var(--landing-shadow);
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.founder-card.owner-glow {
  border-color: rgba(147, 51, 234, 0.35);
  box-shadow: 0 10px 30px rgba(147, 51, 234, 0.08);
}

.founder-card.owner-glow:hover {
  border-color: rgba(147, 51, 234, 0.7);
  box-shadow: 0 15px 40px rgba(147, 51, 234, 0.2);
  transform: translateY(-5px);
}

.founder-card.admin-glow {
  border-color: rgba(2, 132, 199, 0.35);
  box-shadow: 0 10px 30px rgba(2, 132, 199, 0.08);
}

.founder-card.admin-glow:hover {
  border-color: rgba(2, 132, 199, 0.7);
  box-shadow: 0 15px 40px rgba(2, 132, 199, 0.2);
  transform: translateY(-5px);
}

.founder-card.supervisor-glow {
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.08);
}

.founder-card.supervisor-glow:hover {
  border-color: rgba(16, 185, 129, 0.7);
  box-shadow: 0 15px 40px rgba(16, 185, 129, 0.2);
  transform: translateY(-5px);
}

.founder-avatar-wrap {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  padding: 3px;
  background: var(--holo-gradient);
  margin-bottom: 1.25rem;
  position: relative;
}

.founder-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #f8fafc;
}

.founder-role-tag {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
  display: inline-block;
}

.tag-owner {
  background: rgba(147, 51, 234, 0.1);
  color: #7c3aed;
  border: 1px solid rgba(147, 51, 234, 0.25);
}

.tag-admin {
  background: rgba(2, 132, 199, 0.1);
  color: #0284c7;
  border: 1px solid rgba(2, 132, 199, 0.25);
}

.tag-supervisor {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.founder-name {
  font-size: 1.225rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.25rem;
}

.founder-title {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 1rem;
}

.founder-bio {
  font-size: 0.885rem;
  color: #334155;
  line-height: 1.55;
  margin: 0;
}

/* ==========================================================================
   HARGA / PRICING SECTION (TABS SWITCHER & CARDS - HIGH CONTRAST & RESPONSIVE)
   ========================================================================== */
.pricing-tabs-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2.5rem;
  width: 100%;
}

.pricing-tabs-container {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
  transition: all 0.25s ease;
  max-width: 100%;
}

.pricing-tab-btn {
  background: transparent;
  border: none;
  color: #475569;
  font-size: 0.925rem;
  font-weight: 700;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.pricing-tab-btn small {
  color: #64748b;
  font-weight: 500;
  transition: color 0.25s ease;
}

.pricing-tab-btn.active {
  background: #0284c7;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.35);
}

.pricing-tab-btn.active small {
  color: rgba(255, 255, 255, 0.9);
}

.pricing-tab-panel {
  display: none;
  width: 100%;
}

.pricing-tab-panel.active {
  display: block;
}

.pricing-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  width: 100%;
}

.plan-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 2rem 1.65rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  box-sizing: border-box;
}

.plan-card:hover {
  transform: translateY(-5px);
  border-color: #38bdf8;
  box-shadow: 0 16px 35px rgba(2, 132, 199, 0.15);
}

.plan-card.popular {
  border: 2px solid #0284c7;
  background: #ffffff;
  box-shadow: 0 15px 35px rgba(2, 132, 199, 0.18);
}

.plan-pop-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #0284c7;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.03em;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.4);
  white-space: nowrap;
}

.plan-period-label {
  font-size: 0.825rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.plan-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-bottom: 1.15rem;
}

.plan-price-amount {
  font-size: 2.15rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1;
}

.plan-price-duration {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 500;
}

.plan-credits-pill {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 12px;
  padding: 0.75rem 0.95rem;
  margin-bottom: 1.35rem;
}

.plan-credits-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0284c7;
  margin-bottom: 0.2rem;
}

.plan-credits-sub {
  font-size: 0.785rem;
  color: #334155;
  line-height: 1.45;
  font-weight: 500;
}

.plan-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-grow: 1;
}

.plan-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.875rem;
  color: #334155;
  line-height: 1.45;
  font-weight: 500;
}

.plan-check-icon {
  color: #059669;
  flex-shrink: 0;
  margin-top: 0.1rem;
  font-weight: 800;
}

.btn-plan {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  box-sizing: border-box;
}

.btn-plan-secondary {
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid #cbd5e1;
}

.btn-plan-secondary:hover {
  background: #e2e8f0;
  color: #0284c7;
  border-color: #0284c7;
  transform: translateY(-2px);
}

.btn-plan-primary {
  background: #0284c7;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.35);
}

.btn-plan-primary:hover {
  background: #0369a1;
  color: #ffffff;
  box-shadow: 0 8px 25px rgba(2, 132, 199, 0.5);
  transform: translateY(-2px);
}

/* University / Institutional Enterprise Card */
.enterprise-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 2.25rem 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  margin-bottom: 2.5rem;
  box-sizing: border-box;
}

.enterprise-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.75rem;
  gap: 1rem;
}

.enterprise-header h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.35rem;
}

.enterprise-header p {
  color: #475569;
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.5;
}

.enterprise-tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.enterprise-tier-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.35rem 1rem;
  text-align: center;
  transition: all 0.25s ease;
}

.enterprise-tier-box:hover {
  border-color: #0284c7;
  background: #ffffff;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.1);
  transform: translateY(-2px);
}

.enterprise-tier-count {
  font-size: 1.65rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.35rem;
}

.enterprise-tier-cta {
  font-size: 0.95rem;
  color: #0284c7;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.enterprise-tier-box small {
  color: #64748b;
  font-size: 0.8rem;
}

/* ==========================================================================
   PRICING & ENTERPRISE DARK THEME OVERRIDES (CRITICAL: ZERO FONT BLENDING)
   ========================================================================== */
body.dark-theme .pricing-tabs-container {
  background: rgba(15, 23, 42, 0.95) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}

body.dark-theme .pricing-tab-btn {
  color: #cbd5e1 !important;
}

body.dark-theme .pricing-tab-btn small {
  color: #94a3b8 !important;
}

body.dark-theme .pricing-tab-btn.active {
  background: #0284c7 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.45) !important;
}

body.dark-theme .pricing-tab-btn.active small {
  color: #ffffff !important;
}

body.dark-theme .plan-card {
  background: rgba(15, 23, 42, 0.9) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5) !important;
}

body.dark-theme .plan-card.popular {
  border-color: #38bdf8 !important;
  box-shadow: 0 16px 35px rgba(56, 189, 248, 0.25) !important;
}

body.dark-theme .plan-period-label {
  color: #94a3b8 !important;
}

body.dark-theme .plan-price-amount {
  color: #ffffff !important;
}

body.dark-theme .plan-price-duration {
  color: #94a3b8 !important;
}

body.dark-theme .plan-credits-pill {
  background: rgba(2, 132, 199, 0.18) !important;
  border-color: rgba(56, 189, 248, 0.4) !important;
}

body.dark-theme .plan-credits-title {
  color: #38bdf8 !important;
}

body.dark-theme .plan-credits-sub {
  color: #cbd5e1 !important;
}

body.dark-theme .plan-features-list .plan-feature-item {
  color: #f1f5f9 !important;
}

body.dark-theme .plan-check-icon {
  color: #34d399 !important;
}

body.dark-theme .btn-plan-secondary {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

body.dark-theme .btn-plan-secondary:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  color: #38bdf8 !important;
  border-color: #38bdf8 !important;
}

body.dark-theme .enterprise-card {
  background: rgba(15, 23, 42, 0.9) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5) !important;
}

body.dark-theme .enterprise-header h3 {
  color: #ffffff !important;
}

body.dark-theme .enterprise-header p {
  color: #cbd5e1 !important;
}

body.dark-theme .enterprise-tier-box {
  background: rgba(30, 41, 59, 0.7) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

body.dark-theme .enterprise-tier-count {
  color: #ffffff !important;
}

body.dark-theme .enterprise-tier-cta {
  color: #38bdf8 !important;
}

body.dark-theme .enterprise-tier-box small {
  color: #94a3b8 !important;
}

/* ==========================================================================
   TESTIMONIAL SECTION
   ========================================================================== */
/* ==========================================================================
   TESTIMONIAL SECTION (HORIZONTAL 2-ROW INFINITE LOOPING MARQUEE)
   ========================================================================== */
.testimonial-section-marquee {
  overflow: hidden;
  position: relative;
  padding: 5.5rem 0;
}

.marquee-dual-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1rem 0;
}

.marquee-fade-left,
.marquee-fade-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 5;
  pointer-events: none;
}

.marquee-fade-left {
  left: 0;
  background: linear-gradient(to right, var(--theme-bg, #f8fafc), transparent);
}

.marquee-fade-right {
  right: 0;
  background: linear-gradient(to left, var(--theme-bg, #f8fafc), transparent);
}

.marquee-row {
  display: flex;
  width: 100%;
  overflow: hidden;
  user-select: none;
}

.marquee-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  flex-shrink: 0;
  will-change: transform;
}

.marquee-track-left {
  animation: marqueeScrollLeft 50s linear infinite;
}

.marquee-track-right {
  animation: marqueeScrollRight 50s linear infinite;
}

.marquee-dual-container:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marqueeScrollLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 0.75rem)); }
}

@keyframes marqueeScrollRight {
  0% { transform: translateX(calc(-50% - 0.75rem)); }
  100% { transform: translateX(0); }
}

.testimonial-card-marquee {
  width: 380px;
  min-width: 380px;
  max-width: 380px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 20px;
  padding: 1.65rem 1.75rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.testimonial-card-marquee:hover {
  transform: translateY(-5px);
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: 0 16px 35px rgba(2, 132, 199, 0.15);
}

body.dark-theme .testimonial-card-marquee {
  background: rgba(15, 23, 42, 0.88);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.testimonial-stars {
  color: #f59e0b;
  font-size: 1.05rem;
  margin-bottom: 0.85rem;
  letter-spacing: 2px;
}

.testimonial-quote {
  font-size: 0.925rem;
  color: #334155;
  line-height: 1.6;
  margin: 0 0 1.35rem;
  flex-grow: 1;
  font-style: italic;
}

body.dark-theme .testimonial-quote {
  color: #cbd5e1;
}

.testimonial-author-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #0284c7;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.05rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.testimonial-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
}

body.dark-theme .testimonial-name {
  color: #ffffff;
}

.testimonial-role {
  font-size: 0.775rem;
  color: #64748b;
  line-height: 1.4;
  margin-top: 0.15rem;
}

body.dark-theme .testimonial-role {
  color: #94a3b8;
}

@media (max-width: 640px) {
  .testimonial-card-marquee {
    width: 300px;
    min-width: 300px;
    max-width: 300px;
    padding: 1.35rem 1.4rem;
  }
  .marquee-fade-left,
  .marquee-fade-right {
    width: 40px;
  }
}

/* ==========================================================================
   FAQ SECTION (EXPANDABLE ACCORDION - CLEAN LIGHT THEME)
   ========================================================================== */
.faq-container {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.faq-item {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.faq-item.active {
  border-color: #0284c7;
  background: #ffffff;
  box-shadow: 0 8px 25px rgba(2, 132, 199, 0.1);
}

.faq-question-btn {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  color: #0f172a;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-sans);
}

.faq-chevron {
  width: 20px;
  height: 20px;
  color: #64748b;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: #0284c7;
}

.faq-answer-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0, 1, 0, 1), padding 0.35s ease;
  padding: 0 1.5rem;
}

.faq-item.active .faq-answer-panel {
  max-height: 800px;
  padding: 0 1.5rem 1.5rem;
  transition: max-height 0.5s ease-in-out, padding 0.35s ease;
}

.faq-answer-text {
  font-size: 0.925rem;
  color: #334155;
  line-height: 1.7;
  margin: 0;
}

.faq-answer-text p {
  margin: 0 0 0.85rem;
}

.faq-answer-text p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   AJAKAN / FINAL CTA BANNER
   ========================================================================== */
.final-cta-section {
  padding: 4.5rem 0 5.5rem;
  position: relative;
  z-index: 1;
}

.final-cta-banner {
  background: linear-gradient(135deg, #090e1c 0%, #0f172a 100%);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 28px;
  padding: 4.5rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25), 0 0 40px rgba(2, 132, 199, 0.15);
}

.final-cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.25), transparent 70%);
  pointer-events: none;
}

.final-cta-title {
  font-size: 3rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.final-cta-lead {
  font-size: 1.2rem;
  color: #cbd5e1;
  max-width: 640px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

/* ==========================================================================
   PUBLIC FOOTER
   ========================================================================== */
.landing-footer {
  background: #040812;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 5rem 0 2.5rem;
  color: #94a3b8;
  position: relative;
  z-index: 1;
}

.footer-columns-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3.5rem;
  margin-bottom: 4rem;
}

.footer-brand-bio {
  font-size: 0.885rem;
  line-height: 1.65;
  color: #64748b;
  margin-top: 1.25rem;
  max-width: 360px;
}

.footer-heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link-item a {
  color: #94a3b8;
  font-size: 0.885rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link-item a:hover {
  color: #38bdf8;
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #64748b;
}

/* ==========================================================================
   INTERACTIVE FLOATING WHATSAPP CHAT MODAL (GAMBAR 2)
   ========================================================================== */
.floating-wa-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
  cursor: pointer;
  border: none;
  outline: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-wa-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.65);
}

.floating-wa-btn::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.35);
  animation: pulseGlow 2s infinite;
  z-index: -1;
}

/* Chat Card Popup (Matching Gambar 2) */
.floating-wa-popup {
  position: fixed;
  bottom: 6.75rem;
  right: 2rem;
  z-index: 1001;
  width: 360px;
  max-width: calc(100vw - 2.5rem);
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 22px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.16), 0 0 25px rgba(37, 211, 102, 0.15);
  overflow: hidden;
  display: none;
  transform-origin: bottom right;
  animation: waPopupFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-wa-popup.active {
  display: block;
}

@keyframes waPopupFadeIn {
  from { opacity: 0; transform: scale(0.85) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.wa-popup-header {
  background: #f0fdf4;
  border-bottom: 1px solid #dcfce7;
  padding: 1.15rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wa-popup-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1rem;
  font-weight: 700;
  color: #15803d;
}

.wa-popup-close-btn {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 1.35rem;
  cursor: pointer;
  padding: 0.2rem;
  line-height: 1;
  border-radius: 6px;
  transition: color 0.2s;
}

.wa-popup-close-btn:hover {
  color: #0f172a;
}

.wa-popup-body {
  padding: 1.35rem;
}

.wa-popup-prompt {
  font-size: 0.925rem;
  color: #334155;
  line-height: 1.55;
  margin-bottom: 1rem;
}

.wa-popup-input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font-size: 0.885rem;
  font-family: var(--font-sans);
  color: #0f172a;
  background: #f8fafc;
  resize: none;
  height: 85px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  margin-bottom: 1rem;
}

.wa-popup-input:focus {
  border-color: #22c55e;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.wa-popup-send-btn {
  width: 100%;
  background: #22c55e;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 0.85rem;
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.35);
}

.wa-popup-send-btn:hover {
  background: #16a34a;
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.5);
  transform: translateY(-1px);
}

/* ==========================================================================
   THEME SYSTEM: DARK THEME OVERRIDES & ZERO FONT-BLENDING ASSURANCE
   ========================================================================== */
body.dark-theme {
  --theme-bg: #070b14;
  --theme-bg-gradient: radial-gradient(at 0% 0%, rgba(14, 165, 233, 0.15) 0px, transparent 50%),
                       radial-gradient(at 100% 0%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
                       radial-gradient(at 50% 50%, rgba(16, 185, 129, 0.1) 0px, transparent 50%),
                       radial-gradient(at 100% 100%, rgba(14, 165, 233, 0.12) 0px, transparent 50%);
  --theme-text-title: #ffffff;
  --theme-text-body: #cbd5e1;
  --theme-text-muted: #94a3b8;
  --theme-card-bg: rgba(15, 23, 42, 0.92);
  --theme-card-border: rgba(255, 255, 255, 0.12);
  --theme-header-bg: rgba(7, 11, 20, 0.94);
  --theme-header-border: rgba(255, 255, 255, 0.08);
  --theme-card-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);

  /* Core Dashboard Tokens Adaptive Mapping */
  --bg-app: #070b14;
  --bg-surface: #0f172a;
  --bg-subtle: #1e293b;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-light: #64748b;
  --border-color: rgba(255, 255, 255, 0.12);
  --border-color-dark: rgba(255, 255, 255, 0.18);

  background-color: var(--bg-app);
  color: var(--text-main);
}

/* THEME TOGGLE BUTTON */
.theme-toggle-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 0.45rem;
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: var(--theme-text-title, #0f172a);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
  white-space: nowrap;
}

.theme-toggle-btn:hover {
  background: rgba(2, 132, 199, 0.16);
  border-color: rgba(56, 189, 248, 0.8);
  transform: scale(1.04);
}

body.dark-theme .theme-toggle-btn {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(56, 189, 248, 0.45) !important;
  color: #ffffff !important;
}

body.dark-theme .theme-toggle-btn:hover {
  background: rgba(56, 189, 248, 0.2) !important;
  border-color: #38bdf8 !important;
}

body.dark-theme .public-header {
  background: var(--theme-header-bg) !important;
  border-bottom-color: var(--theme-header-border) !important;
}

body.dark-theme .brand-logo,
body.dark-theme .hero-main-title,
body.dark-theme .section-main-title,
body.dark-theme .founder-name,
body.dark-theme .plan-price-amount,
body.dark-theme .faq-question-btn,
body.dark-theme .testimonial-name,
body.dark-theme .stage-card-title,
body.dark-theme .module-title,
body.dark-theme .step-title,
body.dark-theme .principle-title,
body.dark-theme .vision-quote,
body.dark-theme .mission-item-box,
body.dark-theme .stat-number {
  color: #ffffff !important;
}

body.dark-theme .nav-link {
  color: #94a3b8 !important;
}

body.dark-theme .nav-link:hover {
  color: #38bdf8 !important;
}

body.dark-theme .btn-glass {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

body.dark-theme .hero-lead-text,
body.dark-theme .section-lead-subtitle,
body.dark-theme .stage-card-desc,
body.dark-theme .module-desc,
body.dark-theme .step-desc,
body.dark-theme .principle-desc,
body.dark-theme .founder-bio,
body.dark-theme .testimonial-quote,
body.dark-theme .faq-answer-text,
body.dark-theme .about-card-hero p {
  color: #cbd5e1 !important;
}

body.dark-theme .stage-card,
body.dark-theme .module-card,
body.dark-theme .step-card,
body.dark-theme .founder-card,
body.dark-theme .testimonial-card,
body.dark-theme .testimonial-card-marquee,
body.dark-theme .faq-item,
body.dark-theme .about-card-hero,
body.dark-theme .principle-box,
body.dark-theme .vision-mission-card,
body.dark-theme .hero-stats-strip,
body.dark-theme .stat-card,
body.dark-theme .card {
  background: var(--theme-card-bg) !important;
  border-color: var(--theme-card-border) !important;
  box-shadow: var(--theme-card-shadow) !important;
}

/* PRICING HIGH-CONTRAST DARK THEME STYLING (ZERO FONT BLENDING) */
body.dark-theme .pricing-tabs-container {
  background: rgba(15, 23, 42, 0.95) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
}

body.dark-theme .pricing-tab-btn {
  color: #cbd5e1 !important;
}

body.dark-theme .pricing-tab-btn small {
  color: #94a3b8 !important;
}

body.dark-theme .pricing-tab-btn.active {
  background: #0284c7 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.5) !important;
}

body.dark-theme .pricing-tab-btn.active small {
  color: #ffffff !important;
}

body.dark-theme .plan-card {
  background: rgba(15, 23, 42, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6) !important;
}

body.dark-theme .plan-card.popular {
  border: 2px solid #38bdf8 !important;
  box-shadow: 0 16px 35px rgba(56, 189, 248, 0.3) !important;
}

body.dark-theme .plan-period-label {
  color: #94a3b8 !important;
}

body.dark-theme .plan-price-amount {
  color: #ffffff !important;
}

body.dark-theme .plan-price-duration {
  color: #94a3b8 !important;
}

body.dark-theme .plan-credits-pill {
  background: rgba(2, 132, 199, 0.22) !important;
  border: 1px solid rgba(56, 189, 248, 0.45) !important;
}

body.dark-theme .plan-credits-title {
  color: #38bdf8 !important;
}

body.dark-theme .plan-credits-sub {
  color: #cbd5e1 !important;
}

body.dark-theme .plan-features-list .plan-feature-item,
body.dark-theme .plan-features-list .plan-feature-item span,
body.dark-theme .plan-features-list li {
  color: #f1f5f9 !important;
}

body.dark-theme .plan-check-icon {
  color: #34d399 !important;
}

body.dark-theme .btn-plan-secondary {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
}

body.dark-theme .btn-plan-secondary:hover {
  background: rgba(255, 255, 255, 0.18) !important;
  color: #38bdf8 !important;
  border-color: #38bdf8 !important;
}

body.dark-theme .enterprise-card {
  background: rgba(15, 23, 42, 0.95) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6) !important;
}

body.dark-theme .enterprise-header h3 {
  color: #ffffff !important;
}

body.dark-theme .enterprise-header p {
  color: #cbd5e1 !important;
}

body.dark-theme .enterprise-tier-box {
  background: rgba(30, 41, 59, 0.8) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

body.dark-theme .enterprise-tier-count {
  color: #ffffff !important;
}

body.dark-theme .enterprise-tier-cta {
  color: #38bdf8 !important;
}

body.dark-theme .enterprise-tier-box small {
  color: #94a3b8 !important;
}

/* DASHBOARD, BILLING TABLES & SANDBOX IN DARK THEME */
body.dark-theme .sandbox-card {
  background: rgba(245, 158, 11, 0.12) !important;
  border-color: rgba(245, 158, 11, 0.3) !important;
  color: #fef3c7 !important;
}

body.dark-theme .sandbox-card h3 {
  color: #ffffff !important;
}

body.dark-theme .sandbox-card p {
  color: #cbd5e1 !important;
}

body.dark-theme .dashboard-sidebar {
  background: #0f172a !important;
  border-right-color: rgba(255, 255, 255, 0.08) !important;
}

body.dark-theme .dashboard-topbar {
  background: #0f172a !important;
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

body.dark-theme .sidebar-nav-link {
  color: #94a3b8 !important;
}

body.dark-theme .sidebar-nav-link:hover,
body.dark-theme .sidebar-nav-link.active {
  background: rgba(2, 132, 199, 0.2) !important;
  color: #38bdf8 !important;
}

body.dark-theme .table {
  color: #f1f5f9 !important;
}

body.dark-theme .table th {
  background: #1e293b !important;
  color: #94a3b8 !important;
  border-color: #334155 !important;
}

body.dark-theme .table td {
  border-color: #334155 !important;
  color: #cbd5e1 !important;
}

/* FLOATING WHATSAPP POPUP IN DARK THEME */
body.dark-theme .floating-wa-popup {
  background: #0f172a !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 25px rgba(37, 211, 102, 0.25) !important;
}

body.dark-theme .wa-popup-header {
  background: rgba(16, 185, 129, 0.12) !important;
  border-bottom-color: rgba(16, 185, 129, 0.2) !important;
}

body.dark-theme .wa-popup-title {
  color: #4ade80 !important;
}

body.dark-theme .wa-popup-body {
  background: #0f172a !important;
}

body.dark-theme .wa-popup-prompt {
  color: #cbd5e1 !important;
}

body.dark-theme .wa-popup-input {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #ffffff !important;
}

body.dark-theme .wa-popup-input:focus {
  border-color: #4ade80 !important;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.2) !important;
}

body.dark-theme .wa-popup-close-btn {
  color: #94a3b8 !important;
}

body.dark-theme .wa-popup-close-btn:hover {
  color: #ffffff !important;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE, TABLET, DESKTOP)
   ========================================================================== */
@media (max-width: 1320px) {
  .brand-logo {
    margin-right: 0.85rem;
    font-size: 1.15rem;
  }
  .nav-menu {
    gap: 0.8rem;
  }
  .nav-link {
    font-size: 0.82rem;
    padding: 0.25rem 0.1rem;
  }
  .nav-actions {
    gap: 0.5rem;
  }
  .nav-actions .btn-holo {
    padding: 0.55rem 0.95rem;
    font-size: 0.825rem;
  }
  .nav-actions .btn-glass {
    padding: 0.55rem 0.85rem;
    font-size: 0.825rem;
  }
}

@media (max-width: 1180px) {
  .nav-menu,
  .nav-actions .btn-glass {
    display: none;
  }
  
  .mobile-nav-toggle {
    display: block;
  }
  
  .hero-main-title {
    font-size: 2.85rem;
  }
  
  .hero-stats-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  
  .stat-box:nth-child(2) {
    border-right: none;
  }
  
  .stat-box:nth-child(3) {
    border-right: 1px solid rgba(226, 232, 240, 0.8);
  }

  .modules-grid,
  .founders-grid,
  .testimonials-grid,
  .steps-pipeline-grid,
  .pricing-grid-4,
  .about-hero-grid,
  .footer-columns-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .enterprise-tiers-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-main-title {
    font-size: 2.15rem;
    line-height: 1.2;
  }
  
  .hero-lead-text {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.85rem;
  }

  .hero-cta-group {
    margin-bottom: 2.25rem;
    gap: 0.85rem;
  }
  
  .hero-stats-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
    padding: 1.15rem;
    margin: 0 auto 2.25rem;
    border-radius: 16px;
  }
  
  .stat-box {
    border-right: none !important;
    border-bottom: none !important;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 12px;
    padding: 0.75rem 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  }

  body.dark-theme .stat-box {
    background: rgba(15, 23, 42, 0.75);
  }
  
  .stat-number {
    font-size: 1.65rem;
  }

  .stat-label {
    font-size: 0.775rem;
    text-align: center;
  }
  
  .mockup-body {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  
  .mockup-sidebar {
    display: none;
  }

  .mockup-titlebar {
    padding: 0.75rem 1rem;
  }

  .mockup-editor-view {
    padding: 1.35rem 1.15rem;
    gap: 1.1rem;
  }

  .mockup-paper-heading {
    font-size: 1.15rem;
  }

  .mockup-paper-para {
    font-size: 0.875rem;
    line-height: 1.65;
  }
  
  .modules-grid,
  .founders-grid,
  .testimonials-grid,
  .steps-pipeline-grid,
  .pricing-grid-4,
  .about-principles-grid,
  .missions-list-grid,
  .footer-columns-grid {
    grid-template-columns: 1fr;
  }
  
  .section-main-title {
    font-size: 1.85rem;
  }
  
  .final-cta-title {
    font-size: 2rem;
  }
  
  .footer-bottom-bar {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .pricing-tabs-container {
    flex-direction: column;
    width: 100%;
  }
  
  .pricing-tab-btn {
    width: 100%;
    justify-content: center;
  }

  .floating-wa-popup {
    right: 1.25rem;
    bottom: 5.5rem;
    width: calc(100vw - 2.5rem);
  }
}

/* SMARTPHONE BREAKPOINTS (<= 640px) - RESOLVES GBR 1 CRITICAL BUGS */
@media (max-width: 640px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .landing-hero {
    padding: 3.5rem 0 2.5rem;
  }

  .hero-pill-badge {
    font-size: 0.75rem;
    padding: 0.35rem 0.85rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-main-title {
    font-size: 1.85rem;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
  }

  .hero-lead-text {
    font-size: 0.925rem;
    line-height: 1.55;
    margin-bottom: 1.75rem;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
    margin-bottom: 1.85rem;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
  }

  .hero-stats-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
    padding: 0.85rem;
    margin: 0 auto 1.85rem;
    border-radius: 14px;
  }

  .stat-box {
    padding: 0.6rem 0.35rem;
  }

  .stat-number {
    font-size: 1.4rem;
  }

  .stat-label {
    font-size: 0.725rem;
  }

  /* GBR 1 HERO MOCKUP FIXES */
  .editor-mockup-wrapper {
    margin: 0 -0.25rem;
    border-radius: 14px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
  }

  .editor-mockup-window {
    border-radius: 12px;
  }

  .mockup-titlebar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem;
    justify-content: space-between;
    align-items: center;
  }

  .mockup-filename {
    font-size: 0.75rem;
    flex: 1;
    min-width: 0;
    max-width: calc(100% - 60px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* PREVENTS THE STATUS TAG FROM SQUEEZING INTO A DEFORMED VERTICAL OVAL */
  .mockup-status-tag {
    width: 100%;
    order: 3;
    justify-content: center;
    font-size: 0.72rem;
    padding: 0.35rem 0.65rem;
    white-space: nowrap;
    border-radius: 6px;
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.35);
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
  }

  .mockup-editor-view {
    padding: 1.15rem 0.85rem;
    gap: 0.85rem;
  }

  .mockup-paper-heading {
    font-size: 1.05rem;
    line-height: 1.4;
    padding-bottom: 0.6rem;
  }

  .mockup-paper-para {
    font-size: 0.825rem;
    line-height: 1.6;
  }

  .mockup-citation-badge {
    font-size: 0.725rem;
    padding: 0.2rem 0.45rem;
    word-break: break-word;
    display: inline-flex;
    margin: 0.2rem 0;
    max-width: 100%;
  }

  .mockup-tools-strip {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    padding-top: 0.85rem;
  }

  .mockup-turnitin-pill {
    width: 100%;
    justify-content: center;
    font-size: 0.75rem;
    padding: 0.35rem 0.65rem;
  }

  .mockup-tools-strip span {
    justify-content: center;
    font-size: 0.75rem !important;
  }

  .landing-section {
    padding: 3.5rem 0;
  }

  .landing-section-header {
    margin-bottom: 2.25rem;
  }

  .theme-text-desktop {
    display: none !important;
  }

  .pricing-tabs-wrapper {
    margin-bottom: 2rem !important;
  }

  .pricing-tabs-container {
    flex-direction: column !important;
    width: 100% !important;
    padding: 0.4rem !important;
    border-radius: 16px !important;
    gap: 0.35rem !important;
  }

  .pricing-tab-btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.885rem !important;
    border-radius: 12px !important;
    text-align: center !important;
  }

  .pricing-grid-4 {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
    margin-bottom: 2rem !important;
  }

  .plan-card {
    padding: 1.65rem 1.25rem !important;
    border-radius: 18px !important;
  }

  .btn-plan {
    min-height: 48px !important;
    font-size: 0.95rem !important;
  }

  .enterprise-card {
    padding: 1.65rem 1.25rem !important;
    border-radius: 18px !important;
  }

  .enterprise-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
  }

  .enterprise-tiers-grid {
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
  }

  .testimonial-card-marquee {
    width: 310px !important;
    min-width: 310px !important;
    max-width: 310px !important;
    padding: 1.35rem 1.4rem !important;
  }

  .marquee-fade-left,
  .marquee-fade-right {
    width: 45px !important;
  }
}

/* ULTRA COMPACT MOBILE (<= 480px, e.g. iPhone SE, Galaxy S) */
@media (max-width: 480px) {
  .public-header {
    height: 64px;
  }

  .brand-logo {
    font-size: 1.025rem;
    gap: 0.4rem;
    margin-right: 0.25rem;
  }

  .brand-logo .logo-icon-img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }

  .nav-actions {
    gap: 0.35rem;
  }

  .theme-toggle-btn {
    padding: 0.4rem;
    min-width: 36px;
    height: 36px;
    font-size: 0.95rem;
  }

  .nav-actions .btn-holo {
    padding: 0.45rem 0.75rem;
    font-size: 0.8rem;
  }

  .nav-actions .btn-holo svg {
    display: none;
  }

  .hero-main-title {
    font-size: 1.65rem;
  }

  .stat-number {
    font-size: 1.25rem;
  }

  .stat-label {
    font-size: 0.685rem;
  }

  .plan-price-amount {
    font-size: 1.85rem !important;
  }

  .plan-card {
    padding: 1.4rem 1rem !important;
  }

  .topbar-right {
    gap: 0.5rem !important;
  }

  .credit-pill {
    padding: 0.35rem 0.65rem !important;
    font-size: 0.75rem !important;
  }

  .floating-wa-btn {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 54px;
    height: 54px;
  }

  .floating-wa-popup {
    bottom: 5.25rem;
    right: 1rem;
    width: calc(100vw - 2rem);
  }
}

/* ==========================================================================
   CROSS-MODULE RESPONSIVE UTILITIES (ARTIKEL, BRAINSTORMING, OLAH-DATA)
   ========================================================================== */
.artikel-2col-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1.5rem;
  align-items: flex-start;
}

.filter-3col-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.step-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.step-grid-chips {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.75rem;
}

.step-grid-vars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
}

.olah-form-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.spss-tables-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 900px) {
  .artikel-2col-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .step-grid-2col,
  .step-grid-chips,
  .step-grid-vars,
  .olah-form-2col,
  .spss-tables-2col {
    grid-template-columns: 1fr !important;
    gap: 1.15rem !important;
  }
}

@media (max-width: 600px) {
  .filter-3col-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   7. AUTHENTICATION PAGES (LOGIN & REGISTER)
   ========================================================================== */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  background: radial-gradient(circle at 50% 10%, #e0f2fe 0%, #f8fafc 65%);
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 2.5rem 2.25rem;
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-header .logo-icon {
  margin: 0 auto 1rem;
  width: 48px;
  height: 48px;
  font-size: 1.25rem;
}

.auth-header .logo-icon-img {
  margin: 0 auto 1rem;
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: block;
  object-fit: cover;
}

.auth-title {
  font-size: 1.65rem;
  margin-bottom: 0.35rem;
}

.auth-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

.auth-footer {
  margin-top: 1.75rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ==========================================================================
   8. DASHBOARD SHELL ARCHITECTURE
   ========================================================================== */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
  background-color: var(--bg-app);
}

/* Sidebar */
.dashboard-sidebar {
  width: var(--sidebar-width);
  background: var(--bg-surface);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-header {
  height: var(--header-height);
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-content {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-nav-group-title {
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  padding: 0 0.75rem;
  margin-bottom: 0.5rem;
}

.sidebar-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sidebar-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.885rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-md);
  transition: all 0.18s ease;
}

.sidebar-nav-link:hover {
  background: var(--bg-subtle);
  color: var(--text-main);
}

.sidebar-nav-link.active {
  background: var(--primary-50);
  color: var(--primary-600);
  font-weight: 600;
}

.sidebar-nav-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.sidebar-footer {
  padding: 1.15rem 1rem;
  border-top: 1px solid var(--border-color);
  background: #ffffff;
}

.user-mini-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: #0f172a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}

body.dark-theme .user-avatar {
  background: #1e293b;
  color: #38bdf8;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

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

.user-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role-badge {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* Dashboard Main Wrapper */
.dashboard-main {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0; /* Prevents overflow with flex */
}

/* Topbar */
.dashboard-topbar {
  height: var(--header-height);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  padding: 0 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 40;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  padding: 0.35rem;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.credit-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.95rem;
  background: linear-gradient(135deg, #ecfeff, #e0f2fe);
  border: 1px solid #bae6fd;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--primary-700);
}

/* Dashboard Content Area */
.dashboard-content {
  padding: 2rem 1.75rem;
  flex: 1;
}

/* Stats Metrics Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
}

.stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.stat-label {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-muted);
}

.stat-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-value {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-footer {
  font-size: 0.775rem;
  color: var(--text-muted);
}

/* Shortcuts / Quick Actions */
.shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.shortcut-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--text-main);
  transition: all 0.2s ease;
}

.shortcut-card:hover {
  border-color: var(--primary-500);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  color: var(--primary-600);
}

.shortcut-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--primary-50);
  color: var(--primary-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Backdrop for Mobile Sidebar Drawer */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(2px);
  z-index: 90;
}

/* ==========================================================================
   9. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 992px) {
  .dashboard-sidebar {
    transform: translateX(-100%);
  }

  .dashboard-sidebar.show {
    transform: translateX(0);
  }

  .sidebar-overlay.show {
    display: block;
  }

  .dashboard-main {
    margin-left: 0;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .hero-title {
    font-size: 2.35rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  .nav-menu {
    display: none;
  }

  .hero-section {
    padding: 3.5rem 0 2.5rem;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .dashboard-topbar, .dashboard-content {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/**
 * DENTSHUB RISET - Unified Stylesheet (Phase 3 Updates)
 * Menambahkan modul Project Grid, Progress Bars, Dynamic Chapter Workspace,
 * dan Modal Dialogs tanpa dependensi eksternal.
 */

/* STREAMING_CHUNK:Configuring system variables and tokens... */
:root {
  --primary-900: #0c1524;
  --primary-800: #111d33;
  --primary-700: #1b2d4f;
  --primary-600: #0284c7;
  --primary-500: #0ea5e9;
  --primary-400: #38bdf8;
  --primary-100: #e0f2fe;
  --primary-50:  #f0f9ff;

  --accent-emerald: #10b981;
  --accent-emerald-light: #d1fae5;
  --accent-amber:   #f59e0b;
  --accent-rose:    #ef4444;
  --accent-purple:  #8b5cf6;

  --bg-app:     #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle:  #f1f5f9;
  --bg-dark:    #0f172a;
  --bg-dark-surface: #1e293b;

  --text-main:    #0f172a;
  --text-muted:   #64748b;
  --text-light:   #94a3b8;
  --text-inverse: #f8fafc;

  --border-color:       #e2e8f0;
  --border-color-dark:  #334155;
  --border-focus:       #0284c7;

  --sidebar-width: 270px;
  --header-height: 68px;
  --container-max-width: 1240px;

  --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.08), 0 1px 2px -1px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.06);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Menlo, Monaco, Consolas, monospace;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-app);
  color: var(--text-main);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a {
  color: var(--primary-600);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover {
  color: var(--primary-700);
}

img, svg {
  vertical-align: middle;
  display: inline-block;
  max-width: 100%;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
}

/* STREAMING_CHUNK:Styling typography, badges and buttons... */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.15rem; }

p {
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  line-height: 1;
}

.badge-primary { background: var(--primary-100); color: var(--primary-700); }
.badge-emerald { background: var(--accent-emerald-light); color: #065f46; }
.badge-amber   { background: #fef3c7; color: #92400e; }
.badge-outline { border: 1px solid var(--border-color); background: transparent; color: var(--text-muted); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.925rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  line-height: 1.35;
  white-space: nowrap;
}

.btn:active { transform: scale(0.985); }
.btn-primary { background: var(--primary-600); color: #ffffff; box-shadow: 0 2px 4px rgba(2, 132, 199, 0.25); }
.btn-primary:hover { background: var(--primary-700); color: #ffffff; box-shadow: 0 4px 10px rgba(2, 132, 199, 0.35); }
.btn-secondary { background: var(--bg-surface); color: var(--text-main); border: 1px solid var(--border-color); }
.btn-secondary:hover { background: var(--bg-subtle); border-color: #cbd5e1; }
.btn-sm { padding: 0.4rem 0.85rem; font-size: 0.825rem; border-radius: var(--radius-sm); }
.btn-block { width: 100%; }

/* Form Controls */
.form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 0.7rem 0.95rem;
  font-size: 0.95rem;
  color: var(--text-main);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.form-control::placeholder { color: var(--text-light); }

.input-icon-wrapper { position: relative; display: flex; align-items: center; }
.input-icon-wrapper .form-control { padding-right: 2.75rem; }
.input-icon-btn { position: absolute; right: 0.75rem; background: none; border: none; color: var(--text-muted); cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0.25rem; font-size: 1.25rem; }

/* STREAMING_CHUNK:Styling Cards, Tables and Alerts... */
.container { width: 100%; max-width: var(--container-max-width); margin: 0 auto; padding: 0 1.5rem; }

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}

.card-header {
  padding: 1.15rem 1.4rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
}

.card-title { font-size: 1.05rem; font-weight: 700; margin: 0; }
.card-body { padding: 1.4rem; }
.card-footer { padding: 1rem 1.4rem; border-top: 1px solid var(--border-color); background: var(--bg-subtle); }

.table-responsive { width: 100%; overflow-x: auto; }
.table-custom { width: 100%; border-collapse: collapse; text-align: left; font-size: 0.885rem; }
.table-custom th { padding: 0.85rem 1.15rem; background: var(--bg-subtle); color: var(--text-muted); font-weight: 600; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.05em; border-bottom: 1px solid var(--border-color); }
.table-custom td { padding: 1rem 1.15rem; border-bottom: 1px solid var(--border-color); color: var(--text-main); vertical-align: middle; }
.table-custom tr:last-child td { border-bottom: none; }
.table-custom tr:hover td { background: rgba(241, 245, 249, 0.5); }

.alert { padding: 0.9rem 1.15rem; border-radius: var(--radius-md); margin-bottom: 1.25rem; display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.9rem; }
.alert-danger { background: #fef2f2; border: 1px solid #fee2e2; color: #991b1b; }
.alert-info { background: #eff6ff; border: 1px solid #dbeafe; color: #1e40af; }

/* STREAMING_CHUNK:Styling Project Cards and Progress indicators (Phase 3)... */
.progress-bar-container {
  width: 100%;
  background: var(--border-color);
  border-radius: var(--radius-full);
  overflow: hidden;
  height: 8px;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-500), var(--accent-emerald));
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.project-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-xs);
}

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

.project-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.project-card-title {
  font-size: 1.15rem;
  line-height: 1.35;
  margin-bottom: 0.5rem;
  flex-grow: 0;
}

.project-card-title a {
  color: var(--text-main);
}

.project-card-title a:hover {
  color: var(--primary-600);
}

.project-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-card-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1rem;
}

.project-card-progress {
  margin-bottom: 1.25rem;
}

.project-card-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* STREAMING_CHUNK:Styling Academic Chapter Workspace Layout (Phase 3)... */
.chapter-workspace-layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
  background: var(--bg-app);
}

.chapter-nav-pane {
  width: 320px;
  background: #ffffff;
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.chapter-nav-header {
  padding: 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.chapter-list-container {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 0.5rem;
}

.chapter-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.chapter-nav-item {
  display: block;
  padding: 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  color: var(--text-main);
  transition: all 0.15s ease;
  background: #ffffff;
}

.chapter-nav-item:hover {
  background: var(--bg-subtle);
  border-color: var(--border-color);
}

.chapter-nav-item.active {
  background: var(--primary-50);
  border-color: var(--primary-400);
}

.chapter-num-badge {
  font-size: 0.725rem;
  font-weight: 700;
  color: var(--primary-700);
  text-transform: uppercase;
}

.chapter-item-title {
  font-size: 0.885rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.chapter-item-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  gap: 0.4rem;
}

.chapter-nav-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-subtle);
}

/* Chapter Editor Main Pane */
.chapter-editor-pane {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #ffffff;
}

.chapter-editor-topbar {
  padding: 0.85rem 1.75rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #ffffff;
}

.editor-topbar-left {
  flex: 1;
  min-width: 0;
}

.editor-topbar-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.chapter-title-inline-input {
  width: 100%;
  border: none;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  outline: none;
  padding: 0.15rem 0;
  background: transparent;
}

.chapter-title-inline-input:focus {
  border-bottom: 2px solid var(--primary-500);
}

.sync-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.sync-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--accent-emerald);
}

.sync-indicator.saving .sync-dot {
  background: var(--accent-amber);
  animation: pulse 1s infinite alternate;
}

.sync-indicator.unsaved .sync-dot {
  background: var(--accent-rose);
}

@keyframes pulse {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

/* Academic Formatting Toolbar */
.chapter-toolbar {
  padding: 0.5rem 1.75rem;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
}

.toolbar-btn {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.3rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.15s;
}

.toolbar-btn:hover {
  background: var(--primary-50);
  border-color: var(--primary-400);
  color: var(--primary-700);
}

.toolbar-divider {
  width: 1px;
  height: 20px;
  background: var(--border-color);
  margin: 0 0.25rem;
}

/* Chapter Editor Writing Area */
.chapter-editor-body {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #ffffff;
}

.chapter-content-textarea {
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  resize: none;
  padding: 2.25rem 3rem;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-main);
  background: #ffffff;
  letter-spacing: 0.01em;
}

.chapter-content-textarea::placeholder {
  color: var(--text-light);
}

.chapter-editor-bottombar {
  padding: 0.75rem 1.75rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* STREAMING_CHUNK:Styling Modal Dialogs and Overlays (Phase 3)... */
.modal-backdrop-custom {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(3px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-backdrop-custom.show {
  display: flex;
}

.modal-dialog-custom {
  width: 100%;
  max-width: 580px;
  animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* STREAMING_CHUNK:Styling Dashboard Layout Shell and Sidebar... */
.dashboard-layout { display: flex; min-height: 100vh; background-color: var(--bg-app); }
.dashboard-sidebar { width: var(--sidebar-width); background: var(--bg-surface); border-right: 1px solid var(--border-color); display: flex; flex-direction: column; position: fixed; top: 0; bottom: 0; left: 0; z-index: 100; transition: transform 0.25s ease; }
.sidebar-header { height: var(--header-height); padding: 0 1.5rem; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border-color); }
.brand-logo { display: flex; align-items: center; gap: 0.65rem; font-size: 1.25rem; font-weight: 800; color: var(--text-main); letter-spacing: -0.03em; }
.brand-logo .logo-icon { width: 34px; height: 34px; background: linear-gradient(135deg, var(--primary-600), var(--primary-800)); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: #ffffff; font-weight: 800; box-shadow: var(--shadow-sm); }
.sidebar-content { flex: 1; overflow-y: auto; padding: 1.25rem 1rem; display: flex; flex-direction: column; gap: 1.5rem; }
.sidebar-nav-group-title { font-size: 0.725rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-light); padding: 0 0.75rem; margin-bottom: 0.5rem; }
.sidebar-nav-list { list-style: none; display: flex; flex-direction: column; gap: 0.25rem; }
.sidebar-nav-link { display: flex; align-items: center; gap: 0.75rem; padding: 0.65rem 0.85rem; font-size: 0.885rem; font-weight: 500; color: var(--text-muted); border-radius: var(--radius-md); transition: all 0.18s ease; }
.sidebar-nav-link:hover { background: var(--bg-subtle); color: var(--text-main); }
.sidebar-nav-link.active { background: var(--primary-50); color: var(--primary-600); font-weight: 600; }
.sidebar-nav-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.sidebar-footer { padding: 1.15rem 1rem; border-top: 1px solid var(--border-color); background: #ffffff; }
.user-mini-card { display: flex; align-items: center; gap: 0.75rem; }
.user-avatar { width: 38px; height: 38px; border-radius: var(--radius-full); background: var(--primary-700); color: #ffffff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.95rem; }
.user-meta { display: flex; flex-direction: column; overflow: hidden; }
.user-name { font-size: 0.875rem; font-weight: 600; color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role-badge { font-size: 0.725rem; color: var(--text-muted); }
.dashboard-main { margin-left: var(--sidebar-width); flex: 1; display: flex; flex-direction: column; min-width: 0; }
.dashboard-topbar { height: var(--header-height); background: var(--bg-surface); border-bottom: 1px solid var(--border-color); padding: 0 1.75rem; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 40; }
.topbar-left { display: flex; align-items: center; gap: 1rem; }
.mobile-menu-toggle { display: none; background: none; border: none; color: var(--text-main); cursor: pointer; padding: 0.35rem; }
.topbar-right { display: flex; align-items: center; gap: 1.25rem; }
.credit-pill { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.95rem; background: linear-gradient(135deg, #ecfeff, #e0f2fe); border: 1px solid #bae6fd; border-radius: var(--radius-full); font-size: 0.825rem; font-weight: 700; color: var(--primary-700); }
.dashboard-content { padding: 2rem 1.75rem; flex: 1; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.25rem; margin-bottom: 2rem; }
.stat-card { background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 1.4rem; display: flex; flex-direction: column; box-shadow: var(--shadow-xs); }
.stat-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.85rem; }
.stat-label { font-size: 0.825rem; font-weight: 600; color: var(--text-muted); }
.stat-icon { width: 36px; height: 36px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; }
.stat-value { font-size: 1.85rem; font-weight: 800; color: var(--text-main); line-height: 1; margin-bottom: 0.4rem; }
.stat-footer { font-size: 0.775rem; color: var(--text-muted); }
.shortcuts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.shortcut-card { background: #ffffff; border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 1.15rem; display: flex; align-items: center; gap: 0.85rem; color: var(--text-main); transition: all 0.2s ease; }
.shortcut-card:hover { border-color: var(--primary-500); transform: translateY(-2px); box-shadow: var(--shadow-sm); color: var(--primary-600); }
.shortcut-icon { width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--primary-50); color: var(--primary-600); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(15, 23, 42, 0.5); backdrop-filter: blur(2px); z-index: 90; }

/* Responsive adjustments */
@media (max-width: 992px) {
  .dashboard-sidebar { transform: translateX(-100%); }
  .dashboard-sidebar.show { transform: translateX(0); }
  .sidebar-overlay.show { display: block; }
  .dashboard-main { margin-left: 0; }
  .mobile-menu-toggle { display: flex; }
  .chapter-nav-pane { width: 260px; }
  .chapter-content-textarea { padding: 1.5rem; }
}

@media (max-width: 768px) {
  .chapter-workspace-layout { flex-direction: column; height: auto; min-height: 100vh; }
  .chapter-nav-pane { width: 100%; height: 320px; }
  .chapter-editor-pane { min-height: 80vh; }
  .chapter-content-textarea { padding: 1.25rem 1rem; }
}

/**
 * DENTSHUB RISET - Unified Stylesheet (Phase 4 Updates)
 * Menambahkan modul AI Tool Layouts, Diff Viewers, Novelty Synthesis,
 * dan Token Cost Badges.
 */

:root {
--primary-900: #0c1524;
--primary-800: #111d33;
--primary-700: #1b2d4f;
--primary-600: #0284c7;
--primary-500: #0ea5e9;
--primary-400: #38bdf8;
--primary-100: #e0f2fe;
--primary-50:  #f0f9ff;

--accent-emerald: #10b981;
--accent-emerald-light: #d1fae5;
--accent-amber:   #f59e0b;
--accent-rose:    #ef4444;
--accent-purple:  #8b5cf6;

--bg-app:     #f8fafc;
--bg-surface: #ffffff;
--bg-subtle:  #f1f5f9;
--bg-dark:    #0f172a;
--bg-dark-surface: #1e293b;

--text-main:    #0f172a;
--text-muted:   #64748b;
--text-light:   #94a3b8;
--text-inverse: #f8fafc;

--border-color:       #e2e8f0;
--border-color-dark:  #334155;
--border-focus:       #0284c7;

--sidebar-width: 270px;
--header-height: 68px;
--container-max-width: 1240px;

--shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
--shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.08), 0 1px 2px -1px rgba(15, 23, 42, 0.08);
--shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.06);
--shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
--shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.06);

--radius-sm: 6px;
--radius-md: 10px;
--radius-lg: 14px;
--radius-xl: 20px;
--radius-full: 9999px;

--font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
--font-mono: 'JetBrains Mono', 'SFMono-Regular', Menlo, Monaco, Consolas, monospace;
}

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

html {
font-size: 16px;
scroll-behavior: smooth;
-webkit-text-size-adjust: 100%;
}

body {
font-family: var(--font-sans);
background-color: var(--bg-app);
color: var(--text-main);
line-height: 1.6;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
min-height: 100vh;
}

a {
color: var(--primary-600);
text-decoration: none;
transition: color 0.18s ease;
}

a:hover {
color: var(--primary-700);
}

img, svg {
vertical-align: middle;
display: inline-block;
max-width: 100%;
}

button, input, select, textarea {
font-family: inherit;
font-size: 100%;
}

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

h1 { font-size: 2.25rem; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.15rem; }

p {
color: var(--text-muted);
margin-bottom: 0.85rem;
}

.badge {
display: inline-flex;
align-items: center;
gap: 0.35rem;
padding: 0.25rem 0.65rem;
font-size: 0.75rem;
font-weight: 600;
border-radius: var(--radius-full);
line-height: 1;
}

.badge-primary { background: var(--primary-100); color: var(--primary-700); }
.badge-emerald { background: var(--accent-emerald-light); color: #065f46; }
.badge-amber   { background: #fef3c7; color: #92400e; }
.badge-outline { border: 1px solid var(--border-color); background: transparent; color: var(--text-muted); }

.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
padding: 0.65rem 1.25rem;
font-size: 0.925rem;
font-weight: 600;
border-radius: var(--radius-md);
border: 1px solid transparent;
cursor: pointer;
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
text-decoration: none;
line-height: 1.35;
white-space: nowrap;
}

.btn:active { transform: scale(0.985); }
.btn-primary { background: var(--primary-600); color: #ffffff; box-shadow: 0 2px 4px rgba(2, 132, 199, 0.25); }
.btn-primary:hover { background: var(--primary-700); color: #ffffff; box-shadow: 0 4px 10px rgba(2, 132, 199, 0.35); }
.btn-secondary { background: var(--bg-surface); color: var(--text-main); border: 1px solid var(--border-color); }
.btn-secondary:hover { background: var(--bg-subtle); border-color: #cbd5e1; }
.btn-sm { padding: 0.4rem 0.85rem; font-size: 0.825rem; border-radius: var(--radius-sm); }
.btn-block { width: 100%; }

/* Form Controls */
.form-group {
margin-bottom: 1.25rem;
display: flex;
flex-direction: column;
gap: 0.4rem;
}

.form-label {
font-size: 0.875rem;
font-weight: 600;
color: var(--text-main);
}

.form-control {
width: 100%;
padding: 0.7rem 0.95rem;
font-size: 0.95rem;
color: var(--text-main);
background: var(--bg-surface);
border: 1px solid var(--border-color);
border-radius: var(--radius-md);
outline: none;
transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
border-color: var(--border-focus);
box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.form-control::placeholder { color: var(--text-light); }

.input-icon-wrapper { position: relative; display: flex; align-items: center; }
.input-icon-wrapper .form-control { padding-right: 2.75rem; }
.input-icon-btn { position: absolute; right: 0.75rem; background: none; border: none; color: var(--text-muted); cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0.25rem; font-size: 1.25rem; }

/* Container & Cards */
.container { width: 100%; max-width: var(--container-max-width); margin: 0 auto; padding: 0 1.5rem; }

.card {
background: var(--bg-surface);
border: 1px solid var(--border-color);
border-radius: var(--radius-lg);
box-shadow: var(--shadow-xs);
overflow: hidden;
}

.card-header {
padding: 1.15rem 1.4rem;
border-bottom: 1px solid var(--border-color);
display: flex;
align-items: center;
justify-content: space-between;
background: #ffffff;
}

.card-title { font-size: 1.05rem; font-weight: 700; margin: 0; }
.card-body { padding: 1.4rem; }
.card-footer { padding: 1rem 1.4rem; border-top: 1px solid var(--border-color); background: var(--bg-subtle); }

.table-responsive { width: 100%; overflow-x: auto; }
.table-custom { width: 100%; border-collapse: collapse; text-align: left; font-size: 0.885rem; }
.table-custom th { padding: 0.85rem 1.15rem; background: var(--bg-subtle); color: var(--text-muted); font-weight: 600; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.05em; border-bottom: 1px solid var(--border-color); }
.table-custom td { padding: 1rem 1.15rem; border-bottom: 1px solid var(--border-color); color: var(--text-main); vertical-align: middle; }
.table-custom tr:last-child td { border-bottom: none; }
.table-custom tr:hover td { background: rgba(241, 245, 249, 0.5); }

.alert { padding: 0.9rem 1.15rem; border-radius: var(--radius-md); margin-bottom: 1.25rem; display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.9rem; }
.alert-danger { background: #fef2f2; border: 1px solid #fee2e2; color: #991b1b; }
.alert-info { background: #eff6ff; border: 1px solid #dbeafe; color: #1e40af; }

/* Progress Bars & Project Cards */
.progress-bar-container {
width: 100%;
background: var(--border-color);
border-radius: var(--radius-full);
overflow: hidden;
height: 8px;
}

.progress-bar-fill {
height: 100%;
background: linear-gradient(90deg, var(--primary-500), var(--accent-emerald));
border-radius: var(--radius-full);
transition: width 0.4s ease;
}

.project-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
gap: 1.5rem;
margin-bottom: 2rem;
}

.project-card {
background: var(--bg-surface);
border: 1px solid var(--border-color);
border-radius: var(--radius-lg);
padding: 1.5rem;
display: flex;
flex-direction: column;
transition: all 0.2s ease;
box-shadow: var(--shadow-xs);
}

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

.project-card-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 0.85rem;
}

.project-card-title {
font-size: 1.15rem;
line-height: 1.35;
margin-bottom: 0.5rem;
flex-grow: 0;
}

.project-card-title a { color: var(--text-main); }
.project-card-title a:hover { color: var(--primary-600); }

.project-card-desc {
font-size: 0.85rem;
color: var(--text-muted);
line-height: 1.5;
margin-bottom: 1.25rem;
flex-grow: 1;
display: -webkit-box;
-webkit-line-clamp: 2;
line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}

.project-card-meta {
font-size: 0.8rem;
color: var(--text-muted);
padding-bottom: 1rem;
border-bottom: 1px solid var(--border-color);
margin-bottom: 1rem;
}

.project-card-progress { margin-bottom: 1.25rem; }
.project-card-actions { display: flex; align-items: center; gap: 0.5rem; }

/* Chapter Workspace Layout */
.chapter-workspace-layout {
display: flex;
height: 100vh;
overflow: hidden;
background: var(--bg-app);
}

.chapter-nav-pane {
width: 320px;
background: #ffffff;
border-right: 1px solid var(--border-color);
display: flex;
flex-direction: column;
flex-shrink: 0;
}

.chapter-nav-header { padding: 1.25rem; border-bottom: 1px solid var(--border-color); }
.chapter-list-container { flex: 1; overflow-y: auto; padding: 0.75rem 0.5rem; }
.chapter-nav-list { list-style: none; display: flex; flex-direction: column; gap: 0.35rem; }

.chapter-nav-item {
display: block;
padding: 0.85rem;
border-radius: var(--radius-md);
border: 1px solid transparent;
color: var(--text-main);
transition: all 0.15s ease;
background: #ffffff;
}

.chapter-nav-item:hover { background: var(--bg-subtle); border-color: var(--border-color); }
.chapter-nav-item.active { background: var(--primary-50); border-color: var(--primary-400); }

.chapter-num-badge {
font-size: 0.725rem;
font-weight: 700;
color: var(--primary-700);
text-transform: uppercase;
}

.chapter-item-title {
font-size: 0.885rem;
font-weight: 600;
margin-bottom: 0.25rem;
line-height: 1.3;
}

.chapter-item-meta { font-size: 0.75rem; color: var(--text-muted); display: flex; gap: 0.4rem; }
.chapter-nav-footer { padding: 1rem 1.25rem; border-top: 1px solid var(--border-color); background: var(--bg-subtle); }

.chapter-editor-pane {
flex: 1;
display: flex;
flex-direction: column;
min-width: 0;
background: #ffffff;
}

.chapter-editor-topbar {
padding: 0.85rem 1.75rem;
border-bottom: 1px solid var(--border-color);
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
background: #ffffff;
}

.editor-topbar-left { flex: 1; min-width: 0; }
.editor-topbar-right { display: flex; align-items: center; gap: 0.65rem; }

.chapter-title-inline-input {
width: 100%;
border: none;
font-size: 1.25rem;
font-weight: 800;
color: var(--text-main);
outline: none;
padding: 0.15rem 0;
background: transparent;
}

.chapter-title-inline-input:focus { border-bottom: 2px solid var(--primary-500); }

.sync-indicator {
display: inline-flex;
align-items: center;
gap: 0.35rem;
font-size: 0.75rem;
font-weight: 600;
color: var(--text-muted);
}

.sync-dot { width: 8px; height: 8px; border-radius: var(--radius-full); background: var(--accent-emerald); }
.sync-indicator.saving .sync-dot { background: var(--accent-amber); animation: pulse 1s infinite alternate; }
.sync-indicator.unsaved .sync-dot { background: var(--accent-rose); }

@keyframes pulse { from { opacity: 0.4; } to { opacity: 1; } }

.chapter-toolbar {
padding: 0.5rem 1.75rem;
background: var(--bg-subtle);
border-bottom: 1px solid var(--border-color);
display: flex;
align-items: center;
gap: 0.5rem;
overflow-x: auto;
}

.toolbar-btn {
background: #ffffff;
border: 1px solid var(--border-color);
border-radius: var(--radius-sm);
padding: 0.3rem 0.65rem;
font-size: 0.8rem;
font-weight: 600;
color: var(--text-main);
cursor: pointer;
display: inline-flex;
align-items: center;
gap: 0.3rem;
transition: all 0.15s;
}

.toolbar-btn:hover { background: var(--primary-50); border-color: var(--primary-400); color: var(--primary-700); }
.toolbar-divider { width: 1px; height: 20px; background: var(--border-color); margin: 0 0.25rem; }

.chapter-editor-body { flex: 1; position: relative; overflow: hidden; background: #ffffff; }

.chapter-content-textarea {
width: 100%;
height: 100%;
border: none;
outline: none;
resize: none;
padding: 2.25rem 3rem;
font-family: var(--font-sans);
font-size: 1.05rem;
line-height: 1.8;
color: var(--text-main);
background: #ffffff;
letter-spacing: 0.01em;
}

.chapter-editor-bottombar {
padding: 0.75rem 1.75rem;
border-top: 1px solid var(--border-color);
background: var(--bg-subtle);
display: flex;
align-items: center;
justify-content: space-between;
}

/* Modals */
.modal-backdrop-custom {
position: fixed;
inset: 0;
background: rgba(15, 23, 42, 0.6);
backdrop-filter: blur(3px);
z-index: 1000;
display: none;
align-items: center;
justify-content: center;
padding: 1rem;
}

.modal-backdrop-custom.show { display: flex; }
.modal-dialog-custom { width: 100%; max-width: 580px; animation: modalFadeIn 0.2s ease-out; }

@keyframes modalFadeIn {
from { opacity: 0; transform: translateY(12px) scale(0.98); }
to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Dashboard Shell & Sidebar */
.dashboard-layout { display: flex; min-height: 100vh; background-color: var(--bg-app); }
.dashboard-sidebar { width: var(--sidebar-width); background: var(--bg-surface); border-right: 1px solid var(--border-color); display: flex; flex-direction: column; position: fixed; top: 0; bottom: 0; left: 0; z-index: 100; transition: transform 0.25s ease; }
.sidebar-header { height: var(--header-height); padding: 0 1.5rem; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border-color); }
.brand-logo { display: flex; align-items: center; gap: 0.65rem; font-size: 1.25rem; font-weight: 800; color: var(--text-main); letter-spacing: -0.03em; }
.brand-logo .logo-icon { width: 34px; height: 34px; background: linear-gradient(135deg, var(--primary-600), var(--primary-800)); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: #ffffff; font-weight: 800; box-shadow: var(--shadow-sm); }
.sidebar-content { flex: 1; overflow-y: auto; padding: 1.25rem 1rem; display: flex; flex-direction: column; gap: 1.5rem; }
.sidebar-nav-group-title { font-size: 0.725rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-light); padding: 0 0.75rem; margin-bottom: 0.5rem; }
.sidebar-nav-list { list-style: none; display: flex; flex-direction: column; gap: 0.25rem; }
.sidebar-nav-link { display: flex; align-items: center; gap: 0.75rem; padding: 0.65rem 0.85rem; font-size: 0.885rem; font-weight: 500; color: var(--text-muted); border-radius: var(--radius-md); transition: all 0.18s ease; }
.sidebar-nav-link:hover { background: var(--bg-subtle); color: var(--text-main); }
.sidebar-nav-link.active { background: var(--primary-50); color: var(--primary-600); font-weight: 600; }
.sidebar-nav-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.sidebar-footer { padding: 1.15rem 1rem; border-top: 1px solid var(--border-color); background: #ffffff; }
.user-mini-card { display: flex; align-items: center; gap: 0.75rem; }
.user-avatar { width: 38px; height: 38px; border-radius: var(--radius-full); background: var(--primary-700); color: #ffffff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.95rem; }
.user-meta { display: flex; flex-direction: column; overflow: hidden; }
.user-name { font-size: 0.875rem; font-weight: 600; color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role-badge { font-size: 0.725rem; color: var(--text-muted); }

.dashboard-main { margin-left: var(--sidebar-width); flex: 1; display: flex; flex-direction: column; min-width: 0; }
.dashboard-topbar { height: var(--header-height); background: var(--bg-surface); border-bottom: 1px solid var(--border-color); padding: 0 1.75rem; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 40; }
.topbar-left { display: flex; align-items: center; gap: 1rem; }
.mobile-menu-toggle { display: none; background: none; border: none; color: var(--text-main); cursor: pointer; padding: 0.35rem; }
.topbar-right { display: flex; align-items: center; gap: 1.25rem; }
.credit-pill { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.95rem; background: linear-gradient(135deg, #ecfeff, #e0f2fe); border: 1px solid #bae6fd; border-radius: var(--radius-full); font-size: 0.825rem; font-weight: 700; color: var(--primary-700); }
.dashboard-content { padding: 2rem 1.75rem; flex: 1; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.25rem; margin-bottom: 2rem; }
.stat-card { background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 1.4rem; display: flex; flex-direction: column; box-shadow: var(--shadow-xs); }
.stat-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.85rem; }
.stat-label { font-size: 0.825rem; font-weight: 600; color: var(--text-muted); }
.stat-icon { width: 36px; height: 36px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; }
.stat-value { font-size: 1.85rem; font-weight: 800; color: var(--text-main); line-height: 1; margin-bottom: 0.4rem; }
.stat-footer { font-size: 0.775rem; color: var(--text-muted); }

.shortcuts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.shortcut-card { background: #ffffff; border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 1.15rem; display: flex; align-items: center; gap: 0.85rem; color: var(--text-main); transition: all 0.2s ease; }
.shortcut-card:hover { border-color: var(--primary-500); transform: translateY(-2px); box-shadow: var(--shadow-sm); color: var(--primary-600); }
.shortcut-icon { width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--primary-50); color: var(--primary-600); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(15, 23, 42, 0.5); backdrop-filter: blur(2px); z-index: 90; }

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

PHASE 4 ADDITIONS: AI TOOLS & COMPARATORS

========================================== */
.ai-tool-layout {
display: grid;
grid-template-columns: 1.05fr 1fr;
gap: 1.75rem;
align-items: flex-start;
}

.token-cost-badge {
display: inline-flex;
align-items: center;
gap: 0.5rem;
padding: 0.4rem 0.85rem;
border-radius: var(--radius-full);
background: #fdf2f8;
border: 1px solid #fbcfe8;
color: #be185d;
font-size: 0.825rem;
}

.diff-viewer-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 1.5rem;
}

.ai-recommendation-card {
transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ai-recommendation-card:hover {
transform: translateY(-2px);
box-shadow: var(--shadow-md);
border-color: var(--primary-400);
}

.ai-editor-preview-content {
background: #ffffff;
padding: 1.25rem;
border-radius: var(--radius-md);
border: 1px dashed var(--border-color);
min-height: 250px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
.dashboard-sidebar { transform: translateX(-100%); }
.dashboard-sidebar.show { transform: translateX(0); }
.sidebar-overlay.show { display: block; }
.dashboard-main { margin-left: 0; }
.mobile-menu-toggle { display: flex; }
.chapter-nav-pane { width: 260px; }
.chapter-content-textarea { padding: 1.5rem; }
.ai-tool-layout { grid-template-columns: 1fr; }
.diff-viewer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
.chapter-workspace-layout { flex-direction: column; height: auto; min-height: 100vh; }
.chapter-nav-pane { width: 100%; height: 320px; }
.chapter-editor-pane { min-height: 80vh; }
.chapter-content-textarea { padding: 1.25rem 1rem; }
}

/* ... existing code ... */
.ai-editor-preview-content {
background: #ffffff;
padding: 1.25rem;
border-radius: var(--radius-md);
border: 1px dashed var(--border-color);
min-height: 250px;
}

/* STREAMING_CHUNK:Styling Phase 5 Credit Ledger hero card and breakdown widgets... /
/ ==========================================

PHASE 5 ADDITIONS: CREDIT & LEDGER SYSTEM

========================================== */
.ledger-hero-card {
background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
border-radius: var(--radius-xl);
padding: 2.25rem;
color: #ffffff;
display: flex;
justify-content: space-between;
align-items: center;
gap: 2rem;
margin-bottom: 2rem;
box-shadow: var(--shadow-lg);
}

.ledger-hero-left {
flex: 1;
}

.ledger-hero-subtitle {
display: block;
font-size: 0.85rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.08em;
color: #38bdf8;
margin-bottom: 0.5rem;
}

.ledger-hero-balance {
font-size: 3.25rem;
font-weight: 800;
line-height: 1.1;
letter-spacing: -0.03em;
color: #ffffff;
margin-bottom: 0.75rem;
}

.ledger-hero-unit {
font-size: 1.5rem;
font-weight: 600;
color: #94a3b8;
}

.ledger-hero-desc {
font-size: 0.9rem;
color: #cbd5e1;
max-width: 520px;
margin: 0;
line-height: 1.5;
}

.ledger-hero-actions {
display: flex;
flex-direction: column;
gap: 0.75rem;
min-width: 220px;
}

/* STREAMING_CHUNK:Styling voucher input box and feature usage breakdown... */
.voucher-box {
background: #f0fdf4;
border: 1px solid #bbf7d0;
border-radius: var(--radius-lg);
padding: 1.25rem 1.5rem;
margin-bottom: 2rem;
animation: modalFadeIn 0.2s ease-out;
}

.ledger-feature-item {
background: var(--bg-subtle);
border: 1px solid var(--border-color);
border-radius: var(--radius-md);
padding: 1rem;
display: flex;
flex-direction: column;
gap: 0.25rem;
}

.ledger-feature-item .feature-name {
font-size: 0.8rem;
font-weight: 600;
color: var(--text-muted);
}

.ledger-feature-item .feature-cost {
font-size: 1.25rem;
font-weight: 800;
color: var(--text-main);
font-family: var(--font-mono);
}

/* STREAMING_CHUNK:Styling ledger filter bar and transaction type badges... */
.ledger-filter-bar {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.75rem 1.4rem;
background: var(--bg-subtle);
border-bottom: 1px solid var(--border-color);
overflow-x: auto;
}

.ledger-filter-pill {
padding: 0.4rem 0.85rem;
font-size: 0.8rem;
font-weight: 600;
border-radius: var(--radius-full);
color: var(--text-muted);
background: #ffffff;
border: 1px solid var(--border-color);
white-space: nowrap;
transition: all 0.15s ease;
}

.ledger-filter-pill:hover {
border-color: var(--primary-500);
color: var(--primary-600);
}

.ledger-filter-pill.active {
background: var(--primary-600);
border-color: var(--primary-600);
color: #ffffff;
}

/* Badge variants for transaction ledger */
.badge-usage {
background: #fee2e2;
color: #991b1b;
border: 1px solid #fecaca;
}

.badge-bonus {
background: #dcfce7;
color: #166534;
border: 1px solid #bbf7d0;
}

.badge-purchase {
background: #e0f2fe;
color: #0369a1;
border: 1px solid #bae6fd;
}

.badge-refund {
background: #f3e8ff;
color: #6b21a8;
border: 1px solid #e9d5ff;
}

.amount-positive {
color: #15803d;
}

.amount-negative {
color: #b91c1c;
}

/* Responsive adjustments */
@media (max-width: 992px) {
.dashboard-sidebar { transform: translateX(-100%); }
.dashboard-sidebar.show { transform: translateX(0); }
.sidebar-overlay.show { display: block; }
.dashboard-main { margin-left: 0; }
.mobile-menu-toggle { display: flex; }
.chapter-nav-pane { width: 260px; }
.chapter-content-textarea { padding: 1.5rem; }
.ai-tool-layout { grid-template-columns: 1fr; }
.diff-viewer-grid { grid-template-columns: 1fr; }
.ledger-hero-card { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
.ledger-hero-actions { width: 100%; }
}

@media (max-width: 768px) {
.chapter-workspace-layout { flex-direction: column; height: auto; min-height: 100vh; }
.chapter-nav-pane { width: 100%; height: 320px; }
.chapter-editor-pane { min-height: 80vh; }
.chapter-content-textarea { padding: 1.25rem 1rem; }
}

/* ... existing code ... */
.ai-editor-preview-content {
background: #ffffff;
padding: 1.25rem;
border-radius: var(--radius-md);
border: 1px dashed var(--border-color);
min-height: 250px;
}

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

PHASE 5 ADDITIONS: CREDIT & LEDGER SYSTEM

========================================== */
.ledger-hero-card {
background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
border-radius: var(--radius-xl);
padding: 2.25rem;
color: #ffffff;
display: flex;
justify-content: space-between;
align-items: center;
gap: 2rem;
margin-bottom: 2rem;
box-shadow: var(--shadow-lg);
}

.ledger-hero-left {
flex: 1;
}

.ledger-hero-subtitle {
display: block;
font-size: 0.85rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.08em;
color: #38bdf8;
margin-bottom: 0.5rem;
}

.ledger-hero-balance {
font-size: 3.25rem;
font-weight: 800;
line-height: 1.1;
letter-spacing: -0.03em;
color: #ffffff;
margin-bottom: 0.75rem;
}

.ledger-hero-unit {
font-size: 1.5rem;
font-weight: 600;
color: #94a3b8;
}

.ledger-hero-desc {
font-size: 0.9rem;
color: #cbd5e1;
max-width: 520px;
margin: 0;
line-height: 1.5;
}

.ledger-hero-actions {
display: flex;
flex-direction: column;
gap: 0.75rem;
min-width: 220px;
}

.voucher-box {
background: #f0fdf4;
border: 1px solid #bbf7d0;
border-radius: var(--radius-lg);
padding: 1.25rem 1.5rem;
margin-bottom: 2rem;
animation: modalFadeIn 0.2s ease-out;
}

.ledger-feature-item {
background: var(--bg-subtle);
border: 1px solid var(--border-color);
border-radius: var(--radius-md);
padding: 1rem;
display: flex;
flex-direction: column;
gap: 0.25rem;
}

.ledger-feature-item .feature-name {
font-size: 0.8rem;
font-weight: 600;
color: var(--text-muted);
}

.ledger-feature-item .feature-cost {
font-size: 1.25rem;
font-weight: 800;
color: var(--text-main);
font-family: var(--font-mono);
}

.ledger-filter-bar {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.75rem 1.4rem;
background: var(--bg-subtle);
border-bottom: 1px solid var(--border-color);
overflow-x: auto;
}

.ledger-filter-pill {
padding: 0.4rem 0.85rem;
font-size: 0.8rem;
font-weight: 600;
border-radius: var(--radius-full);
color: var(--text-muted);
background: #ffffff;
border: 1px solid var(--border-color);
white-space: nowrap;
transition: all 0.15s ease;
}

.ledger-filter-pill:hover {
border-color: var(--primary-500);
color: var(--primary-600);
}

.ledger-filter-pill.active {
background: var(--primary-600);
border-color: var(--primary-600);
color: #ffffff;
}

/* Badge variants for transaction ledger */
.badge-usage {
background: #fee2e2;
color: #991b1b;
border: 1px solid #fecaca;
}

.badge-bonus {
background: #dcfce7;
color: #166534;
border: 1px solid #bbf7d0;
}

.badge-purchase {
background: #e0f2fe;
color: #0369a1;
border: 1px solid #bae6fd;
}

.badge-refund {
background: #f3e8ff;
color: #6b21a8;
border: 1px solid #e9d5ff;
}

.amount-positive {
color: #15803d;
}

.amount-negative {
color: #b91c1c;
}

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

PHASE 6 ADDITIONS: BILLING & PAYMENT

========================================== */
.pricing-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
gap: 1.5rem;
margin-bottom: 2.5rem;
}

.pricing-card {
background: var(--bg-surface);
border: 1px solid var(--border-color);
border-radius: var(--radius-xl);
padding: 2.25rem 1.75rem;
display: flex;
flex-direction: column;
position: relative;
transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
box-shadow: var(--shadow-xs);
}

.pricing-card:hover {
transform: translateY(-4px);
box-shadow: var(--shadow-lg);
border-color: var(--primary-400);
}

.pricing-card.popular {
border: 2px solid var(--primary-500);
background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%);
box-shadow: 0 10px 25px -5px rgba(2, 132, 199, 0.15);
}

.pricing-badge-popular {
position: absolute;
top: -13px;
left: 50%;
transform: translateX(-50%);
background: linear-gradient(135deg, var(--primary-600), #0369a1);
color: #ffffff;
font-size: 0.725rem;
font-weight: 800;
text-transform: uppercase;
letter-spacing: 0.08em;
padding: 0.35rem 1rem;
border-radius: var(--radius-full);
box-shadow: 0 3px 8px rgba(2, 132, 199, 0.3);
}

.pricing-card h4 {
font-size: 1.35rem;
margin-bottom: 0.4rem;
color: var(--text-main);
}

.pricing-card p {
font-size: 0.875rem;
color: var(--text-muted);
min-height: 42px;
margin-bottom: 1.25rem;
line-height: 1.5;
}

.pricing-price {
font-size: 2.25rem;
font-weight: 800;
color: var(--text-main);
line-height: 1;
margin-bottom: 1.5rem;
padding-bottom: 1.5rem;
border-bottom: 1px solid var(--border-color);
font-family: var(--font-sans);
}

.pricing-price span {
font-size: 0.85rem;
font-weight: 600;
color: var(--text-muted);
}

.pricing-features {
list-style: none;
margin-bottom: 2rem;
flex-grow: 1;
display: flex;
flex-direction: column;
gap: 0.75rem;
}

.pricing-features li {
font-size: 0.875rem;
color: var(--text-main);
display: flex;
align-items: flex-start;
gap: 0.65rem;
line-height: 1.45;
}

.pricing-features li::before {
content: "✓";
color: var(--accent-emerald);
font-weight: 800;
font-size: 0.95rem;
}

/* Payment Status Badges */
.badge-paid {
background: #dcfce7;
color: #15803d;
border: 1px solid #bbf7d0;
}

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

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

.badge-expired {
background: #f1f5f9;
color: #64748b;
border: 1px solid #e2e8f0;
}

/* Sandbox Payment Simulator Modal Box */
.sandbox-card {
background: #fffbeb;
border: 1px solid #fef3c7;
border-radius: var(--radius-lg);
padding: 1.25rem 1.5rem;
margin-bottom: 1.5rem;
}

.code-display-block {
background: #0f172a;
color: #38bdf8;
padding: 1rem;
border-radius: var(--radius-md);
font-family: var(--font-mono);
font-size: 0.8rem;
line-height: 1.6;
overflow-x: auto;
margin: 0.75rem 0;
}

/* Responsive adjustments */
@media (max-width: 992px) {
.dashboard-sidebar { transform: translateX(-100%); }
.dashboard-sidebar.show { transform: translateX(0); }
.sidebar-overlay.show { display: block; }
.dashboard-main { margin-left: 0; }
.mobile-menu-toggle { display: flex; }
.chapter-nav-pane { width: 260px; }
.chapter-content-textarea { padding: 1.5rem; }
.ai-tool-layout { grid-template-columns: 1fr; }
.diff-viewer-grid { grid-template-columns: 1fr; }
.ledger-hero-card { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
.ledger-hero-actions { width: 100%; }
.pricing-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
.chapter-workspace-layout { flex-direction: column; height: auto; min-height: 100vh; }
.chapter-nav-pane { width: 100%; height: 320px; }
.chapter-editor-pane { min-height: 80vh; }
.chapter-content-textarea { padding: 1.25rem 1rem; }
}

/* ... existing code ... */
@media (max-width: 768px) {
.chapter-workspace-layout { flex-direction: column; height: auto; min-height: 100vh; }
.chapter-nav-pane { width: 100%; height: 320px; }
.chapter-editor-pane { min-height: 80vh; }
.chapter-content-textarea { padding: 1.25rem 1rem; }
}

/* STREAMING_CHUNK:Styling Phase 7 Additional Research Tools components... /
/ ==========================================

PHASE 7 ADDITIONS: ADDITIONAL RESEARCH TOOLS

========================================== */
.tool-hero-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
flex-wrap: wrap;
gap: 1rem;
margin-bottom: 2rem;
}

.tool-badge-pill {
display: inline-flex;
align-items: center;
gap: 0.5rem;
padding: 0.45rem 1rem;
background: var(--bg-surface);
border: 1px solid var(--border-color);
border-radius: var(--radius-full);
font-size: 0.85rem;
font-weight: 700;
color: var(--primary-700);
box-shadow: var(--shadow-xs);
}

/* STREAMING_CHUNK:Styling article search result cards and citation boxes... */
.article-item-card {
border: 1px solid var(--border-color);
border-radius: var(--radius-lg);
padding: 1.35rem;
background: var(--bg-surface);
margin-bottom: 1.25rem;
transition: all 0.2s ease;
}

.article-item-card:hover {
border-color: var(--primary-400);
box-shadow: var(--shadow-sm);
}

.article-journal-badge {
font-size: 0.75rem;
font-weight: 700;
color: #0369a1;
background: #e0f2fe;
padding: 0.2rem 0.6rem;
border-radius: var(--radius-sm);
}

.article-doi-link {
font-family: var(--font-mono);
font-size: 0.775rem;
color: var(--primary-600);
text-decoration: none;
}

/* STREAMING_CHUNK:Styling statistical interpretation matrices... */
.stat-metric-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
gap: 1rem;
margin-bottom: 1.5rem;
}

.stat-metric-box {
background: var(--bg-subtle);
border: 1px solid var(--border-color);
border-radius: var(--radius-md);
padding: 1rem 1.15rem;
display: flex;
flex-direction: column;
}

.stat-metric-box .metric-label {
font-size: 0.775rem;
font-weight: 600;
color: var(--text-muted);
text-transform: uppercase;
margin-bottom: 0.35rem;
}

.stat-metric-box .metric-val {
font-size: 1.35rem;
font-weight: 800;
font-family: var(--font-mono);
color: var(--text-main);
}

/* STREAMING_CHUNK:Styling supervisor revision checklist items... */
.checklist-item-row {
display: flex;
align-items: flex-start;
gap: 0.85rem;
padding: 1rem;
background: var(--bg-surface);
border: 1px solid var(--border-color);
border-radius: var(--radius-md);
margin-bottom: 0.75rem;
}

.checklist-badge {
font-size: 0.725rem;
font-weight: 700;
text-transform: uppercase;
padding: 0.25rem 0.5rem;
border-radius: var(--radius-sm);
white-space: nowrap;
}

/* STREAMING_CHUNK:Styling thesis defense examination dialogues... */
.examiner-quote-box {
background: #f8fafc;
border-left: 4px solid var(--primary-600);
padding: 1.25rem 1.5rem;
border-radius: 0 var(--radius-md) var(--radius-md) 0;
margin-bottom: 1.5rem;
}

.probing-point-list {
list-style: none;
padding-left: 0;
margin: 0.75rem 0 0 0;
display: flex;
flex-direction: column;
gap: 0.4rem;
}

.probing-point-list li {
font-size: 0.85rem;
color: var(--text-muted);
display: flex;
align-items: center;
gap: 0.5rem;
}

.probing-point-list li::before {
content: "•";
color: var(--primary-500);
font-weight: bold;
}

/* STREAMING_CHUNK:Styling presentation slide outline cards... */
.slide-deck-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
gap: 1.5rem;
margin-top: 1.5rem;
}

.slide-deck-card {
background: var(--bg-surface);
border: 1px solid var(--border-color);
border-radius: var(--radius-lg);
display: flex;
flex-direction: column;
overflow: hidden;
box-shadow: var(--shadow-xs);
transition: transform 0.2s ease, border-color 0.2s ease;
}

.slide-deck-card:hover {
transform: translateY(-2px);
border-color: var(--primary-400);
box-shadow: var(--shadow-sm);
}

.slide-deck-header {
background: var(--bg-subtle);
padding: 0.85rem 1.25rem;
border-bottom: 1px solid var(--border-color);
display: flex;
justify-content: space-between;
align-items: center;
}

.slide-deck-body {
padding: 1.25rem;
flex: 1;
}

.slide-bullet-list {
padding-left: 1.25rem;
margin-bottom: 1rem;
font-size: 0.875rem;
line-height: 1.6;
}

.slide-notes-box {
background: #fffbeb;
border-radius: var(--radius-sm);
padding: 0.75rem 1rem;
border: 1px solid #fef3c7;
font-size: 0.8rem;
color: #92400e;
line-height: 1.5;
}

/* ... existing code ... */
.slide-notes-box {
background: #fffbeb;
border-radius: var(--radius-sm);
padding: 0.75rem 1rem;
border: 1px solid #fef3c7;
font-size: 0.8rem;
color: #92400e;
line-height: 1.5;
}

/* STREAMING_CHUNK:Styling Phase 8 Administration & Management Console components... /
/ ==========================================

PHASE 8 ADDITIONS: ADMIN, SUPERVISOR & OWNER CONSOLE

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

.kpi-stat-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 1.25rem;
margin-bottom: 2rem;
}

.kpi-card {
background: var(--bg-surface);
border: 1px solid var(--border-color);
border-radius: var(--radius-lg);
padding: 1.5rem;
display: flex;
flex-direction: column;
position: relative;
overflow: hidden;
box-shadow: var(--shadow-xs);
transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kpi-card:hover {
transform: translateY(-2px);
box-shadow: var(--shadow-md);
}

.kpi-card::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 4px;
height: 100%;
background: var(--primary-600);
}

.kpi-card.emerald::before { background: #10b981; }
.kpi-card.purple::before { background: #8b5cf6; }
.kpi-card.amber::before { background: #f59e0b; }

.kpi-label {
font-size: 0.8rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--text-muted);
margin-bottom: 0.5rem;
}

.kpi-value {
font-size: 2rem;
font-weight: 800;
font-family: var(--font-mono);
color: var(--text-main);
line-height: 1.1;
margin-bottom: 0.5rem;
}

.kpi-footer {
font-size: 0.775rem;
color: var(--text-muted);
display: flex;
align-items: center;
gap: 0.4rem;
}

/* STREAMING_CHUNK:Styling role badges and administrative tabs... */
.badge-owner {
background: #fdf4ff;
color: #a21caf;
border: 1px solid #f0abfc;
}

.badge-admin {
background: #eff6ff;
color: #1d4ed8;
border: 1px solid #bfdbfe;
}

.badge-supervisor {
background: #f0fdf4;
color: #15803d;
border: 1px solid #bbf7d0;
}

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

/* ==========================================
   EXCLUSIVE UNLIMITED CREDITS & PRIVILEGE BADGES
   ========================================== */
.badge-unlimited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.22rem 0.65rem;
  background: linear-gradient(135deg, #0284c7 0%, #6366f1 50%, #9333ea 100%);
  background-size: 200% 200%;
  animation: unlimitedShift 5s ease infinite alternate;
  color: #ffffff !important;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

.badge-unlimited::before {
  content: '∞';
  font-size: 1.05em;
  font-weight: 900;
  line-height: 1;
}

@keyframes unlimitedShift {
  0% {
    background-position: 0% 50%;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3);
  }
  50% {
    background-position: 100% 50%;
    box-shadow: 0 2px 12px rgba(147, 51, 234, 0.35);
  }
  100% {
    background-position: 0% 50%;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
  }
}

/* Header & Topbar Credit Pill (Unlimited Variant) */
.credit-pill.unlimited {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.05rem;
  background: linear-gradient(135deg, #eff6ff 0%, #e0e7ff 50%, #fae8ff 100%) !important;
  border: 1.5px solid #818cf8 !important;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.18);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  transition: all 0.25s ease;
}

.credit-pill.unlimited:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.28);
  border-color: #6366f1 !important;
}

.credit-pill.unlimited::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 35%,
    rgba(255, 255, 255, 0.8) 50%,
    transparent 65%
  );
  transform: rotate(25deg);
  animation: shimmerLight 4s infinite;
  pointer-events: none;
}

@keyframes shimmerLight {
  0% { transform: translateX(-100%) rotate(25deg); }
  35% { transform: translateX(100%) rotate(25deg); }
  100% { transform: translateX(100%) rotate(25deg); }
}

.credit-pill.unlimited svg {
  color: #6366f1 !important;
}

.credit-pill.unlimited .unlimited-text {
  font-weight: 800;
  font-size: 0.825rem;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, #0284c7, #4f46e5, #9333ea);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* Hero Badge for Kredit & Dashboard pages */
.badge-unlimited-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #0284c7 0%, #4f46e5 50%, #9333ea 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 18px rgba(99, 102, 241, 0.15);
}

.infinity-symbol {
  font-size: 1.2em;
  font-weight: 900;
  line-height: 1;
}

/* ==========================================
   DEMO ROLE SELECTOR & ACCOUNTS CARD (LOGIN PAGE)
   ========================================== */
.demo-accounts-box {
  margin-top: 1.75rem;
  padding: 1.2rem;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-lg);
  text-align: left;
}

.demo-accounts-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.demo-accounts-title {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.demo-accounts-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.demo-role-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

.demo-role-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 0.75rem 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  position: relative;
}

.demo-role-card:hover {
  border-color: #6366f1;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.12);
}

.demo-role-card.active {
  border-color: #4f46e5;
  background: #f5f3ff;
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}

.demo-role-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.demo-role-name {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-main);
}

.demo-role-badge-unlimited {
  font-size: 0.675rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #0284c7, #6366f1, #9333ea);
  color: #ffffff;
  letter-spacing: 0.03em;
}

.demo-role-badge-credits {
  font-size: 0.675rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
}

.demo-role-email {
  font-size: 0.725rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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


.admin-nav-tabs {
display: flex;
gap: 0.5rem;
border-bottom: 1px solid var(--border-color);
margin-bottom: 1.5rem;
overflow-x: auto;
}

.admin-nav-tab {
padding: 0.65rem 1.25rem;
font-size: 0.875rem;
font-weight: 600;
color: var(--text-muted);
border-bottom: 2px solid transparent;
text-decoration: none;
transition: all 0.2s ease;
white-space: nowrap;
}

.admin-nav-tab:hover {
color: var(--primary-600);
}

.admin-nav-tab.active {
color: var(--primary-600);
border-bottom-color: var(--primary-600);
}

/* STREAMING_CHUNK:Styling supervisor feedback timeline and inspection cards... */
.feedback-timeline {
display: flex;
flex-direction: column;
gap: 1rem;
margin-top: 1rem;
}

.feedback-bubble {
background: var(--bg-subtle);
border: 1px solid var(--border-color);
border-radius: var(--radius-md);
padding: 1.15rem;
position: relative;
}

.feedback-bubble-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 0.65rem;
}

.feedback-author {
font-size: 0.85rem;
font-weight: 700;
color: var(--text-main);
}

.feedback-time {
font-size: 0.75rem;
color: var(--text-muted);
}

.feedback-body {
font-size: 0.885rem;
color: var(--text-main);
line-height: 1.6;
white-space: pre-wrap;
}

/* STREAMING_CHUNK:Styling audit trail log viewer and JSON inspectors... */
.audit-json-box {
background: #0f172a;
color: #38bdf8;
padding: 0.75rem 1rem;
border-radius: var(--radius-sm);
font-family: var(--font-mono);
font-size: 0.75rem;
line-height: 1.5;
overflow-x: auto;
}

/* ==========================================================================
   BRAINSTORMING 3-STEP FLOW & CHIP CARDS (GAMBAR 1 & 2)
   ========================================================================== */
.step-header-box {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.step-circle-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-600, #2563eb);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.step-header-text h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
}

.step-header-text p {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.chip-grid {
  display: grid;
  gap: 0.65rem;
}

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

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

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

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

.chip-card-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md, 8px);
  border: 1px solid var(--border-color, #334155);
  background: var(--bg-subtle, rgba(255, 255, 255, 0.03));
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-main);
}

.chip-card-item:hover {
  border-color: var(--primary-400, #60a5fa);
  background: var(--bg-card-hover, rgba(37, 99, 235, 0.06));
}

.chip-card-item.active,
.chip-card-item:has(input:checked) {
  border-color: var(--primary-500, #3b82f6);
  background: rgba(37, 99, 235, 0.12);
  color: var(--primary-600, #2563eb);
  font-weight: 600;
  box-shadow: 0 0 0 1px var(--primary-500, #3b82f6);
}

.chip-card-item input[type="radio"],
.chip-card-item input[type="checkbox"] {
  accent-color: var(--primary-600, #2563eb);
  width: 16px;
  height: 16px;
  margin: 0;
  cursor: pointer;
}

/* ==========================================================================
   OLAH DATA 6-CARD GRID & WORKBENCHES (GAMBAR 5)
   ========================================================================== */
.olah-data-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

@media (max-width: 1024px) {
  .olah-data-hub-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.olah-card {
  background: var(--bg-card, #1e293b);
  border: 1px solid var(--border-color, #334155);
  border-radius: var(--radius-lg, 12px);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  text-decoration: none;
  color: inherit;
}

.olah-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-500, #3b82f6);
  box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.3), 0 0 0 1px var(--primary-500, #3b82f6);
}

.olah-card.active {
  border-color: var(--primary-500, #3b82f6);
  background: rgba(37, 99, 235, 0.05);
  box-shadow: 0 0 0 2px var(--primary-500, #3b82f6);
}

.olah-card-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.olah-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.olah-card-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.olah-card-desc {
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 1rem;
  flex-grow: 1;
}

.olah-card-cost {
  font-size: 0.785rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border-color);
}

/* SPSS & SmartPLS Tables */
.spss-table-container {
  overflow-x: auto;
  border-radius: var(--radius-md, 8px);
  border: 1px solid var(--border-color);
  margin-bottom: 1.25rem;
}

.spss-math-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.825rem;
  text-align: left;
}

.spss-math-table th {
  background: var(--bg-subtle);
  padding: 0.65rem 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  border-bottom: 2px solid var(--border-color);
  white-space: nowrap;
}

.spss-math-table td {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
  font-family: var(--font-mono);
}

.spss-math-table tr:hover td {
  background: rgba(37, 99, 235, 0.04);
}

/* ==========================================================================
   SUPER BIG UPGRADE: OLAH DATA WORKBENCHES (GBR 5 - 11)
   ========================================================================== */
.olah-nav-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #3b82f6;
  text-decoration: none;
  margin-bottom: 1.25rem;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  background: rgba(59, 130, 246, 0.08);
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid rgba(59, 130, 246, 0.15);
}

.olah-nav-back:hover {
  background: rgba(59, 130, 246, 0.18);
  color: #60a5fa;
  transform: translateX(-2px);
}

.olah-subtabs {
  display: inline-flex;
  background: rgba(15, 23, 42, 0.6);
  padding: 0.3rem;
  border-radius: 8px;
  border: 1px solid var(--border-color, #334155);
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}

.olah-subtab-btn {
  padding: 0.45rem 0.95rem;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-muted, #94a3b8);
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.olah-subtab-btn:hover {
  color: var(--text-main, #f8fafc);
  background: rgba(255, 255, 255, 0.05);
}

.olah-subtab-btn.active {
  background: rgba(13, 148, 136, 0.15);
  color: #2dd4bf;
  border: 1px solid rgba(13, 148, 136, 0.4);
}

.olah-amber-box {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 8px;
  padding: 0.9rem 1.15rem;
  font-size: 0.825rem;
  line-height: 1.6;
  color: #fbbf24;
  margin-bottom: 1.25rem;
}

.olah-amber-box a {
  color: #60a5fa;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  margin-left: 0.35rem;
}

.olah-amber-box a:hover {
  color: #93c5fd;
}

.olah-slate-box {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid var(--border-color, #334155);
  border-radius: 8px;
  padding: 0.9rem 1.15rem;
  font-size: 0.825rem;
  line-height: 1.6;
  color: var(--text-muted, #cbd5e1);
  margin-bottom: 1.25rem;
}

.olah-file-picker-wrap {
  border: 1px solid var(--border-color, #334155);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.5);
  padding: 0.5rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.olah-file-picker-wrap input[type="file"] {
  display: none;
}

.olah-file-picker-btn {
  background: #1e293b;
  border: 1px solid #475569;
  color: #f8fafc;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.olah-file-picker-btn:hover {
  background: #334155;
  border-color: #64748b;
}

.olah-file-picker-name {
  font-size: 0.825rem;
  color: var(--text-muted, #94a3b8);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-emerald {
  background: #0d9488 !important;
  color: #ffffff !important;
  border: none !important;
  font-weight: 700;
  padding: 0.7rem 1.75rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-emerald:hover {
  background: #0f766e !important;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
  transform: translateY(-1px);
}

.btn-emerald:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.dropzone-box {
  border: 2px dashed var(--border-color, #334155);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.3);
  padding: 2rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  margin-bottom: 0.5rem;
}

.dropzone-box:hover {
  border-color: #0d9488;
  background: rgba(13, 148, 136, 0.05);
}

.dropzone-box svg {
  color: #0d9488;
  margin-bottom: 0.5rem;
}

.informant-item-box {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--border-color, #334155);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  position: relative;
}

.informant-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.informant-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #2dd4bf;
}

/* ==========================================================================
   SIMULASI SIDANG: VOICE AI & EXAMINER PERSONAS (GBR 14 - 16)
   ========================================================================== */
.examiner-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

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

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

.examiner-card {
  background: var(--bg-card, #1e293b);
  border: 1.5px solid var(--border-color, #334155);
  border-radius: 10px;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.examiner-card:hover {
  border-color: #3b82f6;
  transform: translateY(-2px);
  background: rgba(59, 130, 246, 0.04);
}

.examiner-card.active {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.4);
}

.examiner-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #fff;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.65rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.examiner-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main, #f8fafc);
  margin-bottom: 0.2rem;
  line-height: 1.3;
}

.examiner-role {
  font-size: 0.725rem;
  color: #93c5fd;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.examiner-specialty {
  font-size: 0.75rem;
  color: var(--text-muted, #94a3b8);
  line-height: 1.35;
}

/* Real-time Voice Controls */
.voice-toolbar {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-color, #334155);
  border-radius: 10px;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.voice-mic-btn {
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 50px;
  padding: 0.55rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}

.voice-mic-btn.recording {
  background: #dc2626;
  animation: pulse-red 1.5s infinite;
}

@keyframes pulse-red {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.voice-speaker-btn {
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 50px;
  padding: 0.55rem 1.15rem;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.voice-speaker-btn:hover {
  background: #2563eb;
}

.voice-wave-container {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 18px;
  margin: 0 0.5rem;
}

.voice-wave-bar {
  width: 3px;
  height: 100%;
  background: #ef4444;
  border-radius: 2px;
  animation: waveBar 0.8s ease-in-out infinite alternate;
}

.voice-wave-bar:nth-child(2) { animation-delay: 0.15s; }
.voice-wave-bar:nth-child(3) { animation-delay: 0.3s; }
.voice-wave-bar:nth-child(4) { animation-delay: 0.45s; }
.voice-wave-bar:nth-child(5) { animation-delay: 0.6s; }

@keyframes waveBar {
  0% { height: 20%; }
  100% { height: 100%; }
}

/* ==========================================================================
   GENERATE PPT: FULLSCREEN SLIDESHOW & SLIDE DECK (GBR 12 - 13)
   ========================================================================== */
.ppt-deck-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 900px) {
  .ppt-deck-container {
    grid-template-columns: 1fr;
  }
}

.ppt-card {
  background: var(--bg-card, #1e293b);
  border: 1px solid var(--border-color, #334155);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
}

.ppt-card:hover {
  transform: translateY(-2px);
  border-color: #3b82f6;
}

.ppt-card-topbar {
  background: rgba(15, 23, 42, 0.7);
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color, #334155);
}

.ppt-card-body {
  padding: 1.25rem;
  flex-grow: 1;
}

.ppt-visual-diagram-box {
  background: rgba(30, 41, 59, 0.5);
  border: 1px dashed rgba(59, 130, 246, 0.35);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  margin-top: 0.85rem;
  font-size: 0.785rem;
  color: #93c5fd;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ppt-probing-box {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  margin-top: 0.75rem;
  font-size: 0.785rem;
  color: #fca5a5;
  line-height: 1.45;
}

.ppt-speaker-notes-box {
  background: rgba(245, 158, 11, 0.08);
  border-top: 1px solid rgba(245, 158, 11, 0.2);
  padding: 1rem 1.25rem;
  font-size: 0.825rem;
  color: #fde68a;
  line-height: 1.6;
}

/* Fullscreen Presentation Modal */
.ppt-fullscreen-modal {
  position: fixed;
  inset: 0;
  background: #090d16;
  z-index: 99999;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  color: #f8fafc;
  padding: 2rem 4rem;
}

.ppt-fullscreen-modal.active {
  display: flex;
}

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

.ppt-fs-slide-content {
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
}

.ppt-fs-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ==========================================================================
   MODUL PENGATURAN & USER PROFILE (GLASSMORPHISM + NEUMORPHISM + HOLOGRAPHIC)
   STANDAR CSS3: BACKGROUND-CLIP STANDAR RESMI & OPTIMISASI PERFORMA TINGGI
   ========================================================================== */

/* Keyframe Animations */
@keyframes holographicShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes holographicPulseGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.35), 0 0 45px rgba(168, 85, 247, 0.2);
  }
  50% {
    box-shadow: 0 0 32px rgba(236, 72, 153, 0.45), 0 0 60px rgba(56, 189, 248, 0.3);
  }
}

@keyframes holographicBorderPulse {
  0%, 100% {
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
  50% {
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }
}

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

/* Settings Outer Wrapper & Canvas */
.settings-container {
  max-width: 920px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 1rem 6rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Topbar Typography */
.topbar-page-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  color: #f8fafc;
}

/* Glassmorphic Hero Banner */
.settings-hero-banner {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.85) 100%);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: 2rem 2.25rem;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.settings-hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #38bdf8, #818cf8, #ec4899, #38bdf8);
  background-size: 300% 100%;
  animation: holographicShift 6s linear infinite;
}

.holographic-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.95rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(168, 85, 247, 0.2));
  border: 1px solid rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.25);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #38bdf8;
  margin-bottom: 0.75rem;
}

.holographic-title {
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, #ffffff 0%, #38bdf8 30%, #a78bfa 65%, #f472b6 100%);
  background-size: 250% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: holographicShift 7s ease infinite;
  margin-bottom: 0.4rem;
  letter-spacing: -0.025em;
}

.settings-hero-desc {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* Glassmorphism Core Cards */
.settings-card {
  background: linear-gradient(135deg, rgba(17, 29, 51, 0.88) 0%, rgba(15, 23, 42, 0.84) 100%);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: 0 20px 45px -12px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.settings-card:hover {
  border-color: rgba(56, 189, 248, 0.3);
  box-shadow: 0 25px 55px -12px rgba(0, 0, 0, 0.55), 0 0 25px rgba(56, 189, 248, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.settings-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1.5px;
  background: linear-gradient(90deg, transparent 0%, rgba(56, 189, 248, 0.6) 50%, transparent 100%);
}

/* Card Heading with Holographic Icon Capsule */
.card-heading {
  font-size: 1.25rem;
  font-weight: 800;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  letter-spacing: -0.01em;
}

.heading-icon-capsule {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(139, 92, 246, 0.2));
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  flex-shrink: 0;
}

.heading-icon-capsule.danger {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.35);
  color: #f87171;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.25);
}

/* Avatar Upload Row with Holographic Shimmer Ring */
.avatar-upload-row {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  padding: 1.15rem 1.35rem;
  background: rgba(11, 19, 41, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.25);
}

.avatar-holographic-wrapper {
  position: relative;
  width: 88px;
  height: 88px;
  flex-shrink: 0;
  border-radius: 50%;
  padding: 3.5px;
  background: linear-gradient(135deg, #06b6d4, #3b82f6, #8b5cf6, #ec4899, #06b6d4);
  background-size: 300% 300%;
  animation: holographicShift 6s linear infinite, holographicPulseGlow 4s ease-in-out infinite;
}

.avatar-large-circle {
  width: 100%;
  height: 100%;
  background: #0f172a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: #38bdf8;
  overflow: hidden;
}

.avatar-large-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.avatar-sidebar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.avatar-info-col {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.avatar-label-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f8fafc;
}

.avatar-upload-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1.15rem;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(99, 102, 241, 0.15));
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 9999px;
  color: #38bdf8;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: all 0.25s ease;
  align-self: flex-start;
  text-decoration: none;
}

.avatar-upload-trigger:hover {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.3), rgba(99, 102, 241, 0.3));
  border-color: #38bdf8;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
  transform: translateY(-2px);
  color: #ffffff;
}

.avatar-hidden-file-input {
  display: none !important;
}

/* Neumorphic Form Controls */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group-spaced {
  margin-top: 1rem;
}

.form-group-spaced-lg {
  margin-top: 1.25rem;
}

.form-group-mb {
  margin-top: 1rem;
  margin-bottom: 1.75rem;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.locked-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.form-input {
  width: 100%;
  background: rgba(8, 14, 28, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 0.9rem 1.25rem;
  font-size: 0.95rem;
  color: #f8fafc;
  outline: none;
  box-shadow: inset 2px 3px 6px rgba(0, 0, 0, 0.5), inset -1px -1px 3px rgba(255, 255, 255, 0.03);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
}

.form-input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.4), inset 1px 2px 4px rgba(0, 0, 0, 0.3);
}

.form-input:disabled,
.form-input[readonly] {
  background: rgba(8, 14, 28, 0.45);
  border-color: rgba(255, 255, 255, 0.05);
  opacity: 0.75;
  cursor: not-allowed;
  box-shadow: inset 1px 2px 5px rgba(0, 0, 0, 0.6);
  color: #94a3b8;
}

.form-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.form-input-wrapper .form-input {
  padding-right: 3.25rem;
}

.input-action-btn {
  position: absolute;
  right: 0.9rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.input-action-btn:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.3);
}

.form-hint {
  font-size: 0.825rem;
  color: #64748b;
  margin-top: 0.2rem;
  line-height: 1.6;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-select {
  width: 100%;
  background-color: rgba(8, 14, 28, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 0.9rem 1.25rem;
  font-size: 0.95rem;
  color: #f8fafc;
  outline: none;
  cursor: pointer;
  appearance: none;
  box-shadow: inset 2px 3px 6px rgba(0, 0, 0, 0.5), inset -1px -1px 3px rgba(255, 255, 255, 0.03);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2338bdf8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2.2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.25rem center;
  background-size: 18px;
  transition: all 0.25s ease;
  font-family: inherit;
}

.form-select:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
}

.form-select option {
  background-color: #0b1329;
  color: #f8fafc;
}

/* Holographic Shimmer Action Button */
.btn-holographic-submit {
  align-self: flex-start;
  background: linear-gradient(135deg, #0284c7 0%, #6366f1 40%, #a855f7 75%, #ec4899 100%);
  background-size: 250% 250%;
  animation: holographicShift 6s ease infinite;
  color: #ffffff;
  border: none;
  border-radius: 14px;
  padding: 0.95rem 1.85rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.015em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  box-shadow: 0 10px 28px -4px rgba(99, 102, 241, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-holographic-submit:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 36px -4px rgba(168, 85, 247, 0.65), 0 0 20px rgba(56, 189, 248, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

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

/* Glassmorphic Neumorphic Generate Options */
.generate-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.generate-option-box {
  background: rgba(11, 19, 41, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.generate-option-box:hover {
  border-color: rgba(56, 189, 248, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35), 0 0 20px rgba(56, 189, 248, 0.2);
}

.generate-option-box.active {
  border: 2px solid #38bdf8;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.22) 0%, rgba(99, 102, 241, 0.22) 100%);
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.generate-option-box .option-status-pill {
  position: absolute;
  top: 1.15rem;
  right: 1.15rem;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(56, 189, 248, 0.2);
  border: 1px solid #38bdf8;
  color: #38bdf8;
  display: none;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

.generate-option-box.active .option-status-pill {
  display: inline-block;
}

.option-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #f8fafc;
}

.generate-option-box.active .option-title {
  background: linear-gradient(90deg, #38bdf8, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.option-desc {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.55;
}

/* Glass Outline Button */
.btn-glass-outline {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f8fafc;
  padding: 0.8rem 1.45rem;
  border-radius: 14px;
  font-size: 0.925rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.25s ease;
}

.btn-glass-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

/* Actions Row Wrapper */
.settings-actions-wrap {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.settings-inline-form {
  margin: 0;
}

/* Danger Zone (Ruby Glassmorphism) */
.danger-account-box {
  background: radial-gradient(circle at top left, rgba(239, 68, 68, 0.18), rgba(15, 23, 42, 0.9));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 20px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  box-shadow: 0 14px 36px rgba(239, 68, 68, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.danger-account-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: linear-gradient(90deg, #ef4444, #f43f5e, #dc2626);
}

.danger-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #f87171;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.danger-desc {
  font-size: 0.885rem;
  color: #cbd5e1;
  line-height: 1.65;
}

.btn-holographic-danger {
  align-self: flex-start;
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  color: #ffffff;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 14px;
  font-size: 0.925rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 0.35rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.25s ease;
}

.btn-holographic-danger:hover {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  box-shadow: 0 12px 30px rgba(239, 68, 68, 0.6);
  transform: translateY(-2px);
}

.btn-holographic-danger.no-mt {
  margin-top: 0;
}

/* Modal Backdrop & Dialog (Glassmorphism) */
.custom-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 14, 28, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.custom-modal-backdrop.show {
  display: flex;
}

.custom-modal-dialog {
  background: linear-gradient(135deg, rgba(17, 29, 51, 0.98), rgba(15, 23, 42, 0.95));
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  max-width: 520px;
  width: 100%;
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.85), 0 0 40px rgba(56, 189, 248, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  animation: modalZoomIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.custom-modal-dialog::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #38bdf8, #ec4899);
}

.modal-header-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.modal-danger-icon-capsule {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(239, 68, 68, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ef4444;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.35);
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.modal-title {
  font-size: 1.25rem;
  color: #f8fafc;
  margin: 0;
  font-weight: 800;
}

.modal-subtitle {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-top: 0.25rem;
}

.modal-desc {
  font-size: 0.925rem;
  color: #cbd5e1;
  line-height: 1.65;
  margin: 0.5rem 0;
}

.modal-footer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.85rem;
  margin-top: 1rem;
}

.btn-help-close {
  padding: 0.6rem 1.3rem;
}

/* Floating Action Group */
.floating-action-group {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  z-index: 999;
}

.floating-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.floating-btn:hover {
  transform: scale(1.12) translateY(-3px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn-help-chat {
  background: linear-gradient(135deg, #0284c7, #6366f1);
  color: #ffffff;
}

.btn-wa-chat {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #ffffff;
}

/* Toast Alerts (Glassmorphism) */
.toast-alert {
  padding: 1.15rem 1.45rem;
  border-radius: 16px;
  font-size: 0.925rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
  font-weight: 500;
}

.toast-success {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid #10b981;
  color: #6ee7b7;
}

.toast-danger {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid #ef4444;
  color: #fca5a5;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .settings-container {
    padding: 1rem 0.5rem 5rem;
  }
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
  .generate-options-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .settings-hero-banner {
    padding: 1.5rem 1.25rem;
  }
  .holographic-title {
    font-size: 1.5rem;
  }
  .avatar-upload-row {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .avatar-info-col {
    align-items: center;
  }
  .avatar-upload-trigger {
    align-self: center;
  }
  .settings-card {
    padding: 1.5rem 1.25rem;
  }
  .modal-footer-actions {
    flex-direction: column;
  }
  .modal-footer-actions button {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   ACADEMIC MANUSCRIPT & MANTRA RISET GENERATOR SUITE
   ========================================================================== */

/* Academic Selection Grid (Degree, Methods, Stage) */
.academic-select-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
  gap: 0.65rem;
  margin-top: 0.35rem;
}

.academic-methods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.6rem;
  margin-top: 0.35rem;
}

.academic-radio-card {
  position: relative;
  display: block;
  cursor: pointer;
  user-select: none;
  margin: 0;
}

.academic-radio-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.academic-card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.85rem 0.65rem;
  border-radius: var(--radius-md, 10px);
  border: 1.5px solid var(--border-color, rgba(226, 232, 240, 0.8));
  background: var(--bg-surface, #ffffff);
  color: var(--text-main, #1e293b);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.academic-radio-card:hover .academic-card-content {
  border-color: var(--primary-400, #818cf8);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.08);
}

.academic-radio-card input[type="radio"]:checked + .academic-card-content {
  border-color: var(--primary-600, #4f46e5);
  background: rgba(79, 70, 229, 0.06);
  color: var(--primary-700, #4338ca);
  font-weight: 700;
  box-shadow: 0 0 0 1px var(--primary-600, #4f46e5), 0 4px 14px rgba(79, 70, 229, 0.15);
}

.academic-card-icon {
  font-size: 1.4rem;
  margin-bottom: 0.35rem;
  line-height: 1;
}

.academic-card-title {
  font-size: 0.825rem;
  font-weight: 600;
  line-height: 1.2;
}

.academic-card-sub {
  font-size: 0.7rem;
  color: var(--text-muted, #64748b);
  margin-top: 0.2rem;
}

.academic-radio-card input[type="radio"]:checked + .academic-card-content .academic-card-sub {
  color: var(--primary-600, #4f46e5);
}

/* Stage Selector (Proposal vs Skripsi Penuh) */
.stage-switch-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  background: var(--bg-subtle, #f8fafc);
  padding: 0.4rem;
  border-radius: var(--radius-lg, 12px);
  border: 1px solid var(--border-color, #e2e8f0);
}

.stage-radio-card {
  position: relative;
  display: block;
  cursor: pointer;
  margin: 0;
}

.stage-radio-card input[type="radio"] {
  position: absolute;
  opacity: 0;
}

.stage-card-content {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md, 8px);
  background: transparent;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.2s ease;
  color: var(--text-main, #1e293b);
}

.stage-radio-card input[type="radio"]:checked + .stage-card-content {
  background: var(--bg-surface, #ffffff);
  border-color: var(--primary-500, #6366f1);
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.12);
}

.stage-icon-badge {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(79, 70, 229, 0.1);
  color: var(--primary-600, #4f46e5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.stage-radio-card input[type="radio"]:checked + .stage-card-content .stage-icon-badge {
  background: var(--primary-600, #4f46e5);
  color: #ffffff;
}

/* Project Modal Multi-Step Tabs */
.academic-modal-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-color, #e2e8f0);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
}

.academic-modal-tab-btn {
  background: transparent;
  border: none;
  padding: 0.45rem 0.85rem;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-muted, #64748b);
  border-radius: var(--radius-md, 6px);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.15s ease;
}

.academic-modal-tab-btn:hover {
  color: var(--text-main, #0f172a);
  background: var(--bg-subtle, #f1f5f9);
}

.academic-modal-tab-btn.active {
  color: #ffffff;
  background: var(--primary-600, #4f46e5);
}

.academic-tab-section {
  display: none;
}

.academic-tab-section.active {
  display: block;
}

/* Chapter Sidebar Groups (Bagian Awal, Bagian Utama, Bagian Akhir) */
.chapter-group-header {
  padding: 0.65rem 0.85rem 0.35rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted, #64748b);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color, rgba(226, 232, 240, 0.6));
  margin-top: 0.5rem;
}

.chapter-group-header:first-of-type {
  border-top: none;
  margin-top: 0;
}

.chapter-group-badge {
  font-size: 0.625rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.08);
  color: var(--primary-600, #4f46e5);
  font-weight: 700;
}

/* AI Chapter Generator Button & Modal */
.btn-ai-generator {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #9333ea 100%);
  color: #ffffff !important;
  font-weight: 700;
  border: none;
  box-shadow: 0 3px 10px rgba(124, 58, 237, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-md, 8px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.btn-ai-generator:hover {
  background: linear-gradient(135deg, #4338ca 0%, #6d28d9 50%, #7e22ce 100%);
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.45);
  transform: translateY(-1px);
}

.btn-ai-generator:active {
  transform: translateY(0);
}

.ai-modal-header-gradient {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, rgba(147, 51, 234, 0.08) 100%);
  border-bottom: 1px solid var(--border-color, #e2e8f0);
}

.ai-gen-field-card {
  background: var(--bg-subtle, #f8fafc);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: var(--radius-md, 8px);
  padding: 0.85rem 1rem;
  margin-bottom: 0.85rem;
}

.ai-gen-field-card strong {
  display: block;
  font-size: 0.825rem;
  color: var(--text-main, #1e293b);
  margin-bottom: 0.25rem;
}

.ai-gen-field-card p {
  font-size: 0.775rem;
  color: var(--text-muted, #64748b);
  margin: 0;
}

.ai-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  .academic-select-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .academic-methods-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stage-switch-container {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   AI ASISTEN RISET (MANTRA RISET / COPILOT) - SUPER UPGRADE UI/UX
   ========================================================================== */
.asisten-view-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 65px);
  overflow: hidden;
  background: var(--bg-app, #f8fafc);
  position: relative;
  transition: background 0.25s ease;
}

/* TOPBAR */
.asisten-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid var(--border-color, #e2e8f0);
  background: var(--bg-surface, #ffffff);
  z-index: 20;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.asisten-topbar-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-main, #0f172a);
}

.asisten-topbar-title svg {
  color: var(--primary-color, #0284c7);
  flex-shrink: 0;
}

.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border-color, #e2e8f0);
  background: var(--bg-surface, #ffffff);
  color: var(--text-main, #0f172a);
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}

.mobile-menu-toggle:hover {
  background: rgba(2, 132, 199, 0.08);
  border-color: var(--primary-color, #0284c7);
  color: var(--primary-color, #0284c7);
}

.asisten-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.btn-asisten-tool {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.85rem;
  font-size: 0.825rem;
  font-weight: 600;
  border-radius: var(--radius-md, 8px);
  border: 1px solid var(--border-color, #e2e8f0);
  background: var(--bg-surface, #ffffff);
  color: var(--text-main, #0f172a);
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
  white-space: nowrap;
}

.btn-asisten-tool:hover {
  border-color: var(--primary-color, #0284c7);
  color: var(--primary-color, #0284c7);
  background: rgba(2, 132, 199, 0.08);
}

.asisten-body-area {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* 1. WELCOME HERO STATE */
.asisten-welcome-hero {
  max-width: 840px;
  margin: auto;
  padding: 2.5rem 1.25rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.asisten-hero-mascot {
  width: 58px;
  height: 58px;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.15) 0%, rgba(99, 102, 241, 0.15) 100%);
  border: 1px solid rgba(14, 165, 233, 0.3);
  box-shadow: 0 0 25px rgba(14, 165, 233, 0.2);
}

.asisten-hero-mascot img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.asisten-welcome-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-main, #0f172a);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.asisten-welcome-subtitle {
  font-size: 0.975rem;
  color: var(--text-muted, #475569);
  margin-bottom: 2rem;
  max-width: 540px;
  line-height: 1.5;
}

.asisten-input-card-hero {
  width: 100%;
  max-width: 720px;
  margin-bottom: 0.5rem;
  position: relative;
}

.asisten-search-box {
  width: 100%;
  border-radius: 28px;
  padding: 0.95rem 3.5rem 0.95rem 1.4rem;
  font-size: 0.95rem;
  border: 1.5px solid var(--border-color, #cbd5e1);
  background: var(--bg-surface, #ffffff);
  color: var(--text-main, #0f172a);
  outline: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.asisten-search-box:focus {
  border-color: var(--primary-color, #0284c7);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.18), 0 8px 24px rgba(0, 0, 0, 0.08);
}

.asisten-btn-send-inside {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-color, #0284c7);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.asisten-btn-send-inside:hover:not(:disabled) {
  background: var(--primary-hover, #0369a1);
  transform: translateY(-50%) scale(1.05);
}

.asisten-btn-send-inside:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.asisten-hero-hint {
  font-size: 0.775rem;
  color: var(--text-muted, #64748b);
  margin-bottom: 2.2rem;
}

/* COMMAND PILLS GRID */
.asisten-commands-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  width: 100%;
  max-width: 760px;
  text-align: left;
}

.asisten-command-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  border: 1.2px solid var(--border-color, #e2e8f0);
  background: var(--bg-surface, #ffffff);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.asisten-command-pill:hover {
  border-color: var(--primary-color, #0284c7);
  background: rgba(2, 132, 199, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.asisten-command-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.825rem;
  font-weight: 700;
  color: #0284c7;
  background: rgba(2, 132, 199, 0.12);
  padding: 0.22rem 0.58rem;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.asisten-command-desc {
  font-size: 0.825rem;
  color: var(--text-muted, #475569);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 2. CONVERSATION STREAM STATE */
.asisten-chat-stream {
  flex: 1;
  padding: 1.75rem 1.5rem 2.25rem;
  max-width: 880px;
  margin: 0 auto;
  width: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.asisten-user-row {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

.asisten-user-bubble {
  max-width: 78%;
  padding: 0.85rem 1.25rem;
  border-radius: 18px 18px 4px 18px;
  background: #1e293b;
  color: #ffffff;
  font-size: 0.935rem;
  font-weight: 500;
  line-height: 1.55;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
  word-break: break-word;
}

.asisten-ai-row {
  display: flex;
  gap: 0.95rem;
  align-items: flex-start;
  width: 100%;
}

.asisten-ai-avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3);
  margin-top: 2px;
}

.asisten-ai-avatar img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.asisten-ai-content {
  flex: 1;
  max-width: 88%;
}

.asisten-ai-bubble {
  padding: 0.25rem 0 0.5rem;
  font-size: 0.965rem;
  line-height: 1.65;
  color: #0f172a;
}

.asisten-ai-bubble strong {
  color: #0284c7;
  font-weight: 700;
}

.asisten-ai-bubble p {
  margin: 0 0 0.65rem 0;
}

.asisten-ai-bubble p:last-child {
  margin-bottom: 0;
}

/* QUICK REPLY BUTTONS (INTERACTIVE CHOICES) */
.asisten-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.95rem;
}

.btn-quick-reply {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.48rem 1.05rem;
  border-radius: 22px;
  font-size: 0.835rem;
  font-weight: 600;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #0f172a;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  min-height: 38px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
}

.btn-quick-reply:hover {
  background: #f0f9ff;
  border-color: #0284c7;
  color: #0284c7;
  transform: translateY(-1.5px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.15);
}

.btn-quick-reply:active {
  transform: translateY(0);
}

.btn-quick-reply:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

/* TYPING INDICATOR */
.asisten-typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.5rem 0.85rem;
  background: rgba(2, 132, 199, 0.08);
  border-radius: 12px;
}

.asisten-typing-dots span {
  width: 6px;
  height: 6px;
  background: var(--primary-color, #0284c7);
  border-radius: 50%;
  animation: typingBounce 1.2s infinite ease-in-out;
}

.asisten-typing-dots span:nth-child(1) { animation-delay: 0s; }
.asisten-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.asisten-typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-6px); }
}

/* BOTTOM FIXED INPUT BAR */
.asisten-bottom-bar {
  padding: 0.85rem 1.5rem 1.15rem;
  border-top: 1px solid var(--border-color, #e2e8f0);
  background: var(--bg-surface, #ffffff);
  position: sticky;
  bottom: 0;
  z-index: 15;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.asisten-bottom-input-wrap {
  max-width: 880px;
  margin: 0 auto;
  position: relative;
}

.asisten-bottom-hint {
  font-size: 0.75rem;
  color: var(--text-muted, #64748b);
  text-align: center;
  margin-top: 0.45rem;
}

/* RIWAYAT DRAWER (SLIDE-OVER) */
.asisten-history-drawer {
  position: fixed;
  top: 0;
  right: -380px;
  width: 350px;
  height: 100vh;
  background: var(--bg-surface, #ffffff);
  border-left: 1px solid var(--border-color, #e2e8f0);
  z-index: 1000;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
}

.asisten-history-drawer.open {
  right: 0;
}

.asisten-history-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(2px);
  z-index: 999;
  display: none;
}

.asisten-history-backdrop.open {
  display: block;
}

.asisten-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--border-color, #e2e8f0);
}

.asisten-drawer-header h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-main, #0f172a);
}

.asisten-drawer-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.asisten-session-card {
  padding: 0.8rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border-color, #e2e8f0);
  background: var(--bg-surface, #ffffff);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.asisten-session-card:hover {
  border-color: var(--primary-color, #0284c7);
  background: rgba(2, 132, 199, 0.04);
}

.asisten-session-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main, #0f172a);
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 230px;
}

.asisten-session-date {
  font-size: 0.75rem;
  color: var(--text-muted, #64748b);
}

/* ==========================================================================
   DARK THEME OVERRIDES (HIGH CONTRAST & ZERO FONT-BLENDING ASSURANCE)
   ========================================================================== */
body.dark-theme .asisten-view-container {
  background: #070b14 !important;
}

body.dark-theme .asisten-topbar {
  background: #0f172a !important;
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

body.dark-theme .asisten-topbar-title {
  color: #ffffff !important;
}

body.dark-theme .mobile-menu-toggle {
  background: #0f172a !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
}

body.dark-theme .btn-asisten-tool {
  background: rgba(30, 41, 59, 0.7) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: #f1f5f9 !important;
}

body.dark-theme .btn-asisten-tool:hover {
  background: rgba(2, 132, 199, 0.25) !important;
  border-color: #38bdf8 !important;
  color: #38bdf8 !important;
}

body.dark-theme .asisten-welcome-title {
  color: #ffffff !important;
}

body.dark-theme .asisten-welcome-subtitle {
  color: #94a3b8 !important;
}

body.dark-theme .asisten-search-box {
  background: #0f172a !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}

body.dark-theme .asisten-search-box:focus {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25) !important;
}

body.dark-theme .asisten-command-pill {
  background: #0f172a !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

body.dark-theme .asisten-command-pill:hover {
  background: #1e293b !important;
  border-color: #38bdf8 !important;
}

body.dark-theme .asisten-command-tag {
  background: rgba(56, 189, 248, 0.16) !important;
  color: #38bdf8 !important;
}

body.dark-theme .asisten-command-desc {
  color: #cbd5e1 !important;
}

body.dark-theme .asisten-user-bubble {
  background: #1e293b !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4) !important;
}

body.dark-theme .asisten-ai-bubble {
  color: #f1f5f9 !important;
}

body.dark-theme .asisten-ai-bubble strong {
  color: #38bdf8 !important;
}

body.dark-theme .btn-quick-reply {
  background: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35) !important;
}

body.dark-theme .btn-quick-reply:hover {
  background: rgba(2, 132, 199, 0.35) !important;
  border-color: #38bdf8 !important;
  color: #38bdf8 !important;
}

body.dark-theme .asisten-bottom-bar {
  background: #0f172a !important;
  border-top-color: rgba(255, 255, 255, 0.1) !important;
}

body.dark-theme .asisten-history-drawer {
  background: #0f172a !important;
  border-left-color: rgba(255, 255, 255, 0.12) !important;
}

body.dark-theme .asisten-drawer-header {
  border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

body.dark-theme .asisten-drawer-header h3 {
  color: #ffffff !important;
}

body.dark-theme .asisten-session-card {
  background: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

body.dark-theme .asisten-session-card:hover {
  border-color: #38bdf8 !important;
}

body.dark-theme .asisten-session-title {
  color: #ffffff !important;
}

body.dark-theme .asisten-session-date {
  color: #94a3b8 !important;
}

/* ==========================================================================
   MULTI-DEVICE RESPONSIVE DESIGN (MOBILE ANDROID, TABLET, DESKTOP)
   ========================================================================== */

/* TABLET & MOBILE BREAKPOINTS (<= 1024px) */
@media (max-width: 1024px) {
  .mobile-menu-toggle {
    display: inline-flex !important;
  }

  .dashboard-sidebar {
    transform: translateX(-100%) !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    z-index: 1000 !important;
  }

  .dashboard-sidebar.show,
  .dashboard-sidebar.open {
    transform: translateX(0) !important;
    box-shadow: 8px 0 30px rgba(0, 0, 0, 0.3) !important;
  }

  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(2px);
    z-index: 999;
  }

  .sidebar-overlay.show,
  .sidebar-overlay.open {
    display: block !important;
  }

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

  .asisten-commands-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .asisten-chat-stream {
    padding: 1.25rem 1.25rem 2rem;
  }
}

/* SMARTPHONE & ANDROID FRIENDLY (<= 768px) */
@media (max-width: 768px) {
  .asisten-view-container {
    height: 100vh;
  }

  .asisten-topbar {
    padding: 0.65rem 0.85rem;
  }

  .asisten-topbar-title {
    font-size: 0.95rem;
    gap: 0.45rem;
  }

  .asisten-topbar-title svg {
    width: 19px;
    height: 19px;
  }

  .asisten-topbar-actions {
    gap: 0.45rem;
  }

  .btn-asisten-tool {
    padding: 0.38rem 0.65rem;
    font-size: 0.775rem;
  }

  .asisten-welcome-hero {
    padding: 1.75rem 0.85rem 1.5rem;
  }

  .asisten-welcome-title {
    font-size: 1.45rem;
    line-height: 1.3;
  }

  .asisten-welcome-subtitle {
    font-size: 0.875rem;
    margin-bottom: 1.35rem;
  }

  .asisten-search-box {
    font-size: 0.885rem;
    padding: 0.8rem 3rem 0.8rem 1.1rem;
  }

  .asisten-btn-send-inside {
    width: 32px;
    height: 32px;
    right: 7px;
  }

  .asisten-hero-hint {
    font-size: 0.72rem;
    margin-bottom: 1.5rem;
  }

  .asisten-commands-grid {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .asisten-command-pill {
    padding: 0.7rem 0.85rem;
  }

  .asisten-command-tag {
    font-size: 0.785rem;
  }

  .asisten-command-desc {
    font-size: 0.785rem;
  }

  .asisten-chat-stream {
    padding: 1rem 0.75rem 1.5rem 0.75rem;
    gap: 1.15rem;
  }

  .asisten-ai-avatar {
    width: 30px;
    height: 30px;
    min-width: 30px;
  }

  .asisten-ai-avatar img {
    width: 18px;
    height: 18px;
  }

  .asisten-ai-content {
    max-width: 90%;
  }

  .asisten-ai-bubble {
    font-size: 0.915rem;
    line-height: 1.55;
  }

  .asisten-user-bubble {
    max-width: 88%;
    padding: 0.75rem 1rem;
    font-size: 0.885rem;
    border-radius: 16px 16px 4px 16px;
  }

  .asisten-quick-replies {
    gap: 0.45rem;
    margin-top: 0.75rem;
  }

  .btn-quick-reply {
    padding: 0.42rem 0.85rem;
    font-size: 0.8rem;
    min-height: 36px;
  }

  .asisten-bottom-bar {
    padding: 0.65rem 0.85rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
  }

  .asisten-bottom-hint {
    font-size: 0.7rem;
    margin-top: 0.35rem;
  }

  .asisten-history-drawer {
    width: 85vw;
    max-width: 320px;
  }
}

/* ULTRA COMPACT MOBILE (<= 480px) */
@media (max-width: 480px) {
  .btn-asisten-tool span {
    display: none;
  }

  .btn-asisten-tool {
    padding: 0.4rem 0.55rem;
  }

  .asisten-welcome-title {
    font-size: 1.3rem;
  }

  .asisten-ai-content {
    max-width: 92%;
  }

  .asisten-user-bubble {
    max-width: 92%;
  }
}

/* ==========================================================================
   PROGRESSIVE WEB APP (PWA) & INSTALL APP BUTTON STYLES
   ========================================================================== */
.btn-install-pwa {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.85rem;
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: var(--theme-text-title, #0f172a);
  border-radius: var(--radius-full, 9999px);
  font-size: 0.825rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  white-space: nowrap;
  text-decoration: none;
}

.btn-install-pwa:hover {
  background: rgba(2, 132, 199, 0.18);
  border-color: var(--primary-color, #0284c7);
  color: var(--primary-color, #0284c7);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.2);
}

.btn-install-pwa svg {
  color: var(--primary-color, #0284c7);
}

.pwa-badge {
  background: linear-gradient(135deg, #0284c7, #6366f1);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.btn-install-pwa.pulse {
  animation: pwaPulse 2.5s infinite;
}

@keyframes pwaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(2, 132, 199, 0); }
}

.mobile-install-btn {
  width: 100%;
  justify-content: center;
  margin-bottom: 0.85rem;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  border-radius: 12px;
}

body.dark-theme .btn-install-pwa {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(255, 255, 255, 0.16);
  color: #f1f5f9;
}

body.dark-theme .btn-install-pwa:hover {
  background: rgba(2, 132, 199, 0.28);
  border-color: #38bdf8;
  color: #38bdf8;
}

body.dark-theme .btn-install-pwa svg {
  color: #38bdf8;
}

/* PWA INSTALL MODAL & BACKDROP (IOS SAFARI & DESKTOP) */
.pwa-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.pwa-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.pwa-install-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.94);
  width: 90%;
  max-width: 480px;
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.pwa-install-modal.active {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.pwa-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.4rem 1rem;
  border-bottom: 1px solid var(--border-color, #e2e8f0);
}

.pwa-modal-header-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.pwa-app-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  overflow: hidden;
  background: #070b14;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.pwa-app-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.pwa-modal-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main, #0f172a);
  margin: 0;
}

.pwa-modal-subtitle {
  font-size: 0.775rem;
  color: var(--text-muted, #64748b);
  margin: 0.15rem 0 0;
}

.pwa-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-muted, #64748b);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pwa-modal-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: var(--text-main, #0f172a);
}

.pwa-modal-body {
  padding: 1.25rem 1.4rem;
}

.pwa-notice-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(2, 132, 199, 0.2);
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-color, #0284c7);
  margin-bottom: 1.15rem;
  width: 100%;
}

.pwa-steps-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.pwa-step-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.pwa-step-number {
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 50%;
  background: var(--primary-color, #0284c7);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 2px;
}

.pwa-step-content strong {
  font-size: 0.885rem;
  color: var(--text-main, #0f172a);
  display: block;
  margin-bottom: 0.2rem;
}

.pwa-step-content p {
  font-size: 0.825rem;
  color: var(--text-muted, #64748b);
  line-height: 1.45;
  margin: 0;
}

.pwa-modal-footer {
  padding: 0.85rem 1.4rem 1.25rem;
  border-top: 1px solid var(--border-color, #e2e8f0);
}

.pwa-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(50px);
  background: #0f172a;
  color: #ffffff;
  padding: 0.75rem 1.4rem;
  border-radius: 30px;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  white-space: nowrap;
}

.pwa-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

body.dark-theme .pwa-install-modal {
  background: #0f172a;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

body.dark-theme .pwa-modal-header {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.dark-theme .pwa-modal-title {
  color: #ffffff;
}

body.dark-theme .pwa-modal-subtitle {
  color: #94a3b8;
}

body.dark-theme .pwa-modal-close {
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
}

body.dark-theme .pwa-modal-close:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

body.dark-theme .pwa-notice-pill {
  background: rgba(2, 132, 199, 0.2);
  border-color: rgba(56, 189, 248, 0.3);
  color: #38bdf8;
}

body.dark-theme .pwa-step-content strong {
  color: #ffffff;
}

body.dark-theme .pwa-step-content p {
  color: #cbd5e1;
}

body.dark-theme .pwa-modal-footer {
  border-top-color: rgba(255, 255, 255, 0.1);
}