* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #4a0000;
    color: white;
}

/* =================================
   OPENING SCREEN
================================= */

#opening-screen {
    width: 100%;
    height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    background: linear-gradient(135deg, #5a0000, #a00000, #d4af37);
}

.envelope {
    width: 360px;
    padding: 40px;
    text-align: center;

    background: rgba(255, 255, 255, .08);

    border: 2px solid gold;
    border-radius: 20px;

    backdrop-filter: blur(8px);

    box-shadow: 0 0 30px rgba(255, 215, 0, .5);
}

.envelope h2 {
    font-size: 60px;
}

.envelope h1 {
    margin-top: 15px;
    color: gold;
}

.envelope p {
    margin: 20px 0;
    line-height: 28px;
}

button {
    padding: 15px 35px;
    border: none;
    border-radius: 50px;

    background: gold;
    color: #6d0000;

    font-size: 18px;
    cursor: pointer;

    transition: .4s;
}

button:hover {
    transform: scale(1.08);
}

.hidden {
    display: none;
}

/* =================================
   HERO
================================= */

#hero {
    position: relative;

    height: 100vh;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;

    padding: 20px;

    background:
        linear-gradient(rgba(70, 0, 0, .75), rgba(70, 0, 0, .75)),
        url("https://images.unsplash.com/photo-1519167758481-83f550bb49b3?w=1600&auto=format&fit=crop");

    background-size: cover;
    background-position: center;
}

#hero h3 {
    color: gold;
    font-size: 30px;
}

#hero p {
    max-width: 700px;
    margin-top: 25px;
    font-size: 22px;
    line-height: 40px;
}

/* Royal Hero Card */

.hero-card {
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 215, 0, .7);
    border-radius: 25px;

    padding: 50px;
    max-width: 700px;
    width: 90%;

    backdrop-filter: blur(12px);
    box-shadow: 0 0 40px rgba(255, 215, 0, .35);

    animation: fadeUp 1.2s ease;
}

.couple-name {
    font-size: 65px;
    color: #FFD700;
    margin: 20px 0;
}

.couple-name span {
    color: #ff4d6d;
    animation: heartBeat 1s infinite;
}

.start-btn {
    display: inline-block;
    margin-top: 30px;
    padding: 15px 35px;

    background: linear-gradient(45deg, #FFD700, #ffb700);
    color: #7a0000;

    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;

    transition: .3s;
}

.start-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 215, 0, .4);
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Scroll down arrow (fixed, on hero) */

.scroll-down-arrow {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);

    color: #ffd700;
    text-decoration: none;

    z-index: 100;

    animation: scrollArrow 1.5s infinite;
}

.scroll-down-arrow.hide {
    opacity: 0;
    pointer-events: none;
}

.scroll-down-arrow span {
    font-size: 45px;
    line-height: 1;
    display: block;

    text-shadow: 0 0 12px rgba(255, 215, 0, .8);
}

@keyframes scrollArrow {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(12px); }
}

/* =================================
   ROYAL COUNTDOWN SECTION
================================= */

.countdown-section {
    min-height: 70vh;
    padding: 80px 20px;

    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;

    background:
        radial-gradient(circle at top, rgba(212, 175, 55, .18), transparent 45%),
        linear-gradient(135deg, #3d0000, #700000, #3d0000);
}

.countdown-card {
    width: min(900px, 95%);
    padding: 55px 35px;

    border: 1px solid rgba(255, 215, 0, .6);
    border-radius: 30px;

    background: rgba(255, 255, 255, .06);
    backdrop-filter: blur(12px);

    box-shadow:
        0 0 35px rgba(255, 215, 0, .18),
        inset 0 0 25px rgba(255, 215, 0, .04);
}

.countdown-card h2 {
    color: #ffd700;
    font-size: 38px;
    margin-bottom: 15px;
}

.countdown-message {
    font-size: 18px;
    line-height: 30px;
    opacity: .9;
    margin-bottom: 40px;
}

.countdown-container {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 20px;
    flex-wrap: wrap;
}

.time-box {
    width: 150px;
    min-height: 135px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    border: 1px solid rgba(255, 215, 0, .65);
    border-radius: 20px;

    background: rgba(0, 0, 0, .18);
    box-shadow: 0 8px 25px rgba(0, 0, 0, .2);

    transition: .3s;
}

.time-box:hover {
    transform: translateY(-7px);
    box-shadow: 0 12px 30px rgba(255, 215, 0, .2);
}

.time-box span {
    font-size: 48px;
    font-weight: bold;
    color: #ffd700;
}

.time-box small {
    margin-top: 8px;
    font-size: 16px;
    color: #fff;
}

.countdown-complete {
    margin-top: 35px;
    font-size: 25px;
    font-weight: bold;
    color: #ffd700;
}

/* =================================
   WEDDING DETAILS SECTION
================================= */

.details-section {
    min-height: 80vh;
    padding: 90px 20px;

    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;

    background:
        radial-gradient(circle at center, rgba(212, 175, 55, .12), transparent 55%),
        linear-gradient(135deg, #3d0000, #650000, #3d0000);
}

.details-card {
    width: min(700px, 95%);
    padding: 55px 40px;

    border: 1px solid rgba(255, 215, 0, .65);
    border-radius: 30px;

    background: rgba(255, 255, 255, .06);
    backdrop-filter: blur(12px);

    box-shadow:
        0 0 40px rgba(255, 215, 0, .18),
        inset 0 0 25px rgba(255, 215, 0, .04);
}

.section-icon {
    font-size: 50px;
    margin-bottom: 10px;
}

.details-card h2 {
    color: #ffd700;
    font-size: 38px;
    margin-bottom: 12px;
}

.gold-line {
    width: 100px;
    height: 2px;
    margin: 0 auto 35px;

    background: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, .7);
}

/* Detail item = icon + text row, always horizontal */
.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;

    text-align: left;
    padding: 20px;
    margin: 15px 0;

    border-radius: 18px;

    background: rgba(0, 0, 0, .15);
    border: 1px solid rgba(255, 215, 0, .15);

    transition: .3s;
}

