/**
 * KABUKI DESIGNER [v2.0 - Deep State]
 * Brand: Brive République
 * Style: Dark Editorial Glassmorphism
 */

:root {
    /* Brive République - Brand Palette */
    --br-gold: #c29b61;
    --br-gold-dark: #a6814d;
    --br-dark: #1a1c1e;
    --br-charcoal: #2d2f31;
    --br-offwhite: #fcfbf9;

    /* System Tokens Refined */
    --void-black: #ffffff;
    --deep-surface: #f8fafc;
    --electric-indigo: var(--br-gold);
    /* Replacing blue with brand gold */
    --indigo-glow: rgba(194, 155, 97, 0.1);
    --emerald-glow: #10b981;
    --soft-slate: #64748b;
    --error-red: #ef4444;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.08);
    --text-main: #1a1c1e;
    --text-muted: #64748b;

    /* System Tokens */
    --font-main: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --radius-full: 9999px;
    --radius-xl: 32px;
    --radius-lg: 16px;
    --transition-slow: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    list-style: none;
}

body {
    background-color: var(--deep-surface);
    color: var(--text-main);
    font-family: var(--font-main);
    overflow-x: hidden;
    min-height: 100vh;
    padding-bottom: env(safe-area-inset-bottom);
}

/* 🎭 THE DIGITAL THEATER - BACKGROUND */
.mesh-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: var(--void-black);
}

.blob {
    position: absolute;
    width: 600px;
    height: 600px;
    background: var(--br-gold);
    filter: blur(120px);
    opacity: 0.08;
    border-radius: var(--radius-full);
}

.blob-1 {
    top: -200px;
    right: -100px;
    animation: drift 20s infinite alternate;
}

.blob-2 {
    bottom: -200px;
    left: -100px;
    background: var(--br-gold-dark);
    animation: drift 25s infinite alternate-reverse;
}

@keyframes drift {
    from {
        transform: translate(0, 0) scale(1.0);
    }

    to {
        transform: translate(100px, 50px) scale(1.1);
    }
}

/* 🧱 BENTO GRID SYSTEM */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

#dashboard-app {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    border-right: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar-logo {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    color: var(--br-gold);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex: 1;
}

.nav-item {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    color: var(--soft-slate);
    transition: var(--transition-fast);
    text-decoration: none;
    background: transparent;
    border: none;
    cursor: pointer;
}

.nav-item:hover,
.nav-item.active {
    background: var(--glass-bg);
    color: var(--electric-indigo);
    border: 1px solid var(--glass-border);
}

.nav-item.active {
    color: var(--electric-indigo);
    box-shadow: 0 0 20px var(--indigo-glow);
}

/* 🚀 MAIN VIEWPORT */
.main-viewport {
    flex: 1;
    padding-bottom: 5rem;
}

.dashboard-header {
    padding: 3rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.breadcrumbs {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: var(--soft-slate);
    margin-bottom: 0.5rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -3px;
    line-height: 1;
}

.welcome-text {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
}


.action-group {
    display: flex;
    gap: 1rem;
}

/* 🍱 BENTO CARDS */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    transition: var(--transition-slow);
}

.glass-panel:hover {
    border-color: rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.9);
}

.bento-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--soft-slate);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.card-header i {
    width: 16px;
    height: 16px;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--font-mono);
    margin: 1rem 0;
}

.stat-wide {
    grid-column: span 2;
}

/* 📊 DISTRIBUTION BAR */
.distribution-bar {
    height: 8px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    margin-top: auto;
    display: flex;
    overflow: hidden;
}

.dist-segment {
    height: 100%;
    transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 📋 TABLE KABUKI DESIGN */
.table-outer {
    padding: 0;
    overflow: hidden;
}

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

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

th {
    text-align: left;
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--soft-slate);
    border-bottom: 1px solid var(--glass-border);
}

td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    font-size: 0.95rem;
}

tr {
    transition: background 0.2s ease;
}

tr:hover {
    background: rgba(0, 0, 0, 0.02);
}

