/* ==========================================================================
   PREMIUM WEDDING INVITATION CUSTOM STYLES (Vanilla CSS)
   Palette: Cream, Gold, Sage Green, Terracotta, Burgundy, Chocolate
   ========================================================================== */

/* 1. Imports and Resets */
:root {
    --bg-cream: #FAF7F2;
    --text-dark: #2C2520;
    --text-light: #6E655F;
    --sage-green: #8D9984;
    --sage-dark: #5B6953;
    --gold-color: #C5A880;
    --gold-dark: #A4855C;
    --gold-light: #E2D7C7;
    --terracotta: #A64B29;
    --burgundy: #671F23;
    --chocolate: #482D22;
    
    /* Glassmorphism Variables */
    --glass-bg: rgba(255, 255, 255, 0.45);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-shadow: 0 8px 24px rgba(91, 105, 83, 0.08);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-cream);
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(226, 215, 199, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(141, 153, 132, 0.15) 0%, transparent 40%);
    background-attachment: fixed;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-cream);
}
::-webkit-scrollbar-thumb {
    background: var(--gold-color);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold-dark);
}

/* 2. Layout & Typography Components */
.app-container {
    width: 100%;
    max-width: 600px; /* Centered mobile container feel, matches premium layouts */
    margin: 0 auto;
    padding-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.container {
    padding: 2.5rem 1.2rem;
    width: 100%;
}

.text-center {
    text-align: center;
}

.cursive {
    font-family: 'Marck Script', cursive;
}

.divider-gold {
    width: 60px;
    height: 1.5px;
    background-color: var(--gold-color);
    margin: 1.5rem auto;
    position: relative;
}
.divider-gold::after {
    content: '❦';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-cream);
    padding: 0 0.5rem;
    color: var(--gold-color);
    font-size: 0.8rem;
}

.section-decor-leaf {
    font-size: 1.5rem;
    color: var(--gold-color);
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

/* Glassmorphism Panel style */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem 1.8rem;
    box-shadow: var(--glass-shadow);
}

.card-shadow {
    box-shadow: 0 10px 30px rgba(44, 37, 32, 0.06);
}

/* Section Title styling */
.section-title {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    text-align: center;
    letter-spacing: 0.05em;
    position: relative;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    outline: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.btn-icon {
    margin-right: 8px;
    display: inline-block;
}

.btn-primary {
    background-color: var(--sage-dark);
    color: #ffffff;
}
.btn-primary:hover {
    background-color: var(--sage-green);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(91, 105, 83, 0.3);
}
.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-dark);
    border: 1.5px solid var(--gold-color);
}
.btn-secondary:hover {
    background-color: var(--gold-color);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-danger {
    background-color: var(--burgundy);
    color: #ffffff;
}
.btn-danger:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1.1rem 2.5rem;
    font-size: 0.95rem;
}

.btn-sm {
    padding: 0.6rem 1.2rem;
    font-size: 0.75rem;
    border-radius: 20px;
}

/* 3. Hero Section (Главный экран) */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1.2rem;
}

.hero-card {
    width: 100%;
    text-align: center;
    padding: 3rem 2rem 2.5rem 2rem;
    border-radius: 30px;
}

.hero-top-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.35em;
    color: var(--text-light);
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.save-the-date {
    font-family: 'Marck Script', cursive;
    font-size: 2.8rem;
    color: var(--gold-dark);
    margin-bottom: 2rem;
    animation: pulseSlow 3s infinite ease-in-out;
}

/* Elegant Arched Photo Frame */
.photo-frame-container {
    position: relative;
    width: 230px;
    height: 320px;
    margin: 0 auto 2.2rem auto;
}

.photo-frame {
    width: 100%;
    height: 100%;
    border-radius: 115px 115px 24px 24px; /* Classic modern arch */
    overflow: hidden;
    border: 3px solid #ffffff;
    box-shadow: 0 15px 35px rgba(44, 37, 32, 0.12);
    position: relative;
    z-index: 2;
}

.hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 25% center;
}

