/* ═══════════════════════════════════════════════════════════
   asire-dashboard.css — Member Dashboard (v2)
   ═══════════════════════════════════════════════════════════ */

/* ── Dashboard: lock site header in static position ─────────────────────────
   Vendor JS adds .active to .header-sticky → position:fixed.
   On the dashboard this breaks the flex layout.                             */
.dashboard-body header.main-header .header-sticky,
.dashboard-body header.main-header .header-sticky.active {
    position: relative !important;
    transform: none !important;
    box-shadow: 0 2px 12px rgba(3,29,54,0.1) !important;
}

/* Hide marketing utility bar on dashboard */
.dashboard-body .home-utility-bar { display: none; }

/* ── Root layout ─────────────────────────────────────────────────────────────*/
.dashboard-body main { display: block; }

.dashboard-layout {
    display: flex;
    align-items: stretch;
    min-height: 100vh;
    background: #f0f4f9;
}

/* ══════════════════════════════════════════════════════════════
   SIDEBAR
══════════════════════════════════════════════════════════════ */
.dsb-sidebar {
    width: 272px;
    flex-shrink: 0;
    background: linear-gradient(160deg, #0b0f2a 0%, #111640 45%, #0c1535 100%);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.08) transparent;
    border-right: 1px solid rgba(255,255,255,.04);
}
.dsb-sidebar::-webkit-scrollbar { width: 4px; }
.dsb-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 4px; }

/* Member identity */
.dsb-identity {
    padding: 24px 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,.05);
}

.dsb-avatar-wrap {
    position: relative;
    width: 60px;
    height: 60px;
    margin-bottom: 14px;
}
.dsb-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6246ea 0%, #9b72f5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0;
    position: relative;
    z-index: 1;
}
.dsb-avatar-ring {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: conic-gradient(#6246ea, #9b72f5, #6246ea);
    animation: dsb-ring-spin 6s linear infinite;
    z-index: 0;
}
@keyframes dsb-ring-spin {
    to { transform: rotate(360deg); }
}
.dsb-avatar-ring::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: linear-gradient(160deg, #0b0f2a, #111640);
}

.dsb-member-name {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 3px;
    line-height: 1.3;
    word-break: break-word;
}
.dsb-member-email {
    font-size: 12px;
    color: rgba(255,255,255,.38);
    margin: 0 0 10px;
    word-break: break-all;
}

.dsb-member-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.dsb-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    letter-spacing: .03em;
    text-transform: uppercase;
}
.dsb-badge-pill--verified {
    background: rgba(34,197,94,.15);
    color: #4ade80;
    border: 1px solid rgba(34,197,94,.2);
}
.dsb-badge-pill--member {
    background: rgba(98,70,234,.2);
    color: #a78bfa;
    border: 1px solid rgba(98,70,234,.3);
}

/* Navigation */
.dsb-nav { flex: 1; padding: 12px 12px 8px; }

.dsb-nav-section-label {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.2);
    padding: 14px 12px 6px;
}