.guest-info .name {
    display: block;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.guest-info .email {
    display: block;
    font-size: 0.8rem;
    color: var(--soft-slate);
    font-family: var(--font-mono);
}

/* 🗝️ PIN KEY DISPLAY */
.bac-display {
    font-family: var(--font-mono);
    font-weight: 700;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
}

.code-ready {
    background: rgba(16, 185, 129, 0.1);
    color: var(--emerald-glow);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.code-missing {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error-red);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* BADGES */
.platform-badge {
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    letter-spacing: 1px;
}

.platform-airbnb {
    color: #ff5a5f;
    background: rgba(255, 90, 95, 0.1);
}

.platform-booking {
    color: #003580;
    background: rgba(0, 53, 128, 0.1);
}

.platform-direct {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    background: rgba(0, 0, 0, 0.05);
}

.status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.status-confirmed {
    color: #10b981;
}

.status-pending {
    color: #f59e0b;
}

/* BUTTONS KABUKI */
.btn-primary-kabuki {
    background: var(--void-black);
    color: var(--electric-indigo);
    border: 1px solid var(--electric-indigo);
    padding: 0 1.5rem;
    height: 48px;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-primary {
    background: var(--text-main);
    color: white;
    padding: 1.25rem 2rem;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    width: 100%;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-primary:active {
    transform: scale(0.98);
}

@media (min-width: 768px) {
    .btn-primary {
        width: auto;
    }
}

.btn-primary-kabuki:hover {
    background: var(--electric-indigo);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--indigo-glow);
}

.btn-icon-labeled {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: #0f172a;
    padding: 0 1.25rem;
    height: 48px;
    border-radius: var(--radius-lg);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8rem;
    transition: var(--transition-fast);
}

.btn-icon-labeled:hover {
    background: var(--glass-border);
}

/* 📱 RESPONSIVE KABUKI */
@media (max-width: 1100px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sidebar {
        display: none;
    }

    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }

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

    .stat-wide {
        grid-column: auto;
    }

    h1 {
        font-size: 2.25rem;
    }
}

/* LOGIN VIEW SPECIFIC */
.login-view .container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: 100%;
    max-width: 450px;
    padding: 4rem 3rem;
    text-align: center;
}

.separator {
    width: 40px;
    height: 2px;
    background: var(--electric-indigo);
    margin: 1.5rem auto;
}

.mono-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 2px;
    color: var(--soft-slate);
    margin-bottom: 0.75rem;
    display: block;
}

.input-wrapper input {
    width: 100%;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid var(--glass-border);
    padding: 1.25rem 1.25rem 1.25rem 3.5rem;
    border-radius: var(--radius-lg);
    color: #0f172a;
    font-size: 1.1rem;
    transition: var(--transition-fast);
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--electric-indigo);
    background: white;
    box-shadow: 0 0 30px var(--indigo-glow);
}

.input-wrapper i {
    position: absolute;
    left: 1.25rem;
    color: var(--electric-indigo);
    top: 50%;
    transform: translateY(-50%);
}



/* 🧪 FILTER SYSTEM STYLES */
/* Dashboard Sorting */
.sortable {
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
}

.sortable:hover {
    background: rgba(0, 0, 0, 0.05);
}

.sortable i {
    opacity: 0.5;
    vertical-align: middle;
    margin-left: 0.25rem;
    transition: transform 0.2s;
}

.sortable.active-sort i {
    opacity: 1;
    color: var(--electric-indigo);
}

.sortable.active-sort-desc i {
    transform: rotate(180deg);
}

.filter-tab[data-filter="archived"] {
    color: var(--soft-slate);
}

/* Detail Modal Styles */
.detail-view {
    max-width: 900px !important;
    width: 90% !important;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 1.5rem 0;
}

.detail-section h4 {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    color: var(--soft-slate);
    margin-bottom: 1rem;
    text-transform: uppercase;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
}

.detail-item {
    margin-bottom: 1.25rem;
}

.detail-item .label {
    display: block;
    font-size: 0.65rem;
    color: var(--soft-slate);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.detail-item .value {
    display: block;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-main);
}

