/* ════════════════════════════════════════════
   STYLE.CSS — UNDANGAN KHITANAN
   dengan animasi interaktif lengkap
   ════════════════════════════════════════════ */

/* ── ROOT: timing functions ── */
:root {
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-sharp: cubic-bezier(0.16, 1, 0.3, 1);
    --gold: #d4af37;
    --gold-glow: rgba(212, 175, 55, 0.4);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    min-height: 100vh;
    background: #0b1a0e;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 24px 12px;
    font-family: sans-serif;
}
.wrap {
    max-width: 480px;
    width: 100%;
}

/* ══════════════════════════════════════
   SCROLL PROGRESS BAR
   ══════════════════════════════════════ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, #d4af37, #f0d060, #c8982a);
    z-index: 9999;
    transition: width 0.1s linear;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
}

/* ══════════════════════════════════════
   LOGIN PAGE
   ══════════════════════════════════════ */
.login-wrap {
    width: 100%;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    padding: 44px 36px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: fadeUp 0.6s ease both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.logo {
    text-align: center;
    margin-bottom: 32px;
}
.logo-moon {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
}
.logo h1 {
    font-family: "Playfair Display", serif;
    font-size: 22px;
    color: #f0d060;
    font-weight: 600;
}
.logo p {
    font-size: 11px;
    color: rgba(212, 175, 55, 0.5);
    margin-top: 4px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.form-group {
    margin-bottom: 18px;
}
label {
    display: block;
    font-size: 11px;
    color: rgba(212, 175, 55, 0.7);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 6px;
}
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 0.5px solid rgba(212, 175, 55, 0.3);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-family: "Inter", sans-serif;
    outline: none;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}
input:focus {
    border-color: rgba(212, 175, 55, 0.6);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.08);
}

.remember-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}
.remember-row input {
    width: auto;
}
.remember-row label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0;
    text-transform: none;
    margin: 0;
}

.btn-login {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #d4af37, #f0d060, #c8982a);
    color: #1a3a1a;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    font-family: "Inter", sans-serif;
    cursor: pointer;
    letter-spacing: 1px;
    transition:
        transform 0.15s,
        box-shadow 0.15s;
    position: relative;
    overflow: hidden;
}
.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
}
.btn-login:active {
    transform: scale(0.98);
}

.error-msg {
    background: rgba(220, 60, 60, 0.12);
    border: 0.5px solid rgba(220, 60, 60, 0.35);
    border-radius: 8px;
    padding: 10px 14px;
    color: #ff9999;
    font-size: 12px;
    margin-bottom: 18px;
}
.divider-line {
    height: 0.5px;
    background: linear-gradient(
        to right,
        transparent,
        rgba(212, 175, 55, 0.3),
        transparent
    );
    margin: 28px 0 24px;
}
.hint {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.25);
    text-align: center;
}

/* ══════════════════════════════════════
   COVER PAGE
   ══════════════════════════════════════ */
.cover-page {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
    min-height: 680px;
    background: linear-gradient(160deg, #1a472a 0%, #0f2d1a 40%, #0a1f13 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 28px;
}
.cover-page.hidden {
    display: none;
}

/* Floating dot-grid shimmer background */
.cover-page::before,
.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(212, 175, 55, 0.12) 1px, transparent 1px),
        radial-gradient(circle, rgba(212, 175, 55, 0.07) 1px, transparent 1px);
    background-size:
        40px 40px,
        25px 25px;
    background-position:
        0 0,
        12px 12px;
    animation: particleShimmer 8s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
    border-radius: 20px;
}

@keyframes particleShimmer {
    0% {
        opacity: 0.4;
        transform: translateY(0px) scale(1);
    }
    50% {
        opacity: 0.7;
        transform: translateY(-8px) scale(1.01);
    }
    100% {
        opacity: 0.4;
        transform: translateY(4px) scale(0.99);
    }
}

/* Animated gold border glow */
.cv-gb,
.gb {
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 14px;
    pointer-events: none;
    z-index: 2;
    animation: borderPulse 3s ease-in-out infinite;
}
.cv-gb2,
.gb2 {
    position: absolute;
    inset: 13px;
    border: 0.5px solid rgba(212, 175, 55, 0.18);
    border-radius: 12px;
    pointer-events: none;
    z-index: 2;
    animation: borderPulse 3s ease-in-out infinite 0.5s;
}

