*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body, #root { height: 100%; }
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; background: #f1f5f9; color: #334155; }
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 99px; }
input, select, textarea, button { font-family: inherit; }
input:focus, select:focus, textarea:focus { outline: none; border-color: #1e3a5f !important; box-shadow: 0 0 0 3px rgba(30,58,95,0.12); }
a { color: inherit; text-decoration: none; }

/* ── Animations ── */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(12px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes toastIn { from { transform: translateX(120%); } to { transform: translateX(0); } }

/* ── Login ── */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #1e293b 0%, #1e3a5f 60%, #1e293b 100%); }
.login-card { background: #fff; border-radius: 16px; padding: 48px 40px; width: 100%; max-width: 420px; box-shadow: 0 24px 60px rgba(0,0,0,0.25); animation: slideUp 0.4s ease; }
.login-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; }
.login-logo-icon { width: 44px; height: 44px; background: linear-gradient(135deg, #1e3a5f, #2563eb); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.login-logo h1 { font-size: 20px; font-weight: 800; color: #1e293b; }
.login-logo span { font-size: 12px; color: #64748b; display: block; }
.login-field { margin-bottom: 18px; }
.login-field label { display: block; font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 6px; }
.login-field input { width: 100%; padding: 10px 14px; border: 1.5px solid #e2e8f0; border-radius: 8px; font-size: 14px; transition: border-color 0.2s; }
.login-btn { width: 100%; padding: 12px; background: #1e3a5f; color: #fff; border: none; border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.login-btn:hover { background: #1e40af; }
.login-btn:disabled { opacity: 0.6; cursor: default; }
.login-error { background: #fef2f2; border: 1px solid #fca5a5; border-radius: 8px; padding: 10px 14px; color: #dc2626; font-size: 13px; margin-bottom: 16px; }

/* ── Layout ── */
.app-layout { display: flex; height: 100vh; overflow: hidden; }
.sidebar { width: 240px; min-width: 240px; background: #1e293b; display: flex; flex-direction: column; overflow-y: auto; }
.sidebar-header { padding: 20px 16px 16px; border-bottom: 1px solid #1e293b; }
.sidebar-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.sidebar-brand-icon { width: 36px; height: 36px; background: linear-gradient(135deg, #1e3a5f, #2563eb); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sidebar-brand h2 { color: #f1f5f9; font-size: 15px; font-weight: 800; line-height: 1.2; }
.sidebar-branch { display: inline-flex; align-items: center; gap: 6px; background: #1e293b; border-radius: 99px; padding: 3px 10px; font-size: 11px; color: #94a3b8; font-weight: 600; letter-spacing: 0.03em; }
.sidebar-branch .dot { width: 6px; height: 6px; border-radius: 50%; }
.dot-panama { background: #3b82f6; }
.dot-sa { background: #10b981; }
.sidebar-nav { flex: 1; padding: 12px 8px; }
.nav-section { margin-bottom: 20px; }
.nav-section-label { font-size: 10px; font-weight: 700; color: #475569; letter-spacing: 0.08em; text-transform: uppercase; padding: 0 8px; margin-bottom: 4px; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; cursor: pointer; color: #94a3b8; font-size: 13.5px; font-weight: 500; transition: all 0.15s; margin-bottom: 1px; }
.nav-item:hover { background: #1e293b; color: #e2e8f0; }
.nav-item.active { background: #1e3a5f; color: #fff; font-weight: 600; }
.nav-item .nav-icon { width: 18px; text-align: center; flex-shrink: 0; }
.nav-badge { margin-left: auto; background: #ef4444; color: #fff; font-size: 10px; font-weight: 700; border-radius: 99px; padding: 1px 6px; min-width: 18px; text-align: center; }
.sidebar-footer { padding: 12px 8px; border-top: 1px solid #1e293b; }
.sidebar-user { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; }
.sidebar-avatar { width: 32px; height: 32px; background: linear-gradient(135deg, #1e3a5f, #3b82f6); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.sidebar-user-info { overflow: hidden; }
.sidebar-user-name { font-size: 13px; font-weight: 600; color: #e2e8f0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-role { font-size: 11px; color: #64748b; }
.logout-btn { width: 100%; display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: none; border: none; cursor: pointer; color: #64748b; font-size: 13px; border-radius: 8px; transition: all 0.15s; }
.logout-btn:hover { background: #1e293b; color: #f87171; }

/* ── Main content ── */
.main-content { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.topbar { background: #fff; border-bottom: 1px solid #e2e8f0; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
.topbar-title { font-size: 18px; font-weight: 700; color: #1e293b; }
.topbar-sub { font-size: 13px; color: #64748b; margin-top: 2px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.page-body { flex: 1; overflow-y: auto; padding: 24px; }

/* ── Cards & common ── */
.card { background: #fff; border-radius: 12px; border: 1px solid #e2e8f0; }
.card-header { padding: 16px 20px; border-bottom: 1px solid #f1f5f9; display: flex; align-items: center; justify-content: space-between; }
.card-title { font-size: 15px; font-weight: 700; color: #1e293b; }
.card-body { padding: 20px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 20px; }
.stat-label { font-size: 12px; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: 0.04em; }
.stat-value { font-size: 32px; font-weight: 800; color: #1e293b; margin: 6px 0 2px; }
.stat-desc { font-size: 12px; color: #94a3b8; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 8px; font-size: 13.5px; font-weight: 600; cursor: pointer; border: none; transition: all 0.15s; }
.btn-primary { background: #1e3a5f; color: #fff; }
.btn-primary:hover { background: #1e40af; }
.btn-secondary { background: #f1f5f9; color: #374151; border: 1px solid #e2e8f0; }
.btn-secondary:hover { background: #e2e8f0; }
.btn-danger { background: #fef2f2; color: #dc2626; border: 1px solid #fca5a5; }
.btn-danger:hover { background: #fee2e2; }
.btn-success { background: #f0fdf4; color: #16a34a; border: 1px solid #86efac; }
.btn-success:hover { background: #dcfce7; }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn-icon { width: 32px; height: 32px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; }

/* ── Form elements ── */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 6px; }
.form-label .req { color: #ef4444; margin-left: 2px; }
.form-input, .form-select, .form-textarea { width: 100%; padding: 9px 12px; border: 1.5px solid #e2e8f0; border-radius: 8px; font-size: 14px; color: #1e293b; background: #fff; transition: border-color 0.2s; }
.form-textarea { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

/* ── Badges & status ── */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 99px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.badge-open { background: #dbeafe; color: #1d4ed8; }
.badge-in_progress { background: #fef3c7; color: #92400e; }
.badge-resolved { background: #d1fae5; color: #065f46; }
.badge-closed { background: #f1f5f9; color: #64748b; }
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-approved { background: #d1fae5; color: #065f46; }
.badge-rejected { background: #fee2e2; color: #991b1b; }
.badge-auto_rejected { background: #fee2e2; color: #991b1b; }
.badge-high { background: #fed7aa; color: #c2410c; }
.badge-urgent { background: #fee2e2; color: #dc2626; }
.badge-normal { background: #f1f5f9; color: #475569; }
.badge-low { background: #f0fdf4; color: #166534; }
.badge-success { background: #d1fae5; color: #065f46; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-gray { background: #f1f5f9; color: #94a3b8; }

/* ── Table ── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
thead th { background: #f8fafc; padding: 10px 14px; text-align: left; font-size: 11px; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid #e2e8f0; white-space: nowrap; }
tbody td { padding: 12px 14px; border-bottom: 1px solid #f1f5f9; color: #374151; vertical-align: middle; }
tbody tr:hover { background: #f8fafc; }
tbody tr:last-child td { border-bottom: none; }

/* ── Modal ── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; animation: fadeIn 0.2s; }
.modal { background: #fff; border-radius: 16px; width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto; box-shadow: 0 24px 60px rgba(0,0,0,0.2); animation: slideUp 0.25s ease; }
.modal-lg { max-width: 720px; }
.modal-header { padding: 20px 24px 16px; border-bottom: 1px solid #f1f5f9; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; background: #fff; z-index: 1; }
.modal-title { font-size: 17px; font-weight: 700; }
.modal-close { background: none; border: none; cursor: pointer; color: #94a3b8; font-size: 18px; width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.modal-close:hover { background: #f1f5f9; color: #374151; }
.modal-body { padding: 20px 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid #f1f5f9; display: flex; justify-content: flex-end; gap: 10px; }

/* ── Toast ── */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.toast { background: #1e293b; color: #f1f5f9; padding: 12px 18px; border-radius: 10px; font-size: 13.5px; font-weight: 500; box-shadow: 0 8px 24px rgba(0,0,0,0.2); animation: toastIn 0.3s ease; display: flex; align-items: center; gap: 10px; min-width: 240px; }
.toast-success { background: #065f46; }
.toast-error { background: #991b1b; }
.toast-warning { background: #92400e; }

/* ── Dashboard ── */
.dashboard-welcome { background: linear-gradient(135deg, #1e3a5f, #1e40af); border-radius: 16px; padding: 28px 32px; color: #fff; margin-bottom: 24px; }
.dashboard-welcome h2 { font-size: 22px; font-weight: 800; }
.dashboard-welcome p { font-size: 14px; opacity: 0.8; margin-top: 4px; }
.quick-actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-bottom: 24px; }
.quick-action { background: #fff; border: 1.5px solid #e2e8f0; border-radius: 12px; padding: 16px; cursor: pointer; transition: all 0.15s; text-align: center; }
.quick-action:hover { border-color: #1e3a5f; box-shadow: 0 4px 12px rgba(30,58,95,0.1); transform: translateY(-1px); }
.quick-action-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; font-size: 18px; }
.quick-action-label { font-size: 12px; font-weight: 600; color: #374151; }

/* ── Ticket list ── */
.ticket-row { display: grid; grid-template-columns: 80px 1fr 120px 90px 90px 100px; gap: 12px; align-items: center; padding: 14px 20px; border-bottom: 1px solid #f1f5f9; cursor: pointer; transition: background 0.1s; }
.ticket-row:hover { background: #f8fafc; }
.ticket-number { font-size: 12px; font-weight: 700; color: #1e3a5f; font-family: monospace; }
.ticket-title { font-size: 13.5px; font-weight: 600; color: #1e293b; }
.ticket-sub { font-size: 12px; color: #64748b; margin-top: 2px; }
.ticket-filters { display: flex; gap: 10px; padding: 16px 20px; border-bottom: 1px solid #f1f5f9; flex-wrap: wrap; }
.filter-pill { padding: 5px 12px; border-radius: 99px; font-size: 12px; font-weight: 600; cursor: pointer; border: 1.5px solid #e2e8f0; color: #64748b; background: #fff; transition: all 0.15s; }
.filter-pill.active { background: #1e3a5f; color: #fff; border-color: #1e3a5f; }
.filter-pill:hover:not(.active) { background: #f1f5f9; }

/* ── Detail view ── */
.detail-grid { display: grid; grid-template-columns: 1fr 280px; gap: 20px; }
.detail-meta { background: #f8fafc; border-radius: 10px; padding: 16px; }
.detail-meta-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid #e2e8f0; font-size: 13px; }
.detail-meta-item:last-child { border-bottom: none; }
.detail-meta-label { color: #64748b; font-weight: 500; }
.detail-meta-value { font-weight: 600; color: #1e293b; }
.notes-list { display: flex; flex-direction: column; gap: 12px; }
.note-item { background: #f8fafc; border-radius: 10px; padding: 14px; }
.note-item.internal { background: #fefce8; border-left: 3px solid #eab308; }
.note-author { font-size: 12px; font-weight: 700; color: #374151; }
.note-date { font-size: 11px; color: #94a3b8; margin-left: 8px; }
.note-body { font-size: 13.5px; color: #374151; margin-top: 6px; line-height: 1.5; }

/* ── Room booking calendar ── */
.room-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.room-card { border: 1.5px solid #e2e8f0; border-radius: 12px; padding: 18px; background: #fff; cursor: pointer; transition: all 0.15s; }
.room-card:hover { border-color: #1e3a5f; box-shadow: 0 4px 12px rgba(30,58,95,0.1); }
.room-card.selected { border-color: #1e3a5f; background: #f0f7ff; }
.room-name { font-size: 15px; font-weight: 700; color: #1e293b; }
.room-detail { font-size: 12px; color: #64748b; margin-top: 4px; }
.room-amenity-tag { display: inline-block; background: #f1f5f9; border-radius: 99px; padding: 2px 8px; font-size: 11px; color: #475569; margin: 2px 2px 0 0; }
.booking-list { display: flex; flex-direction: column; gap: 8px; }
.booking-item { background: #f0f7ff; border-left: 3px solid #1e3a5f; border-radius: 0 8px 8px 0; padding: 10px 14px; display: flex; justify-content: space-between; align-items: center; }
.booking-time { font-size: 12px; font-weight: 700; color: #1e3a5f; }
.booking-title { font-size: 13px; color: #374151; margin-top: 2px; }

/* ── Budget ── */
.budget-record-card { border: 1.5px solid #e2e8f0; border-radius: 12px; padding: 16px; background: #fff; }
.budget-bar-bg { background: #e2e8f0; border-radius: 99px; height: 8px; margin-top: 8px; overflow: hidden; }
.budget-bar-fill { height: 100%; border-radius: 99px; background: #1e3a5f; transition: width 0.4s; }
.budget-bar-fill.warning { background: #f59e0b; }
.budget-bar-fill.danger { background: #ef4444; }

/* ── Amenities ── */
.amenity-category { margin-bottom: 28px; }
.amenity-category-title { font-size: 14px; font-weight: 700; color: #1e293b; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.amenity-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.amenity-card { border: 1.5px solid #e2e8f0; border-radius: 12px; padding: 14px 16px; background: #fff; }
.amenity-name { font-size: 14px; font-weight: 700; color: #1e293b; }
.amenity-detail { font-size: 12px; color: #64748b; margin-top: 3px; display: flex; align-items: center; gap: 6px; }
.amenity-maps { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; background: #f0f7ff; color: #1e3a5f; border-radius: 8px; padding: 5px 10px; font-size: 12px; font-weight: 600; cursor: pointer; border: none; text-decoration: none; }

/* ── Onboarding ── */
.checklist-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f1f5f9; }
.checklist-item:last-child { border-bottom: none; }
.checklist-check { width: 20px; height: 20px; border-radius: 5px; border: 2px solid #e2e8f0; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all 0.15s; }
.checklist-check.done { background: #1e3a5f; border-color: #1e3a5f; color: #fff; }
.checklist-label { font-size: 13.5px; color: #374151; flex: 1; }
.checklist-label.done { text-decoration: line-through; color: #94a3b8; }
.checklist-by { font-size: 11px; color: #94a3b8; }

/* ── Progress bar ── */
.progress-bar { background: #e2e8f0; border-radius: 99px; height: 6px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 99px; background: #1e3a5f; }

/* ── Empty state ── */
.empty-state { text-align: center; padding: 60px 24px; color: #94a3b8; }
.empty-state i { font-size: 40px; margin-bottom: 12px; opacity: 0.4; }
.empty-state h3 { font-size: 16px; font-weight: 700; color: #374151; margin-bottom: 4px; }
.empty-state p { font-size: 13px; }

/* ── Spinner ── */
.spinner { width: 20px; height: 20px; border: 2px solid #e2e8f0; border-top-color: #1e3a5f; border-radius: 50%; animation: spin 0.7s linear infinite; }
.spinner-lg { width: 36px; height: 36px; border-width: 3px; }
.loading-center { display: flex; align-items: center; justify-content: center; padding: 60px; }

/* ── Search ── */
.search-input { display: flex; align-items: center; gap: 8px; background: #f8fafc; border: 1.5px solid #e2e8f0; border-radius: 8px; padding: 8px 12px; flex: 1; max-width: 320px; }
.search-input input { border: none; background: transparent; font-size: 13.5px; color: #374151; width: 100%; }
.search-input input:focus { box-shadow: none; }

/* ── Admin tabs ── */
.tab-bar { display: flex; gap: 2px; background: #f1f5f9; border-radius: 10px; padding: 4px; margin-bottom: 20px; }
.tab-btn { flex: 1; padding: 8px 12px; border: none; background: none; border-radius: 8px; font-size: 13px; font-weight: 600; color: #64748b; cursor: pointer; transition: all 0.15s; white-space: nowrap; }
.tab-btn.active { background: #fff; color: #1e293b; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }

/* ═══════════════════════════════════════
   LANDING PAGE (pre-auth)
═══════════════════════════════════════ */
.landing {
  min-height: 100vh;
  background: #fff;
  color: #1e293b;
  scroll-behavior: smooth;
}
.landing-nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 48px;
  background: rgba(255,255,255,0.88);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid #e2e8f0;
}
.landing-brand { display: flex; align-items: center; gap: 12px; }
.landing-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.landing-brand-text strong { font-size: 15px; color: #1e293b; font-weight: 800; }
.landing-brand-text span { font-size: 12px; color: #64748b; }
.landing-nav-actions { display: flex; align-items: center; gap: 24px; }
.landing-nav-link {
  color: #475569; font-weight: 600; font-size: 14px;
  text-decoration: none; transition: color 0.15s;
}
.landing-nav-link:hover { color: #1e293b; }
.landing-signin {
  display: inline-flex; align-items: center; gap: 8px;
  background: #1e3a5f; color: #fff; border: none;
  padding: 10px 18px; border-radius: 9px; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: background 0.15s;
}
.landing-signin:hover { background: #2D66A6; }

.landing-hero {
  position: relative; overflow: hidden;
  padding: 80px 48px 100px;
  background: linear-gradient(140deg, #1e3a5f 0%, #2D66A6 55%, #2196A9 100%);
  color: #fff;
}
.landing-hero-inner { max-width: 960px; margin: 0 auto; position: relative; z-index: 2; text-align: center; }
.landing-hero-glow {
  position: absolute; top: -140px; right: -140px;
  width: 480px; height: 480px; border-radius: 100%;
  background: radial-gradient(circle, rgba(149,201,61,0.35) 0%, transparent 70%);
  pointer-events: none;
}
.landing-hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.15); padding: 6px 14px; border-radius: 99px;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px;
  margin-bottom: 24px; color: #e0f2fe; border: 1px solid rgba(255,255,255,0.2);
}
.landing-hero h1 {
  font-size: 64px; line-height: 1.05; font-weight: 800;
  letter-spacing: -1.5px; margin: 0 0 24px;
}
.landing-hero-accent { color: #95C93D; }
.landing-hero-sub {
  font-size: 19px; line-height: 1.6; color: rgba(255,255,255,0.85);
  max-width: 680px; margin: 0 auto 36px;
}
.landing-hero-cta { display: flex; gap: 14px; justify-content: center; margin-bottom: 64px; flex-wrap: wrap; }
.landing-cta-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: #95C93D; color: #1e293b; border: none;
  padding: 14px 28px; border-radius: 10px; font-size: 16px; font-weight: 800;
  cursor: pointer; transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 8px 24px rgba(149,201,61,0.35);
}
.landing-cta-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 32px rgba(149,201,61,0.45); }
.landing-cta-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.08); color: #fff; text-decoration: none;
  padding: 14px 24px; border-radius: 10px; font-size: 16px; font-weight: 700;
  border: 1px solid rgba(255,255,255,0.25); transition: background 0.15s;
}
.landing-cta-secondary:hover { background: rgba(255,255,255,0.18); }
.landing-cta-big { padding: 16px 32px; font-size: 17px; }

.landing-hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  max-width: 640px; margin: 0 auto;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px; padding: 20px;
  backdrop-filter: blur(8px);
}
.landing-hero-stats > div { text-align: center; }
.landing-hero-stats strong {
  display: block; font-size: 28px; font-weight: 800; color: #fff; line-height: 1;
}
.landing-hero-stats span { display: block; font-size: 12px; color: rgba(255,255,255,0.7); margin-top: 6px; text-transform: uppercase; letter-spacing: 0.7px; }

.landing-features {
  max-width: 1200px; margin: 0 auto; padding: 96px 48px;
}
.landing-section-head { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.landing-eyebrow {
  display: inline-block; font-size: 12px; font-weight: 800;
  color: #2196A9; text-transform: uppercase; letter-spacing: 1.2px;
  margin-bottom: 12px;
}
.landing-section-head h2 {
  font-size: 40px; font-weight: 800; letter-spacing: -0.8px;
  color: #1e293b; margin: 0 0 18px;
}
.landing-section-head p { font-size: 17px; color: #475569; line-height: 1.6; margin: 0; }
.landing-features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.landing-feature {
  padding: 32px 28px;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 16px;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.landing-feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(15,23,42,0.08);
  border-color: #2196A9;
}
.landing-feature-icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 18px;
}
.landing-feature h3 { font-size: 18px; font-weight: 800; margin: 0 0 10px; color: #1e293b; }
.landing-feature p { font-size: 14px; line-height: 1.6; color: #64748b; margin: 0; }

.landing-cta-band {
  background: linear-gradient(140deg, #1e293b 0%, #1e3a5f 100%);
  padding: 96px 48px;
  position: relative; overflow: hidden;
}
.landing-cta-band::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(149,201,61,0.15) 0%, transparent 50%),
              radial-gradient(circle at 80% 70%, rgba(33,150,169,0.2) 0%, transparent 50%);
}
.landing-cta-band-inner { max-width: 720px; margin: 0 auto; text-align: center; position: relative; z-index: 2; }
.landing-cta-band h2 { color: #fff; font-size: 44px; font-weight: 800; letter-spacing: -0.8px; margin: 0 0 16px; }
.landing-cta-band p { color: rgba(255,255,255,0.75); font-size: 17px; margin: 0 0 36px; }

.landing-foot {
  padding: 40px 48px; background: #f8fafc; border-top: 1px solid #e2e8f0;
}
.landing-foot-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; gap: 32px;
}
.landing-foot-brand { display: flex; align-items: center; gap: 12px; }
.landing-foot-brand strong { display: block; color: #1e293b; font-weight: 800; font-size: 14px; }
.landing-foot-brand span { display: block; color: #64748b; font-size: 12px; }
.landing-foot-contact { font-size: 12px; color: #64748b; line-height: 1.8; text-align: right; }

.login-back {
  margin-top: 10px; width: 100%;
  background: transparent; color: #94a3b8; border: none;
  padding: 8px; font-size: 13px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.login-back:hover { color: #cbd5e1; }

@media (max-width: 768px) {
  .landing-nav { padding: 14px 20px; }
  .landing-nav-link { display: none; }
  .landing-hero { padding: 56px 20px 72px; }
  .landing-hero h1 { font-size: 38px; }
  .landing-hero-sub { font-size: 16px; }
  .landing-hero-stats { grid-template-columns: repeat(2, 1fr); }
  .landing-features { padding: 64px 20px; }
  .landing-features-grid { grid-template-columns: 1fr; }
  .landing-section-head h2, .landing-cta-band h2 { font-size: 30px; }
  .landing-cta-band { padding: 64px 20px; }
  .landing-foot-inner { flex-direction: column; text-align: center; }
  .landing-foot-contact { text-align: center; }
}

/* ─── Landing news band ─── */
.landing-news {
  max-width: 1200px; margin: 0 auto; padding: 40px 48px 96px;
}
.landing-news-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.landing-news-card {
  position: relative;
  padding: 24px 22px; background: #fff; border: 1px solid #e2e8f0;
  border-radius: 16px; display: flex; flex-direction: column; gap: 10px;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.landing-news-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(15,23,42,0.08); border-color: #c7d2fe; }
.landing-news-card.is-pinned { border-color: #fcd34d; background: #fffbeb; }
.landing-news-head { display: flex; align-items: center; gap: 10px; }
.landing-news-icon {
  width: 36px; height: 36px; border-radius: 9px; background: #f1f5f9;
  display: flex; align-items: center; justify-content: center; font-size: 14px; color: #475569;
}
.landing-news-tag {
  font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.8px;
  padding: 4px 10px; border-radius: 99px; background: #f1f5f9; color: #475569;
}
.tag-cafeteria { background: #fef3c7; color: #92400e; }
.tag-safety { background: #fee2e2; color: #991b1b; }
.tag-wellness { background: #dcfce7; color: #14532d; }
.tag-events { background: #ede9fe; color: #5b21b6; }
.tag-maintenance { background: #dbeafe; color: #1e40af; }
.tag-general { background: #f1f5f9; color: #475569; }
.landing-news-pin { margin-left: auto; color: #f59e0b; font-size: 12px; }
.landing-news-card h3 { font-size: 16px; font-weight: 800; margin: 4px 0 0; color: #1e293b; line-height: 1.3; }
.landing-news-card p { font-size: 13.5px; color: #475569; line-height: 1.55; margin: 0; }
.landing-news-foot { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11px; color: #94a3b8; font-weight: 600; }
.landing-news-branch { display: inline-flex; align-items: center; gap: 5px; }
.landing-news-branch .dot { width: 8px; height: 8px; border-radius: 99px; display: inline-block; }
@media (max-width: 768px) {
  .landing-news { padding: 20px 20px 64px; }
  .landing-news-grid { grid-template-columns: 1fr; }
}

/* ─── Amenities "Near Me" tiles ─── */
.nearme-hero {
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border: 1px solid #bae6fd; border-radius: 16px;
  padding: 22px 26px; margin-bottom: 18px;
}
.nearme-eyebrow {
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.9px;
  color: #0369a1;
}
.nearme-hero h2 { font-size: 22px; font-weight: 800; margin: 4px 0 6px; color: #1e293b; letter-spacing: -0.3px; }
.nearme-hero p { font-size: 13.5px; color: #475569; margin: 0; line-height: 1.55; }

.nearme-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px;
}
.nearme-tile {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 14px;
  text-decoration: none; color: inherit;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  position: relative;
}
.nearme-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(15,23,42,0.08);
  border-color: var(--tile-color, #2196A9);
}
.nearme-tile-icon {
  width: 42px; height: 42px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
  flex-shrink: 0;
}
.nearme-tile-body { flex: 1; min-width: 0; }
.nearme-tile-label { font-size: 14px; font-weight: 800; color: #1e293b; line-height: 1.2; }
.nearme-tile-sub { font-size: 11.5px; color: #94a3b8; margin-top: 2px; }
.nearme-tile-arrow { color: #cbd5e1; font-size: 12px; }
.nearme-tile:hover .nearme-tile-arrow { color: var(--tile-color, #2196A9); }

/* ─── Dash Bites cafeteria banner (Panama) ─── */
.dash-bites-card {
  display: flex; align-items: center; gap: 18px;
  background: linear-gradient(135deg, #fff7ed 0%, #fef3c7 100%);
  border: 1px solid #fed7aa; border-radius: 16px;
  padding: 16px 20px;
  text-decoration: none; color: inherit;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.dash-bites-card:hover {
  transform: translateY(-2px); box-shadow: 0 16px 32px rgba(249,115,22,0.15);
  border-color: #fb923c;
}
.dash-bites-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: linear-gradient(135deg, #f97316, #ea580c);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #fff; flex-shrink: 0;
}
.dash-bites-body { flex: 1; min-width: 0; }
.dash-bites-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.8px; font-weight: 800; color: #c2410c; }
.dash-bites-title { font-size: 16px; font-weight: 800; color: #1e293b; margin-top: 2px; }
.dash-bites-sub { font-size: 12.5px; color: #78350f; margin-top: 3px; }
.dash-bites-cta {
  background: #fb923c; color: #fff; padding: 9px 16px;
  border-radius: 8px; font-size: 13px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 8px;
  white-space: nowrap;
}
.dash-bites-card:hover .dash-bites-cta { background: #ea580c; }

/* ═══════════════════════════════════════
   DASHBOARD (redesigned)
═══════════════════════════════════════ */
.dash { display: flex; flex-direction: column; gap: 28px; }

.dash-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #1e3a5f 0%, #2D66A6 55%, #2196A9 100%);
  color: #fff; border-radius: 20px;
  padding: 36px 40px;
  box-shadow: 0 20px 40px rgba(45,102,166,0.18);
}
.dash-hero-glow {
  position: absolute; top: -100px; right: -100px;
  width: 360px; height: 360px; border-radius: 100%;
  background: radial-gradient(circle, rgba(149,201,61,0.30) 0%, transparent 65%);
  pointer-events: none;
}
.dash-hero-main { position: relative; z-index: 2; max-width: 780px; }
.dash-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 99px; font-size: 12px;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.7px;
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.22);
  color: #e0f2fe; margin-bottom: 18px;
}
.dash-hero-badge .dot { width: 8px; height: 8px; border-radius: 99px; }
.dash-hero h1 {
  font-size: 36px; font-weight: 800; letter-spacing: -0.6px;
  margin: 0 0 10px; line-height: 1.1;
}
.dash-hero-name { color: #95C93D; }
.dash-hero-wave { display: inline-block; animation: wave 2s ease-in-out infinite; transform-origin: 70% 70%; }
@keyframes wave { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-12deg); } 40% { transform: rotate(14deg); } 60% { transform: rotate(-8deg); } 80% { transform: rotate(10deg); } }
.dash-hero-sub { font-size: 15.5px; color: rgba(255,255,255,0.88); margin: 0; line-height: 1.55; }

.dash-kpis {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.kpi {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 16px;
  padding: 22px 22px 20px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.kpi:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(15,23,42,0.06); }
.kpi-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; margin-bottom: 14px;
}
.kpi-value { font-size: 30px; font-weight: 800; letter-spacing: -0.6px; color: #1e293b; line-height: 1; }
.kpi-label { font-size: 13px; font-weight: 700; color: #334155; margin-top: 8px; }
.kpi-sub { font-size: 11.5px; color: #94a3b8; margin-top: 4px; }
.kpi::after {
  content: ''; position: absolute; inset: 0 auto 0 0; width: 4px;
}
.kpi-blue .kpi-icon { background: #dbeafe; color: #1d4ed8; } .kpi-blue::after { background: #1d4ed8; }
.kpi-amber .kpi-icon { background: #fef3c7; color: #b45309; } .kpi-amber::after { background: #b45309; }
.kpi-green .kpi-icon { background: #dcfce7; color: #15803d; } .kpi-green::after { background: #15803d; }
.kpi-red .kpi-icon { background: #fee2e2; color: #b91c1c; } .kpi-red::after { background: #b91c1c; }
.kpi-purple .kpi-icon { background: #ede9fe; color: #6d28d9; } .kpi-purple::after { background: #6d28d9; }
.kpi-teal .kpi-icon { background: #ccfbf1; color: #0f766e; } .kpi-teal::after { background: #0f766e; }

.dash-main-grid {
  display: grid; grid-template-columns: 1fr 360px; gap: 24px;
}
.dash-main-left, .dash-main-right { display: flex; flex-direction: column; gap: 18px; }

.dash-section-head h2 {
  font-size: 22px; font-weight: 800; letter-spacing: -0.3px; color: #1e293b;
  margin: 0 0 4px;
}
.dash-section-head p { font-size: 13.5px; color: #64748b; margin: 0 0 16px; }

.dash-quick-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
.dash-qa {
  display: flex; align-items: center; gap: 14px;
  text-align: left; cursor: pointer;
  padding: 16px 16px; background: #fff; border: 1px solid #e2e8f0;
  border-radius: 14px; font: inherit;
  transition: all 0.15s;
}
.dash-qa:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(15,23,42,0.08); border-color: transparent; }
.dash-qa-icon {
  width: 44px; height: 44px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
  flex-shrink: 0;
}
.dash-qa-body { flex: 1; min-width: 0; }
.dash-qa-label { font-size: 14.5px; font-weight: 800; color: #1e293b; }
.dash-qa-sub { font-size: 12px; color: #94a3b8; margin-top: 2px; }
.dash-qa-arrow { color: #cbd5e1; font-size: 13px; transition: transform 0.15s, color 0.15s; }
.dash-qa:hover .dash-qa-arrow { transform: translateX(3px); color: #1e293b; }

.tint-blue .dash-qa-icon { background: #dbeafe; color: #1d4ed8; }
.tint-sky .dash-qa-icon { background: #e0f2fe; color: #0369a1; }
.tint-green .dash-qa-icon { background: #dcfce7; color: #15803d; }
.tint-amber .dash-qa-icon { background: #fef3c7; color: #b45309; }
.tint-purple .dash-qa-icon { background: #f3e8ff; color: #7e22ce; }
.tint-pink .dash-qa-icon { background: #fce7f3; color: #be185d; }
.tint-orange .dash-qa-icon { background: #fff7ed; color: #c2410c; }
.tint-teal .dash-qa-icon { background: #ccfbf1; color: #0f766e; }
.tint-red .dash-qa-icon { background: #fee2e2; color: #b91c1c; }
.tint-indigo .dash-qa-icon { background: #e0e7ff; color: #4338ca; }

.dash-news-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 16px;
  padding: 20px 20px 10px;
}
.dash-news-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 14px; border-bottom: 1px solid #f1f5f9; margin-bottom: 12px;
}
.dash-news-head h3 { font-size: 15px; font-weight: 800; margin: 0; color: #1e293b; display: inline-flex; align-items: center; gap: 8px; }
.dash-news-head h3 i { color: #95C93D; }
.dash-news-head span { font-size: 11px; color: #94a3b8; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.dash-news-list { display: flex; flex-direction: column; gap: 14px; max-height: 560px; overflow-y: auto; padding-right: 4px; padding-bottom: 10px; }
.dash-news-empty { font-size: 13px; color: #94a3b8; text-align: center; padding: 24px; }
.dash-news-item { display: flex; gap: 10px; align-items: flex-start; }
.dash-news-item-icon {
  width: 32px; height: 32px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; flex-shrink: 0;
}
.dash-news-item-body { flex: 1; min-width: 0; }
.dash-news-item-title { font-size: 13px; font-weight: 700; color: #1e293b; line-height: 1.3; }
.dash-news-item-text { font-size: 12.5px; color: #64748b; line-height: 1.45; margin-top: 3px; }
.dash-news-item-foot { font-size: 10.5px; color: #94a3b8; margin-top: 4px; font-weight: 600; }
.dash-news-item.clickable { cursor: pointer; padding: 8px; border-radius: 10px; transition: background 0.15s; position: relative; }
.dash-news-item.clickable:hover { background: #f8fafc; }
.dash-news-item-arrow { color: #cbd5e1; font-size: 11px; align-self: center; transition: transform 0.15s, color 0.15s; }
.dash-news-item.clickable:hover .dash-news-item-arrow { color: #2196A9; transform: translateX(2px); }
.landing-news-card.clickable { cursor: pointer; }

.dash-activity {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 16px;
  padding: 22px 22px;
}
.dash-activity-list { display: flex; flex-direction: column; gap: 10px; }
.dash-activity-row {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px; background: #f8fafc; border-radius: 11px;
  cursor: pointer; transition: background 0.15s;
}
.dash-activity-row:hover { background: #f1f5f9; }
.dash-activity-dot { width: 9px; height: 9px; border-radius: 99px; background: #94a3b8; flex-shrink: 0; }
.priority-low { background: #94a3b8; }
.priority-normal { background: #3b82f6; }
.priority-high { background: #f59e0b; }
.priority-urgent { background: #ef4444; }
.dash-activity-info { flex: 1; min-width: 0; }
.dash-activity-title { font-size: 14px; font-weight: 700; color: #1e293b; }
.dash-activity-sub { font-size: 12px; color: #94a3b8; margin-top: 2px; }

@media (max-width: 1024px) {
  .dash-main-grid { grid-template-columns: 1fr; }
  .dash-quick-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .dash-hero { padding: 24px 22px; }
  .dash-hero h1 { font-size: 26px; }
  .dash-kpis { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════════════════════════════════
   ASSISTANT WIDGET
═══════════════════════════════════════ */
.assistant-fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 200;
  width: 64px; height: 64px; border-radius: 100%;
  background: linear-gradient(135deg, #2D66A6 0%, #2196A9 100%);
  color: #fff; border: none; font-size: 26px;
  cursor: pointer; box-shadow: 0 12px 28px rgba(45,102,166,0.45);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s, box-shadow 0.15s;
}
.assistant-fab:hover { transform: translateY(-2px) scale(1.05); box-shadow: 0 16px 36px rgba(45,102,166,0.55); }
.assistant-fab::after {
  content: 'Need help?';
  position: absolute; right: 76px; top: 50%; transform: translateY(-50%);
  background: #1e293b; color: #fff;
  padding: 8px 14px; border-radius: 8px; white-space: nowrap;
  font-size: 13px; font-weight: 600; font-family: inherit;
  opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s;
  transform: translateY(-50%) translateX(6px);
  box-shadow: 0 8px 20px rgba(15,23,42,0.2);
}
.assistant-fab:hover::after { opacity: 1; transform: translateY(-50%) translateX(0); }
.assistant-fab-pulse {
  position: absolute; top: -2px; right: -2px;
  width: 16px; height: 16px; border-radius: 100%;
  background: #95C93D; border: 3px solid #fff;
  animation: pulse 2s infinite;
}
.assistant-panel { z-index: 201; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(149,201,61,0.6); }
  50% { box-shadow: 0 0 0 10px rgba(149,201,61,0); }
}

.assistant-panel {
  position: fixed; bottom: 24px; right: 24px; z-index: 50;
  width: 380px; max-height: 640px;
  background: #fff; border-radius: 18px;
  box-shadow: 0 28px 64px rgba(15,23,42,0.22);
  display: flex; flex-direction: column;
  overflow: hidden;
  animation: assistantSlide 0.22s ease-out;
}
@keyframes assistantSlide {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.assistant-head {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(135deg, #2D66A6 0%, #2196A9 100%);
  padding: 16px 18px; color: #fff;
}
.assistant-head-avatar {
  width: 42px; height: 42px; border-radius: 100%;
  background: rgba(255,255,255,0.22);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.assistant-head-info { flex: 1; }
.assistant-head-info strong { display: block; font-size: 15px; font-weight: 800; }
.assistant-head-info span { display: block; font-size: 11px; color: rgba(255,255,255,0.85); }
.assistant-online-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 100%;
  background: #95C93D; margin-right: 4px;
}
.assistant-close {
  background: rgba(255,255,255,0.15); border: none; color: #fff;
  width: 30px; height: 30px; border-radius: 8px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.assistant-close:hover { background: rgba(255,255,255,0.28); }

.assistant-body {
  flex: 1; overflow-y: auto;
  padding: 18px; background: #f8fafc;
  display: flex; flex-direction: column; gap: 14px;
}
.assistant-msg { display: flex; gap: 10px; align-items: flex-start; }
.assistant-msg-avatar {
  width: 32px; height: 32px; border-radius: 100%; flex-shrink: 0;
  background: linear-gradient(135deg, #2D66A6, #2196A9);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 13px;
}
.assistant-msg-bubble {
  background: #fff; padding: 12px 14px; border-radius: 14px 14px 14px 4px;
  font-size: 14px; line-height: 1.5; color: #1e293b;
  border: 1px solid #e2e8f0; max-width: 80%;
}

.assistant-chips { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.assistant-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; background: #fff; border: 1px solid #e2e8f0;
  border-radius: 10px; font-size: 13px; font-weight: 600; color: #1e293b;
  cursor: pointer; text-align: left; transition: all 0.15s;
}
.assistant-chip:hover { background: #f0f9ff; border-color: #2196A9; color: #0369a1; }
.assistant-chip i { color: #64748b; width: 16px; text-align: center; }
.assistant-chip:hover i { color: #2196A9; }
.assistant-chip-back { color: #64748b; background: transparent; border-color: transparent; }
.assistant-chip-back:hover { background: #f1f5f9; border-color: #e2e8f0; }

.assistant-faqs { display: flex; flex-direction: column; gap: 8px; }
.assistant-faq {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;
  padding: 12px 14px; font-size: 13px;
}
.assistant-faq summary {
  cursor: pointer; font-weight: 600; color: #1e293b;
  list-style: none; position: relative; padding-right: 20px;
}
.assistant-faq summary::after {
  content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
  position: absolute; right: 0; top: 2px; color: #64748b; font-size: 10px;
  transition: transform 0.2s;
}
.assistant-faq[open] summary::after { transform: rotate(180deg); }
.assistant-faq p { margin: 10px 0 0; color: #475569; line-height: 1.5; font-size: 13px; }

.assistant-foot {
  padding: 12px 18px; font-size: 12px; color: #64748b;
  background: #f1f5f9; border-top: 1px solid #e2e8f0; text-align: center;
}
.assistant-foot a { color: #2196A9; font-weight: 700; text-decoration: none; }

@media (max-width: 480px) {
  .assistant-panel { right: 10px; bottom: 10px; left: 10px; width: auto; max-height: 80vh; }
  .assistant-fab { right: 16px; bottom: 16px; }
}

/* ── Form hint + budget preview ── */
.form-hint {
  font-size: 12px; color: #64748b; margin-top: 6px;
  display: inline-flex; align-items: center; gap: 6px; line-height: 1.4;
}
.form-hint i { color: #94a3b8; }
.budget-preview {
  background: linear-gradient(135deg, #f0f9ff, #dbeafe);
  border: 1px solid #bfdbfe; border-radius: 12px;
  padding: 14px 18px; margin: 0 0 16px;
}
.budget-preview-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 0; font-size: 13px; color: #475569;
}
.budget-preview-row strong { color: #1e3a5f; font-weight: 700; font-size: 14px; }
.budget-preview-remaining {
  border-top: 1px dashed #bfdbfe; padding-top: 10px; margin-top: 4px;
  font-weight: 700; color: #1e293b;
}
.budget-preview-remaining strong { color: #15803d; font-size: 18px; font-weight: 800; }
.input-error { border-color: #fca5a5 !important; background: #fef2f2; }
.input-error:focus { outline-color: #ef4444 !important; }

/* ── View-as toggle + branch switcher ── */
.view-toggle-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 9px 12px; margin-bottom: 10px;
  background: rgba(59,130,246,0.15); color: #93c5fd; border: 1px solid rgba(59,130,246,0.3);
  border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer;
  transition: background 0.15s;
}
.view-toggle-btn:hover { background: rgba(59,130,246,0.25); }

.view-banner {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(90deg, #fef3c7, #fde68a);
  color: #78350f; padding: 10px 24px;
  border-bottom: 1px solid #f59e0b;
  font-size: 14px;
}
.view-banner i { font-size: 16px; }
.view-banner strong { font-weight: 700; }
.view-banner-btn {
  margin-left: auto;
  background: #78350f; color: #fff; border: none;
  padding: 6px 14px; border-radius: 6px; font-size: 13px; font-weight: 600;
  cursor: pointer;
}
.view-banner-btn:hover { background: #92400e; }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.branch-switcher {
  display: flex; align-items: center; gap: 10px;
}
.branch-switcher-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px;
  color: #64748b;
}
.branch-switcher-tabs {
  display: flex; background: #f1f5f9; border-radius: 10px; padding: 4px; gap: 2px;
}
.branch-tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border: none; background: transparent;
  border-radius: 7px; font-size: 13px; font-weight: 600; color: #475569;
  cursor: pointer; transition: all 0.15s;
}
.branch-tab:hover { color: #1e293b; }
.branch-tab.active { background: #fff; color: #1e293b; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.branch-tab .dot { width: 8px; height: 8px; border-radius: 99px; display: inline-block; }

/* ── Hamburger button (hidden on desktop, shown on mobile) ── */
.hamburger-btn {
  display: none; border: none; background: transparent; cursor: pointer;
  font-size: 20px; color: #1e293b; padding: 4px 8px; border-radius: 6px;
}
.hamburger-btn:hover { background: #e2e8f0; }

/* ── Mobile sidebar overlay ── */
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 999;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hamburger-btn { display: block; }
  .sidebar {
    position: fixed; left: -260px; top: 0; bottom: 0; z-index: 1000;
    width: 240px; min-width: 240px; transition: left 0.25s ease;
  }
  .sidebar.sidebar-mobile-open { left: 0; }
  .sidebar-overlay { display: block; }
  .app-layout { grid-template-columns: 1fr; }
  .main-content { margin-left: 0; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .ticket-row { grid-template-columns: 70px 1fr 80px; }
  .ticket-row > *:nth-child(n+4) { display: none; }
  .branch-switcher-label { display: none; }
  .branch-tab { padding: 6px 10px; font-size: 12px; }
}
