/* ============================================
   Nikkah Invitation — Gold & White Islamic Theme
   Mobile-first responsive design
   ============================================ */

:root {
    --gold: #C9A84C;
    --gold-light: #E8D5A3;
    --gold-dark: #9A7B2F;
    --gold-shimmer: #F0E6C8;
    --white: #FFFFFF;
    --cream: #FAFAFA;
    --ivory: #F8F8F8;
    --text-dark: #2C2416;
    --text-muted: #6B5E4F;
    --shadow-gold: rgba(201, 168, 76, 0.25);
    --shadow-soft: rgba(44, 36, 22, 0.08);
    --font-display: 'Italiana', Georgia, serif;
    --font-body: 'Libre Baskerville', Georgia, serif;
    --font-elegant: 'Josefin Sans', 'Helvetica Neue', sans-serif;
    --font-script: 'Pinyon Script', cursive;
    --font-arabic: 'Amiri', 'Traditional Arabic', serif;
    --radius: 12px;
    --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.65;
    color: var(--text-dark);
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.page-landing,
body.page-invite {
    background: var(--white);
}

/* ---- Parallax Scene ---- */
.parallax-scene {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.parallax-layer {
    position: absolute;
    inset: -20%;
    will-change: transform;
}

.layer-stars {
    background:
        radial-gradient(1px 1px at 10% 20%, var(--gold-light) 50%, transparent 50%),
        radial-gradient(1px 1px at 30% 60%, var(--gold) 50%, transparent 50%),
        radial-gradient(1.5px 1.5px at 50% 10%, var(--gold-light) 50%, transparent 50%),
        radial-gradient(1px 1px at 70% 40%, var(--gold) 50%, transparent 50%),
        radial-gradient(1px 1px at 90% 80%, var(--gold-light) 50%, transparent 50%),
        radial-gradient(1.5px 1.5px at 15% 85%, var(--gold) 50%, transparent 50%),
        radial-gradient(1px 1px at 85% 15%, var(--gold-light) 50%, transparent 50%);
    opacity: 0.2;
    animation: twinkle 4s ease-in-out infinite alternate;
}

@keyframes twinkle {
    0% { opacity: 0.15; }
    100% { opacity: 0.28; }
}

.layer-gold-dust {
    background: radial-gradient(ellipse at 50% 0%, rgba(201, 168, 76, 0.04) 0%, transparent 60%);
}

.layer-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C9A84C' fill-opacity='0.025'%3E%3Cpath d='M30 0l5 10-5 10-5-10zM0 30l10 5-10 5-5-10zM60 30l-10 5 10 5 5-10zM30 60l-5-10 5-10 5 10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.layer-arches {
    background-image: url("data:image/svg+xml,%3Csvg width='200' height='200' viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M100 20 Q130 20 130 60 L130 100 Q130 120 100 120 Q70 120 70 100 L70 60 Q70 20 100 20Z' fill='none' stroke='%23C9A84C' stroke-width='0.5' opacity='0.12'/%3E%3C/svg%3E");
    background-size: 180px 180px;
    opacity: 0.2;
}

.layer-crescents {
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath d='M48 12 A22 22 0 1 0 48 56 A16 16 0 1 1 48 12Z' fill='%23C9A84C' fill-opacity='0.04'/%3E%3C/svg%3E") 8% 18% / 60px no-repeat,
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath d='M48 12 A22 22 0 1 0 48 56 A16 16 0 1 1 48 12Z' fill='%23C9A84C' fill-opacity='0.03'/%3E%3C/svg%3E") 88% 32% / 45px no-repeat;
    opacity: 0.6;
}

.layer-mosque-far {
    bottom: 0;
    top: auto;
    height: 28vh;
    inset: auto 0 8%;
    opacity: 0.15;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 200' preserveAspectRatio='xMidYMax meet'%3E%3Cpath d='M350 200 L350 90 L340 90 L400 30 L460 90 L450 90 L450 200 Z' fill='%23C9A84C' fill-opacity='0.06'/%3E%3Ccircle cx='400' cy='55' r='14' fill='%23C9A84C' fill-opacity='0.08'/%3E%3Cpath d='M280 200 L280 120 L270 120 L300 85 L300 200 Z' fill='%23C9A84C' fill-opacity='0.05'/%3E%3Cpath d='M520 200 L520 120 L510 120 L540 85 L540 200 Z' fill='%23C9A84C' fill-opacity='0.05'/%3E%3Crect x='395' y='10' width='10' height='25' fill='%23C9A84C' fill-opacity='0.07'/%3E%3C/svg%3E") center bottom / 90% auto no-repeat;
}

.layer-mosque {
    bottom: 0;
    top: auto;
    height: 38vh;
    inset: auto 0 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320' preserveAspectRatio='none'%3E%3Cpath fill='%23C9A84C' fill-opacity='0.05' d='M0,320 L0,200 Q180,120 360,180 Q540,80 720,160 Q900,60 1080,140 Q1260,100 1440,180 L1440,320 Z'/%3E%3C/svg%3E") bottom center / 100% 100% no-repeat;
}

.layer-mosque-detail {
    bottom: 0;
    top: auto;
    height: 42vh;
    inset: auto 0 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 220' preserveAspectRatio='xMidYMax meet'%3E%3Cpath d='M260 220 L260 100 L250 100 L300 40 L350 100 L340 100 L340 220 Z' fill='%23C9A84C' fill-opacity='0.06'/%3E%3Ccircle cx='300' cy='65' r='18' fill='%23C9A84C' fill-opacity='0.08'/%3E%3Crect x='296' y='18' width='8' height='30' rx='2' fill='%23C9A84C' fill-opacity='0.07'/%3E%3Cpath d='M200 220 L200 140 L192 140 L215 115 L215 220 Z' fill='%23C9A84C' fill-opacity='0.05'/%3E%3Cpath d='M400 220 L400 140 L392 140 L415 115 L415 220 Z' fill='%23C9A84C' fill-opacity='0.05'/%3E%3Cellipse cx='300' cy='210' rx='220' ry='12' fill='%23C9A84C' fill-opacity='0.04'/%3E%3C/svg%3E") center bottom / min(100%, 520px) auto no-repeat;
    opacity: 0.5;
}

/* Floating scroll ornaments */
.floating-decor {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.float-ornament {
    position: absolute;
    color: var(--gold);
    opacity: 0.1;
    font-size: 1.4rem;
    will-change: transform;
}

.float-1 { top: 18%; left: 8%; font-size: 1rem; }
.float-2 { top: 42%; right: 6%; font-size: 1.8rem; opacity: 0.07; }
.float-3 { top: 68%; left: 12%; font-size: 1.2rem; }
.float-4 { top: 85%; right: 14%; font-size: 0.9rem; opacity: 0.08; }

.page-wrapper {
    position: relative;
    z-index: 1;
}

/* ---- Arabic Text ---- */
.arabic-text {
    font-family: var(--font-arabic);
    direction: rtl;
}

/* ---- Hero Section ---- */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1.5rem 6rem;
    position: relative;
}

.hero-ornament {
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin-bottom: 2rem;
    position: relative;
}

.hero-ornament::before,
.hero-ornament::after {
    content: '✦';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold);
    font-size: 0.75rem;
}

.hero-ornament::before { left: -1rem; }
.hero-ornament::after { right: -1rem; }

.bismillah {
    margin-bottom: 1.5rem;
}

.bismillah-text {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    color: var(--gold-dark);
    line-height: 1.8;
    letter-spacing: 0.02em;
    animation: fadeInDown 1.2s ease-out;
}

.bismillah-translation {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 0.5rem;
    letter-spacing: 0.06em;
}

.bismillah-small {
    font-size: clamp(1.1rem, 3.5vw, 1.5rem);
    color: var(--gold-dark);
    margin-bottom: 1.5rem;
}

.hero-divider {
    margin: 1.5rem 0;
}

.divider-star {
    color: var(--gold);
    font-size: 1.2rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

.hero-subtitle {
    font-family: var(--font-elegant);
    font-size: clamp(0.75rem, 2.2vw, 0.85rem);
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 300;
}

.invitation-intro {
    font-family: var(--font-body);
    font-size: clamp(1.05rem, 3.5vw, 1.2rem);
    letter-spacing: 0.01em;
    text-transform: none;
    color: var(--text-muted);
    margin: 0 auto 0.85rem;
    max-width: 480px;
    line-height: 1.7;
    font-weight: 400;
    font-style: italic;
}

.hero-content {
    width: 100%;
    max-width: 640px;
}

/* ---- Couple showcase (hero focus) ---- */
.couple-showcase {
    margin: 0.75rem 0 0;
    padding: 1.25rem 0 1rem;
    position: relative;
}

.couple-showcase::before,
.couple-showcase::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: min(90%, 420px);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.2), transparent);
}