.comment-box {
    grid-column: span 2;
    background: rgba(0, 0, 0, 0.03);
    padding: 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    white-space: pre-wrap;
    max-height: 200px;
    overflow-y: auto;
}

.detail-actions {
    justify-content: space-between;
    display: flex;
    align-items: center;
}

.action-group-left {
    display: flex;
    gap: 0.75rem;
}

@media (max-width: 768px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .comment-box {
        grid-column: span 1;
    }
}

/* 🧪 REFINED FILTER SYSTEM STYLES */
.section-header-kabuki {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

@media (min-width: 1024px) {
    .section-header-kabuki {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.filter-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.04);
    padding: 4px;
    border-radius: 14px;
    border: 1px solid var(--glass-border);
    width: fit-content;
}

.filter-tab {
    padding: 0.6rem 1.25rem;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: var(--soft-slate);
    font-size: 0.7rem;
    font-weight: 700;
    font-family: var(--font-mono);
    cursor: pointer;
    transition: var(--transition-fast);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.filter-tab:hover {
    color: var(--text-main);
}

.filter-tab.active {
    background: white;
    color: var(--electric-indigo);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.header-tools {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.select-box,
.search-box {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    transition: var(--transition-fast);
    padding: 0 1.25rem;
    /* Fixed padding for consistent alignment */
    height: 48px;
    /* Fixed height for consistency */
}

.select-box:focus-within,
.search-box:focus-within {
    border-color: var(--electric-indigo);
    box-shadow: 0 0 0 4px var(--indigo-glow);
}

.select-box i,
.search-box i {
    color: var(--soft-slate);
    width: 18px;
    height: 18px;
    pointer-events: none;
    transition: color 0.2s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.select-box:focus-within i,
.search-box:focus-within i {
    color: var(--electric-indigo);
}

.select-box select,
.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0 0 0 0.75rem;
    font-family: var(--font-main);
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.85rem;
    outline: none;
    height: 100%;
}

/* Global Lucide Icon Fix */
svg.lucide {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.select-box {
    min-width: 160px;
}

.search-box {
    min-width: 420px;
    flex: 1;
    max-width: 500px;
}

@media (max-width: 600px) {
    .search-box {
        min-width: 100%;
    }
}

.select-box select {
    cursor: pointer;
    appearance: none;
    padding-right: 2.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
}

.search-box input {
    width: 100%;
    background: transparent;
    border: none;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    color: var(--text-main);
    transition: var(--transition-fast);
}

.search-box i {
    position: absolute;
    left: 1rem;
    color: var(--soft-slate);
}

/* 📋 GUEST & BOOKLET VIEWS */
.aura-bg {
    background: var(--deep-surface);
}

.highlight {
    color: var(--electric-indigo);
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    transition: var(--transition-slow);
}

.glass:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
}


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

@media (max-width: 600px) {
    .summary-grid {
        gap: 1rem;
        padding: 1.5rem;
    }
}

.summary-item {
    display: flex;
    flex-direction: column;
}

.summary-item.full {
    grid-column: span 2;
}

.label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--soft-slate);
    font-weight: 700;
}

.value {
    font-weight: 800;
    font-size: 1.1rem;
    margin-top: 0.25rem;
    color: var(--text-main);
}

.rule-section {
    margin-bottom: 2rem;
}

.rule-section h3 {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.rule-section p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.emergency-section li::before {
    content: "🆘";
    font-size: 1.1rem;
}

.reco-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.reco-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.reco-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: var(--electric-indigo);
}

.reco-img {
    height: 160px;
    overflow: hidden;
}

.reco-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.reco-card:hover .reco-img img {
    transform: scale(1.1);
}

.reco-body {
    padding: 1.75rem;
}

.reco-body h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.reco-body p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.reco-meta {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
}

.reco-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.reco-meta i {
    color: var(--electric-indigo);
    width: 14px;
}

.reco-actions {
    display: flex;
    gap: 0.75rem;
}

.reco-link {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.reco-link:hover {
    background: var(--electric-indigo);
    border-color: var(--electric-indigo);
    color: white;
}

.events-card {
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
}

.events-card h2 {
    margin-bottom: 1rem;
}

.events-card p {
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

.intro-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-top: 1rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 3rem 0 1.5rem 0;
    letter-spacing: -0.5px;
}


.access-card {
    padding: 2.5rem 2rem;
    text-align: center;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.access-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--electric-indigo);
}

.code-display {
    font-size: 3.5rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--electric-indigo);
    margin: 1.5rem 0;
    letter-spacing: -2px;
}


.highlight-code {
    background: var(--indigo-glow);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    display: inline-block;
}

.btn-primary {
    background: var(--electric-indigo);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    justify-content: center;
    transition: var(--transition-fast);
}

.full-width {
    width: 100%;
}

.btn-cta-main {
    background: linear-gradient(135deg, var(--electric-indigo), #4f46e5);
    color: white;
    padding: 1.25rem 2rem;
    border-radius: var(--radius-xl);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-weight: 800;
    font-size: 1.1rem;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.3);
    border: none;
    animation: pulse-indigo 2.5s infinite;
}

.btn-cta-main:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(79, 70, 229, 0.4);
    filter: brightness(1.1);
}

