@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --wedding-dark: #0f0f1a;
    --wedding-darker: #07070f;
    --wedding-surface: #1a1a2e;
    --wedding-surface-2: #22223a;
    --wedding-gold: #c9a96e;
    --wedding-gold-light: #e8d5a3;
    --wedding-gold-dark: #9a7a45;
    --wedding-cream: #f5f0e8;
    --wedding-text: #e8e4dc;
    --wedding-text-muted: #a09880;
    --wedding-border: rgba(201, 169, 110, 0.2);
    --wedding-border-hover: rgba(201, 169, 110, 0.5);
    --wedding-success: #4caf7d;
    --wedding-error: #e57373;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--wedding-darker);
    color: var(--wedding-text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ========================
   Typography
   ======================== */
h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    line-height: 1.2;
}

/* ========================
   Scrollbar
   ======================== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track { background: var(--wedding-darker); }
::-webkit-scrollbar-thumb {
    background: var(--wedding-gold-dark);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--wedding-gold); }

/* ========================
   Layout & Background Orbs
   ======================== */
.bg-orbs {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.12;
    animation: float 8s ease-in-out infinite;
}
.orb-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, var(--wedding-gold), transparent);
    top: -200px; left: -200px;
    animation-duration: 10s;
}
.orb-2 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, #7b68ee, transparent);
    bottom: -150px; right: -100px;
    animation-duration: 12s;
    animation-delay: -4s;
}
.orb-3 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, var(--wedding-gold-dark), transparent);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation-duration: 8s;
    animation-delay: -2s;
}

/* ========================
   Buttons
   ======================== */
.btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--wedding-gold-dark), var(--wedding-gold), var(--wedding-gold-light));
    color: var(--wedding-darker);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
}
.btn-gold:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(201, 169, 110, 0.4);
    filter: brightness(1.1);
}
.btn-gold:active { transform: translateY(0); }
.btn-gold:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--wedding-gold);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--wedding-border-hover);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}
.btn-outline:hover {
    background: rgba(201, 169, 110, 0.1);
    border-color: var(--wedding-gold);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--wedding-text-muted);
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}
.btn-ghost:hover {
    color: var(--wedding-text);
    background: rgba(255, 255, 255, 0.05);
}

.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(229, 115, 115, 0.15);
    color: var(--wedding-error);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(229, 115, 115, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}
.btn-danger:hover {
    background: rgba(229, 115, 115, 0.3);
    border-color: var(--wedding-error);
}

/* ========================
   Inputs
   ======================== */
.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--wedding-border);
    border-radius: 10px;
    color: var(--wedding-text);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    padding: 0.875rem 1.25rem;
    transition: all 0.3s ease;
    outline: none;
}
.form-input::placeholder { color: var(--wedding-text-muted); }
.form-input:focus {
    border-color: var(--wedding-gold);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.15);
}

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--wedding-text-muted);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.form-group {
    margin-bottom: 1.25rem;
    text-align: left;
}

/* ========================
   Badges & Cards
   ======================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}
.badge-gold {
    background: rgba(201, 169, 110, 0.15);
    color: var(--wedding-gold);
    border: 1px solid rgba(201, 169, 110, 0.3);
}
.badge-success {
    background: rgba(76, 175, 125, 0.15);
    color: var(--wedding-success);
    border: 1px solid rgba(76, 175, 125, 0.3);
}
.badge-pending {
    background: rgba(160, 152, 128, 0.15);
    color: var(--wedding-text-muted);
    border: 1px solid rgba(160, 152, 128, 0.3);
}

.glass-card {
    background: rgba(26, 26, 46, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--wedding-border);
    border-radius: 16px;
    padding: 2rem;
}

/* ========================
   Header & Clock
   ======================== */
.checkin-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    position: relative;
    z-index: 1;
}
.checkin-header {
    text-align: center;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease forwards;
}
.header-ornament {
    color: var(--wedding-gold);
    font-size: 1.5rem;
    margin-bottom: 0.4rem;
    animation: float 3s ease-in-out infinite;
}
.event-label {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(0.85rem, 2vw, 1rem);
    color: var(--wedding-gold);
    letter-spacing: 0.28em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}
.event-couple {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
}
.bride, .groom {
    font-size: clamp(1.6rem, 4.5vw, 3rem);
    color: var(--wedding-cream);
    letter-spacing: 0.03em;
}
.couple-amp {
    font-size: clamp(1.4rem, 3.5vw, 2.4rem);
    color: var(--wedding-gold);
    font-style: italic;
    line-height: 1;
}
.gold-divider {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--wedding-gold), transparent);
    margin: 0.9rem auto;
}
.event-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 0.35rem;
}
.event-info-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    color: var(--wedding-text-muted);
    letter-spacing: 0.04em;
}
.event-info-sep {
    color: var(--wedding-gold);
    opacity: 0.5;
    font-size: 0.7rem;
}
.event-clock {
    font-size: 0.78rem;
    color: rgba(160, 152, 128, 0.6);
    letter-spacing: 0.05em;
}

