/* ==========================================================================
   LINKGPT SUPPORT SYSTEM - PERMANENT STATIC DARK DESK ENGINE
   ========================================================================== */
/* 1. Pure screen container ko freeze karo (Sidebar completely ignore hoga) */
#helpSupportModal,
.sidebar #helpSupportModal,
.sidebar.close #helpSupportModal,
.sidebar.collapsed #helpSupportModal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    background: #000000 !important; 
    background-color: #000000 !important;
    --tw-bg-opacity: 1 !important;
    --bg-opacity: 1 !important;
    opacity: 1 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    display: none; 
    justify-content: center !important;
    align-items: center !important;
    z-index: 999999999 !important; 
    padding: 24px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    transform: none !important;
}

/* 2. JavaScript toggle .show class triggers flex centered layout perfectly */
#helpSupportModal.show,
.sidebar #helpSupportModal.show,
.sidebar.close #helpSupportModal.show,
.sidebar.collapsed #helpSupportModal.show {
    display: flex !important;
}

/* 3. Central card ko desktop size (840px) par lock karo taaki grid pichke nahi */
.help-modal-box,
.sidebar .help-modal-box,
.sidebar.close .help-modal-box,
.sidebar.collapsed .help-modal-box {
    width: 100% !important;
    max-width: 840px !important; /* Exact pristine desktop size from 1st image */
    min-width: 360px !important;
    background: #090d16 !important;
    background-color: #090d16 !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 14px !important;
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.95) !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    max-height: 90vh !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    transform: none !important;
}

@keyframes supportHubReveal {
    from { transform: scale(0.98); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* 3. MODAL HEADER TERMINAL */
.help-modal-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 18px 24px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    background: #090d16 !important;
}

.header-title-wrap h2 {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #64748b !important;
    letter-spacing: 0.5px !important;
    margin: 0 !important;
}

.help-close-trigger {
    background: transparent !important;
    border: none !important;
    font-size: 24px !important;
    color: rgba(255, 255, 255, 0.35) !important;
    cursor: pointer !important;
    padding: 4px !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: color 0.2s ease, transform 0.2s ease !important;
}

.help-close-trigger:hover {
    color: #ffffff !important;
    transform: scale(1.08) !important;
}

/* 4. HUB SCROLLABLE BODY PANELS */
.help-modal-body {
    padding: 24px 32px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
    background: #090d16 !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
}

.help-modal-body::-webkit-scrollbar { width: 6px !important; }
.help-modal-body::-webkit-scrollbar-track { background: transparent !important; }
.help-modal-body::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1) !important; border-radius: 10px !important; }

/* 5. HERO ELEMENT BRANDING */
.help-hero-centerpiece {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    margin-bottom: 4px !important;
}

.avatar-pulse-ring {
    width: 52px !important;
    height: 52px !important;
    background: rgba(99, 102, 241, 0.08) !important;
    border: 1px solid rgba(99, 102, 241, 0.22) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 12px !important;
}

.headset-icon-glow {
    color: #6366f1 !important;
    font-size: 20px !important;
}

.help-hero-centerpiece h1 {
    font-size: 26px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    letter-spacing: -0.5px !important;
    margin: 0 0 6px 0 !important;
}

.support-sub-headline {
    font-size: 13.5px !important;
    color: #64748b !important;
    margin: 0 !important;
}

/* 6. GLOBAL DIRECT EMAIL TILE */
.global-contact-card {
    background: #0f1422 !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 12px !important;
    padding: 16px 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
}

.contact-left-meta {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
}

.envelope-badge-frame {
    width: 42px !important;
    height: 42px !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #4f46e5 !important;
    font-size: 18px !important;
}

.contact-meta-txt h3 {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    margin: 0 0 3px 0 !important;
}

.contact-meta-txt p {
    font-size: 12px !important;
    color: #64748b !important;
    margin: 0 !important;
}

.direct-contact-action-btn {
    background: #4f46e5 !important;
    color: #ffffff !important;
    padding: 9px 18px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: background 0.2s ease !important;
}

.direct-contact-action-btn:hover {
    background: #4338ca !important;
}

/* 7. CONTEXT MID DIVIDER */
.section-context-divider {
    display: flex !important;
    align-items: center !important;
    text-align: center !important;
    margin: 4px 0 !important;
}

.section-context-divider::before,
.section-context-divider::after {
    content: '' !important;
    flex: 1 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.section-context-divider span {
    padding: 0 14px !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.8px !important;
    color: #475569 !important;
}

/* 8. INTERACTIVE GRID TRIPLE ROW MATRIX */
.help-topics-triple-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px !important;
}

.topic-interactive-tile {
    background: #0f1422 !important;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
    border-radius: 12px !important;
    padding: 20px !important;
    text-decoration: none !important;
    display: flex !important;
    flex-direction: column !important;
    transition: border-color 0.2s ease, transform 0.2s ease !important;
}

.topic-interactive-tile:hover {
    border-color: rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-2px) !important;
}

.tile-upper-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 16px !important;
}

.tile-icon-bg {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
}

