:root {
  --primary: #1D4ED8;
  --primary-dark: #1e3a8a;
  --primary-light: #dbeafe;
  --secondary: #DC2626;
  --secondary-light: #fee2e2;
  --accent: #16a34a;
  --accent-light: #dcfce7;
  --yellow: #ca8a04;
  --yellow-light: #fef9c3;
  --bg: #f8fafc;
  --bg2: #ffffff;
  --text: #0f172a;
  --text-muted: #6b7280;
  --border: #e2e8f0;
  --shadow: 0 4px 24px rgba(29,78,216,0.09);
  --shadow-lg: 0 8px 40px rgba(29,78,216,0.16);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --transition: 0.22s cubic-bezier(.4,0,.2,1);
  --navbar-h: 68px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#app {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 100vh;
}

#page-content {
  flex: 1;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }

.hidden { display: none !important; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; line-height: 1.1; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 600; }
p { color: var(--text-muted); }

#loading-overlay {
  position: fixed; inset: 0; background: rgba(255,255,255,0.85);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; backdrop-filter: blur(4px);
}
.spinner {
  width: 48px; height: 48px;
  border: 5px solid var(--primary-light);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@keyframes fadeInUp   { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInLeft { from { opacity: 0; transform: translateX(-32px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeInRight{ from { opacity: 0; transform: translateX(32px);  } to { opacity: 1; transform: translateX(0); } }
@keyframes scaleIn    { from { opacity: 0; transform: scale(0.88); }      to { opacity: 1; transform: scale(1); } }
@keyframes shimmer    { from { background-position: -200% center; } to { background-position: 200% center; } }
@keyframes pulse-glow { 0%,100% { box-shadow: 0 0 0 0 rgba(29,78,216,0.35); } 50% { box-shadow: 0 0 0 10px rgba(29,78,216,0); } }
@keyframes badge-pulse{ 0%,100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.4); } 60% { box-shadow: 0 0 0 8px rgba(255,255,255,0); } }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s cubic-bezier(.4,0,.2,1), transform 0.6s cubic-bezier(.4,0,.2,1); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-left  { opacity: 0; transform: translateX(-28px); transition: opacity 0.6s cubic-bezier(.4,0,.2,1), transform 0.6s cubic-bezier(.4,0,.2,1); }
.reveal-left.visible { opacity: 1; transform: none; }
.reveal-right { opacity: 0; transform: translateX(28px);  transition: opacity 0.6s cubic-bezier(.4,0,.2,1), transform 0.6s cubic-bezier(.4,0,.2,1); }
.reveal-right.visible { opacity: 1; transform: none; }
.reveal-scale { opacity: 0; transform: scale(0.92); transition: opacity 0.55s cubic-bezier(.4,0,.2,1), transform 0.55s cubic-bezier(.4,0,.2,1); }
.reveal-scale.visible { opacity: 1; transform: none; }

.anim-fade-left  { animation: fadeInLeft  0.7s cubic-bezier(.4,0,.2,1) both; }
.anim-fade-right { animation: fadeInRight 0.7s cubic-bezier(.4,0,.2,1) both; animation-delay: 0.1s; }
.anim-fade-up    { animation: fadeInUp   0.7s cubic-bezier(.4,0,.2,1) both; }

#toast-container {
  position: fixed; top: 80px; right: 20px;
  z-index: 99999; display: flex; flex-direction: column; gap: 10px;
}
.toast {
  padding: 14px 20px; border-radius: var(--radius-sm);
  background: var(--bg2); box-shadow: var(--shadow-lg);
  font-size: 0.9rem; font-weight: 500;
  border-left: 4px solid var(--primary);
  animation: slideIn 0.3s ease, fadeOut 0.4s 2.6s forwards;
  max-width: 340px;
}
.toast.success { border-color: var(--accent); color: #065f46; background: #ecfdf5; }
.toast.error   { border-color: var(--secondary); color: #991b1b; background: #fff1f2; }
.toast.info    { border-color: var(--primary); color: #1e3a8a; background: var(--primary-light); }
@keyframes slideIn { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; transform: translateX(120%); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: transparent;
  border-bottom: 1px solid rgba(255,255,255,0.35);
  height: var(--navbar-h);
  box-shadow: 0 2px 24px rgba(29,78,216,0.10), inset 0 1px 0 rgba(255,255,255,0.7);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.navbar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  transition: background 0.4s ease;
  z-index: -1;
}
.navbar.scrolled { box-shadow: 0 4px 32px rgba(29,78,216,0.14), inset 0 1px 0 rgba(255,255,255,0.8); }
.navbar.scrolled::before { background: rgba(255,255,255,0.68); }
.navbar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0.05) 50%, rgba(29,78,216,0.04) 100%);
  pointer-events: none;
  z-index: -1;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; gap: 8px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.2rem; font-weight: 700; color: var(--primary);
  white-space: nowrap; flex-shrink: 0; margin-right: 8px;
}
.nav-logo .logo-icon { font-size: 1.5rem; }
.site-logo {
  width: 56px; height: 56px;
  border-radius: 50%; object-fit: cover;
  display: inline-block; flex-shrink: 0;
}
.site-logo--sm { width: 36px; height: 36px; }
.site-logo--md { width: 52px; height: 52px; }
.site-logo--lg { width: 96px; height: 96px; }
.site-logo--xl { width: 120px; height: 120px; }
.nav-links {
  display: flex; align-items: center; gap: 2px; margin-left: 8px;
}
.nav-link {
  padding: 7px 10px; border-radius: var(--radius-xs);
  font-size: 0.875rem; font-weight: 500; color: var(--text);
  white-space: nowrap;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  position: relative;
}
.nav-link::after {
  content: ''; position: absolute; bottom: 0; left: 50%; right: 50%;
  height: 2px; background: var(--primary); border-radius: 1px;
  transition: left 0.25s ease, right 0.25s ease;
}
.nav-link:hover::after, .nav-link.active::after { left: 10px; right: 10px; }
.nav-link:hover, .nav-link.active { background: var(--primary-light); color: var(--primary); }
.nav-admin { color: var(--primary); font-weight: 700; }
.nav-auth { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }

.nav-ig-btn {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px;
  color: var(--text);
  background: rgba(131,58,180,0.08);
  transition: all var(--transition);
  position: relative;
}
.nav-ig-btn:hover {
  color: #fff;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(220,39,67,0.35);
}
.nav-ig-btn svg { display: block; }

.footer-ig-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.85); text-decoration: none;
  font-weight: 600; font-size: 0.95rem;
  margin: 10px 0 6px;
  transition: color var(--transition), transform var(--transition);
}
.footer-ig-link:hover { color: #fff; transform: translateY(-2px); }
.footer-ig-link svg { flex-shrink: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 22px; border-radius: var(--radius-sm);
  font-size: 0.92rem; font-weight: 600; border: none;
  transition: all var(--transition); white-space: nowrap;
  position: relative; overflow: hidden;
}
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0.18);
  opacity: 0; transition: opacity 0.18s;
  border-radius: inherit;
}
.btn:active::after { opacity: 1; }
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--primary);
  color: #fff; box-shadow: 0 4px 14px rgba(29,78,216,0.3);
}
.btn-primary:hover { transform: translateY(-2px); background: var(--primary-dark); box-shadow: 0 6px 24px rgba(29,78,216,0.45); animation: pulse-glow 1.2s ease-out; }
.btn-secondary { background: var(--secondary); color: #fff; box-shadow: 0 4px 14px rgba(220,38,38,0.3); }
.btn-secondary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(220,38,38,0.4); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-outline-white { background: transparent; color: var(--primary); border: 2px solid currentColor; }
.btn-outline-white:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-danger { background: #ef4444; color: #fff; }
.btn-danger:hover { background: #dc2626; }
.btn-success { background: var(--accent); color: #065f46; }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { background: var(--border); color: var(--text); }
.btn-sm { padding: 6px 14px; font-size: 0.82rem; }
.btn-lg { padding: 14px 32px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.55; pointer-events: none; }
.btn-icon { padding: 8px; border-radius: var(--radius-xs); background: none; border: none; }
.btn-icon:hover { background: var(--border); }

.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; margin-bottom: 6px;
  font-size: 0.88rem; font-weight: 600; color: var(--text);
}
.form-control {
  width: 100%; padding: 11px 14px;
  border: 2px solid var(--border); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 0.92rem; color: var(--text);
  background: #fff; transition: border-color var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(29,78,216,0.12); }
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { appearance: none; 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 14px center; padding-right: 36px; }
.input-icon { position: relative; }
.input-icon .form-control { padding-left: 42px; }
.input-icon .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }
.form-error { font-size: 0.82rem; color: #ef4444; margin-top: 4px; }

.card {
  background: var(--bg2); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform 0.3s cubic-bezier(.4,0,.2,1), box-shadow 0.3s cubic-bezier(.4,0,.2,1);
}
.card:hover { transform: translateY(-6px) scale(1.01); box-shadow: var(--shadow-lg); }
.card-body { padding: 24px; }
.card-header { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }

.badge {
  display: inline-flex; align-items: center;
  padding: 4px 10px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 600;
}
.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-success { background: var(--accent-light); color: #065f46; }
.badge-danger  { background: #fef2f2; color: #dc2626; }
.badge-warning { background: var(--yellow-light); color: #92400e; }
.badge-muted   { background: var(--border); color: var(--text-muted); }

.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-title { margin-bottom: 48px; }
.section-title h2 { color: var(--text); }
.section-title p { margin-top: 8px; font-size: 1.05rem; }
.section-title-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }

.hero {
  position: relative; overflow: hidden;
  background: #1e3a8a;
  color: #fff; padding: 120px 0 100px;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url('../images/logo/BANER.png') center center / cover no-repeat;
  opacity: 0.18;
  animation: hero-bg-drift 20s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes hero-bg-drift {
  from { transform: scale(1.04) translateX(0); }
  to   { transform: scale(1.08) translateX(-16px); }
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.12); backdrop-filter: blur(10px);
  padding: 8px 18px; border-radius: 999px; font-size: 0.85rem; font-weight: 600;
  margin-bottom: 20px; border: 1px solid rgba(255,255,255,0.2);
  animation: badge-pulse 2.5s ease-in-out infinite;
}
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 .highlight {
  background: linear-gradient(90deg, #f87171 0%, #fbbf24 40%, #f87171 80%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: shimmer 3s linear infinite;
}
.hero p { color: rgba(255,255,255,0.75); font-size: 1.1rem; margin-bottom: 36px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-white { background: #fff; color: var(--primary-dark); font-weight: 700; }
.btn-white:hover { background: var(--primary-light); transform: translateY(-2px); }
.btn-ghost-white { background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.btn-ghost-white:hover { background: rgba(255,255,255,0.22); }
.hero-visual {
  display: flex; justify-content: center; align-items: center;
}
.hero-card-float {
  background: rgba(255,255,255,0.12); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.2); border-radius: var(--radius);
  padding: 32px; text-align: center; animation: float 4s ease-in-out infinite;
  transition: box-shadow 0.3s ease;
}
.hero-card-float:hover { box-shadow: 0 8px 40px rgba(255,255,255,0.15); }
.hero-card-float .emoji { font-size: 5rem; display: block; margin-bottom: 16px; }
.hero-card-float h3 { color: #fff; font-size: 1.4rem; }
.hero-card-float p { color: rgba(255,255,255,0.7); font-size: 0.9rem; margin-top: 8px; }

.announcement-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 28px; }
.announcement-card {
  background: var(--bg2); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform 0.3s cubic-bezier(.4,0,.2,1), box-shadow 0.3s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  border-top: 4px solid var(--card-color, var(--primary));
}
.announcement-card:hover { transform: translateY(-6px) scale(1.01); box-shadow: var(--shadow-lg); }
.ann-card-img-wrap { position: relative; background: #f1f5f9; overflow: hidden; }
.ann-card-img-wrap .announcement-image {
  width: 100%; height: auto; max-height: 300px;
  object-fit: contain; display: block;
}
.ann-card-no-img { height: 6px; background: var(--card-color, var(--primary)); }
.ann-pinned-badge {
  position: absolute; top: 10px; right: 10px;
  font-size: 0.72rem; font-weight: 700;
  color: #fff; background: var(--secondary);
  padding: 3px 10px; border-radius: 999px; white-space: nowrap;
}
.ann-card-body { padding: 20px 24px 22px; display: flex; flex-direction: column; flex: 1; }
.ann-card-title { font-size: 1.1rem; font-weight: 700; color: var(--text); line-height: 1.35; margin-bottom: 8px; }
.announcement-meta { font-size: 0.8rem; color: var(--text-muted); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.ann-card-excerpt { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; flex: 1; }
.announcement-read-more { display: inline-block; margin-top: 14px; font-size: 0.85rem; font-weight: 600; color: var(--card-color, var(--primary)); }
.announcement-card:hover .announcement-read-more { text-decoration: underline; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.gallery-item {
  position: relative; border-radius: var(--radius-sm); overflow: hidden;
  aspect-ratio: 4/3; background: var(--border);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(.4,0,.2,1), box-shadow 0.3s ease;
}
.gallery-item:hover { transform: scale(1.03); box-shadow: 0 8px 32px rgba(0,0,0,0.18); }
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,0.80), transparent);
  opacity: 0; transition: opacity var(--transition);
  display: flex; align-items: flex-end; padding: 16px;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-overlay p { color: #fff; font-size: 0.85rem; font-weight: 500; }

.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }
.staff-card {
  background: var(--bg2); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 40px 28px 32px; text-align: center;
  transition: transform 0.3s cubic-bezier(.4,0,.2,1), box-shadow 0.3s cubic-bezier(.4,0,.2,1);
  position: relative; overflow: hidden;
}
.staff-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--secondary);
}
.staff-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: var(--shadow-lg); }
.staff-card:hover .staff-avatar {
  border-color: var(--primary);
  box-shadow: 0 8px 30px rgba(29,78,216,0.35);
  transform: scale(1.05);
}
.staff-avatar {
  width: 140px; height: 140px; border-radius: 50%; margin: 0 auto 20px;
  object-fit: cover; border: 4px solid var(--primary-light);
  box-shadow: 0 6px 20px rgba(29,78,216,0.25);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s cubic-bezier(.4,0,.2,1);
}
.staff-avatar-default {
  width: 140px; height: 140px; border-radius: 50%; margin: 0 auto 20px;
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; border: 4px solid var(--primary-light);
}
.staff-name { font-size: 1.05rem; font-weight: 700; color: var(--text); }
.staff-role { font-size: 0.82rem; color: var(--primary); font-weight: 600; margin-top: 4px; }
.staff-desc { font-size: 0.82rem; color: var(--text-muted); margin-top: 8px; }

.page-header {
  background: #1e3a8a;
  color: white; padding: 64px 0 56px;
  text-align: center; position: relative; overflow: hidden;
}
.page-header h1 { color: white; margin-bottom: 12px; }
.page-header p { color: rgba(255,255,255,0.75); font-size: 1.05rem; }
.page-header .container { position: relative; z-index: 1; }
.page-header::before {
  content: ''; position: absolute; inset: 0;
  background: url('../images/logo/BANER.png') center center / cover no-repeat;
  opacity: 0.18;
}

.admin-layout { display: flex; min-height: calc(100vh - var(--navbar-h)); }
.admin-sidebar {
  width: 260px; background: #1e3a8a; color: white;
  flex-shrink: 0; padding: 24px 0;
  display: flex; flex-direction: column;
  position: sticky; top: var(--navbar-h); height: calc(100vh - var(--navbar-h)); overflow-y: auto;
}
.admin-sidebar-logo {
  padding: 0 24px 24px; border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 16px;
}
.admin-sidebar-logo .logo { font-size: 1.1rem; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 8px; }
.sidebar-nav-item {
  padding: 12px 24px; display: flex; align-items: center; gap: 12px;
  font-size: 0.9rem; font-weight: 500; color: rgba(255,255,255,0.65);
  border-radius: 0; cursor: pointer; transition: all var(--transition);
  border: none; background: none; width: 100%; text-align: left;
}
.sidebar-nav-item:hover { background: rgba(255,255,255,0.08); color: #fff; }
.sidebar-nav-item.active { background: rgba(220,38,38,0.25); color: #fff; border-right: 3px solid var(--secondary); }
.sidebar-nav-item .nav-icon { font-size: 1.2rem; width: 24px; text-align: center; }
.sidebar-section-title { padding: 16px 24px 8px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.35); }
.admin-main { flex: 1; padding: 32px; background: var(--bg); overflow-x: hidden; }
.admin-page-title {
  margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.admin-page-title h2 { font-size: 1.6rem; color: var(--text); }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; margin-bottom: 32px; }
.stat-card {
  background: var(--bg2); border-radius: var(--radius);
  padding: 22px 24px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 16px;
  transition: transform var(--transition);
}
.stat-card:hover { transform: translateY(-3px); }
.stat-icon {
  width: 52px; height: 52px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
  flex-shrink: 0;
}
.stat-icon.purple { background: var(--primary-light); }
.stat-icon.pink   { background: var(--secondary-light); }
.stat-icon.green  { background: var(--accent-light); }
.stat-icon.yellow { background: var(--yellow-light); }
.stat-number { font-size: 1.8rem; font-weight: 800; color: var(--text); line-height: 1; }
.stat-label { font-size: 0.82rem; color: var(--text-muted); font-weight: 500; margin-top: 4px; }

.table-wrap { background: var(--bg2); border-radius: var(--radius); box-shadow: var(--shadow); overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; }
thead th {
  text-align: left; padding: 14px 20px;
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--text-muted); background: #f1f5f9; border-bottom: 1px solid var(--border);
}
tbody td { padding: 14px 20px; font-size: 0.9rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #f8fafc; }
.actions-cell { display: flex; gap: 8px; }

.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 5000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  backdrop-filter: blur(4px);
}
.modal-box {
  background: var(--bg2); border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0,0,0,0.25);
  max-width: 540px; width: 100%; max-height: 90vh; overflow-y: auto;
  padding: 36px; position: relative;
  animation: modalIn 0.25s cubic-bezier(.4,0,.2,1);
}
@keyframes modalIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; font-size: 1.6rem; color: var(--text-muted);
  line-height: 1; transition: color var(--transition);
}
.modal-close:hover { color: var(--text); }
.modal-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 24px; }

.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 10000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  background: none; border: none; color: #fff; font-size: 2rem; cursor: pointer; z-index: 1;
}
.lightbox-prev, .lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.1); border: none; color: #fff;
  font-size: 1.8rem; padding: 12px 16px; border-radius: var(--radius-xs); cursor: pointer;
  transition: background var(--transition);
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.2); }
.lightbox-img-wrap { max-width: 900px; text-align: center; }
.lightbox-img-wrap img { max-height: 75vh; object-fit: contain; border-radius: var(--radius-sm); }
.lightbox-img-wrap p { color: rgba(255,255,255,0.75); margin-top: 12px; font-size: 0.92rem; }