/* ========================
   Search Area & Autocomplete
   ======================== */
.checkin-main {
    width: 100%;
    max-width: 640px;
    position: relative;
    animation: fadeInUp 0.8s ease 0.2s both;
}
.search-wrapper { position: relative; }
.search-input-group {
    position: relative;
    display: flex;
    align-items: center;
}
.search-icon {
    position: absolute;
    left: 1.25rem;
    color: var(--wedding-gold);
    pointer-events: none;
    z-index: 2;
    display: flex;
    align-items: center;
}
.search-input {
    width: 100%;
    background: rgba(26, 26, 46, 0.6);
    border: 1px solid var(--wedding-border);
    border-radius: 14px;
    color: var(--wedding-text);
    font-family: 'Inter', sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    padding: 1.1rem 3.5rem 1.1rem 3.5rem;
    transition: all 0.3s ease;
    outline: none;
    backdrop-filter: blur(10px);
}
.search-input::placeholder { color: var(--wedding-text-muted); }
.search-input:focus {
    border-color: var(--wedding-gold);
    background: rgba(26, 26, 46, 0.9);
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.15), 0 8px 40px rgba(0,0,0,0.4);
}
.search-wrapper.is-active .search-input {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
.search-clear {
    position: absolute;
    right: 1.25rem;
    background: transparent;
    border: none;
    color: var(--wedding-text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    z-index: 2;
}
.search-clear:hover { color: var(--wedding-text); }

/* Autocomplete Dropdown */
.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(22, 22, 38, 0.97);
    backdrop-filter: blur(20px);
    border: 1px solid var(--wedding-border);
    border-top: none;
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
    overflow: hidden;
    z-index: 100;
    max-height: 380px;
    overflow-y: auto;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    animation: fadeIn 0.2s ease-out;
}
.dropdown-loading {
    padding: 1.5rem;
    display: flex;
    justify-content: center;
}
.loading-dots { display: flex; gap: 6px; align-items: center; }
.loading-dots span {
    width: 8px; height: 8px;
    background: var(--wedding-gold);
    border-radius: 50%;
    animation: pulse 1.2s ease-in-out infinite;
}
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

.dropdown-empty { padding: 1.5rem; text-align: center; color: var(--wedding-text-muted); font-size: 0.9rem; }
.dropdown-list { display: flex; flex-direction: column; }
.dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: background 0.15s ease;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.dropdown-item:last-child { border-bottom: none; }
.dropdown-item:hover, .dropdown-item.is-highlighted {
    background: rgba(201, 169, 110, 0.08);
}
.dropdown-item.is-checked { opacity: 0.6; }
.item-info { display: flex; flex-direction: column; gap: 0.2rem; text-align: left; }
.item-name { font-size: 1rem; color: var(--wedding-text); font-weight: 500; }
.item-category { font-size: 0.78rem; color: var(--wedding-text-muted); }
.item-right { display: flex; align-items: center; gap: 0.75rem; }
.item-pax { font-size: 0.8rem; color: var(--wedding-text-muted); }

/* Quick actions */
.quick-actions {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* ========================
   Modals
   ======================== */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(7, 7, 15, 0.85);
    backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    z-index: 200;
    padding: 1.5rem;
    animation: fadeIn 0.3s ease-out;
}
.modal-box {
    background: var(--wedding-surface);
    border: 1px solid var(--wedding-border-hover);
    border-radius: 20px;
    padding: 2.5rem;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 25px 80px rgba(0,0,0,0.7);
    text-align: center;
}
.modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
}
.modal-icon {
    width: 64px; height: 64px;
    background: rgba(201,169,110,0.1);
    border: 1px solid var(--wedding-border);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1rem;
    color: var(--wedding-gold);
}
.modal-header h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.75rem;
    color: var(--wedding-cream);
}
.modal-body { margin-bottom: 2rem; }
.guest-name-display {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 500;
    color: var(--wedding-gold-light);
    text-align: center;
    margin-bottom: 0.25rem;
}
.guest-category {
    text-align: center;
    color: var(--wedding-text-muted);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}
