@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --border: #eef1f5;
  --border-hover: #d0d5dd;
  --text-primary: #0b1c2e;
  --text-secondary: #4a5b6e;
  --text-tertiary: #8896a8;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-light: #dbeafe;
  --accent-gradient: linear-gradient(135deg, #2563eb, #7c3aed);
  --green: #059669;
  --green-light: #d1fae5;
  --amber: #d97706;
  --amber-light: #fef3c7;
  --rose: #dc2626;
  --rose-light: #fee2e2;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.06), 0 2px 4px -2px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
  --transition: 200ms cubic-bezier(0, 0, 0.2, 1);
}

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

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

/* ─── NAVBAR ─── */
.navbar {
  background: rgba(11, 28, 46, 0.92) !important;
  backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0.6rem 0 !important;
}
.navbar-brand {
  font-weight: 800 !important;
  font-size: 1.15rem !important;
  letter-spacing: -0.3px !important;
}
.navbar .nav-link {
  font-weight: 500 !important;
  font-size: 0.85rem !important;
  color: rgba(255,255,255,0.7) !important;
  padding: 0.4rem 0.9rem !important;
  border-radius: 6px !important;
  transition: var(--transition) !important;
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: #fff !important;
  background: rgba(255,255,255,0.08) !important;
}

/* ─── HERO ─── */
.hero-section {
  background: linear-gradient(135deg, #0b1c2e 0%, #142d4e 40%, #1a1a3e 100%);
  padding: 100px 0 70px;
  position: relative;
  overflow: hidden;
}
.hero-section::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 30% 40%, rgba(37,99,235,0.12), transparent),
              radial-gradient(ellipse 50% 40% at 70% 60%, rgba(124,58,237,0.08), transparent);
  pointer-events: none;
}
.hero-section > .container { position: relative; z-index: 1; }
.hero-section h1 {
  font-weight: 800;
  font-size: 2.5rem;
  letter-spacing: -1px;
  margin-bottom: 0.5rem;
  color: #fff;
}
.hero-section p {
  color: rgba(255,255,255,0.6);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto;
}

/* ─── SEARCH SECTION ─── */
.search-section {
  background: var(--surface);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  margin-bottom: 2rem;
}
.search-section .form-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-tertiary);
  margin-bottom: 0.35rem;
}
.search-section .form-control,
.search-section .form-select {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.85rem;
  font-size: 0.875rem;
  background: var(--bg);
  transition: var(--transition);
}
.search-section .form-control:focus,
.search-section .form-select:focus {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.search-section .btn-primary {
  background: var(--accent);
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.6rem 1.25rem;
  font-weight: 600;
  font-size: 0.875rem;
  transition: var(--transition);
}
.search-section .btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: var(--shadow-md);
}

/* ─── CARDS ─── */
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  background: var(--surface);
  transition: transform 250ms ease, box-shadow 350ms ease;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-hover);
}

/* ─── ALUMNI CARD ─── */
.alumni-card { animation: cardIn 450ms ease both; }
.alumni-card:nth-child(1) { animation-delay: 30ms; }
.alumni-card:nth-child(2) { animation-delay: 60ms; }
.alumni-card:nth-child(3) { animation-delay: 90ms; }
.alumni-card:nth-child(4) { animation-delay: 120ms; }
.alumni-card:nth-child(5) { animation-delay: 150ms; }
.alumni-card:nth-child(6) { animation-delay: 180ms; }
.alumni-card:nth-child(7) { animation-delay: 210ms; }
.alumni-card:nth-child(8) { animation-delay: 240ms; }

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