.couple-showcase::before { top: 0; }
.couple-showcase::after { bottom: 0; }

.nikkah-of-label {
    font-family: var(--font-elegant);
    font-size: clamp(0.7rem, 2vw, 0.8rem);
    letter-spacing: 0.38em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    font-weight: 300;
}

.text-shimmer {
    font-family: var(--font-display);
    font-weight: 400;
    background: linear-gradient(135deg, #8A6820, var(--gold-dark), var(--gold), var(--gold-light), var(--gold-dark));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    -webkit-text-stroke: 0.55px var(--gold-dark);
    paint-order: stroke fill;
    animation: shimmer 4s linear infinite;
    line-height: 1.15;
}

.couple-names-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
}

.couple-names-hero .name-bride,
.couple-names-hero .name-groom {
    font-size: clamp(2.2rem, 10vw, 4.2rem);
    -webkit-text-stroke: 0.85px var(--gold-dark);
    letter-spacing: 0.02em;
}

.couple-names-hero .name-ampersand {
    font-family: var(--font-script);
    font-size: clamp(2.4rem, 9vw, 3.6rem);
    color: var(--gold);
    line-height: 0.9;
    margin: 0.15rem 0;
}

.hero-title {
    margin-bottom: 1rem;
}

@keyframes shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.couple-names {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.name-bride,
.name-groom {
    font-family: var(--font-display);
    font-weight: 400;
    color: var(--text-dark);
}

.name-ampersand {
    font-family: var(--font-script);
    color: var(--gold);
}

/* ---- Scroll Indicator ---- */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 0;
    right: 0;
    width: fit-content;
    max-width: calc(100% - 2rem);
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    animation: bounceInline 2s ease-in-out infinite;
}

