/* Custom styles for Glyzer B2B Networking Platform */

/* Modern Design System Variables */
:root {
    --glyzer-primary: #4F46E5;
    --glyzer-secondary: #10B981;
    --glyzer-accent: #F59E0B;
    --glyzer-danger: #EF4444;
    --glyzer-warning: #F59E0B;
    --glyzer-info: #3B82F6;
    --glyzer-success: #10B981;
    --glyzer-gradient: linear-gradient(135deg, var(--glyzer-primary), var(--glyzer-secondary));
    --glyzer-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --glyzer-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --glyzer-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --glyzer-border-radius: 12px;
    --glyzer-border-radius-sm: 8px;
    --glyzer-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced Typography */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    letter-spacing: -0.01em;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.3;
}

.display-4 {
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* Base Layout */
.main-content {
    padding-top: 80px;
    min-height: calc(100vh - 200px);
    background: linear-gradient(180deg, transparent 0%, rgba(var(--bs-primary-rgb), 0.02) 100%);
}

/* Modern Hero Section */
.hero-section {
    padding: 80px 0 100px;
    background: var(--glyzer-gradient);
    border-radius: var(--glyzer-border-radius);
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
}

.hero-section .lead {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 2rem;
}

.min-vh-75 {
    min-height: 75vh;
}

/* Enhanced Cards and Components */
.card {
    border-radius: var(--glyzer-border-radius);
    border: 1px solid rgba(var(--bs-border-color-rgb), 0.5);
    box-shadow: var(--glyzer-shadow-sm);
    backdrop-filter: blur(10px);
    transition: var(--glyzer-transition);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--glyzer-shadow-lg);
    border-color: var(--glyzer-primary);
}

.card-header {
    background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.1) 0%, rgba(var(--bs-primary-rgb), 0.05) 100%);
    border-bottom: 1px solid rgba(var(--bs-border-color-rgb), 0.3);
    padding: 1.5rem;
    border-radius: var(--glyzer-border-radius) var(--glyzer-border-radius) 0 0 !important;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    background: rgba(var(--bs-light-rgb), 0.5);
    border-top: 1px solid rgba(var(--bs-border-color-rgb), 0.3);
    padding: 1rem 1.5rem;
}

/* Modern Feature Icons */
.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glyzer-gradient);
    border-radius: 20px;
    position: relative;
    transition: var(--glyzer-transition);
}

.feature-icon::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--glyzer-gradient);
    border-radius: 22px;
    opacity: 0;
    z-index: -1;
    transition: var(--glyzer-transition);
}

.feature-icon:hover::before {
    opacity: 0.3;
}

.feature-icon:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--glyzer-shadow);
}

.feature-icon i {
    color: white;
    font-size: 2rem;
}

/* Badges and Status Indicators */
.badge {
    font-size: 0.75em;
    font-weight: 500;
}

/* Form Enhancements */
.form-control,
.form-select {
    border: 2px solid rgba(var(--bs-border-color-rgb), 0.3);
    transition: var(--glyzer-transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
    background-color: rgba(var(--bs-primary-rgb), 0.02);
}

.form-control::placeholder {
    opacity: 0.6;
    font-weight: 400;
}

.form-text {
    font-size: 0.825em;
    color: var(--bs-secondary);
}

/* Form Sections */
.form-section {
    background: rgba(var(--bs-primary-rgb), 0.03);
    border: 1px solid rgba(var(--bs-primary-rgb), 0.1);
    border-radius: var(--glyzer-border-radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
    position: relative;
    transition: var(--glyzer-transition);
}

.form-section:hover {
    background: rgba(var(--bs-primary-rgb), 0.05);
    border-color: rgba(var(--bs-primary-rgb), 0.2);
}

.form-section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(var(--bs-primary-rgb), 0.15);
}

.form-section-number {
    width: 45px;
    height: 45px;
    background: var(--glyzer-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(var(--bs-primary-rgb), 0.3);
}

.form-section-title {
    flex: 1;
}

.form-section-title h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--bs-body-color);
}

.form-section-title p {
    margin: 0.25rem 0 0;
    font-size: 0.85rem;
    color: var(--bs-secondary);
}

[data-bs-theme="dark"] .form-section {
    background: rgba(79, 70, 229, 0.08);
    border-color: rgba(79, 70, 229, 0.15);
}

[data-bs-theme="dark"] .form-section:hover {
    background: rgba(79, 70, 229, 0.12);
    border-color: rgba(79, 70, 229, 0.25);
}

/* Modern Button System */
.btn {
    border-radius: var(--glyzer-border-radius-sm);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.025em;
    transition: var(--glyzer-transition);
    position: relative;
    overflow: hidden;
    text-transform: none;
    padding: 0.625rem 1.25rem;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: var(--glyzer-transition);
    transform: translate(-50%, -50%);
    z-index: 0;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn * {
    position: relative;
    z-index: 1;
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    border-radius: var(--glyzer-border-radius);
}

.btn-primary {
    background: var(--glyzer-gradient);
    border: none;
    box-shadow: var(--glyzer-shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--glyzer-shadow);
    background: linear-gradient(135deg, #5B50E8, #12C794);
}

.btn-success {
    background: var(--glyzer-gradient);
    border: none;
    box-shadow: var(--glyzer-shadow-sm);
    color: white;
}

.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: var(--glyzer-shadow);
    background: linear-gradient(135deg, #5B50E8, #12C794);
    color: white;
}

.btn-outline-primary {
    border: 2px solid var(--glyzer-primary);
    color: var(--glyzer-primary);
    background: transparent;
    backdrop-filter: blur(10px);
}

.btn-outline-primary:hover {
    background: var(--glyzer-primary);
    transform: translateY(-1px);
    box-shadow: var(--glyzer-shadow);
}

/* Loading State Styles */
.btn:disabled,
.btn[disabled] {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spinner 0.8s linear infinite;
}

@keyframes spinner {
    to { transform: rotate(360deg); }
}

/* Form Loading State */
.form-loading {
    opacity: 0.95;
    pointer-events: none;
}

.form-loading input:not([type="submit"]),
.form-loading textarea,
.form-loading select {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Loading Overlay */
#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

#loadingOverlay .loading-content {
    background: white;
    padding: 2rem;
    border-radius: var(--glyzer-border-radius);
    text-align: center;
    box-shadow: var(--glyzer-shadow-lg);
    animation: slideUp 0.3s ease-out;
}

[data-bs-theme="dark"] #loadingOverlay .loading-content {
    background: #1e293b;
    color: #e2e8f0;
}

#loadingOverlay .spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3em;
    color: var(--glyzer-primary);
}

#loadingOverlay .loading-message {
    margin: 0;
    font-weight: 500;
    color: #666;
}

[data-bs-theme="dark"] #loadingOverlay .loading-message {
    color: #94a3b8;
}

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

/* Spinner Animation */
.spinner-border {
    animation: spinner 0.75s linear infinite;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.25em;
}

.fa-spinner.fa-spin {
    animation: fa-spin 1s linear infinite;
}

@keyframes fa-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced Navigation */
/* ============================================
   NAVBAR — Redesigned
   ============================================ */
.navbar {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0 0;
    height: 60px;
    transition: var(--glyzer-transition);
    border-bottom: 1px solid rgba(79, 70, 229, 0.1);
}

.navbar .container {
    height: 60px;
    align-items: center;
}

/* Light theme navbar */
.navbar-light {
    background: rgba(255, 255, 255, 0.97) !important;
}

/* Nav links */
.navbar-nav .nav-link {
    color: #475569 !important;
    font-weight: 500;
    font-size: 0.825rem;
    padding: 0.4rem 0.7rem !important;
    border-radius: 6px;
    margin: 0 1px;
    transition: color 0.18s ease, background 0.18s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
}

.navbar-nav .nav-link i {
    font-size: 0.8rem;
    opacity: 0.7;
    transition: opacity 0.18s ease;
    flex-shrink: 0;
}

.navbar-nav .nav-link:hover {
    color: var(--glyzer-primary) !important;
    background: rgba(79, 70, 229, 0.07);
    transform: none;
}

.navbar-nav .nav-link:hover i {
    opacity: 1;
}

/* Active nav link */
.navbar-nav .nav-link.active,
.navbar-nav .nav-link[aria-current="page"] {
    color: var(--glyzer-primary) !important;
    background: rgba(79, 70, 229, 0.08);
    font-weight: 600;
}

/* Remove underline pseudo-element from base styles */
.navbar-nav .nav-link::after {
    display: none !important;
}

