/* =====================================================
   Buku Tamu Digital — Wedding App
   dr. Fikra Safa Advancya Iman & dr. Ahmed Abdillah
   9 Agustus 2026 | Gedung BRIN Gatot Subroto
   ===================================================== */

/* --- CSS Variables (Design Tokens) --- */
:root {
    --gold:          #C9A84C;
    --gold-light:    #E8C97A;
    --gold-dark:     #8B6914;
    --gold-pale:     rgba(201, 168, 76, 0.15);
    --ivory:         #FAF7F0;
    --ivory-dark:    #E8E4DA;
    --bg-dark:       #0D0C0A;
    --bg-card:       #161410;
    --bg-surface:    #1E1B16;
    --text-primary:  #FAF7F0;
    --text-muted:    rgba(250,247,240,0.55);
    --text-dim:      rgba(250,247,240,0.35);
    --border:        rgba(201,168,76,0.2);
    --border-bright: rgba(201,168,76,0.45);
    --success:       #4ADE80;
    --success-bg:    rgba(74,222,128,0.1);
    --danger:        #F87171;
    --danger-bg:     rgba(248,113,113,0.1);
    --radius-sm:     8px;
    --radius-md:     14px;
    --radius-lg:     20px;
    --radius-xl:     28px;
    --shadow-sm:     0 2px 8px rgba(0,0,0,0.3);
    --shadow-md:     0 8px 30px rgba(0,0,0,0.4);
    --shadow-lg:     0 20px 60px rgba(0,0,0,0.5);
    --shadow-gold:   0 0 30px rgba(201,168,76,0.15);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Decorative background pattern */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(ellipse at 20% 20%, rgba(201,168,76,0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(201,168,76,0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* --- Typography --- */
h1, h2, h3 { font-family: 'Cormorant Garamond', serif; font-weight: 300; }

.font-serif   { font-family: 'Cormorant Garamond', serif; }
.font-sans    { font-family: 'Inter', sans-serif; }
.text-gold    { color: var(--gold); }
.text-muted   { color: var(--text-muted); }
.text-center  { text-align: center; }

/* --- Gold Divider / Ornament --- */
.ornament-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--gold);
    opacity: 0.6;
    margin: 1rem 0;
}
.ornament-divider::before,
.ornament-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
}

/* --- Cards --- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold-light), transparent);
    opacity: 0.3;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.4rem;
    border-radius: var(--radius-md);
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
    text-decoration: none;
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.btn-primary {
    background: linear-gradient(135deg, var(--gold), #a8832e);
    color: #1a1a0e;
    font-weight: 600;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201,168,76,0.4);
}
.btn-outline {
    background: transparent;
    border: 1px solid var(--border-bright);
    color: var(--gold-light);
}
.btn-outline:hover {
    background: var(--gold-pale);
    border-color: var(--gold);
}
.btn-danger {
    background: var(--danger-bg);
    border: 1px solid rgba(248,113,113,0.3);
    color: var(--danger);
}
.btn-danger:hover { background: rgba(248,113,113,0.2); }
.btn-success {
    background: var(--success-bg);
    border: 1px solid rgba(74,222,128,0.3);
    color: var(--success);
}
.btn-lg { padding: 1rem 2rem; font-size: 1rem; border-radius: var(--radius-lg); }
.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.8rem; }

/* --- Badge / Pill --- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.badge-gold    { background: var(--gold-pale); color: var(--gold); border: 1px solid rgba(201,168,76,0.3); }
.badge-success { background: var(--success-bg); color: var(--success); border: 1px solid rgba(74,222,128,0.3); }
.badge-pending { background: rgba(250,247,240,0.05); color: var(--text-muted); border: 1px solid var(--border); }

/* --- Form Elements --- */
.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--ivory);
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
    outline: none;
}
.form-control:focus {
    border-color: var(--gold);
    background: rgba(255,255,255,0.08);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
}
.form-control::placeholder { color: var(--text-dim); }

select.form-control option { background: var(--bg-surface); color: var(--text-primary); }

/* --- Alert / Notification --- */
.alert {
    padding: 0.9rem 1.1rem;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    margin-bottom: 1rem;
}
.alert-success {
    background: var(--success-bg);
    border: 1px solid rgba(74,222,128,0.3);
    color: var(--success);
}
.alert-danger {
    background: var(--danger-bg);
    border: 1px solid rgba(248,113,113,0.3);
    color: var(--danger);
}
.alert-info {
    background: rgba(96,165,250,0.1);
    border: 1px solid rgba(96,165,250,0.3);
    color: #93c5fd;
}

/* --- Table --- */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
thead { background: rgba(201,168,76,0.08); }
thead th {
    padding: 0.85rem 1rem;
    text-align: left;
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold-light);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
tbody tr {
    border-bottom: 1px solid rgba(201,168,76,0.07);
    transition: background 0.2s;
}
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: rgba(201,168,76,0.04); }
tbody td { padding: 0.8rem 1rem; color: var(--text-primary); vertical-align: middle; }

