/* ============================================
   LUNA GALLERY — MAIN STYLESHEET
   ============================================ */

/* === VARIABEL & RESET === */
:root {
    --cream: #FFF8F0;
    --pink: #F4A6B8;
    --pink-dark: #e88fa3;
    --sky: #A8D8EA;
    --text: #4A4A4A;
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', sans-serif;
    background: var(--cream);
    color: var(--text);
    line-height: 1.6;
}

img, video {
    max-width: 100%;
    height: auto;
}

html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--pink);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar .logo-img {
    width: 40px;
    height: 40px;
    display: block;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 2px 4px rgba(244, 166, 184, 0.3));
}

.navbar .logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--pink);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.navbar .logo:hover .logo-img {
    transform: rotate(-10deg) scale(1.1);
}

.navbar .logo:hover .logo-text {
    color: var(--pink-dark);
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.navbar ul li {
    list-style: none;
}

.navbar a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    position: relative;
}

.navbar a:hover {
    color: var(--pink);
}

.navbar a.active {
    color: var(--pink);
}

/* Smooth underline — melebar dari tengah */
.navbar a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    right: 50%;
    height: 2px;
    background: var(--pink);
    border-radius: 2px;
    transition:
        left 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar a:hover::after,
.navbar a.active::after {
    left: 0;
    right: 0;
}

.navbar .nav-admin {
    background: var(--pink);
    color: white !important;
    padding: 8px 18px !important;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s var(--ease-smooth);
}

.navbar .nav-admin:hover {
    background: var(--pink-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(244, 166, 184, 0.4);
}

.navbar .nav-admin::after {
    display: none;
}

/* ============================================
   HERO (dengan video background)
   ============================================ */
.hero {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #FFF8F0 0%, #FFE4EC 100%);
    position: relative;
    overflow: hidden;
}

.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(255, 248, 240, 0.85) 0%,
        rgba(255, 228, 236, 0.70) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--pink);
    margin-bottom: 20px;
    font-weight: 900;
    letter-spacing: 2px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;

    -webkit-text-stroke: 1.5px white;
    text-stroke: 1.5px white;
    paint-order: stroke fill;

    text-shadow:
        2px 2px 0 rgba(255, 255, 255, 0.9),
        -1px -1px 0 rgba(255, 255, 255, 0.9),
        1px -1px 0 rgba(255, 255, 255, 0.9),
        -1px 1px 0 rgba(255, 255, 255, 0.9),
        0 0 30px rgba(255, 255, 255, 0.8),
        0 6px 20px rgba(244, 166, 184, 0.4);
}

.hero-logo {
    width: 70px;
    height: 70px;
    display: block;
    filter: drop-shadow(0 4px 12px rgba(244, 166, 184, 0.4));
    animation: heroLogoFloat 3s ease-in-out infinite;
    -webkit-text-stroke: 0;
    text-stroke: 0;
}

@keyframes heroLogoFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-6px) rotate(-5deg); }
}

.hero h1 span {
    display: inline-block;
}

.hero-tagline {
    font-size: 1.1rem;
    color: #5a5a5a;
    font-style: italic;
    font-weight: 600;
    margin-bottom: 40px;
    text-shadow:
        1px 1px 0 rgba(255, 255, 255, 0.9),
        -1px -1px 0 rgba(255, 255, 255, 0.9),
        0 0 20px rgba(255, 255, 255, 0.8);
}

.age-counter {
    background: rgba(255, 255, 255, 0.98);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(244, 166, 184, 0.25);
    margin: 0 auto 40px;
    max-width: 400px;
    position: relative;
    z-index: 3;
}

