/* ==========================================================================
   DESIGN SYSTEM & CUSTOM STYLESHEET: UMMAH OS
   ========================================================================== */

/* 1. Theme Configuration & Tokens */
:root {
    --bg-base: #0b0f17;          /* Deep Obsidian Slate */
    --bg-surface: #131b26;       /* Dark Charcoal Slate */
    --bg-surface-elevated: #1e293b; /* Medium Slate */
    --border-color: #263346;     /* Subtle Navy Slate Border */
    --border-light: #334155;
    
    /* Branding Accent Colors */
    --color-accent: #10b981;     /* Emerald Green (Growth & Community) */
    --color-accent-hover: #059669;
    --color-accent-glow: rgba(16, 185, 129, 0.15);
    
    --color-mint: #34d399;       /* Mint Highlight */
    --color-blue: #3b82f6;       /* Info/Collaboration Blue */
    --color-purple: #8b5cf6;     /* Guild/Accreditation Purple */
    --color-danger: #ef4444;     /* Warning Red */
    
    /* Text Palette */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Typography & Spacing */
    --font-headers: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 20px var(--color-accent-glow);
}

/* 2. Global Resets & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.5;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headers);
    font-weight: 600;
    color: var(--text-primary);
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Utilities */
.relative { position: relative; }
.flex { display: flex; }
.flex-column { flex-direction: column; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.justify-end { justify-content: flex-end; }
.align-center { align-items: center; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
.w-full { width: 100%; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pb-4 { padding-bottom: 1rem; }
.p-0 { padding: 0 !important; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.rounded { border-radius: var(--radius-md); }
.border { border: 1px solid var(--border-color); }
.border-bottom { border-bottom: 1px solid var(--border-color); }
.border-top { border-top: 1px solid var(--border-color); }
.hidden { display: none !important; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.uppercase { text-transform: uppercase; }

.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--color-accent); }

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    background-color: var(--bg-surface-elevated);
    color: var(--text-secondary);
}
.badge-accent {
    background-color: var(--color-accent-glow);
    color: var(--color-mint);
    border: 1px solid rgba(16, 185, 129, 0.2);
}
.badge-secondary {
    background-color: rgba(148, 163, 184, 0.1);
    color: var(--text-primary);
}
.badge-role {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--color-blue);
    border: 1px solid rgba(59, 130, 246, 0.2);
}
.badge-guild {
    background-color: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}
.btn-primary {
    background-color: var(--bg-surface-elevated);
    color: var(--text-primary);
    border-color: var(--border-color);
}
.btn-primary:hover {
    background-color: var(--border-color);
    border-color: var(--text-muted);
}
.btn-accent {
    background-color: var(--color-accent);
    color: #000;
    font-weight: 600;
}
.btn-accent:hover {
    background-color: var(--color-mint);
    box-shadow: var(--shadow-glow);
}
.btn-outline {
    background-color: transparent;
    border-color: var(--border-color);
    color: var(--text-secondary);
}
.btn-outline:hover, .btn-outline.active {
    border-color: var(--color-accent);
    color: var(--text-primary);
    background-color: rgba(16, 185, 129, 0.05);
}
.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
}
.btn-icon {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border-radius: 50%;
}
.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.icon-btn:hover {
    background-color: var(--bg-surface-elevated);
    color: var(--text-primary);
}
.text-btn {
    background: none;
    border: none;
    color: var(--color-accent);
    cursor: pointer;
}
.text-btn:hover {
    color: var(--color-mint);
    text-decoration: underline;
}

/* ==========================================================================
   3. Main Application Layout
   ========================================================================== */
.app-container {
    display: grid;
    grid-template-columns: 260px 1fr;
    height: 100vh;
    width: 100vw;
}

/* Sidebar Styling */
.app-sidebar {
    background-color: var(--bg-surface);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;
    height: 100%;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}
.logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-md);
    background: var(--color-accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(16, 185, 129, 0.2);
}
.logo-icon i {
    width: 1.25rem;
    height: 1.25rem;
}
.logo-text h1 {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
}
.logo-text h1 span {
    color: var(--color-accent);
}
.logo-text p {
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 2px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    text-align: left;
    transition: all 0.2s;
}
.nav-item i {
    width: 1.1rem;
    height: 1.1rem;
}
.nav-item:hover {
    background-color: var(--bg-surface-elevated);
    color: var(--text-primary);
}
.nav-item.active {
    background-color: var(--color-accent-glow);
    color: var(--color-mint);
    font-weight: 600;
    border-left: 3px solid var(--color-accent);
    padding-left: calc(1rem - 3px);
}
.nav-item .badge {
    margin-left: auto;
}

.sidebar-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}
.user-pill {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background 0.2s;
}
.user-pill:hover {
    background-color: var(--bg-surface-elevated);
}
.avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background-color: var(--color-accent);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}
.user-info h4 {
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}
.user-info p {
    font-size: 0.65rem;
    color: var(--text-muted);
}
.settings-btn {
    margin-left: auto;
    color: var(--text-muted);
    width: 1.1rem;
    height: 1.1rem;
}
.settings-btn:hover {
    color: var(--text-primary);
}

/* Main Content Workspace */
.app-main {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.app-header {
    background-color: var(--bg-base);
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}
.header-left h2 {
    font-size: 1.5rem;
    font-weight: 700;
}
.header-left p {
    font-size: 0.8rem;
    margin-top: 2px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.search-bar {
    position: relative;
    width: 280px;
}
.search-bar i {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    color: var(--text-muted);
}
.search-bar input {
    width: 100%;
    padding: 0.5rem 0.75rem 0.5rem 2.25rem;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.85rem;
    transition: all 0.2s;
}
.search-bar input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: var(--shadow-glow);
}

.notification-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    background-color: var(--color-danger);
    border-radius: 50%;
    border: 2px solid var(--bg-base);
}

/* Content Frame */
.content-container {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

.tab-view {
    display: none;
    animation: fadeIn 0.3s ease;
}
.tab-view.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   4. Cards & Grid System
   ========================================================================== */
.grid {
    display: grid;
    gap: 1.5rem;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2-1 { grid-template-columns: 2fr 1fr; }
.grid-1-3 { grid-template-columns: 240px 1fr; }
.grid-3-1 { grid-template-columns: 1fr 300px; }

@media (max-width: 1024px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-2-1, .grid-3-1 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.card.glow:hover {
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: var(--shadow-glow);
}
.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}
.card-body {
    padding: 1.5rem;
}

/* Stat Cards */
.stat-card .stat-icon-wrapper {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}
.stat-card .stat-icon-wrapper i {
    width: 1.5rem;
    height: 1.5rem;
}
.bg-emerald-light { background-color: rgba(16, 185, 129, 0.1); }
.bg-blue-light { background-color: rgba(59, 130, 246, 0.1); }
.bg-purple-light { background-color: rgba(139, 92, 246, 0.1); }

.trend {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    font-size: 0.75rem;
    font-weight: 500;
}
.trend-up {
    color: var(--color-mint);
}
.trend-up i {
    width: 0.85rem;
    height: 0.85rem;
}

/* ==========================================================================
   5. Module: Dashboard (Community Pulse)
   ========================================================================== */
.chart-container {
    height: 240px;
    width: 100%;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.challenge-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.challenge-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    background-color: var(--bg-surface-elevated);
    border: 1px solid transparent;
    transition: all 0.2s;
}
.challenge-item:hover {
    border-color: var(--border-light);
}
.challenge-icon {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--color-danger);
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.challenge-icon i {
    width: 1rem;
    height: 1rem;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: relative;
    padding-left: 1.5rem;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background-color: var(--border-color);
}
.timeline-item {
    position: relative;
}
.timeline-dot {
    position: absolute;
    left: calc(-1.5rem - 4px);
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--color-accent);
    border: 2px solid var(--bg-surface);
}
.timeline-dot.blue { background-color: var(--color-blue); }
.timeline-dot.purple { background-color: var(--color-purple); }

/* Regional Map */
.map-body {
    height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.map-mock-bg {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background-color: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    overflow: hidden;
}
.map-visual-svg {
    width: 100%;
    height: 180px;
}
.map-stats h4 {
    font-size: 0.9rem;
    margin-top: 1px;
}

/* ==========================================================================
   6. Module: Leadership Network
   ========================================================================== */
.filter-strip {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.75rem 1.25rem;
}
.location-select {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.location-select i {
    width: 1rem;
    height: 1rem;
    color: var(--text-muted);
}
.location-select select {
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
}
.location-select select:focus {
    outline: none;
}

/* Network Leader Card */
.leader-card {
    cursor: pointer;
}
.leader-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.profile-avatar-medium {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: var(--border-color);
    color: var(--text-primary);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-headers);
}
.leader-meta h3 {
    font-size: 1rem;
}
.leader-meta p {
    font-size: 0.75rem;
}
.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

/* ==========================================================================
   7. Module: Incubation Pods (Idea Hopper)
   ========================================================================== */
.tabs-sub-nav {
    border-bottom: 1px solid var(--border-color);
}
.tab-sub-btn {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary);
    padding: 0.75rem 0.5rem;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.tab-sub-btn i {
    width: 1.05rem;
    height: 1.05rem;
}
.tab-sub-btn:hover {
    color: var(--text-primary);
}
.tab-sub-btn.active {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
    font-weight: 600;
}

.sub-tab-pane {
    display: none;
    animation: fadeIn 0.2s ease;
}
.sub-tab-pane.active {
    display: block;
}

/* Idea Hopper Cards */
.idea-card {
    border-left: 4px solid var(--text-muted);
}
.idea-card.active-pod-border {
    border-left-color: var(--color-accent);
}
.jamaah-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}
.progress-bar-bg {
    background-color: var(--bg-base);
    height: 6px;
    border-radius: 3px;
    width: 100%;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.4s ease;
}
.progress-bar-fill.bg-accent { background-color: var(--color-accent); }
.progress-bar-fill.bg-blue { background-color: var(--color-blue); }

.avatar-group {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
}
.avatar-group .avatar-mini {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    border: 2px solid var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    background-color: var(--border-color);
    margin-left: -0.4rem;
}

/* Active Pod Workspace List */
.pod-list-item {
    display: grid;
    grid-template-columns: 1.5fr 1fr 120px 100px;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}
.pod-list-item:hover {
    border-color: var(--border-light);
    transform: translateX(3px);
}
.pod-list-name h4 {
    font-size: 1rem;
}

/* ==========================================================================
   8. Module: Knowledge Repository
   ========================================================================== */
.folder-list {
    list-style: none;
}
.folder-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    color: var(--text-secondary);
    border-left: 3px solid transparent;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}