.tile-icon-bg.purple-tint { background: rgba(139, 92, 246, 0.08) !important; color: #a78bfa !important; }
.tile-icon-bg.blue-tint { background: rgba(59, 130, 246, 0.08) !important; color: #60a5fa !important; }
.tile-icon-bg.red-tint { background: rgba(239, 68, 68, 0.08) !important; color: #f87171 !important; }

.tile-arrow-diagonal {
    color: rgba(255, 255, 255, 0.2) !important;
    font-size: 14px !important;
    display: inline-flex !important;
}

.topic-interactive-tile:hover .tile-arrow-diagonal {
    color: rgba(255, 255, 255, 0.6) !important;
}

.topic-interactive-tile h3 {
    font-size: 14.5px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    margin: 0 0 6px 0 !important;
}

.topic-interactive-tile p {
    font-size: 12px !important;
    color: #64748b !important;
    line-height: 1.5 !important;
    margin: 0 0 16px 0 !important;
    flex-grow: 1 !important;
}

.footer-action-txt-trigger {
    font-size: 12px !important;
    font-weight: 500 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.color-purple-txt { color: #a78bfa !important; }
.color-blue-txt { color: #60a5fa !important; }
.color-red-txt { color: #f87171 !important; }

/* 9. BUSINESS CORPORATE FOOTER PANEL */
.business-corporate-footer-card {
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding-top: 20px !important;
    margin-top: 4px !important;
}

.footer-inline-info-block {
    display: flex !important;
    gap: 14px !important;
    width: 100% !important;
}

.footer-sub-capsule-item {
    background: #0f1422 !important;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
    border-radius: 10px !important;
    padding: 12px 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex: 1 !important;
    text-decoration: none !important;
    transition: border-color 0.2s ease !important;
}

.footer-sub-capsule-item:hover {
    border-color: rgba(255, 255, 255, 0.09) !important;
}

.capsule-meta-left {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
}

.small-icon-frame {
    width: 32px !important;
    height: 32px !important;
    border-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
}

.blue-accent-box { background: rgba(59, 130, 246, 0.08) !important; color: #60a5fa !important; }
.purple-accent-box { background: rgba(139, 92, 246, 0.08) !important; color: #a78bfa !important; }

.small-details-frame {
    display: flex !important;
    flex-direction: column !important;
}

.capsule-header-title {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
}

.capsule-sub-description {
    font-size: 10.5px !important;
    color: #475569 !important;
}

.capsule-action-routing-arrow {
    color: rgba(255, 255, 255, 0.2) !important;
    font-size: 14px !important;
    display: inline-flex !important;
}

.footer-sub-capsule-item:hover .capsule-action-routing-arrow {
    color: rgba(255, 255, 255, 0.6) !important;
}


/* ==========================================================================
   💥 LINKGPT SUPPORT SYSTEM - COLLAPSED SIDEBAR BREAKOUT OVERRIDE (PERFECT)
   ========================================================================== */

/* 1. Jab sidebar collapse ho, tab container ko pure viewport screen par azad karo */
.sidebar.collapsed #helpSupportModal,
.sidebar.collapsed .help-modal-container-block {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    background: #000000 !important; /* Pure Slate Matte Dark background */
    z-index: 999999999 !important; /* Top layer supremacy */
    padding: 24px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    display: none; /* Default hidden state maintained */
}

/* 2. Active state show hone par use wapas flex center layout do */
.sidebar.collapsed #helpSupportModal.show,
.sidebar.collapsed .help-modal-container-block.show {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

/* 3. Central modal card ko 1st image ke jaisa full standard desk size do */
.sidebar.collapsed .help-modal-box {
    width: 100% !important;
    max-width: 840px !important; /* Pure desktop layout exact precision */
    min-width: 340px !important;
    height: auto !important;
    max-height: 90vh !important;
    display: flex !important;
    flex-direction: column !important;
    background: #090d16 !important; /* Internal obsidian framework dark match */
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 14px !important;
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.95) !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    transform: none !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
}

/* 4. Restore Triple-Column Grid Matrix - Pichakne se absolute block lagao */
.sidebar.collapsed .help-topics-triple-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important; /* Wapas proper 3 vertical columns layout */
    gap: 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* 5. Grid elements ke tiles ko maintain rakho */
.sidebar.collapsed .topic-interactive-tile {
    display: flex !important;
    flex-direction: column !important;
    padding: 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* 6. Footer capsules ko flex row layout me align rakho */
.sidebar.collapsed .footer-inline-info-block {
    display: flex !important;
    flex-direction: row !important;
    gap: 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.sidebar.collapsed .footer-sub-capsule-item {
    display: flex !important;
    flex: 1 !important;
}

/* 10. MOBILE RESPONSIVE ENGINE */
@media (max-width: 800px) {
    .help-topics-triple-grid { grid-template-columns: 1fr !important; gap: 12px !important; }
    .footer-inline-info-block { flex-direction: column !important; gap: 10px !important; }
    .help-modal-body { padding: 20px !important; gap: 20px !important; }
    .global-contact-card { flex-direction: column !important; align-items: flex-start !important; padding: 16px !important; }
    .direct-contact-action-btn { width: 100% !important; justify-content: center !important; }
}