/* ============================================================
   KKN WEBSITE — GLASSMORPHISM + PURPLE GRADIENT PREMIUM THEME
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

/* ===== VARIABLES ===== */
:root {
    --p1: #5B21B6;       /* deep purple */
    --p2: #7C3AED;       /* vivid purple */
    --p3: #A78BFA;       /* soft purple */
    --p4: #DDD6FE;       /* lavender */
    --p5: #F5F3FF;       /* near white purple */

    --g1: #B8860B;       /* dark gold */
    --g2: #D4AF37;       /* classic gold */
    --g3: #F0D060;       /* light gold */
    --g4: #FFF8DC;       /* cream */

    --dark:   #0F0720;   /* near black */
    --dark2:  #1A0E35;
    --dark3:  #2D1B69;

    --white:  #FFFFFF;
    --glass-white: rgba(255,255,255,0.08);
    --glass-border: rgba(255,255,255,0.15);
    --glass-card:   rgba(255,255,255,0.06);

    --text-light: rgba(255,255,255,0.90);
    --text-dim:   rgba(255,255,255,0.55);
    --text-faint: rgba(255,255,255,0.30);

    /* Light section vars */
    --light-bg:     #FAFAFA;
    --light-bg2:    #F4F2FC;
    --light-border: rgba(124,58,237,0.12);
    --light-card:   rgba(255,255,255,0.9);
    --text-dark:    #160A33;
    --text-body:    #4B4270;
    --text-muted:   #9A92B8;

    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --shadow-glow:  0 0 40px rgba(124,58,237,0.25);
    --shadow-card:  0 8px 32px rgba(91,33,182,0.12);
    --shadow-hover: 0 20px 60px rgba(91,33,182,0.2);
    --shadow-gold:  0 8px 32px rgba(212,175,55,0.2);
}

/* ===== RESET ===== */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    background: var(--white);
    color: var(--text-body);
    line-height: 1.7;
    overflow-x: hidden;
}
h1,h2,h3,h4 { font-family: 'Playfair Display', serif; }
a { text-decoration: none; }
img { max-width:100%; display:block; }
.container { max-width:1160px; margin:0 auto; padding:0 24px; }

/* ===== NAVBAR — GLASSMORPHISM ===== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 0;
    transition: all 0.4s ease;
}

/* default: over hero (dark bg) */
.navbar.dark-mode {
    background: rgba(15, 7, 32, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
}

/* scrolled: over light section */
.navbar.light-mode {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(124,58,237,0.1);
    box-shadow: 0 4px 24px rgba(91,33,182,0.08);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo-img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(124,58,237,0.4);
}

.nav-logo-badge {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--p2), var(--p1));
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    box-shadow: 0 4px 14px rgba(124,58,237,0.4);
}

.nav-logo-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 700;
}

.navbar.dark-mode .nav-logo-name { color: var(--white); }
.navbar.dark-mode .nav-logo-name span { color: var(--g3); }
.navbar.light-mode .nav-logo-name { color: var(--text-dark); }
.navbar.light-mode .nav-logo-name span { color: var(--g1); }

/* ===== HAMBURGER BUTTON ===== */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: background 0.2s;
    z-index: 1001;
}
.nav-toggle:hover { background: rgba(255,255,255,0.1); }
.navbar.light-mode .nav-toggle:hover { background: rgba(124,58,237,0.08); }

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    transition: all 0.3s ease;
}
.navbar.dark-mode .nav-toggle span { background: rgba(255,255,255,0.85); }
.navbar.light-mode .nav-toggle span { background: var(--text-dark); }

/* Animasi X saat open */
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menu */
.nav-menu { display:flex; list-style:none; align-items:center; gap:0.2rem; }

.nav-menu a {
    font-size: 0.88rem;
    font-weight: 500;
    padding: 0.45rem 0.95rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.navbar.dark-mode .nav-menu a { color: rgba(255,255,255,0.75); }
.navbar.dark-mode .nav-menu a:hover,
.navbar.dark-mode .nav-menu a.active {
    background: rgba(255,255,255,0.12);
    color: var(--white);
}
.navbar.dark-mode .nav-menu a.active { color: var(--g3); }

.navbar.light-mode .nav-menu a { color: var(--text-body); }
.navbar.light-mode .nav-menu a:hover,
.navbar.light-mode .nav-menu a.active {
    background: var(--p5);
    color: var(--p2);
}

/* ===== HERO — FULL GRADIENT + ORBS ===== */

/* ── Floating foto anggota background ── */
.hero-foto-bg {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 12px;
    padding: 0 12px;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.hfb-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 0;
    animation: hfb-scroll 28s linear infinite;
    flex-shrink: 0;
}
.hfb-col-1 { animation-duration: 32s; }
.hfb-col-2 { animation-duration: 24s; animation-direction: reverse; }
.hfb-col-3 { animation-duration: 30s; }
.hfb-col-4 { animation-duration: 22s; animation-direction: reverse; }
.hfb-col-5 { animation-duration: 28s; }

@keyframes hfb-scroll {
    0%   { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

.hfb-col img {
    width: 130px;
    height: 160px;
    object-fit: cover;
    object-position: top;
    border-radius: 16px;
    opacity: 0.22;
    filter: grayscale(20%) brightness(0.85);
    border: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
    display: block;
}

/* Overlay: ungu gradient dari semua sisi agar foto menyatu */
.hero-foto-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        /* fade atas & bawah */
        linear-gradient(to bottom,
            #0F0720 0%,
            rgba(15,7,32,0.6) 18%,
            rgba(15,7,32,0.4) 50%,
            rgba(15,7,32,0.6) 82%,
            #0F0720 100%),
        /* fade kiri untuk teks hero */
        linear-gradient(to right,
            #0F0720 0%,
            rgba(15,7,32,0.85) 20%,
            transparent 45%);
    z-index: 1;
}

@media (max-width: 768px) {
    .hero-foto-bg {
        display: flex;
        gap: 8px;
        padding: 0 8px;
        width: 100%;
        left: 0;
        right: 0;
    }
    /* Di mobile tampilkan 3 kolom saja, kolom 4 & 5 sembunyikan */
    .hfb-col-4,
    .hfb-col-5 { display: none; }

    .hfb-col {
        flex: 1;
        min-width: 0;
    }

    .hfb-col img {
        width: 100%;
        height: 110px;
        border-radius: 12px;
        opacity: 0.15;
    }

    /* Overlay mobile: lebih gelap biar teks tetap terbaca */
    .hero-foto-bg::before {
        background:
            linear-gradient(to bottom,
                #0F0720 0%,
                rgba(15,7,32,0.7) 15%,
                rgba(15,7,32,0.55) 50%,
                rgba(15,7,32,0.7) 85%,
                #0F0720 100%),
            linear-gradient(to right,
                rgba(15,7,32,0.5) 0%,
                transparent 30%,
                transparent 70%,
                rgba(15,7,32,0.5) 100%);
    }
}

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg,
        #0F0720 0%,
        #1A0A40 20%,
        #2D1065 40%,
        #1E0A5C 60%,
        #0F0720 100%
    );
    overflow: hidden;
    padding-top: 68px;
}

/* Floating orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    animation: float 8s ease-in-out infinite;
}
.hero-orb-1 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(124,58,237,0.45) 0%, transparent 70%);
    top: -100px; right: -100px;
    animation-delay: 0s;
}
.hero-orb-2 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(212,175,55,0.2) 0%, transparent 70%);
    bottom: -80px; left: -80px;
    animation-delay: 3s;
}
.hero-orb-3 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(167,139,250,0.25) 0%, transparent 70%);
    top: 40%; left: 30%;
    animation-delay: 5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50%       { transform: translateY(-30px) scale(1.05); }
}

/* Noise texture overlay */
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none; z-index: 0;
}

.hero-inner {
    position: relative; z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    padding: 5rem 0;
}

/* Dekorasi garis kiri hero */
.hero-inner::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 15%;
    bottom: 15%;
    width: 2px;
    background: linear-gradient(to bottom,
        transparent,
        rgba(212,175,55,0.4) 30%,
        rgba(167,139,250,0.4) 70%,
        transparent);
    border-radius: 2px;
}

/* Dekorasi garis kanan hero */
.hero-inner::after {
    content: '';
    position: absolute;
    right: -24px;
    top: 15%;
    bottom: 15%;
    width: 2px;
    background: linear-gradient(to bottom,
        transparent,
        rgba(167,139,250,0.4) 30%,
        rgba(212,175,55,0.4) 70%,
        transparent);
    border-radius: 2px;
}

/* ── Hero side decorations ── */
.hero-deco {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    z-index: 2;
    pointer-events: none;
}
.hero-deco-left  { left: 0; }
.hero-deco-right { right: 0; }

.hd-line {
    width: 1px;
    height: 120px;
    background: linear-gradient(to bottom,
        transparent,
        rgba(212,175,55,0.5),
        rgba(167,139,250,0.5),
        transparent);
}

.hd-dots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}
.hd-dots span {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(167,139,250,0.4);
    display: block;
}
.hd-dots span:nth-child(3n+1) { background: rgba(212,175,55,0.4); }

.hd-badge {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    padding: 0.5rem 0;
}

@media (max-width: 1024px) {
    .hero-deco { display: none; }
}

/* Hero Left */
.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.4rem 1.1rem;
    background: rgba(212,175,55,0.12);
    border: 1px solid rgba(212,175,55,0.3);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--g3);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(8px);
}