.dsb-nav-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,.5);
    cursor: pointer;
    transition: background .16s, color .16s, padding-left .16s;
    text-decoration: none;
    margin-bottom: 2px;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    position: relative;
}
.dsb-nav-item i {
    width: 18px;
    text-align: center;
    font-size: 14px;
    flex-shrink: 0;
    transition: color .16s;
}
.dsb-nav-item:hover {
    background: rgba(255,255,255,.06);
    color: rgba(255,255,255,.8);
    padding-left: 18px;
}
.dsb-nav-item.active {
    background: linear-gradient(90deg, rgba(98,70,234,.3), rgba(98,70,234,.12));
    color: #fff;
    font-weight: 600;
    border-left: 3px solid #7c5ce9;
    padding-left: 11px;
}
.dsb-nav-item.active i { color: #a78bfa; }

.dsb-nav-badge {
    margin-left: auto;
    background: #6246ea;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
    line-height: 1.5;
    min-width: 20px;
    text-align: center;
}
.dsb-nav-badge--red { background: #e53e3e; }

/* Mobile close button (hidden on desktop) */
.dsb-sidebar-close {
    display: none;
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(255,255,255,.1);
    border: none;
    color: rgba(255,255,255,.7);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: background .15s, color .15s;
    z-index: 1;
}
.dsb-sidebar-close:hover {
    background: rgba(255,255,255,.18);
    color: #fff;
}
@media (max-width: 767px) {
    .dsb-sidebar-close { display: flex; }
}

/* Sidebar footer */
.dsb-sidebar-footer {
    padding: 14px 12px 22px;
    border-top: 1px solid rgba(255,255,255,.05);
}
.dsb-signout {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    color: rgba(255,100,100,.55);
    text-decoration: none;
    transition: background .18s, color .18s;
}
.dsb-signout:hover {
    background: rgba(255,80,80,.1);
    color: #ff6b6b;
}

/* Nav link variant (external page links in sidebar) */
.dsb-nav-item--link {
    display: flex;
}
.dsb-nav-ext-icon {
    margin-left: auto;
    font-size: 10px !important;
    width: auto !important;
    opacity: .45;
    flex-shrink: 0;
}
.dsb-nav-item--link:hover .dsb-nav-ext-icon {
    opacity: .8;
}

/* Sub-item nav variant — indented plan pages beneath their tool link */
.dsb-nav-item--sub {
    padding-left: 38px;
    font-size: 13px;
    color: rgba(255,255,255,.38);
    margin-bottom: 4px;
}
.dsb-nav-item--sub i:first-child {
    font-size: 11px !important;
    opacity: .6;
}
.dsb-nav-item--sub:hover {
    color: rgba(255,255,255,.7);
    padding-left: 42px;
    background: rgba(255,255,255,.04);
}
.dsb-nav-item--sub.active {
    color: #c4b5fd;
    background: rgba(98,70,234,.15);
    border-left-color: #a78bfa;
    padding-left: 35px;
}

/* ══════════════════════════════════════════════════════════════
   MAIN CONTENT AREA
══════════════════════════════════════════════════════════════ */
.dsb-main {
    flex: 1;
    min-width: 0;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* Topbar */
.dsb-topbar {
    background: #fff;
    border-bottom: 1px solid #e8edf5;
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 50;
}
.dsb-topbar-left { display: flex; flex-direction: column; gap: 2px; }
.dsb-topbar-title {
    font-size: 17px;
    font-weight: 700;
    color: #1a2535;
    margin: 0;
    line-height: 1;
}
.dsb-topbar-breadcrumb {
    font-size: 12px;
    color: #a0aab5;
    margin: 0;
}
.dsb-topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.dsb-topbar-date {
    font-size: 12px;
    color: #8a94a6;
    font-weight: 500;
    white-space: nowrap;
}
.dsb-mobile-toggle {
    display: none;
    background: none;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 12px;
    color: #1a2535;
    cursor: pointer;
    font-size: 16px;
}

/* Panels */
.dsb-panel {
    display: none;
    padding: 28px 32px;
    flex: 1;
    animation: dsb-fadein .2s ease;
}
.dsb-panel.active { display: block; }

@keyframes dsb-fadein {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════════════════════
   OVERVIEW — WELCOME HERO
══════════════════════════════════════════════════════════════ */
.dsb-welcome-hero {
    background: linear-gradient(120deg, #0d1130 0%, #1a1060 55%, #0b1535 100%);
    border-radius: 20px;
    padding: 32px 36px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.dsb-welcome-hero::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(98,70,234,.25) 0%, transparent 70%);
    top: -80px;
    right: -60px;
    pointer-events: none;
}
.dsb-welcome-hero::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(155,114,245,.15) 0%, transparent 70%);
    bottom: -60px;
    left: 30px;
    pointer-events: none;
}
.dsb-welcome-text { position: relative; z-index: 1; }
.dsb-welcome-greeting {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 6px;
    line-height: 1.2;
}
.dsb-welcome-sub {
    font-size: 14px;
    color: rgba(255,255,255,.55);
    margin: 0 0 20px;
}
.dsb-welcome-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.dsb-welcome-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;
    cursor: pointer;
    border: none;
    font-family: inherit;
}
.dsb-welcome-btn--primary {
    background: #6246ea;
    color: #fff;
}
.dsb-welcome-btn--primary:hover {
    background: #5038d0;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(98,70,234,.35);
}
.dsb-welcome-btn--ghost {
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.8);
    border: 1px solid rgba(255,255,255,.12);
}
.dsb-welcome-btn--ghost:hover {
    background: rgba(255,255,255,.14);
    color: #fff;
}
.dsb-welcome-visual {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}
.dsb-welcome-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6246ea, #9b72f5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    box-shadow: 0 8px 32px rgba(98,70,234,.4);
}

