/* Baby Shower Website Styles */
/* Indian/Gujarati Theme with Luxury Design */

/* CSS Variables - Premium Gender-Neutral Palette */
:root {
    /* Background colors */
    --bg-primary: #F6F1E8;
    --bg-surface: #FFF9F2;
    --bg-light: #FAF7F2;
    --bg-white: #ffffff;
    
    /* Accent colors */
    --accent-sage: #A9B8A2;
    --accent-taupe: #B7A89A;
    --accent-gold: #C7A96B;
    
    /* Primary colors */
    --primary-color: #8B9A8B;
    --secondary-color: #6B7B6B;
    --text-dark: #3F372F;
    --text-medium: #5A524A;
    --text-light: #8B8075;
    
    /* Borders and shadows */
    --border-color: #E5DDD3;
    --border-light: #EDE8E0;
    --card-shadow: 0 4px 20px rgba(63, 55, 47, 0.08);
    --card-shadow-hover: 0 8px 30px rgba(63, 55, 47, 0.12);
    
    /* Status colors */
    --success-color: #7A9E7A;
    --error-color: #B87B6B;
    --warning-color: #C9A86C;
    
    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    color: var(--text-dark);
    margin-bottom: 3.5rem;
    position: relative;
    font-weight: 500;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(to right, var(--accent-gold), var(--accent-sage));
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(160deg, #E8DED0 0%, #D4C8B8 50%, #C4B8A8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.05);
    opacity: 0.3;
}

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
    max-width: 800px;
    padding: 2rem;
}

.invitation-text {
    margin-bottom: 2rem;
}

.invitation-prefix {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-weight: 300;
}

.family-name {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

.main-title {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    margin-bottom: 2rem;
}

.baby-name {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.decorative-line {
    width: 100px;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    margin: 1.5rem auto;
}

.celebration-title {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.celebration-text {
    font-size: 1.2rem;
    color: var(--text-light);
    font-weight: 300;
    line-height: 1.8;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--secondary-color);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Countdown Timer */
.countdown-container {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    margin-top: 2rem;
}

.countdown-title {
    text-align: center;
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.countdown-item {
    text-align: center;
    min-width: 80px;
}

.countdown-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
    line-height: 1;
}

.countdown-label {
    font-size: 0.9rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

/* Event Details Section */
.event-details {
    padding: 5rem 0;
    background: var(--bg-white);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.detail-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.detail-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.detail-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--bg-white);
    font-size: 1.5rem;
}

.detail-content h4 {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.detail-content p {
    color: var(--text-dark);
    font-weight: 500;
}

.detail-subtext {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 0.3rem;
    font-weight: 400;
}

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

/* Buttons */
.btn-primary, .btn-secondary, .btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-sage) 100%);
    color: var(--bg-white);
    box-shadow: var(--card-shadow);
    border: none;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-shadow-hover);
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-sage) 100%);
}

.btn-secondary {
    background: var(--bg-surface);
    color: var(--text-dark);
    border: 1.5px solid var(--border-color);
    font-weight: 500;
}

.btn-secondary:hover {
    background: var(--bg-white);
    border-color: var(--accent-sage);
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-submit {
    background: linear-gradient(135deg, var(--accent-sage) 0%, var(--accent-gold) 100%);
    color: var(--bg-white);
    width: 100%;
    justify-content: center;
    font-size: 1.1rem;
    padding: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    border: none;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-shadow-hover);
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-gold) 100%);
}


/* Welcome Message */
.welcome-message {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 3rem;
    box-shadow: var(--card-shadow);
    border-left: 4px solid var(--primary-color);
}