.age-label {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.age-number {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    color: var(--pink);
    line-height: 1;
    margin: 10px 0;
    font-weight: 900;
    text-shadow: 0 2px 8px rgba(244, 166, 184, 0.3);
}

.age-number span {
    font-size: 1.2rem;
    color: var(--text);
    font-weight: 400;
}

.age-detail {
    color: #666;
    font-size: 0.95rem;
}

/* === STATS (Foto, Video, Momen) === */
.hero-stats {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    margin: 0 auto 40px;
    padding: 18px 30px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    width: fit-content;
    max-width: calc(100% - 40px);
    box-shadow:
        0 8px 32px rgba(244, 166, 184, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 3;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 60px;
    flex-shrink: 0;
    flex-grow: 0;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 1.7rem;
    color: var(--pink);
    font-weight: 900;
    background: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    box-shadow:
        0 3px 10px rgba(244, 166, 184, 0.3),
        inset 0 -2px 4px rgba(244, 166, 184, 0.1);
    line-height: 1;
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-align: center;
    white-space: nowrap;
}

.hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 3;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s var(--ease-smooth);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--pink);
    color: white;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(244, 166, 184, 0.45);
}

.btn-primary:hover {
    background: var(--pink-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(244, 166, 184, 0.6);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.95);
    color: var(--pink);
    border-color: var(--pink);
    font-weight: 700;
    box-shadow:
        0 4px 16px rgba(244, 166, 184, 0.3),
        0 0 20px rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
    background: var(--pink);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(244, 166, 184, 0.5);
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
}

/* ============================================
   SECTION
   ============================================ */
.section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--text);
}

.link-more {
    color: var(--pink);
    text-decoration: none;
    font-weight: 600;
}

.link-more:hover {
    text-decoration: underline;
}

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header {
    text-align: center;
    padding: 60px 20px 30px;
}

.page-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--pink);
    margin-bottom: 10px;
}

.page-header p {
    color: #888;
}

/* ============================================
   GRID & CARD
   ============================================ */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 0;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth);
    opacity: 0;
    transform: translateY(20px);
}

.card.visible {
    opacity: 1;
    transform: translateY(0);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(244, 166, 184, 0.2);
}

.card-media {
    position: relative;
    overflow: hidden;
}

.card-media img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
    transition: transform 0.4s var(--ease-smooth);
}

.card-body {
    padding: 15px;
}

.card-body h3 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: var(--text);
}

.card-body small {
    color: #999;
}

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255,255,255,0.95);
    color: var(--pink);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card.gallery-item-trigger {
    cursor: pointer;
}

.card.gallery-item-trigger:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(244, 166, 184, 0.25);
}

.card.gallery-item-trigger:hover img {
    transform: scale(1.05);
}

/* ============================================
   FILTER BAR
   ============================================ */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto 30px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-label {
    font-size: 0.85rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-right: 5px;
}

.filter-chip {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 20px;
    background: white;
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    border: 2px solid #eee;
    transition: all 0.2s var(--ease-smooth);
}

.filter-chip:hover {
    border-color: var(--pink);
    color: var(--pink);
}

.filter-chip.active {
    background: var(--pink);
    color: white;
    border-color: var(--pink);
}

/* ============================================
   GALLERY GRID
   ============================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
    padding: 0 40px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
    background: #f5f5f5;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s, transform 0.5s;
}

.gallery-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--ease-smooth);
}

.gallery-item:hover img,
.gallery-item:hover video {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 15px 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: white;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h3 {
    font-size: 0.95rem;
    margin-bottom: 3px;
}

.gallery-overlay small {
    font-size: 0.8rem;
    opacity: 0.8;
}

.video-thumb {
    position: relative;
    width: 100%;
    height: 100%;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--pink);
    padding-left: 4px;
    pointer-events: none;
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 20px;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    text-align: center;
    color: white;
    overflow: hidden;
    animation: lightboxFadeIn 0.3s var(--ease-smooth);
}

@keyframes lightboxFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

#lightboxMedia {
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 75vh;
    overflow: hidden;
}

#lightboxMedia img,
#lightboxMedia video {
    max-width: 90vw;
    max-height: 75vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    display: block;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

@keyframes mediaIn {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lightbox-caption {
    margin-top: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.lightbox-caption h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin-bottom: 6px;
    color: white;
}

.lightbox-caption p {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.lightbox-caption small {
    color: #999;
    font-size: 0.8rem;
}

/* ============================================
   LIGHTBOX NAVIGATION
   ============================================ */