/* ══════════════════════════════════════════════════════════════
   PROFILE COMPLETION
══════════════════════════════════════════════════════════════ */
.dsb-completion {
    background: #fff;
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 1px 12px rgba(0,0,0,.05);
}
.dsb-completion-info { flex: 1; }
.dsb-completion-label {
    font-size: 13px;
    font-weight: 700;
    color: #1a2535;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.dsb-completion-pct {
    font-size: 13px;
    font-weight: 800;
    color: #6246ea;
}
.dsb-progress-track {
    height: 8px;
    background: #f0f4f8;
    border-radius: 99px;
    overflow: hidden;
}
.dsb-progress-bar {
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, #6246ea, #9b72f5);
    transition: width .6s cubic-bezier(.4,0,.2,1);
}
.dsb-completion-tip {
    font-size: 12px;
    color: #8a94a6;
    margin-top: 5px;
}
.dsb-completion-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(98,70,234,.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #6246ea;
    flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════
   STAT CARDS
══════════════════════════════════════════════════════════════ */
.dsb-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.dsb-stat {
    background: #fff;
    border-radius: 16px;
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 1px 12px rgba(0,0,0,.05);
    transition: transform .18s, box-shadow .18s;
    border: 1px solid #f0f4f8;
}
.dsb-stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,.09);
}
.dsb-stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.dsb-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.dsb-stat-icon--purple { background: linear-gradient(135deg, rgba(98,70,234,.15), rgba(155,114,245,.1)); color: #6246ea; }
.dsb-stat-icon--blue   { background: linear-gradient(135deg, rgba(59,130,246,.15), rgba(96,165,250,.1)); color: #3b82f6; }
.dsb-stat-icon--green  { background: linear-gradient(135deg, rgba(34,197,94,.15),  rgba(74,222,128,.1)); color: #16a34a; }
.dsb-stat-icon--amber  { background: linear-gradient(135deg, rgba(245,158,11,.15), rgba(251,191,36,.1)); color: #d97706; }
.dsb-stat-trend {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
}
.dsb-stat-trend--up   { background: rgba(34,197,94,.1); color: #16a34a; }
.dsb-stat-trend--info { background: rgba(59,130,246,.1); color: #3b82f6; }
.dsb-stat-value {
    font-size: 24px;
    font-weight: 800;
    color: #1a2535;
    line-height: 1;
    margin-bottom: 3px;
}
.dsb-stat-value--sm { font-size: 16px; line-height: 1.25; }
.dsb-stat-label {
    font-size: 12px;
    color: #8a94a6;
    font-weight: 500;
    letter-spacing: .02em;
}

/* ══════════════════════════════════════════════════════════════
   QUICK ACTIONS GRID
══════════════════════════════════════════════════════════════ */
.dsb-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.dsb-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a2535;
    margin: 0;
}
.dsb-section-link {
    font-size: 13px;
    font-weight: 600;
    color: #6246ea;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap .15s;
}
.dsb-section-link:hover { gap: 8px; color: #5038d0; }

.dsb-quick-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 28px;
}
.dsb-quick-card {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    text-decoration: none;
    border: 1px solid #edf2f8;
    transition: border-color .2s, box-shadow .2s, transform .18s;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}
.dsb-quick-card:hover {
    border-color: #c4b5fd;
    box-shadow: 0 4px 20px rgba(98,70,234,.1);
    transform: translateY(-2px);
}
.dsb-quick-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(98,70,234,.1), rgba(155,114,245,.06));
    color: #6246ea;
    transition: background .2s;
}
.dsb-quick-card:hover .dsb-quick-card-icon {
    background: linear-gradient(135deg, rgba(98,70,234,.18), rgba(155,114,245,.12));
}
.dsb-quick-card-label {
    font-size: 14px;
    font-weight: 600;
    color: #1a2535;
    margin-bottom: 3px;
}
.dsb-quick-card-desc {
    font-size: 12px;
    color: #8a94a6;
    line-height: 1.4;
}

/* ══════════════════════════════════════════════════════════════
   ENQUIRY TABLE
══════════════════════════════════════════════════════════════ */
.dsb-table-wrap {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 12px rgba(0,0,0,.05);
    border: 1px solid #f0f4f8;
}
.dsb-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.dsb-table thead th {
    background: #f8fafc;
    padding: 12px 18px;
    text-align: left;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #94a3b8;
    border-bottom: 1px solid #f0f4f8;
    white-space: nowrap;
}
.dsb-table tbody td {
    padding: 14px 18px;
    color: #374151;
    border-bottom: 1px solid #f8fafc;
    vertical-align: middle;
}
.dsb-table tbody tr:last-child td { border-bottom: none; }
.dsb-table tbody tr { transition: background .12s; }
.dsb-table tbody tr:hover td { background: #fafbff; }

.dsb-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .02em;
}
.dsb-badge--new      { background: rgba(34,197,94,.1);   color: #16a34a;  border: 1px solid rgba(34,197,94,.2); }
.dsb-badge--handled  { background: rgba(59,130,246,.1);  color: #2563eb;  border: 1px solid rgba(59,130,246,.2); }
.dsb-badge--default  { background: rgba(100,116,139,.08);color: #64748b;  border: 1px solid rgba(100,116,139,.15); }

.dsb-msg-preview {
    max-width: 260px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #8a94a6;
    font-size: 13px;
    display: block;
}

/* ══════════════════════════════════════════════════════════════
   EMPTY STATE
══════════════════════════════════════════════════════════════ */
.dsb-empty {
    text-align: center;
    padding: 64px 24px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 12px rgba(0,0,0,.05);
    border: 1px solid #f0f4f8;
}
.dsb-empty-icon { font-size: 52px; color: #e2e8f0; margin-bottom: 16px; }
.dsb-empty-title { font-size: 17px; font-weight: 700; color: #1a2535; margin-bottom: 6px; }
.dsb-empty-text  { font-size: 14px; color: #8a94a6; margin-bottom: 22px; }
.dsb-empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 26px;
    background: #6246ea;
    color: #fff;
    border-radius: 9px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background .2s, transform .15s;
}
.dsb-empty-btn:hover { background: #5038d0; color: #fff; transform: translateY(-1px); }

/* ══════════════════════════════════════════════════════════════
   NOTIFICATIONS
══════════════════════════════════════════════════════════════ */
.dsb-notif-list { display: flex; flex-direction: column; gap: 12px; }
.dsb-notif-item {
    background: #fff;
    border-radius: 14px;
    padding: 18px 20px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    border: 1px solid #f0f4f8;
    box-shadow: 0 1px 8px rgba(0,0,0,.04);
    transition: border-color .18s;
}
.dsb-notif-item--unread { border-left: 3px solid #6246ea; }
.dsb-notif-item:hover { border-color: #d8d0fa; }
.dsb-notif-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}
.dsb-notif-icon--purple { background: rgba(98,70,234,.1);  color: #6246ea; }
.dsb-notif-icon--green  { background: rgba(34,197,94,.1);  color: #16a34a; }
.dsb-notif-icon--blue   { background: rgba(59,130,246,.1); color: #3b82f6; }
.dsb-notif-icon--amber  { background: rgba(245,158,11,.1); color: #d97706; }
.dsb-notif-body { flex: 1; min-width: 0; }
.dsb-notif-title {
    font-size: 14px;
    font-weight: 700;
    color: #1a2535;
    margin-bottom: 4px;
}
.dsb-notif-text {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 6px;
}
.dsb-notif-time { font-size: 11px; color: #a0aab5; font-weight: 500; }
.dsb-notif-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6246ea;
    flex-shrink: 0;
    margin-top: 6px;
}

/* Notification action buttons */
.dsb-notif-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
    margin-left: auto;
    padding-left: 10px;
}
.dsb-notif-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid #e8edf5;
    background: #f8fafc;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    transition: background .15s, color .15s, border-color .15s;
    flex-shrink: 0;
}
.dsb-notif-btn--read:hover   { background: #eaf6ef; color: #16a34a; border-color: #86efac; }
.dsb-notif-btn--unread:hover { background: #ede9fe; color: #6246ea; border-color: #c4b5fd; }
.dsb-notif-btn--delete:hover { background: #fef2f2; color: #ef4444; border-color: #fca5a5; }
.dsb-notif-count-badge { font-size: 13px; color: #8a94a6; }

/* ══════════════════════════════════════════════════════════════
   ENQUIRY LIST ROWS
══════════════════════════════════════════════════════════════ */
.dsb-enq-list { display: flex; flex-direction: column; gap: 12px; }
.dsb-enq-row {
    background: #fff;
    border-radius: 14px;
    padding: 18px 20px;
    border: 1px solid #f0f4f8;
    box-shadow: 0 1px 8px rgba(0,0,0,.04);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: border-color .18s, box-shadow .18s;
}
.dsb-enq-row:hover {
    border-color: #c4b5fd;
    box-shadow: 0 4px 16px rgba(98,70,234,.08);
}
.dsb-enq-row-left { display: flex; align-items: flex-start; gap: 14px; flex: 1; min-width: 0; }
.dsb-enq-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(98,70,234,.08);
    color: #6246ea;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}
.dsb-enq-icon--replied { background: rgba(34,197,94,.1); color: #16a34a; }
.dsb-enq-meta { min-width: 0; flex: 1; }
.dsb-enq-subject {
    font-size: 14px;
    font-weight: 700;
    color: #1a2535;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dsb-enq-preview {
    font-size: 12px;
    color: #8a94a6;
    margin-bottom: 8px;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dsb-enq-footer-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.dsb-enq-reply-count, .dsb-enq-date {
    font-size: 11px;
    color: #a0aab5;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.dsb-enq-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f0ecff;
    color: #6246ea;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
    transition: background .15s, color .15s;
    flex-shrink: 0;
}
.dsb-enq-view-btn:hover { background: #6246ea; color: #fff; }

/* ══════════════════════════════════════════════════════════════
   ENQUIRY THREAD VIEW
══════════════════════════════════════════════════════════════ */
.dsb-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: none;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #6246ea;
    cursor: pointer;
    margin-bottom: 20px;
    font-family: inherit;
    transition: background .15s, border-color .15s;
}
.dsb-back-btn:hover { background: #f5f3ff; border-color: #c4b5fd; }

.dsb-thread-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    border: 1px solid #f0f4f8;
    box-shadow: 0 1px 12px rgba(0,0,0,.05);
    margin-bottom: 20px;
}
.dsb-thread-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f4f8;
    flex-wrap: wrap;
}
.dsb-thread-subject {
    font-size: 17px;
    font-weight: 700;
    color: #1a2535;
    margin: 0 0 4px;
}
.dsb-thread-meta { font-size: 12px; color: #a0aab5; }

.dsb-msg-bubble-wrap {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
}
.dsb-msg-bubble-wrap--admin { flex-direction: row-reverse; }

.dsb-msg-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}
.dsb-msg-avatar--member { background: rgba(98,70,234,.12); color: #6246ea; }
.dsb-msg-avatar--admin  { background: rgba(34,197,94,.12);  color: #16a34a; }

.dsb-msg-bubble-inner { max-width: 75%; }
.dsb-msg-bubble-wrap--admin .dsb-msg-bubble-inner { margin-left: auto; }

.dsb-msg-bubble {
    border-radius: 14px 14px 14px 4px;
    padding: 13px 16px;
    font-size: 14px;
    color: #374151;
    line-height: 1.55;
    background: #f0f4f9;
}
.dsb-msg-bubble--admin {
    border-radius: 14px 14px 4px 14px;
    background: #f0fdf4;
    color: #166534;
}
.dsb-msg-bubble--original {
    background: #f8fafc;
    border: 1px solid #e8edf5;
    border-radius: 14px;
}
.dsb-msg-time {
    font-size: 11px;
    color: #a0aab5;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.dsb-msg-bubble-wrap--admin .dsb-msg-time { justify-content: flex-end; }

/* Reply form */
.dsb-reply-form-wrap {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #f0f4f8;
    box-shadow: 0 1px 10px rgba(0,0,0,.04);
}
.dsb-reply-form-title {
    font-size: 14px;
    font-weight: 700;
    color: #1a2535;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.dsb-reply-textarea {
    width: 100%;
    min-height: 100px;
    border: 1.5px solid #e8edf5;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
    color: #1a2535;
    background: #f8fafc;
    font-family: inherit;
    resize: vertical;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    margin-bottom: 12px;
}
.dsb-reply-textarea:focus {
    border-color: #6246ea;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(98,70,234,.08);
}

/* ══════════════════════════════════════════════════════════════
   RESOURCES
══════════════════════════════════════════════════════════════ */
.dsb-resource-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}
.dsb-resource-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #f0f4f8;
    box-shadow: 0 1px 10px rgba(0,0,0,.04);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: border-color .2s, box-shadow .2s, transform .18s;
}
.dsb-resource-card:hover {
    border-color: #c4b5fd;
    box-shadow: 0 6px 22px rgba(98,70,234,.1);
    transform: translateY(-2px);
}
.dsb-resource-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.dsb-resource-card h3 {
    font-size: 15px;
    font-weight: 700;
    color: #1a2535;
    margin: 0 0 5px;
}
.dsb-resource-card p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.55;
    margin: 0;
}
.dsb-resource-card-arrow {
    margin-top: auto;
    font-size: 13px;
    font-weight: 600;
    color: #6246ea;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap .15s;
}
.dsb-resource-card:hover .dsb-resource-card-arrow { gap: 8px; }

/* ══════════════════════════════════════════════════════════════
   PROFILE & PASSWORD FORMS
══════════════════════════════════════════════════════════════ */
.dsb-form-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 1px 12px rgba(0,0,0,.05);
    border: 1px solid #f0f4f8;
    max-width: 580px;
}
.dsb-form-card + .dsb-form-card { margin-top: 20px; }
.dsb-form-title { font-size: 17px; font-weight: 700; color: #1a2535; margin-bottom: 4px; }
.dsb-form-subtitle { font-size: 13px; color: #8a94a6; margin-bottom: 26px; }
.dsb-form-group { margin-bottom: 20px; }
.dsb-form-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #6b7a8d;
    margin-bottom: 8px;
}
.dsb-input {
    width: 100%;
    background: #f8fafc;
    border: 1.5px solid #e8edf5;
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 14px;
    color: #1a2535;
    outline: none;
    font-family: inherit;
    transition: border-color .2s, background .2s, box-shadow .2s;
}
.dsb-input:focus {
    border-color: #6246ea;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(98,70,234,.08);
}
.dsb-input[readonly], .dsb-input[disabled] { opacity: .5; cursor: not-allowed; }
.dsb-input-wrap { position: relative; }
.dsb-input-wrap .dsb-input { padding-right: 44px; }
.dsb-pw-toggle {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #a0aab5;
    cursor: pointer;
    font-size: 15px;
    padding: 0;
    transition: color .2s;
}
.dsb-pw-toggle:hover { color: #6246ea; }
.dsb-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: #6246ea;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background .2s, transform .15s, box-shadow .2s;
}
.dsb-submit-btn:hover {
    background: #5038d0;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(98,70,234,.3);
}
.dsb-submit-btn:disabled { opacity: .65; cursor: not-allowed; transform: none; }

/* ══════════════════════════════════════════════════════════════
   MOBILE OVERLAY
══════════════════════════════════════════════════════════════ */
.dsb-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 9998;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
    .dsb-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 991px) {
    .dsb-quick-grid { grid-template-columns: repeat(2, 1fr); }
    .dsb-resource-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
    /* Sidebar: slide in from left, above everything including site header */
    .dsb-sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        width: 272px;
        height: 100%;
        height: 100dvh;
        transition: left .28s cubic-bezier(.4,0,.2,1);
        z-index: 9999;
        overflow-y: auto;
    }
    .dsb-sidebar.open { left: 0; }
    .dsb-overlay.open { display: block; }
    .dsb-mobile-toggle { display: flex; }
    .dsb-main { width: 100%; }

    /* Give sidebar a close × button area at top */
    .dsb-identity { padding-top: 28px; }

    .dsb-topbar { padding: 12px 16px; }
    .dsb-panel { padding: 18px 16px; }
    .dsb-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .dsb-quick-grid { grid-template-columns: 1fr; gap: 10px; }
    .dsb-welcome-hero { flex-direction: column; padding: 22px 20px; gap: 16px; }
    .dsb-welcome-avatar { width: 56px; height: 56px; font-size: 22px; }
    .dsb-welcome-visual { display: none; }
    .dsb-form-card { padding: 20px 16px; }
    .dsb-table thead { display: none; }
    .dsb-table, .dsb-table tbody, .dsb-table tr, .dsb-table td { display: block; width: 100%; }
    .dsb-table tr { border-bottom: 1px solid #f0f4f8; padding: 12px 14px; }
    .dsb-table td { border: none; padding: 3px 0; }
    .dsb-table td::before {
        content: attr(data-label) ': ';
        font-weight: 700;
        color: #94a3b8;
        font-size: 10px;
        text-transform: uppercase;
        letter-spacing: .05em;
    }
    .dsb-msg-preview { max-width: 100%; white-space: normal; }
    .dsb-topbar-date { display: none; }
    .dsb-completion { flex-direction: column; align-items: flex-start; gap: 12px; }
    .dsb-resource-grid { grid-template-columns: 1fr; }
    .dsb-enq-row { flex-direction: column; align-items: flex-start; }
    .dsb-enq-view-btn { align-self: flex-end; }
    .dsb-msg-bubble-inner { max-width: 90%; }
    .dsb-thread-card { padding: 18px 16px; }
    .dsb-reply-form-wrap { padding: 18px 16px; }
    .dsb-notif-actions { flex-direction: row; }
}

@media (max-width: 480px) {
    .dsb-stats { grid-template-columns: 1fr; }
    .dsb-resource-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════
   DELETE ACCOUNT — danger variants
══════════════════════════════════════════════════════════════ */

/* Sidebar danger nav item */
.dsb-nav-item--danger {
    color: rgba(255,100,100,.85);
    margin-top: 6px;
}
.dsb-nav-item--danger i { color: rgba(255,100,100,.85); }
.dsb-nav-item--danger:hover {
    background: rgba(239,68,68,.15);
    color: #fca5a5;
}
.dsb-nav-item--danger:hover i { color: #fca5a5; }
.dsb-nav-item--danger.active {
    background: linear-gradient(90deg, rgba(239,68,68,.35), rgba(239,68,68,.15));
    color: #fca5a5;
}
.dsb-nav-item--danger.active i { color: #fca5a5; }

/* Danger form card — red border accent */
.dsb-form-card--danger {
    border-color: rgba(239,68,68,.2);
    max-width: 640px;
}

/* Danger submit button */
.dsb-submit-btn--danger {
    background: #dc2626;
    box-shadow: 0 4px 12px rgba(220,38,38,.3);
}
.dsb-submit-btn--danger:hover {
    background: #b91c1c;
    box-shadow: 0 6px 16px rgba(220,38,38,.4);
}
.dsb-submit-btn--danger:disabled {
    background: #dc2626;
    opacity: .5;
    box-shadow: none;
}

/* ── Nav accordion groups ─────────────────────────────────────────────────── */
.dsb-nav-group { margin-bottom: 2px; }

.dsb-nav-group-toggle {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: none;
    background: none;
    cursor: pointer;
    color: rgba(255,255,255,.6);
    font-size: 13.5px;
    font-weight: 600;
    text-align: left;
    letter-spacing: .01em;
    transition: background .18s, color .18s;
    margin-bottom: 2px;
}
.dsb-nav-group-toggle > i:first-child {
    width: 18px;
    text-align: center;
    font-size: 14px;
    flex-shrink: 0;
    transition: color .16s;
}
.dsb-nav-group-toggle > span { flex: 1; }
.dsb-nav-group-toggle:hover {
    background: rgba(255,255,255,.06);
    color: rgba(255,255,255,.85);
}
.dsb-nav-group.open > .dsb-nav-group-toggle {
    color: rgba(255,255,255,.9);
}

.dsb-nav-group-count {
    font-size: 10px;
    font-weight: 700;
    background: rgba(255,255,255,.1);
    color: rgba(255,255,255,.45);
    border-radius: 20px;
    width: 25px;
    height: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .18s, color .18s;
    flex: none !important;
}
.dsb-nav-group-toggle:hover .dsb-nav-group-count,
.dsb-nav-group.open > .dsb-nav-group-toggle .dsb-nav-group-count {
    background: rgba(98,70,234,.35);
    color: #c4b5fd;
}

.dsb-nav-group-chevron {
    font-size: 10px !important;
    width: auto !important;
    flex-shrink: 0;
    opacity: .4;
    transition: transform .26s ease, opacity .18s;
}
.dsb-nav-group.open > .dsb-nav-group-toggle .dsb-nav-group-chevron {
    transform: rotate(180deg);
    opacity: .75;
}

/* Group body — collapsible slide */
.dsb-nav-group-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
    padding-left: 10px;
    border-left: 1px solid rgba(255,255,255,.07);
    margin-left: 9px;
    margin-bottom: 2px;
}
.dsb-nav-group.open > .dsb-nav-group-body { max-height: 700px; }

/* Items inside group — compact sizing */
.dsb-nav-group-body .dsb-nav-item {
    font-size: 13px;
    padding: 8px 12px;
    margin-bottom: 1px;
    border-radius: 8px;
}
.dsb-nav-group-body .dsb-nav-item i { font-size: 12px; }
.dsb-nav-group-body .dsb-nav-item:hover { padding-left: 16px; }
.dsb-nav-group-body .dsb-nav-item.active { padding-left: 9px; }