.alumni-card .card-img-top {
  height: 200px;
  object-fit: cover;
}
.alumni-card .card-body { padding: 1.25rem 1.25rem 1.1rem; text-align: center; }
.alumni-card .card-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.job-badge {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.job-badge.bg-primary {
  background: var(--accent-gradient) !important;
}

.alumni-card .btn-outline-primary {
  border: 1.5px solid var(--accent);
  color: var(--accent);
  border-radius: 100px;
  padding: 0.25rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 600;
  transition: var(--transition);
}
.alumni-card .btn-outline-primary:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ─── PROJECT CARD ─── */
.project-card { animation: cardIn 450ms ease both; }
.project-card:nth-child(1) { animation-delay: 30ms; }
.project-card:nth-child(2) { animation-delay: 60ms; }
.project-card:nth-child(3) { animation-delay: 90ms; }
.project-card:nth-child(4) { animation-delay: 120ms; }
.project-card:nth-child(5) { animation-delay: 150ms; }
.project-card:nth-child(6) { animation-delay: 180ms; }
.project-card:nth-child(7) { animation-delay: 210ms; }
.project-card:nth-child(8) { animation-delay: 240ms; }

.project-card .card-img-top {
  height: 180px;
  object-fit: cover;
}
.project-card .card-body { padding: 1.1rem; }
.project-card .card-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
  line-height: 1.35;
}
.project-card .card-text {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  line-height: 1.5;
}
.member-list { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.member-badge {
  background: var(--bg);
  color: var(--text-secondary);
  padding: 0.15rem 0.55rem;
  border-radius: 100px;
  font-size: 0.65rem;
  font-weight: 500;
  border: 1px solid var(--border);
}

.project-card .btn-outline-primary {
  border: 1.5px solid var(--border-hover);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0;
  transition: var(--transition);
  background: var(--bg);
}
.project-card .btn-outline-primary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

/* ─── DETAIL ─── */
.detail-header {
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
}
.detail-header h2 {
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}
.detail-header .btn-outline-primary {
  border: 1.5px solid var(--accent);
  color: var(--accent);
  border-radius: 100px;
  font-weight: 600;
  transition: var(--transition);
}
.detail-header .btn-outline-primary:hover {
  background: var(--accent);
  color: #fff;
}

/* ─── LANDING ─── */
.landing-hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #0b1c2e 0%, #142d4e 35%, #1a1a3e 65%, #0b1c2e 100%);
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}
.landing-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 45% at 25% 40%, rgba(37,99,235,0.1), transparent),
              radial-gradient(ellipse 50% 35% at 75% 55%, rgba(124,58,237,0.07), transparent);
  pointer-events: none;
}
.landing-hero .hero-content { position: relative; z-index: 1; }

.landing-hero .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.landing-hero h1 {
  font-weight: 900;
  font-size: 3.75rem;
  letter-spacing: -2.5px;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 0.75rem;
}
.landing-hero h1 .highlight {
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.landing-hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.5);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.landing-hero .hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.landing-hero .btn-hero-primary {
  background: var(--accent);
  color: #fff;
  padding: 0.7rem 1.75rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.landing-hero .btn-hero-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(37,99,235,0.3);
}
.landing-hero .btn-hero-secondary {
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 0.7rem 1.75rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.landing-hero .btn-hero-secondary:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-1px);
}

.landing-hero .hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.landing-hero .stat-item h3 {
  font-weight: 800;
  font-size: 1.5rem;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 0.1rem;
}
.landing-hero .stat-item p {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0;
}

