/* ========================================
   KARIS WORSHIP SYSTEM — Global Styles
   카리스 찬양팀 글래스모피즘 디자인 시스템
   ────────────────────────────────────────
   Design System v3 — Unified SSOT
   · 단일 :root 토큰 (2세대 기준)
   · 간격 스케일 토큰 신설
   · 기존 컴포넌트 클래스 100% 호환
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;600;700;800&family=Noto+Serif+KR:wght@300;400;500;600;700&display=swap');
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');

/* ========================================
   :root — Design Tokens (SSOT)
   ======================================== */
:root {
  /* ---- Brand ---- */
  --primary:        #1456D9;
  --primary-dark:   #0D3A9F;
  --primary-light:  #3B82F6;
  --primary-pale:   #E7F0FF;
  --primary-bg:     rgba(20, 86, 217, 0.1);

  /* ---- Semantic accents ---- */
  --accent:         #C88A12;
  --accent-light:   rgba(255, 248, 229, 0.78);
  --success:        #10B981;
  --danger:         #EF4444;
  --warning:        #F59E0B;

  /* ---- Event type colors (schedule.html) ---- */
  --ev-regular: #1B4FD8;  /* 정기모임 */
  --ev-worship: #10B981;  /* 예배사역 */
  --ev-officer: #F59E0B;  /* 임원회의 */
  --ev-break:   #8B5CF6;  /* 방중사역 */
  --ev-special: #EF4444;  /* 특별행사 */
  --ev-school:  #64748B;  /* 학사일정 */

  /* ---- Neutrals (blue-gray) ---- */
  --white:    #FFFFFF;
  --gray-50:  #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E4EAF2;
  --gray-300: #CBD6E4;
  --gray-400: #7F8DA3;
  --gray-500: #5B6B83;
  --gray-600: #41506A;
  --gray-700: #26364D;
  --gray-800: #152238;
  --gray-900: #08111F;

  /* ---- Type ---- */
  --font-sans:  'Pretendard', 'Pretendard Variable', 'Noto Sans KR',
                -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo',
                sans-serif;
  --font-serif: 'Noto Serif KR', 'Nanum Myeongjo', serif;

  /* ---- Radii ---- */
  --radius-sm:   10px;
  --radius-md:   14px;
  --radius-lg:   18px;
  --radius-xl:   24px;
  --radius-pill: 9999px;

  /* ---- Shadows ---- */
  --shadow-sm:   0 1px 1px rgba(255,255,255,0.85) inset, 0 10px 28px rgba(15,23,42,0.07);
  --shadow-md:   0 1px 1px rgba(255,255,255,0.86) inset, 0 18px 44px rgba(15,23,42,0.11);
  --shadow-lg:   0 1px 1px rgba(255,255,255,0.84) inset, 0 28px 72px rgba(15,23,42,0.16);
  --shadow-blue: 0 12px 28px rgba(20, 86, 217, 0.26);

  /* ---- Glassmorphism ---- */
  --glass-bg:          rgba(255, 255, 255, 0.62);
  --glass-bg-strong:   rgba(255, 255, 255, 0.76);
  --glass-bg-light:    rgba(255, 255, 255, 0.44);
  --glass-border:      rgba(255, 255, 255, 0.72);
  --glass-border-soft: rgba(226, 235, 247, 0.78);
  --glass-blur:        blur(24px) saturate(150%);
  --glass-blur-sm:     blur(18px) saturate(145%);
  --glass-blur-xs:     blur(12px) saturate(135%);

  /* ---- Layout ---- */
  --nav-height:       66px;
  --container-max:    1180px;
  --container-sm-max: 900px;
  --container-lg-max: 1320px;
  --container-px:     24px;

  /* ---- Spacing scale ---- */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* ---- Motion ---- */
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --transition:    0.2s var(--ease-standard);

  /* ---- Semantic foreground ---- */
  --fg-1: var(--gray-800);
  --fg-2: var(--gray-600);
  --fg-3: var(--gray-500);
  --fg-4: var(--gray-400);
  --fg-on-primary: #FFFFFF;
  --link: var(--primary);

  /* ---- Calendar ---- */
  --event-bg: transparent;
}

/* ========================================
   Apple-style Continuous Corners
   ======================================== */