.welcome-message p {
    color: var(--text-dark);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.welcome-message p:last-child {
    margin-bottom: 0;
}

/* RSVP Section */
.rsvp-section {
    padding: 5rem 0;
    background: var(--bg-light);
}

.rsvp-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.gift-note {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 3rem;
    box-shadow: var(--card-shadow);
    border-left: 4px solid var(--primary-color);
}

.gift-note p {
    color: var(--text-dark);
    font-style: italic;
    line-height: 1.8;
}

/* Edit RSVP Section */
.edit-rsvp-section {
    text-align: center;
    margin-bottom: 2rem;
}

.edit-rsvp-text {
    color: var(--text-light);
    font-size: 0.95rem;
}

.edit-rsvp-text a {
    color: var(--accent-sage);
    font-weight: 500;
    text-decoration: underline;
    cursor: pointer;
}

.edit-lookup-form {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.edit-lookup-form input {
    padding: 0.875rem 1.25rem;
    border: 1.5px solid var(--border-color);
    border-radius: 50px;
    font-size: 1rem;
    min-width: 250px;
}

/* Form Styles */
.rsvp-form {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

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

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-family: 'Poppins', sans-serif;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    background: var(--bg-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

/* Counter Input Styles - Premium Design */
.counter-input {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
    background: var(--bg-light);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    border: 2px solid var(--border-color);
    max-width: 200px;
    margin: 0 auto;
}

.counter-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--accent-sage);
    background: var(--bg-white);
    color: var(--secondary-color);
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
    padding-bottom: 4px;
}

.counter-btn:hover {
    background: var(--accent-sage);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(139, 154, 139, 0.3);
}

.counter-btn:active {
    transform: scale(0.95);
}

.counter-input input[type="number"] {
    width: 60px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    padding: 0.5rem;
    border: none;
    background: transparent;
    -moz-appearance: textfield;
    -webkit-appearance: none;
    appearance: none;
    font-family: var(--font-heading);
}

.counter-input input[type="number"]::-webkit-outer-spin-button,
.counter-input input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

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

/* Success Message */
.success-message {
    background: var(--success-color);
    color: var(--bg-white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    margin-top: 2rem;
    display: none;
    animation: slideDown 0.5s ease;
}

.success-message.show {
    display: block;
}

.success-message i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.success-message h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

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

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: var(--bg-white);
    padding: 3rem 0;
    text-align: center;
}

.footer-text {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.footer-subtext {
    margin-bottom: 2rem;
    opacity: 0.9;
}

.footer-actions {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-link {
    color: var(--bg-white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.footer-link:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

/* Music Toggle */
.music-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2d4a3e 0%, #1a2f26 100%);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.music-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.music-toggle.playing {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(45, 74, 62, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(45, 74, 62, 0); }
    100% { box-shadow: 0 0 0 0 rgba(45, 74, 62, 0); }
}

/* Dashboard Specific Styles */
.dashboard-body {
    background: var(--bg-light);
}

.dashboard-header {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: var(--bg-white);
    padding: 2rem 0;
    box-shadow: var(--card-shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.dashboard-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 2rem;
    margin: 0;
}

.event-info h2 {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
}

.event-info p {
    opacity: 0.9;
    font-size: 0.9rem;
}

.header-actions {
    display: flex;
    gap: 1rem;
}

/* Stats Section */
.stats-section {
    padding: 3rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--bg-white);
    font-size: 1.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

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

/* Filters Section */
.filters-section {
    padding: 2rem 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
}

.filters-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 300px;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.search-box input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
}

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

.filter-group label {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.filter-group select {
    padding: 0.8rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
    min-width: 150px;
}

/* Guest List Table */
.guest-list-section {
    padding: 3rem 0;
}

.table-container {
    background: var(--bg-white);
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.table-header h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin: 0;
}

.table-info {
    color: var(--text-light);
}

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

.guest-table {
    width: 100%;
    border-collapse: collapse;
}

.guest-table th {
    background: var(--bg-light);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-dark);
    border-bottom: 2px solid var(--border-color);
}

.sort-btn {
    background: none;
    border: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.sort-btn:hover {
    color: var(--primary-color);
}

.guest-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.guest-table tr:hover {
    background: var(--bg-light);
}

.loading-indicator,
.no-data {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

.loading-indicator i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.no-data i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* WhatsApp Button */
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: #25D366;
    color: white;
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    background: #128C7E;
}

/* Update Mode Indicator */
.update-mode-indicator {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-sage));
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--card-shadow);
}

.update-mode-indicator i {
    font-size: 1.2rem;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
}

.status-new {
    background: #e8f5e8;
    color: #2e7d32;
}

.status-updated {
    background: #fff3e0;
    color: #f57c00;
}

/* Responsive Design - Cross-Browser Mobile Support */

/* Tablet and below */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
        padding-left: max(15px, env(safe-area-inset-left));
        padding-right: max(15px, env(safe-area-inset-right));
    }
    
    .hero {
        min-height: 100vh;
        min-height: -webkit-fill-available;
        padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
    }
    
    .hero-content {
        padding: 1.5rem;
        width: 100%;
    }
    
    .main-title {
        padding: 2rem 1.5rem;
        margin: 0 0.5rem 1.5rem;
    }
    
    .baby-name {
        font-size: 2.2rem;
    }
    
    .celebration-title {
        font-size: 1.4rem;
    }
    
    .countdown {
        gap: 1rem;
        padding: 0 0.5rem;
    }
    
    .countdown-item {
        min-width: 70px;
    }
    
    .countdown-number {
        font-size: 1.8rem;
    }
    
    .countdown-label {
        font-size: 0.75rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .rsvp-form {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .filters-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .search-box {
        min-width: auto;
        width: 100%;
    }
    
    .footer-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem 1rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .music-toggle {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        bottom: 20px;
        right: 20px;
    }
    
    .btn-primary, .btn-secondary, .btn-submit {
        padding: 0.875rem 1.5rem;
        min-height: 44px;
        -webkit-tap-highlight-color: transparent;
    }
    
    .counter-btn {
        width: 36px;
        height: 36px;
        min-height: 44px;
        min-width: 44px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        border-radius: 10px;
    }
    
    .edit-lookup-form {
        flex-direction: column;
        align-items: center;
    }
    
    .edit-lookup-form input {
        min-width: auto;
        width: 100%;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .main-title {
        padding: 1.5rem 1rem;
        border-radius: 15px;
    }
    
    .baby-name {
        font-size: 1.6rem;
    }
    
    .family-name {
        font-size: 1.4rem;
    }
    
    .invitation-prefix {
        font-size: 1rem;
    }
    
    .celebration-title {
        font-size: 1.2rem;
    }
    
    .celebration-text {
        font-size: 0.95rem;
    }
    
    .countdown {
        gap: 0.5rem;
    }
    
    .countdown-item {
        min-width: 60px;
    }
    
    .countdown-number {
        font-size: 1.5rem;
    }
    
    .countdown-label {
        font-size: 0.7rem;
    }
    
    .countdown-container {
        padding: 1.5rem 1rem;
        margin: 0 0.5rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .detail-card {
        padding: 1.5rem;
    }
    
    .rsvp-form {
        padding: 1.25rem;
    }
    
    .welcome-message {
        padding: 1.5rem;
    }
    
    .welcome-message p {
        font-size: 1rem;
    }
    
    .counter-input {
        padding: 0.5rem 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    
    .stat-card {
        padding: 1.25rem 0.75rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .footer {
        padding: 2rem 0;
    }
    
    .footer-text {
        font-size: 1.1rem;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .baby-name {
        font-size: 1.4rem;
    }
    
    .main-title {
        padding: 1.25rem 0.75rem;
    }
    
    .countdown-number {
        font-size: 1.3rem;
    }
    
    .btn-primary, .btn-secondary, .btn-submit {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* Landscape mode on mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 4rem 0;
    }
    
    .main-title {
        padding: 1.5rem;
    }
    
    .baby-name {
        font-size: 2rem;
    }
    
    .scroll-indicator {
        display: none;
    }
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
    .hero {
        min-height: -webkit-fill-available;
    }
    
    input, textarea, select {
        font-size: 16px !important;
    }
}

/* Firefox Android fixes */
@-moz-document url-prefix() {
    .hero {
        min-height: 100vh;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .scroll-indicator {
        animation: none;
    }
    
    .music-toggle.playing {
        animation: none;
    }
}

/* Password Screen */
.password-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--accent-sage) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.password-container {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
}

.password-card {
    background: var(--bg-surface);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--card-shadow-hover);
    text-align: center;
}

.password-card i {
    font-size: 3rem;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
}

.password-card h2 {
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    font-size: 1.75rem;
}

.password-card p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.password-card input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
    transition: border-color 0.3s ease;
}

.password-card input:focus {
    outline: none;
    border-color: var(--accent-sage);
}

.password-error {
    margin-top: 1rem;
    font-size: 0.9rem;
    min-height: 1.5rem;
}

/* Shake animation for wrong password */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* Delete Button */
.btn-delete {
    background: transparent;
    border: none;
    color: var(--error-color);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-delete:hover {
    background: rgba(184, 123, 107, 0.1);
    transform: scale(1.1);
}