/* Dropdown menus */
.navbar .dropdown-menu {
    border: 1px solid rgba(79, 70, 229, 0.12);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0,0,0,0.06);
    border-radius: 10px;
    padding: 6px;
    margin-top: 6px;
    min-width: 200px;
    animation: dropdownFadeIn 0.15s ease;
}

@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.navbar .dropdown-item {
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.825rem;
    font-weight: 500;
    color: #374151;
    transition: background 0.15s ease, color 0.15s ease;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.navbar .dropdown-item i {
    margin-top: 2px;
    flex-shrink: 0;
    width: 14px;
    text-align: center;
}

.navbar .dropdown-item small {
    display: block;
    font-size: 0.7rem;
    color: #9ca3af;
    font-weight: 400;
    margin-top: 1px;
}

.navbar .dropdown-item:hover {
    background: rgba(79, 70, 229, 0.07);
    color: var(--glyzer-primary);
}

.navbar .dropdown-item:hover small {
    color: rgba(79, 70, 229, 0.6);
}

.navbar .dropdown-divider {
    margin: 4px 6px;
    border-color: rgba(0,0,0,0.06);
}

.navbar .dropdown-toggle::after {
    margin-left: 4px;
    vertical-align: middle;
    opacity: 0.6;
}

/* ── + Post button ──────────────────── */
.navbar-post-btn .btn {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    border-radius: 7px;
    letter-spacing: 0.01em;
}

.navbar-post-btn .dropdown-menu {
    min-width: 220px;
}

/* ── Notification badge ─────────────── */
.notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #ef4444;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    line-height: 1;
}

.nav-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #ef4444;
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

/* ── Theme toggle button ────────────── */
.theme-toggle-btn {
    background: none;
    border: 1px solid rgba(79, 70, 229, 0.18);
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s ease;
    padding: 0;
    font-size: 0.8rem;
}

.theme-toggle-btn:hover {
    background: rgba(79, 70, 229, 0.08);
    border-color: var(--glyzer-primary);
    color: var(--glyzer-primary);
}

/* ── Navbar Logo ────────────────────── */
.navbar-logo {
    height: 38px;
    width: auto;
    transition: transform 0.2s ease;
}

.navbar-brand:hover .navbar-logo {
    transform: scale(1.03);
}

@media (max-width: 576px) {
    .navbar-logo {
        height: 34px;
    }
}

/* ============================================
   FOOTER STYLES
   ============================================ */
.site-footer {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    color: #e2e8f0;
    padding: 4rem 0 0;
    margin-top: 4rem;
}

.footer-logo {
    height: 45px;
    width: auto;
    filter: brightness(1.2);
}