.frame-decor {
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 1px solid var(--gold-color);
    border-radius: 123px 123px 32px 32px;
    z-index: 1;
    opacity: 0.65;
}

.gold-glow {
    box-shadow: 0 0 15px rgba(197, 168, 128, 0.15);
}

.wedding-names {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 1.2rem;
    letter-spacing: 0.05em;
}

.hero-invite-text {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
    margin: 0 auto;
    max-width: 420px;
    font-weight: 300;
}

/* Scroll Down Mouse */
.scroll-down-indicator {
    margin-top: 2.2rem;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.6;
}

.mouse-icon {
    width: 22px;
    height: 36px;
    border: 1.5px solid var(--text-light);
    border-radius: 12px;
    position: relative;
}

.mouse-wheel {
    display: block;
    width: 4px;
    height: 8px;
    background-color: var(--text-light);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollMouse 1.8s infinite;
}

.arrow-down {
    display: block;
    width: 8px;
    height: 8px;
    border-bottom: 1.5px solid var(--text-light);
    border-right: 1.5px solid var(--text-light);
    transform: rotate(45deg);
    margin-top: 6px;
    animation: arrowBlink 1.8s infinite;
}

/* 4. Calendar Section (Календарь) */
.date-large {
    font-family: 'Playfair Display', serif;
    font-size: 2.6rem;
    font-weight: 500;
    color: var(--text-dark);
    letter-spacing: 0.1em;
}

.month-title {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    font-size: 1.1rem;
    letter-spacing: 0.25em;
    color: var(--text-dark);
    margin: 1rem 0 1.5rem 0;
    text-transform: uppercase;
}

.calendar-wrapper {
    max-width: 320px;
    margin: 0 auto;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px 4px;
    margin-top: 1rem;
}

.calendar-day-header {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--sage-green);
    padding-bottom: 0.5rem;
}

.calendar-day {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    position: relative;
    user-select: none;
    font-weight: 400;
}

.calendar-day.empty {
    visibility: hidden;
}

/* Pulse heart marked day */
.calendar-day.wedding-day {
    color: var(--burgundy);
    font-weight: 700;
    font-size: 1.2rem;
    z-index: 1;
}

.heart-svg {
    position: absolute;
    width: 34px;
    height: 34px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    fill: none;
    stroke: var(--gold-color);
    stroke-width: 1.2px;
    z-index: -1;
    animation: heartPulse 2s infinite ease-in-out;
}

.calendar-day.wedding-day .day-number {
    position: relative;
    top: -1px;
}

/* 5. Program Section (Программа дня) */
.timeline-container {
    position: relative;
    max-width: 500px;
    margin: 2rem auto 0 auto;
    padding-left: 2rem;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 11px;
    width: 2px;
    height: 100%;
    background-image: linear-gradient(to bottom, var(--gold-color) 0%, var(--gold-color) 80%, transparent 100%);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-icon-box {
    position: absolute;
    left: -2rem;
    top: 10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--bg-cream);
    border: 2px solid var(--gold-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    color: var(--gold-dark);
    transition: var(--transition-smooth);
}

.timeline-icon {
    width: 13px;
    height: 13px;
}

.timeline-item:hover .timeline-icon-box {
    background-color: var(--gold-color);
    color: #ffffff;
    transform: scale(1.2);
}

.timeline-content {
    padding: 1.5rem !important;
    border-radius: 20px;
}

.timeline-time {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gold-dark);
    margin-bottom: 0.3rem;
}

.timeline-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.timeline-desc {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.6;
    font-weight: 300;
}

/* 6. Dress Code Section */
.dresscode-text {
    font-size: 0.9rem;
    color: var(--text-light);
    max-width: 440px;
    margin: 0 auto 2.2rem auto;
}

.color-palette-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 10px;
    max-width: 320px;
    margin: 0 auto 1rem auto;
    justify-items: center;
}

