:root {
  --bg: #0f0f13;
  --surface: #1a1a22;
  --surface2: #22222d;
  --surface3: #2a2a38;
  --border: #2e2e3e;
  --accent: #6c63ff;
  --accent2: #ff6b6b;
  --accent3: #43e97b;
  --accent4: #f7971e;
  --text: #e8e8f0;
  --text2: #9090a8;
  --text3: #5a5a72;
  --radius: 12px;
  --radius-sm: 8px;
}
* { margin:0; padding:0; box-sizing:border-box; }
body { font-family:'DM Sans',sans-serif; background:var(--bg); color:var(--text); min-height:100vh; overflow-x:hidden; }
input,textarea,select,button { font-family:'DM Sans',sans-serif; }
button { cursor:pointer; border:none; outline:none; }
::-webkit-scrollbar { width:5px; }
::-webkit-scrollbar-track { background:var(--bg); }
::-webkit-scrollbar-thumb { background:var(--border); border-radius:3px; }

/* PAGES */
.page { display:none; min-height:100vh; }

/* AUTH */
#auth-page { align-items:center; justify-content:center; min-height:100vh;
  background:radial-gradient(ellipse at 20% 50%,#1a1040 0%,transparent 60%),
             radial-gradient(ellipse at 80% 20%,#0d2040 0%,transparent 50%),var(--bg); }
.auth-card { width:100%; max-width:460px; padding:48px 40px; background:var(--surface);
  border:1px solid var(--border); border-radius:20px; box-shadow:0 0 80px rgba(108,99,255,0.08); margin:20px; }
.auth-logo { text-align:center; margin-bottom:28px; }
.auth-logo .logo-icon { width:56px; height:56px; background:var(--accent); border-radius:16px;
  display:inline-flex; align-items:center; justify-content:center; font-size:24px; margin-bottom:12px;
  box-shadow:0 0 30px rgba(108,99,255,0.4); }
.auth-logo h1 { font-size:24px; font-weight:700; letter-spacing:-0.5px; }
.auth-logo p { color:var(--text2); font-size:14px; margin-top:4px; }
.auth-tabs { display:flex; background:var(--surface2); border-radius:var(--radius-sm); padding:4px; margin-bottom:24px; }
.auth-tab { flex:1; padding:8px; text-align:center; font-size:14px; font-weight:500; border-radius:6px;
  cursor:pointer; color:var(--text2); transition:all .2s; }
.auth-tab.active { background:var(--accent); color:#fff; }
.form-group { margin-bottom:14px; }
.form-label { font-size:13px; font-weight:500; color:var(--text2); margin-bottom:5px; display:block; }
.form-input { width:100%; padding:11px 14px; background:var(--surface2); border:1px solid var(--border);
  border-radius:var(--radius-sm); color:var(--text); font-size:14px; transition:all .2s; }
.form-input:focus { outline:none; border-color:var(--accent); box-shadow:0 0 0 3px rgba(108,99,255,0.15); }
.form-input option { background:var(--surface2); }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.btn { width:100%; padding:12px; border-radius:var(--radius-sm); font-size:15px; font-weight:600;
  transition:all .2s; letter-spacing:0.2px; }
.btn-primary { background:var(--accent); color:#fff; }
.btn-primary:hover { background:#7c74ff; transform:translateY(-1px); box-shadow:0 4px 20px rgba(108,99,255,0.3); }
.btn-danger { background:var(--accent2); color:#fff; }
.btn-danger:hover { background:#ff5252; }
.btn-success { background:var(--accent3); color:#111; }
.btn-success:hover { background:#2de06a; }
.btn-warning { background:var(--accent4); color:#111; }
.btn-warning:hover { background:#e8870a; }
.btn-ghost { background:var(--surface2); color:var(--text); border:1px solid var(--border); }
.btn-ghost:hover { background:var(--surface3); }
.btn-sm { width:auto; padding:8px 16px; font-size:13px; }
.auth-error { background:#ff6b6b22; border:1px solid #ff6b6b44; border-radius:var(--radius-sm);
  padding:10px 14px; font-size:13px; color:#ff6b6b; margin-bottom:14px; display:none; }
.auth-error.show { display:block; }
.auth-success { background:#43e97b22; border:1px solid #43e97b44; border-radius:var(--radius-sm);
  padding:10px 14px; font-size:13px; color:#43e97b; margin-bottom:14px; display:none; }
.auth-success.show { display:block; }
.success-overlay { display:none; position:fixed; inset:0; z-index:500; align-items:center; justify-content:center;
  backdrop-filter:blur(10px); background:rgba(0,0,0,0.65); }
.success-card { background:var(--surface); border:1px solid var(--accent3); border-radius:20px; padding:40px;
  max-width:420px; text-align:center; margin:20px; animation:slideUp .3s ease; }

/* PENDING */
#pending-page { align-items:center; justify-content:center; min-height:100vh; background:var(--bg); }
.pending-card { text-align:center; padding:48px 40px; max-width:400px; background:var(--surface);
  border:1px solid var(--border); border-radius:20px; margin:20px; }

/* APP */
#app-page { min-height:100vh; }

/* SIDEBAR */
.sidebar { width:250px; background:var(--surface); border-right:1px solid var(--border);
  display:flex; flex-direction:column; position:fixed; top:0; left:0; height:100vh; z-index:100; transition:transform .3s; }
.sidebar-logo { padding:20px 18px 16px; border-bottom:1px solid var(--border); }
.logo-row { display:flex; align-items:center; gap:10px; }
.logo-icon { width:34px; height:34px; background:var(--accent); border-radius:10px;
  display:flex; align-items:center; justify-content:center; font-size:16px; flex-shrink:0; }
.sidebar-logo h2 { font-size:16px; font-weight:700; }
.local-badge { margin-top:6px; background:var(--surface2); border-radius:6px; padding:4px 10px;
  font-size:11px; color:var(--text2); font-weight:500; font-family:'DM Mono',monospace; }
.sidebar-nav { flex:1; padding:10px 8px; overflow-y:auto; }
.nav-section { margin-bottom:6px; }
.nav-label { font-size:10px; font-weight:600; color:var(--text3); text-transform:uppercase;
  letter-spacing:1px; padding:6px 10px 3px; }
.nav-item { display:flex; align-items:center; gap:10px; padding:9px 12px; border-radius:var(--radius-sm);
  cursor:pointer; color:var(--text2); font-size:13px; font-weight:500; transition:all .2s; }
.nav-item:hover { background:var(--surface2); color:var(--text); }
.nav-item.active { background:rgba(108,99,255,0.15); color:var(--accent); }
.nav-item .icon { font-size:16px; width:18px; text-align:center; flex-shrink:0; }
.nav-badge { margin-left:auto; background:var(--accent2); color:#fff; border-radius:20px;
  padding:2px 7px; font-size:10px; font-weight:700; }

/* SUGGESTION BOX in sidebar */
.sidebar-suggest { padding:10px 8px; border-top:1px solid var(--border); }
.suggest-btn { width:100%; padding:9px 12px; background:rgba(108,99,255,0.1); border:1px solid rgba(108,99,255,0.3);
  border-radius:var(--radius-sm); color:var(--accent); font-size:12px; font-weight:600;
  text-align:left; transition:all .2s; display:flex; align-items:center; gap:8px; }
.suggest-btn:hover { background:rgba(108,99,255,0.2); }

.sidebar-footer { padding:10px 8px; border-top:1px solid var(--border); }
.user-info { display:flex; align-items:center; gap:10px; padding:8px 10px; border-radius:var(--radius-sm);
  cursor:pointer; transition:background .2s; }
.user-info:hover { background:var(--surface2); }
.user-avatar { width:32px; height:32px; background:var(--accent); border-radius:50%;
  display:flex; align-items:center; justify-content:center; font-size:13px; font-weight:700; color:#fff; flex-shrink:0; }
.user-details .name { font-size:13px; font-weight:600; }
.user-details .role { font-size:11px; color:var(--text2); }
.logout-btn { width:100%; padding:8px; background:transparent; color:var(--text3);
  border:1px solid var(--border); border-radius:var(--radius-sm); font-size:12px; margin-top:6px; transition:all .2s; }
.logout-btn:hover { background:var(--accent2); color:#fff; border-color:var(--accent2); }

/* MOBILE */
.mobile-header { display:none; position:fixed; top:0; left:0; right:0; z-index:200;
  background:var(--surface); border-bottom:1px solid var(--border); padding:12px 16px; align-items:center; gap:12px; }
.hamburger { font-size:22px; cursor:pointer; }
.mobile-header h2 { font-size:16px; font-weight:700; }
.mobile-overlay { display:none; position:fixed; inset:0; background:#000a; z-index:99; }
.mobile-overlay.show { display:block; }

/* MAIN */
.main-content { margin-left:250px; flex:1; padding:24px; min-height:100vh; }
.page-header { display:flex; align-items:flex-start; justify-content:space-between; margin-bottom:22px; }
.page-header h1 { font-size:24px; font-weight:700; letter-spacing:-0.5px; }
.page-header p { color:var(--text2); font-size:13px; margin-top:3px; }

/* STATS */
.stats-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:14px; margin-bottom:22px; }
.stat-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
  padding:18px; position:relative; overflow:hidden; cursor:pointer; transition:border-color .2s; }
.stat-card:hover { border-color:var(--accent); }
.stat-card::before { content:''; position:absolute; top:0; left:0; right:0; height:2px; }
.stat-card.purple::before { background:var(--accent); }
.stat-card.red::before { background:var(--accent2); }
.stat-card.green::before { background:var(--accent3); }
.stat-card.orange::before { background:var(--accent4); }
.stat-label { font-size:11px; color:var(--text2); font-weight:500; margin-bottom:6px; }
.stat-value { font-size:26px; font-weight:700; letter-spacing:-1px; }
.stat-icon { position:absolute; top:14px; right:14px; font-size:18px; opacity:0.25; }

/* CARD */
.card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); margin-bottom:16px; }
.card-header { padding:14px 18px; border-bottom:1px solid var(--border);
  display:flex; align-items:center; justify-content:space-between; gap:12px; }
.card-header h3 { font-size:15px; font-weight:600; }
.card-body { padding:18px; }

/* ORDER CARDS */
.orders-list { display:flex; flex-direction:column; gap:10px; }
.order-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
  padding:14px 18px; cursor:pointer; transition:all .2s; }
.order-card:hover { border-color:var(--accent); box-shadow:0 0 0 1px var(--accent); }
.order-top { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:8px; }
.order-id { font-family:'DM Mono',monospace; font-size:11px; color:var(--text3); margin-bottom:2px; }
.order-title { font-size:14px; font-weight:600; }
.order-route { font-size:12px; color:var(--text2); margin-top:2px; }
.order-meta { display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin-top:6px; }
.order-date,.order-products { font-size:12px; color:var(--text3); }

/* BADGES */
.badge { display:inline-flex; align-items:center; gap:4px; padding:3px 9px;
  border-radius:20px; font-size:11px; font-weight:600; white-space:nowrap; }
.badge-pending    { background:#6c63ff22; color:#a09aff; border:1px solid #6c63ff44; }
.badge-accepted   { background:#43e97b22; color:#43e97b; border:1px solid #43e97b44; }
.badge-denied     { background:#ff6b6b22; color:#ff6b6b; border:1px solid #ff6b6b44; }
.badge-assembling { background:#f7971e22; color:#f7971e; border:1px solid #f7971e44; }
.badge-ready      { background:#00c9ff22; color:#00c9ff; border:1px solid #00c9ff44; }
.badge-transit    { background:#a855f722; color:#a855f7; border:1px solid #a855f744; }
.badge-arrived    { background:#22d3ee22; color:#22d3ee; border:1px solid #22d3ee44; }
.badge-complete   { background:#43e97b22; color:#43e97b; border:1px solid #43e97b44; }
.badge-incomplete { background:#f7971e22; color:#f7971e; border:1px solid #f7971e44; }
.badge-admin      { background:#6c63ff22; color:#a09aff; border:1px solid #6c63ff44; }
.badge-empleado   { background:#22222d; color:var(--text2); border:1px solid var(--border); }

/* MODAL */
.modal-overlay { display:none; position:fixed; inset:0; background:#000c; z-index:1000;
  align-items:center; justify-content:center; padding:16px; }
.modal-overlay.show { display:flex; }
.modal { background:var(--surface); border:1px solid var(--border); border-radius:20px;
  width:100%; max-width:600px; max-height:92vh; overflow-y:auto; animation:slideUp .25s ease; }
@keyframes slideUp { from{transform:translateY(20px);opacity:0} to{transform:translateY(0);opacity:1} }
.modal-header { padding:18px 22px; border-bottom:1px solid var(--border);
  display:flex; align-items:center; justify-content:space-between;
  position:sticky; top:0; background:var(--surface); z-index:1; }
.modal-header h2 { font-size:17px; font-weight:700; }
.modal-close { width:30px; height:30px; background:var(--surface2); border-radius:50%;
  display:flex; align-items:center; justify-content:center; font-size:16px;
  cursor:pointer; color:var(--text2); transition:all .2s; }
.modal-close:hover { background:var(--accent2); color:#fff; }
.modal-body { padding:22px; }
.modal-footer { padding:14px 22px; border-top:1px solid var(--border);
  display:flex; gap:10px; justify-content:flex-end; }

/* PRODUCT SEARCH */
.product-search-wrap { position:relative; margin-bottom:14px; }
.product-search-results { position:absolute; top:calc(100% + 4px); left:0; right:0;
  background:var(--surface2); border:1px solid var(--border); border-radius:var(--radius-sm);
  z-index:100; max-height:220px; overflow-y:auto; display:none; }
.product-search-results.show { display:block; }
.product-result { padding:9px 13px; cursor:pointer; transition:background .15s; border-bottom:1px solid var(--border); }
.product-result:last-child { border-bottom:none; }
.product-result:hover { background:var(--surface3); }
.product-result .p-name { font-size:13px; font-weight:500; }
.product-result .p-code { font-size:11px; color:var(--text3); font-family:'DM Mono',monospace; }

/* PRODUCT ITEMS */
.product-items { display:flex; flex-direction:column; gap:7px; margin-bottom:10px; }
.product-item { display:flex; align-items:center; gap:10px; background:var(--surface2);
  border-radius:var(--radius-sm); padding:9px 12px; }
.product-item .p-info { flex:1; }
.product-item .p-name { font-size:13px; font-weight:500; }
.product-item .p-code { font-size:11px; color:var(--text3); font-family:'DM Mono',monospace; }
.product-item .p-qty { font-family:'DM Mono',monospace; font-size:13px; font-weight:600; color:var(--accent); white-space:nowrap; }
.product-item .remove-btn { color:var(--text3); font-size:15px; cursor:pointer; transition:color .2s; flex-shrink:0; }
.product-item .remove-btn:hover { color:var(--accent2); }
.qty-input { width:75px !important; }

/* DETAIL */
.divider { border:none; border-top:1px solid var(--border); margin:14px 0; }
.detail-section { margin-bottom:18px; }
.detail-section h4 { font-size:12px; font-weight:600; color:var(--text2); text-transform:uppercase;
  letter-spacing:0.5px; margin-bottom:8px; }
.detail-row { display:flex; gap:8px; margin-bottom:5px; font-size:14px; flex-wrap:wrap; }
.detail-row .label { color:var(--text2); min-width:130px; flex-shrink:0; }
.detail-row .value { font-weight:500; }

/* TIMELINE */
.timeline { display:flex; flex-direction:column; }
.timeline-item { display:flex; gap:10px; }
.timeline-line { display:flex; flex-direction:column; align-items:center; }
.timeline-dot { width:10px; height:10px; border-radius:50%; background:var(--border); flex-shrink:0; margin-top:4px; }
.timeline-dot.done { background:var(--accent3); }
.timeline-dot.current { background:var(--accent); box-shadow:0 0 0 3px rgba(108,99,255,0.3); }
.timeline-connector { width:1px; flex:1; background:var(--border); margin:2px 0; min-height:20px; }
.timeline-content { padding-bottom:14px; flex:1; }
.timeline-title { font-size:13px; font-weight:500; }

/* ACTIONS */
.actions-bar { background:var(--surface2); border-radius:var(--radius); padding:14px;
  margin-top:14px; display:flex; gap:10px; flex-wrap:wrap; }

/* FAB */
.fab { position:fixed; bottom:24px; right:24px; width:52px; height:52px; background:var(--accent);
  border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:22px; color:#fff;
  box-shadow:0 4px 24px rgba(108,99,255,0.5); cursor:pointer; transition:all .2s; z-index:50; border:none; }
.fab:hover { transform:scale(1.1); box-shadow:0 6px 30px rgba(108,99,255,0.6); }

/* EMPTY STATE */
.empty-state { text-align:center; padding:48px 20px; color:var(--text3); }
.empty-state .icon { font-size:44px; margin-bottom:10px; }
.empty-state p { font-size:14px; }

/* ADMIN TABLE */
.admin-table { width:100%; border-collapse:collapse; }
.admin-table th { text-align:left; font-size:11px; font-weight:600; color:var(--text2);
  text-transform:uppercase; letter-spacing:0.5px; padding:8px 10px; border-bottom:1px solid var(--border); }
.admin-table td { padding:10px; border-bottom:1px solid var(--border); font-size:13px; vertical-align:middle; }
.admin-table tr:last-child td { border-bottom:none; }
.admin-table tr:hover td { background:var(--surface2); }

/* TABS */
.tabs { display:flex; background:var(--surface2); border-radius:var(--radius-sm); padding:4px; margin-bottom:16px; gap:4px; }
.tab { flex:1; padding:8px; text-align:center; font-size:13px; font-weight:500; border-radius:6px;
  cursor:pointer; color:var(--text2); transition:all .2s; }
.tab.active { background:var(--accent); color:#fff; }

/* PHOTO */
.photo-upload { border:2px dashed var(--border); border-radius:var(--radius-sm); padding:20px;
  text-align:center; cursor:pointer; transition:all .2s; color:var(--text2); font-size:13px; }
.photo-upload:hover { border-color:var(--accent); color:var(--accent); }
.photo-preview { width:100%; max-height:180px; object-fit:cover; border-radius:var(--radius-sm); margin-top:8px; }

/* FILTERS */
.filters { display:flex; gap:10px; margin-bottom:16px; flex-wrap:wrap; }
.filter-select { padding:8px 12px; background:var(--surface2); border:1px solid var(--border);
  border-radius:var(--radius-sm); color:var(--text); font-size:13px; }

/* WARNING */
.warning-box { background:#f7971e18; border:1px solid #f7971e44; border-radius:var(--radius-sm);
  padding:12px 14px; font-size:13px; color:#f7971e; line-height:1.5; }

/* INFO BANNER */
.info-banner { background:rgba(108,99,255,0.08); border:1px solid rgba(108,99,255,0.2);
  border-radius:var(--radius-sm); padding:11px 15px; font-size:13px; color:var(--text2);
  margin-bottom:16px; line-height:1.5; }

/* PRIORITY */
.priority-badge { display:inline-flex; align-items:center; gap:3px; font-size:11px;
  font-weight:700; color:var(--accent2); text-transform:uppercase; letter-spacing:0.5px; }

/* NOTIFICATION */
.notification { position:fixed; top:20px; right:20px; z-index:9999; background:var(--surface);
  border:1px solid var(--border); border-radius:var(--radius); padding:13px 16px; font-size:14px;
  font-weight:500; min-width:280px; box-shadow:0 8px 32px rgba(0,0,0,0.4);
  animation:slideInRight .3s ease; display:flex; align-items:center; gap:10px; }
@keyframes slideInRight { from{transform:translateX(100%);opacity:0} to{transform:translateX(0);opacity:1} }
.notification.success { border-left:3px solid var(--accent3); }
.notification.error   { border-left:3px solid var(--accent2); }
.notification.info    { border-left:3px solid var(--accent); }

/* CHAT */
.chat-messages { display:flex; flex-direction:column; gap:10px; max-height:320px;
  overflow-y:auto; padding:14px; background:var(--surface2); border-radius:var(--radius-sm); margin-bottom:12px; }
.chat-msg { display:flex; gap:8px; }
.chat-msg.own { flex-direction:row-reverse; }
.chat-bubble { max-width:75%; padding:8px 12px; border-radius:12px; font-size:13px; line-height:1.4; }
.chat-msg.own .chat-bubble { background:var(--accent); color:#fff; border-radius:12px 12px 2px 12px; }
.chat-msg.other .chat-bubble { background:var(--surface3); color:var(--text); border-radius:12px 12px 12px 2px; }
.chat-meta { font-size:10px; margin-top:3px; opacity:0.6; }
.chat-avatar { width:28px; height:28px; border-radius:50%; background:var(--surface3);
  display:flex; align-items:center; justify-content:center; font-size:11px; font-weight:700; flex-shrink:0; margin-top:2px; }
.chat-input-row { display:flex; gap:8px; }
.chat-input-row input { flex:1; }

/* SUGGESTIONS */
.suggestion-item { padding:12px; background:var(--surface2); border-radius:var(--radius-sm);
  margin-bottom:10px; border-left:3px solid var(--accent); }
.suggestion-item .s-meta { font-size:11px; color:var(--text3); margin-bottom:4px; }
.suggestion-item .s-text { font-size:13px; }
.suggestion-reply { margin-top:8px; padding:8px 10px; background:var(--surface3);
  border-radius:6px; font-size:12px; color:var(--text2); border-left:2px solid var(--accent3); }

/* ROUTE BOX */
.route-box { background:var(--surface2); border-radius:var(--radius-sm); padding:14px 16px;
  margin-bottom:14px; display:flex; align-items:center; gap:10px; font-size:14px; }
.route-box .arrow { font-size:20px; color:var(--accent); flex-shrink:0; }
.route-local { flex:1; }
.route-local .rl-label { font-size:11px; color:var(--text3); margin-bottom:2px; }
.route-local .rl-name { font-weight:600; }
.route-local .rl-code { font-size:11px; font-family:'DM Mono',monospace; color:var(--text2); }

/* CONFIG SECTIONS */
.config-section { margin-bottom:12px; }
.config-tag { display:inline-flex; align-items:center; gap:6px; padding:5px 12px;
  background:var(--surface2); border:1px solid var(--border); border-radius:20px; font-size:13px; }
.config-tag .remove { cursor:pointer; color:var(--text3); font-size:14px; transition:color .2s; }
.config-tag .remove:hover { color:var(--accent2); }
.config-tags { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:12px; }

/* RESPONSIVE */
@media (max-width:768px) {
  .sidebar { transform:translateX(-100%); }
  .sidebar.open { transform:translateX(0); }
  .mobile-header { display:flex; }
  .main-content { margin-left:0; padding:14px; padding-top:68px; }
  .form-row { grid-template-columns:1fr; }
  .stats-grid { grid-template-columns:1fr 1fr; }
  .fab { bottom:18px; right:14px; }
  .modal { max-height:88vh; }
  .filters { flex-direction:column; }
  .filter-select,.filters select { width:100%; }
  .actions-bar { flex-direction:column; }
  .actions-bar .btn { width:100%; }
  .route-box { flex-direction:column; align-items:flex-start; }
}
@media (max-width:400px) {
  .stats-grid { grid-template-columns:1fr; }
  .auth-card { padding:28px 20px; }
}

/* NOTIFICATION BELL */
.notif-bell {
  position:relative; cursor:pointer; font-size:20px; padding:6px;
  border-radius:50%; transition:background .2s;
}
.notif-bell:hover { background:var(--surface2); }
.notif-count {
  position:absolute; top:-2px; right:-2px; background:var(--accent2); color:#fff;
  border-radius:50%; width:18px; height:18px; font-size:10px; font-weight:700;
  display:flex !important; align-items:center; justify-content:center;
  font-family:'DM Sans',sans-serif;
}
.notif-bell-desktop {
  display:flex; align-items:center; gap:8px; padding:10px 18px;
  border-bottom:1px solid var(--border); cursor:pointer; font-size:13px;
  color:var(--text2); transition:background .2s; position:relative;
}
.notif-bell-desktop:hover { background:var(--surface2); color:var(--text); }
.notif-count-desktop {
  margin-left:auto; background:var(--accent2); color:#fff; border-radius:20px;
  padding:2px 7px; font-size:10px; font-weight:700;
}

/* NOTIFICATION PANEL */
.notif-panel {
  position:fixed; top:0; right:0; width:340px; height:100vh; max-height:100vh;
  background:var(--surface); border-left:1px solid var(--border);
  z-index:150; overflow-y:auto; animation:slideInRight .2s ease;
  box-shadow:-8px 0 32px rgba(0,0,0,0.3);
}
.notif-panel-header {
  padding:16px 18px; border-bottom:1px solid var(--border);
  display:flex; align-items:center; justify-content:space-between;
  position:sticky; top:0; background:var(--surface); z-index:1;
}
.notif-item {
  padding:13px 18px; border-bottom:1px solid var(--border);
  cursor:pointer; transition:background .15s;
}
.notif-item:hover { background:var(--surface2); }
.notif-item.unread { border-left:3px solid var(--accent); }
.notif-item .n-title { font-size:13px; font-weight:600; margin-bottom:3px; }
.notif-item .n-body  { font-size:12px; color:var(--text2); line-height:1.4; }
.notif-item .n-time  { font-size:11px; color:var(--text3); margin-top:4px; }

/* MIS CONSULTAS */
.consulta-card {
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
  padding:16px 18px; margin-bottom:10px;
}
.consulta-card .c-asunto { font-size:15px; font-weight:600; margin-bottom:4px; }
.consulta-card .c-texto  { font-size:13px; color:var(--text2); line-height:1.5; }
.consulta-card .c-meta   { font-size:11px; color:var(--text3); margin-bottom:8px; }
.consulta-respuesta {
  margin-top:12px; padding:10px 12px; background:rgba(67,233,123,0.08);
  border:1px solid rgba(67,233,123,0.25); border-radius:var(--radius-sm);
  font-size:13px; color:var(--text);
}
.consulta-respuesta .r-label { font-size:11px; font-weight:600; color:var(--accent3); margin-bottom:4px; }
.consulta-pendiente {
  margin-top:10px; font-size:12px; color:var(--text3);
  font-style:italic;
}

@media (max-width:768px) {
  .notif-panel { width:100vw; }
  .notif-bell-desktop { display:none; }
}
@media (min-width:769px) {
  #notif-count-mobile, #notif-bell-mobile { display:none !important; }
}