.footer-description {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-title {
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-links a i {
    width: 20px;
    opacity: 0.7;
}

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

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-contact li i {
    color: var(--glyzer-primary);
    width: 18px;
}

.footer-contact a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact a:hover {
    color: #fff;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-link:hover {
    background: var(--glyzer-primary);
    color: #fff;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
    padding: 1.5rem 0;
}

.footer-bottom p {
    color: #64748b;
    font-size: 0.875rem;
}

.footer-legal-link {
    color: #64748b;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-legal-link:hover {
    color: #fff;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 6px;
    background: transparent;
    border: none;
    margin-left: 0.1rem;
    transition: all 0.2s ease;
    cursor: pointer;
    color: #475569;
    font-weight: 500;
}

/* Hide mobile labels on desktop */
.mobile-nav-label {
    display: none;
}

.theme-toggle-btn i {
    font-size: 1rem;
    color: #1b7fa9;
    opacity: 0.8;
    transition: all 0.2s ease;
}

.theme-toggle-btn:hover {
    color: #1b7fa9;
    background: rgba(27, 127, 169, 0.08);
}

.theme-toggle-btn:hover i {
    opacity: 1;
    transform: scale(1.1);
}

.theme-toggle-btn:focus {
    outline: none;
}

.theme-toggle-btn:active {
    transform: scale(0.95);
}

[data-bs-theme="dark"] .theme-toggle-btn {
    color: #94a3b8;
}

[data-bs-theme="dark"] .theme-toggle-btn i {
    color: #2bae82;
}

[data-bs-theme="dark"] .theme-toggle-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

[data-bs-theme="dark"] .theme-toggle-btn:hover i {
    color: #fff;
}

/* ============================================
   DARK THEME SUPPORT
   ============================================ */
/* ============================================
   DARK THEME — Comprehensive overrides
   ============================================ */
[data-bs-theme="dark"] {
    --bs-body-bg: #0d1117;
    --bs-body-color: #e2e8f0;
    --bs-border-color: #21262d;
    --bs-secondary-color: #8b949e;
}

[data-bs-theme="dark"] body {
    background-color: #0d1117;
    color: #e2e8f0;
}

/* Dark navbar */
[data-bs-theme="dark"] .navbar {
    background: rgba(13, 17, 23, 0.97) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

[data-bs-theme="dark"] .navbar-nav .nav-link {
    color: #8b949e !important;
}

[data-bs-theme="dark"] .navbar-nav .nav-link:hover {
    color: #e2e8f0 !important;
    background: rgba(255, 255, 255, 0.06);
}

[data-bs-theme="dark"] .navbar-nav .nav-link.active,
[data-bs-theme="dark"] .navbar-nav .nav-link[aria-current="page"] {
    color: #a5b4fc !important;
    background: rgba(79, 70, 229, 0.15);
}

[data-bs-theme="dark"] .navbar-nav .nav-link i {
    color: #6ee7b7;
}

[data-bs-theme="dark"] .navbar-brand {
    color: #fff;
}

/* Dark dropdowns */
[data-bs-theme="dark"] .navbar .dropdown-menu {
    background: #161b22;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

[data-bs-theme="dark"] .navbar .dropdown-item {
    color: #c9d1d9;
}

[data-bs-theme="dark"] .navbar .dropdown-item small {
    color: #6e7681;
}

[data-bs-theme="dark"] .navbar .dropdown-item:hover {
    background: rgba(79, 70, 229, 0.15);
    color: #a5b4fc;
}

[data-bs-theme="dark"] .navbar .dropdown-item:hover small {
    color: rgba(165, 180, 252, 0.6);
}

[data-bs-theme="dark"] .navbar .dropdown-divider {
    border-color: rgba(255, 255, 255, 0.06);
}

/* Dark theme toggle button */
[data-bs-theme="dark"] .theme-toggle-btn {
    border-color: rgba(255, 255, 255, 0.12);
    color: #8b949e;
}

[data-bs-theme="dark"] .theme-toggle-btn:hover {
    background: rgba(165, 180, 252, 0.1);
    border-color: #a5b4fc;
    color: #a5b4fc;
}

/* Dark mobile collapse */
[data-bs-theme="dark"] .navbar-collapse {
    background: #161b22;
    border-color: rgba(255, 255, 255, 0.06);
}

/* Dark cards */
[data-bs-theme="dark"] .card {
    background: #161b22;
    border-color: #21262d;
    color: #e2e8f0;
}

[data-bs-theme="dark"] .card-header {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.18) 0%, rgba(79, 70, 229, 0.08) 100%);
    border-bottom-color: #21262d;
    color: #f1f5f9;
}

[data-bs-theme="dark"] .card-body {
    color: #c9d1d9;
}

[data-bs-theme="dark"] .card-footer {
    background: rgba(22, 27, 34, 0.9);
    border-top-color: #21262d;
    color: #8b949e;
}

[data-bs-theme="dark"] .text-muted {
    color: #8b949e !important;
}

[data-bs-theme="dark"] .text-secondary {
    color: #8b949e !important;
}

/* Dark main content background */
[data-bs-theme="dark"] .main-content {
    background: #0d1117;
}

[data-bs-theme="dark"] .hero-section {
    background: linear-gradient(135deg, #3730a3, #065f46);
}

/* Dark forms */
[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
    background-color: #161b22;
    border-color: #30363d;
    color: #e2e8f0;
}

[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus {
    background-color: #161b22;
    border-color: #7c3aed;
    color: #e2e8f0;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

[data-bs-theme="dark"] .form-control::placeholder {
    color: #484f58;
}

[data-bs-theme="dark"] .form-label {
    color: #c9d1d9;
    font-weight: 500;
}

[data-bs-theme="dark"] .form-text {
    color: #6e7681;
}

/* Dark page-level dropdowns (non-navbar) */
[data-bs-theme="dark"] .dropdown-menu {
    background-color: #161b22;
    border-color: #30363d;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

[data-bs-theme="dark"] .dropdown-item {
    color: #c9d1d9;
}

[data-bs-theme="dark"] .dropdown-item:hover {
    background-color: rgba(79, 70, 229, 0.12);
    color: #e2e8f0;
}

[data-bs-theme="dark"] .dropdown-divider {
    border-color: #21262d;
}

/* Dark list groups */
[data-bs-theme="dark"] .list-group-item {
    background-color: #161b22;
    border-color: #21262d;
    color: #e2e8f0;
}

[data-bs-theme="dark"] .list-group-item:hover {
    background-color: #1c2128;
}

/* Dark breadcrumb */
[data-bs-theme="dark"] .breadcrumb {
    background: rgba(22, 27, 34, 0.8);
}

[data-bs-theme="dark"] .breadcrumb-item a {
    color: #8b949e;
}

[data-bs-theme="dark"] .breadcrumb-item.active {
    color: #e2e8f0;
}

/* Dark alerts */
[data-bs-theme="dark"] .alert {
    border: 1px solid rgba(255, 255, 255, 0.08);
}

[data-bs-theme="dark"] .alert-info {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.25);
    color: #93c5fd;
}

[data-bs-theme="dark"] .alert-success {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.25);
    color: #6ee7b7;
}

[data-bs-theme="dark"] .alert-warning {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.25);
    color: #fcd34d;
}

[data-bs-theme="dark"] .alert-danger {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.25);
    color: #fca5a5;
}

/* Dark tables */
[data-bs-theme="dark"] .table {
    color: #e2e8f0;
    --bs-table-bg: transparent;
}

[data-bs-theme="dark"] .table th {
    color: #8b949e;
    border-color: #21262d;
    background: rgba(22, 27, 34, 0.8);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

[data-bs-theme="dark"] .table td {
    border-color: #21262d;
}

[data-bs-theme="dark"] .table-hover tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* Dark buttons */
[data-bs-theme="dark"] .btn-outline-light {
    border-color: #30363d;
    color: #c9d1d9;
}

[data-bs-theme="dark"] .btn-outline-light:hover {
    background-color: #21262d;
    border-color: #484f58;
    color: #e2e8f0;
}

[data-bs-theme="dark"] .btn-outline-secondary {
    border-color: #30363d;
    color: #8b949e;
}

[data-bs-theme="dark"] .btn-outline-secondary:hover {
    background-color: #21262d;
    color: #c9d1d9;
}

/* Dark badges */
[data-bs-theme="dark"] .badge.bg-light {
    background-color: #21262d !important;
    color: #c9d1d9 !important;
}

[data-bs-theme="dark"] .badge.bg-secondary {
    background-color: #30363d !important;
    color: #8b949e !important;
}

/* Dark modals */
[data-bs-theme="dark"] .modal-content {
    background-color: #161b22;
    border-color: #30363d;
    color: #e2e8f0;
}

[data-bs-theme="dark"] .modal-header {
    border-color: #21262d;
    background: rgba(22, 27, 34, 0.5);
}

[data-bs-theme="dark"] .modal-footer {
    border-color: #21262d;
}

[data-bs-theme="dark"] .modal-title {
    color: #f0f6fc;
}

/* Dark footer */
[data-bs-theme="dark"] footer.bg-dark {
    background: #010409 !important;
}

/* Dark navbar logo */
[data-bs-theme="dark"] .navbar-logo {
    filter: brightness(1.1);
}

/* Dark headings consistency */
[data-bs-theme="dark"] h1,
[data-bs-theme="dark"] h2,
[data-bs-theme="dark"] h3,
[data-bs-theme="dark"] h4,
[data-bs-theme="dark"] h5,
[data-bs-theme="dark"] h6 {
    color: #f0f6fc;
}

[data-bs-theme="dark"] .section-title {
    color: #f0f6fc;
}

[data-bs-theme="dark"] .section-subtitle {
    color: #8b949e;
}

/* Dark how-it-works and value cards */
[data-bs-theme="dark"] .how-step-card {
    background: #161b22;
    border: 1px solid #21262d;
}

[data-bs-theme="dark"] .how-step-card:hover {
    border-color: rgba(79, 70, 229, 0.35);
    background: #1c2128;
}

[data-bs-theme="dark"] .step-title {
    color: #f0f6fc;
}

[data-bs-theme="dark"] .step-description {
    color: #8b949e;
}

[data-bs-theme="dark"] .value-card {
    background: #161b22;
    border-color: #21262d;
}

/* Dark input groups */
[data-bs-theme="dark"] .input-group-text {
    background-color: #1c2128;
    border-color: #30363d;
    color: #8b949e;
}

/* Dark hr */
[data-bs-theme="dark"] hr {
    border-color: #21262d;
    opacity: 1;
}

/* Dark code blocks */
[data-bs-theme="dark"] code {
    color: #79c0ff;
    background: rgba(121, 192, 255, 0.08);
    padding: 2px 5px;
    border-radius: 4px;
}

.navbar-brand {
    font-size: 1.35rem;
    font-weight: 700;
    background: var(--glyzer-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.45rem 0.7rem;
    border-radius: 6px;
    transition: var(--glyzer-transition);
    position: relative;
    margin: 0 0.1rem;
    font-size: 0.8rem;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--glyzer-gradient);
    transition: var(--glyzer-transition);
    transform: translateX(-50%);
    border-radius: 1px;
}

.navbar-nav .nav-link:hover {
    background: rgba(var(--bs-primary-rgb), 0.1);
    color: var(--glyzer-primary) !important;
    transform: translateY(-1px);
}

.navbar-nav .nav-link:hover::after {
    width: 80%;
}

/* List and Table Enhancements */
.list-group-item {
    border-left: none;
    border-right: none;
    border-color: var(--bs-border-color);
}

.list-group-item:first-child {
    border-top: none;
}

.list-group-item:last-child {
    border-bottom: none;
}

.table th {
    border-top: none;
    font-weight: 600;
    color: var(--bs-secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Enhanced Alert System */
.alert {
    border: none;
    border-radius: var(--glyzer-border-radius);
    font-weight: 500;
    backdrop-filter: blur(10px);
    border-left: 4px solid currentColor;
    box-shadow: var(--glyzer-shadow-sm);
    margin-bottom: 1rem;
}

.alert-dismissible .btn-close {
    padding: 0.75rem 1rem;
}

.alert-container {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 1050;
    max-width: 400px;
    pointer-events: none;
}

.alert-container .alert {
    pointer-events: all;
    margin-bottom: 1rem;
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-notification {
    position: fixed;
    top: 90px;
    right: 20px;
    max-width: 350px;
    z-index: 1055;
    animation: slideInRight 0.3s ease-out;
}

.toast-notification.hiding {
    animation: slideOutRight 0.3s ease-in;
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Responsive Utilities */
@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .main-content {
        padding-top: 70px;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .btn-group-vertical .btn {
        font-size: 0.875rem;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn-lg {
        padding: 0.625rem 1.25rem;
        font-size: 1rem;
    }
}

/* Theme-Specific Adjustments */

/* Dark Theme */
[data-bs-theme="dark"] .hero-section {
    background: linear-gradient(135deg, var(--bs-gray-900) 0%, var(--bs-gray-800) 100%);
}

[data-bs-theme="dark"] .feature-icon {
    background: var(--bs-gray-800);
    color: var(--bs-light);
}

[data-bs-theme="dark"] .card {
    background-color: var(--bs-gray-900);
    border-color: var(--bs-gray-700);
}

[data-bs-theme="dark"] .list-group-item {
    background-color: transparent;
    border-color: var(--bs-gray-700);
    color: var(--bs-light);
}

/* Light Theme */
[data-bs-theme="light"] .hero-section {
    background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-info) 100%);
    color: white;
}

[data-bs-theme="light"] .feature-icon {
    background: var(--bs-primary);
    color: white;
}

[data-bs-theme="light"] .card {
    background-color: white;
    border-color: var(--bs-gray-300);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] .list-group-item {
    background-color: white;
    border-color: var(--bs-gray-300);
    color: var(--bs-dark);
}

[data-bs-theme="light"] .navbar-dark {
    background-color: var(--bs-primary) !important;
}

[data-bs-theme="light"] footer.bg-light {
    background-color: var(--bs-gray-100) !important;
    color: var(--bs-dark) !important;
}

/* Theme Toggle Button - ID Selector (complements class styles) */
#themeToggle {
    color: inherit;
    border: none;
    background: none;
    padding: 0;
    transition: all 0.15s ease-in-out;
    border-radius: 50%;
}

#themeToggle:active {
    transform: scale(0.95);
}

/* Enhanced breadcrumb styling */
.breadcrumb {
    --bs-breadcrumb-divider: '/';
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(20, 184, 166, 0.08) 100%);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    border: 1px solid rgba(99, 102, 241, 0.15);
    margin-bottom: 1.25rem;
}

.breadcrumb-item {
    font-size: 0.8rem;
    font-weight: 500;
}

.breadcrumb-item a {
    color: var(--glyzer-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
}

.breadcrumb-item a:hover {
    background: linear-gradient(135deg, var(--glyzer-primary) 0%, var(--glyzer-secondary) 100%);
    color: white;
}

.breadcrumb-item.active {
    background: var(--glyzer-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/" !important;
    color: var(--glyzer-primary) !important;
    margin: 0 0.5rem !important;
    font-weight: 400;
    opacity: 0.6;
}

.breadcrumb-item i {
    color: var(--glyzer-primary);
    margin-right: 4px;
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.focus-visible,
*:focus-visible {
    outline: 2px solid var(--glyzer-primary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Enhanced form accessibility */
.form-control:focus,
.form-select:focus,
.btn:focus {
    outline: 2px solid var(--glyzer-primary);
    outline-offset: 2px;
    border-color: var(--glyzer-primary);
    box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.25);
}

/* Skip link for keyboard navigation */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--glyzer-primary);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
    font-weight: 600;
}

.skip-link:focus {
    top: 6px;
    color: white;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid var(--bs-border-color);
    }
    
    .btn {
        border-width: 2px;
    }
    
    .breadcrumb {
        border-width: 2px;
    }
}

/* Stats Cards Enhancement */
.stats-card {
    background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.1) 0%, rgba(var(--bs-primary-rgb), 0.05) 100%);
    border: 2px solid rgba(var(--bs-primary-rgb), 0.2);
    border-radius: var(--glyzer-border-radius);
    transition: var(--glyzer-transition);
    position: relative;
    overflow: hidden;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--glyzer-gradient);
    transform: translateY(-100%);
    transition: var(--glyzer-transition);
}

.stats-card:hover::before {
    transform: translateY(0);
}

.stats-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--glyzer-shadow);
    border-color: var(--glyzer-primary);
}