.feature-section { padding: 80px 0; }
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: transform 300ms ease, box-shadow 400ms ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}
.feature-card .feature-icon {
  width: 56px; height: 56px;
  background: var(--accent-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.35rem;
}
.feature-card h3 {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}
.feature-card p {
  color: var(--text-tertiary);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* ─── TITLE ─── */
.section-title {
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  margin-bottom: 1.25rem;
  padding-bottom: 0.6rem;
  border-bottom: 2.5px solid var(--accent);
  display: inline-block;
}

/* ─── PAGINATION ─── */
.pagination { gap: 0.2rem; }
.pagination .page-link {
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  transition: var(--transition);
}
.pagination .page-link:hover {
  background: var(--bg);
  border-color: var(--border-hover);
}
.pagination .page-item.active .page-link {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ─── FOOTER ─── */
footer {
  background: #0b1c2e !important;
  padding: 2rem 0 !important;
}
footer p { color: rgba(255,255,255,0.35); font-size: 0.8rem; }
footer a {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  font-size: 0.8rem;
  transition: var(--transition);
}
footer a:hover { color: rgba(255,255,255,0.75); }

/* ─── MISC ─── */
.ratio-16x9 { border-radius: var(--radius); overflow: hidden; }
.empty-state { text-align: center; padding: 4rem 2rem; color: var(--text-tertiary); }
.card-img-top.d-flex { background: var(--bg) !important; }
.card-img-top .text-muted { color: var(--text-tertiary) !important; font-weight: 700; }
.animate-on-scroll {
  opacity: 0; transform: translateY(16px);
  transition: opacity 500ms ease, transform 500ms ease;
}
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

body {
  padding-top: 56px;
}

/* ─── AUTH SPLIT CARD ─── */
.login-split-card { max-width: 850px; border-radius: var(--radius-xl) !important; }
.login-split-card-wide { max-width: 960px; }
.login-brand-panel {
  background: linear-gradient(135deg, #0b1c2e 0%, #142d4e 50%, #1a1a3e 100%);
  position: relative; overflow: hidden;
}
.login-brand-panel::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 50% at 30% 40%, rgba(37,99,235,0.12), transparent),
              radial-gradient(ellipse 50% 40% at 70% 60%, rgba(124,58,237,0.08), transparent);
  pointer-events: none;
}
.login-brand-logo {
  width: 44px; height: 44px;
  background: var(--accent-gradient);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 1.1rem;
  box-shadow: 0 6px 16px rgba(37,99,235,0.3);
}
.login-brand-title { font-size: 1.8rem; letter-spacing: -1px; }
.login-brand-text { font-size: 0.85rem; line-height: 1.6; }
.login-mobile-logo { display: inline-block; }
.login-btn {
  background: var(--accent) !important;
  border: none !important;
  font-weight: 600 !important;
  transition: var(--transition) !important;
}
.login-btn:hover {
  background: var(--accent-hover) !important;
  box-shadow: 0 6px 20px rgba(37,99,235,0.25) !important;
  transform: translateY(-1px);
}
.input-group-text {
  background: var(--bg) !important;
  border: 1.5px solid var(--border) !important;
  border-right: none !important;
  color: var(--text-tertiary) !important;
}
.input-group .form-control { border-left: none !important; }
.input-group:focus-within .input-group-text { border-color: var(--accent) !important; }
.input-group:focus-within .form-control { border-color: var(--accent) !important; }

.ptm-body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
}

/* ─── PTM MOBILE-FIRST ─── */
.ptm-dashboard {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 0 80px;
  min-height: 100vh;
  background: var(--bg);
}

/* App Bar */
.app-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.app-bar-left { display: flex; align-items: center; gap: 0.65rem; }
.app-logo {
  width: 36px; height: 36px;
  background: var(--accent-gradient);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 0.85rem;
  flex-shrink: 0;
}
.app-title { font-weight: 700; font-size: 0.9rem; color: var(--text-primary); line-height: 1.2; }
.app-subtitle { font-size: 0.7rem; color: var(--text-tertiary); }
.btn-icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}
.btn-icon:hover { background: var(--bg); color: var(--text-primary); }