.detail-item:hover {
    transform: translateX(5px);
    border-color: rgba(255, 215, 0, .5);
    box-shadow: 0 8px 25px rgba(0, 0, 0, .2);
}

.detail-item > span {
    flex: 0 0 45px;
    width: 45px;
    font-size: 32px;
    text-align: center;
}

.detail-item > div {
    flex: 1 1 auto;
    min-width: 0;
}

.detail-item small {
    display: block;
    color: #e5c96a;
    font-size: 14px;
    margin-bottom: 4px;
}

.detail-item strong {
    display: block;
    width: 100%;
    color: #fff;
    font-size: 19px;
    line-height: 28px;

    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
}

.map-btn {
    display: inline-block;
    margin-top: 25px;
    padding: 14px 30px;

    border-radius: 50px;
    background: linear-gradient(45deg, #ffd700, #ffb700);
    color: #650000;

    text-decoration: none;
    font-weight: bold;

    transition: .3s;
}

.map-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, .25);
}

/* Scratch date card */

.scratch-date {
    position: relative;
    width: min(210px, 100%);
    max-width: 100%;
    height: 48px;

    margin-top: 6px;

    border-radius: 12px;
    overflow: hidden;

    background: #ffd000;

    display: flex;
    align-items: center;
    justify-content: center;
}

.scratch-date strong {
    position: relative;
    z-index: 1;

    color: #5b0000;
    font-size: 18px;
    font-weight: 800;

    text-align: center;
    white-space: nowrap;
}

#scratch-canvas {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;
    max-width: 100%;

    z-index: 2;

    cursor: crosshair;
    touch-action: none;
}

/* Wedding Details button (on countdown card) */

.details-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 14px 34px;
    min-width: 200px;

    background: #ffd000;
    color: #5b0000;

    border: 2px solid #ffd000;
    border-radius: 50px;

    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;

    cursor: pointer;

    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}

.details-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 9px 24px rgba(0, 0, 0, 0.3);
}

.details-btn:active {
    transform: scale(0.97);
}

/* =================================
   PRE-WEDDING TIMELINE
================================= */

.events-section {
    min-height: 85vh;
    padding: 90px 20px;

    display: flex;
    justify-content: center;
    align-items: center;

    background:
        radial-gradient(circle at center, rgba(212, 175, 55, .10), transparent 55%),
        linear-gradient(135deg, #450000, #720000, #450000);
}

.events-card {
    width: min(800px, 95%);
    padding: 55px 40px;
    text-align: center;

    border: 1px solid rgba(255, 215, 0, .6);
    border-radius: 30px;

    background: rgba(255, 255, 255, .05);
    backdrop-filter: blur(12px);

    box-shadow: 0 0 40px rgba(255, 215, 0, .16);
}

.events-card h2 {
    color: #ffd700;
    font-size: 38px;
    margin-bottom: 12px;
}

.timeline {
    position: relative;
    max-width: 600px;
    margin: 45px auto 0;
    padding: 10px 0;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;

    background: linear-gradient(to bottom, transparent, #ffd700, #ffd700, transparent);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 35px;
    text-align: right;
}

.timeline-item:nth-child(even) {
    margin-left: 50%;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    top: 28px;
    right: -22px;

    width: 44px;
    height: 44px;

    display: flex;
    justify-content: center;
    align-items: center;

    border-radius: 50%;
    background: #650000;
    border: 2px solid #ffd700;

    box-shadow: 0 0 15px rgba(255, 215, 0, .5);

    z-index: 2;
    font-size: 21px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -22px;
    right: auto;
}

.timeline-content {
    padding: 25px;
    border-radius: 20px;

    background: rgba(0, 0, 0, .16);
    border: 1px solid rgba(255, 215, 0, .18);

    transition: .3s;
}

.timeline-content:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 215, 0, .55);
    box-shadow: 0 10px 25px rgba(0, 0, 0, .2);
}