@keyframes pulse-indigo {
    0% {
        box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(79, 70, 229, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(79, 70, 229, 0);
    }
}

.btn-secondary {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: var(--transition-fast);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px var(--indigo-glow);
}

.footer-contact {
    margin-top: 4rem;
    padding: 2.5rem 1.5rem;
    text-align: center;
}

.help-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 2rem;
    line-height: 1.5;
}


.equipment-list,
.rules-list {
    padding: 0;
    margin: 1.5rem 0;
}

.equipment-list li,
.rules-list li {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
    list-style: none !important;
}

.equipment-list li i,
.rules-list li i {
    color: var(--electric-indigo);
    flex-shrink: 0;
}

.booklet-nav {
    display: flex;
    overflow-x: auto;
    padding: 0.75rem;
    gap: 0.5rem;
    background: var(--void-black);
    position: sticky;
    top: 0;
    z-index: 100;
    scrollbar-width: none;
    -ms-overflow-style: none;
    border-bottom: 1px solid var(--glass-border);
    mask-image: linear-gradient(to right, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
}

.booklet-nav::-webkit-scrollbar {
    display: none;
}

.nav-tab {
    padding: 0.6rem 1.2rem;
    border: 1px solid transparent;
    background: var(--deep-surface);
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.nav-tab i {
    width: 16px;
    height: 16px;
}

.nav-tab.active {
    color: white;
    background: var(--text-main);
    border-color: var(--text-main);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.access-highlight {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin: 2.5rem 0;
}

.access-highlight .item {
    background: var(--deep-surface);
    padding: 1.75rem 2rem;
    border-radius: var(--radius-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--glass-border);
    transition: var(--transition-fast);
}

.access-highlight .item:hover {
    border-color: var(--electric-indigo);
    transform: translateX(5px);
}

.access-highlight .item span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.access-highlight .item .code {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--electric-indigo);
}


.instruction-box {
    background: var(--indigo-glow);
    padding: 2.25rem;
    border-radius: var(--radius-xl);
    border: 1px dashed var(--electric-indigo);
    margin-top: 2rem;
}

.instruction-box h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--electric-indigo);
}

.instruction-box p {
    color: var(--text-main);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}


.hero-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    transition: var(--transition-slow);
}

@media (max-width: 768px) {
    .hero-image img {
        height: 300px;
    }
}

.gallery-thumbs {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 1rem 1.5rem;
    margin-top: 0;
    scrollbar-width: none;
}

.gallery-thumbs::-webkit-scrollbar {
    display: none;
}

.thumb-item {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition-fast);
    opacity: 0.6;
}

.thumb-item:hover {
    opacity: 1;
}

.thumb-item.active {
    border-color: var(--electric-indigo);
    opacity: 1;
    transform: scale(1.05);
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hidden {
    display: none;
}



/* MODAL / OVERLAY */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex !important;
    visibility: hidden;
    pointer-events: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 0;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    visibility: visible !important;
    pointer-events: auto !important;
    opacity: 1 !important;
}