/* Welcome */
.welcome-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1rem;
  background: var(--surface);
  margin: 0.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.welcome-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 1.1rem;
  flex-shrink: 0;
}
.welcome-text h2 { font-size: 1rem; font-weight: 700; margin: 0 0 0.15rem; color: var(--text-primary); }
.welcome-text p { margin: 0; font-size: 0.8rem; color: var(--text-tertiary); }
.badge-role {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 100px;
  font-size: 0.65rem;
  font-weight: 600;
  background: var(--bg);
  color: var(--text-secondary);
}
.badge-role.teacher { background: var(--accent-light); color: var(--accent); }
.badge-role.parent { background: var(--green-light); color: var(--green); }

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  padding: 0 0.75rem;
  margin-bottom: 0.75rem;
}
.stat-card-sm {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem;
}
.stat-icon-sm {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.stat-info { display: flex; flex-direction: column; }
.stat-num { font-size: 1.25rem; font-weight: 800; line-height: 1; color: var(--text-primary); }
.stat-lbl { font-size: 0.68rem; color: var(--text-tertiary); margin-top: 0.1rem; }

/* Sections */
.section { padding: 0 0.75rem; margin-bottom: 1rem; }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.25rem;
}
.section-header h3 {
  font-size: 0.85rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-primary);
}
.section-header h3 i { margin-right: 0.35rem; color: var(--accent); }
.section-header .see-all {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.section-header .see-all:hover { text-decoration: underline; }

/* List Card */
.list-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.list-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  text-decoration: none;
  border-bottom: 1px solid var(--bg);
  transition: var(--transition);
}
.list-item:last-child { border-bottom: none; }
.list-item:hover { background: #f8fafc; }
.list-item:active { background: var(--bg); }
.list-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem;
  flex-shrink: 0;
}
.list-body { flex: 1; min-width: 0; }
.list-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.list-sub {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  margin-top: 0.1rem;
}
.list-arrow { color: var(--border-hover); font-size: 0.85rem; }

/* Quick Actions */
.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
.quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: var(--transition);
}
.quick-action:hover { border-color: var(--border-hover); }
.quick-action:active { transform: scale(0.97); }
.qa-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
}
.quick-action span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
}

/* Empty State */
.empty-state-sm {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-tertiary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.empty-state-sm i { font-size: 2rem; display: block; margin-bottom: 0.5rem; }
.empty-state-sm p { font-size: 0.8rem; margin: 0; }

/* Badge Status */
.badge-status {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border-radius: 100px;
  font-size: 0.6rem;
  font-weight: 600;
}
.badge-status.draft { background: var(--bg); color: var(--text-tertiary); }
.badge-status.published { background: var(--green-light); color: var(--green); }
.badge-status.open { background: var(--rose-light); color: var(--rose); }
.badge-status.progress { background: var(--amber-light); color: var(--amber); }
.badge-status.resolved { background: var(--green-light); color: var(--green); }

/* Bottom Nav */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  padding: 0.35rem 0;
  z-index: 200;
}
.bn-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  padding: 0.3rem 0.75rem;
  text-decoration: none;
  color: var(--text-tertiary);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  min-width: 56px;
}
.bn-item i { font-size: 1.2rem; }
.bn-item span { font-size: 0.6rem; font-weight: 600; }
.bn-item.active { color: var(--accent); }
.bn-item:hover { background: var(--bg); }

/* PTM responsive for tablet/desktop */
@media (min-width: 768px) {
  .ptm-dashboard { max-width: 600px; padding-top: 0.5rem; }
}

/* ─── CHAT SECTION ─── */
.chat-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.chat-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.chat-header i { color: var(--accent); }
.chat-messages {
  padding: 0.75rem;
  max-height: 360px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: #f8fafc;
}
.chat-empty {
  text-align: center;
  padding: 1.5rem 1rem;
  color: var(--text-tertiary);
}
.chat-empty i { font-size: 1.5rem; display: block; margin-bottom: 0.35rem; }
.chat-empty p { font-size: 0.75rem; margin: 0; }
.chat-msg {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  max-width: 100%;
}
.chat-msg-mine { justify-content: flex-end; }
.chat-msg-other { justify-content: flex-start; }
.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.7rem;
  flex-shrink: 0;
}
.chat-msg-other .chat-avatar {
  background: linear-gradient(135deg, #6b7280, #9ca3af);
}
.chat-bubble {
  max-width: 80%;
  padding: 0.5rem 0.75rem;
  border-radius: 16px;
  position: relative;
}
.chat-bubble-mine {
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chat-bubble-other {
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}
.chat-sender {
  font-size: 0.65rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
  opacity: 0.7;
}
.chat-text {
  font-size: 0.82rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}
.chat-time {
  font-size: 0.6rem;
  margin-top: 0.2rem;
  opacity: 0.6;
  text-align: right;
}
.chat-input {
  border-top: 1px solid var(--border);
  padding: 0.6rem 0.75rem;
  background: var(--surface);
}
.chat-input-row {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
}
.chat-input-field {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 0.5rem 0.85rem;
  font-size: 0.82rem;
  resize: none;
  outline: none;
  background: var(--bg);
  transition: var(--transition);
  font-family: inherit;
  line-height: 1.4;
}
.chat-input-field:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
  background: var(--surface);
}
.chat-input-field::placeholder {
  color: var(--text-tertiary);
}
.chat-send-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}
.chat-send-btn:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
}
.chat-send-btn:active {
  transform: scale(0.95);
}
.chat-input .form-group { margin: 0; }
.chat-input .help-block { display: none; }