.event-number {
    display: block;
    color: #d8bd5b;
    font-size: 13px;
    margin-bottom: 5px;
}

.timeline-content h3 {
    color: #ffd700;
    font-size: 24px;
    margin-bottom: 12px;
}

.timeline-content p {
    margin: 5px 0;
    color: #fff;
    font-size: 16px;
}

/* =================================
   GROOM FAMILY SECTION
================================= */

.family-section {
    min-height: 65vh;
    padding: 90px 20px;

    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;

    background:
        radial-gradient(circle at center, rgba(212, 175, 55, .10), transparent 55%),
        linear-gradient(135deg, #3d0000, #680000, #3d0000);
}

.family-card {
    width: min(700px, 95%);
    padding: 55px 40px;

    border: 1px solid rgba(255, 215, 0, .6);
    border-radius: 30px;

    background: rgba(255, 255, 255, .05);
    backdrop-filter: blur(12px);

    box-shadow: 0 0 40px rgba(255, 215, 0, .16);
}

.family-card h2 {
    color: #ffd700;
    font-size: 38px;
    margin-bottom: 12px;
}

.family-names {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 35px;
}

.parent-card {
    padding: 30px 20px;
    border-radius: 20px;

    background: rgba(0, 0, 0, .16);
    border: 1px solid rgba(255, 215, 0, .18);

    transition: .3s;
}

.parent-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 215, 0, .55);
    box-shadow: 0 10px 25px rgba(0, 0, 0, .2);
}

.parent-card > span {
    display: block;
    font-size: 42px;
    margin-bottom: 12px;
}

.parent-card small {
    display: block;
    color: #d8bd5b;
    font-size: 14px;
    margin-bottom: 8px;
}

.parent-card h3 {
    color: #fff;
    font-size: 20px;
    line-height: 28px;
    margin: 0;
}

.family-message {
    margin-top: 30px;
    color: #f5e8b0;
    font-size: 17px;
    line-height: 28px;
}

/* =================================
   WEDDING MESSAGE SECTION
================================= */

.message-section {
    min-height: 75vh;
    padding: 90px 20px;

    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;

    background:
        radial-gradient(circle at center, rgba(212, 175, 55, .12), transparent 55%),
        linear-gradient(135deg, #500000, #790000, #500000);
}

.message-card {
    width: min(750px, 95%);
    padding: 60px 45px;

    border: 1px solid rgba(255, 215, 0, .65);
    border-radius: 35px;

    background: rgba(255, 255, 255, .06);
    backdrop-filter: blur(12px);

    box-shadow:
        0 0 45px rgba(255, 215, 0, .18),
        inset 0 0 30px rgba(255, 215, 0, .04);
}

.message-flower {
    font-size: 48px;
    color: #ffd700;
    margin-bottom: 10px;
}

.message-small {
    color: #d8bd5b;
    font-size: 15px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.message-card h2 {
    color: #ffd700;
    font-size: 38px;
    margin-bottom: 12px;
}

.main-message {
    max-width: 600px;
    margin: 0 auto;
    color: #fff;
    font-size: 19px;
    line-height: 34px;
}

.message-names {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 18px;
    margin: 30px 0;

    color: #ffd700;
    font-size: 30px;
    font-weight: bold;
}

.message-names span:nth-child(2) {
    font-size: 22px;
    animation: heartBeat 1.5s infinite;
}

.message-footer {
    color: #f5e8b0;
    font-size: 16px;
    line-height: 27px;
}

/* =================================
   RSVP SECTION
================================= */

.rsvp-section {
    min-height: 85vh;
    padding: 90px 20px;

    display: flex;
    justify-content: center;
    align-items: center;

    background:
        radial-gradient(circle at center, rgba(212, 175, 55, .12), transparent 55%),
        linear-gradient(135deg, #450000, #720000, #450000);
}

.rsvp-card {
    width: min(650px, 95%);
    padding: 55px 40px;
    text-align: center;

    border: 1px solid rgba(255, 215, 0, .65);
    border-radius: 30px;

    background: rgba(255, 255, 255, .06);
    backdrop-filter: blur(12px);

    box-shadow: 0 0 40px rgba(255, 215, 0, .18);
}

.rsvp-card h2 {
    color: #ffd700;
    font-size: 38px;
    margin-bottom: 12px;
}

.rsvp-intro {
    color: #f5e8b0;
    font-size: 17px;
    line-height: 28px;
    margin-bottom: 35px;
}

#rsvp-form {
    text-align: left;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    color: #e5c96a;
    font-size: 15px;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    box-sizing: border-box;

    border: 1px solid rgba(255, 215, 0, .3);
    border-radius: 12px;
    outline: none;

    background: rgba(0, 0, 0, .2);
    color: #fff;

    font-family: inherit;
    font-size: 15px;

    transition: .3s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, .55);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #ffd700;
    box-shadow: 0 0 12px rgba(255, 215, 0, .15);
}

.form-group select option {
    background: #450000;
    color: #fff;
}

.attendance {
    margin-bottom: 25px;
}

.attendance > p {
    color: #e5c96a;
    font-size: 15px;
    margin-bottom: 12px;
}

.attendance-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.attendance-option {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 14px;

    border: 1px solid rgba(255, 215, 0, .18);
    border-radius: 12px;

    background: rgba(0, 0, 0, .15);
    color: #fff;

    cursor: pointer;
    transition: .3s;
}

.attendance-option:hover {
    border-color: rgba(255, 215, 0, .5);
}

.attendance-option input {
    accent-color: #ffd700;
}

.rsvp-submit {
    width: 100%;
    margin-top: 8px;
    padding: 15px 20px;

    border: none;
    border-radius: 50px;

    background: linear-gradient(45deg, #ffd700, #ffb700);
    color: #500000;

    font-size: 16px;
    font-weight: bold;
    cursor: pointer;

    transition: .3s;
}

.rsvp-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, .25);
}