@supports (corner-shape: superellipse 4) {
  .card,
  .accordion-item,
  .timeline-content,
  .stat-card,
  .notice-item,
  .table-wrapper,
  .gallery-item,
  .modal,
  .alert,
  .info-item,
  .btn,
  .form-input,
  .form-select,
  .form-textarea,
  .tabs,
  .tab-btn,
  .badge,
  .hero,
  .page-header,
  .nav-link {
    corner-shape: superellipse 4;
  }
}

/* ========================================
   Reset & Base
   ======================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  background: #ECF3FC;
  scroll-behavior: smooth;
  overflow-x: clip;
}

@keyframes page-enter {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
@keyframes page-leave {
  to { opacity: 0; transform: translateY(-6px); }
}

body {
  overflow-x: clip;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-800);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #EDF4FD;
  background:
    radial-gradient(1000px 580px at 18% -8%, rgba(89, 151, 245, 0.18), transparent 64%),
    radial-gradient(760px 520px at 88% 8%, rgba(20, 86, 217, 0.12), transparent 60%),
    linear-gradient(180deg, #F8FBFF 0%, #EEF5FD 48%, #F7FAFE 100%);
}

body._leaving { pointer-events: none; }
body._leaving .page-wrapper { animation: page-leave 0.15s ease forwards; }

body, .k-display, .k-h1, .k-h2, .k-h3, .k-h4,
.k-body, .k-body-sm, .k-meta, .k-eyebrow, .k-scripture, .k-cite,
.btn, .badge, .stat-value, .nav-link, table, .form-input, .form-select {
  font-feature-settings: "tnum" 0, "lnum" 1, "zero" 0;
  font-variant-numeric: lining-nums proportional-nums;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: var(--font-sans); border: none; outline: none; }
input, textarea, select { font-family: var(--font-sans); }
input[type="checkbox"],
input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  flex-shrink: 0;
}
ul, ol { list-style: none; }

/* ========================================
   Semantic Type Classes (.k-*)
   ======================================== */
.k-display {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.1;
  letter-spacing: 0;
}
.k-h1 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.25;
  letter-spacing: 0;
  color: var(--fg-1);
}
.k-h2,
.k-section-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.3;
  letter-spacing: 0;
  color: var(--fg-1);
}
.k-h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: 0;
  color: var(--fg-1);
}
.k-h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--fg-1);
}
.k-body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.8;
  color: var(--fg-3);
}
.k-body-sm {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.65;
  color: var(--fg-3);
}
.k-meta {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.4;
  color: var(--fg-4);
  letter-spacing: 0.3px;
}
.k-eyebrow {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--primary);
}
.k-scripture {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.85;
  font-style: normal;
  letter-spacing: -0.2px;
  color: var(--fg-2);
}
.k-cite {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 12px;
  font-style: normal;
  color: var(--fg-4);
}

/* ========================================
   Logo Images
   ======================================== */
.nav-logo-img {
  height: 34px;
  width: auto;
  display: block;
  object-fit: contain;
}
.footer-logo-img {
  height: 40px;
  width: auto;
  display: block;
  margin: 0 auto 14px;
  object-fit: contain;
  opacity: 0.9;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(248, 251, 255, 0.68);
  backdrop-filter: blur(26px) saturate(160%);
  -webkit-backdrop-filter: blur(26px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04), 0 14px 38px rgba(15, 23, 42, 0.08);
  z-index: 1000;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 var(--container-px);
  transition: transform 0.3s ease;
}
.navbar.nav-hidden { transform: translateY(-100%); }
.nav-left   { display: flex; align-items: center; }
.nav-logo   { display: flex; align-items: center; min-height: 44px; padding: 2px 0; }
.nav-center { display: flex; align-items: center; justify-content: center; }
.nav-links  { display: flex; align-items: center; gap: 2px; }
.nav-right  { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }

.nav-link {
  padding: 7px 13px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 650;
  color: var(--gray-600);
  transition: all var(--transition);
  white-space: nowrap;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  position: relative;
}
.nav-link:hover {
  background: rgba(21, 87, 216, 0.07);
  color: var(--primary);
}
.nav-link.active {
  color: var(--primary);
  font-weight: 700;
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 13px;
  right: 13px;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-height); left: 0; right: 0;
  background: rgba(248, 251, 255, 0.82);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.14);
  padding: 12px;
  z-index: 999;
  flex-direction: column;
  gap: 4px;
}
.nav-mobile.open { display: flex; }
.nav-mobile .nav-link { display: flex; align-items: center; min-height: 44px; }