.hero-pill .dot {
    width: 6px; height: 6px;
    background: var(--g3);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%,100% { opacity:1; transform:scale(1); }
    50%      { opacity:0.4; transform:scale(0.7); }
}

.hero h1 {
    font-size: 3.6rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 1.25rem;
}

.hero h1 .grad {
    background: linear-gradient(135deg, var(--g3) 0%, var(--g2) 50%, var(--p3) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 1.05rem;
    color: var(--text-dim);
    max-width: 460px;
    margin-bottom: 2.25rem;
    line-height: 1.8;
}

.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Hero Right — glass card */
.hero-glass-card {
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: 0 25px 60px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
}

.hero-glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
}

.hgc-head {
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 1.5rem;
}

.hgc-icon { font-size: 3rem; margin-bottom: 0.5rem; }

.hgc-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.hgc-sub { font-size: 0.82rem; color: var(--text-dim); }

.hgc-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.hgc-stat {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.hgc-stat:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(212,175,55,0.3);
}

.hgc-stat .n {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 800;
    display: block;
    line-height: 1;
    margin-bottom: 0.3rem;
}

.hgc-stat .n.purple { color: var(--p3); }
.hgc-stat .n.gold   { color: var(--g3); }
.hgc-stat .l { font-size: 0.75rem; color: var(--text-dim); }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 0.78rem 1.8rem;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem; font-weight: 600;
    cursor: pointer; border: none;
    transition: all 0.25s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--p2) 0%, var(--p1) 100%);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(124,58,237,0.4);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(124,58,237,0.55);
}

.btn-gold {
    background: linear-gradient(135deg, var(--g3) 0%, var(--g2) 100%);
    color: var(--dark);
    box-shadow: 0 4px 20px rgba(212,175,55,0.35);
    font-weight: 700;
}
.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(212,175,55,0.5);
}

.btn-glass {
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(10px);
}
.btn-glass:hover {
    background: rgba(255,255,255,0.18);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--p2);
    border: 1.5px solid var(--p4);
}
.btn-outline:hover { background: var(--p5); }

/* ===== GRADIENT STRIP (stats) ===== */
.stats-strip {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 50%, var(--dark3) 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}
.stats-strip::before {
    content:''; position:absolute; inset:0;
    background: linear-gradient(90deg,
        rgba(124,58,237,0.15) 0%,
        rgba(212,175,55,0.08) 50%,
        rgba(124,58,237,0.15) 100%);
    pointer-events:none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    text-align: center;
    position: relative; z-index:1;
}

.stat-box {
    padding: 1.5rem;
    border-right: 1px solid rgba(255,255,255,0.07);
}
.stat-box:last-child { border-right: none; }
.stat-box .n {
    font-family: 'Playfair Display', serif;
    font-size: 3.2rem; font-weight: 800;
    background: linear-gradient(135deg, var(--g3), var(--g2));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block; line-height:1; margin-bottom:0.4rem;
}
.stat-box .l { font-size:0.85rem; color:rgba(255,255,255,0.5); }

/* ===== SECTION HELPERS ===== */
.section      { padding: 6rem 0; }
.section-alt  { background: var(--light-bg2); }
.section-dark {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 100%);
    position: relative; overflow: hidden;
}
.section-dark::before {
    content:''; position:absolute; inset:0;
    background: radial-gradient(ellipse at 20% 50%, rgba(124,58,237,0.12) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 50%, rgba(212,175,55,0.06) 0%, transparent 60%);
    pointer-events:none;
}

/* ── Dekorasi kiri-kanan section Pengabdian ── */
.pengabdian-section { overflow: hidden; }

.pgb-deco {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    z-index: 0;
    pointer-events: none;
}
.pgb-deco-left  { left: 16px; }
.pgb-deco-right { right: 16px; }

.pgb-line {
    width: 1px;
    height: 140px;
    background: linear-gradient(to bottom,
        transparent,
        rgba(212,175,55,0.5) 30%,
        rgba(167,139,250,0.5) 70%,
        transparent);
}

.pgb-dots {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
}
.pgb-dots span {
    width: 4px; height: 4px;
    border-radius: 50%;
    background: rgba(167,139,250,0.35);
    display: block;
}
.pgb-dots span:nth-child(4n+1) { background: rgba(212,175,55,0.4); }
.pgb-dots span:nth-child(3n)   { opacity: 0.3; }

.pgb-label {
    writing-mode: vertical-rl;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.18);
}

.pgb-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
}
.pgb-orb-1 {
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(124,58,237,0.2) 0%, transparent 70%);
    left: -100px; top: -80px;
}
.pgb-orb-2 {
    width: 250px; height: 250px;
    background: radial-gradient(circle, rgba(212,175,55,0.12) 0%, transparent 70%);
    right: -60px; bottom: -60px;
}

@media (max-width: 768px) {
    .pgb-deco { display: none; }
}

.section-label {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--g1);
    background: linear-gradient(135deg, rgba(212,175,55,0.12), rgba(212,175,55,0.06));
    border: 1px solid rgba(212,175,55,0.25);
    padding: 0.3rem 0.9rem; border-radius: 50px;
    margin-bottom: 0.9rem;
}