.rsvp-status {
    margin-top: 20px;
    color: #ffd700;
    font-size: 15px;
}

/* =================================
   ADMIN LOGIN
================================= */

.admin-login-page {
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 20px;
    box-sizing: border-box;

    background:
        radial-gradient(circle at center, rgba(212, 175, 55, .14), transparent 50%),
        linear-gradient(135deg, #300000, #650000, #300000);

    color: #fff;
}

.admin-login-card {
    width: min(420px, 100%);
    padding: 45px 35px;
    text-align: center;

    border: 1px solid rgba(255, 215, 0, .65);
    border-radius: 28px;

    background: rgba(255, 255, 255, .06);
    backdrop-filter: blur(15px);

    box-shadow: 0 0 45px rgba(255, 215, 0, .18);
}

.admin-icon {
    font-size: 50px;
    margin-bottom: 10px;
}

.admin-login-card h1 {
    margin: 0;
    color: #ffd700;
    font-size: 32px;
}

.admin-login-card > p {
    margin: 8px 0 30px;
    color: #e5c96a;
}

#admin-login-form {
    text-align: left;
}

#admin-login-form label {
    display: block;
    margin: 18px 0 7px;
    color: #e5c96a;
    font-size: 14px;
}

#admin-login-form input {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 15px;

    border: 1px solid rgba(255, 215, 0, .3);
    border-radius: 12px;
    outline: none;

    background: rgba(0, 0, 0, .22);
    color: #fff;
    font-size: 15px;
}

#admin-login-form input:focus {
    border-color: #ffd700;
    box-shadow: 0 0 12px rgba(255, 215, 0, .15);
}

#admin-login-form button {
    width: 100%;
    margin-top: 25px;
    padding: 14px;

    border: none;
    border-radius: 50px;

    background: linear-gradient(45deg, #ffd700, #ffb700);
    color: #500000;

    font-size: 16px;
    font-weight: bold;
    cursor: pointer;

    transition: .3s;
}

#admin-login-form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, .25);
}

#login-status {
    min-height: 22px;
    margin-top: 20px;
    color: #ffd700;
    font-size: 14px;
}

/* =================================
   ADMIN DASHBOARD
================================= */

.dashboard-page {
    min-height: 100vh;
    padding: 35px;
    box-sizing: border-box;

    background:
        radial-gradient(circle at top, rgba(212, 175, 55, .12), transparent 45%),
        linear-gradient(135deg, #300000, #650000, #300000);

    color: #fff;
}

.dashboard-header {
    max-width: 1200px;
    margin: 0 auto 35px;
    padding: 25px 30px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    border: 1px solid rgba(255, 215, 0, .35);
    border-radius: 20px;

    background: rgba(255, 255, 255, .05);
    backdrop-filter: blur(12px);
}

.dashboard-header h1 {
    margin: 0;
    color: #ffd700;
    font-size: 30px;
}

.dashboard-header p {
    margin: 5px 0 0;
    color: #e5c96a;
}

#logout-btn {
    padding: 11px 22px;

    border: 1px solid #ffd700;
    border-radius: 50px;

    background: transparent;
    color: #ffd700;
    font-weight: bold;

    cursor: pointer;
    transition: .3s;
}

#logout-btn:hover {
    background: #ffd700;
    color: #500000;
}

.stats-grid {
    max-width: 1200px;
    margin: 0 auto 35px;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-card {
    padding: 28px;
    text-align: center;

    border: 1px solid rgba(255, 215, 0, .3);
    border-radius: 20px;

    background: rgba(255, 255, 255, .05);
    backdrop-filter: blur(10px);

    transition: .3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 215, 0, .6);
}

.stat-card span {
    display: block;
    font-size: 35px;
    margin-bottom: 8px;
}

.stat-card small {
    display: block;
    color: #e5c96a;
    margin-bottom: 8px;
}

.stat-card strong {
    color: #ffd700;
    font-size: 32px;
}