.scroll-indicator--inline {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    margin: 2.5rem auto 0;
}

/* Reveal animation must not override horizontal centering */
.scroll-indicator.reveal {
    transform: none;
}

.scroll-indicator.reveal.visible {
    transform: none;
}

@keyframes bounceInline {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

.scroll-text {
    font-family: var(--font-elegant);
    font-size: 0.65rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 300;
    text-align: center;
    display: block;
    /* Offset trailing letter-spacing so text looks visually centered */
    padding-left: 0.28em;
    white-space: nowrap;
}

.scroll-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.scroll-arrow span {
    display: block;
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
    transform: rotate(45deg);
    opacity: 0.6;
}

.scroll-arrow span:first-child {
    animation: arrowDown 1.5s ease-in-out infinite;
}

.scroll-arrow span:last-child {
    animation: arrowDown 1.5s ease-in-out 0.2s infinite;
    margin-top: -6px;
}

@keyframes arrowDown {
    0% { opacity: 0; transform: rotate(45deg) translate(-4px, -4px); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: rotate(45deg) translate(4px, 4px); }
}

/* ---- Transition Section ---- */
.transition-section {
    position: relative;
    padding: 3.5rem 0 4rem;
    overflow: hidden;
}

.islamic-border {
    height: 48px;
    background: url("data:image/svg+xml,%3Csvg width='120' height='40' viewBox='0 0 120 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M60 0 L65 15 L80 15 L68 24 L73 40 L60 30 L47 40 L52 24 L40 15 L55 15 Z' fill='%23C9A84C' fill-opacity='0.18'/%3E%3C/svg%3E") center / 100px 36px repeat-x;
}

.mosque-silhouette {
    height: 110px;
    margin-top: 1.25rem;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 110'%3E%3Cellipse cx='250' cy='100' rx='220' ry='14' fill='%23C9A84C' fill-opacity='0.1'/%3E%3Cpath d='M195 105 L195 48 L188 48 L250 8 L312 48 L305 48 L305 105 Z' fill='%23C9A84C' fill-opacity='0.14'/%3E%3Ccircle cx='250' cy='32' r='12' fill='%23C9A84C' fill-opacity='0.16'/%3E%3Crect x='246' y='4' width='8' height='22' rx='1' fill='%23C9A84C' fill-opacity='0.14'/%3E%3Cpath d='M140 105 L140 62 L133 62 L155 42 L155 105 Z' fill='%23C9A84C' fill-opacity='0.1'/%3E%3Cpath d='M360 105 L360 62 L353 62 L375 42 L375 105 Z' fill='%23C9A84C' fill-opacity='0.1'/%3E%3Cpath d='M90 105 L90 72 L85 72 L100 58 L100 105 Z' fill='%23C9A84C' fill-opacity='0.07'/%3E%3Cpath d='M410 105 L410 72 L405 72 L420 58 L420 105 Z' fill='%23C9A84C' fill-opacity='0.07'/%3E%3C/svg%3E") center / min(100%, 480px) auto no-repeat;
    opacity: 0.95;
}

.arch-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(92vw, 420px);
    height: 180px;
    border: 1px solid rgba(201, 168, 76, 0.12);
    border-radius: 50% 50% 0 0 / 28% 28% 0 0;
    pointer-events: none;
    box-shadow: inset 0 0 40px rgba(201, 168, 76, 0.04);
}