.login-page {
  min-height: calc(100vh - var(--navbar-h));
  display: flex; align-items: center; justify-content: center;
  background: #1e3a8a;
  padding: 40px 20px;
}
.login-card {
  background: white; border-radius: var(--radius);
  padding: 48px 40px; max-width: 440px; width: 100%;
  box-shadow: 0 24px 80px rgba(0,0,0,0.3);
}
.login-logo { text-align: center; margin-bottom: 32px; display: flex; flex-direction: column; align-items: center; }
.login-logo h2 { font-size: 1.6rem; color: var(--text); margin-top: 10px; }
.login-logo p { margin-top: 4px; font-size: 0.9rem; }

.perms-grid { display: grid; gap: 12px; }
.perm-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: var(--bg); border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.perm-info { flex: 1; }
.perm-name { font-weight: 600; font-size: 0.9rem; color: var(--text); }
.perm-desc { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }
.perm-category-badge { font-size: 0.72rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--primary-light); color: var(--primary); margin-left: 8px; }
.toggle-switch {
  position: relative; width: 44px; height: 24px;
  flex-shrink: 0; margin-left: 16px;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0; background: #d1d5db; border-radius: 999px;
  cursor: pointer; transition: background var(--transition);
}
.toggle-slider::before {
  content: ''; position: absolute; left: 3px; top: 3px;
  width: 18px; height: 18px; background: white; border-radius: 50%;
  transition: transform var(--transition); box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.toggle-switch input:checked + .toggle-slider { background: var(--primary); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }

.log-table td { font-size: 0.85rem; }
.log-action { font-weight: 600; color: var(--text); }
.log-details { font-size: 0.78rem; color: var(--text-muted); font-family: monospace; }

.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 24px; overflow-x: auto; }
.tab-btn {
  padding: 10px 20px; background: none; border: none; border-bottom: 3px solid transparent;
  margin-bottom: -2px; font-size: 0.9rem; font-weight: 600; color: var(--text-muted);
  cursor: pointer; transition: all var(--transition); white-space: nowrap; border-radius: var(--radius-xs) var(--radius-xs) 0 0;
}
.tab-btn:hover { color: var(--primary); background: var(--primary-light); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }

.color-swatches { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.color-swatch {
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
  border: 3px solid transparent; transition: transform var(--transition), border-color var(--transition);
}
.color-swatch:hover, .color-swatch.selected { transform: scale(1.2); border-color: rgba(0,0,0,0.25); }

.ann-image-upload-area {
  border: 2px dashed var(--border); border-radius: var(--radius-sm);
  min-height: 100px; background: var(--bg); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  transition: border-color var(--transition);
}
.ann-image-upload-area:hover { border-color: var(--primary); }
.ann-img-placeholder { color: var(--text-muted); font-size: 0.9rem; padding: 20px; }
.ann-img-preview { position: relative; width: 100%; }
.ann-img-preview img { width: 100%; max-height: 200px; object-fit: cover; display: block; border-radius: calc(var(--radius-sm) - 2px); }
.ann-img-remove {
  position: absolute; top: 8px; right: 8px;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(0,0,0,0.55); color: #fff; border: none;
  font-size: 1.1rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.ann-img-remove:hover { background: var(--secondary); }

.empty-state {
  text-align: center; padding: 80px 20px;
}
.empty-state .emoji { font-size: 4rem; display: block; margin-bottom: 16px; }
.empty-state h3 { color: var(--text); margin-bottom: 8px; }

.user-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem; color: #fff; overflow: hidden; flex-shrink: 0;
}
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }

.footer { background: #1e3a8a; color: rgba(255,255,255,0.65); padding: 40px 0; margin-top: auto; }
.footer-inner { text-align: center; }
.footer-brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff; font-size: 1.1rem; margin-bottom: 12px;
  transition: transform 0.3s ease;
}
.footer-brand:hover { transform: scale(1.04); }
.footer-tagline { margin: 8px 0 4px; font-size: 1rem; color: rgba(255,255,255,0.7); }
.footer-copy { font-size: 0.82rem; }

.nav-profile-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: none; border-radius: var(--radius-sm);
  padding: 5px 10px 5px 5px; cursor: pointer; font-family: inherit;
  transition: background var(--transition);
}
.nav-profile-btn:hover { background: var(--primary-light); }
.nav-profile-name { font-weight: 600; font-size: 0.9rem; color: var(--text); }
.nav-profile-caret { font-size: 0.7rem; color: var(--text-muted); }
.nav-profile-wrap { position: relative; }
.nav-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-sm); box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  min-width: 200px; z-index: 1100; display: none;
}
.nav-dropdown.open { display: block; }
.nav-dropdown-header {
  padding: 14px 16px 10px; border-bottom: 1px solid var(--border);
  font-size: 0.82rem; color: var(--text-muted);
}
.nav-dropdown-header strong { display: block; font-size: 0.95rem; color: var(--text); font-weight: 700; }
.nav-dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px; font-size: 0.9rem; color: var(--text);
  background: none; border: none; width: 100%; text-align: left;
  cursor: pointer; font-family: inherit; transition: background var(--transition);
}
.nav-dropdown-item:hover { background: var(--primary-light); color: var(--primary); }
.nav-dropdown-item.danger:hover { background: #fef2f2; color: #dc2626; }

.profile-avatar-area {
  position: relative; width: 96px; height: 96px;
  margin: 0 auto 8px; display: flex; align-items: center; justify-content: center;
}
.profile-avatar-area .user-avatar {
  width: 96px; height: 96px; font-size: 1.8rem; border-radius: 50%;
  border: 3px solid var(--primary-light);
}
.profile-avatar-edit {
  position: absolute; bottom: 0; right: 0;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: background var(--transition);
}
.profile-avatar-edit:hover { background: var(--primary-dark); }

.filters-bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 24px; }
.search-input { position: relative; flex: 1; min-width: 220px; }
.search-input input { padding-left: 40px; }
.search-input::before { content: '🔍'; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 0.9rem; }