#navAuthArea > a,
#navAuthArea > button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---- Page Wrapper ---- */
.page-wrapper {
  padding-top: var(--nav-height);
  min-height: 100vh;
  background: transparent;
  animation: page-enter 0.25s var(--ease-standard) both;
}

/* ========================================
   Hero & Page Header
   ======================================== */
.hero,
.page-header {
  background:
    linear-gradient(135deg, rgba(11, 18, 32, 0.96), rgba(17, 43, 101, 0.94)),
    linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white;
  padding: 52px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: white;
  font-size: 13px;
  font-weight: 500;
  padding: 5px 18px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}
.hero h1 {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 16px;
  line-height: 1.2;
}
.hero p {
  font-size: clamp(15px, 2vw, 18px);
  opacity: 0.88;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}
.hero-scripture {
  margin-top: 0;
  display: block;
  background: none;
  border-left: none;
  padding: 0;
  border-radius: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  opacity: 0.92;
}

.page-header h1 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 6px;
  position: relative;
}
.page-header p,
.breadcrumb {
  color: rgba(255, 255, 255, 0.72);
  opacity: 1;
  position: relative;
}
.breadcrumb {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  margin-bottom: 12px;
}
.breadcrumb span:not(:last-child)::after { content: '›'; margin-left: 6px; }

/* ---- Container ---- */
.container    { max-width: var(--container-max);    margin: 0 auto; padding: 0 var(--container-px); }
.container-sm { max-width: var(--container-sm-max); margin: 0 auto; padding: 0 var(--container-px); }
.container-lg { max-width: var(--container-lg-max); margin: 0 auto; padding: 0 var(--container-px); }

/* ---- Sections ---- */
.section { padding: 56px 0; }
.section-header { margin-bottom: 28px; }
.section-title {
  font-size: clamp(21px, 2.2vw, 28px);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 8px;
  letter-spacing: 0;
}
.section-subtitle {
  font-size: 15px;
  color: var(--gray-500);
  margin-bottom: 30px;
}
.section-header .section-title { margin-bottom: 6px; }

/* ========================================
   Cards & Panels — Glassmorphism
   ======================================== */
