/* ============================================================
   NALDERA SMART LEARNING — Executive Academic & AI Design System
   Brand Colors: Deep Navy (#0B1728), Regal Gold (#F5A623), Slate (#475569)
   ============================================================ */

:root {
  --primary: #0B1728;
  --primary-hover: #162846;
  --primary-light: #EEF3FA;
  --primary-gradient: linear-gradient(135deg, #0B1728 0%, #1C3355 100%);
  --primary-gradient-hover: linear-gradient(135deg, #162846 0%, #24426E 100%);
  
  --gold: #F5A623;
  --gold-hover: #E09516;
  --gold-light: #FFF8EA;
  --gold-border: #FCE1B6;
  --gold-gradient: linear-gradient(135deg, #FFB800 0%, #F5A623 100%);
  --gold-gradient-hover: linear-gradient(135deg, #F5A623 0%, #D98909 100%);
  
  --bg: #F6F8FB;
  --surface: #FFFFFF;
  --surface-glass: rgba(255, 255, 255, 0.94);
  --text: #0F172A;
  --text-muted: #64748B;
  --border: #E2E8F0;
  --border-focus: #F5A623;
  --success: #10B981;
  --error: #EF4444;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 4px 6px -1px rgba(11, 23, 40, 0.04), 0 2px 4px -2px rgba(11, 23, 40, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(11, 23, 40, 0.08), 0 4px 6px -4px rgba(11, 23, 40, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(11, 23, 40, 0.12), 0 8px 10px -6px rgba(11, 23, 40, 0.06);
  --shadow-gold: 0 8px 20px -4px rgba(245, 166, 35, 0.35);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-sm {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Announcement Banner */
.announcement-banner {
  background: linear-gradient(135deg, #0B1728 0%, #162846 100%) !important;
  border-bottom: 2px solid var(--gold) !important;
  color: white !important;
}

/* Executive SaaS Navbar Overhaul */
.navbar {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px -2px rgba(11, 23, 40, 0.05);
  transition: var(--transition);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.5rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
}

.nav-brand:hover .nav-logo-img {
  transform: scale(1.02);
}

.brand-text-wrapper {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 850;
  font-size: 1.15rem;
  color: var(--primary);
  letter-spacing: 0.03em;
}

.brand-sub {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.6rem;
  color: var(--gold-hover);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
  padding: 0.4rem 0.75rem;
  border-radius: 9999px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

.nav-link:hover {
  color: var(--primary);
  background-color: rgba(11, 23, 40, 0.04);
}

.nav-link.active {
  color: var(--primary);
  background-color: var(--primary-light);
  font-weight: 700;
}

.nav-user-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.5rem;
  white-space: nowrap;
}

.credit-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--gold-light);
  border: 1px solid var(--gold-border);
  color: #92400E;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 750;
  white-space: nowrap;
}

.credit-badge svg {
  width: 14px;
  height: 14px;
  color: var(--gold);
}

.btn-buy-credits {
  background: var(--gold-gradient);
  color: var(--primary);
  border: none;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(245, 166, 35, 0.3);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.btn-buy-credits:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 166, 35, 0.45);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background-color: var(--primary-light);
}

.nav-mobile-btn {
  display: none;
  background: none;
  border: 1px solid var(--border);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--text);
}

.nav-mobile {
  display: none;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  border-radius: 0 0 20px 20px;
  padding: 1rem 1.25rem;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: 0 12px 24px -6px rgba(11, 23, 40, 0.12);
  animation: mobileMenuSlide 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.nav-mobile.open {
  display: flex;
}

.nav-mobile .nav-link {
  padding: 0.65rem 1rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  background: var(--bg);
  transition: var(--transition);
}

.nav-mobile .nav-link:hover {
  background: var(--primary-light);
  color: var(--primary);
}

/* Navbar button variants */
.btn-nav-register {
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  border-radius: 9999px;
  font-weight: 700;
}

.btn-logout {
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  border-radius: 9999px;
}

/* Package option label in modal */
.package-option-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.package-option-label:hover {
  border-color: var(--gold);
  background-color: var(--gold-light);
}

/* Luxury Floating Toast Popup System */
.toast-popup-wrapper {
  position: fixed;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  pointer-events: none;
  width: 100%;
  max-width: 480px;
  padding: 0 1rem;
}

.toast-popup {
  pointer-events: auto;
  width: 100%;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0.85rem 1.15rem;
  box-shadow: 0 16px 32px -8px rgba(11, 23, 40, 0.18), 0 4px 12px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  position: relative;
  overflow: hidden;
  animation: toastPopupSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-popup.hiding {
  opacity: 0;
  transform: translateY(-12px) scale(0.95);
}

@keyframes toastPopupSlideIn {
  from { transform: translateY(-24px) scale(0.95); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.toast-popup-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.toast-popup-success .toast-popup-icon, .toast-popup-message .toast-popup-icon {
  background-color: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
}

.toast-popup-error .toast-popup-icon, .toast-popup-danger .toast-popup-icon {
  background-color: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FECACA;
}

.toast-popup-warning .toast-popup-icon {
  background-color: #FFFBEB;
  color: #D97706;
  border: 1px solid #FDE68A;
}

.toast-popup-info .toast-popup-icon {
  background-color: #EFF6FF;
  color: #2563EB;
  border: 1px solid #BFDBFE;
}

.toast-popup-content {
  flex-grow: 1;
  min-width: 0;
}

.toast-popup-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--primary);
  line-height: 1.2;
}

.toast-popup-body {
  font-size: 0.8rem;
  color: var(--text);
  line-height: 1.35;
  margin-top: 0.15rem;
}

.toast-popup-close {
  background: none;
  border: none;
  font-size: 1.35rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.2rem;
  line-height: 1;
  border-radius: 6px;
  transition: var(--transition);
}

.toast-popup-close:hover {
  color: var(--text);
  background-color: var(--bg);
}

.toast-popup-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: var(--gold);
  animation: toastProgress 4.5s linear forwards;
}

@keyframes toastProgress {
  from { width: 100%; }
  to { width: 0%; }
}

/* Main Content Area */
main {
  min-height: calc(100vh - 120px);
  padding: 1.5rem 0;
}

/* Hero Section — Optimized for Laptop Viewport Fitting */
.hero {
  text-align: center;
  margin-bottom: 1.5rem;
}

.landing-hero {
  text-align: center;
  padding: 2.75rem 1.5rem 2rem 1.5rem;
  background: radial-gradient(circle at top, rgba(245, 166, 35, 0.08) 0%, transparent 65%),
              linear-gradient(180deg, #FFFFFF 0%, #F6F8FB 100%);
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
  border-radius: var(--radius-lg);
}

.landing-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--gold-light);
  color: var(--primary);
  border: 1px solid var(--gold-border);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.35rem 1.15rem;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.landing-hero h1 {
  font-size: 2.35rem;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.03em;
  max-width: 880px;
  margin: 0 auto 1.25rem auto;
  color: var(--primary);
}

.landing-hero h1 span.gold-highlight {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.landing-hero p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 1.75rem auto;
  line-height: 1.55;
}

.landing-cta-group {
  display: flex;
  justify-content: center;
  gap: 1.15rem;
  margin-bottom: 1.75rem;
}

.btn-cta {
  font-size: 1.02rem;
  padding: 0.8rem 2.15rem;
  border-radius: 9999px;
  font-weight: 700;
}

/* Trust Badges Container */
.trust-badge-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.75rem;
  margin-top: 0.75rem;
  border-top: 1px dashed var(--border);
  padding-top: 1.25rem;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
  max-width: 270px;
}

.trust-badge h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.1rem;
}

.trust-badge p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.3;
}

.medal-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  border: 2px solid #ffffff;
  flex-shrink: 0;
}