@keyframes borderPulse {
    0%,
    100% {
        box-shadow: inset 0 0 0px rgba(212, 175, 55, 0);
        opacity: 0.6;
    }
    50% {
        box-shadow: inset 0 0 18px rgba(212, 175, 55, 0.12);
        opacity: 1;
    }
}

.cv-decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
    border-radius: 20px;
}
.cv-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

/* ── Cover staggered entrance ── */
.cv-badge {
    animation: slideDown 0.7s var(--ease-spring) 0.1s both;
}
.cv-dl {
    animation: expandWidth 0.6s var(--ease-smooth) 0.35s both;
}
.cv-salam {
    animation: fadeUp 0.7s var(--ease-sharp) 0.55s both;
}
.cv-label {
    animation: fadeUp 0.6s var(--ease-sharp) 0.65s both;
}
.cv-subtitle {
    animation: fadeUp 0.6s var(--ease-sharp) 0.9s both;
}
.cv-date-row {
    animation: fadeUp 0.7s var(--ease-sharp) 1s both;
}
.cv-hint {
    animation: fadeUp 0.5s var(--ease-smooth) 1.4s both;
}
.cv-bottom-decor {
    animation: fadeUp 0.5s var(--ease-smooth) 1.5s both;
}

.cv-badge {
    background: linear-gradient(135deg, #d4af37, #f0d060, #c8982a);
    color: #1a3a1a;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    padding: 6px 22px;
    border-radius: 20px;
    margin-bottom: 22px;
    position: relative;
    overflow: hidden;
}
/* Badge shimmer */
.cv-badge::after,
.badge::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transform: translateX(-100%);
    animation: badgeShimmer 3.5s ease-in-out 1s infinite;
}
@keyframes badgeShimmer {
    0%,
    70%,
    100% {
        transform: translateX(-100%);
    }
    35% {
        transform: translateX(100%);
    }
}

/* Moon — bounce in then float forever */
.cv-moon {
    font-size: 36px;
    margin-bottom: 6px;
    color: #fff;
    line-height: 1;
    display: inline-block;
    animation:
        zoomBounce 0.8s var(--ease-spring) 0.25s both,
        floatMoon 4s ease-in-out 1.5s infinite;
}
@keyframes floatMoon {
    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-6px) rotate(3deg);
    }
    66% {
        transform: translateY(-3px) rotate(-2deg);
    }
}

.cv-dl {
    width: 80px;
    height: 0.5px;
    background: linear-gradient(
        to right,
        transparent,
        rgba(212, 175, 55, 0.6),
        transparent
    );
    margin: 8px auto;
}

/* Arabic — float + glow on hover */
.cv-arabic {
    font-family: "Amiri", serif;
    font-size: 22px;
    color: #d4af37;
    margin: 14px 0 6px;
    line-height: 1.6;
    animation:
        fadeUp 0.7s var(--ease-sharp) 0.45s both,
        textFloat 6s ease-in-out 2s infinite;
    transition: text-shadow 0.5s ease;
}
.cv-arabic:hover {
    text-shadow:
        0 0 20px rgba(212, 175, 55, 0.5),
        0 0 40px rgba(212, 175, 55, 0.2);
}

.cv-salam {
    font-size: 10.5px;
    color: rgba(212, 175, 55, 0.7);
    font-style: italic;
    margin-bottom: 22px;
    line-height: 1.7;
}
.cv-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