.pax-selector { text-align: center; }
.pax-controls {
    display: flex; align-items: center; justify-content: center;
    gap: 1rem; margin: 0.75rem 0;
}
.pax-btn {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid var(--wedding-border);
    background: transparent;
    color: var(--wedding-gold);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex; align-items: center; justify-content: center;
    outline: none;
}
.pax-btn:hover:not(:disabled) {
    background: rgba(201,169,110,0.1);
    border-color: var(--wedding-gold);
}
.pax-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.pax-count {
    font-size: 2.5rem;
    font-family: 'Cormorant Garamond', serif;
    color: var(--wedding-cream);
    min-width: 3rem;
    text-align: center;
}
.pax-hint { font-size: 0.8rem; color: var(--wedding-text-muted); }
.modal-footer {
    display: flex; gap: 1rem; justify-content: center;
}

/* ========================
   Success Screen Overlay
   ======================== */
.success-overlay {
    position: fixed; inset: 0;
    background: rgba(7, 7, 15, 0.96);
    backdrop-filter: blur(16px);
    display: flex; align-items: center; justify-content: center;
    z-index: 300;
    animation: fadeIn 0.4s ease-out;
}
.success-content {
    text-align: center;
    position: relative;
}
.success-rings { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--wedding-gold);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse-ring 2.5s ease-out infinite;
}
.ring-1 { width: 120px; height: 120px; animation-delay: 0s; }
.ring-2 { width: 200px; height: 200px; animation-delay: 0.5s; }
.ring-3 { width: 300px; height: 300px; animation-delay: 1s; }

.success-icon {
    width: 80px; height: 80px;
    background: linear-gradient(135deg, var(--wedding-gold-dark), var(--wedding-gold));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem;
    color: var(--wedding-darker);
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 40px rgba(201,169,110,0.5);
}
.success-welcome {
    font-size: 1.1rem;
    color: var(--wedding-gold);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}
.success-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 400;
    color: var(--wedding-cream);
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}
.success-pax {
    font-size: 1.1rem;
    color: var(--wedding-text-muted);
}
.sparkles {
    position: absolute; inset: 0;
    pointer-events: none;
}
.sparkle {
    position: absolute;
    color: var(--wedding-gold-light);
    animation: sparkle-anim 2s infinite ease-in-out;
    opacity: 0;
}

/* ========================
   Dashboard Style
   ======================== */
.dashboard-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    animation: fadeIn 0.8s ease forwards;
}
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.dashboard-title h1 {
    font-size: 2.5rem;
    color: var(--wedding-cream);
}
.dashboard-title p {
    color: var(--wedding-text-muted);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}
.stat-card {
    background: rgba(26, 26, 46, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--wedding-border);
    border-radius: 16px;
    padding: 1.75rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}
.stat-card:hover {
    transform: translateY(-2px);
    border-color: var(--wedding-border-hover);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.stat-card.featured { border-color: rgba(201, 169, 110, 0.4); }
.stat-card.success { border-color: rgba(76, 175, 125, 0.3); }
.stat-card.percentage { border-color: rgba(201, 169, 110, 0.3); }

.stat-icon {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.stat-pax {
    font-size: 0.8rem;
    color: var(--wedding-success);
    margin-top: 0.25rem;
    font-weight: 500;
}
.progress-bar-wrap {
    width: 100%;
    margin-top: 0.75rem;
}
.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--wedding-gold-dark), var(--wedding-gold));
    border-radius: 3px;
    width: 0%;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--wedding-text-muted);
}
.stat-val-group {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}
.stat-value {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    font-weight: 600;
    color: var(--wedding-gold);
    line-height: 1;
}
.stat-unit {
    color: var(--wedding-text-muted);
    font-size: 0.9rem;
}

.dashboard-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}
@media (max-width: 992px) {
    .dashboard-content { grid-template-columns: 1fr; }
}

.feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--wedding-border);
    padding-bottom: 0.75rem;
}
.feed-header h3 {
    font-size: 1.5rem;
    color: var(--wedding-gold-light);
}
.feed-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 480px;
    overflow-y: auto;
}
.feed-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1.25rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 10px;
    transition: background 0.2s;
}
.feed-item:hover {
    background: rgba(255,255,255,0.04);
}
.feed-item-info { display: flex; flex-direction: column; gap: 0.15rem; text-align: left; }
.feed-name { font-size: 0.95rem; font-weight: 500; color: var(--wedding-text); }
.feed-meta { font-size: 0.75rem; color: var(--wedding-text-muted); }
.feed-right { display: flex; align-items: center; gap: 0.75rem; }
.feed-time { font-size: 0.8rem; color: var(--wedding-gold); }