.rsvp-admin-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;

    border: 1px solid rgba(255, 215, 0, .3);
    border-radius: 22px;

    background: rgba(255, 255, 255, .05);
    backdrop-filter: blur(10px);
}

.admin-section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.admin-section-title h2 {
    margin: 0;
    color: #ffd700;
}

.admin-section-title p {
    margin-top: 5px;
    color: #e5c96a;
}

.rsvp-list {
    margin-top: 25px;
    display: grid;
    gap: 15px;
}

.rsvp-item {
    padding: 20px;
    border-radius: 16px;

    border: 1px solid rgba(255, 215, 0, .2);
    background: rgba(0, 0, 0, .15);

    transition: .3s;
}

.rsvp-item:hover {
    border-color: rgba(255, 215, 0, .5);
}

.rsvp-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.rsvp-item-header h3 {
    margin: 0;
    color: #fff;
    font-size: 19px;
}

.rsvp-badge {
    padding: 5px 12px;
    border-radius: 20px;

    background: rgba(255, 215, 0, .12);
    color: #ffd700;
    font-size: 13px;

    white-space: nowrap;
}

.rsvp-item p {
    margin: 8px 0;
    color: #ddd;
    line-height: 24px;
}

.loading-text {
    text-align: center;
    color: #e5c96a;
    padding: 30px;
}

.rsvp-details {
    margin-top: 12px;
}

.rsvp-details p {
    margin: 7px 0;
    color: #eee;
    line-height: 1.6;
}

.rsvp-details strong {
    color: #e5c96a;
}

.rsvp-date {
    font-size: 13px;
    opacity: .8;
}

.rsvp-controls {
    margin-top: 15px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.rsvp-controls select {
    padding: 11px 16px;

    border: 1px solid rgba(255, 215, 0, .3);
    border-radius: 30px;
    outline: none;

    background: #500000;
    color: #ffd700;
    font-weight: bold;

    cursor: pointer;
}

.guest-total-box {
    padding: 10px 18px;

    border: 1px solid rgba(255, 215, 0, .25);
    border-radius: 30px;

    background: rgba(255, 215, 0, .08);
    color: #e5c96a;
}

.guest-total-box strong {
    color: #ffd700;
    font-size: 18px;
}

.rsvp-search-box {
    margin-top: 20px;
}

.rsvp-search-box input {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 18px;

    border: 1px solid rgba(255, 215, 0, .3);
    border-radius: 50px;
    outline: none;

    background: rgba(0, 0, 0, .2);
    color: #fff;
    font-size: 15px;

    transition: .3s;
}

.rsvp-search-box input:focus {
    border-color: #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, .15);
}

.rsvp-search-box input::placeholder {
    color: rgba(255, 255, 255, .5);
}

.refresh-rsvps-btn {
    padding: 10px 18px;

    border: 1px solid rgba(255, 215, 0, .5);
    border-radius: 50px;

    background: rgba(255, 215, 0, .08);
    color: #ffd700;

    font-size: 14px;
    font-weight: bold;
    cursor: pointer;

    transition: .3s;
}

.refresh-rsvps-btn:hover {
    background: #ffd700;
    color: #500000;
    transform: translateY(-2px);
}

/* =================================
   WEDDING DETAILS EDITOR (admin)
================================= */

.wedding-editor {
    max-width: 1200px;
    margin: 35px auto 0;
    padding: 30px;

    border: 1px solid rgba(255, 215, 0, .3);
    border-radius: 22px;

    background: rgba(255, 255, 255, .05);
    backdrop-filter: blur(10px);
}

.editor-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 25px;
}

.editor-field label {
    display: block;
    margin-bottom: 8px;
    color: #e5c96a;
    font-size: 14px;
}

.editor-field input,
.editor-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 15px;

    border: 1px solid rgba(255, 215, 0, .25);
    border-radius: 12px;
    outline: none;

    background: rgba(0, 0, 0, .2);
    color: #fff;

    font-family: inherit;
    font-size: 15px;

    transition: .3s;
}

.editor-field input:focus,
.editor-field textarea:focus {
    border-color: #ffd700;
    box-shadow: 0 0 12px rgba(255, 215, 0, .15);
}

.editor-field input::placeholder,
.editor-field textarea::placeholder {
    color: rgba(255, 255, 255, .45);
}

.editor-message {
    margin-top: 20px;
}

.save-details-btn {
    margin-top: 25px;
    padding: 14px 30px;

    border: none;
    border-radius: 50px;

    background: linear-gradient(45deg, #ffd700, #ffb700);
    color: #500000;

    font-size: 16px;
    font-weight: bold;
    cursor: pointer;

    transition: .3s;
}

.save-details-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, .25);
}

.details-save-status {
    display: inline-block;
    margin-left: 15px;
    color: #ffd700;
    font-size: 14px;
}