/* Gold shimmer text */
.cv-title {
    font-family: "Playfair Display", serif;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 4px;
    background: linear-gradient(
        90deg,
        #c8982a 0%,
        #f0d060 30%,
        #d4af37 50%,
        #f0d060 70%,
        #c8982a 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation:
        titleReveal 0.9s var(--ease-spring) 0.75s both,
        goldShimmer 4s linear 2s infinite;
}

.cv-subtitle {
    font-family: "Playfair Display", serif;
    font-size: 13px;
    color: rgba(212, 175, 55, 0.75);
    font-style: italic;
    margin-bottom: 24px;
}
.cv-date-row {
    display: flex;
    gap: 14px;
    margin-bottom: 28px;
    justify-content: center;
}

/* Date boxes — stagger + hover tilt */
.cv-date-box {
    background: rgba(255, 255, 255, 0.05);
    border: 0.5px solid rgba(212, 175, 55, 0.25);
    border-radius: 12px;
    padding: 12px 18px;
    text-align: center;
    transition:
        transform 0.3s var(--ease-spring),
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}
.cv-date-box:nth-child(1) {
    animation: fadeUp 0.6s var(--ease-spring) 1.05s both;
}
.cv-date-box:nth-child(2) {
    animation: fadeUp 0.6s var(--ease-spring) 1.15s both;
}
.cv-date-box:nth-child(3) {
    animation: fadeUp 0.6s var(--ease-spring) 1.25s both;
}
.cv-date-box:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.5);
}

.cv-date-ico {
    font-size: 16px;
    margin-bottom: 4px;
    color: #fff;
    display: block;
    transition: transform 0.4s var(--ease-spring);
}
.cv-date-box:hover .cv-date-ico {
    transform: scale(1.4) rotate(10deg);
}
.cv-date-lbl {
    font-size: 8px;
    color: rgba(212, 175, 55, 0.55);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 2px;
}
.cv-date-val {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    line-height: 1.5;
}

/* Open button — shimmer sweep + ripple */
.cv-open-btn {
    background: linear-gradient(135deg, #d4af37, #f0d060, #c8982a);
    color: #1a3a1a;
    border: none;
    border-radius: 30px;
    padding: 13px 36px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
    position: relative;
    overflow: hidden;
    animation: btnEntrance 0.8s var(--ease-spring) 1.2s both;
    transition:
        transform 0.2s var(--ease-spring),
        box-shadow 0.2s ease;

    outline: none;
    -webkit-tap-highlight-color: transparent; /* hilangkan highlight biru di mobile */
}
.cv-open-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.35),
        transparent
    );
    transform: translateX(-100%);
    animation: shimmerBtn 2.5s ease-in-out 2s infinite;
}
.cv-open-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 28px rgba(212, 175, 55, 0.45);
}
.cv-open-btn:active {
    transform: scale(0.95);
}
@keyframes shimmerBtn {
    0% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.cv-hint {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 12px;
    letter-spacing: 0.5px;
}
.cv-bottom-decor {
    display: flex;
    justify-content: center;
    gap: 6px;
    align-items: center;
    margin-top: 24px;
}
.cv-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.35);
    animation: dotPulse 2.5s ease-in-out infinite;
}
.cv-dot.b {
    width: 5px;
    height: 5px;
    background: rgba(212, 175, 55, 0.55);
}
.cv-dot:nth-child(1) {
    animation-delay: 0s;
}
.cv-dot:nth-child(2) {
    animation-delay: 0.2s;
}
.cv-dot:nth-child(3) {
    animation-delay: 0.4s;
}
.cv-dot:nth-child(4) {
    animation-delay: 0.6s;
}
.cv-dot:nth-child(5) {
    animation-delay: 0.8s;
}

/* ══════════════════════════════════════
   INVITATION CARD
   ══════════════════════════════════════ */
.card {
    background: linear-gradient(160deg, #1a472a 0%, #0f2d1a 40%, #0a1f13 100%);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
    display: none;
}
.card.visible {
    display: block;
    animation: cardReveal 0.7s var(--ease-sharp) both;
}
@keyframes cardReveal {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.97);
        filter: blur(2px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0px);
    }
}

.bg-decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
    border-radius: 20px;
}
.top-badge {
    display: flex;
    justify-content: center;
    padding: 28px 0 0;
    position: relative;
    z-index: 3;
}

/* Badge — shimmer */
.badge {
    background: linear-gradient(135deg, #d4af37, #f0d060, #c8982a);
    color: #1a3a1a;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    padding: 6px 22px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    animation: slideDown 0.6s var(--ease-spring) 0.1s both;
}

.crescent-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 14px 0 10px;
    animation: fadeUp 0.5s var(--ease-smooth) 0.25s both;
    position: relative;
}
/* Sparkle on crescent */
.crescent-row span {
    position: relative;
}
.crescent-row span::after {
    content: "✨";
    position: absolute;
    top: -8px;
    right: -12px;
    font-size: 10px;
    opacity: 0;
    animation: sparkle 3s ease-in-out 2s infinite;
}
@keyframes sparkle {
    0%,
    100% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }
    30% {
        opacity: 1;
        transform: scale(1.2) rotate(20deg);
    }
    60% {
        opacity: 0.5;
        transform: scale(0.8) rotate(-10deg);
    }
}

