/* ============================================================
   SIPMA — Stylesheet Responsif
   Mobile-first, breakpoints: sm=480, md=768, lg=1024, xl=1280
   ============================================================ */

/* -------------------------------------------------------
   CSS Variables & Reset
   ------------------------------------------------------- */
:root {
  --primary:       #1a56db;
  --primary-dark:  #1244b0;
  --primary-light: #e8f0fe;
  --success:       #057a55;
  --success-bg:    #def7ec;
  --warning:       #92400e;
  --warning-bg:    #fef3c7;
  --danger:        #9b1c1c;
  --danger-bg:     #fde8e8;
  --info:          #1a56db;
  --info-bg:       #e8f0fe;

  --gray-50:  #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  14px;
  --radius-xl:  20px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,.08);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.10);

  --topnav-h:    60px;
  --bottom-nav-h: 62px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--gray-50);
  color: var(--gray-800);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: var(--font); }

/* -------------------------------------------------------
   Utility
   ------------------------------------------------------- */
.d-none   { display: none !important; }
.d-desktop { display: none !important; }
.d-mobile  { display: block !important; }
.d-mobile-flex { display: flex !important; }
.text-danger { color: var(--danger) !important; }
.text-success { color: var(--success) !important; }
.text-muted { color: var(--gray-500); }
.text-center { text-align: center; }
.fw-600 { font-weight: 600; }

@media (min-width: 768px) {
  .d-desktop { display: flex !important; }
  .d-mobile  { display: none !important; }
  .d-mobile-flex { display: none !important; }
}

/* -------------------------------------------------------
   Flash Messages
   ------------------------------------------------------- */
.flash-container {
  position: fixed; top: 70px; right: 16px; z-index: 9999;
  display: flex; flex-direction: column; gap: 8px; max-width: calc(100vw - 32px);
}
.flash {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border-radius: var(--radius-md);
  font-size: 14px; font-weight: 500;
  background: #fff; box-shadow: var(--shadow-md);
  border-left: 4px solid var(--gray-300);
  animation: slideIn .2s ease;
  min-width: 260px;
}
.flash-success { border-color: var(--success); background: var(--success-bg); color: var(--success); }
.flash-error   { border-color: var(--danger);  background: var(--danger-bg);  color: var(--danger); }
.flash-warning { border-color: #d97706; background: var(--warning-bg); color: var(--warning); }
.flash-info    { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }
.flash-close { background: none; border: none; cursor: pointer; font-size: 14px; opacity: .7; padding: 0 4px; }
@keyframes slideIn { from { transform: translateX(20px); opacity:0; } to { transform: none; opacity:1; } }

/* -------------------------------------------------------
   Top Navigation
   ------------------------------------------------------- */
.topnav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--topnav-h);
  background: #fff; border-bottom: 1px solid var(--gray-200);
  z-index: 1000; box-shadow: var(--shadow-sm);
}
.topnav-inner {
  display: flex; align-items: center; gap: 16px;
  height: 100%; padding: 0 16px; max-width: 1280px; margin: 0 auto;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--gray-900); font-weight: 700;
}
.brand-icon {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--primary); display: flex; align-items: center;
  justify-content: center; font-size: 18px;
}
.brand-name { font-size: 18px; }
.nav-links { display: flex; align-items: center; gap: 4px; flex: 1; margin-left: 16px; }
.nav-link {
  padding: 6px 14px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; color: var(--gray-600);
  transition: background .15s, color .15s;
}
.nav-link:hover { background: var(--gray-100); color: var(--gray-900); text-decoration: none; }
.nav-link.active { background: var(--primary-light); color: var(--primary); }
.nav-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }

/* Nav icon button */
.nav-icon-btn {
  position: relative; padding: 8px; border-radius: var(--radius-sm);
  font-size: 18px; color: var(--gray-600); cursor: pointer;
  display: flex; align-items: center; text-decoration: none;
}
.nav-icon-btn:hover { background: var(--gray-100); }
.badge-dot {
  position: absolute; top: 4px; right: 4px;
  background: var(--danger); color: #fff;
  font-size: 9px; font-weight: 700; border-radius: 10px;
  padding: 1px 4px; min-width: 16px; text-align: center;
  line-height: 14px;
}