.open-website-btn {
    display: inline-block;
    padding: 12px 22px;

    border: 1px solid #ffd700;
    border-radius: 50px;

    background: rgba(255, 215, 0, .08);
    color: #ffd700;
    text-decoration: none;
    font-weight: bold;

    transition: .3s;
}

.open-website-btn:hover {
    background: #ffd700;
    color: #500000;
    transform: translateY(-2px);
}

/* =================================
   WEDDING MUSIC BUTTON
================================= */

.music-toggle {
    position: fixed;
    right: 20px;
    bottom: 20px;

    width: 55px;
    height: 55px;

    border: 2px solid #ffd700;
    border-radius: 50%;

    background: rgba(90, 0, 0, 0.9);
    color: #ffd700;

    font-size: 25px;
    cursor: pointer;
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
    transition: 0.3s;
}

.music-toggle:hover {
    transform: scale(1.1);
}

.music-toggle.playing {
    animation: musicPulse 1.5s infinite;
}

@keyframes musicPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

/* =====================================================
   ✅ MOBILE RESPONSIVE — SINGLE CONSOLIDATED SOURCE
   (Sabhi purane duplicate/conflicting mobile blocks
    hata kar yahan ek jagah rakha gaya hai)
===================================================== */

img, video {
    max-width: 100%;
    height: auto;
}

button, input, textarea, select {
    max-width: 100%;
}

/* ---- Tablet ---- */
@media (max-width: 900px) {

    section, main {
        width: 100%;
        max-width: 100%;
    }
}