.stats-card.clickable-card {
    cursor: pointer;
}

.stats-card.clickable-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--glyzer-shadow-lg);
}

.stats-card.clickable-card:active {
    transform: translateY(-1px);
    box-shadow: var(--glyzer-shadow-sm);
}

/* Hero Feature Cards */
.hero-feature-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: var(--glyzer-border-radius);
    transition: var(--glyzer-transition);
    height: 100%;
}

.hero-feature-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-feature-card .card-body {
    padding: 1.5rem;
}

.hero-feature-card h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.hero-feature-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* Content Cards Enhancement */
.content-card {
    border-radius: var(--glyzer-border-radius);
    border: 1px solid rgba(var(--bs-border-color-rgb), 0.3);
    background: rgba(var(--bs-body-bg-rgb), 0.8);
    backdrop-filter: blur(10px);
    transition: var(--glyzer-transition);
    overflow: hidden;
}

.content-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--glyzer-shadow);
    border-color: var(--glyzer-primary);
}

.content-card .card-title a {
    color: var(--bs-body-color);
    transition: var(--glyzer-transition);
    text-decoration: none;
    font-weight: 600;
}

.content-card .card-title a:hover {
    color: var(--glyzer-primary);
}

/* Badge System */
.badge {
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    letter-spacing: 0.025em;
    border: 1px solid currentColor;
    background: transparent;
}

.badge-primary {
    color: var(--glyzer-primary);
    background: rgba(var(--bs-primary-rgb), 0.1);
    border-color: var(--glyzer-primary);
}

.badge-success {
    color: var(--glyzer-success);
    background: rgba(var(--bs-success-rgb), 0.1);
    border-color: var(--glyzer-success);
}

/* Enhanced Loading and Animation States */
.fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.slide-up {
    animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.bounce-in {
    animation: bounceIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bounceIn {
    from { 
        opacity: 0; 
        transform: scale(0.3);
    }
    50% { 
        opacity: 1; 
        transform: scale(1.05);
    }
    to { 
        opacity: 1; 
        transform: scale(1);
    }
}

/* Pulse animation for important elements */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(var(--bs-primary-rgb), 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(var(--bs-primary-rgb), 0); }
    100% { box-shadow: 0 0 0 0 rgba(var(--bs-primary-rgb), 0); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bs-gray-200);
}

::-webkit-scrollbar-thumb {
    background: var(--bs-gray-400);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--bs-gray-500);
}

[data-bs-theme="dark"] ::-webkit-scrollbar-track {
    background: var(--bs-gray-800);
}

[data-bs-theme="dark"] ::-webkit-scrollbar-thumb {
    background: var(--bs-gray-600);
}

[data-bs-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: var(--bs-gray-500);
}

/* Loading Overlay */
#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.loading-content {
    text-align: center;
    background: var(--bs-body-bg);
    padding: 2rem 3rem;
    border-radius: var(--glyzer-border-radius);
    box-shadow: var(--glyzer-shadow-lg);
}

.loading-message {
    margin: 0;
    font-weight: 500;
    color: var(--bs-body-color);
}

/* Enhanced Pagination */
.pagination {
    box-shadow: var(--glyzer-shadow-sm);
    border-radius: var(--glyzer-border-radius);
    padding: 0.5rem;
    background: rgba(var(--bs-body-bg-rgb), 0.5);
    backdrop-filter: blur(10px);
}

.pagination .page-item {
    margin: 0 0.25rem;
}

.pagination .page-link {
    border-radius: var(--glyzer-border-radius-sm);
    border: 1px solid transparent;
    transition: var(--glyzer-transition);
    font-weight: 500;
}

.pagination .page-item.active .page-link {
    background: var(--glyzer-gradient);
    border-color: transparent;
    box-shadow: var(--glyzer-shadow-sm);
}

.pagination .page-link:hover {
    background: rgba(var(--bs-primary-rgb), 0.1);
    border-color: var(--glyzer-primary);
    transform: translateY(-2px);
}

/* Enhanced Empty States */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    animation: fadeIn 0.6s ease-out;
}

.empty-state-icon {
    font-size: 5rem;
    color: var(--bs-secondary);
    opacity: 0.3;
    margin-bottom: 2rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.empty-state h4 {
    color: var(--bs-secondary);
    margin-bottom: 1rem;
}

.empty-state p {
    color: var(--bs-secondary);
    max-width: 500px;
    margin: 0 auto 2rem;
}

/* Character Counter */
.character-counter {
    text-align: right;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.character-counter.text-warning {
    font-weight: 600;
}

.character-counter.text-danger {
    font-weight: 700;
}

/* Skeleton Loader */
.skeleton {
    background: linear-gradient(90deg, 
        var(--bs-gray-200) 25%, 
        var(--bs-gray-300) 50%, 
        var(--bs-gray-200) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--glyzer-border-radius-sm);
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 1rem;
    margin-bottom: 0.5rem;
}

.skeleton-title {
    height: 2rem;
    margin-bottom: 1rem;
    width: 60%;
}

.skeleton-card {
    height: 200px;
    border-radius: var(--glyzer-border-radius);
}

/* Enhanced Mobile Responsiveness for Conversation */
@media (max-width: 768px) {
    .conversation-detail .col-md-4 {
        margin-top: 2rem;
    }
    
    .message-bubble {
        max-width: 85% !important;
    }
    
    #messages-container {
        max-height: 300px !important;
    }
    
    .pagination {
        font-size: 0.875rem;
    }
    
    .pagination .page-link {
        padding: 0.375rem 0.625rem;
    }
}

/* Improved Form Feedback */
.form-control.is-valid,
.form-select.is-valid {
    border-color: var(--glyzer-success);
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2310B981' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: var(--glyzer-danger);
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23EF4444'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23EF4444' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Toast Notification Enhancements */
.toast-notification {
    box-shadow: var(--glyzer-shadow-lg);
    border-radius: var(--glyzer-border-radius);
    overflow: hidden;
}

.toast-notification .toast-header {
    background: var(--glyzer-gradient);
    color: white;
    border: none;
}

/* Smooth Transitions for All Interactive Elements */
a, button, .btn, .card, .form-control, .form-select {
    transition: var(--glyzer-transition);
}

/* Enhanced Focus States for Accessibility */
*:focus-visible {
    outline: 3px solid var(--glyzer-primary);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Reduced Motion Support */
@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;
    }
    
    .floating-card,
    .hero-circle {
        animation: none !important;
    }
    
    .activity-card:hover {
        transform: none !important;
    }
    
    .value-card:hover {
        transform: none !important;
    }
}

/* Modern Home Page Styles */
.hero-section-modern {
    background: var(--glyzer-gradient);
    padding: 50px 0 40px;
    position: relative;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-top: -80px;
    padding-top: 100px;
}

.hero-section-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(10px);
    padding: 0.625rem 1.25rem;
    border-radius: 50px;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: white;
}