.medal-gold {
  background: var(--gold-gradient);
  color: var(--primary);
  box-shadow: var(--shadow-gold);
}

.medal-navy {
  background: var(--primary-gradient);
  color: white;
  box-shadow: 0 4px 10px rgba(11, 23, 40, 0.2);
  border-color: var(--gold);
}

.medal-green {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: white;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2);
}

/* App Workspace & Sidebar Navigation */
.app-workspace {
  display: flex;
  gap: 1.75rem;
  align-items: flex-start;
  width: 100%;
}

.app-sidebar {
  width: 250px;
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.15rem 0.75rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.sidebar-collapse-btn {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  float: right;
  margin-bottom: 0.75rem;
  transition: var(--transition);
}

.sidebar-collapse-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.sidebar-section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 1.15rem 0.5rem 0.4rem 0.5rem;
}

.sidebar-section-title:first-of-type {
  margin-top: 0.25rem;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.85rem;
  border-radius: 12px;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 0.25rem;
  user-select: none;
}

.sidebar-item:hover {
  background-color: var(--bg);
  color: var(--primary);
  transform: translateX(2px);
}

.sidebar-item.active {
  background: var(--primary-gradient);
  color: white !important;
  box-shadow: 0 4px 12px rgba(11, 23, 40, 0.18);
  font-weight: 700;
}

