/* ==========================================================================
   WeeSofty Media — Editor Community & Project Management Platform
   Design System & Creative Agency Stylesheet
   ========================================================================== */

:root {
    --bg-base: #0B0D12;
    --bg-surface: #121722;
    --bg-card: #121722;
    --bg-card-hover: #181F2C;
    --bg-card-elevated: #1F2839;
    --border-color: #293243;
    --border-color-light: #374258;
    
    --primary: #8B5CF6;
    --primary-hover: #7C3AED;
    --primary-glow: rgba(139, 92, 246, 0.15);
    --primary-light: #A78BFA;
    --accent: #6366F1;
    --accent-glow: rgba(99, 102, 241, 0.15);
    
    --text-main: #F3F4F6;
    --text-muted: #A5AFBF;
    --text-dim: #6B788E;
    
    --success: #22C55E;
    --success-bg: rgba(34, 197, 94, 0.12);
    --warning: #F59E0B;
    --warning-bg: rgba(245, 158, 11, 0.12);
    --danger: #EF4444;
    --danger-bg: rgba(239, 68, 68, 0.12);
    --info: #3B82F6;
    --info-bg: rgba(59, 130, 246, 0.12);
    
    --sidebar-width: 270px;
    --header-height: 68px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.35);
    --shadow-glow: none;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover {
    color: #c4b5fd;
}

img, svg {
    display: block;
    max-width: 100%;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.25;
}
.text-gradient {
    background: linear-gradient(135deg, #FFFFFF 0%, #E5E7EB 40%, #A78BFA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-muted { color: var(--text-muted); }
.text-dim { color: var(--text-dim); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.text-primary { color: var(--primary-light); }

/* Layout Structure */
html, body {
    max-width: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

.app-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-surface);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 195;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.sidebar-overlay.open {
    opacity: 1;
    visibility: visible;
}

.sidebar-close-btn {
    display: none;
    background: var(--bg-card-hover);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 22px;
    line-height: 1;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.sidebar-close-btn:hover {
    color: #fff;
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
}

.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-width: 0;
    max-width: 100%;
    background-color: var(--bg-base);
    overflow-x: hidden;
}

/* Header */
.top-header {
    height: var(--header-height);
    background-color: rgba(18, 23, 34, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 90;
    width: 100%;
    max-width: 100%;
}

.page-container {
    padding: 32px 28px;
    flex: 1;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    min-width: 0;
    box-sizing: border-box;
}

/* Sidebar Branding & Nav */
.sidebar-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 24px;
    border-bottom: 1px solid var(--border-color);
    gap: 12px;
}
.brand-logo-img {
    height: 38px;
    width: 38px;
    border-radius: var(--radius-sm);
    object-fit: contain;
    flex-shrink: 0;
}
.brand-full-logo {
    height: 38px;
    width: auto;
    max-height: 38px;
    object-fit: contain;
    display: block;
}
.brand-text-wrap {
    overflow: hidden;
}
.brand-title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.02em;
    white-space: nowrap;
}
.brand-badge {
    font-size: 11px;
    color: var(--primary-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.nav-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-dim);
    letter-spacing: 0.08em;
    padding: 12px 12px 6px;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
}
.nav-item:hover {
    background-color: var(--bg-card);
    color: var(--text-main);
}
.nav-item.active {
    background-color: var(--bg-card-hover);
    color: var(--text-main);
    border: 1px solid var(--border-color-light);
    font-weight: 600;
}
.nav-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke-width: 1.75;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border-color);
}
.user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: var(--radius-md);
    background-color: var(--bg-card);
}
.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B5CF6, #6366F1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
    object-fit: cover;
}
.user-info {
    flex: 1;
    overflow: hidden;
}
.user-name {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}
.user-role-pill {
    font-size: 11px;
    color: var(--primary-light);
    display: block;
}

/* UI Cards */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-card);
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover {
    border-color: var(--border-color-light);
}