.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    z-index: 100000;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    padding: 0;
    overflow: hidden;
}

.lightbox-close::before,
.lightbox-prev::before,
.lightbox-next::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(244, 166, 184, 0.4), transparent 70%);
    opacity: 0;
    transition: opacity 0.35s;
    border-radius: 50%;
}

.lightbox-close:hover::before,
.lightbox-prev:hover::before,
.lightbox-next:hover::before {
    opacity: 1;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(244, 166, 184, 0.25);
    border-color: rgba(244, 166, 184, 0.6);
    transform: scale(1.12);
    box-shadow:
        0 8px 32px rgba(244, 166, 184, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.lightbox-close:active,
.lightbox-prev:active,
.lightbox-next:active {
    transform: scale(0.95);
    transition-duration: 0.1s;
}

.lightbox-close svg,
.lightbox-prev svg,
.lightbox-next svg {
    width: 24px;
    height: 24px;
    stroke: white;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    position: relative;
    z-index: 1;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox-prev:hover svg {
    transform: translateX(-2px);
}

.lightbox-next:hover svg {
    transform: translateX(2px);
}

.lightbox-close:hover svg {
    transform: rotate(90deg);
}

.lightbox-close {
    top: 24px;
    right: 24px;
}

.lightbox-prev {
    top: 50%;
    left: 24px;
    transform: translateY(-50%);
}

.lightbox-next {
    top: 50%;
    right: 24px;
    transform: translateY(-50%);
}

.lightbox-prev:hover {
    transform: translateY(-50%) scale(1.12);
}

.lightbox-next:hover {
    transform: translateY(-50%) scale(1.12);
}

.lightbox-prev:active {
    transform: translateY(-50%) scale(0.95);
}

.lightbox-next:active {
    transform: translateY(-50%) scale(0.95);
}

/* ============================================
   FORM
   ============================================ */
.login-box,
.admin-container {
    max-width: 500px;
    margin: 80px auto;
    padding: 40px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.login-box h1,
.admin-container h1 {
    color: var(--pink);
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    text-align: center;
}

input,
textarea,
select {
    width: 100%;
    padding: 12px;
    margin: 8px 0 16px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--pink);
    box-shadow: 0 0 0 4px rgba(244, 166, 184, 0.15);
}

label {
    font-weight: 600;
    display: block;
    margin-top: 10px;
}

button[type="submit"],
.admin-container button {
    background: var(--pink);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s;
}

button[type="submit"]:hover,
.admin-container button:hover {
    background: var(--pink-dark);
}

.msg {
    padding: 12px;
    background: #d4edda;
    color: #155724;
    border-radius: 8px;
    margin-bottom: 20px;
}

.error {
    padding: 12px;
    background: #f8d7da;
    color: #721c24;
    border-radius: 8px;
    margin-bottom: 20px;
}

.password-wrapper {
    position: relative;
    margin-bottom: 16px;
}

.password-wrapper input {
    margin: 0;
    padding-right: 45px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    width: auto;
    padding: 5px;
    cursor: pointer;
    font-size: 1.2rem;
    color: #999;
    transition: color 0.2s;
    line-height: 1;
}

.password-toggle:hover {
    color: var(--pink);
    background: transparent;
}

.caps-warning {
    display: block;
    color: #e74c3c;
    font-size: 0.8rem;
    margin-top: 6px;
    font-weight: 600;
    animation: shake 0.3s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    75% { transform: translateX(3px); }
}

/* ============================================
   LOGIN PAGE LOGO
   ============================================ */
.login-logo {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 6px 16px rgba(244, 166, 184, 0.35));
    animation: loginLogoFloat 3s ease-in-out infinite;
}

@keyframes loginLogoFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-6px) rotate(-5deg); }
}

