:root {
    --wedding-ink: #1d2433;
    --wedding-rose: #b86b77;
    --wedding-gold: #d7b36a;
    --wedding-cream: #fbf7f0;
    --wedding-sand: #f2e8dc;
    --wedding-card: #ffffff;
}

html, body {
    min-height: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--wedding-ink);
    background:
        radial-gradient(circle at top left, rgba(216, 179, 106, 0.12), transparent 28%),
        radial-gradient(circle at bottom right, rgba(184, 107, 119, 0.13), transparent 26%),
        linear-gradient(180deg, #fffdf9 0%, #f7f1ea 100%);
}

.invitation-cover-shell {
    min-height: 100vh;
    overflow-x: hidden;
    background: #e9f6f9;
}

.invitation-cover {
    min-height: 100vh;
    display: grid;
    place-items: center;
    position: relative;
    isolation: isolate;
    padding: 2rem 1rem;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 18% 24%, rgba(255, 255, 255, 0.84), transparent 23%),
        radial-gradient(ellipse at 84% 78%, rgba(195, 232, 239, 0.64), transparent 28%),
        linear-gradient(145deg, #f4fbfc 0%, #e5f2f6 48%, #d9edf1 100%);
}

.cover-wash {
    position: absolute;
    z-index: -1;
    width: 31rem;
    height: 17rem;
    opacity: 0.48;
    filter: blur(18px);
    background: rgba(177, 216, 225, 0.7);
    border-radius: 52% 48% 62% 38% / 42% 58% 42% 58%;
    transform: rotate(-16deg);
}

.cover-wash-top { top: 7%; left: 30%; }
.cover-wash-bottom { bottom: 6%; right: 26%; transform: rotate(18deg); }

.cover-leaf {
    position: absolute;
    color: rgba(140, 213, 228, 0.5);
    font-size: 5rem;
    font-family: Georgia, serif;
}

.cover-leaf-left { left: 5%; top: 40%; transform: rotate(24deg); }
.cover-leaf-right { right: 7%; bottom: 29%; transform: rotate(-22deg); }

.invitation-card {
    width: min(100%, 42rem);
    min-height: 35rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 3rem 2rem;
    text-align: center;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 22% 0%, rgba(204, 229, 235, 0.62), transparent 30%),
        radial-gradient(ellipse at 75% 100%, rgba(202, 228, 235, 0.58), transparent 31%),
        rgba(238, 236, 236, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 0.45rem;
    box-shadow: 0 2rem 3rem rgba(44, 79, 91, 0.25), 0 0 3rem rgba(117, 175, 188, 0.2);
    animation: cover-rise 0.8s ease both;
}

.cover-emblem {
    width: 4rem;
    height: 4rem;
    display: grid;
    place-items: center;
    margin-bottom: 1.25rem;
    color: #fff;
    font-size: 1.65rem;
    border-radius: 50%;
    background: #315c6d;
    box-shadow: 0 0.65rem 1rem rgba(49, 92, 109, 0.25);
}

.cover-kicker, .cover-message {
    color: #70909b;
    font-family: Georgia, serif;
    font-size: 1.05rem;
}

.cover-kicker { margin-bottom: 0.65rem; font-style: italic; }
.cover-names {
    max-width: 100%;
    margin: 0;
    color: #426b7c;
    font-family: Georgia, serif;
    font-size: clamp(2.7rem, 9vw, 4.8rem);
    font-weight: 400;
    line-height: 1.05;
}

.cover-divider {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: min(100%, 13rem);
    margin: 1.1rem 0;
    color: #7e9aa3;
    font-family: Georgia, serif;
    font-style: italic;
}