/* Authentication Pages & Cards */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.08) 0%, rgba(11, 13, 18, 1) 70%), #0B0D12;
}
.auth-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    width: 100%;
    max-width: 440px;
    padding: 38px 30px;
    box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.6);
}
@media (max-width: 480px) {
    .auth-page {
        padding: 16px 12px;
    }
    .auth-card {
        padding: 28px 18px;
        border-radius: 16px;
    }
}
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.card-title {
    font-size: 18px;
    font-weight: 700;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.metric-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 22px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    box-shadow: var(--shadow-card);
}
.metric-title {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}
.metric-value {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.03em;
}
.metric-sub {
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 4px;
}
.metric-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(124, 58, 237, 0.15);
    color: var(--primary-light);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    line-height: 1.2;
}
.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.25);
}
.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.35);
    color: #fff;
    transform: translateY(-1px);
}
.btn-secondary {
    background-color: var(--bg-card-hover);
    border-color: var(--border-color);
    color: var(--text-main);
}
.btn-secondary:hover {
    background-color: var(--bg-card-elevated);
    border-color: var(--border-color-light);
    color: #fff;
}
.btn-outline {
    background: transparent;
    border-color: var(--border-color);
    color: var(--text-main);
}
.btn-outline:hover {
    background-color: var(--bg-card-hover);
    border-color: var(--primary-light);
    color: #fff;
}
.btn-success {
    background-color: #059669;
    color: #fff;
}
.btn-success:hover {
    background-color: #047857;
    color: #fff;
}
.btn-danger {
    background-color: #dc2626;
    color: #fff;
}
.btn-danger:hover {
    background-color: #b91c1c;
    color: #fff;
}
.btn-whatsapp {
    background-color: var(--success);
    color: #07090e;
    font-weight: 600;
}
.btn-whatsapp:hover {
    background-color: #16a34a;
    color: #07090e;
}
.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: var(--radius-sm);
}
.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
    border-radius: var(--radius-lg);
}

/* Badges & Status Pills */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}
.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}
.badge-success {
    background-color: var(--success-bg);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.25);
}
.badge-success .badge-dot { background-color: #34d399; }
.badge-warning {
    background-color: var(--warning-bg);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.25);
}
.badge-warning .badge-dot { background-color: #fbbf24; }
.badge-danger {
    background-color: var(--danger-bg);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.25);
}
.badge-danger .badge-dot { background-color: #f87171; }
.badge-primary {
    background-color: rgba(139, 92, 246, 0.12);
    color: #A78BFA;
    border: 1px solid rgba(139, 92, 246, 0.28);
}
.badge-primary .badge-dot { background-color: #A78BFA; }
.badge-neutral {
    background-color: var(--bg-card-hover);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}
.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}
.form-control {
    width: 100%;
    padding: 12px 16px;
    background-color: var(--bg-card-hover);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-main);
    transition: all 0.2s ease;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18);
    background-color: var(--bg-card-hover);
}
textarea.form-control {
    min-height: 100px;
    resize: vertical;
}
.form-help {
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 6px;
}

/* Password eye toggle wrapper */
.password-field-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.password-field-wrap .form-control {
    padding-right: 44px;
}
.password-toggle-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}
.password-toggle-btn:hover {
    color: var(--text-main);
}

/* Tables */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    position: relative;
}
.table-responsive::-webkit-scrollbar {
    height: 6px;
}
.table-responsive::-webkit-scrollbar-track {
    background: rgba(14, 19, 31, 0.5);
    border-radius: 4px;
}
.table-responsive::-webkit-scrollbar-thumb {
    background: rgba(124, 58, 237, 0.35);
    border-radius: 4px;
}
.table-responsive::-webkit-scrollbar-thumb:hover {
    background: rgba(124, 58, 237, 0.6);
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}
.data-table th {
    background-color: var(--bg-surface);
    padding: 14px 18px;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-color);
}
.data-table td {
    padding: 16px 18px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}
.data-table tr:last-child td {
    border-bottom: none;
}
.data-table tr:hover td {
    background-color: rgba(255, 255, 255, 0.02);
}

/* Flash Messages */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
}
.alert-success {
    background-color: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}
.alert-error {
    background-color: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}
.alert-info {
    background-color: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #93c5fd;
}
.alert-warning {
    background-color: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fde68a;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}
.modal-overlay.open {
    display: flex;
}
.modal-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color-light);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 580px;
    padding: 30px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    max-height: 90vh;
    overflow-y: auto;
}