.modal-content {
    width: 90%;
    max-width: 800px;
    background: var(--bg-main);
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-content.image-view {
    max-width: 95vw;
    max-height: 95vh;
    width: auto;
    background: transparent;
    box-shadow: none;
}

.modal-content.image-view img {
    max-width: 100%;
    max-height: 90vh;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.clickable-image {
    cursor: zoom-in;
    transition: var(--transition-fast);
}

.clickable-image:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
}


.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-fast);
}

.modal-close:hover {
    background: var(--electric-indigo);
    color: white;
}

.video-container {
    width: 95%;
    max-width: 900px;
    background: #000;
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
    aspect-ratio: 16 / 9;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.fade-in {
    animation: fadeIn 1s var(--transition-slow) forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loader-bar {
    width: 100%;
    height: 2px;
    background: var(--glass-border);
    position: relative;
    overflow: hidden;
}

.loader-bar::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 40%;
    background: var(--electric-indigo);
    animation: loading 2s infinite ease-in-out;
}

@keyframes loading {
    0% {
        left: -40%;
    }

    100% {
        left: 100%;
    }
}

/* 📱 PREMIUM HEADER & NAVIGATION V3 */
.main-booklet-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.5rem 2rem;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-back-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-back-circle:hover {
    background: var(--electric-indigo);
    color: white;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Burger Menu Button */
.burger-menu-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-lg);
    background: var(--electric-indigo);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px var(--indigo-glow);
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-main);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    flex-direction: column;
    padding: 2rem;
}

.mobile-nav-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.mobile-nav-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 3rem;
}

.btn-close-nav {
    background: transparent;
    border: none;
    color: var(--text-main);
    cursor: pointer;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav-link {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    padding: 1rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition-fast);
}

.mobile-nav-link.active {
    background: var(--electric-indigo);
    color: var(--text-main);
}

/* LANGUAGE SELECTOR REFINED */
.lang-selector-header {
    position: relative;
    z-index: 100;
}

.lang-btn-small {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid var(--glass-border);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.8rem;
    transition: var(--transition-fast);
    color: var(--text-main);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-main);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 0.5rem;
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 150px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.lang-dropdown.active {
    display: flex;
    animation: fadeIn 0.2s ease;
}

.lang-item {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition-fast);
}

.lang-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

.lang-item.active {
    background: var(--electric-indigo);
}

/* Hide desktop nav on mobile */
@media (max-width: 768px) {
    .booklet-nav {
        display: none !important;
    }

    .lang-selector {
        display: none;
        /* Hide global lang selector if present */
    }
}

@media (min-width: 769px) {
    .burger-menu-btn {
        display: none;
    }

    .main-booklet-header {
        position: sticky;
        top: 0;
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--glass-border);
        padding: 0.75rem 0;
        z-index: 1000;
    }

    .booklet-header {
        padding: 4rem 0 2rem 0;
    }
}

@media (max-width: 768px) {
    .booklet-header {
        padding: 2rem 0;
    }
}

/* CARDS REFINEMENT */
.tab-content {
    padding: 2.5rem 0;
}

.tab-content h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-main);
}

.tab-content h2 i {
    color: var(--electric-indigo);
    padding: 10px;
    background: var(--indigo-glow);
    border-radius: 12px;
}

.info-card {
    background: var(--void-black);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 2.25rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.wifi-card {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.wifi-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
}

.wifi-item label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.wifi-item span {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--electric-indigo);
    font-size: 1.25rem;
}

.equipment-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 0;
}

