/* Sabzgol UI - Agricultural / Fertilizer vibe */
body{
  background: var(--sb-bg) !important;
  color: var(--sb-text) !important;
  font-family: var(--sb-font, 'Vazirmatn', Tahoma, Arial, sans-serif) !important;
}

/* Header */
.site-header{
  background: linear-gradient(135deg, var(--sb-header-bg), var(--sb-primary)) !important;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.site-title, .site-description{ color:#fff !important; }

/* Sidebar */
.dashboard-sidebar{
  background: linear-gradient(180deg, var(--sb-sidebar-bg), rgba(15, 58, 37, .92)) !important;
}
.sidebar-menu a{
  border-radius: 14px;
  transition: all .15s ease;
}
.sidebar-menu a:hover{
  background: rgba(255,255,255,.10) !important;
}
.sidebar-menu a.active{
  background: rgba(255,255,255,.14) !important;
  outline: 1px solid rgba(255,255,255,.18);
}

/* Cards & sections */
.card, .dashboard-card, .content-box, .files-box, .news-box, .profile-box, .search-box, .messages-box{
  background: var(--sb-card) !important;
  border-radius: var(--sb-radius) !important;
  box-shadow: var(--sb-shadow) !important;
  border: 1px solid rgba(15,23,42,.08) !important;
}

/* Buttons */
button, .btn, .button, input[type="submit"]{
  border-radius: 14px !important;
}
button.primary, .btn-primary, .button-primary, input[type="submit"]{
  background: var(--sb-primary) !important;
  border-color: var(--sb-primary) !important;
  color:#fff !important;
}
button.secondary, .btn-secondary{
  background: var(--sb-secondary) !important;
  border-color: var(--sb-secondary) !important;
  color:#fff !important;
}
a{
  color: var(--sb-primary);
}
a:hover{
  color: var(--sb-secondary);
}

/* Tag / chip */
.badge, .chip{
  background: rgba(245,158,11,.14) !important;
  color: var(--sb-accent) !important;
  border-radius:999px !important;
}

/* File preview frame */
.sfm-preview img{
  border-radius: 12px;
  border:1px solid rgba(15,23,42,.10);
}

/* Unread messages badge in sidebar */
.menu-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:20px;
  height:20px;
  padding:0 6px;
  margin-right:8px;
  border-radius:999px;
  background:#ff3b30;
  color:#fff;
  font-size:12px;
  line-height:1;
  font-weight:700;
  vertical-align:middle;
}


/* Headings font */
h1,h2,h3,h4,h5,h6,.site-title,.pv-title,.pv-h{
  font-family: var(--sb-font, 'Vazirmatn', Tahoma, Arial, sans-serif) !important;
}


/* Header user box (top-right) */
.site-header .container{ position: relative; }
/* Header layout (responsive + adaptive) */
.site-header .sb-header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:18px 18px;
  position:relative;
}
.sb-header-center{
  flex:1;
  padding:0 16px;
}
.sb-halign-right .sb-header-center{ text-align:right; }
.sb-halign-center .sb-header-center{ text-align:center; }
.sb-halign-left .sb-header-center{ text-align:left; }

/* user box (glass) */
.sb-header-user{
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px 12px;
  border-radius:22px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 28px rgba(0,0,0,.14);
}

/* adaptive side: if title is left, move user to right; otherwise to left */
.sb-halign-left .sb-header-user{ order:3; margin-left:auto; }
.sb-halign-right .sb-header-user{ order:1; margin-right:auto; }
.sb-halign-center .sb-header-user{ order:1; }

/* avatar size from setting */
.sb-header-avatar{
  width: var(--sb-avatar-size, 72px) !important;
  height: var(--sb-avatar-size, 72px) !important;
  border-radius: 22px;
  object-fit:cover;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.12);
}