/* ---- Mobile ---- */
@media (max-width: 600px) {

    body {
        font-size: 15px;
        line-height: 1.6;
    }

    section, main {
        width: 100%;
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }

    h1 { font-size: clamp(30px, 9vw, 48px); line-height: 1.15; word-break: normal; }
    h2 { font-size: clamp(24px, 7vw, 34px); line-height: 1.2; }
    h3 { font-size: 20px; }

    form { width: 100%; }

    input, textarea, select {
        width: 100%;
        font-size: 16px;
    }

    textarea {
        min-height: 120px;
        resize: vertical;
    }

    button {
        min-height: 46px;
        touch-action: manipulation;
    }

    /* Hero */
    #hero {
        min-height: 100svh;
        padding: 25px 12px;
    }

    .hero-card {
        width: 100%;
        max-width: 420px;
        padding: 30px 15px;
        margin: 0 auto;
    }

    .couple-name {
        font-size: clamp(32px, 10vw, 55px);
        line-height: 1.2;
    }

    #hero p {
        width: 100%;
        max-width: 100%;
        font-size: 16px;
        line-height: 1.7;
    }

    .scroll-down-arrow span {
        font-size: 38px;
    }

    .scroll-down-arrow {
        bottom: 18px;
    }

    /* Countdown */
    .countdown-section {
        padding: 45px 10px;
    }

    .countdown-card {
        width: 100%;
        max-width: 420px;
        padding: 30px 12px;
        margin: 0 auto;
    }

    .countdown-card h2 {
        font-size: 25px;
        line-height: 1.3;
    }

    .countdown-message {
        font-size: 15px;
        line-height: 1.6;
        margin-bottom: 25px;
    }

    .countdown-container {
        width: 100%;
        max-width: 100%;

        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .time-box {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        min-height: 95px;
        padding: 12px 5px;
        border-radius: 16px;
    }

    .time-box span {
        font-size: clamp(28px, 8vw, 38px);
    }

    .time-box small {
        font-size: 13px;
    }

    /* Wedding Details */
    .details-section {
        padding: 45px 10px;
    }

    .details-card {
        width: 100%;
        max-width: 420px;
        padding: 30px 14px;
        margin: 0 auto;
        border-radius: 22px;
    }

    .details-card h2 {
        font-size: 27px;
    }

    .detail-item {
        width: 100%;
        max-width: 100%;
        gap: 12px;
        padding: 15px 10px;
    }

    .detail-item > span {
        flex: 0 0 30px;
        width: 30px;
        min-width: 30px;
        font-size: 22px;
    }

    .detail-item small {
        font-size: 13px;
    }

    .detail-item strong {
        font-size: 15px;
        line-height: 1.5;
    }

    .map-btn {
        display: flex;
        width: 100%;
        max-width: 260px;
        margin: 20px auto 0;
        justify-content: center;
        align-items: center;
        font-size: 15px;
    }

    .details-btn {
        width: auto;
        max-width: 90%;
        min-width: 180px;
        padding: 13px 24px;
        font-size: 15px;
    }

    .scratch-date {
        width: min(190px, 100%);
        max-width: 100%;
        margin: 6px auto 0;
    }

    /* Events / Timeline */
    .events-section {
        padding: 65px 15px;
    }

    .events-card {
        padding: 40px 15px;
    }

    .events-card h2 {
        font-size: 29px;
    }

    .timeline::before {
        left: 22px;
        transform: none;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        width: 100%;
        margin-left: 0;
        padding: 15px 10px 15px 65px;
        text-align: left;
    }

    .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 0;
        right: auto;
        top: 25px;
    }

    .timeline-content h3 {
        font-size: 21px;
    }

    .timeline-content p {
        font-size: 15px;
    }

    /* Family */
    .family-section {
        padding: 65px 15px;
    }

    .family-card {
        padding: 40px 18px;
    }

    .family-card h2 {
        font-size: 29px;
    }

    .family-names {
        grid-template-columns: 1fr;
    }

    .parent-card h3 {
        font-size: 18px;
    }

    /* Message */
    .message-section {
        padding: 65px 15px;
    }

    .message-card {
        padding: 45px 20px;
    }

    .message-card h2 {
        font-size: 29px;
    }

    .main-message {
        font-size: 16px;
        line-height: 28px;
    }

    .message-names {
        font-size: 25px;
    }

    /* RSVP */
    .rsvp-section {
        padding: 65px 15px;
    }

    .rsvp-card {
        padding: 40px 20px;
    }

    .rsvp-card h2 {
        font-size: 29px;
    }

    .rsvp-intro {
        font-size: 15px;
    }

    /* Admin: dashboard */
    .dashboard-page {
        padding: 15px;
    }

    .dashboard-header {
        padding: 20px;
        align-items: flex-start;
        gap: 15px;
    }

    .dashboard-header h1 {
        font-size: 24px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .rsvp-admin-section {
        width: 100%;
        max-width: 100%;
        padding: 20px 14px;
        margin: 20px auto;
        border-radius: 18px;
    }

    .admin-section-title {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .admin-section-title h2 {
        font-size: 25px;
    }

    .admin-section-title p {
        font-size: 14px;
    }

    .refresh-rsvps-btn {
        width: 100%;
    }

    .rsvp-search-box {
        width: 100%;
        margin: 15px 0;
    }

    .rsvp-search-box input {
        width: 100%;
        min-height: 48px;
        padding: 12px 14px;
        font-size: 16px;
        border-radius: 12px;
    }

    .rsvp-item-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .rsvp-item-header h3 {
        max-width: 100%;
        font-size: 18px;
        overflow-wrap: break-word;
    }

    .rsvp-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .rsvp-item {
        width: 100%;
        min-width: 0;
        padding: 15px;
        border-radius: 15px;
        overflow-wrap: break-word;
    }

    .rsvp-details p {
        overflow-wrap: break-word;
    }

    .rsvp-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .rsvp-controls select {
        width: 100%;
    }

    .guest-total-box {
        text-align: center;
    }

    /* Admin: editor */
    .wedding-editor {
        padding: 20px 15px;
    }

    .editor-grid {
        grid-template-columns: 1fr;
    }

    .save-details-btn {
        width: 100%;
    }

    .details-save-status {
        display: block;
        margin: 15px 0 0;
        text-align: center;
    }

    /* Admin login */
    .admin-login-card {
        padding: 40px 22px;
    }

    .admin-login-card h1 {
        font-size: 28px;
    }

    /* Music button */
    .music-toggle {
        width: 52px;
        height: 52px;
        right: 14px;
        bottom: 14px;
        font-size: 23px;
    }

    footer {
        padding: 30px 16px;
        text-align: center;
    }
}

/* ---- Small phones ---- */
@media (max-width: 380px) {

    body {
        font-size: 14px;
    }

    section {
        padding-left: 12px;
        padding-right: 12px;
    }

    .countdown-card {
        padding-left: 8px;
        padding-right: 8px;
    }

    .countdown-container {
        gap: 7px;
    }

    .time-box {
        min-height: 88px;
    }

    .time-box span {
        font-size: 27px;
    }

    .time-box small {
        font-size: 12px;
    }

    .details-card {
        padding-left: 10px;
        padding-right: 10px;
    }

    .rsvp-admin-section {
        padding: 16px 10px;
    }

    .music-toggle {
        width: 48px;
        height: 48px;
        right: 10px;
        bottom: 10px;
    }
}
/* =================================
   FALLING ROSE PETALS
================================= */

.falling-petals {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;

    pointer-events: none;
    overflow: hidden;

    z-index: 500;
}

.petal {
    position: absolute;
    top: -40px;

    width: 14px;
    height: 18px;

    border-radius: 0% 100% 0% 100% / 0% 100% 0% 100%;

    background: linear-gradient(
        135deg,
        var(--petal-light, #ff8fa3),
        var(--petal-dark, #c9184a)
    );

    box-shadow: inset -2px -2px 4px rgba(0, 0, 0, .15);

    opacity: 0.9;

    animation: petalFall linear infinite;
    will-change: transform, opacity;
}

@keyframes petalFall {
    0% {
        transform:
            translateY(0)
            translateX(0)
            rotate(0deg);
        opacity: 0.95;
    }
    100% {
        transform:
            translateY(110vh)
            translateX(var(--drift))
            rotate(var(--spin));
        opacity: 0.4;
    }
}
/* =================================
   GRAND GATE OPENING SCREEN
================================= */

#envelope-screen {
    position: fixed;
    inset: 0;
    z-index: 10000;

    overflow: hidden;
    cursor: pointer;

    transition: opacity .6s ease;
}

#envelope-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.gate-door {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;

    background: linear-gradient(135deg, #7a0000, #a00000 40%, #d4af37);
    box-sizing: border-box;

    box-shadow: 0 0 40px rgba(0, 0, 0, .5);

    transition: transform 1.1s cubic-bezier(.65, 0, .35, 1);

    z-index: 2;
}

.gate-left {
    left: 0;
    border-right: 4px solid #7a0000;
}

.gate-right {
    right: 0;
    border-left: 4px solid #7a0000;
}

.gate-pattern {
    position: absolute;
    inset: 20px;

    border: 2px solid rgba(255, 215, 0, .5);
    border-radius: 6px;
}

.gate-pattern::before {
    content: "❀";
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);

    color: rgba(255, 215, 0, .6);
    font-size: 22px;
}

.gate-handle {
    position: absolute;
    top: 50%;
    width: 14px;
    height: 14px;

    border-radius: 50%;
    background: gold;

    box-shadow: 0 0 10px rgba(255, 215, 0, .8);

    transform: translateY(-50%);
}

.gate-left .gate-handle { right: 25px; }
.gate-right .gate-handle { left: 25px; }

.gate-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;

    text-align: center;
    z-index: 3;
}