/* User menu */
.user-menu { position: relative; }
.user-menu-trigger {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 8px; border-radius: var(--radius-md);
  background: none; border: 1px solid var(--gray-200);
  cursor: pointer; transition: background .15s;
}
.user-menu-trigger:hover { background: var(--gray-100); }
.user-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.user-avatar-initials {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--primary); color: #fff;
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.user-name { font-size: 14px; font-weight: 500; color: var(--gray-700); }
.chevron { font-size: 10px; color: var(--gray-400); }
.user-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 220px; background: #fff;
  border: 1px solid var(--gray-200); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); z-index: 100;
  display: none; overflow: hidden;
}
.user-dropdown.open { display: block; }
.dropdown-header {
  padding: 12px 16px; border-bottom: 1px solid var(--gray-100);
  display: flex; flex-direction: column; gap: 2px;
}
.dropdown-header strong { font-size: 14px; }
.dropdown-header small { font-size: 12px; color: var(--gray-500); }
.dropdown-item {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; font-size: 14px; color: var(--gray-700);
  transition: background .15s; cursor: pointer;
}
.dropdown-item:hover { background: var(--gray-50); text-decoration: none; }
.dropdown-item.text-danger { color: var(--danger); }

/* Role badge */
.role-badge {
  display: inline-block; padding: 2px 8px; border-radius: 20px;
  font-size: 11px; font-weight: 600; width: fit-content;
}
.role-guru       { background: #e0f2fe; color: #0369a1; }
.role-supervisor { background: #ede9fe; color: #6d28d9; }
.role-admin      { background: #fce7f3; color: #be185d; }

/* Hamburger */
.hamburger {
  display: flex; flex-direction: column; gap: 5px;
  padding: 8px; background: none; border: none; cursor: pointer;
}
.hamburger span {
  width: 20px; height: 2px; background: var(--gray-700);
  border-radius: 2px; transition: transform .25s, opacity .25s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* -------------------------------------------------------
   Mobile Drawer
   ------------------------------------------------------- */
.mobile-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.4); z-index: 1100;
  backdrop-filter: blur(2px);
}
.mobile-overlay.open { display: block; }
.mobile-drawer {
  position: fixed; top: 0; left: -280px; bottom: 0;
  width: 280px; background: #fff; z-index: 1200;
  transition: left .25s cubic-bezier(.4,0,.2,1);
  overflow-y: auto; box-shadow: var(--shadow-lg);
}
.mobile-drawer.open { left: 0; }
.drawer-header {
  display: flex; align-items: center; gap: 12px;
  padding: 20px 16px; background: var(--primary);
  color: #fff;
}
.drawer-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.drawer-avatar-initials {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.25); color: #fff;
  font-size: 16px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.drawer-header strong { font-size: 15px; display: block; }
.drawer-header small  { font-size: 12px; opacity: .8; }
.drawer-nav { padding: 8px 0; }
.drawer-link {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 20px; font-size: 15px; font-weight: 500;
  color: var(--gray-700); transition: background .15s;
}
.drawer-link:hover, .drawer-link.active {
  background: var(--gray-50); color: var(--primary);
  text-decoration: none;
}
.drawer-link.text-danger { color: var(--danger); }
.badge-small {
  background: var(--danger); color: #fff;
  font-size: 10px; padding: 1px 6px; border-radius: 10px;
}

/* -------------------------------------------------------
   Bottom Navigation
   ------------------------------------------------------- */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--bottom-nav-h);
  background: #fff; border-top: 1px solid var(--gray-200);
  z-index: 999; display: flex; box-shadow: 0 -2px 12px rgba(0,0,0,.06);
}
.bottom-nav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px;
  color: var(--gray-500); text-decoration: none;
  padding: 6px 4px; position: relative;
  transition: color .15s;
  -webkit-tap-highlight-color: transparent;
  min-height: 44px;
}
.bottom-nav-item.active { color: var(--primary); }
.bottom-nav-item:hover { text-decoration: none; }
.bn-icon { font-size: 20px; position: relative; }
.bn-label { font-size: 10px; font-weight: 500; }
.badge-dot-sm {
  position: absolute; top: -2px; right: -4px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--danger); border: 2px solid #fff;
}