/* text */
.sb-header-userinfo{ line-height:1.15; text-align:right; }
.sb-header-name{ color:#fff; font-weight:800; font-size:16px; }
.sb-header-role{ color:rgba(255,255,255,.88); font-size:13px; margin-top:4px; }

/* dropdown */
.sb-user-toggle{
  all: unset;
  cursor: pointer;
  display:flex;
  align-items:center;
  gap:12px;
}
.sb-user-menu{
  position:absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 200px;
  background: rgba(15, 23, 42, .55);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px;
  padding: 8px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px rgba(0,0,0,.22);
}
.sb-user-menu-item{
  display:block;
  padding:10px 12px;
  border-radius: 14px;
  color: rgba(255,255,255,.92) !important;
  text-decoration:none !important;
}
.sb-user-menu-item:hover{
  background: rgba(255,255,255,.10) !important;
}

/* responsive header */
@media (max-width: 900px){
  .site-header .sb-header-inner{
    flex-wrap:wrap;
    justify-content:center;
  }
  .sb-header-center{
    order:1;
    flex: 1 1 100%;
    text-align:center !important;
    padding: 0;
  }
  .sb-header-user{
    order:2 !important;
    margin: 12px auto 0;
  }
}

/* Profile avatar row */
.sabzgol-avatar-row{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
}
.sabzgol-avatar-preview{
  width:84px;
  height:84px;
  border-radius:18px;
  object-fit:cover;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(0,0,0,.04);
}
.sabzgol-avatar-actions{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }


/* === Header user dropdown (v1.3.9) === */
.site-header .container{ position:relative; padding-left:260px; } /* space for user box */
.sb-header-user{
  left:10px; top:14px;
  padding:12px 14px;
  border-radius:22px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.20);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
.sb-user-toggle{
  display:flex;
  align-items:center;
  gap:14px;
  padding:0;
  margin:0;
  border:0;
  background:transparent;
  color:inherit;
  cursor:pointer;
  text-align:right;
}
.sb-header-avatar{
  width:110px; height:110px; /* ~3x of small avatars */
  border-radius:50%;
  border: 2px solid rgba(255,255,255,.35);
}
.sb-header-name{ font-size:18px; font-weight:800; }
.sb-header-role{ font-size:13px; opacity:.9; margin-top:4px; }

/* Dropdown menu */
.sb-user-menu{
  position:absolute;
  left:0;
  top:calc(100% + 10px);
  min-width:220px;
  padding:10px;
  border-radius:16px;
  background: rgba(15, 20, 18, .35);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 40px rgba(0,0,0,.22);
  z-index:9999;
}
.sb-user-menu[hidden]{ display:none !important; }
.sb-user-menu-item{
  display:block;
  padding:10px 12px;
  border-radius:12px;
  color:#fff !important;
  text-decoration:none !important;
}
.sb-user-menu-item:hover{
  background: rgba(255,255,255,.12);
}

/* Prevent overlap on small screens */
@media (max-width: 900px){
  .site-header .container{ padding-left:20px; padding-top:140px; }
  .sb-header-user{ position:relative; top:auto; left:auto; margin:14px auto 0; width:fit-content; }
  .sb-user-menu{ left:0; right:0; margin:0 auto; }
}

/* Responsive dashboard layout */
@media (max-width: 980px){
  .dashboard-wrapper{ flex-direction:column; }
  .dashboard-sidebar{ width:100% !important; padding:14px 16px !important; }
  .dashboard-content{ padding:18px !important; }
  .sidebar-menu{ display:flex; flex-wrap:wrap; gap:10px; padding:0; }
  .sidebar-menu li{ margin:0 !important; }
  .sidebar-menu a{ padding:10px 12px; }
}
@media (max-width: 520px){
  .dashboard-content{ padding:14px !important; }
  .card, .dashboard-card, .content-box, .files-box, .news-box, .profile-box, .search-box, .messages-box{ padding:14px !important; }
  input, select, textarea{ max-width:100%; }
}


/* ===== Users Management ===== */
.sb-notice{padding:12px 14px;border-radius:12px;margin:12px 0;font-size:14px}
.sb-notice-success{background:rgba(16,185,129,.12);border:1px solid rgba(16,185,129,.25)}
.sb-notice-error{background:rgba(239,68,68,.10);border:1px solid rgba(239,68,68,.25)}
.sb-users-topbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;gap:10px}
.sb-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.sb-field label{display:block;margin-bottom:6px;font-size:13px;opacity:.85}
.sb-field input,.sb-field select{width:100%;padding:10px 12px;border-radius:12px;border:1px solid rgba(0,0,0,.12);background:rgba(255,255,255,.65)}
.sb-field-avatar{grid-column:1 / -1}
.sb-avatar-picker{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.sb-avatar-preview{width:74px;height:74px;border-radius:999px;overflow:hidden;border:1px solid rgba(0,0,0,.12);display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.04)}
.sb-avatar-preview img{width:100%;height:100%;object-fit:cover}
.sb-avatar-placeholder{font-size:12px;opacity:.7}
.sb-avatar-actions{display:flex;gap:8px;flex-wrap:wrap}
.sb-form-actions{margin-top:12px}
.sb-table-wrap{overflow:auto}
.sb-table{width:100%;border-collapse:separate;border-spacing:0 10px}
.sb-table th{font-size:12px;opacity:.7;text-align:right;padding:8px 10px}
.sb-table td{background:rgba(255,255,255,.65);border:1px solid rgba(0,0,0,.08);padding:10px;border-left:none;border-right:none}
.sb-table tr td:first-child{border-right:1px solid rgba(0,0,0,.08);border-radius:12px 0 0 12px}
.sb-table tr td:last-child{border-left:1px solid rgba(0,0,0,.08);border-radius:0 12px 12px 0}
.sb-user-mini{display:flex;align-items:center;gap:10px;min-width:220px}
.sb-user-mini-avatar{width:38px;height:38px;border-radius:999px;overflow:hidden;background:rgba(0,0,0,.08);display:flex;align-items:center;justify-content:center}
.sb-user-mini-avatar img{width:100%;height:100%;object-fit:cover}
.sb-user-mini-avatar span{font-weight:700;opacity:.7}
.sb-user-mini-name{font-weight:600}
.sb-user-mini-username{font-size:12px;opacity:.65}
@media (max-width: 900px){
  .sb-form-grid{grid-template-columns:1fr}
}