.sidebar-item.active .sidebar-icon {
  transform: scale(1.1);
}

.sidebar-icon {
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Cards & Sections */
.card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(245, 166, 35, 0.3);
}

.card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Template Grid Cards */
.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.template-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

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

.template-card.selected {
  border-color: var(--primary);
  background: #F8FAFC;
  box-shadow: 0 0 0 2px var(--primary), var(--shadow);
}

.template-card.selected::after {
  content: '✓';
  position: absolute;
  top: 0.6rem;
  right: 0.65rem;
  background: var(--primary);
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.template-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}

.template-badge {
  background: var(--gold-light);
  border: 1px solid var(--gold-border);
  color: #92400E;
  font-size: 0.65rem;
  font-weight: 850;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.template-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--primary);
  margin-bottom: 0.25rem;
  line-height: 1.25;
  padding-right: 1.5rem;
}

.template-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Wizard step components */
.wizard-step {
  display: none;
}

.wizard-step.active {
  display: block;
}

/* File Upload Area */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem 1.75rem;
  text-align: center;
  cursor: pointer;
  background-color: #FAFCFF;
  transition: var(--transition);
}

.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--gold);
  background-color: var(--gold-light);
  box-shadow: 0 0 0 4px rgba(245, 166, 35, 0.12);
}

.upload-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 1rem auto;
  color: var(--gold-hover);
  opacity: 0.9;
}

.upload-text-main {
  font-weight: 700;
  font-size: 1.02rem;
  margin-bottom: 0.3rem;
  color: var(--primary);
}

.upload-text-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.file-input {
  display: none;
}

.selected-file-info {
  display: none;
  margin-top: 1rem;
  padding: 0.85rem 1.25rem;
  background-color: var(--gold-light);
  border-radius: var(--radius);
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  border: 1px dashed var(--gold-hover);
}

/* Form Controls */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
  margin-bottom: 1.25rem;
}

.form-group {
  margin-bottom: 1.15rem;
}

.form-group.full-width {
  grid-column: span 2;
}

label {
  display: block;
  font-size: 0.825rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
textarea,
select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--surface);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text);
  transition: var(--transition);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(245, 166, 35, 0.18);
}

textarea {
  resize: vertical;
  min-height: 110px;
}

/* Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.35rem;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--gold-gradient);
  color: var(--primary);
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  background: var(--gold-gradient-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -4px rgba(245, 166, 35, 0.45);
}

.btn-navy {
  background: var(--primary-gradient);
  color: white;
  box-shadow: 0 4px 12px rgba(11, 23, 40, 0.25);
}

.btn-navy:hover {
  background: var(--primary-gradient-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(11, 23, 40, 0.35);
}

.btn-secondary {
  background-color: var(--surface);
  border-color: var(--border);
  color: var(--primary);
}

.btn-secondary:hover {
  background-color: var(--primary-light);
  border-color: #CBD5E1;
}

/* Feature Grid */
.landing-section {
  padding: 3.5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 2.75rem;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 850;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.02rem;
}

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}

.feature-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background-color: var(--gold-light);
  color: var(--gold-hover);
  border-radius: 14px;
  margin-bottom: 1.25rem;
  border: 1px solid var(--gold-border);
}

.feature-icon-wrapper svg {
  width: 26px;
  height: 26px;
}

.feature-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.feature-desc {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.55;
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 980px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.25rem 1.75rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

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

.pricing-card.premium {
  border-color: var(--gold);
  box-shadow: 0 16px 36px -12px rgba(245, 166, 35, 0.28);
}

.pricing-card.premium::before {
  content: "Rekomendasi";
  position: absolute;
  top: 18px;
  right: -35px;
  background: var(--gold-gradient);
  color: var(--primary);
  font-size: 0.625rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 2.25rem;
  transform: rotate(45deg);
  box-shadow: var(--shadow);
}

.pricing-header h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--primary);
}