.card,
.accordion-item,
.timeline-content,
.stat-card,
.notice-item,
.table-wrapper,
.info-item,
.gallery-item,
.modal,
.alert,
.sum-card,
.chart-card,
.fin-table-wrap,
.report-card,
.profile-card,
.my-att-profile-card {
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  backdrop-filter: var(--glass-blur-sm);
  -webkit-backdrop-filter: var(--glass-blur-sm);
}
.card,
.stat-card,
.notice-item,
.timeline-content,
.accordion-item,
.sum-card,
.chart-card,
.report-card {
  border-radius: var(--radius-md);
}
.card {
  padding: 22px;
  transition: all var(--transition);
}
.card:hover,
.notice-item:hover {
  background: rgba(255, 255, 255, 0.84);
  border-color: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card-icon,
.notice-item-icon {
  background: var(--primary-bg);
  border-radius: 10px;
}
.card-icon {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.card-icon svg { width: 20px; height: 20px; stroke: var(--primary); flex-shrink: 0; }
.card h3 { font-size: 16px; font-weight: 600; color: var(--gray-800); margin-bottom: 8px; }
.card p  { font-size: 14px; color: var(--gray-500); line-height: 1.65; }

/* ---- Grid Layouts ---- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  transition: all var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
  min-height: 40px;
  position: relative;
  overflow: hidden;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 16px rgba(27, 79, 216, 0.30);
}
.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 8px 28px rgba(27, 79, 216, 0.40);
}

.btn-outline,
.btn-ghost {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: var(--glass-blur-xs);
  -webkit-backdrop-filter: var(--glass-blur-xs);
  color: var(--gray-700);
  border: 1.5px solid rgba(203, 213, 225, 0.65);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}
.btn-outline:hover,
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(27, 79, 216, 0.28);
  color: var(--primary);
  box-shadow: 0 6px 20px rgba(27, 79, 216, 0.12);
}

.btn-white {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: var(--glass-blur-xs);
  -webkit-backdrop-filter: var(--glass-blur-xs);
  color: var(--primary);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.10);
}
.btn-white:hover { background: white; }

.btn-danger  { background: var(--danger);  color: white; box-shadow: 0 4px 14px rgba(239,68,68,0.28); }
.btn-success { background: var(--success); color: white; box-shadow: 0 4px 14px rgba(16,185,129,0.28); }

.btn-sm  { padding: 7px 14px; font-size: 13px; }
.btn-lg  { padding: 13px 24px; font-size: 16px; border-radius: 12px; }

/* ========================================
   Badges / Tags
   ======================================== */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.badge-primary { background: var(--primary-bg);            border-color: rgba(21, 87, 216, 0.12); color: var(--primary); }
.badge-success { background: rgba(16,185,129,0.12);        color: #065F46; }
.badge-warning { background: rgba(245,158,11,0.12);        color: #92400E; }
.badge-danger  { background: rgba(239,68,68,0.12);         color: #991B1B; }
.badge-gray    { background: rgba(100,116,139,0.12);       color: var(--gray-600); }

/* ========================================
   Tabs — Glass
   ======================================== */
.tabs,
.finance-tabs,
.period-tabs {
  display: flex;
  gap: 3px;
  background: rgba(255, 255, 255, 0.56);
  backdrop-filter: var(--glass-blur-sm);
  -webkit-backdrop-filter: var(--glass-blur-sm);
  padding: 5px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
  width: fit-content;
}
.tab-btn,
.finance-tabs .btn,
.period-tabs .btn {
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  min-height: 36px;
  color: var(--gray-500);
  background: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}
.tab-btn.active,
.finance-tabs .btn.active,
.period-tabs .btn.active {
  background: var(--primary);
  color: white;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(21, 87, 216, 0.18);
}
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ========================================
   Accordion — Glass
   ======================================== */
.accordion-item {
  overflow: hidden;
  margin-bottom: 10px;
  transition: all var(--transition);
}
.accordion-item.open { border-color: rgba(27,79,216,0.22); box-shadow: 0 6px 24px rgba(27,79,216,0.10); }
.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  cursor: pointer;
  background: transparent;
  transition: background var(--transition);
  user-select: none;
}
.accordion-header:hover,
.accordion-item.open .accordion-header { background: var(--primary-bg); }
.accordion-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-700);
  display: flex;
  align-items: center;
  gap: 10px;
}
.accordion-item.open .accordion-title { color: var(--primary); }
.accordion-icon { font-size: 18px; transition: transform var(--transition); color: var(--gray-400); }
.accordion-item.open .accordion-icon { transform: rotate(180deg); color: var(--primary); }
.accordion-body {
  display: none;
  padding: 0 22px 20px;
  background: rgba(255,255,255,0.30);
}
.accordion-item.open .accordion-body { display: block; }
.accordion-body p, .accordion-body li { font-size: 14px; color: var(--gray-600); line-height: 1.7; }
.accordion-body ul { margin-top: 10px; }
.accordion-body li { padding: 4px 0; padding-left: 14px; position: relative; }
.accordion-body li::before { content: '•'; position: absolute; left: 0; color: var(--primary-light); }

/* ========================================
   Forms — Glass
   ======================================== */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 7px;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  font-size: 14px;
  color: var(--gray-800);
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: var(--glass-blur-xs);
  -webkit-backdrop-filter: var(--glass-blur-xs);
  transition: border-color var(--transition), background var(--transition);
  appearance: none;
  font-family: var(--font-sans);
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: rgba(21, 87, 216, 0.65);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 0 0 4px rgba(21, 87, 216, 0.1);
}
.form-textarea { resize: vertical; min-height: 100px; }
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-color: rgba(255,255,255,0.68);
  padding-right: 36px;
}
.form-hint { font-size: 12px; color: var(--gray-400); margin-top: 5px; }

/* ========================================
   Table — Glass
   ======================================== */
.table-wrapper,
.fin-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}
table { width: 100%; border-collapse: collapse; }
thead,
.fin-table th { background: rgba(248, 251, 255, 0.58); }
th,
.fin-table th {
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}
td,
.fin-table td {
  padding: 14px 16px;
  font-size: 14px;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
}
tr:last-child td { border-bottom: none; }
tr:hover td,
.fin-table tr:hover td { background: rgba(255, 255, 255, 0.50); }