.arch-frame::before {
    content: '✦';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--gold);
    opacity: 0.35;
    font-size: 0.9rem;
}

/* ---- Lookup / RSVP Sections ---- */
.lookup-section,
.event-section,
.rsvp-section {
    padding: 4rem 1.5rem 5rem;
    background: var(--white);
}

.section-inner {
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
}

.section-ornament {
    color: var(--gold);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 5.5vw, 2.35rem);
    font-weight: 400;
    color: var(--gold-dark);
    margin-bottom: 0.75rem;
    letter-spacing: 0.08em;
}

.section-desc {
    font-family: var(--font-body);
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1rem;
    letter-spacing: 0.01em;
    font-weight: 400;
    line-height: 1.7;
}

/* ---- Event & Venue ---- */
.event-datetime-card {
    margin-bottom: 1.75rem;
}

.event-datetime-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 1.5rem 2rem;
    background: var(--white);
    border: 1px solid rgba(201, 168, 76, 0.15);
    border-radius: var(--radius);
    box-shadow: 0 4px 20px var(--shadow-soft);
    position: relative;
}

.event-datetime-inner::before,
.event-datetime-inner::after {
    content: '✦';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold);
    opacity: 0.4;
    font-size: 0.75rem;
}

.event-datetime-inner::before { left: 1rem; }
.event-datetime-inner::after { right: 1rem; }

.event-day {
    font-family: var(--font-elegant);
    font-size: 0.75rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 300;
}

.event-date {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 5vw, 2rem);
    font-weight: 400;
    color: var(--gold-dark);
    line-height: 1.2;
    letter-spacing: 0.04em;
}

.event-time {
    font-family: var(--font-body);
    font-size: clamp(1.05rem, 3.5vw, 1.2rem);
    color: var(--text-muted);
    font-weight: 400;
    font-style: italic;
    margin-top: 0.15rem;
}

.venue-card {
    text-align: left;
    background: var(--white);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: var(--radius);
    box-shadow: 0 12px 40px var(--shadow-soft), inset 0 1px 0 rgba(255,255,255,0.9);
    overflow: hidden;
}