.text-gradient {
    background: linear-gradient(135deg, #ffd89b 0%, var(--glyzer-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.9);
    line-height: 1.7;
    max-width: 600px;
}

.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2.5rem;
    padding: 1.5rem 2rem;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.25);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.realtime-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.9);
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.5);
    border-radius: 50px;
    width: fit-content;
}

.hero-stats > div:not(.realtime-badge) {
    display: flex;
    align-items: center;
    gap: 2rem;
}

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

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.8);
    margin-top: 0.25rem;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.3);
}

.hero-visual {
    position: relative;
    height: 400px;
}

.floating-card {
    position: absolute;
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    text-align: center;
    animation: float 3s ease-in-out infinite;
}

.floating-card.card-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-card.card-2 {
    top: 45%;
    right: 10%;
    animation-delay: 0.5s;
}

.floating-card.card-3 {
    bottom: 10%;
    left: 20%;
    animation-delay: 1s;
}

.hero-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    animation: pulse 4s ease-in-out infinite;
}

.hero-circle.circle-1 {
    width: 200px;
    height: 200px;
    top: 0;
    right: 0;
}

.hero-circle.circle-2 {
    width: 150px;
    height: 150px;
    bottom: 0;
    left: 30%;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.5; }
}

/* Value Cards */
.value-card {
    padding: 1.25rem;
    background: white;
    border-radius: 12px;
    border: 1px solid rgba(79, 70, 229, 0.15);
    border-left: 3px solid var(--glyzer-primary);
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

[data-bs-theme="dark"] .value-card {
    background: var(--bs-gray-900);
    border-color: rgba(79, 70, 229, 0.3);
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.12);
    border-color: var(--glyzer-primary);
}

.value-icon-wrapper {
    width: 42px;
    height: 42px;
    background: var(--glyzer-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.85rem;
}

.value-icon {
    color: white;
    font-size: 1.1rem;
}

.value-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--bs-body-color);
}

.value-description {
    color: var(--bs-secondary-color);
    line-height: 1.5;
    margin: 0;
    font-size: 0.8rem;
}

/* Section Styles */
.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: var(--glyzer-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    color: var(--bs-secondary-color);
    font-size: 0.9rem;
    line-height: 1.5;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.section-header h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem !important;
}

.section-header .text-muted {
    font-size: 0.75rem !important;
}

.section-header .btn-sm {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
}

/* Activity Cards */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.activity-card {
    background: white;
    border: 1px solid rgba(79, 70, 229, 0.15);
    border-left: 3px solid var(--glyzer-primary);
    border-radius: 10px;
    padding: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

[data-bs-theme="dark"] .activity-card {
    background: var(--bs-gray-900);
    border-color: rgba(79, 70, 229, 0.3);
}

.activity-card:hover {
    transform: translateX(4px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.12);
    border-color: var(--glyzer-primary);
}

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

.activity-avatar {
    width: 32px;
    height: 32px;
    background: var(--glyzer-gradient);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
}

.activity-avatar-success {
    background: linear-gradient(135deg, var(--glyzer-secondary) 0%, #059669 100%);
}

.activity-author {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--bs-body-color);
}

.activity-company {
    font-size: 0.75rem;
    color: var(--bs-secondary-color);
}

.activity-header .ms-3 {
    margin-left: 0.6rem !important;
}

.activity-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 600;
}

.badge-primary {
    background: rgba(79, 70, 229, 0.1);
    color: var(--glyzer-primary);
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--glyzer-secondary);
}

.activity-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.activity-title a {
    color: var(--bs-body-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.activity-title a:hover {
    color: var(--glyzer-primary);
}

.activity-description {
    color: var(--bs-secondary-color);
    line-height: 1.5;
    margin-bottom: 0.6rem;
    font-size: 0.8rem;
}

.activity-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(79, 70, 229, 0.1);
}

[data-bs-theme="dark"] .activity-footer {
    border-color: var(--bs-gray-700);
}

.activity-time {
    color: var(--bs-secondary-color);
    font-size: 0.7rem;
}

.activity-footer .btn-sm {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
}

/* Empty State Small */
.empty-state-small {
    text-align: center;
    padding: 2rem 1rem;
    background: white;
    border: 1px solid rgba(79, 70, 229, 0.15);
    border-radius: 10px;
}

.empty-state-small i {
    font-size: 2rem !important;
    margin-bottom: 0.75rem !important;
}

.empty-state-small h5 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.empty-state-small p {
    font-size: 0.8rem;
}

.empty-state-small .btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
}

[data-bs-theme="dark"] .empty-state-small {
    background: var(--bs-gray-900);
    border-color: var(--bs-gray-700);
}

/* Preview Cards for Non-Authenticated Users */
.preview-card {
    background: white;
    border: 1px solid rgba(79, 70, 229, 0.15);
    border-left: 3px solid var(--glyzer-primary);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.preview-card-success {
    border-left-color: var(--glyzer-secondary);
}

[data-bs-theme="dark"] .preview-card {
    background: var(--bs-gray-900);
    border-color: rgba(79, 70, 229, 0.3);
}

.preview-stats {
    margin-bottom: 1rem;
}

.preview-stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--glyzer-primary);
    line-height: 1;
}

.preview-card-success .preview-stat-number {
    color: var(--glyzer-secondary);
}

.preview-stat-label {
    font-size: 0.8rem;
    color: var(--bs-secondary-color);
    margin-top: 0.25rem;
}

.preview-industries {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.preview-industry-tag {
    padding: 0.25rem 0.5rem;
    background: rgba(79, 70, 229, 0.1);
    color: var(--glyzer-primary);
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 600;
}

.preview-industry-tag-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--glyzer-secondary);
}

.preview-industry-more {
    font-size: 0.65rem;
    color: var(--bs-secondary-color);
    padding: 0.25rem 0.5rem;
}

.preview-cta {
    padding-top: 1rem;
    border-top: 1px solid rgba(79, 70, 229, 0.1);
}

[data-bs-theme="dark"] .preview-cta {
    border-color: var(--bs-gray-700);
}

.preview-text {
    font-size: 0.8rem;
    color: var(--bs-secondary-color);
    margin-bottom: 0.75rem;
}

/* CTA Section */
/* How It Works Section */
.how-it-works-section {
    background: linear-gradient(180deg, rgba(79, 70, 229, 0.03) 0%, rgba(16, 185, 129, 0.03) 100%);
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding: 5rem 0;
}

.how-step-card {
    background: white;
    border-radius: var(--glyzer-border-radius);
    padding: 2.5rem 2rem;
    box-shadow: var(--glyzer-shadow);
    transition: var(--glyzer-transition);
    position: relative;
    height: 100%;
}

.how-step-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--glyzer-shadow-lg);
}