/* Notifications Dropdown */
.notif-dropdown {
    position: absolute;
    right: 28px;
    top: calc(var(--header-height) - 5px);
    width: 360px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    display: none;
    flex-direction: column;
    z-index: 150;
    max-height: 480px;
}
.notif-dropdown.open {
    display: flex;
}
.notif-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.notif-list {
    overflow-y: auto;
    flex: 1;
}
.notif-item {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
    display: block;
    color: var(--text-main);
    transition: background-color 0.2s ease;
}
.notif-item:hover {
    background-color: var(--bg-card-hover);
}
.notif-item.unread {
    background-color: rgba(124, 58, 237, 0.08);
}
.notif-time {
    font-size: 11px;
    color: var(--text-dim);
    margin-top: 4px;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    max-width: 420px;
}
.toast {
    pointer-events: auto;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    background-color: var(--bg-card);
    border: 1px solid var(--border-color-light);
    color: var(--text-main);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    line-height: 1.4;
    animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.toast-success { border-color: rgba(16, 185, 129, 0.5); background: rgba(16, 185, 129, 0.15); color: #34d399; }
.toast-warning { border-color: rgba(245, 158, 11, 0.5); background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.toast-error { border-color: rgba(239, 68, 68, 0.5); background: rgba(239, 68, 68, 0.15); color: #fca5a5; }
.toast-info { border-color: rgba(99, 102, 241, 0.5); background: rgba(99, 102, 241, 0.15); color: #a5b4fc; }

@keyframes toastSlideIn {
    from { opacity: 0; transform: translateY(-12px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Mobile Toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    padding: 8px;
}

/* ==========================================================================
   Process Step Cards — How The Platform Works
   ========================================================================== */
.workflow-step-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    width: 100%;
    align-items: stretch;
}

.workflow-step-card {
    background: #121722;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    min-width: 0;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.25s ease,
                box-shadow 0.25s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.workflow-step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(139, 92, 246, 0.6) 50%, transparent 100%);
    opacity: 0.6;
    transition: opacity 0.25s ease;
}

.workflow-step-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-color-light);
    box-shadow: 0 10px 24px -6px rgba(0, 0, 0, 0.4);
}

.workflow-step-card:hover::before {
    opacity: 1;
    background: linear-gradient(90deg, transparent 0%, var(--primary-light) 50%, transparent 100%);
}

.step-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.step-number {
    font-size: 13.5px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--primary-light);
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.28);
    padding: 5px 12px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    -webkit-user-select: none;
}

.step-phase-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    user-select: none;
}

.step-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.35;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.step-card-desc {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    flex-grow: 1;
}

/* ==========================================================================
   FAQ Section & Accordion Component
   ========================================================================== */
.faq-section-wrapper {
    max-width: 920px;
    margin: 0 auto;
    width: 100%;
}

.faq-filter-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}

.faq-filter-btn {
    background: var(--bg-card-hover);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
}

.faq-filter-btn:hover {
    color: var(--text-main);
    border-color: var(--border-color-light);
    background: var(--bg-card-elevated);
}

.faq-filter-btn.active {
    background: rgba(139, 92, 246, 0.16);
    border-color: var(--primary);
    color: #ffffff;
}

.faq-category-group {
    margin-bottom: 30px;
}

.faq-category-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary-light);
    margin-bottom: 14px;
    padding-left: 4px;
}

.faq-category-title::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--primary-light);
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.faq-card:hover {
    border-color: var(--border-color-light);
    background-color: var(--bg-card-hover);
}

.faq-card.is-active {
    border-color: var(--primary);
    background-color: var(--bg-card-hover);
}

.faq-trigger {
    width: 100%;
    background: transparent;
    border: none;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    text-align: left;
    color: var(--text-main);
    font-family: inherit;
    font-size: 15.5px;
    font-weight: 600;
    line-height: 1.45;
    transition: color 0.2s ease;
}

.faq-trigger:focus-visible {
    outline: 2px solid var(--primary-light);
    outline-offset: -2px;
    border-radius: 12px;
}

.faq-card.is-active .faq-trigger {
    color: #ffffff;
}

.faq-icon-wrap {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background: var(--bg-card-hover);
    border: 1px solid var(--border-color);
    color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.faq-card.is-active .faq-icon-wrap {
    transform: rotate(45deg);
    background: rgba(139, 92, 246, 0.2);
    border-color: var(--primary);
    color: #ffffff;
}

.faq-panel {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, padding 0.3s ease;
    padding: 0 22px;
}

.faq-card.is-active .faq-panel {
    max-height: 500px;
    opacity: 1;
    padding: 0 22px 20px 22px;
}

.faq-answer-content {
    color: var(--text-muted);
    font-size: 14.5px;
    line-height: 1.7;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 14px;
}

/* ==========================================================================
   Landing Header & Mobile Drawer Styles
   ========================================================================== */
.landing-nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}
.landing-nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 14.5px;
    transition: color 0.2s ease;
}
.landing-nav-links a:hover {
    color: #ffffff;
}