.pricing-header p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

.pricing-price {
  font-size: 2.35rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: baseline;
  letter-spacing: -0.02em;
}

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

.pricing-features {
  list-style: none;
  margin-bottom: 1.75rem;
  flex-grow: 1;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.875rem;
  color: #334155;
  margin-bottom: 0.75rem;
}

.pricing-features li svg {
  width: 16px;
  height: 16px;
  color: var(--gold-hover);
  flex-shrink: 0;
}

/* Executive SaaS Auth Cards (Login & Register) - Compact Fit */
.auth-wrapper {
  max-width: 380px;
  margin: 0.25rem auto;
  padding: 0.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.15rem 1.35rem;
  box-shadow: var(--shadow-md);
  width: 100%;
}

.auth-brand-logo {
  text-align: center;
  margin-bottom: 0.4rem;
}

.auth-brand-logo img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

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

.auth-header h2 {
  font-size: 1.15rem;
  font-weight: 850;
  letter-spacing: -0.02em;
  margin-bottom: 0.15rem;
  color: var(--primary);
}

.auth-header p {
  color: var(--text-muted);
  font-size: 0.75rem;
  line-height: 1.3;
}

.auth-card .form-group {
  margin-bottom: 0.6rem;
}

.auth-card .form-group label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
  display: block;
}

.auth-card input[type="text"],
.auth-card input[type="password"] {
  padding: 0.45rem 0.75rem;
  font-size: 0.82rem;
  border-radius: 8px;
}

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

.password-wrapper input {
  width: 100%;
  padding-right: 2.2rem !important;
}

.btn-toggle-pw {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.5rem;
  outline: none;
  transition: var(--transition);
}

.btn-toggle-pw:hover {
  color: var(--primary);
}

.btn-auth-submit {
  width: 100%;
  padding: 0.55rem 0.85rem;
  font-weight: 800;
  font-size: 0.825rem;
  border-radius: 8px;
  margin-top: 0.2rem;
}

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