.pagination { display: flex; gap: 8px; justify-content: center; align-items: center; margin-top: 32px; }
.page-btn {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-xs); border: 1px solid var(--border); background: var(--bg2);
  font-size: 0.88rem; font-weight: 600; cursor: pointer; transition: all var(--transition);
}
.page-btn:hover, .page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.suggestion-card {
  background: var(--bg2); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); margin-bottom: 14px; overflow: hidden;
  border-left: 4px solid var(--border); transition: box-shadow var(--transition);
}
.suggestion-card--new { border-left-color: var(--secondary); }
.suggestion-card:hover { box-shadow: var(--shadow-lg); }
.suggestion-card-header { padding: 16px 20px 10px; border-bottom: 1px solid var(--border); }
.suggestion-card-body { padding: 16px 20px; }
.suggestion-admin-note {
  margin-top: 12px; padding: 10px 14px;
  background: #fef9c3; border-radius: var(--radius-xs);
  font-size: 0.83rem; color: #78350f; border-left: 3px solid #ca8a04;
}
.suggestion-card-footer {
  padding: 10px 20px; border-top: 1px solid var(--border);
  display: flex; gap: 8px; align-items: center; background: var(--bg);
  flex-wrap: wrap;
}
.form-control-sm { padding: 6px 10px; font-size: 0.82rem; max-width: 160px; }

