/* ============================================
   BANJAR BANDUNG TIMUR - Main Stylesheet
   Tema: Twitter Blue Modern
   ============================================ */

:root {
  --primary: #1D9BF0;
  --primary-light: #4DB5FF;
  --primary-dark: #0A85D1;
  --primary-deeper: #065A9E;
  --accent: #FFD700;
  --accent-light: #FFF8CC;
  --accent-dark: #B8970A;
  --white: #FFFFFF;
  --off-white: #F7F9FC;
  --text-dark: #0F1419;
  --text-mid: #536471;
  --text-light: #8899A6;
  --bg-light: #EEF3F8;
  --border: #D0DCE8;
  --shadow: 0 4px 24px rgba(29,155,240,0.10);
  --shadow-md: 0 6px 32px rgba(29,155,240,0.14);
  --shadow-lg: 0 12px 56px rgba(29,155,240,0.20);
  --radius: 12px;
  --radius-lg: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--off-white);
  color: var(--text-dark);
  line-height: 1.7;
}

/* ====== SCROLLBAR ====== */
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--bg-light); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }

/* ====== NAVBAR ====== */
.navbar {
  background: linear-gradient(135deg, var(--primary-deeper) 0%, var(--primary-dark) 60%, var(--primary) 100%);
  box-shadow: 0 2px 20px rgba(10,90,158,0.25);
  position: sticky; top: 0; z-index: 1000;
  border-bottom: 3px solid var(--accent);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; min-height: 68px;
}
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo { font-size: 1.9rem; }
.nav-title { color: #FFF; font-family: 'Playfair Display', serif; font-size: 1.05rem; font-weight: 700; }
.nav-sub { color: rgba(255,255,255,0.6); font-size: 0.72rem; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,0.88); text-decoration: none; padding: 8px 13px;
  border-radius: 8px; font-size: 0.88rem; font-weight: 500;
  transition: all 0.2s; display: flex; align-items: center; gap: 6px;
}
.nav-links a:hover { background: rgba(255,255,255,0.15); color: #fff; }
.btn-nav-login {
  background: var(--accent) !important; color: var(--primary-deeper) !important;
  font-weight: 700 !important; border-radius: 50px !important; padding: 8px 20px !important;
}
.btn-nav-login:hover { background: var(--accent-light) !important; transform: translateY(-1px); }
.btn-nav-logout { border: 1.5px solid rgba(255,255,255,0.35) !important; border-radius: 50px !important; }
.nav-toggle { display: none; background: none; border: none; color: white; font-size: 1.4rem; cursor: pointer; }

/* ====== HERO ====== */
.hero {
  background: linear-gradient(150deg, var(--primary-deeper) 0%, var(--primary-dark) 40%, var(--primary) 75%, #47C0FF 100%);
  color: white; text-align: center; padding: 100px 24px 80px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M30 0L60 30L30 60L0 30z'/%3E%3C/g%3E%3C/svg%3E");
  animation: bgMove 25s linear infinite;
}
.hero::after {
  content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 55px;
  background: linear-gradient(to bottom, transparent, var(--off-white));
}
@keyframes bgMove { from { background-position: 0 0; } to { background-position: 60px 60px; } }
.hero-content { position: relative; z-index: 1; }
.hero-ornament { font-size: 3.2rem; margin-bottom: 16px; display: inline-block; animation: float 3s ease-in-out infinite; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
.hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(2rem,5vw,3.6rem); color: #FFF; text-shadow: 0 2px 20px rgba(0,0,0,0.2); margin-bottom: 6px; }
.hero h2 { font-size: clamp(1rem,2.5vw,1.35rem); font-weight: 300; color: rgba(255,255,255,0.85); margin-bottom: 14px; }
.hero-divider { width: 72px; height: 3px; background: linear-gradient(90deg, transparent, var(--accent), transparent); margin: 18px auto; border-radius: 2px; }
.hero p { font-size: 1.05rem; color: rgba(255,255,255,0.82); max-width: 580px; margin: 0 auto 32px; }
.hero-btn {
  display: inline-flex; align-items: center; gap: 9px; background: white; color: var(--primary-dark);
  padding: 13px 30px; border-radius: 50px; text-decoration: none; font-weight: 700; font-size: 0.95rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.18); transition: all 0.3s; margin: 5px;
}
.hero-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(0,0,0,0.22); }
.hero-btn.secondary { background: rgba(255,255,255,0.12); color: white; border: 1.5px solid rgba(255,255,255,0.5); box-shadow: none; backdrop-filter: blur(8px); }
.hero-btn.secondary:hover { background: rgba(255,255,255,0.22); }

/* ====== STATS BAR ====== */
.stats-bar { background: white; box-shadow: var(--shadow); border-bottom: 3px solid var(--primary); }
.stats-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-around; flex-wrap: wrap; }
.stat-item { text-align: center; padding: 22px 20px; display: flex; align-items: center; gap: 14px; }
.stat-icon { font-size: 2.1rem; }
.stat-num { font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--primary); font-weight: 700; line-height: 1; }
.stat-label { font-size: 0.78rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; }