.auth-footer a {
  color: var(--gold-hover);
  font-weight: 700;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* Credit Purchase Modal */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(11, 23, 40, 0.65);
  backdrop-filter: blur(8px);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

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

.modal-content {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  max-width: 480px;
  width: 100%;
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: modalSlide 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
  line-height: 1;
}

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

.modal-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.modal-desc {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  background-color: var(--primary);
  color: white;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo-img {
  height: 48px;
  width: auto;
}

.footer p {
  font-size: 0.85rem;
  color: #94A3B8;
}

.footer-sub {
  font-size: 0.75rem !important;
  color: #64748B !important;
}

/* User Account and Credit Badges */
.nav-user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.credit-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: var(--gold-light);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.4rem 0.8rem;
  border-radius: 9999px;
  border: 1px solid var(--gold-border);
}

.credit-badge svg {
  width: 14px;
  height: 14px;
  color: var(--gold-hover);
}

.btn-buy-credits {
  background: var(--gold-gradient);
  color: var(--primary) !important;
  font-size: 0.78rem !important;
  font-weight: 800;
  padding: 0.4rem 0.8rem;
  border-radius: 9999px;
  transition: var(--transition);
  border: none;
  box-shadow: var(--shadow-gold);
}

.btn-buy-credits:hover {
  background: var(--gold-gradient-hover);
  transform: translateY(-1px);
}

/* Sidebar navigation styling rules */
.app-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.15rem 0.75rem;
  position: relative;
  top: 0;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.sidebar-section-title {
  font-weight: 800;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94A3B8;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  padding-left: 0.5rem;
}
.sidebar-section-title:first-of-type {
  margin-top: 0;
}

.sidebar-item {
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius);
  color: #475569;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  transition: var(--transition);
  margin-bottom: 0.25rem;
}
.sidebar-item:hover {
  background-color: var(--gold-light);
  color: var(--primary);
}
.sidebar-item.active {
  background-color: var(--primary);
  color: #FFFFFF;
  font-weight: 700;
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.sidebar-item.active .sidebar-icon {
  color: var(--gold);
}

/* Floating Actions & Popups Style */
.floating-widgets-wrapper {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  pointer-events: none;
}

.floating-triggers-stack {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  pointer-events: auto;
}

.btn-trigger {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1.15rem;
  border-radius: 50px;
  border: none;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.825rem;
  color: white;
  cursor: pointer;
  box-shadow: 0 8px 16px -3px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  pointer-events: auto;
}

.btn-trigger-wa {
  background: linear-gradient(135deg, #25d366, #128c7e);
}

.btn-trigger-dosen {
  background: var(--primary-gradient);
  border: 1px solid var(--gold-border);
}

.btn-trigger .trigger-icon {
  font-size: 1.15rem;
}

.btn-trigger .trigger-label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  opacity: 0;
}

.btn-trigger:hover .trigger-label {
  max-width: 160px;
  opacity: 1;
}

/* Pop Up Widget style - HIDDEN by default until .active is added! */
.popup-widget {
  position: fixed;
  bottom: 5.5rem;
  right: 1.5rem;
  width: 350px;
  max-height: 480px;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 25px 50px -12px rgba(11, 23, 40, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10001;
  pointer-events: auto;
}

.popup-widget.active {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) scale(1) !important;
}

.popup-header {
  padding: 1rem 1.25rem;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.popup-header-wa {
  background: linear-gradient(135deg, #25d366, #128c7e);
}

.popup-header-dosen {
  background: var(--primary-gradient);
  border-bottom: 2px solid var(--gold);
}

.popup-header-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.popup-avatar {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.popup-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: white;
}

.popup-status {
  font-size: 0.75rem;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: white;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  display: inline-block;
  animation: pulse-dot 2s infinite;
}

.popup-header-dosen .status-dot {
  background-color: var(--gold);
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 5px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.popup-close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
  outline: none;
  line-height: 1;
}

.popup-close-btn:hover {
  opacity: 1;
}

.popup-body {
  padding: 1rem 1.15rem;
  flex-grow: 1;
  overflow-y: auto;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 300px;
}

.chat-bubble {
  max-width: 88%;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  font-size: 0.85rem;
  line-height: 1.45;
}

.chat-bubble-received {
  background: white;
  color: var(--text);
  align-self: flex-start;
  border-top-left-radius: 2px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.chat-bubble-sent {
  background: var(--primary);
  color: white;
  align-self: flex-end;
  border-top-right-radius: 2px;
  box-shadow: 0 4px 8px rgba(11, 23, 40, 0.15);
}

.popup-footer {
  padding: 0.75rem 1rem;
  background: white;
  border-top: 1px solid var(--border);
  display: flex;
}

.btn-popup-action {
  width: 100%;
  padding: 0.65rem;
  border-radius: 10px;
  text-align: center;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  transition: var(--transition);
}

.btn-popup-wa {
  background: #25d366;
  color: white;
  box-shadow: 0 4px 8px rgba(37, 211, 102, 0.15);
}

.btn-popup-wa:hover {
  background: #20ba5a;
}

.popup-footer-form {
  gap: 0.5rem;
  width: 100%;
}

.popup-footer-form input {
  flex-grow: 1;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.55rem 0.85rem;
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
}

.popup-footer-form input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.15);
}

.btn-popup-send {
  background: var(--gold-gradient);
  color: var(--primary);
  border: none;
  border-radius: 10px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  transition: var(--transition);
  flex-shrink: 0;
}

.btn-popup-send:hover {
  background: var(--gold-gradient-hover);
}

.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem;
  border-radius: 10px;
  background: #25d366;
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp:hover {
  background: #20ba5a;
  transform: translateY(-1px);
}

.btn-whatsapp svg {
  width: 20px;
  height: 20px;
}

/* Typing Indicator Animation */
.typing-indicator span {
  height: 6px;
  width: 6px;
  float: left;
  margin: 0 1.5px;
  background-color: #94a3b8;
  border-radius: 50%;
  animation: typing-bounce 1.3s infinite ease-in-out;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-5px); }
}

.tab-content-panel {
  display: none;
}
.tab-content-panel.active {
  display: block;
}

/* ============================================================
   NALDERA SMART LEARNING — Mobile & Android 2-Column Rules
   ============================================================ */

