/* ============================================================
   BISATUNTAS — Design System
   ============================================================ */

/* ===== ROOT VARIABLES ===== */
:root {
  --primary: #009688;
  --primary-dark: #00796B;
  --primary-light: #E0F2F1;
  --primary-rgb: 0, 150, 136;
  --secondary: #64748b;
  --success: #009688;
  --warning: #FBBF24;
  --danger: #ef4444;
  --info: #0D1830;
  --dark: #0D1830;
  --light: #E6EBEF;
  --gray-50: #E6EBEF;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0D1830;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.08);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --transition: all 0.2s ease;
  /* ---- Admin / Sidebar Tokens ---- */
  --sidebar-width: 260px;
  --sidebar-mini-width: 68px;
  --sidebar-bg: #ffffff;
  --sidebar-border: rgba(0,0,0,0.04);
  --sidebar-text: var(--gray-500);
  --sidebar-text-hover: var(--gray-800);
  --sidebar-active-bg: var(--primary);
  --sidebar-active-text: #ffffff;
  --topbar-height: 60px;
  --topbar-bg: rgba(255,255,255,0.72);
  --topbar-border: rgba(0,0,0,0.05);
  --content-bg: #f6f8fc;
  --card-bg: #ffffff;
  --card-shadow: 0 1px 3px rgba(0,0,0,0.04);
  --card-border: rgba(0,0,0,0.04);
  --font-display: 'Inter', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --skeleton-from: var(--gray-100);
  --skeleton-to: var(--gray-50);
  /* ---- Legacy aliases (kept for admin panel compatibility) ---- */
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
  --gradient-warm: linear-gradient(135deg, #FBBF24 0%, #0D1830 100%);
  --gradient-cool: linear-gradient(135deg, var(--primary) 0%, #0D1830 100%);
  --gradient-dark: linear-gradient(135deg, #0D1830 0%, #1e293b 100%);
  --glass-bg: rgba(255,255,255,0.6);
  --glass-border: rgba(255,255,255,0.25);
  --transition-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-spring: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --bento-radius: 20px;
  --bento-gap: 1.25rem;
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.10), 0 10px 10px -5px rgba(0,0,0,0.05);
  --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.15);
  --transition-slow: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --neo-border: 3px solid var(--gray-900);
  --blob-primary: radial-gradient(circle at 20% 50%, rgba(var(--primary-rgb),0.12) 0%, transparent 50%);
  --blob-info: radial-gradient(circle at 80% 20%, rgba(13,24,48,0.08) 0%, transparent 50%);
  /* ---- Frontend Design Tokens ---- */
  --fe-accent: #009688;
  --fe-accent-bg: #E0F2F1;
  --fe-accent-dark: #00796B;
  --fe-bg: #ffffff;
  --fe-surface: #fafafa;
  --fe-border: #e5e5e5;
  --fe-border-light: #f0f0f0;
  --fe-text: #0D1830;
  --fe-text-secondary: #737373;
  --fe-text-muted: #a3a3a3;
}

/* ===== DARK MODE (admin scoped) ===== */
[data-theme="dark"] {
  --gray-50: #0d0d0d;
  --gray-100: #1a1a1a;
  --gray-200: #262626;
  --gray-300: #404040;
  --gray-400: #666666;
  --gray-500: #999999;
  --gray-600: #bbbbbb;
  --gray-700: #d4d4d4;
  --gray-800: #e8e8e8;
  --gray-900: #f5f5f5;
  --dark: #ffffff;
  --light: #000000;
  --secondary: #94a3b8;
  --sidebar-bg: #000000;
  --sidebar-border: rgba(255,255,255,0.12);
  --sidebar-text: #a0aec0;
  --sidebar-text-hover: #ffffff;
  --sidebar-active-bg: var(--primary);
  --sidebar-active-text: #ffffff;
  --topbar-bg: rgba(0,0,0,0.85);
  --topbar-border: rgba(255,255,255,0.08);
  --content-bg: #000000;
  --card-bg: #0a0a0a;
  --card-shadow: 0 0 0 1px rgba(255,255,255,0.08);
  --card-border: rgba(255,255,255,0.08);
  --glass-bg: rgba(0,0,0,0.7);
  --glass-border: rgba(255,255,255,0.12);
  --skeleton-from: #1a1a1a;
  --skeleton-to: #000000;
  --primary-light: #1a2a4a;
}

[data-theme="dark"] body {
  background-color: #000000 !important;
  color: var(--gray-800) !important;
}

[data-theme="dark"] .bg-primary-subtle { background-color: #1a2a4a !important; }
[data-theme="dark"] .bg-danger-subtle { background-color: #2a1010 !important; }
[data-theme="dark"] .bg-success-subtle { background-color: #0a1a0a !important; }
[data-theme="dark"] .bg-warning-subtle { background-color: #1a1a0a !important; }
[data-theme="dark"] .bg-info-subtle { background-color: #0a0a2a !important; }
[data-theme="dark"] .btn-ghost-primary { background: #1a2a4a; color: #90b0ff; border-color: transparent; }
[data-theme="dark"] .btn-ghost-primary:hover { background: var(--primary); color: #fff; }

[data-theme="dark"] input,
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select,
[data-theme="dark"] textarea {
  background-color: #0d0d0d !important;
  border-color: #333333 !important;
  color: #e8e8e8 !important;
}
[data-theme="dark"] .table-modern { --bs-table-bg: transparent !important; }
[data-theme="dark"] .table-modern tbody td { border-color: #1f1f1f !important; }
[data-theme="dark"] .table-modern thead th { border-color: #333333 !important; color: #d4d4d4 !important; }
[data-theme="dark"] .table-modern tbody tr:hover { background: #141414 !important; }

[data-theme="dark"] .admin-wrapper,
[data-theme="dark"] .admin-content,
[data-theme="dark"] .admin-topbar,
[data-theme="dark"] .admin-sidebar,
[data-theme="dark"] .admin-footer {
  color-scheme: dark;
}

/* ===== BODY ===== */
body {
  font-family: var(--font-family, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
  background-color: #E6EBEF;
  color: var(--gray-800);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.navbar-brand,
.fw-heading {
  font-family: var(--heading-font, 'Plus Jakarta Sans', 'Inter', sans-serif);
  letter-spacing: -0.02em;
}
.fw-extrabold { font-weight: 800 !important; }
.fw-black { font-weight: 900 !important; }
.text-xs { font-size: 0.6875rem !important; line-height: 1rem !important; }
.text-sm { font-size: 0.8125rem !important; line-height: 1.25rem !important; }
.fs-7 { font-size: 0.875rem !important; line-height: 1.375rem !important; }
.fs-8 { font-size: 0.9375rem !important; line-height: 1.5rem !important; }
.leading-tight { line-height: 1.25 !important; }
.leading-snug { line-height: 1.375 !important; }
.leading-normal { line-height: 1.5 !important; }
.leading-relaxed { line-height: 1.625 !important; }
.leading-loose { line-height: 2 !important; }
.tracking-tight { letter-spacing: -0.025em !important; }
.tracking-wide { letter-spacing: 0.025em !important; }

/* ===== GLASSMORPHISM ===== */
.glass {
  background: rgba(255, 255, 255, 0.75) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
}
.glass-dark {
  background: rgba(15, 23, 42, 0.8) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* ===== GRADIENTS ===== */
.bg-gradient-primary { background: var(--gradient-primary) !important; }
.bg-gradient-warm { background: var(--gradient-warm) !important; }
.bg-gradient-cool { background: var(--gradient-cool) !important; }
.bg-gradient-dark { background: var(--gradient-dark) !important; }

/* ===== NAVBAR ===== */
.navbar {
  transition: var(--transition);
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
}
.navbar-brand {
  font-weight: 800;
  font-size: 1.375rem;
  letter-spacing: -0.03em;
}
.nav-link {
  font-weight: 500;
  font-size: 0.875rem;
  position: relative;
  padding: 0.5rem 1rem !important;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  color: var(--gray-600) !important;
}
.nav-link:hover {
  color: var(--primary) !important;
  background: rgba(var(--primary-rgb), 0.05);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 100px;
  transition: transform 0.2s;
}
.nav-link:hover::after {
  transform: translateX(-50%) scaleX(0.6);
}

/* ===== BUTTONS ===== */
.btn {
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 0.5rem 1.25rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
}
.btn-sm { padding: 0.375rem 0.875rem; font-size: 0.8125rem; }
.btn-lg { padding: 0.75rem 1.75rem; font-size: 0.9375rem; }
.btn-xl { padding: 0.875rem 2.25rem; font-size: 1rem; }
.btn-primary {
  background: var(--gradient-primary);
  border: none;
  box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(var(--primary-rgb), 0.35);
}
.btn-outline-primary {
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn-outline-primary:hover {
  background: var(--gradient-primary);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.25);
  color: #fff;
}
.btn-warning {
  background: var(--gradient-warm);
  border: none;
  color: #fff;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.25);
}
.btn-warning:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
  color: #fff;
}
.btn-success {
  background: linear-gradient(135deg, #009688, #009688);
  border: none;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
}
.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}
.btn-danger {
  background: linear-gradient(135deg, var(--danger), #dc2626);
  border: none;
}
.btn-outline-danger {
  border: 2px solid var(--danger);
  color: var(--danger);
}
.btn-outline-danger:hover {
  background: linear-gradient(135deg, var(--danger), #dc2626);
  border-color: transparent;
  color: #fff;
}
.btn-outline-light:hover { background: rgba(255,255,255,0.15); }
.btn-ghost {
  background: transparent;
  border: none;
  color: var(--gray-600);
}
.btn-ghost:hover {
  background: var(--gray-100);
  color: var(--gray-800);
}

/* ===== CARDS ===== */
.card {
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}
.card:hover { box-shadow: var(--card-shadow); }
.card-modern {
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
  transition: var(--transition-slow);
}
.card-modern:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}
.card-modern .card-img-top {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.card-flat {
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  background: var(--card-bg);
}
.card-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
}
.card-header-gradient {
  background: var(--gradient-primary);
  color: #fff;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
}
.card-border-primary { border-left: 4px solid var(--primary); }
.card-border-warning { border-left: 4px solid var(--warning); }
.card-border-success { border-left: 4px solid var(--success); }
.card-border-danger { border-left: 4px solid var(--danger); }

/* ===== BADGES ===== */
.badge-modern {
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}
.badge-xs { font-size: 0.625rem !important; padding: 0.2rem 0.5rem; }
.badge-sm { font-size: 0.6875rem !important; padding: 0.25rem 0.6rem; }
.badge-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

/* ===== FORMS ===== */
.form-control, .form-select {
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--gray-200);
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
  transition: var(--transition);
  background: var(--card-bg);
  color: var(--gray-800);
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}
.form-control-sm { padding: 0.45rem 0.75rem; font-size: 0.8125rem; }
.form-label { font-size: 0.8125rem; font-weight: 600; color: var(--gray-700); margin-bottom: 0.375rem; }
.form-text { font-size: 0.75rem; color: var(--gray-500); }
.form-control.is-valid, .was-validated .form-control:valid {
  border-color: var(--success);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}
.form-control.is-invalid, .was-validated .form-control:invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

/* ===== LIST GROUP ===== */
.list-group-modern .list-group-item {
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: var(--radius-sm) !important;
  margin-bottom: 0.5rem;
  transition: var(--transition);
}
.list-group-modern .list-group-item:hover {
  background: var(--primary-light);
  border-color: rgba(var(--primary-rgb), 0.12);
}
.list-group-modern .list-group-item.active {
  background: var(--gradient-primary);
  border-color: transparent;
}

/* ===== TABLE ===== */
.table-modern {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}
.table-modern thead th {
  background: var(--gray-50);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-500);
  padding: 0.875rem 1.25rem;
  border-bottom: 2px solid var(--gray-200);
}
.table-modern tbody td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--gray-100);
  vertical-align: middle;
}
.table-modern tbody tr:hover { background: var(--gray-50); }
.table-modern tbody tr:last-child td { border-bottom: none; }

/* ===== PROGRESS ===== */
.progress-modern {
  height: 6px;
  border-radius: 100px;
  background: var(--gray-200);
  overflow: hidden;
}
.progress-modern .progress-bar {
  border-radius: 100px;
  background: var(--gradient-primary);
  transition: width 0.6s ease;
}
.progress-modern-sm { height: 4px; }

/* ===== SHADOW ===== */
.shadow-soft { box-shadow: 0 2px 8px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.02); }
.shadow-hover-soft:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.06), 0 2px 6px rgba(0,0,0,0.04);
  transform: translateY(-2px);
}

/* ===== HERO ===== */
.hero-section { position: relative; overflow: hidden; }
.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-float-card { animation: float 6s ease-in-out infinite; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.hero-title { line-height: 1.15; letter-spacing: -0.03em; }
.hero-badge { font-size: 0.8125rem; font-weight: 600; backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,0.15); }
.glass-hero { width: 360px; height: 400px; border-radius: var(--radius-xl); background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.04) 100%); border: 1px solid rgba(255,255,255,0.15); backdrop-filter: blur(12px); }
.glass-warning { backdrop-filter: blur(4px); }
.fs-hero-icon { font-size: 80px; }
.stats-strip { border-bottom: 1px solid rgba(0,0,0,0.04); }
.avatar-initial { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; font-size: 0.625rem; border: 2px solid rgba(255,255,255,0.3); }
.avatar-initial.overlap { margin-left: -8px; }
.tag-badge { transition: all 0.2s; }
.tag-badge:hover { background: var(--primary) !important; color: #fff !important; }
.cta-section { background: var(--gradient-primary); }
.cta-content { z-index: 1; }
.cta-heading { font-size: 1.75rem; }
.fs-1dot125 { font-size: 1.125rem !important; }
.detail-title { font-size: 1.625rem; }
.chart-container { position: relative; width: 100%; height: 260px; }
.chart-container canvas { display: block; width: 100% !important; height: 100% !important; }
.detail-thumb { height: 400px; }
.lh-base { line-height: 1.7 !important; }
.text-end { text-align: right !important; }
.btn-buy-cta { padding: 0.875rem 0; }
.rating-big { font-size: 3rem; }
.star-icon { font-size: 0.875rem; }
.rating-label { min-width: 32px; }
.star-xs { font-size: 0.5rem; }
.rating-count { min-width: 24px; text-align: right; }


/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-24px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
.animate-fade-in-up { animation: fadeInUp 0.6s ease-out forwards; }
.animate-fade-in { animation: fadeIn 0.8s ease-out forwards; }
.animate-scale-in { animation: scaleIn 0.4s ease-out forwards; }
.animate-slide-in-left { animation: slideInLeft 0.5s ease-out forwards; }
.animate-slide-in-right { animation: slideInRight 0.5s ease-out forwards; }
.stagger-1 { animation-delay: 0.05s; }
.stagger-2 { animation-delay: 0.1s; }
.stagger-3 { animation-delay: 0.15s; }
.stagger-4 { animation-delay: 0.2s; }
.stagger-5 { animation-delay: 0.25s; }
.stagger-6 { animation-delay: 0.3s; }
.stagger-7 { animation-delay: 0.35s; }
.stagger-8 { animation-delay: 0.4s; }

/* ===== SKELETON ===== */
.skeleton {
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-50) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* ===== MISC ===== */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.object-fit-cover { object-fit: cover !important; }
.text-truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.text-truncate-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cursor-pointer { cursor: pointer; }
.py-2-5 { padding-top: 0.75rem !important; padding-bottom: 0.75rem !important; }
.icon-24 { width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.bg-primary-subtle { background-color: var(--primary-light) !important; }
.bg-danger-subtle { background-color: #fef2f2 !important; }
.bg-success-subtle { background-color: #E0F2F1 !important; }
.bg-warning-subtle { background-color: #fffbeb !important; }
.bg-info-subtle { background-color: #eef2ff !important; }
.text-primary-subtle { color: var(--primary) !important; }
.text-danger-subtle { color: var(--danger) !important; }
.text-success-subtle { color: var(--success) !important; }
.text-warning-subtle { color: var(--warning) !important; }
.btn-ghost-primary { background: var(--primary-light); color: var(--primary); border-color: transparent; }
.btn-ghost-primary:hover { background: var(--primary); color: #fff; }
.select-multiple-tags { height: 100px; }
.icon-circle { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; }
.color-dot { width: 12px; height: 12px; display: inline-block; border-radius: 3px; }
.text-white-75 { color: rgba(255,255,255,0.75) !important; }
.bg-gray-50 { background: var(--gray-50) !important; }
.option-label { transition: all 0.15s ease; }
.step-circle { min-width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; font-size: 0.75rem; }
.hr-light { opacity: 0.3; }
.scroll-area { max-height: 500px; overflow-y: auto; }
.hero-pb-padding { padding-top: 5rem; padding-bottom: 5rem; }

/* ===== SECTION DIVIDER ===== */
.section-divider {
  width: 48px; height: 4px;
  background: var(--gradient-primary);
  border-radius: 100px;
  margin-bottom: 1rem;
}

/* ===== SECTION HEADER ===== */
.section-header { margin-bottom: 3rem; }
.section-header .section-divider { margin-bottom: 0.75rem; }
.section-header h2 {
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 0.5rem;
  font-size: 1.75rem;
}
.section-header p {
  color: var(--gray-500);
  font-size: 0.9375rem;
  margin-bottom: 0;
  max-width: 480px;
}
.section-header.text-center p { margin-left: auto; margin-right: auto; }
.section-header-compact { margin-bottom: 2rem; }
.section-header-compact h2 {
  font-weight: 800;
  color: var(--dark);
  font-size: 1.5rem;
  margin-bottom: 0.375rem;
}
.section-header-compact p {
  color: var(--gray-500);
  font-size: 0.875rem;
  margin-bottom: 0;
}

/* ============================================================
   ===  ADMIN LAYOUT — 2026 Bento Morph Design  ===
   ============================================================ */

/* ===== ADMIN TOPBAR ===== */
.admin-topbar {
  position: sticky; top: 0; z-index: 1050;
  height: var(--topbar-height);
  background: var(--topbar-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--topbar-border);
}
.admin-topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.25rem; height: 100%; max-width: 100%;
}
.admin-topbar-start { display: flex; align-items: center; gap: 0.5rem; }
.admin-topbar-end { display: flex; align-items: center; gap: 0.375rem; }
.admin-topbar-toggle {
  background: none; border: none; font-size: 1.125rem;
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); cursor: pointer;
  color: var(--gray-500); transition: var(--transition);
}
.admin-topbar-toggle:hover { background: var(--gray-100); color: var(--gray-800); }
.admin-topbar-brand { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.admin-topbar-logo { height: 24px; width: auto; }
.admin-topbar-logo-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border-radius: var(--radius-sm); font-size: 0.8125rem;
  background: var(--primary); color: #fff;
}
.admin-topbar-brand-text { font-weight: 800; font-size: 0.9375rem; letter-spacing: -0.02em; color: var(--gray-900); }
[data-theme="dark"] .admin-topbar-brand-text { color: #fff; }
.admin-topbar-badge {
  font-size: 0.5625rem; font-weight: 700; text-transform: uppercase;
  padding: 0.125rem 0.45rem; border-radius: 100px; letter-spacing: 0.04em;
  background: var(--primary-light); color: var(--primary);
}

/* ---- Topbar Actions ---- */
.admin-topbar-action {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  color: var(--gray-500); text-decoration: none;
  transition: var(--transition); border: none; background: none; cursor: pointer;
  position: relative;
}
.admin-topbar-action:hover { background: var(--gray-100); color: var(--gray-800); }
.admin-topbar-action i, .admin-topbar-action svg { width: 18px; height: 18px; }
.admin-topbar-avatar {
  background: none; border: none; display: flex; align-items: center;
  gap: 0.5rem; padding: 0.25rem 0.5rem 0.25rem 0.25rem;
  border-radius: 100px; cursor: pointer;
  transition: var(--transition);
}
.admin-topbar-avatar:hover { background: var(--gray-100); }
.avatar-circle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  font-size: 0.7rem; font-weight: 700; flex-shrink: 0;
  background: var(--primary-light); color: var(--primary);
}
.admin-topbar-avatar-name { font-size: 0.8125rem; font-weight: 600; color: var(--gray-700); display: none; }
@media (min-width: 768px) { .admin-topbar-avatar-name { display: inline; } }

/* ---- Dark Mode Toggle ---- */
.theme-toggle {
  width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  border: none; background: none;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--gray-500);
  transition: var(--transition);
}
.theme-toggle:hover { background: var(--gray-100); color: var(--gray-800); }
.theme-toggle .sun-icon { display: none; }
.theme-toggle .moon-icon { display: block; }
[data-theme="dark"] .theme-toggle .sun-icon { display: block; }
[data-theme="dark"] .theme-toggle .moon-icon { display: none; }

/* ===== ADMIN WRAPPER ===== */
.admin-wrapper {
  display: flex;
  min-height: calc(100vh - var(--topbar-height));
  background: var(--content-bg);
  position: relative;
}

/* ===== ADMIN SIDEBAR ===== */
.admin-sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  padding: 1rem 0;
  position: sticky;
  top: var(--topbar-height);
  height: calc(100vh - var(--topbar-height));
  max-height: calc(100vh - var(--topbar-height));
  overflow-y: auto;
  overflow-x: hidden;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              min-width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1040;
}
.admin-sidebar::-webkit-scrollbar { width: 3px; }
.admin-sidebar::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 100px; }

/* ---- Sidebar Collapsed ---- */
.admin-sidebar.is-collapsed {
  width: var(--sidebar-mini-width);
  min-width: var(--sidebar-mini-width);
}
.admin-sidebar.is-collapsed .sidebar-heading { display: none; }
.admin-sidebar.is-collapsed .nav-link span { display: none; }
.admin-sidebar.is-collapsed .nav-link { justify-content: center; padding: 0.6rem !important; margin: 0.125rem 0.5rem; }
.admin-sidebar.is-collapsed .nav-link i,
.admin-sidebar.is-collapsed .nav-link svg { margin: 0; }
.admin-sidebar.is-collapsed .sidebar-section-title { display: none; }

/* ---- Sidebar Nav Links ---- */
.admin-sidebar .nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 1rem !important;
  margin: 0.125rem 0.625rem;
  border-radius: 0.625rem;
  color: var(--sidebar-text);
  font-weight: 500;
  font-size: 0.875rem;
  transition: var(--transition-smooth);
  text-decoration: none;
  position: relative;
  white-space: nowrap;
  overflow: hidden;
}
.admin-sidebar .nav-link:hover {
  background: var(--gray-100);
  color: var(--sidebar-text-hover);
}
.admin-sidebar .nav-link.active {
  background: var(--primary) !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.25);
}
.admin-sidebar .nav-link i,
.admin-sidebar .nav-link svg {
  width: 18px; height: 18px;
  text-align: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.admin-sidebar .nav-link span { flex: 1; }
.admin-sidebar .sidebar-heading {
  padding: 1.25rem 1.25rem 0.375rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
  white-space: nowrap;
  overflow: hidden;
}
.admin-sidebar .sidebar-section-divider {
  height: 1px;
  background: var(--sidebar-border);
  margin: 0.75rem 1.25rem;
}

/* ---- Sidebar Profile ---- */
.admin-sidebar .sidebar-profile .rounded-3 {
    transition: var(--transition);
}
.admin-sidebar .sidebar-profile a:hover .rounded-3 {
    background: var(--gray-100);
}
.admin-sidebar .logout-link:hover {
    background: rgba(220,38,38,0.08);
    border-radius: 0.5rem;
}

/* ---- Sidebar Collapse Toggle ---- */
.sidebar-collapse-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.75rem;
  border: none;
  background: none;
  color: var(--gray-400);
  cursor: pointer;
  transition: var(--transition);
  margin-top: auto;
}
.sidebar-collapse-btn:hover { color: var(--gray-600); }
.is-collapsed .sidebar-collapse-btn svg { transform: rotate(180deg); }

/* ===== ADMIN CONTENT ===== */
.admin-content {
  flex: 1;
  padding: 2rem 2.5rem;
  background: var(--content-bg);
  min-width: 0;
  transition: padding 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== ADMIN SIDEBAR OVERLAY (mobile) ===== */
.admin-sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(4px);
  z-index: 1039;
}
.admin-sidebar.mobile-show {
  display: block !important;
  position: fixed; left: 0; top: var(--topbar-height);
  width: 280px !important;
  min-width: 280px !important;
  height: calc(100vh - var(--topbar-height)) !important;
  padding-bottom: 80px !important;
  z-index: 1041;
  box-shadow: var(--shadow-2xl);
}
.admin-sidebar-overlay.mobile-show { display: block; }

/* ===== ADMIN FOOTER ===== */
.admin-footer {
  border-top: 1px solid var(--sidebar-border);
  background: var(--sidebar-bg);
}
.admin-footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.625rem 2.5rem;
  font-size: 0.75rem;
}

/* ============================================================
   ===  BENTO GRID SYSTEM  ===
   ============================================================ */
.bento-grid {
  display: grid;
  gap: var(--bento-gap);
}
.bento-grid-2 { grid-template-columns: repeat(2, 1fr); }
.bento-grid-3 { grid-template-columns: repeat(3, 1fr); }
.bento-grid-4 { grid-template-columns: repeat(4, 1fr); }
.bento-grid-2-1 { grid-template-columns: 2fr 1fr; }
.bento-grid-1-2 { grid-template-columns: 1fr 2fr; }
.bento-grid-3-1 { grid-template-columns: 3fr 1fr; }

.bento-card {
  background: var(--card-bg);
  border-radius: var(--bento-radius);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  padding: 1.5rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}
.bento-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.bento-card .bento-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.125rem;
  flex-shrink: 0;
}
.bento-card .bento-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gray-500);
  margin-bottom: 0.125rem;
}
.bento-card .bento-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.2;
}
.bento-card .bento-trend {
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.bento-card .bento-trend.up { color: var(--success); }
.bento-card .bento-trend.down { color: var(--danger); }

/* Bento card with bottom blob decoration */
.bento-card::before {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -10%;
  width: 180px; height: 180px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.4;
  transition: opacity 0.4s;
}
.bento-card.blob-primary::before {
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.08) 0%, transparent 70%);
}
.bento-card.blob-success::before {
  background: radial-gradient(circle, rgba(16,185,129,0.08) 0%, transparent 70%);
}
.bento-card.blob-warning::before {
  background: radial-gradient(circle, rgba(245,158,11,0.08) 0%, transparent 70%);
}
.bento-card.blob-danger::before {
  background: radial-gradient(circle, rgba(239,68,68,0.08) 0%, transparent 70%);
}