.dl {
    width: 55px;
    height: 0.5px;
    background: linear-gradient(
        to right,
        transparent,
        rgba(212, 175, 55, 0.6),
        transparent
    );
}
.content {
    padding: 4px 28px 30px;
    position: relative;
    z-index: 3;
    text-align: center;
}

/* Arabic — float + glow */
.arabic {
    font-family: "Amiri", serif;
    font-size: 21px;
    color: #d4af37;
    margin: 0 0 12px;
    line-height: 1.6;
    animation:
        fadeUp 0.7s var(--ease-sharp) 0.35s both,
        textFloat 6s ease-in-out 2s infinite;
    transition: text-shadow 0.5s ease;
}
.arabic:hover {
    text-shadow:
        0 0 20px rgba(212, 175, 55, 0.5),
        0 0 40px rgba(212, 175, 55, 0.2);
}
@keyframes textFloat {
    0%,
    100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-4px);
    }
}

.salam {
    font-size: 10.5px;
    color: rgba(212, 175, 55, 0.7);
    font-style: italic;
    margin-bottom: 12px;
    line-height: 1.7;
    animation: fadeUp 0.6s var(--ease-sharp) 0.45s both;
}
.intro {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.8;
    margin-bottom: 18px;
    animation: fadeUp 0.6s var(--ease-sharp) 0.55s both;
}

/* ── Profile section ── */
.profile-section {
    margin-bottom: 16px;
}
.profile-img-wrap {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    margin: 0 auto 10px;
    border: 2px solid rgba(212, 175, 55, 0.5);
    background: rgba(212, 175, 55, 0.07);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        box-shadow 0.4s ease,
        border-color 0.4s ease;
    animation: profilePop 1s var(--ease-spring) 0.65s both;
}
@keyframes profilePop {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(-5deg);
        box-shadow: 0 0 0 rgba(212, 175, 55, 0);
    }
    60% {
        transform: scale(1.08) rotate(2deg);
    }
    80% {
        transform: scale(0.96) rotate(-1deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
        box-shadow: 0 0 28px rgba(212, 175, 55, 0.2);
    }
}
.profile-img-wrap:hover {
    box-shadow:
        0 0 32px rgba(212, 175, 55, 0.35),
        0 0 8px rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.8);
}
.profile-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    position: absolute;
    inset: 0;
    transition: transform 0.5s var(--ease-spring);
}
.profile-img-wrap:hover img {
    transform: scale(1.06);
}
.profile-placeholder {
    text-align: center;
    color: rgba(212, 175, 55, 0.45);
}
.profile-placeholder svg {
    width: 30px;
    height: 30px;
    display: block;
    margin: 0 auto 5px;
}
.profile-placeholder span {
    font-size: 9px;
}
.profile-actions {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 10px;
}
.btn-upload,
.btn-change,
.btn-remove {
    font-size: 10px;
    padding: 5px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 700;
    transition:
        transform 0.2s var(--ease-spring),
        box-shadow 0.2s ease;
}
.btn-upload {
    border: none;
    background: linear-gradient(135deg, #d4af37, #f0d060);
    color: #1a3a1a;
}
.btn-upload:hover {
    transform: scale(1.07);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.35);
}
.btn-change {
    font-weight: 600;
    background: rgba(212, 175, 55, 0.14);
    color: #d4af37;
    border: 0.5px solid rgba(212, 175, 55, 0.4);
    display: none;
}
.btn-change:hover {
    transform: scale(1.07);
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.2);
}
.btn-remove {
    font-weight: 600;
    background: rgba(255, 80, 80, 0.12);
    color: #ff8888;
    border: 0.5px solid rgba(255, 80, 80, 0.3);
    display: none;
}
.btn-remove:hover {
    transform: scale(1.07);
    box-shadow: 0 4px 14px rgba(255, 100, 100, 0.25);
}
.btn-upload:active,
.btn-change:active,
.btn-remove:active {
    transform: scale(0.93);
}