@media (max-width: 768px) {
  .landing-hero {
    padding: 1.5rem 1rem 1.25rem 1rem !important;
    margin-bottom: 1rem !important;
    border-radius: 16px !important;
  }
  .landing-hero h1 {
    font-size: 1.55rem !important;
    line-height: 1.25 !important;
    margin-bottom: 0.85rem !important;
  }
  .landing-hero p {
    font-size: 0.875rem !important;
    line-height: 1.45 !important;
    margin-bottom: 1.25rem !important;
  }
  
  .landing-cta-group {
    display: flex !important;
    flex-direction: row !important;
    gap: 0.5rem !important;
    margin-bottom: 1.25rem !important;
  }
  .btn-cta {
    padding: 0.65rem 0.85rem !important;
    font-size: 0.825rem !important;
    flex: 1 !important;
    text-align: center !important;
  }
  
  .trust-badge-container {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.5rem !important;
    padding-top: 0.85rem !important;
    margin-top: 0.5rem !important;
  }
  .trust-badge {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    max-width: none !important;
    gap: 0.25rem !important;
  }
  .medal-icon {
    width: 36px !important;
    height: 36px !important;
    font-size: 1rem !important;
  }
  .trust-badge h4 {
    font-size: 0.725rem !important;
    margin-top: 0.2rem !important;
    line-height: 1.2 !important;
  }
  .trust-badge p {
    display: none !important;
  }

  .feature-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
  }
  .feature-card {
    padding: 1.15rem 0.85rem !important;
    border-radius: 14px !important;
  }
  .feature-icon-wrapper {
    width: 38px !important;
    height: 38px !important;
    margin-bottom: 0.65rem !important;
  }
  .feature-icon-wrapper svg {
    width: 20px !important;
    height: 20px !important;
  }
  .feature-title {
    font-size: 0.9rem !important;
    margin-bottom: 0.25rem !important;
  }
  .feature-desc {
    font-size: 0.75rem !important;
    line-height: 1.35 !important;
  }

  .pricing-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
  }
  .pricing-card {
    padding: 1.25rem 0.85rem !important;
    border-radius: 16px !important;
  }
  .pricing-header h3 {
    font-size: 1rem !important;
  }
  .pricing-header p {
    font-size: 0.75rem !important;
    margin-bottom: 0.75rem !important;
  }
  .pricing-price {
    font-size: 1.6rem !important;
    margin-bottom: 0.85rem !important;
  }
  .pricing-features li {
    font-size: 0.725rem !important;
    margin-bottom: 0.4rem !important;
    gap: 0.35rem !important;
  }

  .auth-wrapper {
    margin: 0.5rem auto !important;
    padding: 0 0.5rem !important;
  }
  .auth-card {
    padding: 1rem 1rem !important;
    border-radius: 14px !important;
  }
  .auth-brand-logo img {
    height: 36px !important;
  }
  .auth-header h2 {
    font-size: 1.15rem !important;
  }

  .floating-widgets-wrapper {
    bottom: 1rem !important;
    right: 1rem !important;
  }
  .popup-widget {
    bottom: 4.5rem !important;
    right: 1rem !important;
    width: 280px !important;
  }
  .btn-trigger {
    padding: 0.65rem 0.85rem !important;
    border-radius: 50px !important;
    font-size: 0.75rem !important;
  }
  .btn-trigger .trigger-icon {
    font-size: 1rem !important;
  }
}

@media (max-width: 992px) {
  .app-workspace {
    flex-direction: column !important;
    gap: 1.25rem !important;
  }
  
  .app-sidebar {
    width: 100% !important;
    position: relative !important;
    top: 0 !important;
    max-height: none !important;
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    gap: 0.4rem !important;
    border: 1px solid var(--border) !important;
    padding: 0.4rem !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }
  
  .app-sidebar::-webkit-scrollbar {
    display: none !important;
  }
  
  .sidebar-section-title {
    display: none !important;
  }
  
  .sidebar-item {
    margin-bottom: 0 !important;
    display: inline-flex !important;
    padding: 0.45rem 0.75rem !important;
    flex-shrink: 0 !important;
  }
  
  .sidebar-item.active {
    border-left: none !important;
    border-bottom: 3px solid var(--gold) !important;
    border-radius: 0 !important;
    background-color: var(--primary) !important;
  }
}