@media (min-width: 600px) {
    .equipment-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

.equipment-list li {
    background: var(--void-black);
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    color: var(--text-main);
}

@media (max-width: 768px) {
    .info-card {
        padding: 1.75rem;
    }

    .tab-content h2 {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }
}

.personal-welcome {
    margin-top: 2.5rem;
    padding: 2.5rem;
    border-left: 4px solid var(--electric-indigo);
    background: var(--void-black);
}

.personal-welcome p {
    font-style: italic;
    line-height: 1.8;
    color: var(--text-main);
    font-size: 1.1rem;
}

.personal-welcome .signature {
    margin-top: 1.5rem;
    font-weight: 700;
    color: var(--electric-indigo);
    letter-spacing: 1px;
}

/* 🛠️ MODAL SYSTEM (Legacy/Duplicate - Removed) */

.modal-content {
    width: 95%;
    max-width: 900px;
    position: relative;
    border-radius: var(--radius-xl);
    background: var(--void-black);
    border: 1px solid var(--glass-border);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Handled by .video-container above */

.modal-content.image-container {
    max-width: 90vh;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.modal-content.image-container img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    display: block;
}

.video-container iframe {
    width: 100%;
    height: 100%;
}

.btn-close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1010;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-close-modal:hover {
    transform: rotate(90deg);
    background: var(--electric-indigo);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.modal-header h3 {
    font-family: var(--font-mono);
    letter-spacing: 1px;
    color: var(--electric-indigo);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-close {
    background: transparent;
    border: none;
    color: var(--soft-slate);
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-close:hover {
    color: var(--text-main);
    transform: rotate(90deg);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

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

.form-group label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--soft-slate);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--glass-border);
    padding: 0.8rem 1rem;
    border-radius: var(--radius-lg);
    font-family: var(--font-main);
    color: var(--text-main);
    font-size: 0.9rem;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--electric-indigo);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-secondary {
    padding: 1rem 2rem;
    border: 1px solid var(--glass-border);
    background: transparent;
    border-radius: var(--radius-lg);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.75rem;
    cursor: pointer;
    color: var(--soft-slate);
    transition: var(--transition-fast);
}

.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-main);
}

/* 📧 MAIL PREVIEW SPECIFICS */
.mail-preview-box {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    max-height: 400px;
    overflow-y: auto;
    color: #333;
    margin: 1.5rem 0;
}

.mail-header-info {
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--soft-slate);
}

.mail-header-info p {
    margin: 0.25rem 0;
}

.mail-body-content {
    line-height: 1.6;
    font-family: Arial, sans-serif;
    color: #333;
}

.mail-body-content p {
    margin-bottom: 1rem;
}

/* 📱 MOBILE NAVIGATION */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 1.5rem;
    left: 1rem;
    right: 1rem;
    z-index: 1000;
    justify-content: space-around;
    padding: 0.75rem;
    border-radius: var(--radius-xl);
    height: auto;
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--soft-slate);
    text-decoration: none;
    background: transparent;
    border: none;
    padding: 0.5rem;
    border-radius: var(--radius-lg);
    transition: var(--transition-fast);
}

.mobile-nav-item.active {
    color: var(--electric-indigo);
    background: rgba(194, 155, 97, 0.1);
}

@media (max-width: 768px) {
    .mobile-nav {
        display: flex;
    }

    .sidebar {
        display: none !important;
    }

    .main-viewport {
        padding-bottom: 8rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    .dashboard-header {
        padding: 2rem 0;
    }

    .header-content {
        padding: 0 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .action-group {
        width: 100%;
        justify-content: flex-start;
        gap: 0.75rem;
    }

    .btn-primary-kabuki span,
    .btn-icon-labeled span {
        display: none;
    }

    .btn-primary-kabuki,
    .btn-icon-labeled {
        padding: 0 1rem;
    }

    .table-section .section-header-kabuki {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-tabs {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 5px;
    }
}

/* 📅 PLANNING / TIMELINE VIEW */
#planning-section {
    transition: var(--transition-slow);
}

.planning-header {
    margin-bottom: 2rem;
}

.planning-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 1rem 2rem;
    width: fit-content;
    margin: 0 auto;
}

.planning-controls h2 {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    letter-spacing: 2px;
    min-width: 200px;
    text-align: center;
}

.planning-wrapper {
    overflow-x: auto;
    padding: 0;
    margin-bottom: 2rem;
}

.planning-timeline {
    min-width: 1800px;
    position: relative;
    padding: 1rem 0;
}

.timeline-header {
    display: flex;
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    background: white;
    z-index: 100;
}

.resource-column-header {
    width: 280px;
    flex-shrink: 0;
    padding: 1rem;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: var(--soft-slate);
    border-right: 1px solid var(--glass-border);
    background: var(--deep-surface);
}

.days-row {
    display: flex;
    flex-grow: 1;
}

.day-cell {
    width: 60px;
    flex-shrink: 0;
    text-align: center;
    padding: 0.75rem 0;
    font-size: 0.7rem;
    border-right: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.day-cell.today {
    background: rgba(194, 155, 97, 0.08);
    color: var(--br-gold);
}

.day-cell .day-name {
    color: var(--soft-slate);
    font-weight: 500;
    text-transform: uppercase;
}

.day-cell .day-num {
    font-size: 1rem;
    font-weight: 800;
}

.resource-row {
    display: flex;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    min-height: 80px;
}

.resource-name {
    width: 280px;
    flex-shrink: 0;
    padding: 1.5rem 1rem;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-main);
    border-right: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.5);
}

