/* ========================================
   Ensayando Users — Minimal B&W
   ======================================== */

:root {
    --rbu-bg: #fafafa;
    --rbu-bg-surface: #ffffff;
    --rbu-bg-hover: #f5f5f5;
    --rbu-bg-input: #ffffff;
    --rbu-border: #e8e8e8;
    --rbu-border-light: #f0f0f0;
    --rbu-text: #0a0a0a;
    --rbu-text-secondary: #404040;
    --rbu-text-muted: #a0a0a0;
    --rbu-accent: #0a0a0a;
    --rbu-accent-hover: #262626;
    --rbu-accent-light: rgba(10,10,10,0.05);
    --rbu-danger: #dc2626;
    --rbu-danger-light: rgba(220,38,38,0.06);
    --rbu-warning: #d97706;
    --rbu-warning-light: rgba(217,119,6,0.06);
    --rbu-success: #404040;
    --rbu-success-light: rgba(0,0,0,0.05);
    --rbu-blue: #404040;
    --rbu-blue-light: rgba(0,0,0,0.05);
    --rbu-radius: 8px;
    --rbu-radius-lg: 12px;
    --rbu-shadow: 0 1px 2px rgba(0,0,0,0.04);
    --rbu-shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
    --rbu-font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;
}

/* Hide reCAPTCHA v3 badge */
.grecaptcha-badge { visibility: hidden !important; }

/* ========== Auth Modals ========== */
.rbu-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center; z-index: 999999;
}
.rbu-modal-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7); backdrop-filter: blur(6px);
}
.rbu-modal-box {
    position: relative; background: var(--rbu-bg-surface); border: 1px solid var(--rbu-border);
    border-radius: var(--rbu-radius-lg); max-width: 440px; width: 95%;
    max-height: 90vh; overflow-y: auto; box-shadow: var(--rbu-shadow-lg); z-index: 1;
    color: var(--rbu-text);
}
.rbu-modal-lg { max-width: 700px; }
.rbu-modal-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 25px; border-bottom: 1px solid var(--rbu-border);
}
.rbu-modal-header h2 { margin: 0; font-size: 18px; font-weight: 600; color: var(--rbu-text); }
.rbu-modal-close {
    background: none; border: none; font-size: 24px; cursor: pointer;
    color: var(--rbu-text-muted); line-height: 1; padding: 0;
}
.rbu-modal-close:hover { color: var(--rbu-text); }
.rbu-modal-body { padding: 25px; }