.venue-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.35rem 1.35rem 1rem;
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
    background: var(--white);
}

.venue-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    border-radius: 50%;
    color: var(--white);
    box-shadow: 0 4px 14px var(--shadow-gold);
}

.venue-icon svg {
    width: 22px;
    height: 22px;
}

.venue-name {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 3.5vw, 1.3rem);
    font-weight: 400;
    color: var(--gold-dark);
    line-height: 1.35;
    margin-bottom: 0.35rem;
    letter-spacing: 0.03em;
}

.venue-address {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.btn-directions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    text-decoration: none;
    box-sizing: border-box;
}

.venue-actions {
    padding: 1.25rem 1.35rem 1.35rem;
}

.venue-actions .btn-directions {
    margin: 0;
}

.btn-directions .btn-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ---- Forms ---- */
.form-group {
    text-align: left;
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-family: var(--font-elegant);
    font-size: 0.72rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 1.5px solid rgba(201, 168, 76, 0.25);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--text-dark);
    transition: border-color var(--transition), box-shadow var(--transition);
    -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--shadow-gold);
}

.form-group input::placeholder {
    color: #B8AFA0;
}

.form-message {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.form-message.error {
    background: #FDF0F0;
    color: #9B2C2C;
    border: 1px solid #FEB2B2;
}

.form-message.success {
    background: #F0FDF4;
    color: #276749;
    border: 1px solid #9AE6B4;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2rem;
    font-family: var(--font-elegant);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.btn:active {
    transform: scale(0.97);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
    color: var(--white);
    box-shadow: 0 4px 20px var(--shadow-gold), inset 0 1px 0 rgba(255,255,255,0.2);
    width: 100%;
}

.btn-gold:hover {
    box-shadow: 0 6px 28px rgba(201, 168, 76, 0.4);
}

.btn-gold:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.3) 50%, transparent 60%);
    animation: btnShimmer 3s ease-in-out infinite;
}

@keyframes btnShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--gold);
    color: var(--gold-dark);
}

.btn-danger {
    background: #C53030;
    color: white;
    border: none;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

/* ---- Guest List / RSVP ---- */
.guest-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.guest-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--white);
    border: 1.5px solid rgba(201, 168, 76, 0.15);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.guest-item:has(input:checked) {
    border-color: var(--gold);
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.05), rgba(232, 213, 163, 0.1));
    box-shadow: 0 4px 16px var(--shadow-gold);
}

.guest-item input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.guest-checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(201, 168, 76, 0.4);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition);
}

.guest-checkbox svg {
    width: 14px;
    height: 14px;
    opacity: 0;
    color: var(--white);
    transition: opacity 0.2s;
}

.guest-item input:checked + .guest-checkbox {
    background: var(--gold);
    border-color: var(--gold);
}

.guest-item input:checked + .guest-checkbox svg {
    opacity: 1;
}

.guest-name {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--text-dark);
}

.rsvp-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.status-badge {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-detail {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.no-members {
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 1rem;
}

/* ---- Invite Page ---- */
.page-invite .invite-hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.5rem 6rem;
    text-align: center;
    position: relative;
}

.personal-greeting {
    margin-bottom: 1rem;
}

.greeting-label {
    font-family: var(--font-elegant);
    font-size: 0.75rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 300;
}

.greeting-name {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 7vw, 2.75rem);
    font-weight: 400;
    color: var(--gold-dark);
    line-height: 1.2;
    letter-spacing: 0.04em;
}