/* Gold shimmer child name */
.child-name {
    font-family: "Playfair Display", serif;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 4px;
    line-height: 1.2;
    background: linear-gradient(
        90deg,
        #c8982a 0%,
        #f0d060 30%,
        #d4af37 50%,
        #f0d060 70%,
        #c8982a 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation:
        titleReveal 0.9s var(--ease-spring) 0.8s both,
        goldShimmer 4s linear 2s infinite;
}
.parent-lbl {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.45);
    margin: 6px 0 3px;
    animation: fadeUp 0.5s var(--ease-smooth) 0.95s both;
}
.parent-name {
    font-family: "Playfair Display", serif;
    font-size: 14px;
    color: rgba(212, 175, 55, 0.85);
    font-style: italic;
    animation: fadeUp 0.5s var(--ease-smooth) 1.05s both;
}

/* ── Divider ── */
.divider {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 16px 0;
}
.gl {
    flex: 1;
    height: 0.5px;
    background: linear-gradient(to right, transparent, rgba(212, 175, 55, 0.5));
}
.gl.r {
    background: linear-gradient(to left, transparent, rgba(212, 175, 55, 0.5));
}
.diamond {
    width: 5px;
    height: 5px;
    background: #d4af37;
    transform: rotate(45deg);
    opacity: 0.7;
}
.diamond.d {
    opacity: 0.3;
}

/* Divider scroll reveal */
.divider.revealed .gl {
    animation: expandLine 0.8s var(--ease-smooth) both;
}
.divider.revealed .gl.r {
    animation: expandLineR 0.8s var(--ease-smooth) both;
}
.divider.revealed .diamond {
    animation: diamondPop 0.5s var(--ease-spring) 0.3s both;
}
.divider.revealed .diamond.d {
    animation: diamondPop 0.5s var(--ease-spring) 0.4s both;
}
@keyframes expandLine {
    from {
        transform: scaleX(0);
        transform-origin: left;
    }
    to {
        transform: scaleX(1);
        transform-origin: left;
    }
}
@keyframes expandLineR {
    from {
        transform: scaleX(0);
        transform-origin: right;
    }
    to {
        transform: scaleX(1);
        transform-origin: right;
    }
}
@keyframes diamondPop {
    from {
        opacity: 0;
        transform: rotate(45deg) scale(0);
    }
    to {
        opacity: 0.7;
        transform: rotate(45deg) scale(1);
    }
}

/* ── Info grid ── */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin-bottom: 12px;
}
.info-box {
    background: rgba(255, 255, 255, 0.04);
    border: 0.5px solid rgba(212, 175, 55, 0.2);
    border-radius: 10px;
    padding: 13px 11px;
    cursor: default;
    transition:
        transform 0.3s var(--ease-spring),
        box-shadow 0.3s ease,
        border-color 0.3s ease,
        background 0.3s ease;
    /* 3D perspective for tilt */
    transform-style: preserve-3d;
}
.info-box.full {
    grid-column: 1/-1;
}
.info-box:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 10px 28px rgba(212, 175, 55, 0.15);
    border-color: rgba(212, 175, 55, 0.45);
    background: rgba(212, 175, 55, 0.07);
}
.info-ico {
    font-size: 15px;
    margin-bottom: 5px;
    color: #fff;
    display: block;
    transition: transform 0.4s var(--ease-spring);
}
.info-box:hover .info-ico {
    transform: scale(1.4) rotate(10deg);
}
.info-lbl {
    font-size: 8px;
    color: rgba(212, 175, 55, 0.6);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 3px;
}
.info-val {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 500;
    line-height: 1.5;
}