/* Social Buttons */
.rbu-social-btn {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    width: 100%; padding: 12px; border-radius: var(--rbu-radius); font-size: 14px;
    font-weight: 500; cursor: pointer; border: 1px solid var(--rbu-border); margin-bottom: 10px;
    transition: background 0.2s; background: var(--rbu-bg); color: var(--rbu-text);
}
.rbu-social-btn:hover { background: var(--rbu-bg-hover); }
.rbu-social-facebook { background: #1877F2; border-color: #1877F2; color: #fff; }
.rbu-social-facebook:hover { background: #1565d8; }
.rbu-social-google { background: var(--rbu-bg); }

/* Divider */
.rbu-divider { display: flex; align-items: center; margin: 20px 0; gap: 15px; }
.rbu-divider::before, .rbu-divider::after { content: ''; flex: 1; height: 1px; background: var(--rbu-border); }
.rbu-divider span { color: var(--rbu-text-muted); font-size: 13px; white-space: nowrap; }

/* Forms */
.rbu-field { margin-bottom: 0; }
.rbu-field input, .rbu-form-group input, .rbu-form-group select, .rbu-form-group textarea {
    width: 100%; padding: 12px 14px; border: 1px solid var(--rbu-border);
    border-radius: var(--rbu-radius); font-size: 14px; background: var(--rbu-bg-input);
    box-sizing: border-box; color: var(--rbu-text); transition: border-color 0.2s;
    font-family: var(--rbu-font);
}
.rbu-field input:focus, .rbu-form-group input:focus, .rbu-form-group select:focus, .rbu-form-group textarea:focus {
    outline: none; border-color: var(--rbu-accent);
}
.rbu-field input::placeholder, .rbu-form-group input::placeholder,
.rbu-form-group textarea::placeholder { color: var(--rbu-text-muted); }
.rbu-field-password { position: relative; }
.rbu-toggle-pass {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: var(--rbu-text-muted); cursor: pointer; font-size: 12px;
}
.rbu-field-row { display: flex; justify-content: space-between; align-items: center; margin: 15px 0; }
.rbu-checkbox { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--rbu-text-secondary); cursor: pointer; }
.rbu-checkbox a { color: var(--rbu-accent); }
.rbu-link { color: var(--rbu-text-muted); font-size: 13px; text-decoration: none; }
.rbu-link:hover { color: var(--rbu-accent); }

/* Buttons */
.rbu-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 20px; border-radius: var(--rbu-radius); font-size: 14px; font-weight: 500;
    cursor: pointer; border: 1px solid transparent; transition: all 0.15s;
    text-decoration: none; line-height: 1.4; font-family: var(--rbu-font);
}
.rbu-btn-primary { background: var(--rbu-text); color: #fff !important; border-color: var(--rbu-text); }
.rbu-btn-primary:hover { background: var(--rbu-accent-hover); border-color: var(--rbu-accent-hover); color: #fff !important; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.rbu-btn-outline { background: transparent !important; color: var(--rbu-text-secondary) !important; border-color: var(--rbu-border) !important; }
.rbu-btn-outline:hover { border-color: var(--rbu-text) !important; color: var(--rbu-text) !important; }
.rbu-btn-success { background: var(--rbu-success); color: #fff; }
.rbu-btn-warning { background: var(--rbu-warning); color: #fff; }
.rbu-btn-danger { background: var(--rbu-danger); color: #fff; }
.rbu-btn-block { width: 100%; }
.rbu-btn-sm { padding: 6px 14px; font-size: 12px; }
.rbu-btn-xs { padding: 4px 10px; font-size: 11px; border-radius: 6px; }
.rbu-btn-lg { padding: 14px 28px; font-size: 15px; }
.rbu-btn-remove { background: none; border: none; color: var(--rbu-danger); cursor: pointer; font-size: 18px; padding: 8px; }

/* Feedback Messages */
.rbu-msg { padding: 10px 15px; border-radius: var(--rbu-radius); margin: 10px 0; font-size: 13px; }
.rbu-msg-success { background: rgba(0,0,0,0.05); color: #0a0a0a; }
.rbu-msg-error { background: var(--rbu-danger-light); color: #991b1b; }

.rbu-switch-text { text-align: center; margin-top: 20px; font-size: 14px; color: var(--rbu-text-muted); }
.rbu-switch-text a { color: var(--rbu-accent); font-weight: 500; text-decoration: none; }

/* ========== Auth Standalone Page ========== */
.rbu-auth-page { display: flex; justify-content: center; align-items: center; min-height: 60vh; padding: 40px 20px; }
.rbu-auth-card { background: var(--rbu-bg-surface); border: 1px solid var(--rbu-border); border-radius: var(--rbu-radius-lg); padding: 40px; max-width: 440px; width: 100%; box-shadow: var(--rbu-shadow-lg); color: var(--rbu-text); }
.rbu-auth-card h2 { margin: 0 0 25px; font-size: 20px; color: var(--rbu-text); }
.rbu-auth-required { text-align: center; padding: 60px 20px; color: var(--rbu-text-muted); }

/* ========== Header User Widget ========== */
.rbu-header-user-link { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--rbu-text); }
.rbu-header-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 2px solid var(--rbu-border); }
.rbu-header-avatar-placeholder { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--rbu-bg-hover); color: var(--rbu-accent); font-weight: 600; font-size: 14px; }
.rbu-header-auth { display: flex; gap: 8px; }

/* Dropdown */
.rbu-user-dropdown { position: relative; }
.rbu-dropdown-toggle { display: flex; align-items: center; gap: 8px; background: none; border: none; cursor: pointer; padding: 6px 10px; border-radius: var(--rbu-radius); color: var(--rbu-text); }
.rbu-dropdown-toggle:hover { background: var(--rbu-bg-hover); }
.rbu-dropdown-menu { display: none; position: absolute; right: 0; top: 100%; margin-top: 8px; background: var(--rbu-bg-surface); border-radius: var(--rbu-radius); box-shadow: var(--rbu-shadow-lg); border: 1px solid var(--rbu-border); min-width: 200px; z-index: 1000; overflow: hidden; }
.rbu-user-dropdown.open .rbu-dropdown-menu { display: block; }
.rbu-dropdown-menu a { display: flex; align-items: center; gap: 8px; padding: 10px 16px; font-size: 14px; color: var(--rbu-text-secondary); text-decoration: none; }
.rbu-dropdown-menu a:hover { background: var(--rbu-bg-hover); color: var(--rbu-text); }
.rbu-dropdown-menu hr { margin: 0; border: none; border-top: 1px solid var(--rbu-border); }
.rbu-badge-count { background: var(--rbu-danger); color: #fff; font-size: 11px; padding: 1px 6px; border-radius: 10px; font-weight: 600; }

/* ========== Dashboard Layout ========== */
.rbu-dashboard {
    display: flex; min-height: 70vh; max-width: 1400px; margin: 0 auto;
    font-family: var(--rbu-font); color: var(--rbu-text);
}
.rbu-sidebar {
    width: 230px; min-width: 230px; background: var(--rbu-bg-surface);
    border-right: 1px solid var(--rbu-border); padding: 16px 0;
}
.rbu-sidebar-nav { display: flex; flex-direction: column; gap: 2px; padding: 0 10px; }
.rbu-nav-item {
    display: flex; align-items: center; gap: 10px; padding: 10px 14px;
    color: var(--rbu-text-secondary); text-decoration: none !important; font-size: 14px;
    font-weight: 400; letter-spacing: -0.01em;
    transition: all 0.12s ease; border-radius: 0px; line-height: 1.3;
}
.rbu-nav-item:hover { background: var(--rbu-bg-hover); color: var(--rbu-text); }
.rbu-nav-item.active { background: var(--rbu-bg-hover); color: var(--rbu-text); font-weight: 500; border-left: 2px solid var(--rbu-accent); padding-left: 12px; }
.rbu-nav-icon {
    display: flex; align-items: center; justify-content: center;
    width: 20px; height: 20px; flex-shrink: 0; color: currentColor;
}
.rbu-nav-icon svg { width: 18px; height: 18px; }
.rbu-nav-label { flex: 1; }
.rbu-nav-sub { font-size: 13px; }
.rbu-nav-sub .rbu-nav-icon { opacity: 0.6; }
.rbu-nav-sub.active .rbu-nav-icon { opacity: 1; }
.rbu-nav-badge {
    margin-left: auto; font-size: 11px; padding: 2px 8px; border-radius: 6px;
    background: var(--rbu-bg-hover); color: var(--rbu-text-muted); font-weight: 500;
    flex-shrink: 0;
}
.rbu-badge-red { background: var(--rbu-danger); color: #fff; }
.rbu-nav-group { display: flex; flex-direction: column; gap: 1px; padding-left: 8px; }
.rbu-nav-spacer { flex: 1; min-height: 20px; }
.rbu-nav-logout { color: var(--rbu-text-muted); }
.rbu-nav-logout:hover { color: var(--rbu-danger); background: var(--rbu-danger-light); }

.rbu-main { flex: 1; padding: 28px 30px; background: var(--rbu-bg); min-width: 0; }

/* ========== Page Elements ========== */
.rbu-page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.rbu-page-header h1 { margin: 0; font-size: 22px; font-weight: 600; color: var(--rbu-text); }
.rbu-counter { font-size: 13px; color: var(--rbu-text-muted); font-weight: 400; background: var(--rbu-bg-hover); padding: 2px 10px; border-radius: 12px; margin-left: 8px; }

/* Section */
.rbu-section { background: var(--rbu-bg-surface); border: 1px solid var(--rbu-border-light); border-radius: var(--rbu-radius-lg); padding: 25px; margin-bottom: 20px; }
.rbu-section h2 { font-size: 17px; margin: 0 0 15px; color: var(--rbu-text); font-weight: 600; }
.rbu-section h3 { font-size: 15px; margin: 0 0 15px; color: var(--rbu-text); font-weight: 600; }
.rbu-section h4 { font-size: 13px; margin: 15px 0 10px; color: var(--rbu-text-muted); font-weight: 500; }

/* Form groups */
.rbu-form-row { display: flex; gap: 15px; margin-bottom: 15px; }
.rbu-form-row > * { flex: 1; }
.rbu-form-group { margin-bottom: 15px; }
.rbu-form-group label { display: block; font-size: 13px; font-weight: 500; color: var(--rbu-text-secondary); margin-bottom: 5px; }
.rbu-form-group input, .rbu-form-group select, .rbu-form-group textarea {
    border: 1px solid var(--rbu-border); border-radius: var(--rbu-radius); padding: 10px 12px;
    background: var(--rbu-bg-input); color: var(--rbu-text);
}
.rbu-form-group input:focus, .rbu-form-group select:focus, .rbu-form-group textarea:focus {
    border-color: var(--rbu-accent); box-shadow: 0 0 0 2px var(--rbu-accent-light);
}
.rbu-form-group select { appearance: auto; }
.rbu-input-disabled { background: var(--rbu-bg) !important; color: var(--rbu-text-muted) !important; cursor: not-allowed; border-color: var(--rbu-border-light) !important; }
.rbu-form-actions { display: flex; justify-content: flex-end; margin-top: 20px; }

/* Radio & Checkbox groups */
.rbu-radio-group, .rbu-checkbox-group { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 20px; }
.rbu-radio-label, .rbu-check-label { display: flex; align-items: center; gap: 6px; padding: 8px 16px; border: 1px solid var(--rbu-border); border-radius: var(--rbu-radius); font-size: 13px; cursor: pointer; transition: all 0.15s; color: var(--rbu-text-secondary); }
.rbu-radio-label:has(input:checked), .rbu-check-label:has(input:checked) { background: var(--rbu-accent-light); border-color: var(--rbu-accent); color: var(--rbu-accent); }

/* Stats Grid */
.rbu-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 25px; }
.rbu-stat-card { background: var(--rbu-bg-surface); border: 1px solid var(--rbu-border-light); border-radius: var(--rbu-radius-lg); padding: 20px; text-align: center; }
.rbu-stat-icon { font-size: 26px; margin-bottom: 8px; }
.rbu-stat-value { font-size: 24px; font-weight: 600; color: var(--rbu-text); }
.rbu-stat-label { font-size: 12px; color: var(--rbu-text-muted); margin-top: 4px; }
.rbu-stat-warning .rbu-stat-value { color: var(--rbu-text-secondary); }
.rbu-stat-success .rbu-stat-value { color: var(--rbu-text); }

/* Quick Actions */
.rbu-quick-actions, .rbu-reservas-actions { display: flex; gap: 12px; margin-bottom: 25px; }
.rbu-action-btn {
    display: inline-flex; align-items: center; gap: 7px; padding: 10px 20px;
    background: var(--rbu-text); border-radius: 8px; color: #fff !important; font-weight: 500;
    text-decoration: none !important; transition: all 0.15s; border: none; cursor: pointer;
    font-size: 13px; letter-spacing: -0.01em;
}
.rbu-action-btn:hover { background: var(--rbu-accent-hover); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.12); }

/* Badges */
.rbu-badge { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 500; }
.rbu-badge--pending { background: rgba(0,0,0,0.06); color: #404040; }
.rbu-badge--confirmed, .rbu-badge--processing { background: rgba(0,0,0,0.06); color: #0a0a0a; }
.rbu-badge--cancelled { background: var(--rbu-danger-light); color: #991b1b; }
.rbu-badge--completed { background: rgba(0,0,0,0.06); color: #404040; }
.rbu-badge--rescheduled { background: var(--rbu-accent-light); color: #404040; }

/* Tables */
.rbu-table-wrap { overflow-x: auto; }
.rbu-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.rbu-table th { background: var(--rbu-bg); padding: 10px 12px; text-align: left; font-size: 12px; font-weight: 500; color: var(--rbu-text-muted); border-bottom: 1px solid var(--rbu-border); }
.rbu-table td { padding: 10px 12px; border-bottom: 1px solid var(--rbu-border-light); color: var(--rbu-text-secondary); }
.rbu-table tr:hover { background: var(--rbu-bg-hover); }
.rbu-text-primary { color: var(--rbu-accent); }
.rbu-text-muted { color: var(--rbu-text-muted); font-size: 12px; }

/* Empty States */
.rbu-empty { text-align: center; padding: 25px; color: var(--rbu-text-muted); }
.rbu-empty-state { text-align: center; padding: 60px 20px; background: var(--rbu-bg-surface); border: 1px dashed var(--rbu-border); border-radius: var(--rbu-radius-lg); }
.rbu-empty-icon { font-size: 48px; margin-bottom: 15px; }
.rbu-empty-state h3 { margin: 0 0 8px; color: var(--rbu-text); }
.rbu-empty-state p { color: var(--rbu-text-muted); margin-bottom: 20px; }

/* Salas Grid */
.rbu-salas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.rbu-sala-card { background: var(--rbu-bg-surface); border: 1px solid var(--rbu-border-light); border-radius: var(--rbu-radius-lg); overflow: hidden; transition: border-color 0.2s; }
.rbu-sala-card:hover { border-color: var(--rbu-accent); }
.rbu-sala-thumb { position: relative; height: 160px; background: var(--rbu-bg); overflow: hidden; }
.rbu-sala-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rbu-sala-no-img { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 48px; color: var(--rbu-border); }
.rbu-sala-status { position: absolute; top: 10px; right: 10px; padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 500; }
.rbu-sala-status--publish { background: rgba(0,0,0,0.06); color: #0a0a0a; }
.rbu-sala-status--draft { background: var(--rbu-warning-light); color: #404040; }
.rbu-sala-info { padding: 15px; }
.rbu-sala-info h3 { margin: 0 0 8px; font-size: 15px; color: var(--rbu-text); }
.rbu-sala-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--rbu-text-muted); margin-bottom: 8px; }
.rbu-sala-type { background: var(--rbu-accent-light); color: var(--rbu-accent); padding: 2px 8px; border-radius: 6px; font-size: 11px; }
.rbu-sala-price { font-size: 18px; font-weight: 600; color: var(--rbu-accent); }
.rbu-sala-stats { font-size: 12px; color: var(--rbu-text-muted); margin-top: 8px; }
.rbu-sala-actions { display: flex; gap: 6px; padding: 12px 15px; border-top: 1px solid var(--rbu-border-light); flex-wrap: wrap; }

/* Avatar Section */
.rbu-avatar-section { display: flex; align-items: center; gap: 25px; }
.rbu-avatar-preview { width: 90px; height: 90px; border-radius: 50%; background: var(--rbu-bg); display: flex; align-items: center; justify-content: center; overflow: hidden; border: 2px solid var(--rbu-border); }
.rbu-avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
.rbu-avatar-icon { font-size: 36px; color: var(--rbu-border); }
.rbu-avatar-controls p { margin: 0 0 10px; font-size: 14px; color: var(--rbu-text-secondary); }
.rbu-avatar-buttons { display: flex; gap: 8px; }

/* Note Box */
.rbu-note-box { border-radius: var(--rbu-radius); overflow: hidden; margin-bottom: 25px; border: 1px solid var(--rbu-border); }
.rbu-note-header { background: var(--rbu-accent); color: #fff; padding: 8px 20px; font-weight: 600; font-size: 14px; }
.rbu-note-body { background: var(--rbu-bg); padding: 14px 20px; font-size: 13px; color: var(--rbu-text-secondary); }

/* Verification */
.rbu-verify-badge { display: flex; align-items: center; gap: 15px; padding: 20px; border-radius: var(--rbu-radius); margin-bottom: 20px; }
.rbu-verify-ok { background: rgba(0,0,0,0.04); border: 1px solid var(--rbu-border); }
.rbu-verify-pending { background: var(--rbu-warning-light); border: 1px solid rgba(0,0,0,0.1); }
.rbu-verify-icon { font-size: 32px; }
.rbu-verify-badge h3 { margin: 0 0 4px; color: var(--rbu-text); }
.rbu-verify-badge p { margin: 0; font-size: 13px; color: var(--rbu-text-secondary); }
.rbu-verify-checklist { margin-top: 20px; }
.rbu-verify-checklist h4 { margin: 0 0 12px; color: var(--rbu-text); }
.rbu-verify-checklist ul { list-style: none; padding: 0; }
.rbu-verify-checklist li { padding: 8px 0; font-size: 14px; color: var(--rbu-text-secondary); }

/* Schedule Block */
.rbu-schedule-block { border: 1px solid var(--rbu-border); border-radius: var(--rbu-radius); padding: 20px; margin: 20px 0; background: var(--rbu-bg); }
.rbu-schedule-block h4 { margin: 0 0 15px; color: var(--rbu-accent); font-size: 14px; font-weight: 500; }

/* Image Upload */
#rbu-sala-thumbnail-preview { width: 200px; height: 140px; border: 1px dashed var(--rbu-border); border-radius: var(--rbu-radius); overflow: hidden; margin-bottom: 10px; display: flex; align-items: center; justify-content: center; cursor: pointer; background: var(--rbu-bg); }
#rbu-sala-thumbnail-preview img { width: 100%; height: 100%; object-fit: cover; }
.rbu-upload-placeholder { font-size: 13px; color: var(--rbu-text-muted); text-align: center; padding: 10px; }

/* Calendar filter */
.rbu-filter-bar { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.rbu-filter-bar select { padding: 8px 12px; border: 1px solid var(--rbu-border); border-radius: var(--rbu-radius); font-size: 14px; background: var(--rbu-bg-input); color: var(--rbu-text); }
.rbu-calendar-views { display: flex; gap: 4px; }
.rbu-calendar-views button { padding: 6px 14px; border: 1px solid var(--rbu-border); background: var(--rbu-bg-surface); border-radius: 6px; cursor: pointer; font-size: 13px; color: var(--rbu-text-secondary); }
.rbu-calendar-views button:hover { background: var(--rbu-accent-light); color: var(--rbu-accent); }

/* FullCalendar overrides */
.rbu-dashboard .fc { --fc-border-color: var(--rbu-border) !important; --fc-page-bg-color: var(--rbu-bg) !important; --fc-neutral-bg-color: var(--rbu-bg-surface) !important; }
.rbu-dashboard .fc .fc-toolbar-title { font-size: 17px !important; color: var(--rbu-text) !important; }
.rbu-dashboard .fc .fc-button-primary { background: var(--rbu-accent) !important; border-color: var(--rbu-accent) !important; }
.rbu-dashboard .fc .fc-button-primary:hover { background: var(--rbu-accent-hover) !important; }
.rbu-dashboard .fc .fc-event { border-radius: 6px; font-size: 11px; cursor: pointer; }
.rbu-dashboard .fc .fc-col-header-cell-cushion, .rbu-dashboard .fc .fc-daygrid-day-number { color: var(--rbu-text-secondary) !important; }
.rbu-dashboard .fc .fc-timegrid-slot-label { color: var(--rbu-text-muted) !important; }

/* Profile page */
.rbu-profile-page { max-width: 800px; margin: 0 auto; padding: 40px 20px; }
.rbu-profile-header { display: flex; align-items: center; gap: 25px; }
.rbu-profile-avatar { width: 120px; height: 120px; border-radius: 50%; overflow: hidden; }
.rbu-profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.rbu-avatar-lg { width: 120px; height: 120px; font-size: 48px; display: flex; align-items: center; justify-content: center; background: var(--rbu-bg-surface); border-radius: 50%; }
.rbu-profile-info h2 { margin: 0 0 4px; color: var(--rbu-text); }
.rbu-profile-company { color: var(--rbu-text-muted); margin: 0 0 8px; }
.rbu-profile-bio { color: var(--rbu-text-secondary); }
.rbu-verified-badge { background: rgba(0,0,0,0.06); color: #0a0a0a; padding: 4px 12px; border-radius: 12px; font-size: 13px; font-weight: 500; }

/* Messages list (legacy) */
.rbu-message-item { display: flex; gap: 15px; padding: 15px; border-bottom: 1px solid var(--rbu-border-light); cursor: pointer; transition: background 0.12s; }
.rbu-message-item:hover { background: var(--rbu-bg-hover); }
.rbu-message-item.unread { background: var(--rbu-accent-light); }
.rbu-message-sender { font-weight: 500; font-size: 14px; color: var(--rbu-text); }
.rbu-message-subject { font-size: 14px; color: var(--rbu-text-secondary); }
.rbu-message-preview { font-size: 13px; color: var(--rbu-text-muted); }
.rbu-message-date { font-size: 12px; color: var(--rbu-text-muted); white-space: nowrap; }

/* ========== Banner CTA ========== */
.rbu-banner-cta { margin-bottom: 24px; border-radius: var(--rbu-radius-lg); background: var(--rbu-text); color: #fff; overflow: hidden; }
.rbu-banner-cta-content { display: flex; align-items: center; gap: 20px; padding: 24px 28px; flex-wrap: wrap; }
.rbu-banner-cta-icon { font-size: 32px; flex-shrink: 0; }
.rbu-banner-cta-text { flex: 1; min-width: 200px; }
.rbu-banner-cta-text h3 { margin: 0 0 4px 0; font-size: 16px; font-weight: 600; color: #fff; letter-spacing: -0.02em; }
.rbu-banner-cta-text p { margin: 0; font-size: 13px; opacity: 0.7; }

/* WhatsApp Buttons */
.rbu-btn-whatsapp { display: inline-flex; align-items: center; gap: 8px; background: #25D366; color: #fff !important; border: none; border-radius: var(--rbu-radius); padding: 12px 24px; font-size: 14px; font-weight: 500; text-decoration: none; cursor: pointer; transition: background 0.2s; flex-shrink: 0; white-space: nowrap; }
.rbu-btn-whatsapp:hover { background: #1DA851; color: #fff !important; }
.rbu-btn-whatsapp svg { flex-shrink: 0; }
.rbu-btn-whatsapp-sm, .rbu-btn.rbu-btn-whatsapp-sm { display: inline-flex; align-items: center; gap: 4px; background: #25D366; color: #fff !important; border: none; border-radius: 6px; padding: 4px 10px; font-size: 12px; font-weight: 500; text-decoration: none; cursor: pointer; }
.rbu-btn-whatsapp-sm:hover, .rbu-btn.rbu-btn-whatsapp-sm:hover { background: #1DA851; color: #fff !important; }

/* ========== Gallery Grid (Dashboard) ========== */
.rbu-gallery-grid { display: grid !important; grid-template-columns: repeat(4, 1fr) !important; gap: 10px !important; margin-top: 12px !important; min-height: 40px; }
.rbu-gallery-item { position: relative !important; width: 100% !important; aspect-ratio: 4/3; border-radius: var(--rbu-radius) !important; overflow: hidden !important; border: 2px solid var(--rbu-border) !important; cursor: grab; background: var(--rbu-bg); box-sizing: border-box !important; }
.rbu-gallery-item:hover { border-color: var(--rbu-accent) !important; }
.rbu-gallery-item.rbu-dragging { opacity: 0.4 !important; }
.rbu-gallery-item img { width: 100% !important; height: 100% !important; object-fit: cover !important; display: block !important; }
.rbu-gallery-remove { position: absolute !important; top: 6px !important; right: 6px !important; width: 26px !important; height: 26px !important; border-radius: 50% !important; background: var(--rbu-danger) !important; color: #fff !important; border: none !important; font-size: 16px !important; line-height: 26px !important; text-align: center !important; cursor: pointer !important; z-index: 10 !important; padding: 0 !important; opacity: 1 !important; }
.rbu-gallery-remove:hover { background: #dc2626 !important; }

/* Progress bar */
.rbu-progress-bar { width: 100%; height: 4px; background: var(--rbu-border); border-radius: 2px; overflow: hidden; margin-bottom: 4px; }
.rbu-progress-fill { height: 100%; width: 0; background: var(--rbu-accent); border-radius: 2px; transition: width 0.3s ease; }

/* Thumbnail preview */
.rbu-thumb-preview { width: 200px; height: 150px; border: 1px dashed var(--rbu-border); border-radius: var(--rbu-radius); overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--rbu-bg); }
.rbu-thumb-preview img { width: 100%; height: 100%; object-fit: cover; }

/* ========== Library Modal ========== */
.rbu-library-grid { display: grid !important; grid-template-columns: repeat(4, 1fr) !important; gap: 8px !important; max-height: 400px; overflow-y: auto; padding: 4px; }
.rbu-library-item { position: relative !important; width: 100% !important; aspect-ratio: 1; border-radius: var(--rbu-radius) !important; overflow: hidden !important; border: 3px solid transparent !important; cursor: pointer !important; background: var(--rbu-bg); box-sizing: border-box !important; }
.rbu-library-item img { width: 100% !important; height: 100% !important; object-fit: cover !important; display: block !important; }
.rbu-library-item:hover { border-color: var(--rbu-accent) !important; }
.rbu-library-item.rbu-library-selected { border-color: var(--rbu-accent) !important; box-shadow: 0 0 0 2px var(--rbu-accent-light) !important; }
.rbu-library-item.rbu-library-in-use { opacity: 0.3 !important; cursor: not-allowed !important; }
.rbu-library-check { position: absolute !important; top: 5px !important; right: 5px !important; width: 24px !important; height: 24px !important; border-radius: 50% !important; background: var(--rbu-accent) !important; color: #fff !important; font-size: 14px !important; line-height: 24px !important; text-align: center !important; display: none !important; z-index: 10 !important; }
.rbu-library-item.rbu-library-selected .rbu-library-check { display: block !important; }
.rbu-library-badge { position: absolute !important; bottom: 0 !important; left: 0 !important; right: 0 !important; background: rgba(0,0,0,0.7) !important; color: #fff !important; font-size: 10px !important; text-align: center !important; padding: 3px 0 !important; z-index: 5 !important; }

/* ========== Front Gallery ========== */
.rbu-front-gallery { margin: 30px 0 !important; }
.rbu-front-gallery-grid { display: grid !important; grid-template-columns: repeat(3, 1fr) !important; gap: 8px !important; }
.rbu-front-gallery-item { aspect-ratio: 4/3 !important; border-radius: var(--rbu-radius) !important; overflow: hidden !important; display: block !important; border: 1px solid var(--rbu-border) !important; cursor: pointer !important; transition: transform 0.2s, border-color 0.2s !important; position: relative !important; }
.rbu-front-gallery-item:hover { transform: translateY(-2px) !important; border-color: var(--rbu-accent) !important; }
.rbu-front-gallery-item img { width: 100% !important; height: 100% !important; object-fit: cover !important; display: block !important; }

/* Field hint */
.rbu-field-hint { font-size: 12px; color: var(--rbu-text-muted); margin: 4px 0 0 0; }

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .rbu-dashboard { flex-direction: column; }
    .rbu-sidebar { width: 100%; min-width: 100%; border-right: none; border-bottom: 1px solid var(--rbu-border); padding: 8px 0; }
    .rbu-sidebar-nav { flex-direction: row; overflow-x: auto; white-space: nowrap; padding: 0 8px; gap: 2px; scrollbar-width: none; }
    .rbu-sidebar-nav::-webkit-scrollbar { display: none; }
    .rbu-nav-item { padding: 8px 12px; border-radius: 8px; border-left: none !important; border-bottom: 2px solid transparent; flex-shrink: 0; }
    .rbu-nav-item.active { border-bottom-color: var(--rbu-accent); border-left: none !important; padding-left: 12px; }
    .rbu-nav-label { display: none; }
    .rbu-nav-icon { width: 22px; height: 22px; }
    .rbu-nav-icon svg { width: 20px; height: 20px; }
    .rbu-nav-group { flex-direction: row; padding-left: 0; }
    .rbu-nav-spacer { display: none; }
    .rbu-nav-badge { display: none; }
    .rbu-main { padding: 16px; }
    .rbu-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .rbu-form-row { flex-direction: column; gap: 0; }
    .rbu-salas-grid { grid-template-columns: 1fr; }
    .rbu-modal-box { width: 100%; max-height: 100vh; border-radius: 0; }
    .rbu-reservas-actions, .rbu-quick-actions { flex-direction: column; }
    .rbu-page-header { flex-direction: column; gap: 10px; align-items: flex-start; }
    .rbu-front-gallery-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 600px) {
    .rbu-gallery-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .rbu-library-grid { grid-template-columns: repeat(3, 1fr) !important; }
    .rbu-front-gallery-grid { grid-template-columns: 1fr 1fr !important; gap: 6px !important; }
    .rbu-banner-cta-content { flex-direction: column; text-align: center; padding: 20px; }
    .rbu-btn-whatsapp { width: 100%; justify-content: center; }
}

/* ========== Quicktags Editor Toolbar ========== */
.rbu-dashboard .quicktags-toolbar,
.rbu-dashboard #qt_rbu_description_toolbar,
.rbu-dashboard .wp-editor-tabs,
.rbu-dashboard div.mce-toolbar-grp,
.rbu-dashboard .wp-editor-tools { background: #f5f5f5 !important; border-color: var(--rbu-border) !important; }

.rbu-dashboard .quicktags-toolbar input[type=button],
.rbu-dashboard .qt_btn,
.rbu-dashboard .quicktags-toolbar .ed_button {
    background: #0a0a0a !important;
    color: #ffffff !important;
    border: 1px solid #0a0a0a !important;
    border-radius: 5px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    padding: 4px 7px !important;
    margin: 2px !important;
    cursor: pointer !important;
    transition: background 0.15s !important;
}
.rbu-dashboard .quicktags-toolbar input[type=button]:hover,
.rbu-dashboard .qt_btn:hover,
.rbu-dashboard .quicktags-toolbar .ed_button:hover {
    background: #333 !important;
    border-color: #333 !important;
}
.rbu-dashboard .wp-switch-editor {
    background: #0a0a0a !important;
    color: #fff !important;
    border-color: #0a0a0a !important;
}
.rbu-dashboard .wp-switch-editor.switch-tmce { background: #444 !important; }
.rbu-dashboard .wp-switch-editor:hover { background: #333 !important; }
button#rbu-reset-btn {
    background: #000;
    border: 1px solid #000;
    width: 100%;
    padding: 14px;
}

button.rbu-toggle-pass {
    background: #000;
    color: #fff;
    padding: 5px;
    height: 27px;
}

.rbu-dashboard .mce-toolbar .mce-ico { color: #ffffff; }
.rbu-dashboard .mce-btn.mce-active,
.rbu-dashboard .mce-btn.mce-active button,
.rbu-dashboard .mce-btn.mce-active i,
.rbu-dashboard .mce-btn.mce-active:hover button,
.rbu-dashboard .mce-btn.mce-active:hover i { color: #ffffff; }

button#rbu-sala-submit {
    width: 100%;
    padding: 20px;
    font-size: 19px;
    border: 1px solid;
    border-radius: 6px;
    font-weight: 500;
}