.landing-nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.landing-hamburger-btn {
    display: none;
    background: var(--bg-card-hover);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    width: 38px;
    height: 38px;
    transition: all 0.2s ease;
}
.landing-hamburger-btn:hover {
    background: var(--bg-card-elevated);
    border-color: var(--border-color-light);
}
.hamburger-bar {
    width: 20px;
    height: 2px;
    background-color: var(--text-main);
    border-radius: 2px;
    transition: all 0.2s ease;
}

.landing-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.landing-drawer-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.landing-mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 300px;
    max-width: 85vw;
    background: var(--bg-surface);
    border-left: 1px solid var(--border-color);
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    padding: 24px 20px;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.7);
}
.landing-mobile-drawer.open {
    transform: translateX(0);
}

.landing-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}
.landing-drawer-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    padding: 4px;
}
.landing-drawer-close:hover {
    color: var(--text-main);
}
.landing-drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    overflow-y: auto;
}
.landing-drawer-link {
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 500;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}
.landing-drawer-link:hover {
    color: var(--text-main);
    background: var(--bg-card-hover);
}
.landing-drawer-actions {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--border-color);
}

.chat-card-container {
    height: calc(100vh - 220px);
    min-height: 520px;
}

/* ==========================================================================
   Mobile-First Responsive Grid & Card System
   ========================================================================== */
.editor-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
    width: 100%;
}

.responsive-two-col {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(0, 1.2fr);
    gap: 24px;
    margin-bottom: 30px;
    width: 100%;
}

.admin-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 20px;
    margin-bottom: 30px;
    width: 100%;
}

.admin-two-col-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: 24px;
    margin-bottom: 28px;
    width: 100%;
}

.filter-toolbar-grid {
    display: grid;
    grid-template-columns: minmax(180px, 1.5fr) repeat(auto-fit, minmax(130px, 1fr)) auto;
    gap: 12px;
    align-items: center;
    width: 100%;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 20px;
    width: 100%;
}

.responsive-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 20px;
    margin-bottom: 24px;
    width: 100%;
}

.kanban-board-container {
    max-width: 100%;
    min-width: 0;
    -webkit-overflow-scrolling: touch;
}

/* Visibility utilities for responsive tables vs cards */
.d-none-desktop {
    display: none;
}
.d-none-mobile {
    display: block;
}

/* Mobile Project Cards */
.mobile-project-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: border-color 0.2s ease, transform 0.2s ease;
    min-width: 0;
}
.mobile-project-card:hover {
    border-color: var(--border-color-light);
}
.mobile-project-card.status-revision {
    border-left: 4px solid var(--danger);
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.05) 0%, var(--bg-surface) 100%);
}
.mobile-project-card.status-assigned {
    border-left: 4px solid var(--primary);
}
.mobile-project-card.status-approved {
    border-left: 4px solid var(--success);
}
.mobile-project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.mobile-project-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.4;
    word-break: break-word;
}
.mobile-project-sub {
    font-size: 12px;
    color: var(--text-muted);
}
.mobile-project-specs-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px;
}
.mobile-project-spec-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.mobile-project-spec-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-dim);
}
.mobile-project-spec-val {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-main);
    word-break: break-word;
}
.mobile-project-feedback-box {
    padding: 10px 12px;
    background: rgba(239, 68, 68, 0.08);
    border-left: 3px solid var(--danger);
    border-radius: var(--radius-sm);
    font-size: 12.5px;
    color: #fca5a5;
    line-height: 1.5;
    word-break: break-word;
}
.mobile-project-action-btn {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13.5px;
    font-weight: 700;
    border-radius: var(--radius-md);
    text-decoration: none;
    box-sizing: border-box;
}