.step-number-circle {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: var(--glyzer-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.step-icon i {
    font-size: 2rem;
    background: var(--glyzer-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.step-description {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

[data-bs-theme="dark"] .how-it-works-section {
    background: linear-gradient(180deg, rgba(79, 70, 229, 0.08) 0%, rgba(16, 185, 129, 0.05) 100%);
}

[data-bs-theme="dark"] .how-step-card {
    background: #1e293b;
    border: 1px solid #334155;
}

[data-bs-theme="dark"] .step-title {
    color: #e2e8f0;
}

[data-bs-theme="dark"] .step-description {
    color: #94a3b8;
}

.cta-section {
    background: var(--glyzer-gradient);
    padding: 4rem 0;
    color: white;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-top: 3rem;
    margin-bottom: 3rem;
}

/* Pro Form Styles */
.pro-quick-select {
    display: flex;
    gap: 8px;
}

.pro-quick-btn {
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid rgba(79, 70, 229, 0.2);
    background: white;
    color: var(--bs-body-color);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pro-quick-btn:hover {
    border-color: var(--glyzer-primary);
    background: rgba(79, 70, 229, 0.05);
}

.pro-quick-btn.active {
    background: var(--glyzer-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

[data-bs-theme="dark"] .pro-quick-btn {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

[data-bs-theme="dark"] .pro-quick-btn:hover {
    border-color: var(--glyzer-primary);
    background: rgba(79, 70, 229, 0.1);
}

[data-bs-theme="dark"] .pro-quick-btn.active {
    background: var(--glyzer-gradient);
    color: white;
    border-color: transparent;
}

/* Quick select buttons inside forms */
.pro-field .pro-quick-btn {
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid rgba(79, 70, 229, 0.2);
    background: white;
    color: var(--bs-body-color);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pro-field .pro-quick-btn:hover {
    border-color: var(--glyzer-primary);
    background: rgba(79, 70, 229, 0.05);
}

.pro-field .pro-quick-btn.active {
    background: var(--glyzer-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

[data-bs-theme="dark"] .pro-field .pro-quick-btn {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

[data-bs-theme="dark"] .pro-field .pro-quick-btn:hover {
    border-color: var(--glyzer-primary);
    background: rgba(79, 70, 229, 0.1);
}

[data-bs-theme="dark"] .pro-field .pro-quick-btn.active {
    background: var(--glyzer-gradient);
    color: white;
    border-color: transparent;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
}

.cta-description {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.9);
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-visual {
        height: 300px;
        margin-top: 3rem;
    }
    
    .floating-card {
        padding: 1rem;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .stat-divider {
        display: none;
    }
}

@media (max-width: 767px) {
    .hero-section-modern {
        padding: 30px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
    }
    
    .cta-title {
        font-size: 1.5rem;
    }
    
    .hero-visual {
        display: none;
    }
}

/* ========================================
   COMPREHENSIVE MOBILE RESPONSIVE FIXES
   ======================================== */

/* Mobile First - Under 768px (Tablets) */
@media (max-width: 768px) {
    /* Main content adjustments */
    .main-content {
        padding-top: 70px;
        padding-left: 0;
        padding-right: 0;
    }
    
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    /* Hero Section Mobile - Clean & Compact */
    .hero-section-modern {
        padding: 24px 0 28px;
        margin-top: 0;
        text-align: center;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-badge {
        font-size: 0.6rem;
        padding: 0.3rem 0.6rem;
        margin: 0 auto 0.75rem;
        display: inline-flex;
    }
    
    .hero-title {
        font-size: 1.35rem;
        line-height: 1.25;
        margin-bottom: 0.5rem;
    }
    
    .hero-description {
        font-size: 0.8rem;
        line-height: 1.45;
        margin: 0 auto 1rem;
        max-width: 100%;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    /* Hero CTA Buttons - Compact stacked */
    .hero-content .d-flex.gap-3 {
        flex-direction: column !important;
        gap: 8px !important;
        width: 100%;
        max-width: 240px;
        margin: 0 auto;
    }
    
    .hero-content .btn-lg {
        width: 100%;
        padding: 10px 16px;
        font-size: 0.8rem;
        min-height: 42px;
        border-radius: 10px;
        font-weight: 600;
    }
    
    /* Hero Stats Mobile - Ultra minimal row */
    .hero-stats {
        padding: 0.2rem 0.4rem;
        margin-top: 0.5rem;
        border-radius: 6px;
        background: rgba(255, 255, 255, 0.04);
    }
    
    .hero-stats > div:not(.realtime-badge) {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-around;
        gap: 0;
    }
    
    .stat-item {
        padding: 0.05rem;
        text-align: center;
        flex: 1;
    }
    
    .stat-value {
        font-size: 0.55rem;
        font-weight: 700;
    }
    
    .stat-label {
        font-size: 0.32rem;
        text-transform: uppercase;
        letter-spacing: 0.15px;
        opacity: 0.65;
    }
    
    .stat-divider {
        display: none;
    }
    
    .realtime-badge {
        font-size: 0.7rem;
        padding: 0.1rem 0.4rem;
        margin-bottom: 0.15rem;
    }
    
    /* Mobile Visual Element - Compact icon row */
    .hero-visual {
        display: flex !important;
        height: auto;
        justify-content: center;
        gap: 0.6rem;
        margin-top: 1.25rem;
        padding: 0 0.5rem;
    }
    
    .floating-card {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        animation: none !important;
        padding: 0.5rem 0.4rem;
        min-width: 80px;
        text-align: center;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
    }
    
    .floating-card i {
        font-size: 1rem !important;
        margin-bottom: 0.2rem !important;
    }
    
    .floating-card .fw-semibold {
        font-size: 0.6rem;
        line-height: 1.15;
        color: #fff !important;
    }
    
    .hero-circle {
        display: none;
    }
    
    /* Value Cards Mobile - Compact horizontal layout */
    .value-card {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 0.75rem;
        margin-bottom: 0;
        text-align: left;
    }
    
    .value-icon-wrapper {
        width: 36px;
        height: 36px;
        min-width: 36px;
        margin-bottom: 0;
        border-radius: 8px;
    }
    
    .value-icon {
        font-size: 1rem;
    }
    
    .value-card-content {
        flex: 1;
    }
    
    .value-title {
        font-size: 0.85rem;
        margin-bottom: 0.15rem;
    }
    
    .value-description {
        font-size: 0.7rem;
        line-height: 1.35;
        margin-bottom: 0;
    }
    
    /* Section spacing mobile */
    .my-5 {
        margin-top: 1.5rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .my-3 {
        margin-top: 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    .section-title {
        font-size: 1.15rem;
        margin-bottom: 0.35rem;
    }
    
    .section-subtitle {
        font-size: 0.75rem;
        margin-bottom: 1rem;
    }
    
    /* Section Headers Mobile */
    .section-header {
        flex-direction: column;
        gap: 1rem;
        text-align: left;
        align-items: flex-start;
    }
    
    .section-header .btn {
        align-self: flex-start;
    }
    
    /* Cards Mobile */
    .card {
        border-radius: 12px;
    }
    
    .card-header {
        padding: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .card-footer {
        padding: 0.75rem 1rem;
    }
    
    /* Disable hover effects on touch devices */
    .card:hover {
        transform: none;
    }
    
    .content-card:hover,
    .value-card:hover,
    .activity-card:hover {
        transform: none;
    }
    
    /* Filter Sections Mobile */
    .lead-filters {
        padding: 16px !important;
        border-radius: 12px !important;
    }
    
    .lead-filters .row.g-3 {
        --bs-gutter-x: 0.75rem;
        --bs-gutter-y: 0.75rem;
    }
    
    .lead-filters .col-lg-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .lead-filters .form-control-lg,
    .lead-filters .form-select-lg {
        font-size: 1rem;
        padding: 12px 12px 12px 40px;
        min-height: 48px;
    }
    
    .lead-filters .btn {
        min-height: 44px;
        padding: 10px 16px;
    }
    
    /* Advanced filters toggle mobile */
    .lead-filters .d-flex.justify-content-between {
        flex-direction: column;
        gap: 12px;
    }
    
    .lead-filters .d-flex.gap-2 {
        width: 100%;
    }
    
    .lead-filters .d-flex.gap-2 .btn {
        flex: 1;
    }
    
    #advancedFilters .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    /* Activity Cards Mobile - Compact */
    .activity-card {
        padding: 0.6rem;
        margin-bottom: 0.35rem;
        border-radius: 8px;
    }
    
    .activity-title {
        font-size: 0.8rem;
        margin-bottom: 0.25rem;
        line-height: 1.3;
    }
    
    .activity-description {
        font-size: 0.7rem;
        margin-bottom: 0.4rem;
        line-height: 1.35;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .activity-header {
        flex-direction: row;
        gap: 0.35rem;
        align-items: flex-start;
        margin-bottom: 0.4rem;
    }
    
    .activity-header .d-flex {
        flex: 1;
    }
    
    .activity-avatar {
        width: 24px;
        height: 24px;
        flex-shrink: 0;
    }
    
    .activity-avatar i {
        font-size: 0.6rem;
    }
    
    .activity-author {
        font-size: 0.7rem;
    }
    
    .activity-company {
        font-size: 0.6rem;
    }
    
    .activity-badge {
        font-size: 0.5rem;
        padding: 0.15rem 0.35rem;
        flex-shrink: 0;
    }
    
    .activity-footer {
        flex-direction: row;
        gap: 0.5rem;
        align-items: center;
        justify-content: space-between;
    }
    
    .activity-time {
        font-size: 0.6rem;
    }
    
    .activity-footer .btn {
        flex-shrink: 0;
        font-size: 0.65rem;
        padding: 0.25rem 0.5rem;
    }
    
    /* Buttons Mobile - Touch friendly */
    .btn {
        min-height: 44px;
        padding: 10px 16px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .btn-sm {
        min-height: 40px;
        padding: 8px 14px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .btn-lg {
        min-height: 48px;
        padding: 12px 20px;
        font-size: 1rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Forms Mobile */
    .form-control,
    .form-select {
        min-height: 44px;
        font-size: 16px; /* Prevents iOS zoom on focus */
        padding: 10px 12px;
    }
    
    .form-label {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }
    
    .form-text {
        font-size: 0.8rem;
    }
    
    /* Page Headers Mobile */
    .d-flex.justify-content-between.align-items-center.mb-4 {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .d-flex.justify-content-between.align-items-center.mb-4 h2 {
        font-size: 1.5rem;
    }
    
    .d-flex.justify-content-between.align-items-center.mb-4 .btn {
        width: 100%;
    }
    
    /* How It Works Mobile */
    .how-step-card {
        padding: 1.25rem;
    }
    
    .step-number-circle {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        margin: 0 auto 0.75rem;
    }
    
    .step-icon {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .step-title {
        font-size: 1rem;
        margin: 0.5rem 0;
    }
    
    .step-description {
        font-size: 0.85rem;
    }
    
    /* Container spacing mobile */
    .container.my-5 {
        margin-top: 2rem !important;
        margin-bottom: 2rem !important;
    }
    
        /* Detail Page Mobile Optimizations */
    .row > .col-lg-8,
    .row > .col-lg-4 {
        margin-bottom: 1rem;
    }
    
    .card {
        margin-bottom: 0.75rem;
    }
    
    .card-header {
        padding: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .card-header h3 {
        font-size: 1.25rem;
    }
    
    .card-header h5 {
        font-size: 1rem;
        margin: 0;
    }
    
    .card-header h6 {
        font-size: 0.9rem;
    }
    
    .badge {
        font-size: 0.65rem;
        padding: 0.25rem 0.5rem;
    }
    
    /* Detail Info Grid Mobile */
    .row.mt-4 .col-md-6 {
        margin-bottom: 0.75rem;
    }
    
    .row.mt-4 h6 {
        font-size: 0.85rem;
        margin-bottom: 0.25rem;
    }
    
    .row.mt-4 p {
        font-size: 0.9rem;
        margin: 0;
    }
    
    /* Response styling mobile */
    .border-bottom {
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }
    
    .border-bottom h6 {
        font-size: 0.9rem;
    }
    
    .border-bottom small {
        font-size: 0.75rem;
    }
    
    .border-bottom p {
        font-size: 0.9rem;
    }
    
    /* Sidebar card mobile */
    .card .d-flex.align-items-center {
        gap: 0.5rem;
    }
    
    .card .d-flex.align-items-center i {
        font-size: 1.1rem;
    }
    
    .card .d-flex.align-items-center span {
        font-size: 0.9rem;
    }
    
    .card .d-flex.align-items-center small {
        font-size: 0.75rem;
    }
    
    /* Form mobile */
    .d-grid {
        gap: 0.5rem;
    }
    
    .d-grid .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .form-control,
    .form-select {
        font-size: 14px;
    }
    
    .form-control::placeholder {
        font-size: 13px;
        opacity: 0.6;
    }
    
    textarea.form-control {
        min-height: 100px;
        font-size: 14px;
    }
    
    textarea.form-control::placeholder {
        font-size: 13px;
    }
    
    .form-label {
        font-size: 0.9rem;
        font-weight: 500;
    }
    
    .form-text {
        font-size: 0.7rem;
    }
    
    /* Lead description text */
    p.lead {
        font-size: 0.95rem;
        line-height: 1.6;
    }

/* CTA Section Mobile */
    .cta-section {
        padding: 2.5rem 0;
        margin-top: 2rem;
        margin-bottom: 2rem;
    }
    
    .cta-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .cta-description {
        font-size: 1rem;
    }
    
    /* Navigation Mobile */
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar .container {
        align-items: center;
    }
    
    .navbar-toggler {
        min-width: 44px;
        min-height: 44px;
        padding: 6px 8px;
        border: 1px solid transparent;
        outline: none;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
        border: 1px solid transparent;
    }
    
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%234F46E5' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
        background-size: 100%;
        width: 1.5rem;
        height: 1.5rem;
    }
    
    .navbar-logo {
        max-height: 32px;
        width: auto;
    }
    
    .navbar-nav {
        gap: 0;
        margin-top: 0.5rem;
    }
    
    .navbar-nav .nav-link {
        padding: 12px 16px !important;
        font-size: 0.9rem;
        margin: 0;
        border-radius: 8px;
        display: flex;
        align-items: center;
    }
    
    .navbar-nav .nav-link i {
        width: 20px;
        text-align: center;
        margin-right: 10px;
    }
    
    .navbar-nav .dropdown-toggle {
        display: flex;
        align-items: center;
    }
    
    .navbar-nav .dropdown-toggle::after {
        display: none;
    }
    
    .navbar-collapse {
        background: var(--bs-body-bg);
        border-radius: 12px;
        margin-top: 10px;
        padding: 12px;
        border: 1px solid rgba(79, 70, 229, 0.1);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
        max-width: 100%;
    }
    
    .navbar-collapse .navbar-nav {
        flex-direction: column;
        width: 100%;
        gap: 2px;
    }
    
    .navbar-collapse .navbar-nav .nav-item {
        width: 100%;
    }
    
    .navbar-collapse .navbar-nav .nav-link {
        padding: 12px 16px !important;
        width: 100%;
        border-radius: 8px;
        transition: background 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }
    
    .navbar-collapse .navbar-nav .nav-link i {
        width: 20px;
        text-align: center;
        margin-right: 12px;
    }
    
    .navbar-collapse .navbar-nav .nav-link:hover {
        background: rgba(79, 70, 229, 0.08);
    }
    
    /* Mobile nav labels (hidden on desktop) */
    .mobile-nav-label {
        display: inline;
        margin-left: 10px;
        font-size: 0.9rem;
    }
    
    /* Theme toggle in mobile menu */
    .theme-toggle-btn.nav-link-mobile {
        width: 100%;
        display: flex;
        align-items: center;
        padding: 12px 16px;
        background: transparent;
        border: none;
        font-size: 0.9rem;
        color: var(--bs-body-color);
        border-radius: 8px;
        cursor: pointer;
        transition: background 0.2s ease;
    }
    
    .theme-toggle-btn.nav-link-mobile:hover {
        background: rgba(79, 70, 229, 0.08);
    }
    
    .theme-toggle-btn.nav-link-mobile i {
        width: 20px;
        text-align: center;
    }
    
    .navbar-collapse .dropdown-menu {
        position: static !important;
        transform: none !important;
        width: 100% !important;
        margin-top: 0 !important;
        margin-left: 0 !important;
        border: none;
        box-shadow: none;
        background: transparent;
        border-radius: 0;
        padding: 0;
    }
    
    .navbar-collapse .dropdown-menu.show {
        display: block !important;
    }
    
    .navbar-collapse .dropdown-menu li {
        list-style: none;
    }
    
    .navbar-collapse .dropdown-menu .dropdown-item {
        padding: 10px 16px 10px 32px;
        min-height: 40px;
        display: block;
        font-size: 0.9rem;
        border-radius: 0;
        margin: 0;
        background: transparent;
    }
    
    .navbar-collapse .dropdown-menu .dropdown-header {
        padding: 10px 16px 10px 32px;
        font-size: 0.85rem;
        margin-top: 0.5rem;
    }
    
    .navbar-collapse .dropdown-menu .dropdown-divider {
        margin: 0.25rem 0;
        background-color: rgba(0, 0, 0, 0.1);
    }
    
    .navbar-collapse .dropdown-menu .dropdown-item > div {
        line-height: 1.3;
    }
    
    .navbar-collapse .dropdown-menu .dropdown-item strong {
        display: block;
        font-size: 0.9rem;
    }
    
    .navbar-collapse .dropdown-menu .dropdown-item small {
        display: block;
        font-size: 0.75rem;
    }

    /* Fix mobile actions dropdown (Post button) */
    .navbar-actions-mobile .dropdown-menu {
        position: absolute !important;
        width: auto !important;
        background: white !important;
        border: 1px solid rgba(0,0,0,0.1) !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
        border-radius: 8px !important;
        padding: 8px 0 !important;
        margin-top: 10px !important;
    }

    .navbar-actions-mobile .dropdown-item {
        padding: 8px 16px !important;
        background: transparent !important;
        color: var(--bs-body-color) !important;
    }

    [data-bs-theme="dark"] .navbar-actions-mobile .dropdown-menu {
        background: #1e1e2d !important;
        border-color: rgba(255,255,255,0.1) !important;
    }

    [data-bs-theme="dark"] .navbar-actions-mobile .dropdown-item {
        color: rgba(255,255,255,0.8) !important;
    }
    
    /* Pagination Mobile */
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
    }
    
    .page-link {
        min-width: 40px;
        min-height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 8px 12px;
    }
    
    /* Badges Mobile */
    .badge {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
    
    /* Empty States Mobile */
    .empty-state-small i {
        font-size: 2.5rem !important;
    }
    
    .empty-state-small h5 {
        font-size: 1.1rem;
    }
    
    /* Breadcrumb Mobile */
    .breadcrumb {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    /* Alerts Mobile */
    .alert-container {
        left: 10px;
        right: 10px;
        max-width: none;
    }
    
    .toast-notification {
        left: 10px;
        right: 10px;
        max-width: none;
    }
    .pro-field .pro-quick-btn {
        min-height: 40px;
        flex: 1;
        font-size: 0.8rem;
    }
}

/* Small Mobile - Under 576px (Phones) */
@media (max-width: 576px) {
    /* Extra small screen adjustments */
    .main-content {
        padding-top: 65px;
        padding-left: 0;
        padding-right: 0;
    }
    
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }
    
    /* Form card optimization for mobile */
    .card {
        border-radius: 0;
        box-shadow: none;
        border: none;
    }
    
    .card-header {
        border-radius: 0;
    }
    
    .row.justify-content-center .col-12 .card {
        border-radius: 0;
    }
    
    /* Hero extra small */
    .hero-section-modern {
        padding: 20px 0 28px;
        margin-top: 0;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .hero-badge {
        font-size: 0.7rem;
    }
    
    /* Stats extra small */
    .hero-stats {
        padding: 0.875rem;
    }
    
    .stat-value {
        font-size: 1.25rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    /* Cards extra small */
    .card-body {
        padding: 0.875rem;
    }
    
    .card-header {
        padding: 0.875rem;
    }
    
    /* Section titles */
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    /* Value cards extra small */
    .value-card {
        padding: 1.25rem;
    }
    
    /* Activity cards */
    .activity-title {
        font-size: 1rem;
    }
    
    .activity-description {
        font-size: 0.85rem;
    }
    
    /* CTA extra small */
    .cta-section {
        padding: 2rem 0;
    }
    
    .cta-title {
        font-size: 1.35rem;
    }
    
    /* Filters extra small */
    .lead-filters {
        padding: 12px !important;
    }
    
    .lead-filters .form-control-lg,
    .lead-filters .form-select-lg {
        font-size: 0.95rem;
        padding: 10px 10px 10px 36px;
    }
    
    /* How it works section */
    .how-step-card {
        padding: 1.25rem;
    }
    
    .step-number {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .step-icon {
        width: 48px;
        height: 48px;
    }
    
    .step-icon i {
        font-size: 1.5rem;
    }
    
    .step-title {
        font-size: 1.1rem;
    }
    
    .step-description {
        font-size: 0.875rem;
    }
    
    /* Forms stacked buttons */
    .d-flex.justify-content-between:has(.btn) {
        flex-direction: column-reverse;
        gap: 12px;
    }
    
    .d-flex.justify-content-between:has(.btn) .btn {
        width: 100%;
    }
    .pro-field .pro-quick-btn {
        min-height: 40px;
        flex: 1;
        font-size: 0.75rem;
        padding: 6px 4px;
    }
}

/* Filter Section Styles */
.lead-filters,
.offer-filters {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, rgba(16, 185, 129, 0.08) 100%);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(79, 70, 229, 0.15);
}

.offer-filters {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(79, 70, 229, 0.08) 100%);
    border-color: rgba(16, 185, 129, 0.15);
}

.filter-icon {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    margin-left: 12px;
    color: var(--bs-secondary-color);
    font-size: 0.9rem;
    z-index: 1;
    pointer-events: none;
}

.filter-select {
    padding-left: 2.5rem;
    border: 1px solid rgba(79, 70, 229, 0.2);
    border-radius: 8px;
    background-color: white;
    transition: all 0.3s ease;
}

.offer-filters .filter-select {
    border-color: rgba(16, 185, 129, 0.2);
}

.filter-select:focus {
    border-color: var(--glyzer-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.offer-filters .filter-select:focus {
    border-color: var(--glyzer-secondary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.filter-btn {
    padding: 6px 16px;
    font-size: 0.9rem;
}

.filter-count {
    font-size: 0.85rem;
}

.filter-input {
    padding-left: 2.5rem;
    border: 1px solid rgba(79, 70, 229, 0.2);
    border-radius: 8px;
    background-color: white;
    transition: all 0.3s ease;
}

.filter-input:focus {
    border-color: var(--glyzer-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.filter-toggle {
    text-decoration: none;
    color: var(--glyzer-primary);
    font-weight: 600;
}

.filter-toggle:hover {
    color: #2563eb;
}

.filter-chevron {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.filter-toggle:hover .filter-chevron,
.filter-toggle[aria-expanded="true"] .filter-chevron {
    transform: rotate(180deg);
}

.advanced-filters-row {
    border-top: 1px solid rgba(79, 70, 229, 0.2);
}

#advancedFilters .form-control-sm,
#advancedFilters .form-select-sm {
    border: 1px solid rgba(79, 70, 229, 0.15);
    border-radius: 6px;
}

#advancedFilters .form-control-sm:focus,
#advancedFilters .form-select-sm:focus {
    border-color: var(--glyzer-primary);
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.08);
}

/* Custom responsive width utilities */
@media (min-width: 576px) {
    .w-sm-auto {
        width: auto !important;
    }
}

/* Touch device specific */
@media (hover: none) and (pointer: coarse) {
    /* Disable all hover transforms on touch devices */
    .card:hover,
    .content-card:hover,
    .value-card:hover,
    .activity-card:hover,
    .stats-card:hover,
    .how-step-card:hover,
    .btn:hover::before {
        transform: none !important;
    }
    
    /* Remove hover color changes that might be confusing */
    .navbar-nav .nav-link:hover::after {
        width: 0;
    }
    
    /* Ensure tap targets are large enough */
    .btn,
    .nav-link,
    .dropdown-item,
    .page-link,
    .form-control,
    .form-select {
        min-height: 44px;
    }
}

/* Navbar Mobile Enhancements */
@media (max-width: 991px) {
    .navbar-actions-mobile {
        display: flex !important;
        align-items: center;
        gap: 0.5rem;
        margin-right: 0.5rem;
    }
    
    .nav-btn-mobile {
        min-height: 36px !important;
        padding: 0 0.75rem !important;
        font-size: 0.8rem !important;
        border-radius: 8px !important;
    }
    
    .notification-icon-mobile {
        position: relative;
        padding: 0.5rem;
        color: var(--bs-body-color);
        font-size: 1.1rem;
    }
    
    .notification-badge-mobile {
        position: absolute;
        top: 2px;
        right: 2px;
        font-size: 0.6rem;
        padding: 2px 4px;
        border-radius: 50%;
        min-width: 16px;
        height: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .navbar-collapse {
        max-height: 70vh;
        overflow-y: auto;
    }

    .navbar-nav .nav-link {
        padding: 10px 12px !important;
        font-size: 0.85rem;
    }
}

@media (min-width: 992px) {
    .navbar-actions-mobile {
        display: none !important;
    }
}

/* Theme toggle button - match nav link styling */
.theme-toggle-btn {
    padding: 12px 16px;
    color: rgba(0,0,0,.55);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border: none;
    background: transparent;
    width: 100%;
}
.theme-toggle-btn:hover {
    color: rgba(0,0,0,.7);
}
.theme-toggle-btn i {
    width: 20px;
    text-align: center;
    margin-right: 12px;
}

@media (min-width: 992px) {
    .theme-toggle-btn {
        padding: var(--bs-nav-link-padding-y) var(--bs-nav-link-padding-x);
        width: auto;
    }
}