/* ─── PTM FORM CARD ─── */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}
.form-card .form-label {
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  color: var(--text-secondary) !important;
}
.form-card .form-control,
.form-card .form-select,
.form-card textarea.form-control {
  border: 1.5px solid var(--bs-border-color) !important;
  border-radius: var(--radius-sm) !important;
  padding: 0.6rem 0.75rem !important;
  font-size: 0.85rem !important;
  transition: var(--transition) !important;
}
.form-card .form-control:focus,
.form-card .form-select:focus,
.form-card textarea.form-control:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1) !important;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--bg);
}
.detail-row:last-child { border-bottom: none; }
.detail-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-tertiary);
  flex-shrink: 0;
}
.detail-value {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  text-align: right;
}

/* ─── PTM LOGIN PAGE ─── */
.ptm-login-body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(135deg, #0b1c2e 0%, #142d4e 50%, #1a1a3e 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 1rem;
}
.ptm-login-wrap {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}
.ptm-login-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 2rem 1.5rem 1.5rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.ptm-login-header {
  text-align: center;
  margin-bottom: 1.75rem;
}
.ptm-login-logo {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  margin: 0 auto 0.75rem;
  box-shadow: 0 8px 20px rgba(37,99,235,0.35);
}
.ptm-login-header h1 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  margin: 0 0 0.15rem;
}
.ptm-login-header p {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin: 0;
}
.ptm-field {
  margin-bottom: 0.85rem;
}
.ptm-input-group {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
}
.ptm-input-group:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.ptm-input-group i {
  padding: 0 0 0 0.85rem;
  color: var(--text-tertiary);
  font-size: 1rem;
}
.ptm-input {
  border: none !important;
  background: transparent !important;
  padding: 0.7rem 0.75rem !important;
  font-size: 0.9rem !important;
  color: var(--text-primary) !important;
  -webkit-text-fill-color: var(--text-primary);
  outline: none !important;
  box-shadow: none !important;
  width: 100%;
}
.ptm-input::placeholder {
  color: var(--text-tertiary);
  -webkit-text-fill-color: var(--text-tertiary);
  opacity: 1;
}
.ptm-input-group .help-block {
  display: none;
}
.ptm-field .form-group .help-block {
  font-size: 0.7rem;
  color: var(--rose);
  margin-top: 0.25rem;
  padding-left: 0.25rem;
}
.ptm-field-check {
  margin-bottom: 1.25rem;
}
.ptm-check {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.ptm-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}
.ptm-btn-primary {
  width: 100%;
  padding: 0.75rem;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.ptm-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(37,99,235,0.3);
}
.ptm-btn-primary:active {
  transform: scale(0.98);
}
.ptm-login-footer {
  text-align: center;
  margin-top: 1.25rem;
}
.ptm-login-footer a {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  text-decoration: none;
}
.ptm-login-footer a:hover {
  color: var(--accent);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .hero-section { padding: 80px 0 50px; }
  .hero-section h1 { font-size: 1.75rem; }
  .landing-hero h1 { font-size: 2.25rem; letter-spacing: -1px; }
  .landing-hero { padding: 100px 0 60px; min-height: auto; }
  .landing-hero .hero-stats { flex-direction: column; gap: 1rem; }
  .detail-header { padding: 1.25rem; }
  .detail-header h2 { font-size: 1.15rem; }
}