.reservation-grid {
    flex-grow: 1;
    display: flex;
    position: relative;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
    background-size: 60px 100%;
}

.reservation-bar {
    position: absolute;
    height: 48px;
    top: 16px;
    background: #34495e;
    color: white;
    border-radius: 8px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 5;
    overflow: hidden;
    white-space: nowrap;
    border-top: 4px solid transparent;
}

.reservation-bar:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.reservation-bar.airbnb {
    border-top-color: #ff5a5f;
}

.reservation-bar.booking {
    border-top-color: #003580;
}

.reservation-bar.direct {
    border-top-color: #10b981;
}

.reservation-bar .resa-name {
    overflow: hidden;
    text-overflow: ellipsis;
}

/* UTILS */
.hidden {
    display: none !important;
}


/* --- MOBILE CARDS VIEW --- */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: flex !important;
        flex-direction: column;
        gap: 1.25rem;
    }
}

.cards-stack {
    padding: 0 1rem 2rem 1rem;
}

.resa-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: var(--transition-fast);
}

.resa-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.card-guest {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.card-name {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.card-apt {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--electric-indigo);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-dates {
    display: flex;
    gap: 1.5rem;
    background: rgba(0, 0, 0, 0.02);
    padding: 0.75rem;
    border-radius: var(--radius-lg);
}

.date-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.date-item .label {
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--soft-slate);
}

.date-item .value {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-main);
}

.card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--glass-border);
    padding-top: 1rem;
}

.pin-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 0.8rem;
}

.pin-box.ready {
    background: var(--indigo-glow);
    color: var(--electric-indigo);
}

.pin-box.missing {
    background: rgba(0, 0, 0, 0.05);
    color: var(--soft-slate);
}

.card-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-icon.mini {
    width: 32px;
    height: 32px;
}
/* Modal and Overlay Adjustments */
.modal-overlay.active {
    display: flex !important;
    opacity: 1;
    visibility: visible;
}

/* Ensure filter tabs look good when scrolled */
.filter-tabs::-webkit-scrollbar {
    display: none;
}
.filter-tabs {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* --- MOBILE HEADER & TOP BAR --- */
.mobile-top-bar {
    display: none;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .mobile-top-bar {
        display: flex;
    }
    
    .dashboard-header {
        padding: 2rem 0 1rem 0;
    }
}

.btn-back-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.btn-back-circle:hover {
    background: var(--electric-indigo);
    color: white;
    transform: translateX(-3px);
}

/* --- CARDS RESPONSIVE IMPROVEMENTS --- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    padding: 0 1.5rem 3rem 1.5rem;
}

@media (max-width: 600px) {
    .cards-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem 2rem 1rem;
    }

    .resa-card {
        padding: 1.5rem;
    }

    .card-name {
        font-size: 1.25rem;
    }
}

/* Card details refinement */
.resa-card .card-dates {
    background: rgba(194, 155, 97, 0.05);
    border: 1px solid rgba(194, 155, 97, 0.1);
}

.resa-card .pin-box.ready {
    border: 1px solid var(--electric-indigo);
}