.section-title { text-align: center; margin-bottom: 3.5rem; }
.section-title h2 {
    font-size: 2.5rem; font-weight: 800;
    color: var(--text-dark); margin-bottom: 0.75rem;
}
.section-title h2 .grad {
    background: linear-gradient(135deg, var(--p2) 0%, var(--p3) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-title h2 .grad-gold {
    background: linear-gradient(135deg, var(--g1) 0%, var(--g2) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-title p { font-size:0.95rem; color:var(--text-muted); max-width:520px; margin:0 auto; }
.section-dark .section-title h2 { color: var(--white); }
.section-dark .section-title p  { color: var(--text-dim); }

.gold-bar {
    width: 52px; height: 3px;
    background: linear-gradient(90deg, var(--g2), var(--g3));
    border-radius: 2px; margin: 0.8rem auto 0;
}

/* ===== FEATURE CARDS (light bg) ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.card {
    background: var(--white);
    border: 1px solid rgba(124,58,237,0.1);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    transition: all 0.35s cubic-bezier(.4,0,.2,1);
    position: relative;
    overflow: hidden;
}

.card::after {
    content:''; position:absolute;
    top:0; left:0; right:0; height:3px;
    background: linear-gradient(90deg, var(--p2), var(--g2));
    transform: scaleX(0); transform-origin:left;
    transition: transform 0.35s ease;
    border-radius: 3px 3px 0 0;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}
.card:hover::after { transform: scaleX(1); }

/* Glass card — for dark sections */
.glass-card {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}
.glass-card::before {
    content:''; position:absolute;
    top:0; left:0; right:0; height:1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}
.glass-card:hover {
    background: rgba(255,255,255,0.09);
    border-color: rgba(212,175,55,0.25);
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.card-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--p5), var(--p4));
    display: flex; align-items:center; justify-content:center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    transition: transform 0.3s ease;
}
.card:hover .card-icon { transform: scale(1.08) rotate(-3deg); }

.card-icon.gold { background: linear-gradient(135deg, var(--g4), rgba(212,175,55,0.2)); }
.glass-card .card-icon { background: rgba(255,255,255,0.1); }
.glass-card .card-icon.gold { background: rgba(212,175,55,0.15); }

.card h3 {
    font-size: 1.1rem; font-weight: 700;
    margin-bottom: 0.6rem; color: var(--text-dark);
}
.glass-card h3 { color: var(--white); }

.card p { font-size:0.88rem; color:var(--text-muted); line-height:1.75; }
.glass-card p { color: var(--text-dim); }

/* ===== PAGE HEADER — gradient dark ===== */
.page-header {
    background: linear-gradient(135deg,
        #0F0720 0%, #1D0D4A 40%, #2D1065 70%, #1A0A40 100%);
    padding: 7rem 0 4.5rem;
    position: relative; overflow: hidden;
}

/* Radial light kiri */
.page-header::before {
    content:''; position:absolute; inset:0;
    background:
        radial-gradient(ellipse at 70% 50%, rgba(167,139,250,0.2) 0%, transparent 60%),
        radial-gradient(ellipse at 10% 80%, rgba(212,175,55,0.1) 0%, transparent 50%);
    pointer-events:none; z-index:0;
}

/* Grid lines diagonal */
.page-header::after {
    content:''; position:absolute; inset:0;
    background-image:
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 40px,
            rgba(255,255,255,0.018) 40px,
            rgba(255,255,255,0.018) 41px
        );
    pointer-events:none; z-index:0;
}

.page-header-orb {
    position:absolute; width:400px; height:400px;
    background: radial-gradient(circle, rgba(124,58,237,0.3) 0%, transparent 70%);
    border-radius:50%; filter:blur(60px);
    right:-100px; top:-100px; pointer-events:none; z-index:0;
}

/* Orb kedua kiri bawah */
.page-header-orb2 {
    position:absolute; width:300px; height:300px;
    background: radial-gradient(circle, rgba(212,175,55,0.15) 0%, transparent 70%);
    border-radius:50%; filter:blur(50px);
    left:-60px; bottom:-60px; pointer-events:none; z-index:0;
}

/* Dot scatter pattern kanan */
.page-header-dots {
    position:absolute; right:5%; top:50%; transform:translateY(-50%);
    display:grid; grid-template-columns:repeat(8,1fr); gap:14px;
    pointer-events:none; z-index:0; opacity:0.25;
}
.page-header-dots span {
    width:4px; height:4px; border-radius:50%;
    background:rgba(167,139,250,0.8); display:block;
}
.page-header-dots span:nth-child(3n) { background:rgba(212,175,55,0.8); }
.page-header-dots span:nth-child(5n) { opacity:0.4; }

/* Garis horisontal aksen bawah */
.page-header-line {
    position:absolute; bottom:0; left:0; right:0; height:2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(124,58,237,0.6) 20%,
        rgba(212,175,55,0.6) 50%,
        rgba(167,139,250,0.6) 80%,
        transparent 100%);
    pointer-events:none; z-index:1;
}

.page-header-inner { position:relative; z-index:1; }

.page-header .page-pill {
    display: inline-flex; align-items:center; gap:6px;
    padding: 0.35rem 1rem;
    background: rgba(212,175,55,0.1);
    border: 1px solid rgba(212,175,55,0.25);
    border-radius: 50px;
    font-size: 0.72rem; font-weight:700; letter-spacing:0.1em;
    text-transform: uppercase; color: var(--g3);
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
}

.page-header h1 {
    font-size: 3rem; font-weight: 800;
    color: var(--white); margin-bottom: 0.5rem;
}
.page-header h1 .grad {
    background: linear-gradient(135deg, var(--g3), var(--p3));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.page-header p { font-size:0.95rem; color:var(--text-dim); }

/* ===== PROFILE CARDS ===== */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1.5rem;
}

.profile-card {
    background: var(--white);
    border: 1px solid rgba(124,58,237,0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.35s ease;
    text-align: center;
}
.profile-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.pc-header {
    padding: 2rem 1.5rem 1.25rem;
    background: linear-gradient(160deg, var(--dark) 0%, var(--dark3) 100%);
    position: relative; overflow: hidden;
}
.pc-header::before {
    content:''; position:absolute; inset:0;
    background: radial-gradient(circle at 50% 0%,
        rgba(124,58,237,0.4) 0%, transparent 70%);
}
.pc-header::after {
    content:''; position:absolute;
    top:0; left:0; right:0; height:3px;
    background: linear-gradient(90deg, var(--p2), var(--g2));
}

.pc-avatar {
    width: 84px; height: 84px;
    border-radius: 50%;
    border: 3px solid rgba(212,175,55,0.5);
    margin: 0 auto 1rem;
    display: flex; align-items:center; justify-content:center;
    font-size: 2.3rem;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    position: relative; z-index:1;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.pc-badge {
    position:relative; z-index:1;
    display: inline-block;
    padding: 0.2rem 0.85rem;
    border-radius: 50px;
    font-size: 0.7rem; font-weight: 700;
    letter-spacing: 0.06em; text-transform: uppercase;
    background: rgba(212,175,55,0.15);
    border: 1px solid rgba(212,175,55,0.3);
    color: var(--g3);
}
.pc-badge.purple {
    background: rgba(167,139,250,0.15);
    border-color: rgba(167,139,250,0.3);
    color: var(--p3);
}

.pc-body { padding: 1.25rem 1.5rem; }
.pc-name {
    font-size: 1rem; font-weight: 700;
    color: var(--text-dark); margin-bottom: 0.2rem;
}
.pc-nim { font-size:0.75rem; color:var(--text-muted); margin-bottom:0.75rem; }
.pc-prodi {
    display:inline-block; font-size:0.78rem;
    background: var(--light-bg2);
    color: var(--text-body);
    padding: 0.28rem 0.9rem;
    border-radius: 8px;
    border: 1px solid rgba(124,58,237,0.1);
}

/* ===== PROGRAM CARDS ===== */
.program-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.prog-card {
    background: var(--white);
    border: 1px solid rgba(124,58,237,0.1);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: all 0.35s ease;
    position: relative; overflow: hidden;
}
.prog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}
.prog-card::after {
    content:''; position:absolute;
    top:0; left:0; right:0; height:3px;
    background: linear-gradient(90deg, var(--p2), var(--g2));
    transform: scaleX(0); transform-origin:left;
    transition: transform 0.35s ease;
    border-radius: 3px 3px 0 0;
}
.prog-card:hover::after { transform: scaleX(1); }

.prog-num {
    font-family: 'Playfair Display', serif;
    font-size: 3rem; font-weight: 800;
    color: var(--p5);
    line-height: 1; margin-bottom: 0.75rem;
}
.prog-card h3 { font-size:1rem; font-weight:700; margin-bottom:0.5rem; color:var(--text-dark); }
.prog-card p  { font-size:0.85rem; color:var(--text-muted); line-height:1.7; margin-bottom:1rem; }

.tag { display:inline-block; padding:0.2rem 0.75rem; border-radius:50px; font-size:0.7rem; font-weight:600; }
.tag-p { background:var(--p5); color:var(--p2); }
.tag-g { background: rgba(212,175,55,0.1); color:var(--g1); border:1px solid rgba(212,175,55,0.2); }

/* ===== TIMELINE ===== */
.timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.tl-item {
    background: var(--white);
    border: 1px solid rgba(124,58,237,0.1);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}
.tl-item::before {
    content:''; position:absolute;
    top:0; left:0; right:0; height:3px;
    background: linear-gradient(90deg, var(--p2), var(--g2));
    border-radius: 3px 3px 0 0;
}
.tl-item:hover { box-shadow: var(--shadow-card); transform:translateY(-4px); }
.tl-week {
    font-family: 'Playfair Display', serif;
    font-size: 2rem; font-weight: 800;
    background: linear-gradient(135deg, var(--p2), var(--p3));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem; line-height:1;
}
.tl-item h4 { font-size:0.9rem; font-weight:700; margin-bottom:0.4rem; color:var(--text-dark); }
.tl-item p  { font-size:0.8rem; color:var(--text-muted); }

/* ===== GALLERY ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}
.gallery-item {
    aspect-ratio: 4/3;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(124,58,237,0.1);
    background: linear-gradient(135deg, var(--light-bg2) 0%, var(--p5) 100%);
    display: flex; align-items:center; justify-content:center;
    font-size: 2.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}
.gallery-item:hover {
    transform: scale(1.04);
    box-shadow: var(--shadow-hover);
    border-color: rgba(212,175,55,0.3);
}
.gallery-item img { width:100%; height:100%; object-fit:cover; }

/* ===== INFO / LOCATION CARDS ===== */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
}
.info-card {
    background: var(--white);
    border: 1px solid rgba(124,58,237,0.1);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    text-align: center;
    transition: all 0.3s ease;
}
.info-card:hover {
    box-shadow: var(--shadow-card);
    border-color: rgba(212,175,55,0.25);
    transform: translateY(-3px);
}
.info-card .ico { font-size:2.2rem; margin-bottom:0.75rem; display:block; }
.info-card h4 {
    font-family:'Inter',sans-serif;
    font-size:0.75rem; font-weight:700; text-transform:uppercase;
    letter-spacing:0.08em; color:var(--text-muted); margin-bottom:0.3rem;
}
.info-card p { font-size:1rem; font-weight:600; color:var(--text-dark); }

/* ===== MAP PLACEHOLDER ===== */
.map-wrap {
    margin-top: 2.5rem;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid rgba(124,58,237,0.1);
    box-shadow: var(--shadow-card);
    min-height: 420px;
    background: var(--light-bg2);
    display: flex; align-items:center; justify-content:center;
    flex-direction:column; gap:1rem;
    color: var(--text-muted);
}
.map-wrap .mi { font-size:3.5rem; }
.map-wrap h3 { font-size:1.3rem; color:var(--text-dark); }
.map-wrap p  { font-size:0.88rem; text-align:center; }

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(160deg, var(--dark) 0%, var(--dark2) 100%);
    padding: 5rem 0 0;
    position: relative; overflow:hidden;
}
.footer::before {
    content:''; position:absolute; inset:0;
    background: radial-gradient(ellipse at 30% 80%,
        rgba(124,58,237,0.1) 0%, transparent 60%);
    pointer-events:none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    position:relative; z-index:1;
}

.footer-brand-name {
    font-family:'Playfair Display',serif;
    font-size: 1.5rem; font-weight:700; color:var(--white);
    margin-bottom: 0.75rem;
}
.footer-brand-name span { color: var(--g3); }
.footer-brand p { font-size:0.88rem; color:var(--text-dim); line-height:1.8; }

/* glass badge in footer */
.footer-badge {
    display:inline-flex; align-items:center; gap:6px;
    margin-top:1.25rem;
    padding:0.45rem 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    font-size:0.78rem; color:rgba(255,255,255,0.5);
    backdrop-filter:blur(10px);
}

.footer-col h4 {
    font-family:'Inter',sans-serif;
    font-size:0.72rem; font-weight:700;
    text-transform:uppercase; letter-spacing:0.1em;
    color: var(--g3); margin-bottom:1.25rem;
}
.footer-col ul { list-style:none; }
.footer-col ul li { margin-bottom:0.6rem; }
.footer-col ul li a { font-size:0.88rem; color:var(--text-dim); transition:color 0.2s; }
.footer-col ul li a:hover { color:var(--white); }

/* Sosmed links */
.sosmed-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}
.sosmed-link svg { flex-shrink: 0; }

.footer-bottom {
    padding: 1.5rem 0;
    text-align:center;
    font-size:0.8rem;
    color:rgba(255,255,255,0.3);
    position:relative; z-index:1;
}
.footer-bottom span { color:var(--g3); }

/* ===== RESPONSIVE ===== */