/* ========================================
   Modal — Glass
   ======================================== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.50);
  backdrop-filter: blur(8px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal {
  border-radius: 14px;
  padding: 32px;
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.24);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(30px) saturate(160%);
  -webkit-backdrop-filter: blur(30px) saturate(160%);
}
.modal { max-width: calc(100vw - 32px); }
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}
.modal-title { font-size: 20px; font-weight: 700; color: var(--gray-800); }
.modal-close {
  background: rgba(241,245,249,0.80);
  border: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  color: var(--gray-500);
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition);
}
.modal-close:hover { background: rgba(226,232,240,0.90); color: var(--gray-800); }

/* ========================================
   Info List — Glass
   ======================================== */
.info-list { display: flex; flex-direction: column; gap: 10px; }
.info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border-left: 3px solid rgba(27,79,216,0.28);
  border-top: 1px solid rgba(255,255,255,0.72);
  border-right: 1px solid rgba(255,255,255,0.72);
  border-bottom: 1px solid rgba(255,255,255,0.72);
}
.info-item-icon  { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.info-item-label { font-size: 12px; color: var(--gray-400); margin-bottom: 2px; }
.info-item-value { font-size: 14px; font-weight: 500; color: var(--gray-700); }

/* ========================================
   Stats Cards
   ======================================== */
.stat-card {
  padding: 24px;
  text-align: center;
}
.stat-value {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}
.stat-label { font-size: 13px; color: var(--gray-500); }

/* ========================================
   Timeline — Glass
   ======================================== */
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 10px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, rgba(27,79,216,0.4), transparent);
}
.timeline-item { position: relative; margin-bottom: 32px; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -22px; top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid white;
  box-shadow: 0 0 0 3px rgba(27,79,216,0.18);
}
.timeline-date {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.timeline-content {
  padding: 18px 20px;
}
.timeline-content h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.timeline-content p  { font-size: 13px; color: var(--gray-500); }

/* ========================================
   Photo Gallery
   ======================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.gallery-item {
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: rgba(241,245,249,0.60);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65), transparent);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 14px;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-caption { color: white; font-size: 13px; font-weight: 500; }

/* ========================================
   Notice / List Items
   ======================================== */
.notice-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all var(--transition);
}
.notice-item-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.notice-item-icon svg { width: 16px; height: 16px; stroke: var(--primary); }
.notice-item-body { flex: 1; min-width: 0; }
.notice-item-title { font-size: 15px; font-weight: 600; color: var(--gray-800); margin-bottom: 4px; }
.notice-item-meta  { font-size: 13px; color: var(--gray-400); }
.notice-item-new {
  font-size: 11px;
  font-weight: 700;
  background: var(--danger);
  color: white;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background: #0B1220;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--gray-400);
  padding: 40px var(--container-px);
  text-align: center;
  margin-top: 56px;
}
.footer-logo { font-size: 20px; font-weight: 700; color: white; margin-bottom: 8px; letter-spacing: -0.5px; }
.footer-sub  { font-size: 13px; margin-bottom: 6px; }
.footer-copy { font-size: 12px; color: var(--gray-600); }

/* ---- Divider ---- */
.divider { height: 1px; background: rgba(226,232,240,0.55); margin: 32px 0; }