/* Custom Category Bar Chart */
.chart-container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.chart-row {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.chart-row-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.825rem;
}
.chart-row-name { color: var(--wedding-text); }
.chart-row-value { color: var(--wedding-gold); font-weight: 500; }
.chart-bar-bg {
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
    overflow: hidden;
}
.chart-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--wedding-gold-dark), var(--wedding-gold));
    border-radius: 4px;
    width: 0%;
    transition: width 1s ease-out;
}

/* ========================
   Admin Page & CRUD Elements
   ======================== */
.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
    animation: fadeIn 0.6s ease forwards;
}
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.admin-title h1 {
    font-size: 2.5rem;
    color: var(--wedding-cream);
}
.admin-title p {
    color: var(--wedding-text-muted);
    font-size: 0.9rem;
    margin-top: 0.2em;
}
.admin-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.admin-card {
    background: rgba(26, 26, 46, 0.75);
    backdrop-filter: blur(20px);
    border: 1px solid var(--wedding-border);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
}
.table-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}
.search-box {
    position: relative;
    max-width: 320px;
    width: 100%;
}
.table-wrapper {
    overflow-x: auto;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}
.admin-table th {
    background: rgba(255,255,255,0.03);
    color: var(--wedding-gold);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    font-weight: 600;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--wedding-border);
}
.admin-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: var(--wedding-text);
}
.admin-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}
.admin-table tr:last-child td {
    border-bottom: none;
}
.actions-cell {
    display: flex;
    gap: 0.5rem;
}
.btn-action {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 6px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-edit {
    color: var(--wedding-gold);
    border: 1px solid rgba(201, 169, 110, 0.3);
}
.btn-edit:hover {
    background: rgba(201, 169, 110, 0.1);
    border-color: var(--wedding-gold);
}
.btn-delete {
    color: var(--wedding-error);
    border: 1px solid rgba(229, 115, 115, 0.3);
}
.btn-delete:hover {
    background: rgba(229, 115, 115, 0.1);
    border-color: var(--wedding-error);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    color: var(--wedding-text-muted);
    font-size: 0.85rem;
}
.pagination-btns {
    display: flex;
    gap: 0.35rem;
}
.page-btn {
    background: transparent;
    border: 1px solid var(--wedding-border);
    color: var(--wedding-text);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}
.page-btn:hover:not(:disabled) {
    background: rgba(201, 169, 110, 0.1);
    border-color: var(--wedding-gold);
    color: var(--wedding-gold);
}
.page-btn.active {
    background: var(--wedding-gold);
    color: var(--wedding-darker);
    border-color: var(--wedding-gold);
    font-weight: 600;
}
.page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Import CSV Area */
.import-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
@media (max-width: 768px) {
    .import-section { grid-template-columns: 1fr; }
}
.upload-zone {
    border: 2px dashed var(--wedding-border);
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    background: rgba(255,255,255,0.01);
    transition: all 0.3s;
    position: relative;
}
.upload-zone:hover, .upload-zone.dragover {
    border-color: var(--wedding-gold);
    background: rgba(201,169,110,0.05);
}
.upload-icon {
    font-size: 3rem;
    color: var(--wedding-gold);
    margin-bottom: 1rem;
}
.upload-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}
.instruction-box {
    text-align: left;
}
.instruction-box h3 {
    color: var(--wedding-gold-light);
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}
.instruction-box ol {
    margin-left: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: var(--wedding-text-muted);
    font-size: 0.9rem;
}
.instruction-box code {
    background: rgba(255,255,255,0.08);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-family: monospace;
    color: var(--wedding-gold-light);
}

/* ========================
   Login Page
   ======================== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    position: relative;
    z-index: 1;
}
.login-card {
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 15px 50px rgba(0,0,0,0.6);
}
.login-logo {
    font-size: 2.5rem;
    color: var(--wedding-gold);
    margin-bottom: 0.5rem;
}
.login-card h2 {
    font-size: 1.75rem;
    color: var(--wedding-cream);
    margin-bottom: 0.25rem;
}
.login-card p {
    color: var(--wedding-text-muted);
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

/* Alerts */
.alert {
    padding: 0.85rem 1.25rem;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
    text-align: left;
}
.alert-error {
    background: rgba(229, 115, 115, 0.15);
    color: var(--wedding-error);
    border: 1px solid rgba(229, 115, 115, 0.3);
}
.alert-success {
    background: rgba(76, 175, 125, 0.15);
    color: var(--wedding-success);
    border: 1px solid rgba(76, 175, 125, 0.3);
}

/* ========================
   Animations
   ======================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.85); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes pulse-ring {
    0% { transform: translate(-50%, -50%) scale(0.6); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.8); opacity: 0; }
}
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}
@keyframes sparkle-anim {
    0%, 100% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1.2); }
}
.animate-scaleIn {
    animation: scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