/* ── Invite box ── */
.invite-box {
    background: rgba(255, 255, 255, 0.04);
    border: 0.5px solid rgba(212, 175, 55, 0.2);
    border-radius: 10px;
    padding: 13px;
    margin-bottom: 12px;
    text-align: left;
    transition:
        transform 0.3s var(--ease-spring),
        box-shadow 0.3s ease;
}
.invite-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.12);
}
.invite-ttl {
    font-size: 9px;
    color: rgba(212, 175, 55, 0.65);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
    text-align: center;
}
.inv-person {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.06);
    cursor: default;
}
.inv-person:last-child {
    border-bottom: none;
}
.ava {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.14);
    border: 0.5px solid rgba(212, 175, 55, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: #d4af37;
    flex-shrink: 0;
    transition:
        transform 0.3s var(--ease-spring),
        box-shadow 0.3s ease,
        background 0.3s ease;
}
.inv-person:hover .ava {
    transform: scale(1.2) rotate(5deg);
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.3);
    background: rgba(212, 175, 55, 0.25);
}
.pname {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    transition: color 0.3s ease;
}
.inv-person:hover .pname {
    color: #f0d060;
}
.ptitle {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 1px;
}

/* ── Gallery ── */
.gallery-ttl {
    font-size: 9px;
    color: rgba(212, 175, 55, 0.65);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
    position: relative;
    display: inline-block;
}
/* Underline reveal on scroll */
.gallery-ttl::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0%;
    height: 0.5px;
    background: var(--gold);
    transition: width 0.5s var(--ease-smooth);
}
.gallery-ttl.revealed::after {
    width: 100%;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 12px;
}
/* Gallery stagger on scroll reveal */
.gallery-grid.revealed .g-slot:nth-child(1) {
    animation: fadeUp 0.5s var(--ease-spring) 0.05s both;
}
.gallery-grid.revealed .g-slot:nth-child(2) {
    animation: fadeUp 0.5s var(--ease-spring) 0.12s both;
}
.gallery-grid.revealed .g-slot:nth-child(3) {
    animation: fadeUp 0.5s var(--ease-spring) 0.19s both;
}
.gallery-grid.revealed .g-slot:nth-child(4) {
    animation: fadeUp 0.5s var(--ease-spring) 0.26s both;
}
.gallery-grid.revealed .g-slot:nth-child(5) {
    animation: fadeUp 0.5s var(--ease-spring) 0.33s both;
}
.gallery-grid.revealed .g-slot:nth-child(6) {
    animation: fadeUp 0.5s var(--ease-spring) 0.4s both;
}

.gallery-grid-keluarga {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1px;
    margin-bottom: 12px;
}
.gallery-grid-keluarga.revealed .g-slot {
    animation: fadeUp 0.6s var(--ease-spring) 0.1s both;
}

.g-slot {
    aspect-ratio: 1;
    border-radius: 9px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    border: 0.5px solid rgba(212, 175, 55, 0.2);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        transform 0.35s var(--ease-spring),
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}
.g-slot:hover {
    transform: scale(1.06) translateY(-3px);
    box-shadow: 0 10px 28px rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.5);
    z-index: 2;
}
.g-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    position: absolute;
    inset: 0;
}
.g-ph {
    text-align: center;
    color: rgba(212, 175, 55, 0.3);
    cursor: pointer;
    padding: 8px;
}
.g-ph svg {
    width: 22px;
    height: 22px;
    display: block;
    margin: 0 auto;
}
.g-ph span {
    font-size: 8px;
    display: block;
    margin-top: 4px;
}
.g-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.g-slot:hover .g-overlay.visible {
    display: flex;
    opacity: 1;
}
.g-btn {
    font-size: 9px;
    padding: 4px 12px;
    border-radius: 10px;
    cursor: pointer;
    border: none;
    font-weight: 700;
    width: 68px;
    transition: transform 0.2s var(--ease-spring);
}
.g-btn:hover {
    transform: scale(1.1);
}
.g-btn.change {
    background: rgba(212, 175, 55, 0.9);
    color: #1a3a1a;
}
.g-btn.remove {
    background: rgba(220, 60, 60, 0.85);
    color: #fff;
}

/* ── Doa & Footer ── */
.doa {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.8;
    margin: 0 0 20px;
    font-style: italic;
}
.footer {
    border-top: 0.5px solid rgba(212, 175, 55, 0.2);
    padding-top: 16px;
    transition: border-color 0.3s ease;
}
.footer:hover {
    border-color: rgba(212, 175, 55, 0.35);
}
.wassalam {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.45);
    font-style: italic;
    margin-bottom: 9px;
    transition: color 0.3s ease;
}
.footer:hover .wassalam {
    color: rgba(212, 175, 55, 0.65);
}
.klbl {
    font-size: 9px;
    color: rgba(212, 175, 55, 0.5);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 3px;
}
.kname {
    font-family: "Playfair Display", serif;
    font-size: 14px;
    color: rgba(212, 175, 55, 0.85);
    font-style: italic;
    position: relative;
    display: inline-block;
}
.kname::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0.5px;
    background: rgba(212, 175, 55, 0.5);
    transition: width 0.5s var(--ease-smooth);
}
.kname:hover::after {
    width: 100%;
}