.folder-item i {
    width: 1.1rem;
    height: 1.1rem;
    color: var(--text-muted);
}
.folder-item:hover {
    background-color: var(--bg-surface-elevated);
    color: var(--text-primary);
}
.folder-item.active {
    background-color: rgba(16, 185, 129, 0.05);
    color: var(--color-mint);
    border-left-color: var(--color-accent);
}
.folder-item.active i {
    color: var(--color-mint);
}

/* Document Cards */
.document-card {
    border: 1px solid var(--border-color);
    transition: all 0.2s;
}
.document-card:hover {
    border-color: var(--border-light);
}
.document-icon {
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--bg-surface-elevated);
    color: var(--color-accent);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.document-icon i {
    width: 1.2rem;
    height: 1.2rem;
}

/* ==========================================================================
   9. Module: Collaboration Communities
   ========================================================================== */
.chat-sidebar {
    height: calc(100vh - 12rem);
    display: flex;
    flex-direction: column;
}
.community-category .category-title {
    font-size: 0.65rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
}
.channel-list-menu, .qa-board-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
}
.channel-list-menu .menu-item, .qa-board-menu .menu-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1.25rem;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all 0.15s;
}
.channel-list-menu .menu-item::before {
    content: "#";
    font-weight: 700;
    color: var(--text-muted);
}
.channel-list-menu .menu-item.active, .qa-board-menu .menu-item.active {
    background-color: var(--bg-surface-elevated);
    color: var(--text-primary);
    font-weight: 600;
}

.chat-window {
    height: calc(100vh - 12rem);
}
.channel-hashtag {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-muted);
    line-height: 1;
}