.color-circle-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.color-circle {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 3.5px solid #ffffff;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.12), 0 6px 15px rgba(44, 37, 32, 0.08);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

/* Beautiful volumetric silk/satin luxury sheen overlay */
.color-circle::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.45) 0%, 
        rgba(255, 255, 255, 0.05) 45%, 
        rgba(0, 0, 0, 0.05) 50%, 
        rgba(255, 255, 255, 0.3) 55%, 
        rgba(0, 0, 0, 0.15) 100%
    );
    pointer-events: none;
}

.color-circle-wrapper:hover {
    transform: translateY(-5px);
}

.color-circle-wrapper:hover .color-circle {
    box-shadow: inset 0 0 8px rgba(0,0,0,0.08), 0 10px 22px rgba(44, 37, 32, 0.16);
    transform: scale(1.05);
}

.color-label {
    margin-top: 8px;
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: 0.02em;
    text-align: center;
    white-space: nowrap;
}

.copy-hint {
    display: block;
    font-size: 0.65rem;
    color: var(--text-light);
    opacity: 0.6;
    margin-bottom: 2.5rem;
}

/* Countdown Timer Styling */
.countdown-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.countdown-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    max-width: 380px;
    margin: 0 auto;
}

.countdown-item {
    flex: 1;
    min-width: 72px;
    padding: 0.8rem 0.5rem;
    border-radius: 16px;
    text-align: center;
}

.countdown-num {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.1rem;
}

.countdown-label {
    display: block;
    font-size: 0.68rem;
    color: var(--text-light);
    text-transform: lowercase;
}

.glass-item {
    background: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 15px rgba(91, 105, 83, 0.04);
}

/* 7. Address & Map Section */
.location-name {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
    letter-spacing: 0.05em;
}

.location-address {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1.8rem;
}

.map-wrapper {
    width: 100%;
    height: 250px;
    border-radius: 20px;
    overflow: hidden;
    border: 1.5px solid rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

.map-buttons {
    display: flex;
    justify-content: center;
}

/* 8. Details Section */
.details-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.details-card {
    text-align: center;
    padding: 2.2rem 1.5rem !important;
    transition: var(--transition-smooth);
}

.details-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(91, 105, 83, 0.1);
}

.details-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--gold-light);
    color: var(--gold-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
}

.details-icon {
    width: 22px;
    height: 22px;
}

.details-card h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.details-card p {
    font-size: 0.82rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.phone-button {
    display: inline-block;
    background-color: var(--text-dark);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.7rem 1.8rem;
    border-radius: 30px;
    text-decoration: none;
    margin: 0.8rem 0;
    transition: var(--transition-smooth);
    border: 1.5px solid var(--text-dark);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.phone-button:hover {
    background-color: transparent;
    color: var(--text-dark);
}

.coordinator-name {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 0.4rem;
}

.whatsapp-link {
    font-size: 0.75rem;
    color: var(--sage-dark);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1.5px dashed var(--sage-dark);
    transition: var(--transition-smooth);
}

.whatsapp-link:hover {
    color: var(--sage-green);
    border-bottom-color: var(--sage-green);
}

/* 9. RSVP Section & Form elements */
.rsvp-subtitle {
    font-size: 0.85rem;
    color: var(--text-light);
    max-width: 440px;
    margin: 0.5rem auto 2.2rem auto;
    line-height: 1.7;
}

.rsvp-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: 0.02em;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border-radius: 14px;
    border: 1px solid rgba(197, 168, 128, 0.4);
    background-color: rgba(255, 255, 255, 0.85);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.88rem;
    color: var(--text-dark);
    transition: var(--transition-smooth);
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--sage-green);
    background-color: #ffffff;
    box-shadow: 0 0 10px rgba(141, 153, 132, 0.1);
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

/* RSVP Radio cards */
.rsvp-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 0.3rem;
}

.rsvp-radio-card {
    cursor: pointer;
}

.rsvp-radio-card input[type="radio"] {
    display: none;
}

.radio-card-content {
    height: 100%;
    padding: 1rem 0.8rem;
    border: 1px solid rgba(197, 168, 128, 0.4);
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: var(--transition-smooth);
}

.radio-title {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-dark);
}

.rsvp-radio-card input[type="radio"]:checked + .radio-card-content {
    background-color: var(--sage-green);
    border-color: var(--sage-green);
    box-shadow: 0 6px 15px rgba(141, 153, 132, 0.2);
}