/* -------------------------------------------------------
   Main Content
   ------------------------------------------------------- */
.app-main {
  padding-top: var(--topnav-h);
  min-height: 100vh;
}
.app-main.has-bottom-nav {
  padding-bottom: var(--bottom-nav-h);
}
.container {
  max-width: 1280px; margin: 0 auto;
  padding: 20px 16px;
}
@media (min-width: 768px) {
  .container { padding: 28px 24px; }
}

/* -------------------------------------------------------
   Page Header
   ------------------------------------------------------- */
.page-header {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 12px;
  margin-bottom: 24px; flex-wrap: wrap;
}
.page-title { font-size: 20px; font-weight: 700; color: var(--gray-900); margin-bottom: 4px; }
.page-subtitle { font-size: 14px; color: var(--gray-500); }
@media (min-width: 768px) {
  .page-title { font-size: 24px; }
}

/* -------------------------------------------------------
   Cards
   ------------------------------------------------------- */
.card {
  background: #fff; border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); overflow: hidden;
}
.card-body { padding: 16px; }
.card-header {
  padding: 14px 16px; border-bottom: 1px solid var(--gray-100);
  font-size: 15px; font-weight: 600; color: var(--gray-800);
  display: flex; align-items: center; justify-content: space-between;
}
@media (min-width: 768px) {
  .card-body { padding: 20px; }
  .card-header { padding: 16px 20px; }
}

/* -------------------------------------------------------
   Stats Grid
   ------------------------------------------------------- */
.stats-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}
.stat-card {
  background: #fff; border: 1px solid var(--gray-200);
  border-radius: var(--radius-md); padding: 16px;
  text-align: center;
}
.stat-value { font-size: 28px; font-weight: 700; color: var(--gray-900); line-height: 1.1; }
.stat-label { font-size: 12px; color: var(--gray-500); margin-top: 4px; }
.stat-card.highlight { border-color: var(--primary); background: var(--primary-light); }
.stat-card.highlight .stat-value { color: var(--primary); }
@media (min-width: 768px) {
  .stat-value { font-size: 36px; }
}

/* -------------------------------------------------------
   Grid Layouts
   ------------------------------------------------------- */
.grid-2 { display: grid; gap: 16px; grid-template-columns: 1fr; }
.grid-3 { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 768px) {
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
}

/* -------------------------------------------------------
   Forms
   ------------------------------------------------------- */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; }
.form-control {
  width: 100%; padding: 11px 14px; font-size: 14px;
  border: 1.5px solid var(--gray-300); border-radius: var(--radius-md);
  background: #fff; color: var(--gray-800);
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none; appearance: none;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,86,219,.12);
}
select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' fill='none' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  padding-right: 36px;
}
textarea.form-control { resize: vertical; min-height: 100px; }
.form-row { display: grid; gap: 12px; }
@media (min-width: 480px) {
  .form-row-2 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 768px) {
  .form-row-3 { grid-template-columns: 1fr 1fr 1fr; }
}

/* Upload Zone */
.upload-zone {
  border: 2px dashed var(--gray-300); border-radius: var(--radius-lg);
  padding: 32px 20px; text-align: center; cursor: pointer;
  transition: border-color .2s, background .2s;
  background: var(--gray-50);
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--primary); background: var(--primary-light);
}
.upload-icon { font-size: 36px; margin-bottom: 8px; }
.upload-title { font-size: 15px; font-weight: 600; color: var(--gray-700); margin-bottom: 4px; }
.upload-subtitle { font-size: 13px; color: var(--gray-400); }