.chat-messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.chat-message {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}
.chat-msg-body h5 {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.chat-msg-body h5 .time {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 400;
}
.chat-msg-body p {
    font-size: 0.85rem;
    color: var(--text-primary);
    margin-top: 0.15rem;
}

/* Chat Input styling */
.chat-input-bar {
    padding: 1rem 1.5rem;
    background-color: var(--bg-surface);
}
.chat-input-bar input {
    flex: 1;
    background-color: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.6rem 1rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.85rem;
}
.chat-input-bar input:focus {
    outline: none;
    border-color: var(--color-accent);
}

/* ==========================================================================
   10. Module: The Imams Guild
   ========================================================================== */
.guild-hero-card {
    background: linear-gradient(135deg, #131b26 0%, #1e1b4b 100%);
    border-color: rgba(139, 92, 246, 0.2);
}
.guild-hero-text h2 {
    font-size: 1.75rem;
}
.guild-seal-icon {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-purple);
}
.guild-seal-icon i {
    width: 2.25rem;
    height: 2.25rem;
}

.guild-advisory-list {
    list-style: none;
}
.guild-advisory-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.2s;
}
.guild-advisory-item:hover {
    background-color: var(--bg-surface-elevated);
}
.guild-advisory-item:last-child {
    border-bottom: none;
}

.checklist-items {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.checklist-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}
.checklist-item i {
    width: 1rem;
    height: 1rem;
    color: var(--text-muted);
}
.checklist-item.done {
    color: var(--text-primary);
}
.checklist-item.done i {
    color: var(--color-accent);
}

/* ==========================================================================
   11. Modal Components
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(7, 10, 15, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 1rem;
    animation: fadeInModal 0.2s ease;
}
.modal-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 540px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-body {
    padding: 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
}
.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    background-color: rgba(7, 10, 15, 0.2);
}
.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-close:hover {
    color: var(--text-primary);
}

@keyframes fadeInModal {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

/* Forms styling inside modals */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
}
.form-group label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
}
.form-group input, .form-group textarea, .form-group select {
    background-color: var(--bg-base);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.6rem 0.85rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.85rem;
    width: 100%;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: var(--shadow-glow);
}

.profile-avatar-large {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    background-color: var(--color-accent);
    color: #000;
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-headers);
}

.profile-project-list {
    list-style: none;
}
.profile-project-list li {
    padding: 0.5rem 0;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border-color);
}
.profile-project-list li:last-child {
    border-bottom: none;
}

.fork-preview {
    background-color: var(--bg-base);
}

/* ==========================================================================
   12. Module: Sign-Up Gate Overlay (Super Simple & Secure)
   ========================================================================== */
.signup-gate-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(8, 12, 10, 0.96);
    backdrop-filter: blur(12px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.signup-gate-card {
    width: 100%;
    max-width: 480px;
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.signup-step {
    transition: all 0.3s ease-in-out;
}

.signup-step.hidden {
    display: none;
}

/* ==========================================================================
   13. Public Landing Page Styles
   ========================================================================== */
.public-landing {
    background-color: #0b0f0c;
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Inter', sans-serif;
    position: relative;
    overflow-x: hidden;
}

.public-landing.hidden {
    display: none !important;
}

.public-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(11, 15, 12, 0.8);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.public-header .logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.public-header .logo-text h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
    margin: 0;
}

.public-header .logo-text h1 span {
    color: var(--color-mint);
}

.public-header .logo-text p {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 0;
}

.public-nav {
    display: flex;
    gap: 1.5rem;
}

.public-nav-link {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.public-nav-link:hover,
.public-nav-link.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.public-nav-link.active {
    border-bottom: 2px solid var(--color-mint);
    border-radius: 6px 6px 0 0;
}

/* Tab Views */
.public-tab-content {
    display: none;
    flex-grow: 1;
    animation: fadeIn 0.4s ease-in-out forwards;
}

.public-tab-content.active-view {
    display: block;
}

/* Hero Section */
.public-hero {
    position: relative;
    padding: 8rem 2rem 5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.06) 0%, rgba(59, 130, 246, 0.02) 50%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-primary) 30%, #a7f3d0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.hero-ctas {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* General Layouts */
.public-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.border-top {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 1.5rem;
}

.feature-icon.bg-emerald {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-mint);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.feature-icon.bg-blue {
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-blue);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.feature-icon.bg-purple {
    background: rgba(139, 92, 246, 0.1);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

/* Ecosystem Visualizer */
.ecosystem-visualizer {
    max-width: 700px;
    margin: 2rem auto 0;
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.01);
}

.visualizer-layer {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
}

.layer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.layer-header h4 {
    margin: 0;
    font-weight: 600;
}

.layer-cards {
    display: flex;
    gap: 10px;
}

.mini-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    flex: 1;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--text-secondary);
}