.rsvp-radio-card input[type="radio"]:checked + .radio-card-content .radio-title {
    color: #ffffff;
    font-weight: 600;
}

/* Inline Radio list */
.form-inline-radios {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.3rem;
}

.radio-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    cursor: pointer;
    user-select: none;
}

.radio-inline input[type="radio"] {
    accent-color: var(--sage-green);
    width: 16px;
    height: 16px;
}

/* Checkbox group */
.checkbox-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 0.3rem;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    accent-color: var(--sage-green);
    width: 17px;
    height: 17px;
    border-radius: 4px;
}

/* Attending Details Wrapper and Utilities */
.attending-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-height: 1200px;
    overflow: hidden;
    transition: max-height 0.5s ease-out, opacity 0.4s ease-out;
    opacity: 1;
}

.attending-details.hidden {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    margin: 0;
}

.hidden {
    display: none !important;
}

/* Success Message Container */
.rsvp-success-message {
    padding: 1.5rem 0.5rem;
    animation: scaleIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.success-icon-box {
    font-size: 3.5rem;
    color: var(--burgundy);
    line-height: 1;
    margin-bottom: 1.2rem;
    animation: heartBeat 1.5s infinite;
}

.rsvp-success-message h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
}

.rsvp-success-message p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.4rem;
}

.rsvp-success-message .success-subtext {
    font-family: 'Marck Script', cursive;
    font-size: 1.6rem;
    color: var(--gold-dark);
    margin-top: 1rem;
}

/* 10. Footer Section */
.footer {
    padding: 3rem 1.2rem 1.5rem 1.2rem;
}

.footer p {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
    letter-spacing: 0.05em;
}

.footer-names {
    font-family: 'Marck Script', cursive;
    font-size: 2.2rem;
    color: var(--gold-dark);
}

/* 11. Custom Toast messages */
.toast-message {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: var(--text-dark);
    color: #ffffff;
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 9999;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-message.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* 12. Floating Particles Backdrop */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.leaf-particle {
    position: absolute;
    pointer-events: none;
    background-color: var(--sage-green);
    border-radius: 0 100% 0 100%;
    opacity: 0.25;
    animation: drift 12s linear infinite;
    transform-origin: center;
}

.leaf-particle.gold {
    background-color: var(--gold-color);
    border-radius: 50%;
    opacity: 0.2;
}

/* 13. Admin Dashboard overlay (Secret Panel) */
.admin-trigger-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--text-dark);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: var(--transition-smooth);
}

.admin-trigger-btn:hover {
    transform: scale(1.1) rotate(45deg);
    background-color: var(--sage-dark);
}

.admin-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(44, 37, 32, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem;
    animation: fadeIn 0.3s ease-out;
}

.admin-panel-content {
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    background-color: var(--bg-cream) !important;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
}

.admin-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    border-bottom: 1.5px solid var(--gold-light);
    margin-bottom: 1.5rem;
}

.admin-panel-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 500;
}

.admin-close-btn {
    background: none;
    border: none;
    font-size: 2.2rem;
    color: var(--text-light);
    cursor: pointer;
    line-height: 0.5;
    transition: var(--transition-smooth);
}

.admin-close-btn:hover {
    color: var(--burgundy);
}

.admin-tabs {
    display: flex;
    border-bottom: 1.5px solid var(--gold-light);
    margin-bottom: 1.5rem;
    gap: 8px;
}

.admin-tab-btn {
    padding: 0.7rem 1.2rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.admin-tab-btn:hover {
    color: var(--text-dark);
}

.admin-tab-btn.active {
    color: var(--sage-dark);
    border-bottom-color: var(--sage-dark);
    font-weight: 600;
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
}

.admin-action-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

/* Database Table Styles */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--gold-light);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    text-align: left;
    background-color: #ffffff;
}

.admin-table th, .admin-table td {
    padding: 0.9rem 1.2rem;
    border-bottom: 1px solid var(--bg-cream);
}