/* --- Stat Cards --- */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}
.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold);
}
.stat-card .stat-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    display: block;
}
.stat-card .stat-value {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.8rem;
    font-weight: 300;
    color: var(--gold-light);
    line-height: 1;
    margin-bottom: 0.3rem;
}
.stat-card .stat-label {
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* --- Modal / Overlay --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    padding: 1rem;
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.modal {
    background: var(--bg-surface);
    border: 1px solid var(--border-bright);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    max-width: 480px;
    width: 100%;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: var(--shadow-lg);
}
.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

/* --- Progress Bar --- */
.progress-bar-wrap {
    background: rgba(255,255,255,0.08);
    border-radius: 999px;
    overflow: hidden;
    height: 8px;
}
.progress-bar {
    height: 100%;
    background: linear-gradient(to right, var(--gold-dark), var(--gold), var(--gold-light));
    border-radius: 999px;
    transition: width 1s ease;
}

/* =====================================================
   CHECK-IN PAGE (index.php) — Tablet Landscape
   ===================================================== */

.checkin-page {
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    position: relative;
    overflow: hidden;
}

/* Particle decoration */
.particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}
.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0;
    animation: floatUp var(--dur, 8s) var(--delay, 0s) infinite ease-in-out;
}
@keyframes floatUp {
    0%   { opacity: 0; transform: translateY(0) scale(0.5); }
    10%  { opacity: 0.6; }
    90%  { opacity: 0.4; }
    100% { opacity: 0; transform: translateY(-100vh) scale(1.2); }
}

/* Header */
.checkin-header {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem 2rem 1.5rem;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(to bottom, rgba(13,12,10,0.95), transparent);
}
.checkin-header .couple-names {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 300;
    color: var(--ivory);
    line-height: 1.2;
    letter-spacing: 0.02em;
}
.checkin-header .couple-names .ampersand {
    color: var(--gold);
    font-style: italic;
    font-size: 1.2em;
    display: inline-block;
    margin: 0 0.3em;
}
.checkin-header .event-info {
    margin-top: 0.5rem;
    font-size: 0.82rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.checkin-header .gold-dot { color: var(--gold); margin: 0 0.5em; }

/* Main Check-in Area */
.checkin-main {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.checkin-box {
    width: 100%;
    max-width: 700px;
}
.checkin-box .search-label {
    display: block;
    text-align: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}
.search-wrapper {
    position: relative;
}
.search-input {
    width: 100%;
    padding: 1.2rem 3.5rem 1.2rem 1.5rem;
    background: rgba(255,255,255,0.06);
    border: 2px solid var(--border);
    border-radius: var(--radius-xl);
    color: var(--ivory);
    font-size: 1.4rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
    outline: none;
    letter-spacing: 0.01em;
}
.search-input:focus {
    border-color: var(--gold);
    background: rgba(255,255,255,0.09);
    box-shadow: 0 0 0 4px rgba(201,168,76,0.12), var(--shadow-gold);
}
.search-input::placeholder { color: var(--text-dim); font-size: 1.2rem; }
.search-icon {
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold);
    font-size: 1.3rem;
    pointer-events: none;
}
.search-loading {
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border: 2px solid var(--border);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: none;
}
@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }

/* Autocomplete Dropdown */
.autocomplete-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0; right: 0;
    background: var(--bg-surface);
    border: 1px solid var(--border-bright);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    z-index: 100;
    max-height: 380px;
    overflow-y: auto;
    display: none;
}
.autocomplete-dropdown.open { display: block; animation: dropDown 0.2s ease; }
@keyframes dropDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.autocomplete-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 1.4rem;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid rgba(201,168,76,0.07);
}
.autocomplete-item:last-child { border-bottom: none; }
.autocomplete-item:hover { background: rgba(201,168,76,0.08); }
.autocomplete-item.already-checked { opacity: 0.55; }
.autocomplete-item .guest-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.autocomplete-item .guest-main-details {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem 0.6rem;
}
.autocomplete-item .guest-name {
    font-size: 1.05rem;
    color: var(--ivory);
    font-weight: 400;
}
.autocomplete-item .guest-name mark {
    background: transparent;
    color: var(--gold-light);
    font-weight: 600;
}
.autocomplete-item .guest-meta {
    font-size: 0.72rem;
    color: var(--gold-light);
    background: rgba(201,168,76,0.08);
    border: 1px solid rgba(201,168,76,0.2);
    padding: 0.08rem 0.4rem;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}