.visualizer-arrow {
    text-align: center;
    margin: 0.75rem 0;
    color: var(--text-muted);
}

/* Feature Deep Dive */
.feature-bullets {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
}

.feature-bullets li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
}

.feature-bullets li::before {
    content: "•";
    color: var(--color-mint);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.public-section h1.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
}

/* Timeline/Roadmap */
.roadmap-timeline {
    max-width: 800px;
    margin: 3rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
}

.roadmap-timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 28px;
    width: 2px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 1;
}

.timeline-card {
    display: flex;
    gap: 1.5rem;
    position: relative;
    z-index: 2;
}

.timeline-badge {
    background: #10b981;
    color: #0b0f0c;
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    width: 60px;
    height: 30px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

.timeline-info {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    flex-grow: 1;
}

.timeline-info h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Public Footer */
.public-footer {
    padding: 3rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
}

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

/* Hero Grid */
.public-hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem 4rem;
    align-items: center;
}

.hero-text-side {
    z-index: 2;
}

.hero-mockup-side {
    position: relative;
    z-index: 2;
}

/* Simulated App Mockup */
.mockup-window {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(16, 185, 129, 0.05);
}

.mockup-titlebar {
    display: flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.8);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mockup-dots {
    display: flex;
    gap: 6px;
}

.mockup-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.dot-red { background-color: #ef4444; }
.dot-yellow { background-color: #f59e0b; }
.dot-green { background-color: #10b981; }

.mockup-url {
    margin: 0 auto;
    font-size: 0.7rem;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.2);
    padding: 2px 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.mockup-layout {
    display: flex;
    height: 250px;
}

.mockup-sidebar {
    width: 110px;
    background: rgba(8, 12, 10, 0.5);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mockup-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.mockup-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mockup-nav-item {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.65rem;
    padding: 6px;
    border-radius: 4px;
    cursor: pointer;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.mockup-nav-item:hover,
.mockup-nav-item.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.mockup-nav-item.active {
    color: var(--color-mint);
    font-weight: 600;
}

.mockup-content {
    flex-grow: 1;
    padding: 1.25rem;
    background: rgba(11, 15, 12, 0.4);
    position: relative;
    overflow-y: auto;
}

.mock-pane {
    display: none;
    animation: fadeIn 0.3s ease-in-out forwards;
}

.mock-pane.active {
    display: block;
}

.mock-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.5rem;
}

.mock-header h5 {
    font-size: 0.75rem;
    font-weight: 600;
    margin: 0;
}

.mock-badge {
    font-size: 0.55rem;
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-mint);
    padding: 2px 6px;
    border-radius: 4px;
}

.mock-map-visual {
    display: flex;
    gap: 12px;
    align-items: center;
}

.mock-map-details p {
    margin: 0;
    font-size: 0.65rem;
}

.mock-hopper-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 10px;
}

.mock-hopper-card h6 {
    font-size: 0.7rem;
    font-weight: 600;
    margin: 0 0 4px;
}

.mock-hopper-card .desc {
    font-size: 0.6rem;
    color: var(--text-muted);
    margin: 0 0 10px;
}

.mock-progress-container {
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 8px;
}

.mock-progress-bar {
    height: 100%;
    background: var(--color-mint);
}

.mock-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.6rem;
    color: var(--text-muted);
}

.mock-btn-join {
    background: var(--color-mint);
    color: #0b0f0c;
    border: none;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.55rem;
    font-weight: 600;
    cursor: pointer;
}

.list-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.list-item-header h6 {
    font-size: 0.7rem;
    font-weight: 600;
    margin: 0;
}

/* Stats Banner */
.public-stats-banner {
    background: rgba(0, 0, 0, 0.4);
    padding: 2.5rem 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-card {
    text-align: center;
}

.stat-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-mint);
    margin-bottom: 4px;
}

