/* ============================================================
   ProLitoral - Painel Administrativo
   Design Premium Dark com Tons Dourados
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-primary: #0a0e17;
    --bg-secondary: #111827;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --gold: #c9a84c;
    --gold-light: #f0d78c;
    --gold-dark: #b8942e;
    --text-primary: #f0f0f0;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --sidebar-width: 260px;
    --header-height: 64px;
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    font-family: inherit;
}

input,
select,
textarea {
    font-family: inherit;
}

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a0e17 0%, #1a1f2e 50%, #0d1117 100%);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.08) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    border-radius: 50%;
}

.login-page::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.05) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    border-radius: 50%;
}

.login-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 48px 40px;
    width: 100%;
    max-width: 440px;
    backdrop-filter: blur(20px);
    position: relative;
    z-index: 1;
    animation: fadeUp 0.6s ease;
}

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

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

.login-logo {
    text-align: center;
    margin-bottom: 36px;
}

.login-logo h1 {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-logo p {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 8px;
}

.login-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin-bottom: 20px;
    text-align: center;
}

/* ============================================================
   LAYOUT PRINCIPAL
   ============================================================ */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 100;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    overflow-y: auto;
}

.sidebar-logo {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: var(--header-height);
}

.sidebar-logo span {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-nav {
    padding: 16px 12px;
    flex: 1;
}

.nav-section {
    margin-bottom: 24px;
}

.nav-section-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-muted);
    padding: 0 12px;
    margin-bottom: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    margin-bottom: 2px;
}

.nav-item:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.15), rgba(201, 168, 76, 0.05));
    color: var(--gold);
    border: 1px solid rgba(201, 168, 76, 0.2);
}

.nav-item i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.top-header {
    height: var(--header-height);
    background: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    padding: 8px;
}

.page-title {
    font-size: 18px;
    font-weight: 600;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 14px;
}

.header-user .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    color: #fff;
}

.btn-logout {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    color: #fca5a5;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-logout:hover {
    background: rgba(239, 68, 68, 0.2);
}

/* Page Content */
.page-content {
    padding: 32px;
    flex: 1;
}

/* ============================================================
   CARDS & STATS
   ============================================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.stat-card .stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 16px;
}

.stat-card .stat-icon.gold {
    background: rgba(201, 168, 76, 0.12);
    color: var(--gold);
}

.stat-card .stat-icon.blue {
    background: rgba(59, 130, 246, 0.12);
    color: var(--info);
}

.stat-card .stat-icon.green {
    background: rgba(34, 197, 94, 0.12);
    color: var(--success);
}

.stat-card .stat-icon.purple {
    background: rgba(168, 85, 247, 0.12);
    color: #a855f7;
}

.stat-card .stat-value {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-card .stat-label {
    font-size: 13px;
    color: var(--text-muted);
}

/* ============================================================
   FORMS
   ============================================================ */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-group label .required {
    color: var(--danger);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

.form-control::placeholder {
    color: var(--text-muted);
}

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

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6        9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.form-check input[type="checkbox"] {
    accent-color: var(--gold);
    width: 18px;
    height: 18px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    border: none;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(201, 168, 76, 0.25);
}

.btn-secondary {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.btn-secondary:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.2);
}

.btn-success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #86efac;
}

.btn-success:hover {
    background: rgba(34, 197, 94, 0.2);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ============================================================
   TABLES
   ============================================================ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.card-header h2 {
    font-size: 16px;
    font-weight: 600;
}

.card-body {
    padding: 24px;
}

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

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

.admin-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border);
}

.admin-table td {
    padding: 14px 16px;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}

.admin-table tr:hover td {
    background: var(--bg-card-hover);
}

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

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background: rgba(34, 197, 94, 0.12);
    color: var(--success);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.12);
    color: var(--danger);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.12);
    color: var(--warning);
}

.badge-info {
    background: rgba(59, 130, 246, 0.12);
    color: var(--info);
}

.actions-cell {
    display: flex;
    gap: 6px;
}

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.95);
    transition: var(--transition);
}

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

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* Modal Large */
.modal-lg {
    max-width: 900px;
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    min-width: 300px;
    max-width: 400px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.4s ease;
    backdrop-filter: blur(20px);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

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

.toast.success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
}