.admin-table th {
    background-color: var(--gold-light);
    color: var(--text-dark);
    font-weight: 600;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tbody tr:hover {
    background-color: var(--bg-cream);
}

.badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-success {
    background-color: rgba(141, 153, 132, 0.2);
    color: var(--sage-dark);
}

.badge-danger {
    background-color: rgba(103, 31, 35, 0.15);
    color: var(--burgundy);
}

.btn-delete-row {
    background: none;
    border: none;
    color: var(--burgundy);
    cursor: pointer;
    font-size: 1rem;
}

/* Analytics Stats Tab Styles */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: #ffffff;
    border: 1px solid var(--gold-light);
    padding: 1.2rem 0.8rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.stat-num {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.2rem;
}

.text-success { color: var(--sage-dark) !important; }
.text-danger { color: var(--burgundy) !important; }
.text-primary { color: var(--gold-dark) !important; }

.stat-label {
    font-size: 0.72rem;
    color: var(--text-light);
    font-weight: 500;
}

.stats-details-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stats-col h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    font-size: 1.05rem;
    margin-bottom: 1rem;
    border-bottom: 1.5px solid var(--gold-light);
    padding-bottom: 0.4rem;
}

.stats-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stats-list li {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-dark);
    border-bottom: 1px dashed var(--gold-light);
    padding-bottom: 4px;
}

.stats-list li span:last-child {
    font-weight: 600;
}

/* Telegram settings tab */
.tg-setup-instructions {
    background-color: #ffffff;
    border: 1px solid var(--gold-light);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.tg-setup-instructions h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
}

.tg-setup-instructions p {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.8rem;
}

.tg-setup-instructions ol {
    padding-left: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tg-setup-instructions li {
    font-size: 0.78rem;
    color: var(--text-dark);
}

.tg-setup-instructions code {
    background-color: var(--bg-cream);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--burgundy);
}

.tg-settings-form {
    background-color: #ffffff;
    border: 1px solid var(--gold-light);
    border-radius: 16px;
    padding: 1.8rem;
}

.tg-test-status {
    font-size: 0.8rem;
    font-weight: 500;
}

/* 14. Reveal animations & Viewport Trigger */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s ease-out, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Keyframes animations */
@keyframes scrollMouse {
    0% { top: 6px; opacity: 0; }
    30% { opacity: 1; }
    80% { top: 18px; opacity: 0; }
    100% { top: 6px; opacity: 0; }
}

@keyframes arrowBlink {
    0% { opacity: 0.2; transform: rotate(45deg) translate(0, 0); }
    50% { opacity: 1; transform: rotate(45deg) translate(2px, 2px); }
    100% { opacity: 0.2; transform: rotate(45deg) translate(0, 0); }
}

@keyframes pulseSlow {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes heartPulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.85; }
    50% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; stroke: var(--burgundy); }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0.85; }
}

@keyframes drift {
    0% {
        transform: translate(0, -10%) rotate(0deg);
        top: -10%;
    }
    100% {
        transform: translate(150px, 110vh) rotate(360deg);
        top: 100%;
    }
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.2); }
    28% { transform: scale(1); }
    42% { transform: scale(1.2); }
    70% { transform: scale(1); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

/* 15. Responsive Adaptability Media Queries */
@media (max-width: 480px) {
    .container {
        padding: 2rem 1rem;
    }
    
    .glass-panel {
        padding: 2rem 1.2rem;
    }
    
    .date-large {
        font-size: 2.1rem;
    }
    
    .save-the-date {
        font-size: 2.3rem;
    }
    
    .countdown-container {
        gap: 6px;
    }
    
    .countdown-item {
        min-width: 62px;
        padding: 0.6rem 0.3rem;
    }
    
    .countdown-num {
        font-size: 1.5rem;
    }
    
    .color-circle {
        width: 50px;
        height: 50px;
    }
    
    .rsvp-options-grid {
        grid-template-columns: 1fr;
    }
    
    .vertical-mobile {
        flex-direction: column;
        gap: 12px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-details-row {
        grid-template-columns: 1fr;
    }
}
