/* ==============================================================================
   ZYNVO B2B DATA MARKETPLACE & INTELLIGENCE PLATFORM
   Premium Stitch MCP Design System Tokens & High-Contrast Mobile UX
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@500;600;700;800&display=swap');
@import url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css');
@import url('https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css');

:root {
    --zynvo-bg-dark: #0A1128;
    --zynvo-bg-card: #141E38;
    --zynvo-bg-surface: #1C2A4F;
    --zynvo-border: #23345A;
    --zynvo-primary: #00F0FF;
    --zynvo-primary-hover: #00C8D6;
    --zynvo-secondary: #10B981;
    --zynvo-accent: #3B82F6;
    --zynvo-text-main: #F8FAFC;
    --zynvo-text-muted: #94A3B8;
    --zynvo-text-dim: #64748B;
    --zynvo-radius: 10px;
    --font-heading: 'Space Grotesk', -apple-system, sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;
}

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

body {
    background-color: var(--zynvo-bg-dark);
    background-image: 
        radial-gradient(at 15% 15%, rgba(0, 240, 255, 0.05) 0px, transparent 40%),
        radial-gradient(at 85% 25%, rgba(59, 130, 246, 0.06) 0px, transparent 45%),
        radial-gradient(at 50% 80%, rgba(16, 185, 129, 0.04) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--zynvo-text-main);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
}

img, svg, video {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4, h5, h6, .brand-font {
    font-family: var(--font-heading);
    color: #FFFFFF !important;
    font-weight: 700;
    letter-spacing: -0.025em;
    word-break: break-word;
}

p, span, li, label {
    word-break: break-word;
}

.text-muted {
    color: #94A3B8 !important;
}

.text-white {
    color: #FFFFFF !important;
}

a {
    color: var(--zynvo-primary);
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}
a:hover {
    color: var(--zynvo-primary-hover);
}

/* -----------------------------------------------------------------------------
   NAVBAR
   ----------------------------------------------------------------------------- */