/* === SabzGol Chatbox v2 === */
.sg-chat-page{ direction:rtl; max-width:1180px; margin:0 auto; }
.sg-chat-head{ display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:18px; }
.sg-chat-head h1{ margin:0 0 6px; font-size:28px; }
.sg-chat-head p{ margin:0; color:#64748b; }
.sg-chat-current-user{ background:rgba(22,101,52,.08); color:#14532d; border:1px solid rgba(22,101,52,.16); padding:10px 14px; border-radius:16px; white-space:nowrap; }
.sg-chat-shell{ display:grid; grid-template-columns:290px minmax(0,1fr); min-height:620px; background:#fff; border:1px solid rgba(15,23,42,.08); border-radius:26px; overflow:hidden; box-shadow:0 18px 50px rgba(15,23,42,.10); }
.sg-chat-users{ background:linear-gradient(180deg,#0f3d28,#14532d); padding:16px; color:#fff; min-width:0; }
.sg-chat-search-wrap{ margin-bottom:14px; }
.sg-chat-search-wrap input{ width:100%; border:1px solid rgba(255,255,255,.18); background:rgba(255,255,255,.10); color:#fff; border-radius:16px; padding:12px 14px; outline:none; }
.sg-chat-search-wrap input::placeholder{ color:rgba(255,255,255,.72); }
.sg-chat-user-list{ display:flex; flex-direction:column; gap:8px; max-height:540px; overflow:auto; padding-left:4px; }
.sg-chat-user{ all:unset; box-sizing:border-box; display:flex; align-items:center; gap:10px; width:100%; cursor:pointer; padding:11px 10px; border-radius:18px; transition:.18s ease; color:#fff; }
.sg-chat-user:hover,.sg-chat-user.active{ background:rgba(255,255,255,.14); box-shadow:inset 0 0 0 1px rgba(255,255,255,.16); }
.sg-chat-avatar{ width:42px; height:42px; min-width:42px; display:inline-flex; align-items:center; justify-content:center; border-radius:50%; background:linear-gradient(135deg,#f59e0b,#22c55e); font-weight:900; color:#fff; }
.sg-chat-avatar img{ width:100%; height:100%; object-fit:cover; border-radius:50%; display:block; }
.sg-chat-user-info{ display:flex; flex-direction:column; min-width:0; }
.sg-chat-user-info strong{ font-size:14px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sg-chat-user-info small{ opacity:.78; direction:ltr; text-align:right; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sg-chat-empty-users{ padding:18px; background:rgba(255,255,255,.10); border-radius:16px; }
.sg-chat-box{ display:flex; flex-direction:column; min-width:0; background:linear-gradient(180deg,#f8fafc,#eef7f0); }
.sg-chat-box-head{ display:flex; align-items:center; justify-content:space-between; padding:18px 22px; background:rgba(255,255,255,.72); border-bottom:1px solid rgba(15,23,42,.08); backdrop-filter:blur(10px); }
.sg-chat-box-head strong{ font-size:17px; color:#0f172a; margin:0 6px; }
.sg-chat-box-head small{ color:#64748b; direction:ltr; }
.sg-chat-status-dot{ width:10px; height:10px; display:inline-block; border-radius:50%; background:#22c55e; box-shadow:0 0 0 5px rgba(34,197,94,.12); vertical-align:middle; }
.sg-chat-messages{ flex:1; padding:22px; overflow:auto; min-height:420px; max-height:520px; }
.sg-chat-placeholder{ height:100%; min-height:260px; display:flex; align-items:center; justify-content:center; text-align:center; color:#64748b; background:rgba(255,255,255,.58); border:1px dashed rgba(15,23,42,.15); border-radius:22px; }
.sg-chat-msg{ display:flex; margin:10px 0; }
.sg-chat-msg.me{ justify-content:flex-start; }
.sg-chat-msg.other{ justify-content:flex-end; }
.sg-chat-bubble{ max-width:min(74%,680px); padding:12px 14px; border-radius:20px; box-shadow:0 8px 22px rgba(15,23,42,.08); line-height:1.9; word-break:break-word; }
.sg-chat-msg.me .sg-chat-bubble{ background:#dcfce7; color:#052e16; border-bottom-right-radius:6px; }
.sg-chat-msg.other .sg-chat-bubble{ background:#fff; color:#0f172a; border-bottom-left-radius:6px; border:1px solid rgba(15,23,42,.06); }
.sg-chat-meta{ display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:4px; font-size:12px; opacity:.78; }
.sg-chat-meta span{ direction:ltr; white-space:nowrap; }
.sg-chat-text p{ margin:0 0 6px; }
.sg-chat-text p:last-child{ margin-bottom:0; }

/* Chat message edit/delete controls */
.sg-chat-footer{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:6px; }
.sg-chat-actions{ display:inline-flex; align-items:center; gap:6px; opacity:.88; }
.sg-chat-actions button{ border:0; border-radius:999px; padding:4px 9px; font-size:11px; line-height:1.5; cursor:pointer; background:rgba(15,23,42,.08); color:#0f172a; }
.sg-chat-actions button:hover{ background:rgba(15,23,42,.14); }
.sg-chat-actions .sg-delete-message{ color:#b91c1c; background:rgba(220,38,38,.10); }
.sg-chat-actions .sg-delete-message:hover{ background:rgba(220,38,38,.16); }

.sg-chat-form{ display:flex; gap:10px; align-items:flex-end; padding:16px; background:#fff; border-top:1px solid rgba(15,23,42,.08); }
.sg-chat-form textarea{ flex:1; resize:none; min-height:54px; max-height:140px; border:1px solid rgba(15,23,42,.13); border-radius:18px; padding:13px 14px; outline:none; font-family:inherit; }
.sg-chat-form textarea:focus{ border-color:#16a34a; box-shadow:0 0 0 4px rgba(22,163,74,.12); }
.sg-chat-form button{ min-width:96px; border:0; border-radius:18px !important; padding:14px 18px; background:linear-gradient(135deg,#15803d,#16a34a) !important; color:#fff !important; font-weight:800; cursor:pointer; }
.sg-chat-form button:disabled,.sg-chat-form textarea:disabled{ opacity:.55; cursor:not-allowed; }
@media (max-width:900px){
  .sg-chat-head{ flex-direction:column; align-items:stretch; }
  .sg-chat-current-user{ white-space:normal; }
  .sg-chat-shell{ grid-template-columns:1fr; min-height:auto; }
  .sg-chat-users{ border-radius:0; }
  .sg-chat-user-list{ max-height:220px; }
  .sg-chat-messages{ min-height:360px; max-height:460px; padding:14px; }
  .sg-chat-bubble{ max-width:88%; }
  .sg-chat-form{ flex-direction:column; align-items:stretch; }
  .sg-chat-form button{ width:100%; }
}

/* === SabzGol Chatbox v3: ID-only + online status + notification === */
.sg-chat-shell{
  grid-template-columns:minmax(0,1fr) 310px !important;
  direction:ltr;
}
.sg-chat-users{
  order:2;
  direction:rtl;
  border-left:1px solid rgba(255,255,255,.12);
}
.sg-chat-box{
  order:1;
  direction:rtl;
}
.sg-chat-search-wrap label{
  display:block;
  font-size:13px;
  font-weight:800;
  margin:0 0 8px;
  color:#fff;
}
.sg-chat-id-row{
  display:flex;
  gap:8px;
  align-items:center;
}
.sg-chat-id-row input{
  min-width:0;
}
.sg-chat-id-row button,
.sg-copy-chat-id{
  border:0;
  border-radius:14px !important;
  padding:10px 12px;
  background:#dcfce7 !important;
  color:#14532d !important;
  font-weight:800;
  cursor:pointer;
  white-space:nowrap;
}
#sg-chat-search-result{
  display:block;
  margin-top:8px;
  color:rgba(255,255,255,.76);
  font-size:12px;
  line-height:1.8;
}
.sg-chat-list-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin:14px 2px 10px;
  color:#fff;
  font-weight:900;
}
.sg-total-unread,
.sg-user-unread{
  min-width:22px;
  height:22px;
  padding:0 7px;
  border-radius:999px;
  background:#ef4444;
  color:#fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
  font-weight:900;
  box-shadow:0 6px 18px rgba(239,68,68,.32);
}
.sg-chat-user{
  position:relative;
  padding-left:42px !important;
}
.sg-user-unread{
  position:absolute;
  left:10px;
  top:50%;
  transform:translateY(-50%);
}
.sg-user-status{
  font-style:normal;
  font-size:11px;
  margin-top:3px;
  display:inline-flex;
  align-items:center;
  gap:5px;
  opacity:.92;
}
.sg-user-status:before{
  content:'';
  width:7px;
  height:7px;
  border-radius:50%;
  display:inline-block;
  background:#94a3b8;
}
.sg-user-status.online:before{ background:#22c55e; box-shadow:0 0 0 4px rgba(34,197,94,.16); }
.sg-user-status.offline:before{ background:#94a3b8; }
.sg-chat-status-dot.online{ background:#22c55e; box-shadow:0 0 0 5px rgba(34,197,94,.13); }
.sg-chat-status-dot.offline{ background:#94a3b8; box-shadow:0 0 0 5px rgba(148,163,184,.13); }
#sg-chat-partner-status{
  font-style:normal;
  font-size:12px;
  color:#64748b;
  margin-right:8px;
}
.sg-chat-notice{
  background:#ecfdf5;
  color:#047857;
  border:1px solid rgba(16,185,129,.22);
  padding:8px 12px;
  border-radius:999px;
  font-size:13px;
  font-weight:800;
}
.sg-chat-current-user{
  display:flex;
  align-items:center;
  gap:9px;
  flex-wrap:wrap;
}
.sg-my-chat-id{
  background:#fff;
  color:#14532d;
  border-radius:12px;
  padding:4px 9px;
  letter-spacing:.3px;
}
.sg-seen{
  display:block;
  margin-top:4px;
  font-size:11px;
  opacity:.62;
  text-align:left;
}
@media (max-width: 860px){
  .sg-chat-shell{
    grid-template-columns:1fr !important;
  }
  .sg-chat-users,
  .sg-chat-box{
    order:initial;
  }
  .sg-chat-id-row{
    flex-direction:column;
    align-items:stretch;
  }
}


/* Premium login screen + password visibility toggle */
body.sabzgol-login-view{
  min-height:100vh;
  background:
    radial-gradient(circle at 18% 14%, rgba(34,197,94,.18), transparent 32%),
    radial-gradient(circle at 82% 24%, rgba(245,158,11,.14), transparent 28%),
    linear-gradient(135deg, #f0fdf4 0%, var(--sb-login-bg, #f6fbf7) 45%, #ecfeff 100%) !important;
}
body.sabzgol-login-view .site-header{
  background:rgba(11,47,30,.88) !important;
  backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(255,255,255,.12);
  box-shadow:0 20px 60px rgba(2,16,9,.14) !important;
}
body.sabzgol-login-view .dashboard-wrapper{
  min-height:calc(100vh - 90px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:34px 16px;
  position:relative;
  overflow:hidden;
}
body.sabzgol-login-view .dashboard-wrapper > .container{
  width:100%;
  max-width:1180px;
  padding:0 18px;
  position:relative;
  z-index:2;
}
.sabzgol-login-screen{
  width:100%;
  min-height:560px;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  isolation:isolate;
}
.sabzgol-login-card{
  width:min(100%, 470px);
  margin:0 auto;
  background:rgba(255,255,255,.84);
  border:1px solid rgba(255,255,255,.72);
  border-radius:30px;
  padding:34px 30px 30px;
  box-shadow:0 28px 80px rgba(15,23,42,.16), inset 0 1px 0 rgba(255,255,255,.8);
  backdrop-filter:blur(18px);
  position:relative;
  overflow:hidden;
}
.sabzgol-login-card:before{
  content:'';
  position:absolute;
  inset:0 0 auto 0;
  height:7px;
  background:linear-gradient(90deg, var(--sb-primary,#1f8a4c), var(--sb-secondary,#0ea5a4), var(--sb-accent,#f59e0b));
}
.sabzgol-login-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 13px;
  border-radius:999px;
  color:#14532d;
  background:rgba(220,252,231,.82);
  border:1px solid rgba(34,197,94,.16);
  font-size:13px;
  font-weight:800;
  margin-bottom:16px;
}
.sabzgol-login-title{
  margin:0 0 9px;
  color:#0f172a;
  font-size:30px;
  line-height:1.35;
  font-weight:900;
  letter-spacing:-.6px;
}
.sabzgol-login-subtitle{
  margin:0 0 24px;
  color:#64748b;
  font-size:14px;
  line-height:1.9;
}
.sabzgol-login-form .form-group{
  margin-bottom:17px;
}
.sabzgol-login-field .form-label{
  color:#1e293b;
  font-weight:850;
  margin-bottom:8px;
}
.sabzgol-login-form .form-control{
  width:100%;
  min-height:52px;
  border-radius:17px;
  border:1px solid rgba(15,23,42,.12);
  background:rgba(248,250,252,.92);
  color:#0f172a;
  padding:0 16px;
  font-size:14px;
  outline:none;
  transition:border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.sabzgol-login-form .form-control:focus{
  background:#fff;
  border-color:rgba(31,138,76,.62);
  box-shadow:0 0 0 5px rgba(31,138,76,.12);
}
.sabzgol-password-wrap{
  position:relative;
}
.sabzgol-password-wrap .form-control{
  padding-left:58px;
}
.sabzgol-password-toggle{
  position:absolute;
  left:9px;
  top:50%;
  transform:translateY(-50%);
  width:40px;
  height:40px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:0;
  border-radius:14px;
  background:rgba(15,23,42,.06);
  color:#334155;
  cursor:pointer;
  transition:background .2s ease, transform .2s ease, color .2s ease;
}
.sabzgol-password-toggle:hover{
  background:rgba(31,138,76,.13);
  color:#166534;
}
.sabzgol-password-toggle:active{
  transform:translateY(-50%) scale(.96);
}
.sabzgol-password-toggle .sabzgol-eye-closed{ display:none; }
.sabzgol-password-toggle[aria-pressed="true"] .sabzgol-eye-open{ display:none; }
.sabzgol-password-toggle[aria-pressed="true"] .sabzgol-eye-closed{ display:inline; }
.sabzgol-login-options{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:4px 0 19px;
}
.sabzgol-remember-label{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:#475569;
  font-size:13px;
  cursor:pointer;
  user-select:none;
}
.sabzgol-remember-label input{
  accent-color:var(--sb-primary,#1f8a4c);
}
.sabzgol-login-submit{
  width:100% !important;
  min-height:52px;
  border-radius:17px !important;
  font-weight:900;
  font-size:15px;
  background:linear-gradient(135deg, var(--sb-primary,#1f8a4c), var(--sb-secondary,#0ea5a4)) !important;
  box-shadow:0 16px 30px rgba(31,138,76,.24);
}
.sabzgol-login-submit:hover{
  transform:translateY(-1px);
  filter:saturate(1.08);
  box-shadow:0 20px 38px rgba(31,138,76,.28);
}
.sabzgol-login-error{
  border-radius:16px;
  margin-bottom:17px;
  border:1px solid rgba(239,68,68,.18);
}
.sabzgol-login-decor{
  position:absolute;
  border-radius:999px;
  pointer-events:none;
  z-index:-1;
  filter:blur(.2px);
}
.sabzgol-login-decor-1{
  width:220px;
  height:220px;
  right:11%;
  top:8%;
  background:linear-gradient(135deg, rgba(34,197,94,.18), rgba(20,184,166,.12));
}
.sabzgol-login-decor-2{
  width:160px;
  height:160px;
  left:15%;
  bottom:14%;
  background:linear-gradient(135deg, rgba(245,158,11,.18), rgba(34,197,94,.11));
}
@media (max-width: 640px){
  body.sabzgol-login-view .dashboard-wrapper{
    min-height:calc(100vh - 82px);
    padding:22px 10px;
  }
  .sabzgol-login-screen{
    min-height:initial;
  }
  .sabzgol-login-card{
    border-radius:24px;
    padding:28px 20px 22px;
  }
  .sabzgol-login-title{
    font-size:24px;
  }
}

/* === Sabzgol header layout fix: title/text fully right, user profile fully left === */
body.logged-in .site-header .sb-header-inner,
body:not(.sabzgol-login-view) .site-header .sb-header-inner{
  position: relative !important;
  display: block !important;
  min-height: 110px !important;
  padding: 18px 20px !important;
}

body.logged-in .site-header .sb-header-center,
body:not(.sabzgol-login-view) .site-header .sb-header-center{
  width: 100% !important;
  max-width: none !important;
  flex: none !important;
  order: initial !important;
  text-align: right !important;
  direction: rtl !important;
  padding: 0 20px 0 300px !important;
  margin: 0 !important;
}

body.logged-in .site-header .sb-header-center .site-title,
body.logged-in .site-header .sb-header-center .site-subtitle,
body.logged-in .site-header .sb-header-center p,
body:not(.sabzgol-login-view) .site-header .sb-header-center .site-title,
body:not(.sabzgol-login-view) .site-header .sb-header-center .site-subtitle,
body:not(.sabzgol-login-view) .site-header .sb-header-center p{
  text-align: right !important;
}

body.logged-in .site-header .sb-header-user,
body:not(.sabzgol-login-view) .site-header .sb-header-user{
  position: absolute !important;
  left: 20px !important;
  right: auto !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  margin: 0 !important;
  z-index: 20 !important;
}

body.logged-in .site-header .container,
body:not(.sabzgol-login-view) .site-header .container{
  padding-left: 20px !important;
  padding-right: 20px !important;
}

body.logged-in .site-header .sb-user-menu,
body:not(.sabzgol-login-view) .site-header .sb-user-menu{
  left: 0 !important;
  right: auto !important;
}

@media (max-width: 900px){
  body.logged-in .site-header .sb-header-inner,
  body:not(.sabzgol-login-view) .site-header .sb-header-inner{
    min-height: 0 !important;
    padding: 16px 16px !important;
  }

  body.logged-in .site-header .sb-header-center,
  body:not(.sabzgol-login-view) .site-header .sb-header-center{
    padding: 0 !important;
    text-align: center !important;
  }

  body.logged-in .site-header .sb-header-center .site-title,
  body.logged-in .site-header .sb-header-center .site-subtitle,
  body.logged-in .site-header .sb-header-center p,
  body:not(.sabzgol-login-view) .site-header .sb-header-center .site-title,
  body:not(.sabzgol-login-view) .site-header .sb-header-center .site-subtitle,
  body:not(.sabzgol-login-view) .site-header .sb-header-center p{
    text-align: center !important;
  }

  body.logged-in .site-header .sb-header-user,
  body:not(.sabzgol-login-view) .site-header .sb-header-user{
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    margin: 16px auto 0 !important;
    width: fit-content !important;
  }

  body.logged-in .site-header .sb-user-menu,
  body:not(.sabzgol-login-view) .site-header .sb-user-menu{
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
  }
}


/* ===== Mobile hamburger dashboard menu override ===== */
.dashboard-menu-toggle{
  display:none;
  width:100%;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:16px;
  padding:13px 15px;
  background:rgba(255,255,255,.12);
  color:#fff;
  font-family:inherit;
  font-size:15px;
  font-weight:800;
  cursor:pointer;
  box-shadow:0 10px 24px rgba(0,0,0,.10);
}
.dashboard-menu-toggle:focus{outline:2px solid rgba(255,255,255,.55);outline-offset:2px}
.dashboard-menu-toggle-icon{width:27px;height:21px;display:inline-flex;flex-direction:column;justify-content:space-between;flex:0 0 auto}
.dashboard-menu-toggle-icon span{display:block;height:3px;border-radius:999px;background:currentColor;transition:transform .25s ease,opacity .25s ease}
.dashboard-sidebar.is-open .dashboard-menu-toggle-icon span:nth-child(1){transform:translateY(9px) rotate(45deg)}
.dashboard-sidebar.is-open .dashboard-menu-toggle-icon span:nth-child(2){opacity:0}
.dashboard-sidebar.is-open .dashboard-menu-toggle-icon span:nth-child(3){transform:translateY(-9px) rotate(-45deg)}
.dashboard-menu-title{color:#fff;margin:0 0 20px}
@media (max-width:980px){
  .dashboard-sidebar{width:100% !important;padding:12px 14px !important}
}
@media (max-width:768px){
  .dashboard-wrapper{flex-direction:column}
  .dashboard-sidebar{position:sticky;top:0;z-index:50;border-radius:0 0 18px 18px}
  .dashboard-menu-toggle{display:flex}
  .dashboard-menu-panel{display:none;margin-top:12px;padding-top:12px;border-top:1px solid rgba(255,255,255,.14);animation:sbMenuDrop .18s ease-out}
  .dashboard-sidebar.is-open .dashboard-menu-panel{display:block}
  .dashboard-menu-title{display:none}
  .dashboard-sidebar .sidebar-menu{display:block !important;flex-wrap:nowrap !important;gap:0 !important;padding:0 !important;margin:0 !important}
  .dashboard-sidebar .sidebar-menu li{margin:8px 0 !important;width:100%}
  .dashboard-sidebar .sidebar-menu a{display:flex !important;align-items:center;gap:9px;width:100%;padding:12px 13px !important;border-radius:12px}
  .dashboard-content{padding:15px !important}
}
@keyframes sbMenuDrop{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}

/* SabzGol Messages - elegant user picker */
.sg-user-picker-card{
  position:relative;
  margin-bottom:18px;
  padding:14px;
  border-radius:24px;
  background:linear-gradient(145deg,rgba(255,255,255,.17),rgba(255,255,255,.07));
  border:1px solid rgba(255,255,255,.18);
  box-shadow:0 18px 42px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.18);
}
.sg-user-picker-card label{
  display:flex;
  align-items:center;
  gap:8px;
  margin:0 0 10px;
  color:#fff;
  font-weight:900;
  font-size:14px;
}
.sg-user-picker-card label:before{
  content:'+';
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:22px;
  height:22px;
  border-radius:999px;
  background:#dcfce7;
  color:#14532d;
  font-weight:900;
}
.sg-user-picker-trigger{
  width:100%;
  border:0;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 12px;
  border-radius:18px;
  color:#08351f;
  background:linear-gradient(135deg,#ffffff,#dffbea);
  box-shadow:0 12px 26px rgba(0,0,0,.16), inset 0 0 0 1px rgba(20,83,45,.10);
  font-family:inherit;
  font-weight:900;
  transition:transform .18s ease, box-shadow .18s ease;
}
.sg-user-picker-trigger:hover{
  transform:translateY(-1px);
  box-shadow:0 16px 32px rgba(0,0,0,.22), inset 0 0 0 1px rgba(20,83,45,.16);
}
.sg-picker-icon{
  width:34px;
  height:34px;
  min-width:34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:14px;
  background:#16a34a;
  color:#fff;
  box-shadow:0 8px 18px rgba(22,163,74,.28);
}
.sg-picker-text{
  flex:1;
  text-align:right;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.sg-picker-chevron{
  width:28px;
  height:28px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:10px;
  background:rgba(20,83,45,.09);
  color:#14532d;
  font-size:20px;
  line-height:1;
  transition:transform .18s ease;
}
.sg-user-picker-trigger[aria-expanded="true"] .sg-picker-chevron{ transform:rotate(180deg); }
.sg-user-picker-dropdown{
  position:absolute;
  z-index:30;
  top:calc(100% - 6px);
  right:14px;
  left:14px;
  opacity:0;
  visibility:hidden;
  transform:translateY(8px) scale(.98);
  transform-origin:top center;
  transition:.18s ease;
  border-radius:22px;
  overflow:hidden;
  background:rgba(255,255,255,.98);
  color:#0f172a;
  box-shadow:0 24px 60px rgba(0,0,0,.28);
  border:1px solid rgba(15,23,42,.08);
}
.sg-user-picker-dropdown.open{
  opacity:1;
  visibility:visible;
  transform:translateY(0) scale(1);
}
.sg-user-picker-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:13px 14px;
  background:linear-gradient(135deg,#f0fdf4,#ecfeff);
  border-bottom:1px solid rgba(15,23,42,.07);
}
.sg-user-picker-top strong{ color:#064e3b; font-size:14px; }
.sg-user-picker-top small{ color:#64748b; font-size:12px; }
.sg-user-picker-list{
  max-height:330px;
  overflow:auto;
  padding:8px;
}
.sg-user-picker-list::-webkit-scrollbar,.sg-chat-user-list::-webkit-scrollbar,.sg-chat-messages::-webkit-scrollbar{ width:7px; }
.sg-user-picker-list::-webkit-scrollbar-thumb,.sg-chat-user-list::-webkit-scrollbar-thumb,.sg-chat-messages::-webkit-scrollbar-thumb{ background:rgba(22,101,52,.35); border-radius:999px; }
.sg-user-picker-item{
  width:100%;
  border:0;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px;
  border-radius:17px;
  background:transparent;
  font-family:inherit;
  color:#0f172a;
  transition:.16s ease;
}
.sg-user-picker-item:hover,.sg-user-picker-item.selected{
  background:linear-gradient(135deg,#dcfce7,#f0fdf4);
  box-shadow:inset 0 0 0 1px rgba(22,101,52,.12);
}
.sg-picker-avatar{
  width:42px;
  height:42px;
  min-width:42px;
  border-radius:16px;
  overflow:hidden;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  background:linear-gradient(135deg,#16a34a,#0f766e);
  font-weight:900;
  box-shadow:0 9px 18px rgba(15,23,42,.12);
}
.sg-picker-avatar img{ width:100%; height:100%; object-fit:cover; display:block; }
.sg-picker-info{
  min-width:0;
  flex:1;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:2px;
}
.sg-picker-info strong{
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#0f172a;
  font-size:13.5px;
}
.sg-picker-info small{ color:#64748b; font-size:12px; }
.sg-picker-status{
  font-style:normal;
  font-size:11px;
  padding:4px 8px;
  border-radius:999px;
  background:#f1f5f9;
  color:#64748b;
  white-space:nowrap;
}
.sg-picker-status.online{ background:#dcfce7; color:#15803d; }
.sg-picker-help{
  display:block;
  margin-top:10px;
  color:rgba(255,255,255,.76);
  line-height:1.8;
}
.sg-picker-empty{
  padding:16px;
  text-align:center;
  color:#64748b;
}
.sg-chat-head h1{ letter-spacing:-.5px; }
.sg-chat-current-user{
  display:flex;
  align-items:center;
  gap:10px;
  box-shadow:0 14px 34px rgba(22,101,52,.10);
}
.sg-copy-chat-id{
  border:0;
  border-radius:12px;
  padding:7px 10px;
  background:#dcfce7;
  color:#14532d;
  font-weight:900;
  cursor:pointer;
}
.sg-chat-user{
  position:relative;
  background:rgba(255,255,255,.04);
}
.sg-chat-user.active:before{
  content:'';
  position:absolute;
  right:0;
  top:14px;
  bottom:14px;
  width:4px;
  border-radius:999px;
  background:#bbf7d0;
}
@media (max-width: 760px){
  .sg-user-picker-dropdown{ position:relative; top:auto; right:auto; left:auto; margin-top:10px; }
  .sg-user-picker-list{ max-height:260px; }
}

/* ===== SabzGol professional dashboard drawer v2 ===== */
:root{
  --sg-drawer-width: 288px;
  --sg-drawer-mini: 84px;
  --sg-drawer-bg: linear-gradient(180deg, rgba(13, 61, 43, .98), rgba(10, 35, 27, .98));
  --sg-drawer-line: rgba(255,255,255,.12);
  --sg-drawer-glow: 0 24px 70px rgba(15, 23, 42, .18);
}

body.logged-in .dashboard-wrapper{
  display:flex;
  align-items:stretch;
  gap:0;
  min-height:calc(100vh - 120px);
  background:
    radial-gradient(circle at top right, rgba(34,197,94,.10), transparent 34%),
    linear-gradient(180deg, rgba(248,250,252,1), rgba(240,253,244,.55));
}

body.logged-in .dashboard-sidebar{
  width:var(--sg-drawer-width) !important;
  flex:0 0 var(--sg-drawer-width);
  position:sticky;
  top:14px;
  align-self:flex-start;
  height:calc(100vh - 28px);
  margin:14px 14px 14px 0;
  padding:16px 14px !important;
  overflow:hidden;
  background:var(--sg-drawer-bg) !important;
  border:1px solid var(--sg-drawer-line);
  border-radius:28px;
  box-shadow:var(--sg-drawer-glow);
  transition:width .22s ease, flex-basis .22s ease, transform .22s ease, border-radius .22s ease;
  z-index:80;
}

body.logged-in .dashboard-content{
  flex:1;
  min-width:0;
  margin:14px 0 14px 14px;
  padding:28px !important;
  background:rgba(255,255,255,.78) !important;
  border:1px solid rgba(15,23,42,.07);
  border-radius:28px;
  box-shadow:0 18px 55px rgba(15,23,42,.08);
}

.dashboard-menu-toggle{
  display:flex !important;
  width:100%;
  min-height:52px;
  align-items:center;
  justify-content:flex-start;
  gap:12px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:18px;
  padding:12px 14px;
  background:linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.08));
  color:#fff;
  font-family:inherit;
  font-size:15px;
  font-weight:900;
  cursor:pointer;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.16), 0 12px 26px rgba(0,0,0,.16);
  transition:background .2s ease, transform .2s ease, justify-content .2s ease;
}
.dashboard-menu-toggle:hover{background:rgba(255,255,255,.18);transform:translateY(-1px)}
.dashboard-menu-toggle:focus{outline:3px solid rgba(187,247,208,.42);outline-offset:2px}
.dashboard-menu-toggle-icon{width:26px;height:20px;display:inline-flex;flex-direction:column;justify-content:space-between;flex:0 0 auto}
.dashboard-menu-toggle-icon span{display:block;height:3px;border-radius:999px;background:currentColor;transition:transform .22s ease,opacity .22s ease}
.dashboard-sidebar.is-open .dashboard-menu-toggle-icon span:nth-child(1){transform:translateY(8.5px) rotate(45deg)}
.dashboard-sidebar.is-open .dashboard-menu-toggle-icon span:nth-child(2){opacity:0}
.dashboard-sidebar.is-open .dashboard-menu-toggle-icon span:nth-child(3){transform:translateY(-8.5px) rotate(-45deg)}

.dashboard-menu-panel{
  margin-top:18px;
  height:calc(100% - 70px);
  overflow:auto;
  padding-left:4px;
  scrollbar-width:thin;
}
.dashboard-menu-title{
  color:rgba(255,255,255,.72) !important;
  font-size:12px;
  letter-spacing:0;
  margin:2px 8px 14px !important;
  font-weight:800;
}
.dashboard-sidebar .sidebar-menu{
  display:flex !important;
  flex-direction:column;
  gap:8px;
  margin:0 !important;
  padding:0 !important;
  list-style:none !important;
}
.dashboard-sidebar .sidebar-menu li{margin:0 !important}
.dashboard-sidebar .sidebar-menu a{
  position:relative;
  display:flex !important;
  align-items:center;
  gap:11px;
  width:100%;
  min-height:46px;
  padding:12px 13px !important;
  border-radius:16px !important;
  color:rgba(255,255,255,.86) !important;
  text-decoration:none !important;
  border:1px solid transparent;
  background:transparent !important;
  transition:background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
  white-space:nowrap;
}
.dashboard-sidebar .sidebar-menu a:hover{
  color:#fff !important;
  background:rgba(255,255,255,.11) !important;
  border-color:rgba(255,255,255,.12);
  transform:translateX(-2px);
}
.dashboard-sidebar .sidebar-menu a.active{
  color:#052e16 !important;
  background:linear-gradient(135deg, #dcfce7, #86efac) !important;
  border-color:rgba(255,255,255,.28);
  box-shadow:0 14px 28px rgba(34,197,94,.18);
}
.dashboard-sidebar .menu-icon{
  width:24px;
  height:24px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 24px;
  font-size:18px;
}
.dashboard-sidebar .menu-badge{
  margin-right:auto;
  min-width:22px;
  height:22px;
  padding:0 7px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:#ef4444;
  color:#fff;
  font-size:12px;
  font-weight:900;
}

/* desktop collapsed mode */
@media (min-width:981px){
  body.dashboard-sidebar-collapsed .dashboard-sidebar{
    width:var(--sg-drawer-mini) !important;
    flex-basis:var(--sg-drawer-mini);
    padding-right:12px !important;
    padding-left:12px !important;
  }
  body.dashboard-sidebar-collapsed .dashboard-menu-toggle{
    justify-content:center;
    padding-right:0;
    padding-left:0;
  }
  body.dashboard-sidebar-collapsed .dashboard-menu-toggle-text,
  body.dashboard-sidebar-collapsed .dashboard-menu-title{
    display:none;
  }
  body.dashboard-sidebar-collapsed .dashboard-menu-panel{
    height:calc(100% - 66px);
    overflow:visible;
  }
  body.dashboard-sidebar-collapsed .dashboard-sidebar .sidebar-menu a{
    justify-content:center;
    padding:12px 0 !important;
    gap:0;
  }
  body.dashboard-sidebar-collapsed .dashboard-sidebar .sidebar-menu a .menu-icon{
    margin:0;
  }
  body.dashboard-sidebar-collapsed .dashboard-sidebar .sidebar-menu a{
    font-size:0;
  }
  body.dashboard-sidebar-collapsed .dashboard-sidebar .sidebar-menu a .menu-icon,
  body.dashboard-sidebar-collapsed .dashboard-sidebar .sidebar-menu a .menu-badge{
    font-size:18px;
  }
  body.dashboard-sidebar-collapsed .dashboard-sidebar .menu-badge{
    position:absolute;
    top:4px;
    left:4px;
    margin:0;
    min-width:18px;
    height:18px;
    padding:0 5px;
    font-size:10px;
  }
}

/* mobile off-canvas drawer */
.dashboard-drawer-launcher{display:none}
.dashboard-drawer-backdrop{
  position:fixed;
  inset:0;
  border:0;
  padding:0;
  background:rgba(2,6,23,.48);
  backdrop-filter:blur(3px);
  -webkit-backdrop-filter:blur(3px);
  opacity:0;
  transition:opacity .18s ease;
  z-index:70;
}
.dashboard-drawer-backdrop.is-visible{opacity:1}
body.dashboard-drawer-open{overflow:hidden}

@media (max-width:980px){
  body.logged-in .dashboard-wrapper{
    display:block;
    min-height:auto;
  }
  body.logged-in .dashboard-sidebar{
    position:fixed;
    top:0;
    right:0;
    bottom:0;
    width:min(86vw, 330px) !important;
    height:100vh;
    margin:0;
    border-radius:28px 0 0 28px;
    transform:translateX(105%);
    padding:16px 14px !important;
  }
  body.logged-in .dashboard-sidebar.is-open{
    transform:translateX(0);
  }
  body.logged-in .dashboard-content{
    margin:12px;
    padding:16px !important;
    border-radius:22px;
  }
  .dashboard-menu-panel{
    display:block !important;
    height:calc(100vh - 86px);
    margin-top:16px;
    padding-top:14px;
    border-top:1px solid rgba(255,255,255,.13);
  }
  .dashboard-menu-title{display:block !important}
.dashboard-drawer-launcher{
    position:fixed;
    right:14px;
    bottom:18px;
    width:54px;
    height:54px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:0;
    border-radius:19px;
    background:#166534;
    color:#fff;
    box-shadow:0 18px 36px rgba(22,101,52,.28);
    z-index:60;
    cursor:pointer;
    font-size:24px;
    font-weight:900;
  }
  .dashboard-drawer-launcher:focus{outline:3px solid rgba(34,197,94,.35);outline-offset:3px}
  body.dashboard-drawer-open .dashboard-drawer-launcher{display:none}
}

@media (max-width:560px){
  body.logged-in .dashboard-content{
    margin:8px;
    padding:12px !important;
  }
  body.logged-in .dashboard-sidebar{
    width:min(90vw, 318px) !important;
  }
}

/* ===== Mobile rollback: keep old dropdown dashboard menu on responsive ===== */
@media (max-width:980px){
  body.logged-in .dashboard-wrapper{
    display:flex !important;
    flex-direction:column !important;
    min-height:auto !important;
    background:transparent !important;
  }
  body.logged-in .dashboard-sidebar{
    position:sticky !important;
    top:0 !important;
    right:auto !important;
    bottom:auto !important;
    width:100% !important;
    max-width:100% !important;
    height:auto !important;
    min-height:0 !important;
    flex:0 0 auto !important;
    margin:0 !important;
    padding:12px 14px !important;
    border-radius:0 0 18px 18px !important;
    transform:none !important;
    z-index:50 !important;
    overflow:visible !important;
  }
  body.logged-in .dashboard-sidebar.is-open{
    transform:none !important;
  }
  body.logged-in .dashboard-content{
    margin:0 !important;
    padding:15px !important;
    border-radius:0 !important;
    background:transparent !important;
    box-shadow:none !important;
    border:0 !important;
  }
  .dashboard-menu-toggle{
    display:flex !important;
    justify-content:space-between !important;
  }
  .dashboard-menu-panel{
    display:none !important;
    height:auto !important;
    max-height:none !important;
    overflow:visible !important;
    margin-top:12px !important;
    padding-top:12px !important;
    border-top:1px solid rgba(255,255,255,.14) !important;
    animation:sbMenuDrop .18s ease-out;
  }
  .dashboard-sidebar.is-open .dashboard-menu-panel{
    display:block !important;
  }
  .dashboard-menu-title{
    display:none !important;
  }
  .dashboard-sidebar .sidebar-menu{
    display:block !important;
    flex-wrap:nowrap !important;
    gap:0 !important;
    padding:0 !important;
    margin:0 !important;
  }
  .dashboard-sidebar .sidebar-menu li{
    margin:8px 0 !important;
    width:100% !important;
  }
  .dashboard-sidebar .sidebar-menu a{
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:9px !important;
    width:100% !important;
    min-height:auto !important;
    padding:12px 13px !important;
    border-radius:12px !important;
    white-space:normal !important;
  }
  .dashboard-drawer-launcher,
  .dashboard-drawer-backdrop{
    display:none !important;
  }
  body.dashboard-drawer-open{
    overflow:auto !important;
  }
}