/* -------------------------------------------------------
   Buttons
   ------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius-md);
  font-size: 14px; font-weight: 600; border: none;
  cursor: pointer; transition: all .15s;
  text-decoration: none; white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  min-height: 44px;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-danger  { background: var(--danger);  color: #fff; }
.btn-outline {
  background: transparent; color: var(--gray-700);
  border: 1.5px solid var(--gray-300);
}
.btn-outline:hover { background: var(--gray-100); }
.btn-ghost  { background: transparent; color: var(--primary); }
.btn-ghost:hover { background: var(--primary-light); }
.btn-sm { padding: 7px 14px; font-size: 13px; min-height: 36px; }
.btn-lg { padding: 13px 28px; font-size: 16px; min-height: 52px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* Loading state */
.btn-loading::after {
  content: ''; width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff; border-radius: 50%;
  animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* -------------------------------------------------------
   Badges
   ------------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 4px 12px; border-radius: 20px;
  font-size: 12px; font-weight: 600;
}
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-danger  { background: var(--danger-bg);  color: var(--danger); }
.badge-info    { background: var(--primary-light); color: var(--primary); }
.badge-gray    { background: var(--gray-100); color: var(--gray-600); }

/* -------------------------------------------------------
   Tables (scrollable on mobile)
   ------------------------------------------------------- */
.table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-md); }
table { width: 100%; border-collapse: collapse; min-width: 500px; }
th {
  padding: 11px 14px; text-align: left; font-size: 12px;
  font-weight: 600; color: var(--gray-500); text-transform: uppercase;
  letter-spacing: .04em; background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200); white-space: nowrap;
}
td { padding: 12px 14px; font-size: 14px; border-bottom: 1px solid var(--gray-100); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--gray-50); }

/* -------------------------------------------------------
   Score Display
   ------------------------------------------------------- */
.score-ring-wrap { text-align: center; }
.score-big { font-size: 56px; font-weight: 700; line-height: 1; color: var(--gray-900); }
.score-label { font-size: 13px; color: var(--gray-500); margin-top: 4px; }