.zynvo-navbar {
    background-color: rgba(10, 17, 40, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(42, 59, 104, 0.8);
    padding: 14px 0;
}

.zynvo-logo {
    font-family: var(--font-heading);
    font-size: 21px;
    font-weight: 800;
    color: #FFFFFF !important;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.03em;
}
.zynvo-logo span {
    color: var(--zynvo-primary);
    font-weight: 600;
}
.zynvo-logo .verified-dot {
    width: 8px;
    height: 8px;
    background-color: var(--zynvo-secondary);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px var(--zynvo-secondary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.nav-link {
    color: #CBD5E1 !important;
    font-weight: 500;
    padding: 8px 14px !important;
    font-size: 14px;
    border-radius: 6px;
    transition: all 0.2s;
}
.nav-link:hover, .nav-link.active {
    color: #FFFFFF !important;
    background-color: rgba(0, 240, 255, 0.08);
}

/* -----------------------------------------------------------------------------
   BUTTONS & BADGES (HIGH CONTRAST)
   ----------------------------------------------------------------------------- */
.btn-zynvo-primary {
    background: linear-gradient(135deg, #00F0FF 0%, #0099FF 100%);
    color: #0A1128 !important;
    font-weight: 700;
    border: none;
    border-radius: var(--zynvo-radius);
    padding: 10px 22px;
    box-shadow: 0 4px 14px rgba(0, 240, 255, 0.25);
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.btn-zynvo-primary:hover {
    box-shadow: 0 6px 20px rgba(0, 240, 255, 0.45);
    transform: translateY(-2px);
    color: #050B1E !important;
}

.btn-zynvo-outline {
    border: 1px solid var(--zynvo-border);
    background-color: rgba(20, 30, 56, 0.7);
    backdrop-filter: blur(8px);
    color: #F8FAFC !important;
    font-weight: 600;
    border-radius: var(--zynvo-radius);
    padding: 9px 18px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.btn-zynvo-outline:hover {
    border-color: var(--zynvo-primary);
    background-color: rgba(0, 240, 255, 0.15);
    color: #FFFFFF !important;
    transform: translateY(-1px);
}

.badge-verified {
    background: rgba(16, 185, 129, 0.2);
    color: #10B981 !important;
    border: 1px solid rgba(16, 185, 129, 0.5);
    padding: 4px 10px;
    font-weight: 700;
    font-size: 11.5px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-sector {
    background: rgba(59, 130, 246, 0.2);
    color: #93C5FD !important;
    border: 1px solid rgba(59, 130, 246, 0.4);
    padding: 4px 10px;
    font-size: 11.5px;
    font-weight: 700;
    border-radius: 6px;
}

/* -----------------------------------------------------------------------------
   CARDS & FORMS (NO OVERFLOW + HIGH VISIBILITY)
   ----------------------------------------------------------------------------- */
.zynvo-card {
    background-color: rgba(20, 30, 56, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--zynvo-border);
    border-radius: var(--zynvo-radius);
    padding: 24px;
    min-width: 0;
    word-break: break-word;
    overflow-wrap: anywhere;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.zynvo-card:hover {
    border-color: rgba(0, 240, 255, 0.45);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.zynvo-card-static {
    background-color: rgba(20, 30, 56, 0.85);
    border: 1px solid var(--zynvo-border);
    border-radius: var(--zynvo-radius);
    padding: 24px;
    min-width: 0;
}

.form-control, .form-select {
    background-color: #0C142B !important;
    border: 1px solid var(--zynvo-border) !important;
    color: #FFFFFF !important;
    border-radius: var(--zynvo-radius);
    padding: 10px 14px;
    font-size: 14px;
}
.form-control::placeholder {
    color: #64748B !important;
}
.form-control:focus, .form-select:focus {
    background-color: #0C142B !important;
    border-color: var(--zynvo-primary) !important;
    color: #FFFFFF !important;
    box-shadow: 0 0 0 0.25rem rgba(0, 240, 255, 0.2) !important;
}
.form-select option {
    background-color: #0C142B;
    color: #FFFFFF;
}

.input-group-text {
    background-color: #121C38 !important;
    border-color: var(--zynvo-border) !important;
    color: #94A3B8 !important;
}

/* HIGH-CONTRAST ALERTS */
.alert {
    border-radius: var(--zynvo-radius);
    border-width: 1px;
    font-weight: 500;
}
.alert-success {
    background: rgba(16, 185, 129, 0.15) !important;
    border-color: #10B981 !important;
    color: #34D399 !important;
}
.alert-danger, .alert-error {
    background: rgba(239, 68, 68, 0.15) !important;
    border-color: #EF4444 !important;
    color: #F87171 !important;
}
.alert-info {
    background: rgba(0, 240, 255, 0.15) !important;
    border-color: #00F0FF !important;
    color: #38BDF8 !important;
}
.alert-warning {
    background: rgba(245, 158, 11, 0.15) !important;
    border-color: #F59E0B !important;
    color: #FBBF24 !important;
}

/* -----------------------------------------------------------------------------
   HERO & METRICS
   ----------------------------------------------------------------------------- */
.hero-section {
    padding: 70px 0 50px 0;
    position: relative;
}

.hero-glow-bg {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: min(650px, 90vw);
    height: 350px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.12) 0%, rgba(59, 130, 246, 0.08) 50%, transparent 75%);
    filter: blur(60px);
    z-index: -1;
    pointer-events: none;
}

.stat-box {
    text-align: center;
    padding: 18px;
    border-right: 1px solid var(--zynvo-border);
}
.stat-box:last-child {
    border-right: none;
}
.stat-number {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    color: var(--zynvo-primary);
    letter-spacing: -0.02em;
}

.brand-marquee-bar {
    padding: 24px 0;
    border-top: 1px solid var(--zynvo-border);
    border-bottom: 1px solid var(--zynvo-border);
    background: rgba(10, 17, 40, 0.7);
}
.client-logo-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #CBD5E1;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    opacity: 0.9;
}

/* -----------------------------------------------------------------------------
   TABLES & RESPONSIVE CONTAINERS
   ----------------------------------------------------------------------------- */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.table-zynvo {
    color: var(--zynvo-text-main);
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    min-width: 600px;
}
.table-zynvo th {
    background-color: #172447;
    color: #94A3B8;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 13px 16px;
    border-bottom: 2px solid var(--zynvo-border);
}
.table-zynvo td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--zynvo-border);
    font-size: 13.5px;
    color: #F1F5F9;
}
.table-zynvo tr:hover td {
    background-color: rgba(0, 240, 255, 0.05);
}

/* -----------------------------------------------------------------------------
   FLOATING APP-LIKE BOTTOM MENU (MOBILE VIEW)
   ----------------------------------------------------------------------------- */
.zynvo-mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 64px;
    background: rgba(10, 17, 40, 0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid rgba(0, 240, 255, 0.3);
    box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.65);
    z-index: 1040;
    padding: 0 10px;
}

.mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #94A3B8 !important;
    font-size: 10.5px;
    font-weight: 600;
    transition: all 0.2s;
    position: relative;
    padding: 6px 0;
}
.mobile-nav-item i {
    font-size: 20px;
    line-height: 1.1;
    margin-bottom: 2px;
}
.mobile-nav-item.active, .mobile-nav-item:hover {
    color: var(--zynvo-primary) !important;
}
.mobile-nav-item.active i {
    color: var(--zynvo-primary);
    transform: scale(1.1);
}

.mobile-badge-count {
    position: absolute;
    top: 4px;
    right: 22%;
    background: #00F0FF;
    color: #0A1128;
    font-size: 9px;
    font-weight: 800;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* -----------------------------------------------------------------------------
   VISITOR LIVE CHAT WIDGET
   ----------------------------------------------------------------------------- */
.zynvo-chat-widget-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00F0FF 0%, #0080FF 100%);
    color: #0A1128;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 6px 25px rgba(0, 240, 255, 0.45);
    cursor: pointer;
    z-index: 1050;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.zynvo-chat-widget-btn:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.6);
}

.zynvo-chat-modal {
    position: fixed;
    bottom: 96px;
    right: 24px;
    width: 380px;
    max-height: 550px;
    background-color: #111B38;
    border: 1px solid var(--zynvo-border);
    border-radius: 14px;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.7);
    display: none;
    flex-direction: column;
    z-index: 1050;
    overflow: hidden;
}
.chat-header {
    background-color: #0C142B;
    padding: 16px;
    border-bottom: 1px solid var(--zynvo-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.chat-body {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    max-height: 360px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: #0A1128;
}
.chat-msg {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.4;
}
.chat-msg-admin {
    background-color: #1E2E59;
    color: #FFFFFF;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    border: 1px solid #2B3F73;
}
.chat-msg-visitor {
    background-color: #00F0FF;
    color: #0A1128;
    font-weight: 600;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}
.chat-footer {
    padding: 12px;
    background-color: #0C142B;
    border-top: 1px solid var(--zynvo-border);
}

/* -----------------------------------------------------------------------------
   FOOTER
   ----------------------------------------------------------------------------- */
.zynvo-footer {
    background-color: #060B1A;
    border-top: 1px solid var(--zynvo-border);
    padding: 55px 0 32px 0;
    margin-top: 70px;
}
.footer-title {
    color: #FFFFFF !important;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a {
    color: #94A3B8;
    font-size: 14px;
}
.footer-links a:hover {
    color: var(--zynvo-primary);
}

/* -----------------------------------------------------------------------------
   RESPONSIVENESS & MOBILE APP FIXES
   ----------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
    body {
        padding-bottom: 74px; /* Space for floating mobile bottom bar */
    }
    
    .zynvo-mobile-bottom-nav {
        display: flex;
        align-items: center;
        justify-content: space-around;
    }

    .zynvo-chat-widget-btn {
        bottom: 80px; /* Float above mobile bottom bar */
        right: 16px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .zynvo-chat-modal {
        width: calc(100vw - 32px);
        right: 16px;
        bottom: 140px;
        max-height: 480px;
    }

    .hero-section {
        padding: 40px 0 30px 0;
    }

    h1.display-4 {
        font-size: 28px !important;
        line-height: 1.25 !important;
    }

    .lead {
        font-size: 15px !important;
    }

    .stat-box {
        border-right: none;
        border-bottom: 1px solid var(--zynvo-border);
        padding: 14px;
    }

    .zynvo-card {
        padding: 18px;
    }
}