/* ── 1024px: tablet landscape ── */
@media (max-width: 1024px) {
    .container { padding: 0 20px; }

    /* Hero */
    .cards-grid, .program-grid { grid-template-columns: repeat(2,1fr); }
    .hero h1 { font-size: 2.9rem; }
    .hero-inner { gap: 3rem; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .footer-brand { grid-column: span 2; }
}

/* ── 768px: tablet portrait & mobile ── */
@media (max-width: 768px) {
    .container { padding: 0 16px; }

    /* Prevent horizontal overflow globally */
    body { overflow-x: hidden; }

    /* ── Hero ── */
    .hero { overflow-x: hidden; }
    .hero > .container { padding: 0 16px; }
    .hero-inner {
        grid-template-columns: 1fr;
        padding: 2.5rem 0;
        text-align: left;
        width: 100%;
        max-width: 100%;
        gap: 0;
    }
    .hero-inner::before,
    .hero-inner::after { display: none; }
    .hero-deco { display: none; }
    .hero-glass-card { display: none; }
    .hero h1 { font-size: 2rem; }
    .hero-pill { margin: 0 0 1rem; display: inline-flex; }
    .hero-sub { font-size: 0.95rem; margin: 0 0 1.5rem; max-width: 100%; }
    .hero-btns { justify-content: flex-start; flex-wrap: wrap; gap: 0.75rem; }
    .hero-btns .btn { font-size: 0.85rem; padding: 0.65rem 1.4rem; }

    /* ── Sections ── */
    .section { padding: 3.5rem 0; }
    .section-title h2 { font-size: 1.9rem; }
    .section-title { margin-bottom: 2.5rem; }

    /* ── Grids ── */
    .cards-grid,
    .program-grid,
    .timeline { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-box { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.07); }

    /* ── Page header ── */
    .page-header { padding: 5.5rem 0 3rem; }
    .page-header h1 { font-size: 2rem; }
    .page-header p { font-size: 0.88rem; }

    /* ── Footer ── */
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-brand { grid-column: span 1; }
    .footer { padding: 3.5rem 0 0; }

    /* ── Hamburger visible ── */
    .nav-toggle { display: flex; }

    /* ── Menu mobile ── */
    .nav-menu {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        position: absolute;
        top: 68px;
        left: 0; right: 0;
        padding: 0.75rem 1rem 1rem;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
        transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.3s ease;
    }
    .navbar.dark-mode .nav-menu {
        background: rgba(15, 7, 32, 0.97);
        border-top: 1px solid rgba(255,255,255,0.08);
    }
    .navbar.light-mode .nav-menu {
        background: rgba(255,255,255,0.97);
        border-top: 1px solid rgba(124,58,237,0.1);
        box-shadow: 0 8px 24px rgba(91,33,182,0.1);
    }
    .nav-menu.open { max-height: 400px; opacity: 1; pointer-events: auto; }
    .nav-menu li { width: 100%; }
    .nav-menu a { display: block; padding: 0.8rem 1rem; font-size: 0.95rem; border-radius: 10px; width: 100%; }

    /* ── Aspirasi layout ── */
    .aspirasi-layout { grid-template-columns: 1fr; }

    /* ── Kalender ── */
    .kalender-layout { grid-template-columns: 1fr; }
    .kal-num { font-size: .82rem; }

    /* ── Profil org rows ── */
    .org-row-2 { grid-template-columns: repeat(2, 1fr); }
    .org-row-3,
    .org-row-4,
    .org-row-5,
    .org-row-6 { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }

    /* ── Pimpinan & koordinator: hapus fixed width ── */
    .struktur-section [style*="width:240px"],
    .struktur-section [style*="width: 240px"] {
        width: 100% !important;
        max-width: 180px;
    }
    .struktur-section > [style*="display:flex"],
    .struktur-section > div > [style*="display:flex"] {
        flex-wrap: wrap;
        justify-content: center !important;
        gap: 1rem !important;
    }

    /* ── Struktur section spacing ── */
    .struktur-section { margin-bottom: 2rem; }

    /* ── Poster card di mobile lebih kecil ── */
    .poster-card { border-radius: 10px; }
    .poster-overlay { padding: .6rem .75rem; }
    .poster-nama { font-size: .78rem !important; }
    .poster-divisi { font-size: .6rem !important; }
    .poster-jabatan { font-size: .6rem !important; padding: .15rem .5rem !important; }

    /* ── Kelompok — handled in kelompok responsive block ── */

    /* ── HGC stats ── */
    .hgc-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ── 480px: small mobile ── */
@media (max-width: 480px) {
    .container { padding: 0 14px; }

    .hero h1 { font-size: 1.75rem; }
    .hero-pill { font-size: 0.68rem; padding: 0.35rem 0.9rem; }

    .section-title h2 { font-size: 1.6rem; }
    .page-header h1 { font-size: 1.75rem; }

    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }

    .org-row-2,
    .org-row-3,
    .org-row-4,
    .org-row-5,
    .org-row-6 { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }

    /* Pimpinan stack tengah di hp kecil */
    .struktur-section [style*="width:240px"],
    .struktur-section [style*="width: 240px"] {
        max-width: 160px;
    }

    .kal-grid { gap: .2rem; padding: .5rem; }
    .kal-cell { min-height: 38px; padding: .3rem .1rem; }

    /* Lightbox mobile */
    .lb-inner { border-radius: var(--radius-md); }
    .lb-detail { padding: 1rem 1.25rem; }
    .lb-detail h3 { font-size: 1.1rem; }
    .lb-nav { display: none; }

    /* Footer teks lebih kecil */
    .footer-brand-name { font-size: 1.2rem; }
    .footer-bottom { font-size: 0.75rem; }
}

/* ============================================================
   ASPIRASI PAGE STYLES
   ============================================================ */

/* ---- Layout wrapper ---- */
.aspirasi-layout {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 2.5rem;
    align-items: start;
}

/* ---- FORM PANEL ---- */
.aspirasi-form-panel {
    background: var(--white);
    border: 1px solid rgba(124,58,237,0.12);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    position: sticky;
    top: 90px;
}

.afp-header {
    background: linear-gradient(135deg, #1A0A40 0%, #2D1065 100%);
    padding: 2rem 2rem 1.75rem;
    position: relative; overflow:hidden;
}
.afp-header::before {
    content:''; position:absolute; inset:0;
    background: radial-gradient(ellipse at 80% 20%, rgba(167,139,250,0.25) 0%, transparent 65%);
    pointer-events:none;
}
.afp-header::after {
    content:''; position:absolute;
    top:0; left:0; right:0; height:3px;
    background: linear-gradient(90deg, var(--p2), var(--g2));
}

.afp-icon {
    width: 52px; height:52px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 14px;
    display:flex; align-items:center; justify-content:center;
    font-size:1.5rem;
    margin-bottom:1rem;
    position:relative; z-index:1;
}
.afp-header h2 {
    font-size:1.35rem; font-weight:700;
    color:var(--white); margin-bottom:.35rem;
    position:relative; z-index:1;
}
.afp-header p {
    font-size:.82rem; color:var(--text-dim);
    line-height:1.6; position:relative; z-index:1;
}

.afp-body { padding:1.75rem; }

/* Form fields */
.field-group { margin-bottom:1.25rem; }
.field-group label {
    display:block;
    font-size:.78rem; font-weight:600;
    color:var(--text-body);
    margin-bottom:.45rem;
    letter-spacing:.02em;
}
.field-group label span { color:var(--p2); margin-left:2px; }

.field-input {
    width:100%;
    padding:.7rem 1rem;
    border: 1.5px solid rgba(124,58,237,0.15);
    border-radius:10px;
    font-family:'Inter',sans-serif;
    font-size:.88rem;
    color:var(--text-dark);
    background:var(--white);
    transition: all .25s ease;
    outline:none;
}
.field-input:focus {
    border-color:var(--p2);
    box-shadow: 0 0 0 3px rgba(124,58,237,0.1);
}
.field-input::placeholder { color:var(--text-muted); }

textarea.field-input {
    resize:vertical;
    min-height:110px;
    line-height:1.65;
}

.char-count {
    text-align:right;
    font-size:.72rem;
    color:var(--text-muted);
    margin-top:.3rem;
}
.char-count.warn { color:var(--p2); font-weight:600; }

.field-error {
    font-size:.75rem; color:#DC2626;
    margin-top:.3rem; display:block;
}

.btn-submit {
    width:100%;
    display:flex; align-items:center; justify-content:center; gap:8px;
    padding:.85rem 1.5rem;
    background: linear-gradient(135deg, var(--p2) 0%, var(--p1) 100%);
    color:var(--white);
    border:none; border-radius:10px;
    font-family:'Inter',sans-serif;
    font-size:.9rem; font-weight:700;
    cursor:pointer;
    transition:all .25s ease;
    box-shadow: 0 4px 20px rgba(124,58,237,0.35);
}
.btn-submit:hover {
    transform:translateY(-2px);
    box-shadow:0 8px 28px rgba(124,58,237,0.5);
}
.btn-submit:active { transform:translateY(0); }

/* Success flash */
.flash-success {
    display:flex; align-items:center; gap:10px;
    background: linear-gradient(135deg, rgba(34,197,94,.08), rgba(34,197,94,.04));
    border:1px solid rgba(34,197,94,.25);
    border-radius:10px;
    padding:.85rem 1rem;
    font-size:.85rem; color:#166534;
    font-weight:500;
    margin-bottom:1.25rem;
    animation: slideDown .3s ease;
}
.flash-error {
    background: rgba(220,38,38,.06);
    border:1px solid rgba(220,38,38,.2);
    border-radius:10px;
    padding:.85rem 1rem;
    font-size:.82rem; color:#991B1B;
    margin-bottom:1.25rem;
}
.flash-error ul { margin:.3rem 0 0 1rem; }

@keyframes slideDown {
    from { opacity:0; transform:translateY(-8px); }
    to   { opacity:1; transform:translateY(0); }
}

/* ---- BUBBLE PANEL ---- */
.aspirasi-bubble-panel {
    display:flex; flex-direction:column; gap:0;
}

.abp-header {
    display:flex; align-items:center; justify-content:space-between;
    margin-bottom:1.5rem;
    flex-wrap:wrap; gap:.75rem;
}

.abp-title { font-size:1.3rem; font-weight:700; color:var(--text-dark); }
.abp-title span {
    background: linear-gradient(135deg, var(--p2), var(--p3));
    -webkit-background-clip:text; -webkit-text-fill-color:transparent;
    background-clip:text;
}

.abp-count {
    display:flex; align-items:center; gap:6px;
    padding:.35rem .9rem;
    background:var(--p5);
    border:1px solid var(--p4);
    border-radius:50px;
    font-size:.78rem; font-weight:600; color:var(--p2);
}

/* Bubble stream */
.bubble-stream {
    display:flex; flex-direction:column; gap:1.25rem;
    max-height:680px;
    overflow-y:auto;
    padding-right:.5rem;
    scroll-behavior:smooth;
}

/* Custom scrollbar */
.bubble-stream::-webkit-scrollbar { width:4px; }
.bubble-stream::-webkit-scrollbar-track { background:transparent; }
.bubble-stream::-webkit-scrollbar-thumb {
    background:var(--p4); border-radius:4px;
}

/* Individual bubble */
.bubble-item {
    display:flex; gap:1rem;
    animation: bubblePop .45s cubic-bezier(.34,1.56,.64,1) both;
}

@keyframes bubblePop {
    0%   { opacity:0; transform:scale(.85) translateY(12px); }
    100% { opacity:1; transform:scale(1) translateY(0); }
}

.bubble-avatar {
    width:42px; height:42px; flex-shrink:0;
    border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    font-size:1.1rem; font-weight:700;
    color:var(--white);
    box-shadow:0 4px 12px rgba(0,0,0,.15);
}

/* Rainbow of avatar bg colors */
.bubble-item:nth-child(6n+1) .bubble-avatar { background:linear-gradient(135deg,#7C3AED,#A78BFA); }
.bubble-item:nth-child(6n+2) .bubble-avatar { background:linear-gradient(135deg,#B8860B,#D4AF37); }
.bubble-item:nth-child(6n+3) .bubble-avatar { background:linear-gradient(135deg,#1D4ED8,#60A5FA); }
.bubble-item:nth-child(6n+4) .bubble-avatar { background:linear-gradient(135deg,#065F46,#34D399); }
.bubble-item:nth-child(6n+5) .bubble-avatar { background:linear-gradient(135deg,#9D174D,#F472B6); }
.bubble-item:nth-child(6n+6) .bubble-avatar { background:linear-gradient(135deg,#92400E,#FCD34D); }

.bubble-content { flex:1; }

.bubble-meta {
    display:flex; align-items:center; gap:.6rem;
    margin-bottom:.4rem; flex-wrap:wrap;
}
.bubble-name {
    font-size:.88rem; font-weight:700; color:var(--text-dark);
}
.bubble-arrow {
    font-size:.75rem; color:var(--text-muted);
}
.bubble-to {
    font-size:.8rem; font-weight:600;
    color:var(--p2);
    background:var(--p5);
    padding:.1rem .6rem; border-radius:50px;
}
.bubble-time {
    font-size:.72rem; color:var(--text-muted); margin-left:auto;
}

.bubble-box {
    background:var(--white);
    border:1px solid rgba(124,58,237,0.12);
    border-radius:0 16px 16px 16px;
    padding:1rem 1.25rem;
    font-size:.88rem;
    color:var(--text-body);
    line-height:1.75;
    box-shadow:0 2px 12px rgba(91,33,182,.06);
    word-break:break-word;
    position:relative;
}
.bubble-box::before {
    content:'';
    position:absolute; top:0; left:0;
    width:3px; height:100%;
    background:linear-gradient(180deg, var(--p2), var(--p3));
    border-radius:3px 0 0 3px;
}

/* Empty state */
.bubble-empty {
    text-align:center; padding:4rem 2rem;
    color:var(--text-muted);
}
.bubble-empty .be-icon { font-size:3.5rem; margin-bottom:1rem; opacity:.5; }
.bubble-empty h4 { font-size:1.1rem; color:var(--text-body); margin-bottom:.5rem; }
.bubble-empty p  { font-size:.85rem; }

/* Refresh indicator */
.live-badge {
    display:inline-flex; align-items:center; gap:5px;
    font-size:.72rem; color:#16A34A; font-weight:600;
    padding:.25rem .75rem;
    background:rgba(22,163,74,.08);
    border:1px solid rgba(22,163,74,.2);
    border-radius:50px;
}
.live-dot {
    width:6px; height:6px; background:#22C55E;
    border-radius:50%;
    animation: livePulse 1.8s ease-in-out infinite;
}
@keyframes livePulse {
    0%,100% { opacity:1; box-shadow:0 0 0 0 rgba(34,197,94,.4); }
    50%      { opacity:.6; box-shadow:0 0 0 5px rgba(34,197,94,0); }
}

/* ---- RESPONSIVE aspirasi ---- */
@media (max-width: 900px) {
    .aspirasi-layout { grid-template-columns: 1fr; }
    .aspirasi-form-panel { position: static; }
    .bubble-stream { max-height: 500px; }
}

/* ===== BUBBLE SKELETON LOADING ===== */
.bubble-skeleton {
    display: flex;
    gap: 1rem;
    animation: skeletonFade 1.6s ease-in-out infinite;
    margin-bottom: 1.25rem;
}

@keyframes skeletonFade {
    0%, 100% { opacity: 0.5; }
    50%       { opacity: 1; }
}

.skel-avatar {
    width: 42px; height: 42px; flex-shrink: 0;
    border-radius: 50%;
    background: var(--light-bg2);
}

.skel-lines { flex: 1; display: flex; flex-direction: column; gap: .5rem; padding-top: .3rem; }

.skel-line {
    height: 12px;
    border-radius: 6px;
    background: var(--light-bg2);
}
.skel-line.short  { width: 40%; }
.skel-line.long   { width: 100%; height: 52px; border-radius: 10px; }
.skel-line.medium { width: 60%; }

/* Avatar color classes for server-rendered bubbles */
.av-0 { background: linear-gradient(135deg,#7C3AED,#A78BFA) !important; }
.av-1 { background: linear-gradient(135deg,#B8860B,#D4AF37) !important; }
.av-2 { background: linear-gradient(135deg,#1D4ED8,#60A5FA) !important; }
.av-3 { background: linear-gradient(135deg,#065F46,#34D399) !important; }
.av-4 { background: linear-gradient(135deg,#9D174D,#F472B6) !important; }
.av-5 { background: linear-gradient(135deg,#92400E,#FCD34D) !important; }

/* ============================================================
   KALENDER AGUSTUS — Program Kerja
   ============================================================ */

.kalender-section {
    background: var(--white);
}

.kalender-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    align-items: start;
}

/* ---- Kalender Grid ---- */
.kalender-wrap {
    background: var(--white);
    border: 1px solid rgba(124,58,237,0.1);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.kal-header {
    background: linear-gradient(135deg, #1A0A40 0%, #2D1065 100%);
    padding: 1.75rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}
.kal-header::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 80% 50%, rgba(167,139,250,0.2) 0%, transparent 65%);
    pointer-events: none;
}
.kal-header::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--p2), var(--g2));
}

.kal-month {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    position: relative; z-index: 1;
}
.kal-month span {
    background: linear-gradient(135deg, var(--g3), var(--g2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.kal-meta {
    display: flex;
    gap: .75rem;
    position: relative; z-index: 1;
}
.kal-badge {
    padding: .3rem .85rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50px;
    font-size: .75rem;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    backdrop-filter: blur(8px);
}
.kal-badge.gold {
    background: rgba(212,175,55,0.15);
    border-color: rgba(212,175,55,0.3);
    color: var(--g3);
}

/* Day names row */
.kal-daynames {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: var(--light-bg2);
    border-bottom: 1px solid var(--light-border);
}
.kal-dayname {
    padding: .65rem .5rem;
    text-align: center;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
}
.kal-dayname.sunday  { color: #DC2626; }
.kal-dayname.saturday { color: var(--p2); }

/* Grid of days */
.kal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
    padding: 1rem;
    gap: .4rem;
}

.kal-cell {
    aspect-ratio: 1;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: .4rem .25rem .3rem;
    cursor: pointer;
    transition: all .2s ease;
    position: relative;
    border: 1.5px solid transparent;
    min-height: 56px;
}

.kal-cell.empty {
    cursor: default;
    background: transparent;
}

.kal-cell:not(.empty):hover {
    background: var(--p5);
    border-color: var(--p4);
}

.kal-cell.active {
    background: linear-gradient(135deg, var(--p2), var(--p1)) !important;
    border-color: transparent !important;
    box-shadow: 0 4px 16px rgba(124,58,237,0.35);
}

.kal-cell.has-event {
    background: rgba(124,58,237,0.05);
    border-color: rgba(124,58,237,0.15);
}

.kal-cell.today {
    border-color: var(--g2);
    background: rgba(212,175,55,0.06);
}

.kal-cell.sunday-cell .kal-num  { color: #DC2626; }
.kal-cell.saturday-cell .kal-num { color: var(--p2); }
.kal-cell.active .kal-num        { color: var(--white) !important; }

.kal-num {
    font-family: 'Playfair Display', serif;
    font-size: .95rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
}

/* Event dots */
.kal-dots {
    display: flex;
    gap: 2px;
    margin-top: 3px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
}
.kal-dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    flex-shrink: 0;
}
.dot-pendidikan  { background: #7C3AED; }
.dot-kesehatan   { background: #059669; }
.dot-ekonomi     { background: #D97706; }
.dot-lingkungan  { background: #16A34A; }
.dot-teknologi   { background: #2563EB; }
.dot-sosial      { background: #DB2777; }
.dot-nasional    { background: #DC2626; }
.dot-internal    { background: #9CA3AF; }
.kal-cell.active .kal-dot { opacity: .8; }

/* Legend */
.kal-legend {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--light-border);
    background: var(--light-bg2);
}
.leg-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: .72rem;
    color: var(--text-muted);
}
.leg-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
}

/* ---- Detail Panel (sidebar) ---- */
.kal-detail {
    position: sticky;
    top: 90px;
}

.kd-card {
    background: var(--white);
    border: 1px solid rgba(124,58,237,0.1);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.kd-top {
    background: linear-gradient(135deg, #1A0A40, #2D1065);
    padding: 1.5rem 1.75rem;
    position: relative; overflow: hidden;
}
.kd-top::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--g2), var(--p3));
}
.kd-date-num {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
}
.kd-date-num span {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-dim);
    display: block;
    margin-top: .2rem;
}
.kd-dayname {
    font-size: .8rem;
    font-weight: 600;
    color: var(--g3);
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-top: .5rem;
}

.kd-body { padding: 1.5rem; }

.kd-no-event {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-muted);
}
.kd-no-event .icon { font-size: 2.5rem; margin-bottom: .75rem; opacity: .5; }
.kd-no-event p { font-size: .85rem; }

/* Event list in detail */
.kd-event-list { display: flex; flex-direction: column; gap: .9rem; }

.kd-event {
    display: flex;
    gap: .85rem;
    align-items: flex-start;
    padding: .9rem;
    background: var(--light-bg2);
    border-radius: var(--radius-sm);
    border: 1px solid var(--light-border);
    transition: all .2s ease;
}
.kd-event:hover {
    background: var(--p5);
    border-color: var(--p4);
}

.kd-event-stripe {
    width: 4px;
    border-radius: 4px;
    flex-shrink: 0;
    align-self: stretch;
    min-height: 36px;
}

.kd-event-info { flex: 1; min-width: 0; }
.kd-event-name {
    font-size: .9rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: .2rem;
}
.kd-event-time {
    font-size: .75rem;
    color: var(--text-muted);
    margin-bottom: .25rem;
    display: flex;
    align-items: center;
    gap: 4px;
}
.kd-event-desc {
    font-size: .78rem;
    color: var(--text-body);
    line-height: 1.55;
}
.kd-event-tag {
    display: inline-block;
    margin-top: .4rem;
    padding: .15rem .6rem;
    border-radius: 50px;
    font-size: .68rem;
    font-weight: 600;
}

/* Footer event: tag + tombol google calendar */
.kd-event-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .5rem;
}

.kd-gcal-btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .72rem;
    font-weight: 600;
    color: #4285F4;
    background: rgba(66,133,244,.08);
    border: 1px solid rgba(66,133,244,.25);
    border-radius: 6px;
    padding: .25rem .65rem;
    text-decoration: none;
    transition: background .2s, border-color .2s;
    white-space: nowrap;
}
.kd-gcal-btn:hover {
    background: rgba(66,133,244,.18);
    border-color: rgba(66,133,244,.5);
    color: #4285F4;
}

/* Pilih tanggal prompt */
.kd-select-prompt {
    text-align: center;
    padding: 2.5rem 1rem;
}
.kd-select-prompt .icon { font-size: 2.5rem; margin-bottom: .75rem; }
.kd-select-prompt h4 { font-size: 1rem; color: var(--text-dark); margin-bottom: .4rem; }
.kd-select-prompt p  { font-size: .82rem; color: var(--text-muted); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .kalender-layout {
        grid-template-columns: 1fr;
    }
    .kal-detail { position: static; }
    .kal-cell { min-height: 44px; }
    .kal-num  { font-size: .82rem; }
}
@media (max-width: 480px) {
    .kal-grid  { gap: .2rem; padding: .5rem; }
    .kal-cell  { min-height: 38px; padding: .3rem .1rem; }
    .kal-num   { font-size: .75rem; }
    .kal-dots  { display: none; }
}

/* ============================================================
   PROFIL PAGE — PREMIUM CARD REDESIGN
   ============================================================ */

/* ---- Section header strip per kelompok ---- */
.kelompok-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
    padding: 1.5rem 2rem;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.kh-1 { background: linear-gradient(135deg, #1A0A40 0%, #2D1065 100%); }
.kh-2 { background: linear-gradient(135deg, #3D2000 0%, #5C3800 100%); }
.kh-3 { background: linear-gradient(135deg, #3D0028 0%, #5C003E 100%); }

.kelompok-header::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 80% 50%, rgba(255,255,255,0.07) 0%, transparent 60%);
}
.kelompok-header::after {
    content: '';
    position: absolute; top:0; left:0; right:0; height:3px;
    background: linear-gradient(90deg, var(--p3), var(--g2));
}

.kh-num {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 800;
    color: rgba(255,255,255,0.08);
    line-height: 1;
    flex-shrink: 0;
    position: relative; z-index: 1;
    min-width: 60px;
}

.kh-info { position: relative; z-index: 1; }

.kh-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: .25rem .85rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 50px;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.8);
    margin-bottom: .6rem;
    backdrop-filter: blur(8px);
}

.kh-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: .2rem;
}

.kh-sub { font-size: .82rem; color: rgba(255,255,255,.5); }

.kh-coord {
    margin-left: auto;
    position: relative; z-index: 1;
    text-align: right;
    flex-shrink: 0;
}
.kh-coord-label {
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: rgba(255,255,255,.4);
    margin-bottom: .2rem;
}
.kh-coord-name {
    font-size: .9rem;
    font-weight: 700;
    color: var(--g3);
}

/* ---- Grid layout anggota ---- */
/* Koordinator: full width 1 baris, anggota: grid 3 col */
.member-section { margin-bottom: 4rem; }

.coord-row {
    margin-bottom: 1.75rem;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

/* ---- KOORDINATOR CARD (horizontal, besar) ---- */
.coord-card {
    display: flex;
    gap: 0;
    background: var(--white);
    border: 1px solid rgba(124,58,237,0.12);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all .35s ease;
    min-height: 220px;
}
.coord-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.coord-photo-wrap {
    width: 220px;
    flex-shrink: 0;
    position: relative;
    background: linear-gradient(160deg, var(--dark) 0%, var(--dark3) 100%);
    overflow: hidden;
}
.coord-photo-wrap::after {
    content: '';
    position: absolute; top:0; left:0; right:0; height:4px;
    background: linear-gradient(90deg, var(--p2), var(--g2));
}

.coord-photo {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

.coord-photo-placeholder {
    width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: 1rem;
}

.coord-photo-placeholder .big-emoji {
    font-size: 4.5rem;
    line-height: 1;
}

.coord-photo-placeholder label {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,.1);
    border: 1px dashed rgba(255,255,255,.25);
    color: rgba(255,255,255,.6);
    font-size: .7rem;
    font-weight: 600;
    padding: .3rem .8rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all .2s;
    text-align: center;
}
.coord-photo-placeholder label:hover {
    background: rgba(255,255,255,.18);
    color: var(--white);
}
.coord-photo-placeholder input[type="file"] { display: none; }

.coord-info {
    flex: 1;
    padding: 2rem 2.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.coord-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: .28rem .85rem;
    background: linear-gradient(135deg, rgba(212,175,55,.15), rgba(212,175,55,.05));
    border: 1px solid rgba(212,175,55,.3);
    border-radius: 50px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--g1);
    margin-bottom: 1rem;
    width: fit-content;
}

.coord-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: .5rem;
}

.coord-role {
    font-size: .82rem;
    font-weight: 600;
    color: var(--p2);
    margin-bottom: .75rem;
}

.coord-divider {
    width: 48px; height: 3px;
    background: linear-gradient(90deg, var(--g2), var(--p3));
    border-radius: 2px;
    margin-bottom: .9rem;
}

.coord-desc {
    font-size: .88rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ---- MEMBER CARD (vertical, foto penuh atas) ---- */
.member-card {
    background: var(--white);
    border: 1px solid rgba(124,58,237,0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all .35s ease;
    box-shadow: 0 2px 12px rgba(91,33,182,.06);
}
.member-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.member-photo-wrap {
    height: 200px;
    position: relative;
    background: linear-gradient(160deg, var(--dark) 0%, var(--dark3) 100%);
    overflow: hidden;
}
.member-photo-wrap::after {
    content: '';
    position: absolute; top:0; left:0; right:0; height:3px;
    background: linear-gradient(90deg, var(--p2), var(--g2));
}

/* Hover overlay */
.member-photo-wrap::before {
    content: '📷 Ganti Foto';
    position: absolute; inset: 0;
    background: rgba(0,0,0,.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .78rem;
    font-weight: 600;
    color: rgba(255,255,255,.8);
    opacity: 0;
    transition: opacity .25s ease;
    z-index: 2;
    cursor: pointer;
}
.member-card:hover .member-photo-wrap::before { opacity: 1; }

.member-photo {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

.member-photo-placeholder {
    width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    position: relative; z-index: 1;
}
.member-photo-placeholder .emoji { font-size: 3.5rem; line-height: 1; }

.member-upload-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,.08);
    border: 1px dashed rgba(255,255,255,.2);
    color: rgba(255,255,255,.55);
    font-size: .68rem;
    font-weight: 600;
    padding: .25rem .7rem;
    border-radius: 7px;
    cursor: pointer;
    transition: all .2s;
}
.member-upload-btn:hover {
    background: rgba(255,255,255,.15);
    color: var(--white);
}
.member-upload-input { display: none; }

/* Nomor badge di pojok */
.member-num-badge {
    position: absolute;
    bottom: .75rem;
    right: .75rem;
    width: 28px; height: 28px;
    background: rgba(0,0,0,.4);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: .8rem;
    font-weight: 700;
    color: var(--g3);
    z-index: 1;
}

.member-body {
    padding: 1.25rem 1.4rem 1.4rem;
}

.member-badge {
    display: inline-block;
    padding: .18rem .7rem;
    border-radius: 50px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    background: var(--p5);
    color: var(--p2);
    margin-bottom: .6rem;
}

.member-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: .3rem;
}

.member-role {
    font-size: .75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .members-grid { grid-template-columns: repeat(2, 1fr); }
    .coord-photo-wrap { width: 160px; }
    .coord-name { font-size: 1.4rem; }
}

@media (max-width: 600px) {
    .members-grid { grid-template-columns: 1fr 1fr; }
    .coord-card { flex-direction: column; }
    .coord-photo-wrap { width: 100%; height: 200px; }
    .kh-coord { display: none; }
}

/* ============================================================
   ANONYMOUS TOGGLE — Aspirasi Form
   ============================================================ */

/* Toggle switch */
.anon-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    user-select: none;
}

.anon-toggle input[type="checkbox"] { display: none; }

.anon-slider {
    width: 36px;
    height: 20px;
    background: var(--border);
    border-radius: 20px;
    position: relative;
    transition: background .25s ease;
    flex-shrink: 0;
}

.anon-slider::after {
    content: '';
    position: absolute;
    width: 14px; height: 14px;
    background: var(--white);
    border-radius: 50%;
    top: 3px; left: 3px;
    transition: transform .25s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,.2);
}

.anon-toggle input:checked ~ .anon-slider {
    background: var(--p2);
}
.anon-toggle input:checked ~ .anon-slider::after {
    transform: translateX(16px);
}

.anon-text {
    font-size: .75rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    transition: color .2s;
}
.anon-toggle input:checked ~ .anon-text { color: var(--p2); }

/* Anonymous hint bar */
.anon-hint {
    margin-top: .5rem;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: .5rem .85rem;
    background: rgba(124,58,237,.06);
    border: 1px solid rgba(124,58,237,.15);
    border-radius: 9px;
    font-size: .78rem;
    color: var(--p2);
    font-weight: 500;
    animation: slideDown .2s ease;
}

/* Anonymous bubble style */
.bubble-item.is-anon .bubble-avatar {
    background: linear-gradient(135deg, #374151, #1F2937) !important;
}
.bubble-item.is-anon .bubble-name {
    color: var(--text-muted);
    font-style: italic;
}
.anon-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: .68rem;
    background: rgba(124,58,237,.08);
    color: var(--p2);
    padding: .1rem .55rem;
    border-radius: 50px;
    margin-left: .3rem;
    font-weight: 600;
    vertical-align: middle;
}

/* Input disabled state saat anon aktif */
.field-input:disabled {
    background: var(--light-bg2);
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: .6;
}

/* ============================================================
   STRUKTUR ORGANISASI — CARD FOTO FULL (like poster style)
   ============================================================ */

.struktur-section { margin-bottom: 3rem; }

/* Wrapper kartu pimpinan/koordinator — fixed desktop, fluid mobile */
.pimpinan-wrap {
    width: 220px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .pimpinan-wrap {
        width: calc(50% - 0.75rem);
        max-width: 160px;
    }
}
@media (max-width: 400px) {
    .pimpinan-wrap {
        width: calc(50% - 0.5rem);
        max-width: 140px;
    }
}

.struktur-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: .3rem 1rem;
    background: linear-gradient(135deg, rgba(124,58,237,.1), rgba(212,175,55,.06));
    border: 1px solid rgba(124,58,237,.15);
    border-radius: 50px;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--p2);
    margin-bottom: 1.25rem;
}

.dpl-row {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.org-row-1  { display: flex; justify-content: center; gap: 1.25rem; flex-wrap: wrap; }
.org-row-2  { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.org-row-3  { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.org-row-4  { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.org-row-5  { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.org-row-6  { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }

/* POSTER CARD base */
.poster-card {
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 3/4;
    background: linear-gradient(160deg, var(--dark) 0%, var(--dark3) 100%);
    box-shadow: 0 4px 16px rgba(91,33,182,.12);
    transition: all .3s ease;
    cursor: default;
}

.poster-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 32px rgba(91,33,182,.22);
}

/* DPL — lebih kecil, terpusat */
.poster-card.dpl-card {
    max-width: 200px;
    width: 100%;
}

/* Ketua — sedikit lebih besar dari anggota, tapi wajar */
.poster-card.ketua-card {
    max-width: 220px;
    width: 100%;
}

.poster-img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform .4s ease;
}
.poster-card:hover .poster-img { transform: scale(1.04); }

.poster-placeholder {
    width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    background: linear-gradient(160deg, var(--dark) 0%, var(--dark3) 50%, #1A0A40 100%);
    position: relative;
}
.poster-placeholder::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 30%, rgba(124,58,237,.25) 0%, transparent 65%);
}
.poster-placeholder .p-emoji {
    font-size: 2.8rem;
    position: relative; z-index: 1;
}
.poster-placeholder .p-no-foto {
    font-size: .65rem;
    color: rgba(255,255,255,.35);
    position: relative; z-index: 1;
}

.poster-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(0deg, rgba(8,3,24,.96) 0%, rgba(8,3,24,.65) 55%, transparent 100%);
    padding: 2rem .85rem .85rem;
    z-index: 2;
}

.poster-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--p2), var(--g2));
    z-index: 3;
}

.poster-divisi {
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--g3);
    margin-bottom: .25rem;
    line-height: 1.3;
}

.poster-nama {
    font-family: 'Playfair Display', serif;
    font-size: .88rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.3;
    margin-bottom: .3rem;
}

/* DPL & Ketua nama sedikit lebih besar */
.poster-card.dpl-card   .poster-nama { font-size: .95rem; }
.poster-card.ketua-card .poster-nama { font-size: .95rem; }

.poster-jabatan {
    display: inline-block;
    padding: .12rem .55rem;
    background: rgba(124,58,237,.35);
    border: 1px solid rgba(167,139,250,.25);
    border-radius: 50px;
    font-size: .6rem;
    font-weight: 700;
    color: var(--p3);
    text-transform: uppercase;
    letter-spacing: .05em;
}
.poster-jabatan.gold {
    background: rgba(212,175,55,.25);
    border-color: rgba(212,175,55,.3);
    color: var(--g3);
}

.org-connector {
    display: flex;
    justify-content: center;
    height: 32px;
}
.org-connector::before {
    content: '';
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, var(--p2), var(--p4));
    display: block;
}

/* Responsive org handled in main responsive block above */


/* ============================================================
   PEMBAGIAN KELOMPOK SECTION
   ============================================================ */

.kelompok-section {
    background: var(--light-bg2);
    position: relative;
    overflow: hidden;
}
.kelompok-section::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 20% 0%,   rgba(124,58,237,0.06) 0%, transparent 55%),
                radial-gradient(ellipse at 80% 100%, rgba(212,175,55,0.05)  0%, transparent 55%);
    pointer-events: none;
}

/* Header */
.kelompok-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative; z-index: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.kelompok-header h2 {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0.6rem 0 0.75rem;
    line-height: 1.2;
    text-align: center;
}
.kelompok-header h2 .grad {
    background: linear-gradient(135deg, var(--p2) 0%, var(--p3) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.kelompok-header p {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

/* Grid 3 kolom */
.kelompok-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative; z-index: 1;
}

/* Card utama */
.kelompok-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(124,58,237,0.1);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
    position: relative;
}
.kelompok-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 64px rgba(91,33,182,0.16);
    border-color: transparent;
}

/* Top accent bar per kelompok */
.kelompok-1::before,
.kelompok-2::before,
.kelompok-3::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    border-radius: 4px 4px 0 0;
}
.kelompok-1::before { background: linear-gradient(90deg, var(--p2), var(--p3)); }
.kelompok-2::before { background: linear-gradient(90deg, var(--g1), var(--g2)); }
.kelompok-3::before { background: linear-gradient(90deg, #0EA5E9, #38BDF8); }

/* Card header */
.kelompok-card-header {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    padding: 1.75rem 1.75rem 1.25rem;
    background: linear-gradient(160deg, #0F0720 0%, #1D0D4A 100%);
    position: relative; overflow: hidden;
}
.kelompok-card-header::after {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 90% 10%, rgba(167,139,250,0.2) 0%, transparent 60%);
    pointer-events: none;
}

/* Nomor kelompok besar */
.kelompok-number {
    font-family: 'Playfair Display', serif;
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1;
    color: rgba(255,255,255,0.08);
    position: relative; z-index: 1;
    flex-shrink: 0;
    letter-spacing: -2px;
}
.kelompok-1 .kelompok-number { color: rgba(167,139,250,0.25); }
.kelompok-2 .kelompok-number { color: rgba(212,175,55,0.25); }
.kelompok-3 .kelompok-number { color: rgba(56,189,248,0.25); }

.kelompok-info { position: relative; z-index: 1; }

.kelompok-tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.22rem 0.75rem;
    border-radius: 50px;
    margin-bottom: 0.4rem;
}
.kelompok-1 .kelompok-tag {
    background: rgba(167,139,250,0.15);
    border: 1px solid rgba(167,139,250,0.3);
    color: var(--p3);
}
.kelompok-2 .kelompok-tag {
    background: rgba(212,175,55,0.12);
    border: 1px solid rgba(212,175,55,0.3);
    color: var(--g3);
}
.kelompok-3 .kelompok-tag {
    background: rgba(56,189,248,0.1);
    border: 1px solid rgba(56,189,248,0.25);
    color: #7DD3FC;
}

.kelompok-card-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.3;
    margin: 0;
}

/* Koordinator strip */
.kelompok-koordinator {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.75rem;
    background: linear-gradient(90deg, var(--p5), var(--light-bg2));
    border-bottom: 1px solid rgba(124,58,237,0.08);
}
.kelompok-2 .kelompok-koordinator {
    background: linear-gradient(90deg, rgba(212,175,55,0.07), var(--light-bg2));
}
.kelompok-3 .kelompok-koordinator {
    background: linear-gradient(90deg, rgba(56,189,248,0.07), var(--light-bg2));
}

.koord-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    flex-shrink: 0;
}
.koord-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-dark);
}
.kelompok-1 .koord-name { color: var(--p2); }
.kelompok-2 .koord-name { color: var(--g1); }
.kelompok-3 .koord-name { color: #0284C7; }

/* Divider dekoratif */
.kelompok-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(124,58,237,0.1), transparent);
    margin: 0 1.75rem;
}

/* Daftar anggota */
.kelompok-anggota {
    padding: 1.25rem 1.75rem 1rem;
    flex: 1;
}

.anggota-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.anggota-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.anggota-list li {
    font-size: 0.875rem;
    color: var(--text-body);
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    border-left: 2px solid transparent;
    transition: all 0.2s ease;
    line-height: 1.4;
}
.anggota-list li:hover {
    background: var(--light-bg2);
}
.kelompok-1 .anggota-list li { border-left-color: rgba(124,58,237,0.2); }
.kelompok-2 .anggota-list li { border-left-color: rgba(212,175,55,0.2); }
.kelompok-3 .anggota-list li { border-left-color: rgba(56,189,248,0.2); }

.kelompok-1 .anggota-list li:hover { border-left-color: var(--p2); background: var(--p5); }
.kelompok-2 .anggota-list li:hover { border-left-color: var(--g2); background: rgba(212,175,55,0.05); }
.kelompok-3 .anggota-list li:hover { border-left-color: #38BDF8; background: rgba(56,189,248,0.06); }

/* Footer card */
.kelompok-footer {
    padding: 1rem 1.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.kelompok-count {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.85rem;
    border-radius: 50px;
}
.kelompok-1 .kelompok-count {
    background: var(--p5);
    color: var(--p2);
    border: 1px solid rgba(124,58,237,0.15);
}
.kelompok-2 .kelompok-count {
    background: rgba(212,175,55,0.08);
    color: var(--g1);
    border: 1px solid rgba(212,175,55,0.2);
}
.kelompok-3 .kelompok-count {
    background: rgba(56,189,248,0.07);
    color: #0284C7;
    border: 1px solid rgba(56,189,248,0.2);
}

/* Responsive kelompok handled in main responsive block above */
@media (max-width: 1024px) {
    .kelompok-grid { grid-template-columns: repeat(2, 1fr); }
    .kelompok-3 { grid-column: span 2; max-width: 600px; margin: 0 auto; width: 100%; }
}

@media (max-width: 768px) {
    .kelompok-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .kelompok-3 { grid-column: span 1; max-width: none; }

    /* Fix header section overflow */
    .kelompok-header {
        margin-bottom: 2rem;
        padding: 0 4px;
    }
    .kelompok-header h2 {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    .kelompok-header p {
        font-size: 0.85rem;
        max-width: 100%;
        word-break: keep-all;
        overflow-wrap: break-word;
    }
    /* Pill label jangan overflow */
    .kelompok-header .page-pill {
        font-size: 0.65rem;
        padding: 0.3rem 0.8rem;
        max-width: 100%;
        white-space: normal;
        text-align: center;
    }

    .kelompok-card-header {
        padding: 1.25rem 1.25rem 1rem;
        gap: 0.75rem;
    }
    .kelompok-number { font-size: 2.4rem; }
    .kelompok-card-header h3 { font-size: 0.95rem; }

    .kelompok-koordinator { padding: 0.7rem 1.25rem; }
    .koord-name { font-size: 0.82rem; }

    .kelompok-anggota { padding: 1rem 1.25rem 0.75rem; }
    .anggota-list li {
        font-size: 0.82rem;
        padding: 0.35rem 0.65rem;
    }

    .kelompok-footer { padding: 0.75rem 1.25rem 1.25rem; }
    .kelompok-divider { margin: 0 1.25rem; }
}


/* ============================================================
   GALERI — DYNAMIC STYLES
   ============================================================ */

/* ── Empty state ── */
.galeri-empty {
    text-align: center;
    padding: 5rem 2rem;
    border: 2px dashed rgba(124,58,237,0.18);
    border-radius: var(--radius-xl);
    background: var(--light-bg2);
}

.galeri-empty-icon {
    width: 96px; height: 96px;
    background: linear-gradient(135deg, var(--p5), var(--p4));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--p2);
}

.galeri-empty h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.6rem;
}

.galeri-empty p {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 400px;
    margin: 0 auto 1.5rem;
}

.galeri-empty-hint {
    display: inline-block;
    background: var(--white);
    border: 1px solid rgba(124,58,237,0.12);
    border-radius: var(--radius-md);
    padding: 0.85rem 1.5rem;
    font-size: 0.82rem;
    color: var(--text-body);
    line-height: 1.7;
}

.galeri-empty-hint code {
    background: var(--p5);
    color: var(--p2);
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 0.8rem;
}

/* ── Gallery item with image ── */
.galeri-foto-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.galeri-foto-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.galeri-foto-item:hover img {
    transform: scale(1.07);
}

/* Overlay on hover */
.galeri-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
        rgba(15,7,32,0.88) 0%,
        rgba(15,7,32,0.3) 50%,
        transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.galeri-foto-item:hover .galeri-overlay {
    opacity: 1;
}

.galeri-overlay-judul {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.3;
    margin-bottom: 0.2rem;
}

.galeri-overlay-ket {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.4;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.galeri-kategori-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    background: rgba(212,175,55,0.2);
    border: 1px solid rgba(212,175,55,0.35);
    color: var(--g3);
    align-self: flex-start;
}

/* Error state (gambar gagal load) */
.galeri-foto-item.img-error {
    background: linear-gradient(135deg, var(--light-bg2), var(--p5));
    display: flex; align-items: center; justify-content: center;
}
.galeri-foto-item.img-error img { display: none; }
.galeri-foto-item.img-error::after {
    content: 'Foto tidak tersedia';
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Jumlah foto badge */
.galeri-count-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--p2);
    background: var(--p5);
    border: 1px solid rgba(124,58,237,0.15);
    padding: 0.4rem 1.1rem;
    border-radius: 50px;
}

/* Zoom hint di overlay */
.galeri-zoom-hint {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.5);
    margin-top: 0.3rem;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lb-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(5, 2, 18, 0.95);
    backdrop-filter: blur(12px);
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}
.lb-backdrop.active { display: flex; }

.lb-inner {
    display: flex;
    flex-direction: column;
    max-width: 860px;
    width: 100%;
    max-height: 90vh;
    background: #1a0e35;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0,0,0,0.6);
    animation: lb-in 0.25s ease;
}
@keyframes lb-in {
    from { opacity: 0; transform: scale(0.94); }
    to   { opacity: 1; transform: scale(1); }
}

.lb-img-wrap {
    background: #0f0720;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 60vh;
    overflow: hidden;
}
.lb-img-wrap img {
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
    display: block;
}

.lb-detail {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.lb-detail-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}
.lb-counter-text {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.35);
}
.lb-detail h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}
.lb-detail p {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.7;
}

/* Close button */
.lb-close {
    position: fixed;
    top: 1.25rem;
    right: 1.5rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--white);
    width: 42px; height: 42px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
    z-index: 10000;
    line-height: 1;
}
.lb-close:hover { background: rgba(255,255,255,0.2); }

/* Prev / Next */
.lb-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--white);
    width: 48px; height: 48px;
    border-radius: 50%;
    font-size: 1.8rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
    z-index: 10000;
    line-height: 1;
}
.lb-nav:hover { background: rgba(255,255,255,0.18); }
.lb-prev { left: 1.25rem; }
.lb-next { right: 1.25rem; }

/* Lightbox responsive handled in main responsive block above */