/* ============================================
   BACK BUTTON
   ============================================ */
.back-wrapper {
    text-align: center;
    margin: 30px 0 20px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: white;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 30px;
    border: 2px solid #eee;
    transition: all 0.3s var(--ease-smooth);
}

.btn-back:hover {
    border-color: var(--pink);
    color: var(--pink);
    transform: translateX(-4px);
    box-shadow: 0 6px 16px rgba(244, 166, 184, 0.25);
}

.btn-back .arrow {
    transition: transform 0.3s;
}

.btn-back:hover .arrow {
    transform: translateX(-3px);
}

.btn-back-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: transparent;
    color: var(--pink);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 30px;
    border: 2px solid var(--pink);
    transition: all 0.3s var(--ease-smooth);
}

.btn-back-ghost:hover {
    background: var(--pink);
    color: white;
    transform: translateX(-4px);
}

/* ============================================
   ADMIN TOPBAR (dipakai di semua halaman admin)
   ============================================ */
.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: white;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--pink);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
}

.admin-brand:hover {
    transform: translateX(3px);
    color: var(--pink-dark);
}

.admin-brand-logo {
    width: 32px;
    height: 32px;
    display: block;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.admin-brand:hover .admin-brand-logo {
    transform: rotate(-10deg) scale(1.1);
}

.admin-topbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-greeting {
    font-size: 0.85rem;
    color: #999;
}

.admin-greeting strong {
    color: var(--pink);
}

.btn-logout {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    background: white;
    color: #e74c3c;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 30px;
    border: 2px solid #fce4e4;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-logout:hover {
    background: #e74c3c;
    border-color: #e74c3c;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.3);
}

.btn-logout:active {
    transform: translateY(0) scale(0.97);
}

.btn-logout span:first-child {
    font-size: 1rem;
    transition: transform 0.3s;
}

.btn-logout:hover span:first-child {
    transform: translateX(3px);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    text-align: center;
    padding: 30px;
    color: #999;
    font-size: 0.9rem;
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-container {
    max-width: 800px;
    margin: 0 auto 80px;
    padding: 0 20px;
}

.about-card {
    background: white;
    border-radius: 24px;
    padding: 50px 30px;
    text-align: center;
    box-shadow: 0 8px 40px rgba(244, 166, 184, 0.15);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(244, 166, 184, 0.15), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.about-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #FFE4EC, #FFF8F0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    border: 4px solid white;
    box-shadow: 0 8px 24px rgba(244, 166, 184, 0.25);
    animation: floatAvatar 3s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

@keyframes floatAvatar {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.about-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--pink);
    margin-bottom: 5px;
    position: relative;
    z-index: 1;
}

.about-subtitle {
    color: #999;
    font-style: italic;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.about-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 30px;
    position: relative;
    z-index: 1;
}

.about-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: var(--cream);
    border-radius: 12px;
    text-align: left;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-info:hover {
    background: #FFE4EC;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(244, 166, 184, 0.15);
}

.about-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.about-info small {
    display: block;
    color: #999;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 3px;
}

.about-info strong {
    display: block;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 700;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 40px;
}

.about-stat {
    background: white;
    border-radius: 16px;
    padding: 25px 15px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(244, 166, 184, 0.2);
}

.about-stat-num {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--pink);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
}

.about-stat-lbl {
    font-size: 0.8rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-story {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    margin-bottom: 40px;
}

.about-story h3 {
    font-family: 'Playfair Display', serif;
    color: var(--pink);
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
}

.about-story p {
    color: #555;
    line-height: 1.9;
    margin-bottom: 18px;
    font-size: 1rem;
}

.about-signature {
    text-align: right;
    font-style: italic;
    color: var(--pink) !important;
    font-weight: 600;
    margin-top: 30px !important;
    font-size: 1.05rem !important;
}

.about-cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   RESPONSIVE — TABLET (max 1024px)
   ============================================ */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }

    .grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

/* ============================================
   RESPONSIVE — MOBILE (max 768px)
   ============================================ */
@media (max-width: 768px) {
    /* --- Navbar --- */
    .navbar {
        flex-direction: column;
        gap: 15px;
        padding: 12px 15px;
    }

    .navbar .logo-text {
        font-size: 1.2rem;
    }

    .navbar .logo-img {
        width: 34px;
        height: 34px;
    }

    .navbar ul {
        gap: 12px;
        font-size: 0.9rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .navbar .nav-admin {
        padding: 6px 14px !important;
        font-size: 0.8rem;
    }

    /* --- Hero --- */
    .hero {
        padding: 50px 15px;
    }

    .hero h1 {
        font-size: 2rem;
        margin-bottom: 15px;
        -webkit-text-stroke: 1px white;
        text-stroke: 1px white;
        letter-spacing: 1px;
        gap: 10px;
    }

    .hero-logo {
        width: 50px;
        height: 50px;
    }

    .hero-tagline {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }

    .age-counter {
        padding: 20px;
        max-width: 100%;
        margin-bottom: 25px;
    }

    .age-number {
        font-size: 2.5rem;
    }

    .age-number span {
        font-size: 1rem;
    }

    .age-detail {
        font-size: 0.85rem;
    }

    .hero-stats {
        gap: 15px;
        margin-bottom: 25px;
        padding: 12px 18px;
        max-width: calc(100% - 20px);
    }

    .stat {
        min-width: 50px;
    }

    .stat-number {
        width: 44px;
        height: 44px;
        font-size: 1.4rem;
    }

    .stat-label {
        font-size: 0.6rem;
        letter-spacing: 0.5px;
    }

    .hero-actions {
        gap: 10px;
    }

    .hero-actions .btn {
        padding: 10px 22px;
        font-size: 0.9rem;
    }

    /* --- Section --- */
    .section {
        padding: 40px 15px;
    }

    .section-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    /* --- Page Header --- */
    .page-header {
        padding: 40px 15px 20px;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .page-header p {
        font-size: 0.9rem;
    }

    /* --- Grid & Card --- */
    .grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }

    .card-body {
        padding: 10px;
    }

    .card-body h3 {
        font-size: 0.85rem;
    }

    .card-body small {
        font-size: 0.7rem;
    }

    .badge {
        font-size: 0.65rem;
        padding: 3px 8px;
        top: 6px;
        left: 6px;
    }

    /* --- Gallery Grid --- */
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 8px;
        padding: 0 12px 40px;
    }

    .gallery-overlay {
        padding: 12px 8px 8px;
    }

    .gallery-overlay h3 {
        font-size: 0.75rem;
    }

    .gallery-overlay small {
        font-size: 0.65rem;
    }

    /* --- Filter Bar --- */
    .filter-bar {
        padding: 12px;
        gap: 12px;
    }

    .filter-label {
        font-size: 0.75rem;
        width: 100%;
        margin-bottom: 5px;
    }

    .filter-group {
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 5px;
        flex-wrap: nowrap;
        scrollbar-width: none;
    }

    .filter-group::-webkit-scrollbar {
        display: none;
    }

    .filter-chip {
        padding: 6px 14px;
        font-size: 0.8rem;
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* --- Timeline --- */
    .timeline-container {
        padding: 0 15px;
    }

    .timeline-line {
        left: 25px;
    }

    .timeline-item,
    .timeline-item.right {
        padding-left: 65px;
        padding-right: 0;
        justify-content: flex-start;
        margin-bottom: 30px;
    }

    .timeline-dot {
        left: 25px;
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        top: 15px;
    }

    .timeline-card {
        max-width: 100%;
    }

    .timeline-body {
        padding: 15px;
    }

    .timeline-body h3 {
        font-size: 1.05rem;
    }

    .timeline-body p {
        font-size: 0.85rem;
    }

    .timeline-date {
        font-size: 0.75rem;
    }

    .age-tag {
        font-size: 0.7rem;
        padding: 2px 8px;
    }

    /* --- About --- */
    .about-container {
        padding: 0 15px;
    }

    .about-card {
        padding: 35px 20px;
        border-radius: 18px;
    }

    .about-avatar {
        width: 90px;
        height: 90px;
        font-size: 3rem;
    }

    .about-card h2 {
        font-size: 1.8rem;
    }

    .about-subtitle {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .about-info {
        padding: 12px;
    }

    .about-icon {
        font-size: 1.5rem;
    }

    .about-info small {
        font-size: 0.7rem;
    }

    .about-info strong {
        font-size: 0.85rem;
    }

    .about-info-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        gap: 8px;
    }

    .about-stat {
        padding: 18px 8px;
        border-radius: 12px;
    }

    .about-stat-num {
        font-size: 1.6rem;
    }

    .about-stat-lbl {
        font-size: 0.7rem;
    }

    .about-story {
        padding: 25px 18px;
        border-radius: 16px;
    }

    .about-story h3 {
        font-size: 1.15rem;
    }

    .about-story p {
        font-size: 0.9rem;
        line-height: 1.7;
    }

    .about-signature {
        font-size: 0.95rem !important;
        text-align: center;
    }

    /* --- Form / Login --- */
    .login-box,
    .admin-container {
        margin: 30px auto;
        padding: 25px 20px;
        border-radius: 14px;
    }

    .login-box h1,
    .admin-container h1 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    input,
    textarea,
    select {
        padding: 10px;
        font-size: 0.95rem;
    }

    /* --- Login Logo --- */
    .login-logo {
        width: 80px;
        height: 80px;
        margin-bottom: 15px;
    }

    /* --- Back Button --- */
    .back-wrapper {
        margin: 20px 0 15px;
    }

    .btn-back,
    .btn-back-ghost {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    /* --- Admin Topbar --- */
    .admin-topbar {
        padding: 12px 15px;
    }

    .admin-brand {
        font-size: 1.1rem;
    }

    .admin-brand-logo {
        width: 28px;
        height: 28px;
    }

    .admin-greeting {
        display: none;
    }

    .btn-logout {
        padding: 7px 14px;
        font-size: 0.8rem;
    }

    .btn-logout span:last-child {
        display: none;
    }

    /* --- Footer --- */
    footer {
        padding: 20px 15px;
        font-size: 0.8rem;
    }

    /* --- Lightbox --- */
    .lightbox {
        padding: 10px;
    }

    .lightbox-content {
        max-width: 100vw;
        max-height: 100vh;
    }

    #lightboxMedia img,
    #lightboxMedia video {
        max-width: 95vw;
        max-height: 70vh;
        border-radius: 8px;
    }

    .lightbox-caption {
        margin-top: 12px;
        padding: 0 15px;
    }

    .lightbox-caption h3 {
        font-size: 1rem;
    }

    .lightbox-caption p {
        font-size: 0.8rem;
    }

    .lightbox-close,
    .lightbox-prev,
    .lightbox-next {
        width: 44px;
        height: 44px;
    }

    .lightbox-close svg,
    .lightbox-prev svg,
    .lightbox-next svg {
        width: 20px;
        height: 20px;
    }

    .lightbox-close {
        top: 16px;
        right: 16px;
    }

    .lightbox-prev { left: 12px; }
    .lightbox-next { right: 12px; }
}

/* ============================================
   RESPONSIVE — MOBILE KECIL (max 480px)
   ============================================ */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.7rem;
        gap: 8px;
    }

    .hero-logo {
        width: 42px;
        height: 42px;
    }

    .age-number {
        font-size: 2.4rem;
    }

    .hero-stats {
        gap: 15px;
        padding: 12px 15px;
    }

    .stat {
        min-width: 50px;
    }

    .stat-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .stat-label {
        font-size: 0.6rem;
    }

    .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
        padding: 0 8px 30px;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .about-stat {
        padding: 14px 5px;
    }

    .about-stat-num {
        font-size: 1.4rem;
    }

    .about-stat-lbl {
        font-size: 0.6rem;
    }

    .navbar .logo-text {
        font-size: 1.1rem;
    }

    .navbar .logo-img {
        width: 30px;
        height: 30px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}

/* ============================================
   TOUCH-FRIENDLY (HP)
   ============================================ */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .filter-chip,
    .navbar a,
    .btn-back,
    .btn-back-ghost,
    .lightbox-close,
    .lightbox-prev,
    .lightbox-next,
    .password-toggle {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .filter-chip {
        min-height: 36px;
    }

    .manage-item .manage-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(0,0,0,0.6), transparent 60%);
        align-items: flex-end;
        padding-bottom: 10px;
    }

    .btn-delete-media {
        transform: translateY(0);
        background: rgba(231, 76, 60, 0.95);
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================
   SMOOTH PAGE TRANSITION
   ============================================ */
body {
    opacity: 1;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body.loaded {
    opacity: 1;
}

body.page-exit {
    opacity: 0;
}

/* Loading bar di atas */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, var(--pink), var(--sky), var(--pink));
    background-size: 200% 100%;
    z-index: 999999;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease;
    box-shadow: 0 0 12px rgba(244, 166, 184, 0.8);
    animation: loaderShine 2s linear infinite;
    pointer-events: none;
    opacity: 1;
}

