* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(216,167,111,0.25), transparent 30%),
        radial-gradient(circle at bottom right, rgba(255,220,200,0.45), transparent 30%),
        linear-gradient(135deg, #fffaf5, #f8eadc);
    color: #4f3828;
    min-height: 100vh;
}

.page-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.invite-card {
    width: 100%;
    max-width: 820px;
    background: rgba(255,255,255,0.95);
    border-radius: 34px;
    padding: 48px;
    text-align: center;
    box-shadow: 0 30px 90px rgba(80,50,20,0.16);
    border: 1px solid rgba(216,167,111,0.35);
}

.invite-card.small {
    max-width: 520px;
}

.top-badge {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 100px;
    background: #d8a76f;
    color: white;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 13px;
    margin-bottom: 18px;
}

h1 {
    font-family: Georgia, serif;
    font-size: 52px;
    margin: 10px 0;
    color: #6f4e37;
}

h2 {
    font-size: 26px;
    color: #b6814f;
    margin-top: 0;
}

.guest-line {
    font-size: 22px;
}

.intro,
.footer-note {
    font-size: 18px;
    line-height: 1.7;
    color: #665243;
}

.countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin: 30px 0;
}

.countdown div {
    background: #fff4e8;
    padding: 20px;
    border-radius: 18px;
    border: 1px solid #ecd1b8;
}

.countdown span {
    display: block;
    font-size: 30px;
    font-weight: bold;
    color: #6f4e37;
}

.countdown small {
    color: #876345;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 30px 0;
}

.details-grid div {
    background: #fff8f1;
    padding: 18px;
    border-radius: 18px;
    text-align: left;
}

.details-grid span {
    display: block;
    color: #a2744c;
    font-size: 13px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.details-grid strong {
    font-size: 16px;
}

.button-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 25px 0;
}

.btn,
button {
    border: none;
    border-radius: 16px;
    padding: 14px 20px;
    text-decoration: none;
    cursor: pointer;
    font-weight: 700;
    background: #6f4e37;
    color: white;
    display: inline-block;
}

.btn.gold {
    background: #d8a76f;
}

.btn.secondary {
    background: #9a6a45;
}

.btn.whatsapp {
    background: #25D366;
}

.qr-box {
    margin: 30px auto;
    background: #fff8f1;
    border-radius: 22px;
    padding: 20px;
    max-width: 300px;
}

.qr-box img {
    width: 180px;
    height: 180px;
}

.rsvp-form {
    text-align: left;
    margin-top: 30px;
}

.rsvp-form label {
    display: block;
    margin-top: 16px;
    font-weight: 700;
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
    width: 100%;
    margin-top: 7px;
    padding: 15px;
    border-radius: 14px;
    border: 1px solid #dec4ad;
    font-size: 16px;
}

.rsvp-form textarea {
    min-height: 110px;
}

.rsvp-form button {
    width: 100%;
    margin-top: 24px;
    font-size: 17px;
}

.alert {
    padding: 18px;
    border-radius: 16px;
    margin: 22px 0;
}

.alert.success {
    background: #d4edda;
    color: #155724;
}

.alert.error {
    background: #f8d7da;
    color: #721c24;
}

/* Admin dashboard */

.dashboard-shell {
    max-width: 1200px;
    margin: auto;
    padding: 35px;
}

.dashboard-header {
    background: white;
    border-radius: 24px;
    padding: 25px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    box-shadow: 0 20px 55px rgba(80,50,20,0.10);
}

.dashboard-header h1 {
    font-size: 36px;
}

.admin-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin: 25px 0;
}

.stat-card,
.chart-card,
.table-card {
    background: white;
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 20px 55px rgba(80,50,20,0.10);
}

.stat-card h2 {
    margin: 0;
    font-size: 34px;
    color: #6f4e37;
}

.stat-card p {
    margin: 8px 0 0;
    color: #7a5b43;
}

.chart-card {
    max-width: 500px;
    margin-bottom: 25px;
}

.table-card {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

th,
td {
    padding: 14px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

th {
    background: #6f4e37;
    color: white;
}

.status {
    padding: 7px 12px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: bold;
}

.status.yes {
    background: #d4edda;
    color: #155724;
}

.status.no {
    background: #f8d7da;
    color: #721c24;
}

.status.maybe {
    background: #fff3cd;
    color: #856404;
}

.status.pending {
    background: #e2e3e5;
    color: #383d41;
}

.copy-link {
    width: 260px;
    padding: 9px;
    border-radius: 10px;
    border: 1px solid #ddd;
}

@media(max-width: 700px) {
    .invite-card {
        padding: 28px;
        border-radius: 24px;
    }

    h1 {
        font-size: 36px;
    }

    .countdown {
        grid-template-columns: repeat(2, 1fr);
    }

    .details-grid {
        grid-template-columns: 1fr;
    }

    .button-row {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .dashboard-shell {
        padding: 18px;
    }
}