/* ========================================
   Alert — Glass
   ======================================== */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 16px;
  backdrop-filter: var(--glass-blur-xs);
}
.alert-info    { background: rgba(219,234,254,0.58); color: var(--primary-dark); }
.alert-success { background: rgba(209,250,229,0.58); color: #065F46; border-left: 4px solid var(--success); }
.alert-warning { background: rgba(254,243,199,0.58); color: #92400E; border-left: 4px solid var(--warning); }
.alert-danger  { background: rgba(254,226,226,0.58); color: #991B1B; border-left: 4px solid var(--danger); }

/* ========================================
   Attendance Status
   ======================================== */
.attendance-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}
.status-present { background: rgba(16,185,129,0.15); color: #065F46; }
.status-late    { background: rgba(245,158,11,0.15);  color: #92400E; }
.status-absent  { background: rgba(239,68,68,0.15);   color: #991B1B; }
.status-excused { background: rgba(148,163,184,0.15); color: var(--gray-500); }

/* ========================================
   Progress Bar
   ======================================== */
.progress-bar {
  height: 8px;
  background: rgba(203,213,225,0.45);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(to right, var(--primary), var(--primary-light));
  border-radius: var(--radius-pill);
  transition: width 0.6s ease;
}

/* ========================================
   Scrollbar
   ======================================== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: rgba(241,245,249,0.50); }
::-webkit-scrollbar-thumb { background: rgba(203,213,225,0.80); border-radius: var(--radius-pill); }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* ---- Empty states ---- */
.empty-state,
[id*="loadingState"] { color: var(--gray-500); }

/* ========================================
   Responsive
   ======================================== */
@supports (-webkit-touch-callout: none) {
  body { background-attachment: scroll; }
}

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

@media (max-width: 768px) {
  .section-title  { font-size: 22px; }
  .page-header h1 { font-size: 26px; }
  .stat-value     { font-size: 30px; }
  .flex-between   { flex-wrap: wrap; gap: 12px; }
  .nav-user-name  { display: none; }
  #navUserChip    { padding: 3px !important; }
}

@media (max-width: 640px) {
  :root {
    --nav-height: 54px;
    --container-px: 16px;
  }

  .nav-logo-img { height: 26px; }
  .nav-links    { display: none; }
  .nav-toggle   { display: flex; }
  #navAuthArea,
  #navUserChip,
  .nav-logout-btn { display: none !important; }

  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }

  .section      { padding: 40px 0; }
  .hero         { padding: 60px 20px; }
  .page-header  { padding: 34px 16px; }
  .page-header h1 { font-size: 24px; word-break: keep-all; }
  .page-header p  { word-break: keep-all; }
  .section-title  { font-size: 20px; word-break: keep-all; }
  .stat-value     { font-size: 28px; }

  .card    { padding: 16px; }
  .modal   { padding: 20px; max-height: 92vh; }

  .tabs,
  .finance-tabs,
  .period-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    width: 100%;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .tabs::-webkit-scrollbar,
  .finance-tabs::-webkit-scrollbar,
  .period-tabs::-webkit-scrollbar { display: none; }
  .tab-btn {
    flex: 1;
    text-align: center;
    white-space: nowrap;
    min-height: 38px;
    padding: 8px 14px;
    font-size: 13px;
  }

  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

  .form-input,
  .form-select,
  .form-textarea { font-size: 16px; }

  .btn    { min-height: 44px; }
  .btn-sm { min-height: 36px; }

  #toastContainer {
    right: 16px !important;
    left: 16px !important;
    bottom: 16px !important;
  }

  .badge { white-space: nowrap; flex-shrink: 0; }
  [style*="display:flex"], [style*="display: flex"] { min-width: 0; }
}

@media (max-width: 480px) {
  .page-header h1   { font-size: 20px; }
  .section-title    { font-size: 18px; }
  .stat-value       { font-size: 24px; }
  .stat-card        { padding: 16px 12px; }
  .grid-4           { grid-template-columns: 1fr; }
  .hero             { padding: 48px 16px; }
  .page-header      { padding: 28px 16px; }
  .accordion-header { padding: 14px 16px; }
  .accordion-body   { padding: 0 16px 16px; }
  .card             { padding: 12px; }
  .notice-item      { padding: 14px; }
  .info-item        { padding: 12px 14px; }
  .modal            { border-radius: var(--radius-md); }

  #navAuthArea { gap: 4px !important; }
  #navAuthArea #navUserChip { padding: 4px 8px 4px 4px !important; gap: 5px !important; }
}

/* ========================================
   Utility Classes
   ======================================== */
.text-center  { text-align: center; }
.text-primary { color: var(--primary); }
.text-muted   { color: var(--gray-400); }
.text-sm      { font-size: 13px; }
.text-xs      { font-size: 12px; }
.fw-700       { font-weight: 700; }
.mt-8  { margin-top: var(--space-2); }
.mt-16 { margin-top: var(--space-4); }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: var(--space-8); }
.mb-8  { margin-bottom: var(--space-2); }
.mb-16 { margin-bottom: var(--space-4); }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: var(--space-8); }
.gap-8  { gap: var(--space-2); }
.gap-12 { gap: var(--space-3); }
.gap-16 { gap: var(--space-4); }
.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap    { flex-wrap: wrap; }
.flex-1       { flex: 1; }
.bg-blue { background: rgba(219,234,254,0.45); }
.bg-gray { background: rgba(248,250,252,0.55); }
.rounded { border-radius: var(--radius-md); }
.shadow  { box-shadow: var(--shadow-md); }
.hidden  { display: none !important; }

/* ========================================
   Reduced Motion
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
  .page-wrapper { animation: none !important; }
}