/* ============================================================
   ===  COMMAND PALETTE  ===
   ============================================================ */
.cmd-palette-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
  animation: fadeIn 0.2s ease;
}
.cmd-palette-overlay.active { display: flex; }
.cmd-palette {
  width: 100%;
  max-width: 580px;
  background: var(--card-bg);
  border-radius: var(--bento-radius);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-2xl);
  overflow: hidden;
  animation: scaleIn 0.2s ease;
}
.cmd-palette-input-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--gray-100);
}
.cmd-palette-input-wrapper svg { color: var(--gray-400); width: 20px; height: 20px; flex-shrink: 0; }
.cmd-palette-input {
  flex: 1;
  border: none;
  background: none;
  font-size: 1rem;
  color: var(--gray-800);
  outline: none;
  font-family: var(--font-body);
}
.cmd-palette-input::placeholder { color: var(--gray-400); }
.cmd-palette-shortcut {
  font-size: 0.625rem;
  padding: 0.15rem 0.4rem;
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  color: var(--gray-400);
  font-weight: 600;
}
.cmd-palette-results { max-height: 320px; overflow-y: auto; padding: 0.5rem; }
.cmd-palette-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.625rem;
  text-decoration: none;
  color: var(--gray-700);
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
}
.cmd-palette-item:hover,
.cmd-palette-item.active {
  background: var(--gray-100);
  color: var(--gray-900);
}
.cmd-palette-item svg { width: 18px; height: 18px; color: var(--gray-400); flex-shrink: 0; }
.cmd-palette-empty {
  padding: 2rem;
  text-align: center;
  color: var(--gray-400);
  font-size: 0.8125rem;
}