/* Silos vs Hub Comparison */
.icon-circle {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-red-dim { background: rgba(239, 68, 68, 0.1); }
.bg-emerald-dim { background: rgba(16, 185, 129, 0.1); }

.comparison-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comparison-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.silo-card .comparison-list li::before {
    content: "✕";
    color: #ef4444;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.hub-card .comparison-list li::before {
    content: "✓";
    color: var(--color-mint);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Interactive SVG Map of Action styling */
.action-svg-map {
    width: 100%;
    height: auto;
    min-height: 250px;
    display: block;
}

.map-region-node {
    fill: rgba(52, 211, 153, 0.04);
    stroke: rgba(52, 211, 153, 0.2);
    stroke-width: 1.5;
    transition: all 0.3s ease;
}

.map-region-node:hover {
    fill: rgba(52, 211, 153, 0.15);
    stroke: rgba(52, 211, 153, 0.6);
    filter: drop-shadow(0 0 8px rgba(52, 211, 153, 0.3));
}

.map-region-node.selected {
    fill: rgba(52, 211, 153, 0.25);
    stroke: var(--color-mint);
    filter: drop-shadow(0 0 12px rgba(52, 211, 153, 0.4));
}

.map-pin circle {
    transition: all 0.3s ease;
}

.map-pin:hover circle:first-child {
    r: 8;
    filter: drop-shadow(0 0 8px currentColor);
}

/* Map Pin Pulsate Animation */
@keyframes pin-pulse {
    0% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.3); opacity: 0.8; }
    100% { transform: scale(1); opacity: 0.4; }
}

.map-pin circle:last-child {
    transform-origin: center;
    animation: pin-pulse 2s infinite ease-in-out;
}

/* Registry Feed Cards */
.action-item-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.2s ease;
}

.action-item-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
}

.action-item-card.challenge-type {
    border-left: 3px solid #ef4444;
}

.action-item-card.project-type {
    border-left: 3px solid var(--color-mint);
}

.action-item-card.org-type {
    border-left: 3px solid #3b82f6;
}

.action-item-card.leader-type {
    border-left: 3px solid #8b5cf6;
}

.action-domain-pill {
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 9999px;
    font-weight: 600;
}

.action-domain-pill.youth {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.action-domain-pill.governance {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.action-domain-pill.pastoral {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.action-domain-pill.funding {
    background: rgba(52, 211, 153, 0.1);
    color: #34d399;
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .public-header {
        padding: 1rem 1.5rem;
        flex-direction: column;
        gap: 1rem;
    }
    .public-nav {
        gap: 0.5rem;
        width: 100%;
        justify-content: center;
    }
    .public-hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-top: 3rem;
        text-align: center;
    }
    .hero-ctas {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    .grid-2 {
        grid-template-columns: 1fr !important;
    }
    .grid-3 {
        grid-template-columns: 1fr;
    }
    .layer-cards {
        flex-direction: column;
    }
    .action-map-layout {
        flex-direction: column;
        height: auto !important;
    }
    .feed-panel {
        width: 100% !important;
    }
    
    /* Responsive Application Dashboard Sidebar Drawer */
    .app-container {
        grid-template-columns: 1fr !important;
    }
    .mobile-nav-toggle {
        display: flex !important;
    }
    .app-sidebar {
        position: fixed;
        top: 0;
        left: -260px;
        height: 100vh;
        width: 260px;
        z-index: 999;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
    }
    .app-sidebar.active {
        left: 0 !important;
    }
    .app-header {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    .header-right {
        width: 100%;
        justify-content: space-between;
        gap: 0.5rem;
    }
    .search-bar {
        flex-grow: 1;
    }
    .content-container {
        padding: 1rem;
    }
    .community-layout {
        flex-direction: column !important;
        height: auto !important;
    }
    .chat-sidebar {
        width: 100% !important;
        height: auto !important;
    }
    .chat-window {
        height: 400px !important;
    }
    .guild-hero-card .card-body {
        flex-direction: column !important;
        gap: 1.5rem;
        text-align: center;
        align-items: center;
    }
}