/* ====== SECTIONS ====== */
.section { padding: 70px 24px; }
.section-alt { background: var(--bg-light); }
.container { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-tag { display: inline-block; background: #DBEEFF; color: var(--primary-dark); font-size: 0.72rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; padding: 5px 14px; border-radius: 50px; margin-bottom: 12px; }
.section-title { font-family: 'Playfair Display', serif; font-size: clamp(1.6rem,3vw,2.3rem); color: var(--text-dark); margin-bottom: 12px; }
.section-line { width: 56px; height: 3px; background: var(--primary); margin: 0 auto 14px; border-radius: 2px; }
.section-desc { color: var(--text-light); max-width: 540px; margin: 0 auto; }

/* ====== GALLERY ====== */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.gallery-card { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: white; transition: transform 0.3s, box-shadow 0.3s; cursor: pointer; border: 1px solid var(--border); }
.gallery-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.gallery-card img { width: 100%; height: 195px; object-fit: cover; transition: transform 0.4s; }
.gallery-card:hover img { transform: scale(1.05); }
.gallery-info { padding: 15px 17px; }
.gallery-info h3 { font-size: 0.98rem; font-weight: 600; color: var(--text-dark); margin-bottom: 4px; }
.gallery-info p { font-size: 0.83rem; color: var(--text-light); }
.gallery-date { font-size: 0.73rem; color: var(--primary); font-weight: 600; margin-top: 8px; display: flex; align-items: center; gap: 5px; }

/* ====== MEMBER CARDS ====== */
.members-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 22px; }
.member-card { background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; border: 1px solid var(--border); }
.member-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.member-photo img { width: 100%; height: 175px; object-fit: cover; }
.member-photo-placeholder { width: 100%; height: 175px; background: linear-gradient(135deg, var(--bg-light), var(--border)); display: flex; align-items: center; justify-content: center; font-size: 3.2rem; color: var(--text-light); }
.member-body { padding: 14px 15px; }
.member-name { font-weight: 700; font-size: 0.97rem; color: var(--text-dark); margin-bottom: 7px; }
.member-locked { background: var(--bg-light); border: 1px dashed var(--border); border-radius: 8px; padding: 9px 11px; font-size: 0.79rem; color: var(--text-light); display: flex; align-items: center; gap: 7px; margin-top: 7px; }
.member-locked a { color: var(--primary); font-weight: 600; text-decoration: none; }
.member-detail-row { display: flex; align-items: flex-start; gap: 7px; font-size: 0.83rem; margin-bottom: 5px; }
.member-detail-row .icon { color: var(--primary); width: 15px; flex-shrink: 0; margin-top: 2px; }
.member-btn { display: block; text-align: center; margin-top: 11px; background: var(--primary); color: white; padding: 8px; border-radius: 8px; text-decoration: none; font-size: 0.83rem; font-weight: 600; transition: background 0.2s; }
.member-btn:hover { background: var(--primary-dark); }

/* ====== DETAIL PAGE ====== */
.detail-wrapper { max-width: 960px; margin: 0 auto; padding: 36px 24px 60px; }
.detail-card { background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--border); }