@keyframes loaderShine {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}
/* ============================================
   PAGE TITLE WITH LOGO (About, dll)
   ============================================ */
.page-title-with-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.page-title-logo {
    width: 55px;
    height: 55px;
    display: block;
    filter: drop-shadow(0 4px 12px rgba(244, 166, 184, 0.4));
    animation: heroLogoFloat 3s ease-in-out infinite;
}

/* Avatar About — pakai SVG */
.about-avatar-img {
    width: 75%;
    height: 75%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 4px 12px rgba(244, 166, 184, 0.3));
}

/* Mobile */
@media (max-width: 768px) {
    .page-title-logo {
        width: 45px;
        height: 45px;
    }
    
    .page-title-with-logo {
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .page-title-logo {
        width: 38px;
        height: 38px;
    }
}
/* ============================================
   CUSTOM CONFIRM MODAL
   ============================================ */
.confirm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.confirm-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.confirm-modal {
    background: white;
    border-radius: 24px;
    padding: 35px 30px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 8px 24px rgba(244, 166, 184, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.confirm-modal-overlay.active .confirm-modal {
    transform: scale(1) translateY(0);
}

/* Decorative circle background */
.confirm-modal::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(244, 166, 184, 0.15), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Icon */
.confirm-modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    border-radius: 50%;
    position: relative;
    z-index: 1;
    animation: modalIconBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.confirm-modal-icon.danger {
    background: linear-gradient(135deg, #fff5f5, #ffe4e4);
    color: #e74c3c;
    box-shadow: 0 8px 24px rgba(231, 76, 60, 0.2);
}

.confirm-modal-icon.warning {
    background: linear-gradient(135deg, #fff9e6, #fff3cd);
    color: #f39c12;
    box-shadow: 0 8px 24px rgba(243, 156, 18, 0.2);
}

.confirm-modal-icon.info {
    background: linear-gradient(135deg, #e8f4fd, #d4eaf7);
    color: var(--sky);
    box-shadow: 0 8px 24px rgba(168, 216, 234, 0.3);
}

.confirm-modal-icon.success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #27ae60;
    box-shadow: 0 8px 24px rgba(39, 174, 96, 0.2);
}

@keyframes modalIconBounce {
    0% { transform: scale(0) rotate(-180deg); }
    60% { transform: scale(1.15) rotate(10deg); }
    100% { transform: scale(1) rotate(0deg); }
}

/* Title */
.confirm-modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 12px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

/* Message */
.confirm-modal-message {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.confirm-modal-message strong {
    color: var(--pink);
    font-weight: 700;
}

.confirm-modal-detail {
    background: var(--cream);
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 0.85rem;
    color: var(--text);
    margin-bottom: 20px;
    text-align: left;
    border-left: 3px solid var(--pink);
    position: relative;
    z-index: 1;
}

.confirm-modal-detail strong {
    display: block;
    color: var(--pink);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

/* Actions */
.confirm-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.confirm-modal-btn {
    flex: 1;
    padding: 13px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: inherit;
}

.confirm-modal-btn.cancel {
    background: var(--cream);
    color: var(--text);
    border: 2px solid #eee;
}

.confirm-modal-btn.cancel:hover {
    background: #f5ebe0;
    border-color: #ddd;
    transform: translateY(-2px);
}

.confirm-modal-btn.confirm {
    background: #e74c3c;
    color: white;
    box-shadow: 0 6px 16px rgba(231, 76, 60, 0.35);
}

.confirm-modal-btn.confirm:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(231, 76, 60, 0.5);
}

.confirm-modal-btn.confirm:active {
    transform: translateY(0) scale(0.97);
}

/* Confirm button variants */
.confirm-modal-btn.confirm.warning {
    background: #f39c12;
    box-shadow: 0 6px 16px rgba(243, 156, 18, 0.35);
}

.confirm-modal-btn.confirm.warning:hover {
    background: #e67e22;
}

.confirm-modal-btn.confirm.info {
    background: var(--pink);
    box-shadow: 0 6px 16px rgba(244, 166, 184, 0.4);
}

.confirm-modal-btn.confirm.info:hover {
    background: var(--pink-dark);
}

.confirm-modal-btn.confirm.success {
    background: #27ae60;
    box-shadow: 0 6px 16px rgba(39, 174, 96, 0.35);
}

.confirm-modal-btn.confirm.success:hover {
    background: #219a52;
}

/* Mobile */
@media (max-width: 480px) {
    .confirm-modal {
        padding: 30px 22px;
        border-radius: 20px;
    }
    
    .confirm-modal-icon {
        width: 65px;
        height: 65px;
        font-size: 2rem;
    }
    
    .confirm-modal-title {
        font-size: 1.25rem;
    }
    
    .confirm-modal-message {
        font-size: 0.9rem;
    }
    
    .confirm-modal-actions {
        flex-direction: column-reverse;
    }
    
    .confirm-modal-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}
/* ============================================
   LIGHTBOX — BACKGROUND BLUR
   ============================================ */

/* Background blur layer */
.lightbox-bg {
    position: absolute;
    top: -40px;
    left: -40px;
    right: -40px;
    bottom: -40px;
    z-index: 0;
    
    /* Background image di-set via JS */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    /* Blur effect — pakai GPU */
    filter: blur(40px) brightness(0.45) saturate(1.2);
    -webkit-filter: blur(40px) brightness(0.45) saturate(1.2);
    
    /* Hilangkan garis tepi blur */
    transform: scale(1.1);
    
    /* Transisi halus */
    transition: background-image 0.4s ease, opacity 0.4s ease;
    opacity: 0;
}

.lightbox.active .lightbox-bg {
    opacity: 1;
}

/* Overlay gelap di atas blur (biar konten tetap terbaca) */
.lightbox-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at center,
        rgba(0, 0, 0, 0.15) 0%,
        rgba(0, 0, 0, 0.55) 100%
    );
    pointer-events: none;
}

/* Pastikan lightbox-content di atas background */
.lightbox-content {
    position: relative;
    z-index: 2;
}

/* Tombol navigasi di atas background */
.lightbox-close,
.lightbox-prev,
.lightbox-next {
    z-index: 10;
}

/* Update lightbox utama — hapus background hitam */
.lightbox {
    background: rgba(0, 0, 0, 0.9) !important;
}