.ann-detail-header {
  background: var(--card-color, var(--primary));
  color: #fff; padding: 80px 0 64px;
  position: relative; overflow: hidden;
}
.ann-back-btn {
  display: inline-block; color: rgba(255,255,255,0.8); margin-bottom: 24px;
  font-size: 0.9rem; font-weight: 600; transition: color var(--transition);
}
.ann-back-btn:hover { color: #fff; }
.ann-detail-header h1 { color: #fff; font-size: clamp(1.6rem, 4vw, 2.6rem); margin-bottom: 16px; line-height: 1.25; }
.ann-detail-meta { display: flex; gap: 20px; flex-wrap: wrap; color: rgba(255,255,255,0.75); font-size: 0.9rem; }
.ann-detail-img-wrap--top { margin-bottom: 36px; }
.ann-detail-img--size-full { width: 100%; max-height: 700px; object-fit: contain; background: #f1f5f9; border-radius: var(--radius); display: block; }
.ann-detail-img--size-contained { max-width: 680px; max-height: 600px; width: 100%; object-fit: contain; background: #f1f5f9; border-radius: var(--radius); display: block; margin: 0 auto; }
.ann-detail-split { display: grid; grid-template-columns: 1fr 1.5fr; gap: 44px; align-items: start; margin-bottom: 32px; }
.ann-detail-split--right { grid-template-columns: 1.5fr 1fr; }
.ann-detail-split--right img { order: 2; }
.ann-detail-split img { width: 100%; border-radius: var(--radius); object-fit: cover; max-height: 420px; }
.ann-detail-excerpt { font-size: 1.1rem; color: var(--primary); font-weight: 600; border-left: 4px solid var(--primary); padding-left: 18px; margin-bottom: 28px; font-style: italic; line-height: 1.6; }
.ann-detail-body { font-size: 1rem; line-height: 1.85; color: var(--text); white-space: pre-wrap; }
@media (max-width: 640px) {
  .ann-detail-split, .ann-detail-split--right { grid-template-columns: 1fr; }
  .ann-detail-split--right img { order: 0; }
}

.admin-mobile-bar { display: none; }
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-btns { justify-content: center; }
  .hero-visual { display: none; }
  .admin-layout { flex-direction: column; }
  .admin-sidebar {
    position: fixed; top: 0; left: -280px; width: 270px;
    height: 100vh; z-index: 1200; padding: 24px 0;
    flex-direction: column; overflow-y: auto; overflow-x: hidden;
    transition: left 0.28s cubic-bezier(0.4,0,0.2,1);
    flex-wrap: nowrap;
  }
  .admin-sidebar.open { left: 0; }
  .admin-sidebar-logo { display: flex; }
  .sidebar-section-title { display: block; }
  .sidebar-nav-item { padding: 12px 24px; flex-direction: row; gap: 12px; font-size: 0.9rem; }
  .sidebar-nav-item .nav-icon { font-size: 1.2rem; }
  .admin-sidebar-backdrop {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.45); z-index: 1199;
  }
  .admin-sidebar-backdrop.open { display: block; }
  .admin-mobile-bar {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 20px; background: #1e3a8a; color: #fff;
    font-weight: 700; font-size: 1rem;
  }
  .admin-mobile-bar button {
    background: none; border: none; color: #fff; cursor: pointer;
    font-size: 1.5rem; line-height: 1; padding: 4px 8px;
  }
  .admin-main { padding: 20px 16px; }
  .form-row { grid-template-columns: 1fr; }
  .announcement-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hamburger { display: flex; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: var(--navbar-h); left: 0; right: 0; background: white; padding: 16px; box-shadow: 0 8px 30px rgba(0,0,0,0.1); z-index: 999; }
  .nav-links.open { display: flex; }
  .navbar { position: sticky; }
  .nav-profile-name { display: none; }
  .nav-profile-caret { display: none; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .admin-main { padding: 14px 12px; }
  .admin-page-title { margin-bottom: 16px; padding-bottom: 12px; }
  .admin-page-title h2 { font-size: 1.2rem; }
  thead th { padding: 10px 12px; }
  tbody td { padding: 10px 12px; font-size: 0.82rem; }
  .stat-card { padding: 14px 16px; gap: 10px; }
  .stat-icon { width: 40px; height: 40px; font-size: 1.1rem; }
  .stat-number { font-size: 1.5rem; }
  .filters-bar { gap: 8px; }
  .perm-item { flex-wrap: wrap; align-items: flex-start; }
  .toggle-switch { margin-left: 0; }
}
@media (max-width: 400px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
}

.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-2 { gap: 16px; }
.flex-wrap { flex-wrap: wrap; }
.justify-between { justify-content: space-between; }
.fw-700 { font-weight: 700; }
.color-primary { color: var(--primary); }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; display: inline-block; vertical-align: bottom; }