.greeting-family {
    font-family: var(--font-body);
    font-size: 1.15rem;
    font-style: italic;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

.invite-divider {
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 1.25rem auto;
}

.page-not-found h1 {
    font-family: var(--font-display);
    margin: 1.5rem 0;
}

.page-not-found p {
    margin-bottom: 2rem;
    color: var(--text-muted);
}

/* ---- Footer ---- */
.site-footer {
    text-align: center;
    padding: 3rem 1.5rem 4rem;
    background: var(--white);
    border-top: 1px solid rgba(201, 168, 76, 0.08);
}

.footer-dua {
    font-size: clamp(1rem, 3.5vw, 1.3rem);
    color: var(--gold-dark);
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.footer-text {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    font-weight: 400;
}

/* ---- Reveal Animations ---- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---- Admin Styles ---- */
.page-admin {
    background: var(--cream);
    min-height: 100vh;
}

.page-admin-login {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.admin-login-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: 0 8px 40px var(--shadow-soft);
    width: 100%;
    max-width: 400px;
    border: 1px solid rgba(201, 168, 76, 0.15);
}

.admin-login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.admin-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.admin-login-header h1 {
    font-family: var(--font-display);
    font-size: 1.5rem;
}

.admin-login-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.admin-header {
    background: var(--white);
    border-bottom: 1px solid rgba(201, 168, 76, 0.15);
    padding: 1rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-header h1 {
    font-family: var(--font-display);
    font-size: 1.2rem;
}

.admin-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem;
}

.admin-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 12px var(--shadow-soft);
    border: 1px solid rgba(201, 168, 76, 0.1);
}

.admin-card h2 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
}

.admin-form .form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

@media (min-width: 640px) {
    .admin-form .form-row {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
}

.form-hint {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

.input-prefix {
    display: flex;
    align-items: center;
    border: 1.5px solid rgba(201, 168, 76, 0.25);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
}

.input-prefix span {
    padding: 0.85rem 0 0.85rem 0.75rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
    background: var(--ivory);
}

.input-prefix input {
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.form-actions .btn-gold {
    width: auto;
}

.alert {
    padding: 0.85rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.alert-success {
    background: #F0FDF4;
    color: #276749;
    border: 1px solid #9AE6B4;
}

.alert-error {
    background: #FDF0F0;
    color: #9B2C2C;
    border: 1px solid #FEB2B2;
}

.admin-empty {
    color: var(--text-muted);
    text-align: center;
    padding: 2rem;
}

.admin-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.admin-table th,
.admin-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
}

.admin-table th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 600;
}

.invite-link {
    color: var(--gold-dark);
    text-decoration: none;
    font-family: monospace;
    font-size: 0.85rem;
}

.invite-link:hover {
    text-decoration: underline;
}

.badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success {
    background: #F0FDF4;
    color: #276749;
}

.badge-muted {
    background: var(--ivory);
    color: var(--text-muted);
}

.actions-cell {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    align-items: center;
}

.inline-form {
    display: inline;
}

.admin-meta {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.admin-meta a {
    color: var(--gold-dark);
}

.rsvp-detail-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rsvp-detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    border: 1px solid rgba(201, 168, 76, 0.1);
}

.rsvp-detail-item.attending {
    background: #F0FDF4;
}

.rsvp-detail-item.not-attending {
    background: var(--ivory);
    opacity: 0.7;
}

.rsvp-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: bold;
}

.attending .rsvp-icon {
    background: #276749;
    color: white;
}

.not-attending .rsvp-icon {
    background: #CBD5E0;
    color: #4A5568;
}

.rsvp-name {
    flex: 1;
    font-weight: 600;
}

.rsvp-status-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.rsvp-summary {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(201, 168, 76, 0.1);
}

/* ---- Loading state ---- */
.btn.loading .btn-text {
    opacity: 0.5;
}

.btn.loading {
    pointer-events: none;
}

/* ---- Responsive tweaks ---- */
@media (max-width: 767px) {
    /* Floating emoji ornaments overlap hero text on narrow screens */
    .floating-decor {
        display: none;
    }
}

@media (min-width: 768px) {
    .couple-names-hero {
        gap: 0.25rem;
    }

    .hero {
        padding: 3rem 2rem 7rem;
    }

    .lookup-section,
    .event-section,
    .rsvp-section {
        padding: 5rem 2rem 6rem;
    }
}

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

    .reveal {
        opacity: 1;
        transform: none;
    }
}