.progress-bar {
  height: 8px; border-radius: 8px;
  background: var(--gray-200); overflow: hidden;
}
.progress-fill {
  height: 100%; border-radius: 8px;
  transition: width .6s cubic-bezier(.4,0,.2,1);
}
.progress-fill.success { background: #10b981; }
.progress-fill.warning { background: #f59e0b; }
.progress-fill.danger  { background: #ef4444; }

.dimension-card {
  background: #fff; border: 1px solid var(--gray-200);
  border-radius: var(--radius-md); padding: 14px;
}
.dimension-header {
  display: flex; align-items: center;
  justify-content: space-between; margin-bottom: 8px;
}
.dimension-title { font-size: 13px; font-weight: 600; color: var(--gray-800); }
.dimension-score { font-size: 16px; font-weight: 700; }
.dimension-note { font-size: 12px; color: var(--gray-500); margin-top: 6px; line-height: 1.5; }

/* Recommendation */
.rec-item {
  border-left: 3px solid var(--gray-300); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 10px 14px; background: #fff;
  border-top: 1px solid var(--gray-100);
  border-right: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
  margin-bottom: 8px;
}
.rec-item.warning { border-left-color: #f59e0b; }
.rec-item.success { border-left-color: #10b981; }
.rec-item.danger  { border-left-color: #ef4444; }
.rec-title { font-size: 13px; font-weight: 600; color: var(--gray-800); margin-bottom: 3px; }
.rec-text  { font-size: 12px; color: var(--gray-500); line-height: 1.5; }

/* -------------------------------------------------------
   Loading Overlay (saat analisis AI)
   ------------------------------------------------------- */
.ai-loading {
  display: none; position: fixed; inset: 0;
  background: rgba(255,255,255,.92); z-index: 9000;
  flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  backdrop-filter: blur(4px);
}
.ai-loading.show { display: flex; }
.ai-spinner {
  width: 52px; height: 52px; border-radius: 50%;
  border: 4px solid var(--gray-200);
  border-top-color: var(--primary);
  animation: spin 1s linear infinite;
}
.ai-loading-text { font-size: 15px; font-weight: 600; color: var(--gray-700); }
.ai-loading-sub  { font-size: 13px; color: var(--gray-400); }

/* -------------------------------------------------------
   Tabs
   ------------------------------------------------------- */
.tabs { border-bottom: 1px solid var(--gray-200); display: flex; gap: 0; margin-bottom: 20px; overflow-x: auto; }
.tab-btn {
  padding: 10px 18px; font-size: 14px; font-weight: 500;
  color: var(--gray-500); background: none; border: none;
  border-bottom: 2px solid transparent; cursor: pointer;
  white-space: nowrap; transition: color .15s;
}
.tab-btn:hover { color: var(--gray-800); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* -------------------------------------------------------
   RPP List (mobile card-style)
   ------------------------------------------------------- */
.rpp-card {
  background: #fff; border: 1px solid var(--gray-200);
  border-radius: var(--radius-md); padding: 14px;
  display: flex; align-items: center; gap: 12px;
  cursor: pointer; transition: box-shadow .15s;
}
.rpp-card:hover { box-shadow: var(--shadow-sm); text-decoration: none; }
.rpp-card-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--primary-light); display: flex;
  align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.rpp-card-info { flex: 1; min-width: 0; }
.rpp-card-title {
  font-size: 14px; font-weight: 600; color: var(--gray-800);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rpp-card-meta { font-size: 12px; color: var(--gray-400); margin-top: 2px; }
.rpp-card-score { flex-shrink: 0; text-align: center; }

/* -------------------------------------------------------
   Google Login Button
   ------------------------------------------------------- */
.btn-google {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 12px 24px; border-radius: var(--radius-md);
  background: #fff; border: 1.5px solid var(--gray-300);
  font-size: 15px; font-weight: 600; color: var(--gray-700);
  cursor: pointer; transition: all .15s; width: 100%;
  min-height: 52px; text-decoration: none; box-shadow: var(--shadow-sm);
}
.btn-google:hover { background: var(--gray-50); box-shadow: var(--shadow-md); text-decoration: none; }

/* -------------------------------------------------------
   Landing Page
   ------------------------------------------------------- */
.landing-wrap {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: linear-gradient(135deg, #f0f4ff 0%, #fff 100%);
  padding: 32px 16px;
}
.landing-card {
  background: #fff; border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl); padding: 32px 24px;
  width: 100%; max-width: 420px;
  box-shadow: var(--shadow-lg); text-align: center;
}
.landing-logo {
  width: 64px; height: 64px; border-radius: 18px;
  background: var(--primary); margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
}
.landing-title { font-size: 24px; font-weight: 700; color: var(--gray-900); margin-bottom: 4px; }
.landing-subtitle { font-size: 13px; color: var(--gray-500); margin-bottom: 6px; }
.landing-desc { font-size: 12px; color: var(--gray-400); margin-bottom: 28px; }
.landing-features {
  display: flex; flex-direction: column; gap: 8px;
  margin-top: 24px; text-align: left;
}
.feature-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px; background: var(--gray-50);
  border-radius: var(--radius-md); font-size: 13px;
}
.feature-icon { font-size: 18px; flex-shrink: 0; }
.feature-text strong { display: block; font-size: 13px; color: var(--gray-800); }
.feature-text span   { font-size: 12px; color: var(--gray-500); }

/* -------------------------------------------------------
   Pending approval page
   ------------------------------------------------------- */
.pending-wrap {
  min-height: 100vh; display: flex; align-items: center;
  justify-content: center; padding: 32px 16px;
  background: linear-gradient(135deg, #f0f4ff 0%, #fff 100%);
}
.pending-card {
  background: #fff; border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl); padding: 32px 24px;
  max-width: 420px; width: 100%; text-align: center;
  box-shadow: var(--shadow-lg);
}

/* -------------------------------------------------------
   Footer
   ------------------------------------------------------- */
.app-footer {
  padding: 16px 20px;
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 8px; font-size: 12px; color: var(--gray-400);
  border-top: 1px solid var(--gray-200); margin-top: 32px;
}

/* -------------------------------------------------------
   Responsive Tweaks
   ------------------------------------------------------- */
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-value { font-size: 24px; }
  .score-big { font-size: 44px; }
  .btn-lg { padding: 12px 20px; font-size: 15px; }
  .card-body { padding: 14px; }
  table { min-width: 420px; font-size: 13px; }
  th, td { padding: 10px 12px; }
}

@media (min-width: 1024px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}