.gate-emblem {
    width: 70px;
    height: 70px;

    display: flex;
    justify-content: center;
    align-items: center;

    font-size: 34px;

    border-radius: 50%;
    background: radial-gradient(circle, #fff3cf, #ffd700);

    box-shadow: 0 0 25px rgba(255, 215, 0, .7);

    animation: gatePulse 1.8s infinite;
}

@keyframes gatePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.envelope-tap-text {
    color: gold;
    font-size: 16px;
    letter-spacing: 1px;

    animation: tapBlink 1.6s infinite;
}

@keyframes tapBlink {
    0%, 100% { opacity: .55; }
    50% { opacity: 1; }
}

/* Gate opening state */

#envelope-screen.open .gate-left {
    transform: translateX(-100%);
}

#envelope-screen.open .gate-right {
    transform: translateX(100%);
}

#envelope-screen.open .gate-content {
    opacity: 0;
    transition: opacity .4s ease;
}

@media (max-width: 500px) {

    .gate-emblem {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
}

/* =================================
   FIX: opening-screen content cut-off
================================= */

#opening-screen {
    min-height: 100vh;
    height: auto;

    overflow-y: auto;
    padding: 30px 15px;
    box-sizing: border-box;
}

@media (max-width: 500px) {

    .envelope {
        width: 100%;
        max-width: 340px;
        padding: 30px 20px;
    }

    .envelope h2 {
        font-size: 46px;
    }

    .envelope p {
        line-height: 24px;
    }
}
/* =================================
   ADD TO CALENDAR
================================= */

.calendar-wrap {
    position: relative;
    display: inline-block;
    margin-top: 14px;
}

.calendar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 13px 28px;

    background: transparent;
    color: #ffd700;

    border: 2px solid #ffd700;
    border-radius: 50px;

    font-size: 15px;
    font-weight: 700;
    cursor: pointer;

    transition: .3s;
}

.calendar-btn:hover {
    background: #ffd700;
    color: #650000;
}

.calendar-options {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);

    width: max-content;
    min-width: 220px;

    display: flex;
    flex-direction: column;
    gap: 8px;

    padding: 14px;

    border: 1px solid rgba(255, 215, 0, .5);
    border-radius: 16px;

    background: #500000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .4);

    z-index: 50;
}
.calendar-options.hidden {
    display: none;
}

.calendar-option {
    display: block;
    padding: 10px 14px;

    color: #fff;
    text-decoration: none;
    font-size: 14px;

    border-radius: 10px;
    background: rgba(255, 255, 255, .06);

    transition: .25s;
}

.calendar-option:hover {
    background: rgba(255, 215, 0, .15);
}

@media (max-width: 500px) {

    .calendar-wrap {
        display: block;
        width: 100%;
    }

    .calendar-btn {
        width: 100%;
    }

    .calendar-options {
        width: 100%;
        min-width: 0;
    }
}
/* =================================
   GOLD SPARKLE PARTICLES
================================= */

.sparkle-layer {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;

    pointer-events: none;
    overflow: hidden;

    z-index: 400; /* petals (500) se neeche, background se upar */
}

.sparkle {
    position: absolute;

    width: 4px;
    height: 4px;

    border-radius: 50%;
    background: #ffe066;

    box-shadow: 0 0 6px 2px rgba(255, 215, 0, .8);

    opacity: 0;

    animation: sparkleTwinkle ease-in-out forwards;
}

@keyframes sparkleTwinkle {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
    100% {
        opacity: 0;
        transform: scale(0.3);
    }
}