/* Dots — pulse */
.dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    align-items: center;
    padding: 13px 0 3px;
}
.dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.4);
    animation: dotPulse 2.5s ease-in-out infinite;
}
.dot.b {
    width: 5px;
    height: 5px;
    background: rgba(212, 175, 55, 0.6);
}
.dot:nth-child(1) {
    animation-delay: 0s;
}
.dot:nth-child(2) {
    animation-delay: 0.2s;
}
.dot:nth-child(3) {
    animation-delay: 0.4s;
}
.dot:nth-child(4) {
    animation-delay: 0.6s;
}
.dot:nth-child(5) {
    animation-delay: 0.8s;
}

/* ══════════════════════════════════════
   SCROLL REVEAL CLASSES
   ══════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition:
        opacity 0.7s var(--ease-sharp),
        transform 0.7s var(--ease-sharp);
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}
.reveal-d1 {
    transition-delay: 0.1s;
}
.reveal-d2 {
    transition-delay: 0.2s;
}
.reveal-d3 {
    transition-delay: 0.3s;
}
.reveal-d4 {
    transition-delay: 0.4s;
}
.reveal-d5 {
    transition-delay: 0.5s;
}
.reveal-d6 {
    transition-delay: 0.6s;
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.88) translateY(20px);
    transition:
        opacity 0.7s var(--ease-spring),
        transform 0.7s var(--ease-spring);
}
.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1) translateY(0);
}
.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition:
        opacity 0.65s var(--ease-sharp),
        transform 0.65s var(--ease-sharp);
}
.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition:
        opacity 0.65s var(--ease-sharp),
        transform 0.65s var(--ease-sharp);
}
.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* ══════════════════════════════════════
   PHOTO PREVIEW MODAL
   ══════════════════════════════════════ */
.preview-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    transition: opacity 0.3s ease;
}
.preview-modal.open {
    display: flex;
    animation: modalIn 0.35s var(--ease-spring) both;
}
@keyframes modalIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
.preview-modal img {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 14px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    object-fit: contain;
}
.preview-modal.open img {
    animation: imgPop 0.4s var(--ease-spring) both;
}
@keyframes imgPop {
    from {
        transform: scale(0.8) translateY(20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}
.preview-close {
    background: rgba(212, 175, 55, 0.15);
    border: 0.5px solid rgba(212, 175, 55, 0.4);
    color: #d4af37;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 9px 28px;
    border-radius: 30px;
    cursor: pointer;
    transition:
        background 0.2s ease,
        transform 0.2s var(--ease-spring);
}
.preview-close:hover {
    background: rgba(212, 175, 55, 0.25);
    transform: scale(1.05);
}
.profile-img-wrap.has-photo {
    cursor: zoom-in;
}

/* ══════════════════════════════════════
   CORE KEYFRAMES
   ══════════════════════════════════════ */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes zoomBounce {
    from {
        opacity: 0;
        transform: scale(0.4) rotate(-10deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}
@keyframes expandWidth {
    from {
        opacity: 0;
        transform: scaleX(0);
    }
    to {
        opacity: 1;
        transform: scaleX(1);
    }
}
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes titleReveal {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.94);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
@keyframes btnEntrance {
    from {
        opacity: 0;
        transform: scale(0.75) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}
@keyframes goldShimmer {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}
@keyframes dotPulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.8);
        opacity: 1;
    }
}

/* ══════════════════════════════════════
   COVER PAGE TRANSITION
   ══════════════════════════════════════ */
.cover-page.closing {
    animation: coverOut 0.42s var(--ease-smooth) forwards;
}
@keyframes coverOut {
    0% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0px);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.02);
        filter: blur(1px);
    }
    100% {
        opacity: 0;
        transform: scale(0.95);
        filter: blur(4px);
    }
}