/* ============================================================
   ===  PAGE TRANSITIONS  ===
   ============================================================ */
.page-enter {
  animation: pageEnter 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes pageEnter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   ===  STATS CARD (legacy compat)  ===
   ============================================================ */
.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--bento-radius);
  padding: 1.5rem;
  transition: var(--transition-smooth);
}
.stat-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.stat-card .stat-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.125rem; flex-shrink: 0;
}
.stat-card .stat-label {
  font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--gray-500); margin-bottom: 0.125rem;
}
.stat-card .stat-value { font-size: 1.5rem; font-weight: 800; color: var(--gray-900); line-height: 1.2; }

/* ============================================================
   ===  QUICK ACTION TILES (admin dashboard)  ===
   ============================================================ */
.quick-tile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}
.quick-tile {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 0.6rem;
  padding: 1rem 0.9rem;
  border-radius: 16px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--gray-900);
  text-decoration: none;
  transition: var(--transition-smooth);
}
.quick-tile:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: var(--gray-900);
  border-color: rgba(var(--primary-rgb), 0.35);
}
.quick-tile-ic {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.quick-tile-label { font-size: 0.78rem; font-weight: 700; line-height: 1.25; }

/* ============================================================
   ===  RELATED CONTENT LINKS (edit course)  ===
   ============================================================ */
.rel-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.7rem;
  border-radius: 12px;
  background: var(--gray-50, #f8fafc);
  border: 1px solid transparent;
  text-decoration: none;
  transition: var(--transition-smooth);
}
.rel-link:hover {
  background: var(--card-bg, #fff);
  border-color: rgba(var(--primary-rgb), 0.25);
  box-shadow: var(--shadow-md);
  transform: translateX(2px);
}
.rel-link-ic {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.8rem; flex-shrink: 0;
}
.rel-link-label {
  flex: 1;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gray-800, #262626);
}
.rel-link:hover .rel-link-label { color: var(--gray-900, #0D1830); }
.rel-link-arrow { font-size: 0.6rem; color: var(--gray-400, #94a3b8); }

/* ============================================================
   ===  TRANSACTION ROW (admin/transactions)  ===
   ============================================================ */
.tx-row { transition: background 0.15s ease; }
.tx-row:hover { background: var(--gray-50, #f8fafc); }
@media (max-width: 767px) {
  .tx-row { flex-wrap: wrap; gap: 0.4rem 0.7rem !important; padding: 0.8rem 0.9rem !important; }
  .tx-row > .flex-fill { order: 2; flex-basis: calc(100% - 4.5rem); }
  .tx-row > .text-end { order: 3; margin-left: auto; }
  .tx-row > div:nth-last-child(2) { order: 4; }
  .tx-row > div:last-child { order: 5; }
}

/* ============================================================
   ===  TAG CHIP (admin/tags)  ===
   ============================================================ */
.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.65rem 0.4rem 0.8rem;
  border-radius: 100px;
  background: var(--card-bg, #fff);
  border: 1px solid var(--gray-200, #e7e5e4);
  transition: var(--transition-smooth);
}
.tag-chip:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
  border-color: rgba(var(--primary-rgb), 0.35);
}
.tag-chip-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.tag-chip-name { font-size: 0.8rem; font-weight: 700; color: var(--gray-900, #0D1830); }
.tag-chip-en { font-size: 0.7rem; color: var(--gray-400, #94a3b8); }
.tag-chip-del {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  color: #dc2626;
  background: #fee2e2;
  font-size: 0.6rem;
  text-decoration: none;
  transition: var(--transition-smooth);
}
.tag-chip-del:hover { background: #dc2626; color: #fff; transform: scale(1.1); }

/* ============================================================
   ===  COUPON TICKET (admin/coupons)  ===
   ============================================================ */
.coupon-ticket { transition: var(--transition-smooth); position: relative; }
.coupon-ticket:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.coupon-divider {
  position: relative;
  border-top: 1.5px dashed var(--gray-200, #e7e5e4);
  margin: 0 0.5rem;
}
.coupon-divider::before, .coupon-divider::after {
  content: '';
  position: absolute;
  top: -8px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--page-bg, #f8fafc);
  border: 1px solid var(--card-border, #e7e5e4);
}
.coupon-divider::before { left: -8px; }
.coupon-divider::after { right: -8px; }

/* ============================================================
   ===  USER ROW CARD (admin/users) — standar list BISATUNTAS ===
   ============================================================ */
.user-row-card {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.9rem;
  background: var(--card-bg, #fff);
  border: 1px solid var(--card-border, #e7e5e4);
  border-radius: 14px;
  transition: var(--transition-smooth);
}
.user-row-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(var(--primary-rgb), 0.25);
}
@media (max-width: 575px) {
  .user-row-card { flex-wrap: wrap; }
  .user-row-card > .flex-fill { flex-basis: calc(100% - 3.2rem); }
}

/* ============================================================
   ===  SUBMISSION CARD (admin/submissions)  ===
   ============================================================ */
.sub-item { display: flex; flex-direction: column; gap: 0; }
.sub-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  background: var(--card-bg, #fff);
  border: 1px solid var(--card-border, #e7e5e4);
  border-radius: 14px;
  transition: var(--transition-smooth);
}
.sub-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(var(--primary-rgb), 0.25);
}

/* ============================================================
   ===  TRANSLATION ROW (admin/translations)  ===
   ============================================================ */
.tr-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.7rem 0.9rem;
  background: var(--card-bg, #fff);
  border: 1px solid var(--card-border, #e7e5e4);
  border-radius: 14px;
  transition: var(--transition-smooth);
}
.tr-row:hover { box-shadow: var(--shadow-md); border-color: rgba(var(--primary-rgb), 0.25); }
.tr-key {
  display: flex; align-items: center; gap: 0.4rem;
  flex-shrink: 0;
  min-width: 150px; max-width: 220px;
  font-family: 'Courier New', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gray-900, #0D1830);
  background: var(--gray-50, #f8fafc);
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tr-lang { font-size: 0.6rem; font-weight: 800; flex-shrink: 0; width: 24px; }
@media (max-width: 767px) {
  .tr-row { flex-wrap: wrap; }
  .tr-key { max-width: 100%; }
}

/* ============================================================
   ===  SETTINGS (admin/settings/*)  ===
   ============================================================ */
.settings-pill {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  border-radius: 100px;
  font-size: 0.76rem; font-weight: 700;
  color: var(--gray-600, #57534e);
  background: var(--gray-100, #f1f5f9);
  text-decoration: none;
  transition: var(--transition-smooth);
}
.settings-pill:hover { color: var(--gray-900, #0D1830); background: var(--gray-200, #e2e8f0); }
.settings-pill-active { background: #0D1830; color: #fff; }
.settings-pill-active:hover { background: #0D1830; color: #fff; }

.pay-method-row {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  border: 1px solid var(--card-border, #e7e5e4);
  background: var(--card-bg, #fff);
  cursor: pointer;
  transition: var(--transition-smooth);
}
.pay-method-row:hover { box-shadow: var(--shadow-md); }
.pay-method-row-active { border-color: rgba(var(--primary-rgb), 0.5); background: rgba(var(--primary-rgb), 0.03); }
.pay-method-row input.pay-method-check { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pay-method-toggle {
  width: 40px; height: 22px;
  border-radius: 100px;
  background: var(--gray-200, #e2e8f0);
  position: relative;
  flex-shrink: 0;
  transition: background 0.2s;
}
.pay-method-toggle-dot {
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: transform 0.2s;
}
.pay-method-row input:checked + .pay-method-toggle { background: var(--primary, #009688); }
.pay-method-row input:checked + .pay-method-toggle .pay-method-toggle-dot { transform: translateX(18px); }

/* ============================================================
   ===  PROFILE (public profile page)  ===
   ============================================================ */
.profile-link-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.8rem;
  border-radius: 12px;
  background: var(--gray-50, #f8fafc);
  border: 1px solid transparent;
  text-decoration: none;
  transition: var(--transition-smooth);
}
.profile-link-row:hover {
  background: var(--card-bg, #fff);
  border-color: rgba(var(--primary-rgb), 0.25);
  box-shadow: var(--shadow-md);
}

/* ============================================================
   ===  STUDENT DASHBOARD MINI CARDS  ===
   ============================================================ */
.course-mini-card {
  padding: 0.7rem;
  border-radius: 14px;
  background: var(--gray-50, #f8fafc);
  border: 1px solid transparent;
  transition: var(--transition-smooth);
  height: 100%;
}
.course-mini-card:hover {
  background: var(--card-bg, #fff);
  border-color: rgba(var(--primary-rgb), 0.25);
  box-shadow: var(--shadow-md);
}

/* ============================================================
   ===  MY SEMINARS & MY LEARNING PATHS (user pages)  ===
   ============================================================ */
.sem-mine-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.8rem 1rem;
  background: var(--card-bg, #fff);
  border: 1px solid var(--card-border, #e7e5e4);
  border-radius: 14px;
  transition: var(--transition-smooth);
}
.sem-mine-card:hover { box-shadow: var(--shadow-md); border-color: rgba(var(--primary-rgb), 0.25); }
.sem-date-up { background: #E0F2F1; color: #009688; }
.sem-date-past { background: var(--gray-100, #f1f5f9); color: #94a3b8; }
.lp-mine-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.8rem 1rem;
  background: var(--card-bg, #fff);
  border: 1px solid var(--card-border, #e7e5e4);
  border-radius: 14px;
  transition: var(--transition-smooth);
}
.lp-mine-card:hover { box-shadow: var(--shadow-md); border-color: rgba(var(--primary-rgb), 0.25); }

/* ============================================================
   ===  USER TRANSACTION CARD (mobile, transactions/history) ===
   ============================================================ */
.tx-user-card {
  background: var(--card-bg, #fff);
  border: 1px solid var(--card-border, #e7e5e4);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  box-shadow: var(--card-shadow, 0 1px 3px rgba(0,0,0,0.03));
}
#mobTxList { gap: 10px !important; }

/* ============================================================
   ===  CERTIFICATE CARDS (certificate/my)  ===
   ============================================================ */
.cert-card { transition: var(--transition-smooth); }
.cert-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.cert-share-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  color: #57534e;
  background: var(--gray-100, #f1f5f9);
  text-decoration: none;
  transition: var(--transition-smooth);
}
.cert-share-btn:hover { color: #fff; background: #0D1830; transform: scale(1.1); }

/* ============================================================
   ===  ROLE PERMISSION MATRIX (admin/role_permissions)  ===
   ============================================================ */
.perm-grid {
  display: grid;
  grid-template-columns: 1fr repeat(4, 44px);
  align-items: center;
  gap: 0.25rem;
}
.perm-grid-head span {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gray-400, #94a3b8);
}
.perm-act-create { color: #059669 !important; }
.perm-act-read { color: #2563eb !important; }
.perm-act-update { color: #d97706 !important; }
.perm-act-delete { color: #dc2626 !important; }
.perm-grid-row:hover { background: var(--gray-50, #f8fafc); }
.perm-module-name {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; font-weight: 600;
  color: var(--gray-900, #0D1830);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.perm-cell { display: flex; justify-content: center; cursor: pointer; }
.perm-cell input.perm-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.perm-box {
  width: 30px; height: 30px;
  border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
  background: var(--gray-100, #f1f5f9);
  color: var(--gray-300, #cbd5e1);
  border: 1px solid transparent;
  transition: var(--transition-smooth);
}
.perm-cell:hover .perm-box { border-color: var(--gray-300, #cbd5e1); }
.perm-cell-create input:checked + .perm-box { background: #d1fae5; color: #059669; }
.perm-cell-read input:checked + .perm-box { background: #dbeafe; color: #2563eb; }
.perm-cell-update input:checked + .perm-box { background: #fef3c7; color: #d97706; }
.perm-cell-delete input:checked + .perm-box { background: #fee2e2; color: #dc2626; }
.perm-input:focus-visible + .perm-box { outline: 2px solid var(--primary); outline-offset: 1px; }
@media (max-width: 767px) {
  .perm-grid { grid-template-columns: 1fr repeat(4, 36px); }
  .perm-box { width: 26px; height: 26px; font-size: 0.62rem; }
}

/* ---- Chip checkbox picker (package create/edit) ---- */
.perm-chip-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.chip-check { position: relative; cursor: pointer; }
.chip-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip-check span {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.74rem; font-weight: 600;
  color: var(--gray-600, #57534e);
  background: var(--gray-100, #f1f5f9);
  border: 1px solid transparent;
  border-radius: 100px;
  padding: 0.35rem 0.8rem;
  transition: var(--transition-smooth);
}
.chip-check:hover span { border-color: var(--gray-300, #cbd5e1); }
.chip-check-active span {
  background: #E0F2F1;
  color: #0d9488;
  border-color: #99f6e4;
  font-weight: 700;
}
.chip-check input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 1px; }

/* ---- Coupon demo ticket (coupon create) ---- */
.coupon-demo {
  display: flex;
  align-items: stretch;
  border-radius: 14px;
  overflow: hidden;
  border: 1px dashed var(--gray-300, #cbd5e1);
  background: #fff;
}
.coupon-demo-left {
  flex: 1;
  padding: 0.8rem 1rem;
  background: linear-gradient(135deg, #0D1830, #134e4a);
  color: #fff;
}
.coupon-demo-code {
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0.08em;
  font-family: 'Courier New', monospace;
}
.coupon-demo-meta { font-size: 0.66rem; color: rgba(255,255,255,0.7); margin-top: 0.15rem; }
.coupon-demo-right {
  display: flex; align-items: center; justify-content: center;
  padding: 0 0.9rem;
  background: #FBBF24;
  color: #0D1830;
  font-weight: 900;
  font-size: 1rem;
  white-space: nowrap;
}

/* ============================================================
   ===  SETTINGS  ===
   ============================================================ */
.settings-section { margin-bottom: 2.5rem; }
.settings-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--bento-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}
.settings-card .card-header {
  background: var(--card-bg);
  border-bottom: 1px solid var(--gray-100);
  padding: 1.25rem 1.5rem;
  font-weight: 700; font-size: 1rem;
}
.settings-card .card-body { padding: 1.5rem; }
.settings-card .card-footer {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-100);
  padding: 1rem 1.5rem;
}

/* ===== TOGGLE SWITCH ===== */
.form-switch.form-switch-md { padding-left: 3rem; }
.form-switch.form-switch-md .form-check-input {
  width: 2.5rem; height: 1.35rem;
  margin-left: -3rem;
}
.form-switch .form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

/* ===== COLOR PICKER ===== */
.color-picker-wrapper { display: flex; align-items: center; gap: 0.75rem; }
.color-picker-wrapper input[type="color"] {
  width: 44px; height: 44px;
  padding: 3px; border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm); cursor: pointer; background: var(--card-bg);
}
.color-picker-wrapper input[type="text"] { flex: 1; }

/* ===== IMAGE UPLOAD PREVIEW ===== */
.image-upload-wrapper { display: flex; align-items: center; gap: 1rem; }
.image-upload-wrapper .preview {
  width: 80px; height: 80px;
  border-radius: var(--radius-sm);
  border: 2px dashed var(--gray-200);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: var(--gray-50);
}
.image-upload-wrapper .preview img { width: 100%; height: 100%; object-fit: cover; }
.image-upload-wrapper .upload-controls { flex: 1; }

/* ===== TABS MODERN ===== */
.tabs-modern .nav-link {
  border: none; border-radius: var(--radius-sm);
  padding: 0.5rem 1rem;
  font-weight: 600; font-size: 0.875rem;
  color: var(--gray-500); transition: var(--transition);
}
.tabs-modern .nav-link:hover { color: var(--primary); background: var(--primary-light); }
.tabs-modern .nav-link.active { color: var(--primary); background: var(--primary-light); }

/* ===== SETTINGS NAV PILLS ===== */
.settings-nav-pills {
  display: flex; gap: 0.375rem; flex-wrap: wrap;
  margin-bottom: 2rem;
}
.settings-nav-pills .pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.475rem 1rem;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-smooth);
  background: var(--card-bg);
  color: var(--gray-600);
  border: 1px solid var(--card-border);
}
.settings-nav-pills .pill:hover {
  background: var(--gray-100);
  color: var(--gray-800);
  border-color: var(--gray-200);
}
.settings-nav-pills .pill.active {
  background: var(--primary) !important;
  color: #fff !important;
  border-color: var(--primary) !important;
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.2);
}
.settings-nav-pills .pill svg { width: 16px; height: 16px; }

/* ============================================================
   ===  QUIZ  ===
   ============================================================ */
.quiz-timer { position: sticky; top: 90px; z-index: 10; }
.quiz-option {
  border: 2px solid var(--gray-200); border-radius: var(--radius-sm);
  padding: 0.75rem 1rem; cursor: pointer; transition: var(--transition);
}
.quiz-option:hover { border-color: var(--primary); background: var(--primary-light); }
.quiz-option.selected { border-color: var(--primary); background: var(--primary-light); }
.quiz-option.correct { border-color: var(--success); background: #E0F2F1; }
.quiz-option.incorrect { border-color: var(--danger); background: #fef2f2; }

/* ============================================================
   ===  EMPTY STATE  ===
   ============================================================ */
.empty-state { padding: 4rem 2rem; text-align: center; }
.empty-state i { font-size: 3rem; color: var(--gray-300); margin-bottom: 1rem; }
.empty-state h5 { font-weight: 700; color: var(--gray-700); margin-bottom: 0.375rem; }
.empty-state p { color: var(--gray-500); font-size: 0.875rem; max-width: 360px; margin: 0 auto; }

/* ============================================================
   ===  VIDEO / CONTENT / MISC  ===
   ============================================================ */
.video-container { position: relative; width: 100%; background: var(--dark); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.video-container iframe, .video-container video { width: 100%; height: 100%; border: 0; }
.content-body { background: var(--gray-50); border-radius: var(--radius-sm); padding: 1.5rem; line-height: 1.7; }
.content-card {
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  overflow: hidden;
  transition: var(--transition-slow);
  box-shadow: var(--card-shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.content-card:hover { box-shadow: var(--shadow-xl); transform: translateY(-6px); }
.content-card .card-thumb img { width: 100%; height: 180px; object-fit: cover; transition: transform 0.4s ease; }
.content-card:hover .card-thumb img { transform: scale(1.05); }
.content-card .card-body-custom { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.info-box { background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius-sm); padding: 0.75rem 1rem; }

/* ===== LEGACY MIXINS ===== */
.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.avatar-sm { width: 32px; height: 32px; }
.avatar-lg { width: 56px; height: 56px; }
.avatar-xl { width: 80px; height: 80px; }
.avatar-2xl { width: 120px; height: 120px; }
.icon-18 { width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.icon-24 { width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.icon-28 { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.icon-32 { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.icon-36 { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.icon-40 { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.icon-44 { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.icon-48 { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.icon-52 { width: 52px; height: 52px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.icon-56 { width: 56px; height: 56px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.icon-64 { width: 64px; height: 64px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.thumb-md { width: 72px; height: 44px; object-fit: cover; border-radius: var(--radius-sm); }
.thumb-sm { width: 60px; height: 44px; object-fit: cover; border-radius: var(--radius-sm); }
.thumb-xs { width: 50px; height: 34px; object-fit: cover; border-radius: 4px; }
.col-w-60 { width: 60px; min-width: 60px; }
.col-w-80 { width: 80px; min-width: 80px; }
.col-w-120 { width: 120px; min-width: 120px; }
.col-w-150 { width: 150px; min-width: 150px; }
.section-icon {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); flex-shrink: 0;
}
.sticky-sidebar { position: sticky; top: 90px; }
.step-circle {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.875rem;
}
.step-circle.active { background: var(--gradient-primary); color: #fff; }
.step-circle.completed { background: var(--success); color: #fff; }
.step-circle.pending { background: var(--gray-200); color: var(--gray-500); }
.step-connector { flex: 1; height: 2px; background: var(--gray-200); margin: 0 0.5rem; }
.step-connector.active { background: var(--primary); }
.error-page { min-height: 80vh; display: flex; align-items: center; justify-content: center; }
.error-page .error-code {
  font-size: 6rem; font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.page-header { padding: 2.5rem 0 1.5rem; margin-bottom: 2rem; border-bottom: 1px solid var(--gray-100); }
.page-header h1 { font-weight: 800; font-size: 1.75rem; color: var(--gray-900); margin-bottom: 0.25rem; }
.page-header p { color: var(--gray-500); margin-bottom: 0; font-size: 0.9375rem; }

/* ===== FOOTER (frontend, not admin) ===== */
.footer-social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.5); text-decoration: none;
  transition: all 0.2s;
}
.footer-social-link:hover { background: rgba(255,255,255,0.12); color: #fff; }
.footer-link { color: rgba(255,255,255,0.5) !important; text-decoration: none; transition: color 0.2s; }
.footer-link:hover { color: #fff !important; }

/* ============================================================
   ===  2026 FORM DESIGN SYSTEM  ===
   ============================================================ */

/* ===== FLOATING LABELS ===== */
.form-float {
  position: relative;
  margin-bottom: 1.25rem;
}
.form-float .fl-label {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-400);
  pointer-events: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--card-bg);
  padding: 0 0.25rem;
  z-index: 1;
  transform-origin: left center;
}
.form-float textarea ~ .fl-label {
  top: 1rem;
  transform: none;
}
.form-float .form-control,
.form-float .form-select {
  height: 52px;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  padding: 1.25rem 1rem 0.375rem;
  font-size: 0.875rem;
  transition: var(--transition-smooth);
  background: var(--card-bg);
  color: var(--gray-800);
  width: 100%;
}
.form-float textarea.form-control {
  height: auto;
  min-height: 52px;
  padding-top: 1.5rem;
}
.form-float .form-control:focus,
.form-float .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1), 0 4px 12px rgba(var(--primary-rgb), 0.06);
  outline: none;
}
.form-float .form-control:focus ~ .fl-label,
.form-float .form-select:focus ~ .fl-label,
.form-float .form-control:not(:placeholder-shown) ~ .fl-label,
.form-float .form-select:not([value=""]):not([value="0"]) ~ .fl-label {
  top: 0.25rem;
  transform: translateY(0) scale(0.82);
  color: var(--primary);
}
.form-float .form-control.is-valid ~ .fl-label { color: var(--success); }
.form-float .form-control.is-invalid ~ .fl-label { color: var(--danger); }
.form-float .fl-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  pointer-events: none;
  width: 18px; height: 18px;
}
.form-float textarea ~ .fl-icon {
  top: 1rem;
  transform: none;
}

/* ===== INPUT WITH ICON ===== */
.input-icon-wrap {
  position: relative;
}
.input-icon-wrap .input-icon-left {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  pointer-events: none;
  width: 18px; height: 18px;
  z-index: 2;
}
.input-icon-wrap textarea ~ .input-icon-left {
  top: 1rem;
  transform: none;
}
.input-icon-wrap .form-control { padding-left: 2.75rem; }

/* ===== GLASS SECTION HEADER ===== */
.section-glass {
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.04), rgba(var(--primary-rgb), 0.01));
  border-bottom: 1px solid rgba(var(--primary-rgb), 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.section-glass svg { color: var(--primary); }

/* ===== LOADING BUTTON ===== */
.btn-loading {
  position: relative;
  pointer-events: none;
  color: transparent !important;
}
.btn-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  border-radius: inherit;
}
.btn-loading::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2.5px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btnSpin 0.65s linear infinite;
  z-index: 1;
}
.btn-loading.btn-outline-secondary::before {
  border-color: rgba(0,0,0,0.1);
  border-top-color: var(--gray-600);
}
@keyframes btnSpin {
  to { transform: rotate(360deg); }
}

/* ===== CHARACTER COUNTER ===== */
.char-counter {
  font-size: 0.6875rem;
  color: var(--gray-400);
  text-align: right;
  margin-top: 0.25rem;
  font-weight: 500;
  transition: color 0.2s;
}
.char-counter.warning { color: var(--warning); }
.char-counter.danger { color: var(--danger); }

/* ===== AUTO-SAVE INDICATOR ===== */
.autosave-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.6875rem;
  color: var(--gray-400);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  font-weight: 500;
  transition: all 0.2s;
}
.autosave-indicator.saved {
  color: var(--success);
  background: rgba(16,185,129,0.08);
}
.autosave-indicator.saving {
  color: var(--warning);
  background: rgba(245,158,11,0.08);
}
.autosave-indicator svg { width: 14px; height: 14px; }

/* ===== FORM VALIDATION ===== */
.form-control.is-valid,
.was-validated .form-control:valid {
  border-color: var(--success);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.12);
}
.form-control.is-invalid,
.was-validated .form-control:invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(239,68,68,0.12);
}
.invalid-feedback {
  font-size: 0.75rem;
  font-weight: 500;
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}
.invalid-feedback svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ===== STICKY FORM FOOTER ===== */
.form-footer-sticky {
  position: sticky;
  bottom: 0;
  z-index: 10;
  background: var(--card-bg);
  border-top: 1px solid var(--card-border);
  padding: 1rem 1.5rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  margin: 0 -1px -1px;
  border-radius: 0 0 var(--bento-radius) var(--bento-radius);
}

/* ===== FORM DIVIDER WITH TEXT ===== */
.form-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  color: var(--gray-400);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.form-divider::before,
.form-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}

/* ===== FIELD HINT ===== */
.field-hint {
  font-size: 0.6875rem;
  color: var(--gray-400);
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}
.field-hint svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ===== CUSTOM CHECKBOX TOGGLE ===== */
.toggle-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}
.toggle-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-switch .track {
  width: 44px;
  height: 24px;
  background: var(--gray-200);
  border-radius: 100px;
  transition: var(--transition);
  position: relative;
  flex-shrink: 0;
}
.toggle-switch .track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: var(--transition-bounce);
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.toggle-switch input:checked + .track {
  background: var(--primary);
}
.toggle-switch input:checked + .track::after {
  left: 23px;
}
.toggle-switch .toggle-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-700);
}

/* ===== RESPONSIVE  ===
   ============================================================ */
/* ===== MOBILE APP-STYLE BOTTOM NAV ===== */
.app-bottom-nav {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: calc(64px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--sidebar-border, #f0eeeb);
  z-index: 1050;
  box-shadow: 0 -8px 24px -12px rgba(0,0,0,0.12);
}
.playful[data-theme="dark"] .app-bottom-nav {
  background: rgba(12,10,9,0.92);
  border-top-color: #292524;
}
.app-bottom-nav-inner {
  max-width: 480px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  padding: 0 0.5rem;
}
.app-bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-decoration: none;
  color: var(--gray-400, #a3a3a3);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: none;
  background: none;
  padding: 0;
  position: relative;
  transition: color 0.2s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.app-bottom-nav a:active { transform: scale(0.92); }
.app-bottom-nav a svg,
.app-bottom-nav a i {
  width: 22px; height: 22px;
  stroke-width: 2.2;
  transition: transform 0.2s ease;
}
.app-bottom-nav a.active {
  color: var(--primary, #009688);
  font-weight: 700;
}
.app-bottom-nav a.active::before {
  content: '';
  position: absolute;
  top: 0;
  width: 24px; height: 3px;
  border-radius: 0 0 4px 4px;
  background: var(--primary, #009688);
}
.app-bottom-nav .bn-badge {
  position: absolute;
  top: 8px;
  right: calc(50% - 20px);
  min-width: 16px; height: 16px;
  padding: 0 4px;
  border-radius: 100px;
  background: var(--danger, #ef4444);
  color: #fff;
  font-size: 0.55rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 2px #fff;
}
.playful[data-theme="dark"] .app-bottom-nav .bn-badge { box-shadow: 0 0 0 2px #0c0a09; }

/* Mobile: bottom nav visible, footer hidden (student pages only) */
@media (max-width: 768px) {
  .app-bottom-nav { display: block; }
  .admin-footer { display: none; }
  body.has-bottom-nav { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  body.has-bottom-nav .admin-wrapper { min-height: calc(100vh - var(--topbar-height) - 64px); }
}

/* Prevent any horizontal overflow on mobile from dashboard app styles */
@media (max-width: 768px) {
  .admin-content, .dashboard-mobile-only { overflow-x: clip; }
}

/* ===== MOBILE APP-STYLE DASHBOARD (student) ===== */
.mob-hero-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  padding: 1.25rem 1.25rem 1.4rem;
  color: #fff;
  background: linear-gradient(135deg, #009688 0%, #009688 60%, #34d399 100%);
  box-shadow: 0 12px 28px -10px rgba(5,150,105,0.45);
  margin-bottom: 1rem;
}
.playful[data-theme="dark"] .mob-hero-card {
  box-shadow: 0 12px 28px -10px rgba(5,150,105,0.25);
}
.mob-hero-card::after {
  content: '';
  position: absolute;
  right: -30px; top: -40px;
  width: 150px; height: 150px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
}
.mob-hero-card::before {
  content: '';
  position: absolute;
  right: 40px; bottom: -50px;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}
.mob-hero-card > * { position: relative; z-index: 1; }
.mob-hero-greeting {
  font-size: 0.72rem;
  font-weight: 500;
  opacity: 0.85;
  margin-bottom: 0.1rem;
}
.mob-hero-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.9rem;
  display: flex; align-items: center; gap: 0.4rem;
}
.mob-hero-name .wave { display: inline-block; animation: mobWave 2s ease-in-out infinite; transform-origin: 70% 70%; }
@keyframes mobWave {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(14deg); }
  50% { transform: rotate(-6deg); }
  75% { transform: rotate(8deg); }
}
.mob-hero-stats {
  display: flex;
  gap: 0.75rem;
}
.mob-hero-stat {
  flex: 1;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 14px;
  padding: 0.65rem 0.5rem;
  text-align: center;
  backdrop-filter: blur(4px);
}
.mob-hero-stat b {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.2;
}
.mob-hero-stat span {
  font-size: 0.6rem;
  font-weight: 600;
  opacity: 0.9;
}

.mob-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1.15rem 0 0.6rem;
}
.mob-section-head h6 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--gray-900, #0D1830);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.mob-section-head a {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary, #009688);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  white-space: nowrap;
}

.mob-scroll-x {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  padding: 0.25rem 0 0.6rem;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  width: 100%;
}
.mob-scroll-x::-webkit-scrollbar { display: none; }
.mob-scroll-x > * { scroll-snap-align: start; flex-shrink: 0; max-width: 100%; }

.mob-course-card {
  width: min(210px, 68vw);
  flex: 0 0 min(210px, 68vw);
  background: var(--card-bg, #fff);
  border: 1px solid var(--card-border, #e7e5e4);
  border-radius: 16px;
  padding: 0.85rem;
  text-decoration: none;
  box-shadow: var(--card-shadow, 0 1px 3px rgba(0,0,0,0.03));
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mob-course-card:active { transform: scale(0.97); }
.mob-course-thumb {
  height: 84px;
  border-radius: 12px;
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #fff;
  background: linear-gradient(135deg, #009688, #009688);
  overflow: hidden;
}
.mob-course-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mob-course-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gray-900, #0D1830);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.1em;
  margin-bottom: 0.5rem;
}
.mob-progress-track {
  height: 6px;
  border-radius: 100px;
  background: var(--gray-200, #e7e5e4);
  overflow: hidden;
}
.mob-progress-track > div {
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, #009688, #009688);
}
.mob-course-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.4rem;
}
.mob-course-meta span {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--gray-500, #78716c);
}
.mob-course-meta b {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--primary, #009688);
}

/* Mobile quick actions grid (2x2) */
.mob-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin-top: 0.6rem;
}
.mob-quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  background: var(--card-bg, #fff);
  border: 1px solid var(--card-border, #e7e5e4);
  border-radius: 16px;
  padding: 0.8rem 0.3rem;
  box-shadow: var(--card-shadow, 0 1px 3px rgba(0,0,0,0.03));
  transition: transform 0.15s ease;
}
.mob-quick-item:active { transform: scale(0.94); }
.mob-quick-item .qi-ic {
  width: 38px; height: 38px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
}
.mob-quick-item span {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--gray-600, #57534e);
  text-align: center;
  line-height: 1.2;
}

/* Mobile list rows */
.mob-list-card {
  background: var(--card-bg, #fff);
  border: 1px solid var(--card-border, #e7e5e4);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--card-shadow, 0 1px 3px rgba(0,0,0,0.03));
}
.mob-list-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 0.9rem;
  text-decoration: none;
  border-bottom: 1px solid var(--gray-100, #f5f5f5);
}
.mob-list-row:last-child { border-bottom: none; }
.mob-list-row:active { background: var(--gray-50, #fafafa); }
.mob-avatar {
  width: 38px; height: 38px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
}
.mob-list-body { flex: 1; min-width: 0; }
.mob-list-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gray-900, #0D1830);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mob-list-sub {
  font-size: 0.68rem;
  color: var(--gray-500, #78716c);
  margin-top: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mob-chip {
  flex-shrink: 0;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 100px;
  white-space: nowrap;
}
.mob-chip-green { background: #E0F2F1; color: #009688; }
.mob-chip-amber { background: #fffbeb; color: #d97706; }
.mob-chip-red { background: #fef2f2; color: #dc2626; }
.mob-chip-gray { background: #E6EBEF; color: #78716c; }
.playful[data-theme="dark"] .mob-chip-green { background: #064e3b; color: #6ee7b7; }
.playful[data-theme="dark"] .mob-chip-amber { background: #78350f; color: #fcd34d; }
.playful[data-theme="dark"] .mob-chip-red { background: #7f1d1d; color: #fca5a5; }
.playful[data-theme="dark"] .mob-chip-gray { background: #292524; color: #a8a29e; }
.mob-list-row .mob-chev {
  color: var(--gray-300, #d4d4d4);
  font-size: 0.7rem;
  flex-shrink: 0;
}
.mob-empty {
  text-align: center;
  padding: 1.6rem 1rem;
  color: var(--gray-400, #a3a3a3);
}
.mob-empty i { font-size: 1.8rem; margin-bottom: 0.5rem; display: block; opacity: 0.6; }
.mob-empty p { font-size: 0.78rem; margin-bottom: 0.4rem; color: var(--gray-500, #78716c); }
.mob-empty a { font-size: 0.75rem; font-weight: 700; color: var(--primary, #009688); text-decoration: none; }

/* ===== ADMIN MOBILE DASHBOARD ===== */
.admin-mob-hero {
  background: linear-gradient(135deg, #0D1830 0%, #134e4a 55%, #009688 100%);
  box-shadow: 0 12px 28px -10px rgba(13,24,48,0.45);
}
.playful[data-theme="dark"] .admin-mob-hero {
  box-shadow: 0 12px 28px -10px rgba(13,24,48,0.6);
}
.admin-mob-hero::after {
  right: -30px; top: -40px;
  width: 150px; height: 150px;
  background: rgba(255,255,255,0.08);
}
.admin-mob-hero::before {
  right: 40px; bottom: -50px;
  width: 100px; height: 100px;
  background: rgba(255,255,255,0.06);
}
/* 4 stat di layar sempit: angka sedikit lebih kecil */
.admin-mob-hero .mob-hero-stat { padding: 0.55rem 0.3rem; }
.admin-mob-hero .mob-hero-stat b { font-size: 0.92rem; }
@media (max-width: 360px) {
  .admin-mob-hero .mob-hero-stat b { font-size: 0.8rem; }
  .admin-mob-hero .mob-hero-stat span { font-size: 0.55rem; }
}
/* Transaksi mobile: baris non-link, tap area nyaman */
.mob-list-row.mob-row-static { cursor: default; }
.mob-list-row.mob-row-static:active { background: transparent; }
/* Canvas mobile jangan meluber */
.dashboard-mobile-only canvas { max-width: 100%; }

/* Desktop: hide mobile app styles inside dashboard */
.dashboard-mobile-only { display: none; }
@media (max-width: 768px) {
  .dashboard-mobile-only { display: block; }
  .dashboard-desktop-only { display: none !important; }
}

/* ===== BANNER CAROUSEL (Gaya Tokopedia/Shopee) ===== */
.tp-carousel {
  position: relative;
  width: 100%;
  margin-bottom: 1.25rem;
}
.tp-carousel-inner {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #E6EBEF;
}
.tp-carousel-inner .carousel-item {
  transition: transform 0.45s ease, opacity 0.45s ease;
}
.tp-banner-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}
.tp-banner-placeholder {
  height: 140px;
  background: linear-gradient(135deg, #009688 0%, #009688 60%, #34d399 100%);
  color: #fff;
}
.tp-ph-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.tp-ph-sub {
  font-size: 0.7rem;
  opacity: 0.85;
  font-weight: 600;
  letter-spacing: 0.18em;
  margin-top: 0.25rem;
}

/* ---- Dots (kiri bawah, khas Tokopedia) ---- */
.tp-dots {
  position: absolute;
  left: 14px;
  bottom: 12px;
  display: flex;
  gap: 4px;
  z-index: 5;
}
.tp-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 100px;
  border: none;
  background: rgba(255,255,255,0.65);
  transition: all 0.25s ease;
  cursor: pointer;
}
.tp-dots button.active {
  width: 22px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

/* ---- Panah (muncul saat hover di desktop) ---- */
.tp-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  border: none;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 6;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  cursor: pointer;
}
.tp-carousel:hover .tp-arrow {
  opacity: 1;
}
.tp-arrow-prev { left: 12px; }
.tp-arrow-next { right: 12px; }
.tp-arrow:hover {
  transform: translateY(-50%) scale(1.06);
  background: #fff;
}
.tp-arrow-ic {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #0D1830;
}

@media (min-width: 768px) {
  .tp-banner-img,
  .tp-banner-placeholder { height: 240px; }
  .tp-carousel-inner { border-radius: 18px; }
  .tp-ph-title { font-size: 1.6rem; }
  .tp-arrow { width: 46px; height: 46px; }
}
/* Mobile: panah selalu tampil tipis (khas Shopee app) */
@media (max-width: 767px) {
  .tp-arrow {
    opacity: 0.85;
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.85);
  }
  .tp-arrow-ic { font-size: 0.65rem; }
}

@media (max-width: 768px) {
  .navbar { padding-top: 0.625rem; padding-bottom: 0.625rem; }
  .display-4 { font-size: 2rem !important; }
  .display-5 { font-size: 1.75rem !important; }
  .hero-section::before, .hero-section::after { display: none; }
  .admin-sidebar { display: none; }
  .admin-content { padding: 1.25rem 1rem; }
  .admin-footer-inner { padding: 0.5rem 1rem; }
  .section-header h2 { font-size: 1.375rem; }
  .stat-card { padding: 1rem; }
  .stat-card .stat-value { font-size: 1.25rem; }
  .error-page .error-code { font-size: 4rem; }
  .bento-grid-2, .bento-grid-3, .bento-grid-4,
  .bento-grid-2-1, .bento-grid-1-2, .bento-grid-3-1 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 992px) {
  .admin-sidebar:not(.mobile-show) { display: none; }
  .bento-grid-3, .bento-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .bento-grid-2-1, .bento-grid-1-2, .bento-grid-3-1 { grid-template-columns: 1fr; }
}
@media (min-width: 993px) {
  .admin-sidebar { display: block; }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 100px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* ===== PRINT ===== */
@media print { .navbar, .admin-sidebar, .btn { display: none !important; } .admin-content { padding: 0 !important; } }

/* ===== COURSES PAGE ===== */
.hero-section {
    background: linear-gradient(180deg, var(--light) 0%, var(--gray-50) 100%);
    border-bottom: 1px solid var(--gray-200);
}
.hero-section h1 {
    letter-spacing: -0.03em;
}
.filter-card {
    background-color: var(--white);
    border: 1px solid var(--gray-200) !important;
}
.course-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    background: var(--white);
}
.course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1) !important;
}
.course-card img {
    transition: transform 0.4s ease;
}
.course-card:hover img {
    transform: scale(1.05);
}
.hover-text-primary:hover {
    color: var(--primary) !important;
}
.form-label {
    font-size: 0.875rem;
    margin-bottom: 0.35rem;
}
.payment-methods-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}
@media (min-width: 992px) {
    .payment-methods-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
.payment-methods-grid .payment-method-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 90px;
}

.form-control-sm,
.form-select-sm {
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    padding: 0.5rem 0.875rem;
}
/* ===== MENTORING CARDS (palet logo) ===== */
.mentor-card-hover { transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease; }
.mentor-card-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px -6px rgba(13,24,48,0.14) !important;
    border-color: rgba(0,150,136,0.35) !important;
}

/* ===== MENTORING HALAMAN PUBLIK — mobile app-style ===== */
.mh-mob-card {
  display: block;
  background: #fff;
  border: 1px solid #E6EBEF;
  border-radius: 16px;
  padding: 0.9rem;
  box-shadow: 0 1px 3px rgba(13,24,48,0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.mh-mob-card:active { transform: scale(0.98); }

@media (max-width: 991.98px) {
  .mh-hero-inner { padding-top: 2.2rem; padding-bottom: 2.2rem; }
  .mh-title { font-size: 1.45rem !important; }
  .mh-sub { font-size: 0.85rem !important; }
  .mh-badge { font-size: 0.65rem !important; }
  .mh-stats { gap: 1rem; font-size: 0.8rem; }
  .mh-stat-divider { width: 1px; background: rgba(255,255,255,0.2); }
  .mh-steps { flex-wrap: wrap; }
  .mh-step { font-size: 0.72rem; padding: 0.5rem 0.75rem !important; }
  .mh-chip { font-size: 0.72rem !important; padding: 0.45rem 0.85rem !important; }
}
@media (min-width: 992px) {
  .mh-hero-inner { padding-top: 3.5rem; padding-bottom: 3rem; }
  .mh-title { font-size: 2rem !important; }
  .mh-sub { font-size: 0.95rem !important; }
  .mh-stats { gap: 1.5rem; font-size: 0.85rem; }
  .mh-stat-divider { width: 1px; background: rgba(255,255,255,0.2); }
}

/* ===== MENTORING PANEL HERO (student, logged-in) ===== */
@media (max-width: 767.98px) {
  .mn-panel-hero { padding: 1rem 1.1rem !important; border-radius: 16px !important; }
  .mn-panel-hero h5 { font-size: 1rem !important; }
}

/* ===== MENTOR CARD (panel student, login) — cover + avatar overlap ===== */
.mn-card {
  display: block;
  position: relative;
  background: #fff;
  border: 1px solid #E6EBEF;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(13,24,48,0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.mn-card:hover, .mn-card-desktop:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -8px rgba(13,24,48,0.16);
  border-color: rgba(0,150,136,0.35);
}
.mn-card:active { transform: scale(0.99); }

.mn-cover {
  position: relative;
  height: 64px;
  background-size: cover;
}
.mn-cover-watermark {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.8rem;
  font-weight: 800;
  color: rgba(255,255,255,0.14);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.mn-price-badge {
  position: absolute;
  right: 12px;
  bottom: 10px;
  background: #FBBF24;
  color: #0D1830;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 0.28rem 0.6rem;
  border-radius: 100px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.18);
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
  white-space: nowrap;
  z-index: 3;
}
.mn-price-unit { font-size: 0.6rem; font-weight: 600; opacity: 0.75; }

.mn-avatar-wrap {
  margin-top: -30px;
  margin-left: 14px;
  width: 60px;
  height: 60px;
  position: relative;
  z-index: 2;
}
.mn-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(13,24,48,0.15);
  display: flex;
  background: #E0F2F1;
}
.mn-avatar-initial {
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  color: #fff;
  background: linear-gradient(135deg,#009688,#00796B);
}

.mn-body { padding: 0.5rem 1rem 1rem; }
.mn-name { color: #0D1830; font-size: 0.92rem; }
.mn-title { color: #78716c; font-size: 0.76rem; }
.mn-rating { color: #0D1830; font-size: 0.76rem; }
.mn-reviews { color: #a8a29e; font-size: 0.7rem; }
.mn-bio {
  color: #78716c;
  font-size: 0.76rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mn-chip {
  background: #E6EBEF;
  color: #57534E;
  font-size: 0.63rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
}
.mn-footer { border-top: 1px solid #f0eeeb; }
.mn-meta { color: #a8a29e; font-size: 0.68rem; }
.mn-view { color: #009688; font-size: 0.75rem; font-weight: 700; }

.mn-card-desktop { display: flex; flex-direction: column; }
.mn-card-desktop .mn-body { flex: 1; display: flex; flex-direction: column; }

/* ===== LEARNING PATHS mobile card ===== */
.lp-mob-card {
  display: block;
  background: #fff;
  border: 1px solid #E6EBEF;
  border-radius: 16px;
  padding: 0.9rem;
  box-shadow: 0 1px 3px rgba(13,24,48,0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.lp-mob-card:active { transform: scale(0.98); }

/* ============================================================
   ===  ADMIN MODULES — UNIFIED APP THEME (mobile-first)  ===
   Satu tema untuk semua modul admin: mobile = app cards,
   desktop = card grid premium dengan aksen yang sama.
   ============================================================ */

/* ---- Page container & header ---- */
.app-page { padding: 1rem 1rem 2rem; max-width: 1440px; margin: 0 auto; }
.app-page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 1.1rem; }
.app-page-title { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; color: var(--gray-900, #0D1830); margin: 0; display: flex; align-items: center; gap: 0.55rem; }
.app-page-title i, .app-page-title svg { color: var(--primary, #009688); font-size: 1rem; }
.app-page-sub { font-size: 0.78rem; color: var(--gray-500, #78716c); margin: 0.15rem 0 0; }
.app-page-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.app-btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  border-radius: 100px; border: 1px solid var(--card-border, #e7e5e4);
  background: var(--card-bg, #fff); color: var(--gray-600, #57534e);
  font-size: 0.78rem; font-weight: 700; padding: 0.5rem 0.95rem;
  text-decoration: none; transition: var(--transition); cursor: pointer;
}
.app-btn:hover { background: var(--gray-100, #f5f5f5); color: var(--gray-800, #262626); }
.app-btn-primary { background: linear-gradient(135deg, #0D1830, #134e4a); color: #fff; border: none; box-shadow: 0 4px 14px -4px rgba(13,24,48,0.4); }
.app-btn-primary:hover { color: #fff; filter: brightness(1.1); }
.app-btn-success { background: var(--primary, #009688); color: #fff; border: none; }
.app-btn-success:hover { color: #fff; filter: brightness(1.05); }
.app-btn-danger { background: #fef2f2; color: #dc2626; border-color: #fecaca; }
.app-btn-danger:hover { background: #fee2e2; color: #b91c1c; }
.app-btn-sm { padding: 0.32rem 0.7rem; font-size: 0.7rem; }
.app-btn-icon { width: 32px; height: 32px; padding: 0; justify-content: center; }

/* ---- Cards & grid ---- */
.app-card {
  background: var(--card-bg, #fff);
  border: 1px solid var(--card-border, #e7e5e4);
  border-radius: 16px;
  box-shadow: var(--card-shadow, 0 1px 3px rgba(0,0,0,0.03));
  overflow: hidden;
}
.app-card-pad { padding: 1rem 1.1rem; }
.app-card-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--gray-100, #f5f5f5); }
.app-card-head h6 { margin: 0; font-size: 0.85rem; font-weight: 800; color: var(--gray-900, #0D1830); display: flex; align-items: center; gap: 0.5rem; }
.app-card-head .app-link { font-size: 0.72rem; font-weight: 700; color: var(--primary, #009688); text-decoration: none; display: inline-flex; align-items: center; gap: 0.25rem; }
.app-grid { display: grid; gap: 0.9rem; }
.app-grid-2 { grid-template-columns: 1fr; }
.app-grid-3 { grid-template-columns: 1fr; }
.app-grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .app-grid-2 { grid-template-columns: repeat(2, 1fr); } .app-grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 992px) { .app-grid-3 { grid-template-columns: repeat(3, 1fr); } .app-grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* ---- Stat cards ---- */
.app-stat { display: flex; align-items: center; gap: 0.8rem; padding: 1rem 1.1rem; }
.app-stat-ic { width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.05rem; flex-shrink: 0; }
.app-stat b { display: block; font-size: 1.15rem; font-weight: 800; color: var(--gray-900, #0D1830); line-height: 1.15; letter-spacing: -0.02em; }
.app-stat small { font-size: 0.68rem; color: var(--gray-500, #78716c); font-weight: 600; }

/* ---- List rows (mobile-first cards, desktop keeps rows) ---- */
.app-list { display: flex; flex-direction: column; }
.app-row {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid var(--gray-100, #f5f5f5);
  text-decoration: none; transition: background 0.15s ease;
}
.app-row:last-child { border-bottom: none; }
.app-row:active { background: var(--gray-50, #fafafa); }
.app-row-main { flex: 1; min-width: 0; }
.app-row-title { font-size: 0.82rem; font-weight: 700; color: var(--gray-900, #0D1830); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-row-sub { font-size: 0.68rem; color: var(--gray-500, #78716c); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-row .app-chev { color: var(--gray-300, #d4d4d4); font-size: 0.7rem; flex-shrink: 0; }
.app-thumb {
  width: 52px; height: 40px; border-radius: 10px; object-fit: cover;
  border: 1px solid var(--gray-100, #f5f5f5); flex-shrink: 0; background: var(--gray-100, #f5f5f5);
}
.app-avatar {
  width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.85rem; color: #fff; flex-shrink: 0;
  background: linear-gradient(135deg, #0D1830, #009688);
}

/* ---- Chips & badges ---- */
.app-chip { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.62rem; font-weight: 700; padding: 0.25rem 0.6rem; border-radius: 100px; white-space: nowrap; flex-shrink: 0; }
.app-chip-green { background: #E0F2F1; color: #009688; }
.app-chip-amber { background: #fff7ed; color: #c2410c; }
.app-chip-red { background: #fef2f2; color: #dc2626; }
.app-chip-gray { background: #E6EBEF; color: #78716c; }
.app-chip-blue { background: #eff6ff; color: #2563eb; }
.app-chip-purple { background: #faf5ff; color: #a855f7; }
.app-chip-teal { background: #ccfbf1; color: #0f766e; }
.playful[data-theme="dark"] .app-chip-green { background: #064e3b; color: #6ee7b7; }
.playful[data-theme="dark"] .app-chip-amber { background: #78350f; color: #fcd34d; }
.playful[data-theme="dark"] .app-chip-red { background: #7f1d1d; color: #fca5a5; }
.playful[data-theme="dark"] .app-chip-gray { background: #292524; color: #a8a29e; }
.playful[data-theme="dark"] .app-chip-blue { background: #1e3a8a; color: #93c5fd; }
.playful[data-theme="dark"] .app-chip-purple { background: #4c1d95; color: #d8b4fe; }
.playful[data-theme="dark"] .app-chip-teal { background: #134e4a; color: #5eead4; }

/* ---- Action buttons row ---- */
.app-actions { display: flex; gap: 0.4rem; flex-shrink: 0; }
.app-action {
  width: 30px; height: 30px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.68rem; text-decoration: none; border: none; cursor: pointer; transition: var(--transition);
}
.app-action-dark { background: var(--gray-900, #0D1830); color: #fff; }
.app-action-green { background: #E0F2F1; color: #009688; }
.app-action-red { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.app-action-gray { background: #E6EBEF; color: #57534e; }
.app-action:hover { filter: brightness(0.95); transform: translateY(-1px); }

/* ---- Search & filter bar ---- */
.app-toolbar { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1rem; align-items: center; }
.app-search { position: relative; flex: 1 1 220px; min-width: 0; max-width: 380px; }
.app-search i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); font-size: 0.72rem; color: var(--gray-400, #a3a3a3); pointer-events: none; }
.app-search input {
  width: 100%; height: 40px; border-radius: 100px; border: 1px solid var(--card-border, #e7e5e4);
  padding-left: 34px; font-size: 0.8rem; background: var(--card-bg, #fff); color: var(--gray-800, #262626);
}
.app-search input:focus { outline: none; border-color: var(--primary, #009688); box-shadow: 0 0 0 3px rgba(0,150,136,0.12); }
.app-select {
  height: 40px; border-radius: 100px; border: 1px solid var(--card-border, #e7e5e4);
  padding: 0 0.9rem; font-size: 0.78rem; background: var(--card-bg, #fff); color: var(--gray-700, #404040);
  cursor: pointer;
}
.app-select:focus { outline: none; border-color: var(--primary, #009688); }

/* ---- Empty state ---- */
.app-empty { text-align: center; padding: 2.6rem 1.2rem; }
.app-empty i { font-size: 2rem; color: var(--gray-300, #d4d4d4); margin-bottom: 0.6rem; display: block; }
.app-empty h6 { font-weight: 800; color: var(--gray-900, #0D1830); margin-bottom: 0.2rem; font-size: 0.95rem; }
.app-empty p { font-size: 0.78rem; color: var(--gray-500, #78716c); margin-bottom: 0.7rem; }

/* ---- Tables (desktop): rapi di layar besar, auto-card di mobile via JS ---- */
.app-table-wrap { overflow-x: auto; }
.app-table { width: 100%; max-width: 100%; font-size: 0.8rem; border-collapse: collapse; }
.app-table th, .app-table td { white-space: nowrap; }
.app-table th {
  font-weight: 700; font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--gray-500, #78716c); background: var(--gray-50, #fafafa);
  padding: 0.7rem 1rem; border-bottom: 1px solid var(--card-border, #e7e5e4); text-align: left; white-space: nowrap;
}
.app-table td { padding: 0.7rem 1rem; border-bottom: 1px solid var(--gray-100, #f5f5f5); color: var(--gray-600, #57534e); vertical-align: middle; }
.app-table tr:hover td { background: var(--gray-50, #fafafa); }
.app-table .td-title { font-weight: 700; color: var(--gray-900, #0D1830); }
.app-table .td-actions { text-align: right; white-space: nowrap; }

/* Mobile: tabel disembunyikan, diganti daftar kartu oleh JS */
.app-row-list { display: none; }
.app-table-desktop { display: block; }
@media (max-width: 768px) {
  .app-table { display: none; }
  .app-row-list { display: flex; flex-direction: column; gap: 0.6rem; }
  .app-row-list .app-row-card { display: flex !important; }
  .app-table-desktop { display: none; }
}
.app-row-list.app-list { gap: 0.6rem; }
.app-row-card {
  display: flex !important; flex-direction: row; align-items: center; flex-wrap: nowrap;
  padding: 0.7rem 0.85rem; gap: 0.6rem;
  background: var(--card-bg, #fff);
  border: 1px solid var(--card-border, #e7e5e4);
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.app-row-card:active { background: var(--gray-50, #fafafa); }
.playful[data-theme="dark"] .app-row-card { box-shadow: 0 0 0 1px rgba(255,255,255,0.05); }
.app-row-card .app-row-head { display: flex; align-items: center; gap: 0.6rem; flex: 1; min-width: 0; }
.app-row-card .app-row-main { flex: 1; min-width: 0; }
.app-row-card .app-row-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; }
.app-row-card .app-row-meta { display: none; }
.app-row-card .app-actions { flex-shrink: 0; display: flex; gap: 0.35rem; }
/* chip status di head: ringkas */
.app-row-card .app-row-head > .app-chip { flex-shrink: 0; }
/* detail tambahan dalam sub: gabung jadi satu baris */
.app-row-card .app-row-sub .mob-sub-sep { margin: 0 0.25rem; opacity: 0.5; }

/* ===== AI MENTOR RECOMMENDATION (hasil konsultasi AI) ===== */
.ai-mentor-row { flex-wrap: nowrap; }
.ai-mentor-row .ai-mentor-main { flex: 1; min-width: 0; }
.ai-mentor-row .ai-mentor-main > span:nth-child(2) { min-width: 0; }
.ai-mentor-row > a.btn { margin-left: auto; flex-shrink: 0; }
@media (max-width: 380px) {
  .ai-mentor-row { flex-wrap: wrap; }
  .ai-mentor-row .ai-mentor-main { flex: 1 1 100%; }
  .ai-mentor-row > a.btn { margin-left: auto; }
}
@media (max-width: 340px) {
  .ai-mentor-row { flex-direction: column; align-items: stretch !important; }
  .ai-mentor-row > a.btn { margin-left: 0; align-self: flex-end; }
}

/* ---- Forms (app-form) ---- */
.app-form-card { max-width: 780px; }
.app-form-card .app-card-pad { display: flex; flex-direction: column; gap: 1rem; }
.app-form-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .app-form-grid-2 { grid-template-columns: repeat(2, 1fr); } }
.app-field label { display: block; font-size: 0.75rem; font-weight: 700; color: var(--gray-700, #404040); margin-bottom: 0.3rem; }
.app-field .form-control, .app-field .form-select {
  border-radius: 12px; border: 1px solid var(--card-border, #e7e5e4);
  font-size: 0.82rem; padding: 0.55rem 0.85rem; color: var(--gray-800, #262626);
  background: var(--card-bg, #fff); width: 100%;
}
.app-field .form-control:focus, .app-field .form-select:focus {
  outline: none; border-color: var(--primary, #009688); box-shadow: 0 0 0 3px rgba(0,150,136,0.12);
}
.app-field .form-check-input:checked { background-color: var(--primary, #009688); border-color: var(--primary, #009688); }
.app-form-actions { display: flex; gap: 0.6rem; justify-content: flex-end; flex-wrap: wrap; padding-top: 0.5rem; }
.app-hint { font-size: 0.7rem; color: var(--gray-400, #a3a3a3); margin-top: 0.25rem; }

/* ---- Detail rows ---- */
.app-detail { display: grid; gap: 0.65rem; }
.app-detail-row { display: flex; gap: 0.75rem; align-items: baseline; }
.app-detail-label { font-size: 0.7rem; font-weight: 700; color: var(--gray-400, #a3a3a3); text-transform: uppercase; letter-spacing: 0.05em; min-width: 120px; }
.app-detail-value { font-size: 0.85rem; color: var(--gray-800, #262626); font-weight: 500; }

/* ---- Mobile bottom sheet actions ---- */
.app-sheet { display: flex; gap: 0.5rem; flex-wrap: wrap; }