.autocomplete-item .guest-right { text-align: right; flex-shrink: 0; margin-left: 1rem; }
.autocomplete-empty {
    padding: 2rem;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* Check-in Footer */
.checkin-footer {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    border-top: 1px solid var(--border);
    background: rgba(13,12,10,0.5);
    backdrop-filter: blur(10px);
}
.footer-live-stats {
    display: flex;
    gap: 2rem;
    align-items: center;
}
.footer-stat { text-align: center; }
.footer-stat .val { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; color: var(--gold-light); line-height: 1; }
.footer-stat .lbl { font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.footer-actions { display: flex; gap: 0.75rem; }

/* Success Animation Overlay */
.success-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.88);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s;
    text-align: center;
    padding: 2rem;
}
.success-overlay.show {
    opacity: 1;
    visibility: visible;
}
.success-overlay .success-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    animation: bounceIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes bounceIn {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}
.success-overlay .success-welcome {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.5rem, 4vw, 2.8rem);
    font-weight: 300;
    color: var(--ivory);
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
    animation: fadeInUp 0.6s 0.2s both;
}
.success-overlay .success-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 6vw, 4.5rem);
    font-weight: 600;
    color: var(--gold-light);
    line-height: 1.1;
    margin-bottom: 1rem;
    animation: fadeInUp 0.6s 0.3s both;
}
.success-overlay .success-detail {
    font-size: 0.9rem;
    color: var(--text-muted);
    animation: fadeInUp 0.6s 0.4s both;
}
.success-overlay .confetti-ring {
    position: absolute;
    font-size: 3rem;
    animation: spread 1s ease-out forwards;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes spread {
    to { opacity: 0; transform: scale(3); }
}

/* Check-in Modal */
.checkin-modal .guest-card-preview {
    background: rgba(201,168,76,0.07);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.2rem;
    margin-bottom: 1.5rem;
}
.checkin-modal .guest-card-preview .gcname {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    color: var(--ivory);
    margin-bottom: 0.3rem;
}
.checkin-modal .guest-card-preview .gcmeta {
    font-size: 0.82rem;
    color: var(--text-muted);
}
.pax-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0 1.5rem;
}
.pax-btn {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-bright);
    background: transparent;
    color: var(--gold);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.pax-btn:hover { background: var(--gold-pale); }
.pax-value {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    color: var(--gold-light);
    min-width: 50px;
    text-align: center;
}
.pax-label { font-size: 0.8rem; color: var(--text-muted); }

/* =====================================================
   ADMIN PAGE (admin.php)
   ===================================================== */

.admin-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
}
.admin-sidebar {
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}
.sidebar-logo {
    padding: 0 1.5rem 1.5rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1rem;
}
.sidebar-logo h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    color: var(--gold-light);
    font-weight: 300;
}
.sidebar-logo p { font-size: 0.72rem; color: var(--text-dim); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 0.2rem; }
.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}
.nav-item:hover { background: var(--gold-pale); color: var(--gold-light); }
.nav-item.active { background: var(--gold-pale); color: var(--gold); border-right: 2px solid var(--gold); }
.nav-item .nav-icon { font-size: 1.1rem; width: 1.2rem; text-align: center; }
.sidebar-spacer { flex: 1; }
.sidebar-user {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.admin-content { padding: 2rem; overflow-y: auto; }
.page-header { margin-bottom: 2rem; }
.page-header h1 { font-size: 1.9rem; color: var(--ivory); font-family: 'Cormorant Garamond', serif; }
.page-header p { color: var(--text-muted); font-size: 0.88rem; margin-top: 0.25rem; }

/* Tab System */
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Upload Area */
.upload-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
}
.upload-zone:hover, .upload-zone.drag-over {
    border-color: var(--gold);
    background: var(--gold-pale);
}
.upload-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}
.upload-icon { font-size: 3rem; color: var(--gold); margin-bottom: 1rem; }
.upload-text { color: var(--text-muted); }
.upload-text strong { color: var(--gold-light); }

/* Filters Bar */
.filters-bar {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.filters-bar .form-control { max-width: 200px; padding: 0.6rem 0.9rem; }
.filters-bar .search-filter { max-width: 280px; }

/* =====================================================
   DASHBOARD PAGE
   ===================================================== */
.dashboard-header {
    text-align: center;
    padding: 3rem 2rem 2rem;
    border-bottom: 1px solid var(--border);
}
.dashboard-header h1 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--ivory);
}
.dashboard-header .subtitle { color: var(--gold); font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; margin-top: 0.5rem; }

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    padding: 2rem;
}
.chart-section { padding: 0 2rem 2rem; }
.chart-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 1.5rem;
    align-items: start;
}
.chart-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}
.chart-card h3 { font-size: 1rem; color: var(--gold-light); margin-bottom: 1.25rem; font-weight: 400; letter-spacing: 0.05em; text-transform: uppercase; font-size: 0.78rem; }
.recent-section { padding: 0 2rem 2rem; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 900px) {
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; padding: 1rem; }
    .sidebar-logo { padding: 0; border: none; margin: 0; margin-right: auto; }
    .chart-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .checkin-header .couple-names { font-size: 1.4rem; }
    .search-input { font-size: 1.1rem; padding: 1rem 3rem 1rem 1.2rem; }
    .footer-live-stats { gap: 1rem; }
    .footer-live-stats .footer-stat:nth-child(3) { display: none; }
    .dashboard-grid { grid-template-columns: repeat(2, 1fr); padding: 1rem; }
}

/* =====================================================
   ANIMATIONS & UTILITIES
   ===================================================== */
.fade-in { animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.slide-up { animation: slideUp 0.4s ease; }
@keyframes slideUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}
@keyframes shimmer { to { background-position: -200% 0; } }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(201,168,76,0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(201,168,76,0.5); }

.relative { position: relative; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.w-full { width: 100%; }