/* Mobile Transfer Cards */
.mobile-transfer-card {
    background: var(--bg-base);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

/* ==========================================================================
   Comprehensive Responsive Breakpoints (320px - 1440px)
   ========================================================================== */
@media (max-width: 1024px) {
    :root {
        --sidebar-width: 240px;
    }
    .editor-metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
    .workflow-step-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
    .workflow-step-card {
        padding: 26px 22px;
    }
}

@media (max-width: 900px) {
    .responsive-two-col {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .landing-nav-links {
        display: none !important;
    }
    .landing-hamburger-btn {
        display: flex !important;
    }
}

@media (max-width: 768px) {
    .d-none-desktop {
        display: block !important;
    }
    .d-none-mobile {
        display: none !important;
    }
    .sidebar {
        width: min(85vw, 290px);
        transform: translateX(-100%);
        z-index: 200;
    }
    .sidebar.open {
        transform: translateX(0);
        box-shadow: 12px 0 36px rgba(0,0,0,0.85);
    }
    .sidebar-close-btn {
        display: flex;
    }
    .main-content {
        margin-left: 0;
    }
    .mobile-nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0;
    }
    .top-header {
        padding: 0 14px;
        height: 60px;
    }
    .page-container {
        padding: 20px 14px;
    }
    .metrics-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
        gap: 12px;
    }
    .editor-metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .filter-toolbar-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    .notif-dropdown {
        width: calc(100vw - 28px);
        right: 14px;
    }
    .card {
        padding: 18px 14px;
    }
    .btn {
        min-height: 42px;
    }
    .btn-sm {
        min-height: 38px;
    }
}

@media (max-width: 640px) {
    .workflow-step-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .workflow-step-card {
        padding: 22px 20px;
        border-radius: 16px;
    }
    .step-card-title {
        font-size: 17px;
        margin-bottom: 10px;
    }
    .step-card-desc {
        font-size: 13.5px;
        line-height: 1.55;
    }
    .faq-trigger {
        padding: 16px 16px;
        font-size: 14.5px;
        gap: 12px;
    }
    .faq-icon-wrap {
        width: 28px;
        height: 28px;
        min-width: 28px;
    }
    .faq-panel {
        padding: 0 16px;
    }
    .faq-card.is-active .faq-panel {
        padding: 0 16px 16px 16px;
    }
    .faq-answer-content {
        font-size: 13.5px;
        line-height: 1.6;
    }
    .faq-filter-btn {
        font-size: 12px;
        padding: 6px 14px;
    }
    .chat-card-container {
        height: calc(100dvh - 160px);
        min-height: 380px;
    }
    .chat-message-bubble .msg-content-box {
        max-width: 88% !important;
    }
    #chatSendForm .btn span {
        display: none;
    }
    #chatSendForm .btn {
        padding: 12px 14px !important;
        min-height: 44px;
    }
    #messagesContainer {
        padding: 14px !important;
    }
    .mobile-project-specs-grid {
        grid-template-columns: 1fr 1fr;
    }
    .projects-search-col {
        grid-column: span 1 !important;
        min-width: 0 !important;
    }
    .wizard-stepper-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }
    .wizard-stepper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        display: flex !important;
        gap: 10px !important;
        padding-bottom: 6px;
    }
    .wizard-step {
        flex-shrink: 0;
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .top-header {
        padding: 0 10px;
        height: 56px;
    }
    .page-container {
        padding: 14px 10px;
    }
    .editor-metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .metric-card {
        padding: 14px 10px;
    }
    .metric-title {
        font-size: 11px;
    }
    .metric-value {
        font-size: 20px;
    }
    .landing-nav {
        padding: 12px 16px !important;
    }
    .landing-nav-actions {
        gap: 8px;
    }
    .landing-contact-btn span,
    .header-contact-btn span {
        display: none;
    }
    .header-contact-btn {
        padding: 6px 8px !important;
        min-height: 38px;
    }
    .landing-contact-btn {
        padding: 8px 10px !important;
    }
    .landing-nav-brand-title {
        font-size: 15px !important;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        margin: 0 auto 36px;
    }
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
        min-height: 44px;
    }
    .modal-overlay {
        padding: 10px;
    }
    .modal-card {
        padding: 20px 14px !important;
        border-radius: var(--radius-lg);
        max-height: 92vh;
    }
    .modal-box {
        width: 95% !important;
        padding: 20px 14px !important;
        max-height: 92vh !important;
    }
}

@media (max-width: 360px) {
    .page-container {
        padding: 12px 6px;
    }
    .editor-metrics-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .landing-nav {
        padding: 10px 10px !important;
    }
    .landing-nav-actions {
        gap: 6px;
    }
    .landing-nav-brand-title {
        font-size: 13.5px !important;
    }
    .hero-trust-bar {
        gap: 12px !important;
        font-size: 12px !important;
    }
}

/* ==========================================================================
   Performance, Double-Submit Guard & Accessibility
   ========================================================================== */
.btn-loading {
    opacity: 0.72 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    position: relative;
}

@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