.toast.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.toast.info {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #93c5fd;
}

/* ============================================================
   GALLERY / DROPZONE
   ============================================================ */
.dropzone {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.dropzone:hover,
.dropzone.dragover {
    border-color: var(--gold);
    background: rgba(201, 168, 76, 0.05);
}

.dropzone i {
    font-size: 40px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.dropzone p {
    color: var(--text-secondary);
    font-size: 14px;
}

.dropzone .highlight {
    color: var(--gold);
    font-weight: 600;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
    aspect-ratio: 4/3;
}

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

.gallery-item .gallery-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-actions {
    opacity: 1;
}

.gallery-item .gallery-actions button {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    font-size: 14px;
}

.gallery-item .gallery-actions .btn-star {
    background: rgba(201, 168, 76, 0.8);
    color: #fff;
}

.gallery-item .gallery-actions .btn-del {
    background: rgba(239, 68, 68, 0.8);
    color: #fff;
}

.gallery-item.principal {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.3);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    padding: 6px 8px;
}

.caption-input {
    width: 100%;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    color: #fff;
    font-size: 12px;
    padding: 4px 6px;
    outline: none;
    transition: var(--transition);
}

.caption-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.caption-input:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.caption-input:focus {
    border-color: var(--gold);
    background: rgba(0, 0, 0, 0.3);
}

/* ============================================================
   CALENDAR (AGENDA)
   ============================================================ */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-header-cell {
    padding: 8px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}

.calendar-cell {
    padding: 8px;
    min-height: 40px;
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.calendar-cell:hover {
    border-color: var(--gold);
}

.calendar-cell.empty {
    background: transparent;
    border: none;
    cursor: default;
}

.calendar-cell.today {
    border-color: var(--gold);
    color: var(--gold);
    font-weight: 600;
}

.calendar-cell.occupied {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.calendar-cell.occupied.confirmed {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.3);
    color: #86efac;
}

.calendar-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.calendar-nav h3 {
    font-size: 18px;
    min-width: 200px;
    text-align: center;
}

.calendar-nav button {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.calendar-nav button:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* ============================================================
   DETAILS / AMENITIES
   ============================================================ */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.amenity-check {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.amenity-check:hover {
    border-color: var(--border-hover);
}

.amenity-check.active {
    border-color: var(--gold);
    background: rgba(201, 168, 76, 0.05);
}

.amenity-check input {
    display: none;
}

.amenity-check i {
    font-size: 18px;
    color: var(--text-muted);
    width: 24px;
    text-align: center;
}

.amenity-check.active i {
    color: var(--gold);
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.empty-state p {
    font-size: 14px;
    margin-bottom: 20px;
}

/* ============================================================
   TABS
   ============================================================ */
.tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
    overflow-x: auto;
}

.tab-btn {
    padding: 12px 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
    white-space: nowrap;
}

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

.tab-btn.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

.tab-content {
    display: none;
}

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

/* ============================================================
   UPLOAD / DRAG
   ============================================================ */
.file-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-top: 10px;
}

.file-preview img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.file-preview .file-info {
    flex: 1;
}

.file-preview .file-info .name {
    font-size: 14px;
    font-weight: 500;
}

.file-preview .file-info .size {
    font-size: 12px;
    color: var(--text-muted);
}

/* ============================================================
   MOBILE APP BAR (hidden on desktop)
   ============================================================ */
.mobile-app-bar {
    display: none;
}

/* ============================================================
   BOTTOM TAB NAV (hidden on desktop)
   ============================================================ */
.bottom-nav {
    display: none;
}

/* ============================================================
   SHEET MENU (hidden on desktop)
   ============================================================ */
.sheet-overlay,
.sheet-menu {
    display: none;
}

/* ============================================================
   RESPONSIVE — MOBILE NATIVE
   ============================================================ */
@media (max-width: 768px) {

    /* --- Hide Desktop Elements --- */
    .sidebar,
    .sidebar-overlay,
    .top-header {
        display: none !important;
    }

    .main-content {
        margin-left: 0;
    }

    /* --- Mobile App Bar --- */
    .mobile-app-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 56px;
        padding: 0 16px;
        background: rgba(10, 14, 23, 0.92);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border);
        z-index: 200;
    }

    .app-bar-left {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .app-bar-logo {
        font-size: 22px;
    }

    .app-bar-title {
        font-size: 17px;
        font-weight: 700;
        background: linear-gradient(135deg, var(--gold), var(--gold-light));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .app-bar-right {
        display: flex;
        align-items: center;
    }

    .app-bar-avatar {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--gold), var(--gold-dark));
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        font-size: 14px;
        color: #fff;
        text-decoration: none;
    }

    /* --- Page Content --- */
    .page-content {
        padding: 16px 12px 88px 12px;
        margin-top: 56px;
    }

    /* --- Bottom Tab Nav --- */
    .bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 64px;
        background: rgba(10, 14, 23, 0.95);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        z-index: 300;
        padding: 0;
        padding-bottom: env(safe-area-inset-bottom, 0px);
        box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.4);
    }

    .bottom-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        color: var(--text-muted);
        font-size: 10px;
        font-weight: 500;
        text-decoration: none;
        border: none;
        background: none;
        cursor: pointer;
        padding: 6px 0;
        position: relative;
        transition: color 0.2s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .bottom-nav-item i {
        font-size: 20px;
        transition: transform 0.2s ease;
    }

    .bottom-nav-item.active {
        color: var(--gold);
    }

    .bottom-nav-item.active i {
        transform: scale(1.1);
    }

    .bottom-nav-item.active::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 28px;
        height: 3px;
        background: var(--gold);
        border-radius: 0 0 3px 3px;
    }

    .bottom-nav-item:active {
        transform: scale(0.92);
    }

    /* --- Sheet Overlay & Menu --- */
    .sheet-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(2px);
        z-index: 400;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .sheet-overlay.active {
        display: block;
        opacity: 1;
    }

    .sheet-menu {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(17, 24, 39, 0.98);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
        z-index: 500;
        transform: translateY(100%);
        transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
        padding: 0 16px 24px 16px;
        padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
        max-height: 70vh;
        overflow-y: auto;
        box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.5);
    }

    .sheet-menu.active {
        transform: translateY(0);
    }

    .sheet-handle {
        width: 36px;
        height: 4px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 2px;
        margin: 10px auto 4px auto;
    }

    .sheet-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 4px 16px 4px;
    }

    .sheet-header h3 {
        font-size: 18px;
        font-weight: 700;
        background: linear-gradient(135deg, var(--gold), var(--gold-light));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .sheet-close {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.06);
        border: none;
        color: var(--text-muted);
        font-size: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .sheet-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }

    .sheet-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        padding: 14px 4px;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid transparent;
        text-decoration: none;
        color: var(--text-secondary);
        font-size: 11px;
        font-weight: 500;
        text-align: center;
        transition: all 0.2s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .sheet-item:active {
        transform: scale(0.95);
        background: rgba(255, 255, 255, 0.05);
    }

    .sheet-item.active {
        background: rgba(201, 168, 76, 0.08);
        border-color: rgba(201, 168, 76, 0.2);
        color: var(--gold);
    }

    .sheet-item-icon {
        width: 48px;
        height: 48px;
        border-radius: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
    }

    /* --- Stats Grid: force 2 columns minimum --- */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-card .stat-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        font-size: 16px;
        margin-bottom: 10px;
    }

    .stat-card .stat-value {
        font-size: 22px;
    }

    .stat-card .stat-label {
        font-size: 11px;
    }

    /* --- Cards & Tables --- */
    .card {
        border-radius: 14px;
    }

    .card-header {
        padding: 14px 16px;
    }

    .card-header h2 {
        font-size: 14px;
    }

    .card-body {
        padding: 16px;
    }

    .admin-table th {
        padding: 10px 12px;
        font-size: 10px;
    }

    .admin-table td {
        padding: 10px 12px;
        font-size: 13px;
    }

    /* --- Modals: Full-screen slide-up --- */
    .modal-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .modal-overlay .modal {
        max-width: 100%;
        max-height: 95vh;
        border-radius: 20px 20px 0 0;
        transform: translateY(100%);
    }

    .modal-overlay.active .modal {
        transform: translateY(0);
    }

    .modal-overlay .modal.modal-lg {
        max-width: 100%;
    }

    .modal-header {
        padding: 16px 20px;
        position: sticky;
        top: 0;
        background: var(--bg-secondary);
        z-index: 2;
    }

    .modal-body {
        padding: 16px 20px;
    }

    .modal-footer {
        padding: 12px 20px;
        position: sticky;
        bottom: 0;
        background: var(--bg-secondary);
    }

    /* --- Forms --- */
    .form-row,
    .form-row-3 {
        grid-template-columns: 1fr;
    }

    .form-control {
        padding: 14px 16px;
        font-size: 16px;
        /* Prevents iOS zoom on focus */
    }

    .btn {
        padding: 14px 20px;
        min-height: 48px;
        justify-content: center;
    }

    /* --- Gallery --- */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .gallery-item .gallery-actions {
        opacity: 1;
    }

    /* --- Dropzone --- */
    .dropzone {
        padding: 24px;
    }

    .dropzone i {
        font-size: 28px;
    }

    /* --- Calendar --- */
    .calendar-cell {
        padding: 6px 2px;
        min-height: 36px;
        font-size: 12px;
    }

    .calendar-nav h3 {
        font-size: 15px;
        min-width: 160px;
    }

    /* --- Toast --- */
    .toast-container {
        top: auto;
        bottom: 76px;
        left: 12px;
        right: 12px;
    }

    .toast {
        min-width: auto;
        max-width: none;
        width: 100%;
        border-radius: 14px;
    }

    /* --- Amenities --- */
    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .amenity-check {
        padding: 10px 12px;
        font-size: 13px;
    }

    /* --- Tabs --- */
    .tabs {
        gap: 0;
        -webkit-overflow-scrolling: touch;
    }

    .tab-btn {
        padding: 10px 14px;
        font-size: 13px;
    }

    /* Force visitantes grid stack on narrow mobile */
    div[style*="grid-template-columns:260px"] {
        grid-template-columns: 1fr !important;
    }

    /* --- H2 section headers --- */
    h2[style*="font-size:16px"] {
        font-size: 14px !important;
    }

    /* --- Empty State --- */
    .empty-state {
        padding: 40px 16px;
    }

    .empty-state i {
        font-size: 36px;
    }

    .empty-state h3 {
        font-size: 16px;
    }

    /* --- Scrollbar hide on mobile --- */
    ::-webkit-scrollbar {
        display: none;
    }

    /* --- Animations --- */
    @keyframes sheetSlideUp {
        from {
            transform: translateY(100%);
        }

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

/* ============================================================
   EXTRA SMALL MOBILE (<400px)
   ============================================================ */
@media (max-width: 400px) {
    .sheet-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .bottom-nav-item span {
        font-size: 9px;
    }

    .login-box {
        padding: 28px 20px;
    }
}

/* ============================================================
   SCROLLBAR (Desktop)
   ============================================================ */
@media (min-width: 769px) {
    ::-webkit-scrollbar {
        width: 6px;
        height: 6px;
    }

    ::-webkit-scrollbar-track {
        background: var(--bg-primary);
    }

    ::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 3px;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.2);
    }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-gold {
    color: var(--gold);
}

.text-success {
    color: var(--success);
}

.text-danger {
    color: var(--danger);
}

.text-muted {
    color: var(--text-muted);
}

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

.d-flex {
    display: flex;
}

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

.justify-between {
    justify-content: space-between;
}

.gap-8 {
    gap: 8px;
}

.gap-16 {
    gap: 16px;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.w-100 {
    width: 100%;
}

/* Sidebar overlay for mobile (desktop legacy) */
@media (min-width: 769px) {
    .sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 99;
        display: none;
    }

    .sidebar-overlay.active {
        display: block;
    }
}