.detail-header {
  background: linear-gradient(135deg, var(--primary-deeper) 0%, var(--primary-dark) 55%, var(--primary) 100%);
  padding: 40px; display: flex; align-items: flex-start; gap: 32px; flex-wrap: wrap; position: relative; overflow: hidden;
}
.detail-header::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M40 0L80 40L40 80L0 40z'/%3E%3C/g%3E%3C/svg%3E");
}
.detail-photo { width: 130px; height: 130px; border-radius: 50%; object-fit: cover; border: 4px solid rgba(255,255,255,0.8); box-shadow: 0 6px 24px rgba(0,0,0,0.25); flex-shrink: 0; position: relative; z-index: 1; }
.detail-photo-placeholder { width: 130px; height: 130px; border-radius: 50%; background: rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; font-size: 2.8rem; border: 4px solid rgba(255,255,255,0.5); flex-shrink: 0; position: relative; z-index: 1; }
.detail-header-info { flex: 1; min-width: 200px; position: relative; z-index: 1; }
.detail-header-info h1 { font-family: 'Playfair Display', serif; font-size: 1.9rem; color: white; margin-bottom: 8px; text-shadow: 0 1px 8px rgba(0,0,0,0.2); }
.info-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.18); backdrop-filter: blur(6px); color: rgba(255,255,255,0.92); padding: 5px 12px; border-radius: 50px; font-size: 0.82rem; font-weight: 500; margin: 3px 3px 3px 0; border: 1px solid rgba(255,255,255,0.25); }
.detail-header-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

/* ====== TABS ====== */
.detail-tabs { display: flex; border-bottom: 2px solid var(--border); background: var(--off-white); overflow-x: auto; }
.detail-tab {
  padding: 14px 22px; font-size: 0.88rem; font-weight: 600; color: var(--text-mid);
  cursor: pointer; border: none; background: none; border-bottom: 3px solid transparent;
  margin-bottom: -2px; transition: all 0.2s; white-space: nowrap; display: flex; align-items: center; gap: 7px; font-family: inherit;
}
.detail-tab:hover { color: var(--primary); background: rgba(29,155,240,0.04); }
.detail-tab.active { color: var(--primary); border-bottom-color: var(--primary); background: white; }
.tab-panel { display: none; padding: 36px 40px; }
.tab-panel.active { display: block; animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* ====== DATA DETAIL ====== */
.detail-section { margin-bottom: 32px; }
.detail-section-title { font-family: 'Playfair Display', serif; font-size: 1.08rem; color: var(--primary-dark); border-bottom: 2px solid var(--bg-light); padding-bottom: 10px; margin-bottom: 18px; display: flex; align-items: center; gap: 9px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.detail-item label { font-size: 0.71rem; text-transform: uppercase; letter-spacing: 1.2px; color: var(--text-light); font-weight: 700; display: block; margin-bottom: 2px; }
.detail-item p { font-size: 0.92rem; color: var(--text-dark); }
.detail-item p a { color: var(--primary); text-decoration: none; }
.detail-item p a:hover { text-decoration: underline; }

/* ====== FOTO BERSAMA ====== */
.photos-upload-zone {
  border: 2px dashed var(--border); border-radius: var(--radius-lg);
  padding: 40px; text-align: center; cursor: pointer; transition: all 0.25s;
  background: var(--off-white); margin-bottom: 24px;
}
.photos-upload-zone:hover, .photos-upload-zone.dragover { border-color: var(--primary); background: #EFF7FF; }
.photos-upload-zone i { font-size: 2.6rem; color: var(--primary); margin-bottom: 10px; display: block; }
.photos-upload-zone p { color: var(--text-mid); font-size: 0.9rem; }
.photos-upload-zone span { color: var(--primary); font-weight: 600; cursor: pointer; }

.foto-bersama-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.foto-bersama-item {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); background: var(--bg-light); aspect-ratio: 4/3;
  cursor: pointer; transition: transform 0.25s, box-shadow 0.25s;
}
.foto-bersama-item:hover { transform: scale(1.04); box-shadow: var(--shadow-md); }
.foto-bersama-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.foto-bersama-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6,90,158,0.75) 0%, transparent 55%);
  opacity: 0; transition: opacity 0.25s; display: flex; flex-direction: column;
  justify-content: flex-end; padding: 10px;
}
.foto-bersama-item:hover .foto-bersama-overlay { opacity: 1; }
.foto-bersama-overlay .caption { color: rgba(255,255,255,0.9); font-size: 0.76rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 6px; }
.foto-bersama-overlay .overlay-actions { display: flex; gap: 5px; }
.overlay-btn { padding: 4px 10px; border-radius: 6px; font-size: 0.74rem; font-weight: 600; border: none; cursor: pointer; transition: all 0.15s; font-family: inherit; }
.overlay-btn-view { background: rgba(255,255,255,0.9); color: var(--text-dark); }
.overlay-btn-del { background: rgba(239,68,68,0.85); color: white; }
.overlay-btn-view:hover { background: white; }
.overlay-btn-del:hover { background: #EF4444; }

/* Lightbox */
.lightbox { display: none; position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,0.93); backdrop-filter: blur(8px); align-items: center; justify-content: center; padding: 24px; }
.lightbox.open { display: flex; animation: fadeIn 0.2s ease; }
.lightbox-inner { position: relative; max-width: 880px; width: 100%; }
.lightbox-img { width: 100%; max-height: 80vh; object-fit: contain; border-radius: 12px; display: block; }
.lightbox-close { position: absolute; top: -48px; right: 0; color: white; font-size: 1.6rem; cursor: pointer; background: rgba(255,255,255,0.15); width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background 0.2s; border: none; }
.lightbox-close:hover { background: rgba(255,255,255,0.3); }
.lightbox-caption { text-align: center; color: rgba(255,255,255,0.7); font-size: 0.86rem; margin-top: 12px; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.15); border: none; color: white; width: 44px; height: 44px; border-radius: 50%; font-size: 1.1rem; cursor: pointer; transition: background 0.2s; display: flex; align-items: center; justify-content: center; }
.lightbox-nav:hover { background: rgba(255,255,255,0.28); }
.lightbox-prev { left: -58px; }
.lightbox-next { right: -58px; }