.cover-divider span { height: 1px; flex: 1; background: #83a6b0; }
.cover-divider b { font-weight: 400; }
.cover-date { margin-bottom: 1.65rem; color: #6b8b96; font: 1.25rem Georgia, serif; }
.cover-message { margin-bottom: 1.75rem; line-height: 1.7; }

.cover-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 7.8rem;
    min-height: 3.2rem;
    padding: 0.6rem 1.7rem;
    color: #fff;
    font: 700 1.1rem Georgia, serif;
    text-decoration: none;
    border: 0;
    border-radius: 2rem;
    background: #477689;
    box-shadow: 0 0.5rem 1rem rgba(52, 99, 115, 0.24);
    transition: transform 0.2s ease, background 0.2s ease;
}

.cover-open:hover { color: #fff; background: #315c6d; transform: translateY(-2px); }
.cover-open-small { min-height: 2.7rem; font-size: 1rem; }
.invitation-code-modal { border: 0; border-radius: 0.7rem; }

.reference-invite {
    color: #4e6670;
    font-family: 'Cormorant Garamond', Georgia, serif;
    background:
        radial-gradient(ellipse at 12% 7%, rgba(184, 222, 229, 0.56), transparent 23%),
        radial-gradient(ellipse at 88% 31%, rgba(216, 238, 240, 0.8), transparent 25%),
        #edf8fa;
}

.reference-main {
    width: min(100%, 58rem);
    margin: 0 auto;
    padding: 1rem 1rem 4rem;
}

.reference-hero {
    min-height: 25rem;
    background-color: #cfe9ed;
    border-radius: 0.35rem;
    box-shadow: 0 1.25rem 3rem rgba(75, 111, 121, 0.14);
}

.reference-hero::after {
    background: linear-gradient(180deg, rgba(36, 71, 81, 0.08), rgba(36, 71, 81, 0.44));
}

.reference-hero .hero-content { padding: 7rem 1rem; }
.reference-hero .hero-content h1 { font: 4.6rem/0.9 'Allura', cursive; }
.reference-hero .hero-content .eyebrow { font: 1.1rem 'Cormorant Garamond', serif; letter-spacing: 0.18em; }
.reference-hero .hero-content .lead { font-size: 1.25rem; font-family: 'Cormorant Garamond', serif; }
.reference-content { max-width: 48rem; }

.reference-card {
    padding: clamp(1.5rem, 5vw, 3.5rem);
    border: 0;
    border-radius: 0.25rem;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 0.8rem 2rem rgba(75, 111, 121, 0.08);
}

.reference-card .section-title {
    color: #6b8993;
    font: 600 1.15rem 'Cormorant Garamond', serif;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.reference-card p,
.reference-card label,
.reference-card .timeline-body,
.reference-card .timeline-time {
    font-size: 1.2rem;
}

.reference-card .timeline-item {
    padding: 0.9rem 0;
    border: 0;
    border-bottom: 1px solid rgba(91, 132, 143, 0.16);
    border-radius: 0;
    background: transparent;
}

.reference-card .timeline-time { color: #7195a0; font-weight: 600; }
.reference-card .deadline-pill { background: rgba(178, 218, 224, 0.35); }
.reference-card .btn-wedding { background: #527f8d; font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; }
.reference-card .form-control,
.reference-card .form-check-input { border-color: rgba(82, 127, 141, 0.35); }

@media (max-width: 575px) {
    .reference-main { padding: 0 0 2rem; }
    .reference-hero { min-height: 22rem; border-radius: 0; }
    .reference-hero .hero-content h1 { font-size: 3.8rem; }
    .reference-card { border-radius: 0; }
}

@keyframes cover-rise {
    from { opacity: 0; transform: translateY(1rem); }
    to { opacity: 1; transform: translateY(0); }
}

.app-shell {
    padding-bottom: 2rem;
}

h1, h2, h3, .display-4, .navbar-brand {
    font-family: 'Playfair Display', serif;
}

.navbar-wedding,
.invite-topbar {
    background: linear-gradient(90deg, #1d2433, #3c3f5a);
}

.app-shell .panel-card,
.section-card,
.login-card,
.stat-card {
    background: rgba(255, 255, 255, 0.90);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(29, 36, 51, 0.08);
    border-radius: 1.25rem;
    box-shadow: 0 14px 40px rgba(29, 36, 51, 0.08);
}

.panel-card,
.section-card,
.stat-card {
    padding: 1.25rem;
}

.panel-card:hover {
    box-shadow: 0 18px 45px rgba(29, 36, 51, 0.12);
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

.btn-wedding {
    background: linear-gradient(135deg, var(--wedding-rose), #8f4f5b);
    border: none;
    color: #fff;
}

.btn-wedding:hover {
    color: #fff;
    opacity: 0.95;
}

.stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(29, 36, 51, 0.6);
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
}

.hero-banner {
    position: relative;
    min-height: 68vh;
    display: flex;
    align-items: center;
    background-color: #2a2a35;
    background-position: center;
    background-size: cover;
    overflow: hidden;
}

.language-switcher {
    position: absolute;
    top: 25px;
    right: 25px;
    z-index: 5;
}

.language-switcher .btn-group  {
    border-radius: 10px !important;
    font-weight: 500;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.85);
}

.language-switcher .active {
    background: rgb(2, 46, 32);
    color: white;
    border-color: rgb(2, 46, 32);
}

.hero-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 15, 24, 0.24), rgba(11, 15, 24, 0.62));
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 5rem 0;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.8rem;
}

.section-title {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.timeline {
    display: grid;
    gap: 0.85rem;
}

.timeline-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, #fff, #faf7f2);
    border: 1px solid rgba(29, 36, 51, 0.08);
}

.timeline-time {
    font-weight: 700;
    color: var(--wedding-rose);
}

.deadline-pill {
    display: inline-flex;
    padding: 0.5rem 0.8rem;
    background: rgba(216, 179, 106, 0.18);
    color: #7c5a1e;
    border-radius: 999px;
    font-weight: 600;
}

.image-placeholder {
    min-height: 240px;
    display: grid;
    place-items: center;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(184, 107, 119, 0.18), rgba(215, 179, 106, 0.2));
    color: rgba(29, 36, 51, 0.65);
    font-weight: 700;
}

.login-shell {
    background: linear-gradient(135deg, #ebe2d7, #fdfaf6);
}

.login-card {
    max-width: 520px;
    margin: 0 auto;
}

.admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem 0 1rem;
}

.admin-nav .btn {
    border-radius: 999px;
    padding-inline: 0.95rem;
}

.form-control,
.form-select,
.form-check-input,
textarea {
    border-radius: 0.85rem;
    border-color: rgba(29, 36, 51, 0.14);
}

.form-control:focus,
.form-select:focus,
textarea:focus {
    border-color: var(--wedding-rose);
    box-shadow: 0 0 0 0.2rem rgba(184, 107, 119, 0.16);
}

.table > :not(caption) > * > * {
    vertical-align: middle;
}

.badge {
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.74rem;
}

@media (max-width: 768px) {
    .timeline-item {
        grid-template-columns: 1fr;
    }

    .hero-banner {
        min-height: 58vh;
    }
}

.cover-language,
.language-switcher {
    display: none !important;
}