/* ══════════════════════════════════════
   REDUCED MOTION
   ══════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ══════════════════════════════════════
               RSVP SECTION
               ══════════════════════════════════════ */
.rsvp-section {
    margin-top: 8px;
}

.rsvp-box {
    background: rgba(255, 255, 255, 0.03);
    border: 0.5px solid rgba(212, 175, 55, 0.22);
    border-radius: 14px;
    padding: 22px 20px;
    margin-bottom: 14px;
}

.rsvp-title {
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(212, 175, 55, 0.65);
    text-align: center;
    margin-bottom: 16px;
}

.rsvp-form-group {
    margin-bottom: 13px;
}

.rsvp-label {
    display: block;
    font-size: 9px;
    color: rgba(212, 175, 55, 0.55);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.rsvp-input {
    width: 100%;
    padding: 10px 13px;
    background: rgba(255, 255, 255, 0.05);
    border: 0.5px solid rgba(212, 175, 55, 0.22);
    border-radius: 9px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-family: "Playfair Display", serif;
    outline: none;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}

.rsvp-input:focus {
    border-color: rgba(212, 175, 55, 0.55);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.07);
}

textarea.rsvp-input {
    min-height: 80px;
    resize: vertical;
}

/* Radio attendance */
.attendance-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.att-option {
    position: relative;
}

.att-option input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.att-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 9px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.04);
    border: 0.5px solid rgba(212, 175, 55, 0.2);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
    transition:
        background 0.2s,
        border-color 0.2s,
        color 0.2s;
    user-select: none;
}

.att-option input:checked + .att-label {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.5);
    color: #f0d060;
}

.att-label:hover {
    border-color: rgba(212, 175, 55, 0.4);
}

/* Guest count toggle */
#guest_count_wrap {
    transition:
        opacity 0.3s,
        max-height 0.3s;
    overflow: hidden;
}

/* Submit */
.rsvp-submit {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #d4af37, #f0d060, #c8982a);
    color: #1a3a1a;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    font-family: "Playfair Display", serif;
    letter-spacing: 1px;
    cursor: pointer;
    transition:
        transform 0.15s,
        box-shadow 0.15s;
    position: relative;
    overflow: hidden;
}

.rsvp-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
}

.rsvp-submit:active {
    transform: scale(0.97);
}

/* Flash messages */
.rsvp-flash {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 12px;
    margin-bottom: 14px;
    text-align: center;
    line-height: 1.6;
}

.rsvp-flash.success {
    background: rgba(40, 180, 80, 0.12);
    border: 0.5px solid rgba(40, 180, 80, 0.3);
    color: #7dffaa;
}

.rsvp-flash.error {
    background: rgba(220, 60, 60, 0.1);
    border: 0.5px solid rgba(220, 60, 60, 0.3);
    color: #ff9999;
}

/* RSVP list (tamu lain yang sudah RSVP) */
.rsvp-list-title {
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(212, 175, 55, 0.55);
    margin-bottom: 10px;
}

.rsvp-entry {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.05);
}

.rsvp-entry:last-child {
    border-bottom: none;
}

.rsvp-ava {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    flex-shrink: 0;
    background: rgba(212, 175, 55, 0.12);
    border: 0.5px solid rgba(212, 175, 55, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: #d4af37;
}

.rsvp-name {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}

.rsvp-att {
    font-size: 10px;
    margin-top: 1px;
}

.rsvp-att.h {
    color: #7dffaa;
}

.rsvp-att.t {
    color: #ff8888;
}

.rsvp-msg {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
    margin-top: 2px;
}

.rsvp-time {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.2);
    margin-left: auto;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Stats mini */
.rsvp-stats {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.rsvp-stat {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 0.5px solid rgba(212, 175, 55, 0.15);
    border-radius: 9px;
    padding: 10px 8px;
    text-align: center;
}

.rsvp-stat-val {
    font-size: 20px;
    font-weight: 700;
    color: #f0d060;
    font-family: "Playfair Display", serif;
}

.rsvp-stat-lbl {
    font-size: 8px;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

.field-error {
    font-size: 10px;
    color: #ff8888;
    margin-top: 4px;
}

/* Number input */
input[type="number"].rsvp-input::-webkit-inner-spin-button {
    opacity: 0.5;
}