/* Locked */
.locked-banner { background: linear-gradient(135deg, var(--off-white), #EFF7FF); border: 2px dashed var(--border); border-radius: var(--radius-lg); padding: 52px 40px; text-align: center; margin: 32px; }
.locked-icon { font-size: 3.2rem; margin-bottom: 14px; }
.locked-banner h3 { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--text-dark); margin-bottom: 8px; }
.locked-banner p { color: var(--text-light); margin-bottom: 24px; max-width: 400px; margin-left: auto; margin-right: auto; }

/* ====== FORMS ====== */
.form-card { background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 40px; max-width: 480px; margin: 60px auto; border-top: 5px solid var(--primary); }
.form-card h2 { font-family: 'Playfair Display', serif; color: var(--text-dark); font-size: 1.8rem; text-align: center; margin-bottom: 8px; }
.form-subtitle { text-align: center; color: var(--text-light); margin-bottom: 32px; font-size: 0.88rem; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.83rem; font-weight: 600; color: var(--text-mid); margin-bottom: 5px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 11px 15px; border: 1.5px solid var(--border); border-radius: 10px; font-family: inherit; font-size: 0.92rem; color: var(--text-dark); background: var(--off-white); transition: border-color 0.2s, box-shadow 0.2s; outline: none; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(29,155,240,0.12); background: white; }
.form-group textarea { resize: vertical; min-height: 86px; }

/* ====== BUTTONS ====== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 11px 22px; border-radius: 10px; font-family: inherit; font-size: 0.92rem; font-weight: 600; cursor: pointer; border: none; transition: all 0.2s; text-decoration: none; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(29,155,240,0.35); }
.btn-gold { background: var(--accent); color: var(--primary-deeper); }
.btn-gold:hover { background: #FFCA00; transform: translateY(-1px); }
.btn-sm { padding: 6px 13px; font-size: 0.8rem; border-radius: 7px; }
.btn-danger { background: #EF4444; color: white; }
.btn-danger:hover { background: #DC2626; transform: translateY(-1px); }
.btn-outline { background: transparent; border: 1.5px solid var(--border); color: var(--text-mid); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: #EFF7FF; }
.btn-success { background: #22C55E; color: white; }
.btn-success:hover { background: #16A34A; }

/* ====== ALERTS ====== */
.alert { padding: 13px 17px; border-radius: 10px; margin-bottom: 18px; font-size: 0.88rem; display: flex; align-items: flex-start; gap: 10px; }
.alert-error { background: #FEF2F2; border-left: 4px solid #EF4444; color: #991B1B; }
.alert-success { background: #F0FDF4; border-left: 4px solid #22C55E; color: #166534; }
.alert-info { background: #EFF6FF; border-left: 4px solid var(--primary); color: var(--primary-deeper); }

/* ====== ADMIN ====== */
.admin-layout { display: flex; min-height: calc(100vh - 68px); }
.admin-sidebar { width: 255px; flex-shrink: 0; background: linear-gradient(180deg, var(--primary-deeper) 0%, #032F5C 100%); padding: 24px 0; position: sticky; top: 68px; height: calc(100vh - 68px); overflow-y: auto; }
.sidebar-logo { text-align: center; padding: 0 20px 22px; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 14px; }
.sidebar-logo .icon { font-size: 1.9rem; }
.sidebar-logo h3 { color: rgba(255,255,255,0.95); font-family: 'Playfair Display', serif; font-size: 0.97rem; margin-top: 7px; }
.sidebar-logo p { color: rgba(255,255,255,0.45); font-size: 0.73rem; }
.sidebar-menu { list-style: none; }
.sidebar-menu li a { display: flex; align-items: center; gap: 11px; padding: 11px 22px; color: rgba(255,255,255,0.65); text-decoration: none; font-size: 0.88rem; font-weight: 500; transition: all 0.2s; border-left: 3px solid transparent; }
.sidebar-menu li a:hover, .sidebar-menu li a.active { color: white; background: rgba(255,255,255,0.1); border-left-color: var(--accent); }
.sidebar-menu li a i { width: 17px; text-align: center; }
.sidebar-section { padding: 8px 22px 3px; color: rgba(255,255,255,0.28); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 2px; margin-top: 10px; }
.admin-main { flex: 1; padding: 30px 28px; background: var(--bg-light); overflow: auto; }
.admin-header { margin-bottom: 26px; }
.admin-header h1 { font-family: 'Playfair Display', serif; color: var(--text-dark); font-size: 1.7rem; }
.admin-header p { color: var(--text-light); margin-top: 4px; font-size: 0.9rem; }

/* ====== TABLES ====== */
.table-card { background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--border); }
.table-header { padding: 18px 22px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.table-header h3 { font-weight: 700; color: var(--text-dark); font-size: 0.97rem; }
.search-input { padding: 8px 15px; border: 1.5px solid var(--border); border-radius: 8px; font-family: inherit; font-size: 0.88rem; outline: none; transition: border-color 0.2s; min-width: 210px; }
.search-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(29,155,240,0.1); }
table { width: 100%; border-collapse: collapse; }
thead th { background: var(--bg-light); padding: 11px 15px; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-light); font-weight: 700; text-align: left; border-bottom: 2px solid var(--border); }
tbody td { padding: 13px 15px; border-bottom: 1px solid var(--border); font-size: 0.88rem; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #F0F7FF; }
.badge { display: inline-block; padding: 3px 9px; border-radius: 50px; font-size: 0.73rem; font-weight: 700; }
.badge-admin { background: #DBEAFE; color: #1E40AF; }
.badge-anggota { background: #DCFCE7; color: #166534; }
.badge-active { background: #DCFCE7; color: #166534; }
.badge-inactive { background: #FEE2E2; color: #991B1B; }
.action-btns { display: flex; gap: 5px; align-items: center; flex-wrap: wrap; }

/* ====== ADMIN FORM ====== */
.form-full { background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 34px; max-width: 800px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-section-title { font-family: 'Playfair Display', serif; color: var(--primary-dark); font-size: 1.08rem; border-bottom: 2px solid var(--bg-light); padding-bottom: 8px; margin: 26px 0 18px; display: flex; align-items: center; gap: 8px; }
.anak-row { background: var(--off-white); border-radius: 10px; padding: 15px; margin-bottom: 11px; border: 1px solid var(--border); position: relative; }
.anak-row .remove-btn { position: absolute; top: 10px; right: 10px; background: #FEE2E2; color: #DC2626; border: none; border-radius: 6px; padding: 4px 10px; cursor: pointer; font-size: 0.78rem; font-weight: 600; }
.add-anak-btn { background: var(--bg-light); border: 2px dashed var(--primary); color: var(--primary); padding: 10px 20px; border-radius: 10px; cursor: pointer; font-family: inherit; font-size: 0.88rem; font-weight: 600; transition: all 0.2s; display: flex; align-items: center; gap: 8px; width: 100%; justify-content: center; }
.add-anak-btn:hover { background: #EFF7FF; }
.log-action { font-family: monospace; font-size: 0.8rem; color: var(--primary-dark); background: #EFF6FF; padding: 2px 7px; border-radius: 4px; }

/* ====== PAGINATION ====== */
.pagination { display: flex; gap: 5px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 7px 13px; border-radius: 8px; font-size: 0.86rem; font-weight: 600; text-decoration: none; transition: all 0.2s; }
.pagination a { background: white; color: var(--text-mid); border: 1px solid var(--border); }
.pagination a:hover { border-color: var(--primary); color: var(--primary); background: #EFF7FF; }
.pagination .current { background: var(--primary); color: white; border: 1px solid var(--primary); }

/* ====== PHOTO UPLOAD ====== */
.photo-preview { width: 118px; height: 118px; border-radius: 50%; object-fit: cover; border: 3px solid var(--primary); display: block; margin-bottom: 10px; }
.photo-placeholder { width: 118px; height: 118px; border-radius: 50%; background: var(--bg-light); border: 3px dashed var(--border); display: flex; align-items: center; justify-content: center; font-size: 2.4rem; color: var(--text-light); margin-bottom: 10px; cursor: pointer; transition: border-color 0.2s; }
.photo-placeholder:hover { border-color: var(--primary); }

/* ====== SWEETALERT CUSTOM ====== */
.swal2-popup { border-radius: 18px !important; font-family: 'Plus Jakarta Sans', sans-serif !important; padding: 28px !important; }
.swal2-title { font-family: 'Playfair Display', serif !important; color: var(--text-dark) !important; font-size: 1.4rem !important; }
.swal2-html-container { color: var(--text-mid) !important; font-size: 0.95rem !important; }
.swal2-confirm { background: var(--primary) !important; border-radius: 50px !important; font-weight: 700 !important; padding: 10px 28px !important; font-size: 0.92rem !important; }
.swal2-cancel { border-radius: 50px !important; font-weight: 600 !important; padding: 10px 24px !important; font-size: 0.92rem !important; background: var(--bg-light) !important; color: var(--text-mid) !important; }
.swal2-timer-progress-bar { background: var(--primary) !important; }

/* ====== FOOTER ====== */
.site-footer { background: var(--primary-deeper); color: rgba(255,255,255,0.7); padding: 28px 24px; border-top: 3px solid var(--accent); }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-logo { font-size: 1.8rem; }
.footer-brand h3 { font-family: 'Playfair Display', serif; color: white; font-size: 1rem; }
.footer-brand p { color: rgba(255,255,255,0.5); font-size: 0.78rem; }
.footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.4); }

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--primary-deeper); flex-direction: column; padding: 14px; gap: 3px; z-index: 999; }
  .nav-links.open { display: flex; }
  .detail-grid, .form-row { grid-template-columns: 1fr; }
  .detail-header { flex-direction: column; align-items: center; text-align: center; padding: 28px 24px; }
  .tab-panel { padding: 22px 18px; }
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; height: auto; position: static; }
  .admin-main { padding: 18px 14px; }
  .foto-bersama-grid { grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); }
  .lightbox-prev { left: -8px; }
  .lightbox-next { right: -8px; }
}

/* ====== GALLERY LIGHTBOX (index.php) ====== */
#galleryLightbox { animation: lbFadeIn 0.2s ease; }
@keyframes lbFadeIn { from { opacity:0; } to { opacity:1; } }

@media (max-width: 768px) {
  #galleryLightbox > div { max-width: 100%; }
  #galleryLightbox button[onclick="navGallery(-1)"] { left: 4px !important; }
  #galleryLightbox button[onclick="navGallery(1)"]  { right: 4px !important; }
  #lbThumbs { flex-wrap: nowrap !important; justify-content: flex-start !important; }
}
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.empty-state { text-align: center; padding: 55px 20px; color: var(--text-light); }
.empty-state i { font-size: 2.8rem; margin-bottom: 14px; display: block; color: var(--border); }
