/* ==========================================================================
   NextGen Tech Solutions — International Enterprise Design System
   Aesthetic: Obsidian Glassmorphism, Precision Typography, Ambient Glowing Gradients
   ========================================================================== */

:root {
    --bg-base: #06080e;
    --bg-surface: rgba(13, 19, 33, 0.72);
    --bg-surface-elevated: rgba(20, 29, 48, 0.85);
    --bg-card: rgba(15, 23, 42, 0.65);
    
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(56, 189, 248, 0.35);
    --border-emerald: rgba(16, 185, 129, 0.35);

    --primary: #38bdf8;
    --primary-glow: rgba(56, 189, 248, 0.22);
    --emerald: #10b981;
    --emerald-glow: rgba(16, 185, 129, 0.22);
    --violet: #8b5cf6;
    --violet-glow: rgba(139, 92, 246, 0.22);
    --amber: #f59e0b;

    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Ambient Radial Glows */
.glow-orb {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(120px);
}
.glow-top-left {
    width: 600px;
    height: 600px;
    top: -200px;
    left: -100px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
}
.glow-bottom-right {
    width: 700px;
    height: 700px;
    bottom: -200px;
    right: -150px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.10) 0%, rgba(0, 0, 0, 0) 70%);
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* Typography Helpers */
.mono { font-family: var(--font-mono); }
.text-cyan { color: var(--primary); }
.text-emerald { color: var(--emerald); }
.text-violet { color: var(--violet); }
.text-dim { color: var(--text-dim); }

/* Navigation Bar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(6, 8, 14, 0.75);
    border-bottom: 1px solid var(--border-subtle);
    padding: 16px 0;
}
.nav-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}
.brand-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    position: relative;
    flex-shrink: 0;
    margin-right: 20px;
}
.logo-mark {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: radial-gradient(circle at 35% 25%, #182238 0%, #06080e 90%);
    border: 1px solid rgba(56, 189, 248, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.25), 0 0 45px rgba(16, 185, 129, 0.08), inset 0 1px 2px rgba(255, 255, 255, 0.35);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}
.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(1.08);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.logo-specular-glare {
    position: absolute;
    top: -60%;
    left: -60%;
    width: 220%;
    height: 220%;
    background: linear-gradient(135deg, transparent 42%, rgba(255, 255, 255, 0.35) 50%, transparent 58%);
    transform: rotate(-25deg) translateY(-100%);
    pointer-events: none;
    transition: transform 0.75s ease;
}
.brand-logo:hover .logo-mark {
    border-color: rgba(56, 189, 248, 0.95);
    box-shadow: 0 0 35px rgba(56, 189, 248, 0.55), 0 0 60px rgba(52, 211, 153, 0.25), inset 0 1px 2px rgba(255, 255, 255, 0.5);
    transform: translateY(-2px) scale(1.04);
}
.brand-logo:hover .logo-img {
    transform: scale(1.15);
}
.brand-logo:hover .logo-specular-glare {
    transform: rotate(-25deg) translateY(100%);
}
.brand-name-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-shrink: 0;
}
.brand-wordmark {
    display: inline-flex;
    align-items: center;
    gap: 0;
    font-family: 'Space Grotesk', 'Outfit', var(--font-sans);
    line-height: 1;
    margin-bottom: 4px;
    white-space: nowrap;
    width: fit-content;
}
.brand-part-next {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(180deg, #FFFFFF 20%, #E2E8F0 60%, #94A3B8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 10px rgba(255, 255, 255, 0.25));
    transition: filter 0.3s ease;
}
.brand-part-gen {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #38bdf8 0%, #60a5fa 45%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 16px rgba(56, 189, 248, 0.65));
    transition: filter 0.3s ease;
}
.brand-wordmark-sep {
    width: 2px;
    height: 15px;
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.8), rgba(255, 255, 255, 0.1));
    margin: 0 8px;
    border-radius: 2px;
    transform: rotate(15deg);
    flex-shrink: 0;
}
.brand-part-tech {
    font-family: 'Space Grotesk', var(--font-sans);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #cbd5e1;
    text-transform: uppercase;
    margin-right: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}
.brand-corp-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.35);
    padding: 2.5px 6.5px;
    border-radius: 4px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.15);
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 0;
}
.brand-subtitle-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 3px;
}
.brand-pulse-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: pulse 2s infinite;
}
.brand-subtitle {
    font-size: 9px;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 2px;
    font-family: var(--font-mono);
    text-transform: uppercase;
}
.brand-logo:hover .brand-part-gen {
    filter: drop-shadow(0 0 24px rgba(56, 189, 248, 0.95));
}
.brand-logo:hover .brand-part-next {
    filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.5));
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    white-space: nowrap;
    flex-shrink: 0;
}
.nav-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
}
.nav-link:hover {
    color: #fff;
}
.nav-action {
    flex-shrink: 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: var(--font-sans);
}
.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}
.btn-lg {
    padding: 14px 28px;
    font-size: 15px;
}
.btn-block {
    width: 100%;
}
.btn-primary {
    background: linear-gradient(135deg, #0284c7, #0ea5e9);
    color: #fff;
    border: 1px solid rgba(56, 189, 248, 0.4);
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.25);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #0369a1, #0284c7);
    box-shadow: 0 6px 28px rgba(14, 165, 233, 0.45);
    transform: translateY(-2px);
}
.btn-secondary {
    background: var(--bg-surface-elevated);
    color: var(--text-main);
    border: 1px solid var(--border-subtle);
}
.btn-secondary:hover {
    background: rgba(45, 55, 72, 0.9);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Pulse Indicator */
.pulse-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--emerald);
    box-shadow: 0 0 10px var(--emerald);
    display: inline-block;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 14px var(--emerald); }
    100% { transform: scale(0.95); opacity: 0.8; }
}

/* Hero Section */
.hero-section {
    padding: 64px 0 32px;
    text-align: center;
    position: relative;
}
.hero-container {
    max-width: 960px;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 18px;
    border-radius: 20px;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.22);
    margin-bottom: 20px;
}
.hero-badge-text {
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #38bdf8;
    font-family: var(--font-sans);
}
.hero-title {
    font-size: 48px;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -1.2px;
    margin-bottom: 18px;
    background: linear-gradient(180deg, #ffffff 40%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-description {
    font-size: 17px;
    color: var(--text-muted);
    max-width: 780px;
    margin: 0 auto 28px;
    line-height: 1.7;
}
.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

/* Metrics Strip */
.metrics-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-surface);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 20px 32px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}
.metric-item {
    text-align: center;
    flex: 1;
}
.metric-val {
    font-size: 26px;
    font-weight: 800;
    font-family: var(--font-mono);
    color: #fff;
    letter-spacing: -0.5px;
}
.metric-lbl {
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 4px;
    font-weight: 500;
}
.metric-divider {
    width: 1px;
    height: 38px;
    background: var(--border-subtle);
}

/* Sections */
.section {
    padding: 60px 0;
    position: relative;
    scroll-margin-top: 80px;
}
#practices {
    padding-top: 32px;
}
.section-dark {
    background: rgba(10, 15, 26, 0.65);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}
.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 32px;
}
.section-eyebrow {
    font-size: 11px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-family: var(--font-mono);
    margin-bottom: 8px;
    display: block;
}
.section-title {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.8px;
    color: #fff;
    margin-bottom: 14px;
}
.section-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Practices Grid */
.grid-practices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.practice-card {
    background: var(--bg-surface);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 30px 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.practice-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(56, 189, 248, 0.12);
}
.practice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    gap: 12px;
}
.practice-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    flex-shrink: 0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.icon-cyan { background: rgba(56, 189, 248, 0.12); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }
.icon-emerald { background: rgba(16, 185, 129, 0.12); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.icon-violet { background: rgba(139, 92, 246, 0.12); color: #c084fc; border: 1px solid rgba(139, 92, 246, 0.3); }
.icon-amber { background: rgba(245, 158, 11, 0.12); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.icon-indigo { background: rgba(99, 102, 241, 0.12); color: #818cf8; border: 1px solid rgba(99, 102, 241, 0.3); }
.icon-teal { background: rgba(20, 184, 166, 0.12); color: #2dd4bf; border: 1px solid rgba(20, 184, 166, 0.3); }
.icon-rose { background: rgba(244, 63, 94, 0.12); color: #fb7185; border: 1px solid rgba(244, 63, 94, 0.3); }
.icon-blue { background: rgba(59, 130, 246, 0.12); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }

.practice-lead-tag {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-dim);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: right;
}
.practice-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.35;
}
.practice-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}
.practice-features {
    list-style: none;
    margin-bottom: 24px;
}
.practice-features li {
    font-size: 12px;
    color: #cbd5e1;
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.practice-features li::before {
    content: "✓";
    color: var(--emerald);
    font-weight: 800;
    font-size: 13px;
}
.practice-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 18px;
    border-top: 1px solid var(--border-subtle);
}
.tech-pill {
    font-size: 11px;
    font-weight: 600;
    font-family: var(--font-mono);
    padding: 3px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
}

/* Solutions Matrix & Capabilities Catalog */
.catalog-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 36px;
    justify-content: center;
}
.catalog-tab {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    padding: 9px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}
.catalog-tab:hover {
    border-color: rgba(56, 189, 248, 0.4);
    color: #fff;
    background: rgba(56, 189, 248, 0.08);
}
.catalog-tab.active {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2) 0%, rgba(52, 211, 153, 0.2) 100%);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.25);
}

.grid-catalog {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}
.catalog-card {
    background: rgba(10, 14, 26, 0.7);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(16px);
    position: relative;
    overflow: hidden;
}
.catalog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.catalog-card:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), 0 0 24px rgba(56, 189, 248, 0.15);
}
.catalog-card:hover::before {
    opacity: 1;
}
.catalog-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}
.cat-badge {
    font-size: 10px;
    font-weight: 700;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 3px 8px;
    border-radius: 4px;
}
.cat-fintech { background: rgba(56, 189, 248, 0.12); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }
.cat-ai { background: rgba(244, 63, 94, 0.12); color: #fb7185; border: 1px solid rgba(244, 63, 94, 0.3); }
.cat-cloud { background: rgba(16, 185, 129, 0.12); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.cat-data { background: rgba(168, 85, 247, 0.12); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }
.cat-web3 { background: rgba(245, 158, 11, 0.12); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.cat-web { background: rgba(14, 165, 233, 0.12); color: #38bdf8; border: 1px solid rgba(14, 165, 233, 0.3); }
.cat-mobile { background: rgba(52, 211, 153, 0.12); color: #34d399; border: 1px solid rgba(52, 211, 153, 0.3); }

.cat-level {
    font-size: 11px;
    color: var(--text-dim);
    font-family: var(--font-mono);
}
.catalog-item-title {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.35;
}
.catalog-item-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 18px;
    flex-grow: 1;
}
.catalog-tech-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
}
.catalog-tech-pills span {
    font-size: 10.5px;
    font-family: var(--font-mono);
    color: var(--text-dim);
    background: rgba(255, 255, 255, 0.04);
    padding: 2px 7px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.catalog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.catalog-spec {
    font-size: 11px;
    font-family: var(--font-mono);
    color: var(--emerald);
}
.catalog-action-btn {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}
.catalog-action-btn:hover {
    color: #fff;
    transform: translateX(3px);
}

/* Technology Ecosystem Matrix */
.tech-ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}
.ecosystem-cluster {
    background: rgba(10, 15, 26, 0.65);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 26px;
    backdrop-filter: blur(16px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}
.ecosystem-cluster:hover {
    border-color: rgba(56, 189, 248, 0.35);
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(56, 189, 248, 0.1);
}
.cluster-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.cluster-icon {
    font-size: 20px;
}
.cluster-title {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.2px;
}
.cluster-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 18px;
}
.cluster-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.eco-tag {
    font-size: 11px;
    font-family: var(--font-mono);
    font-weight: 600;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 4px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
}
.ecosystem-cluster:hover .eco-tag {
    border-color: rgba(56, 189, 248, 0.25);
    background: rgba(56, 189, 248, 0.06);
    color: #f1f5f9;
}

/* Trust Grid */
.grid-trust {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.trust-box {
    background: var(--bg-surface);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
}
.trust-icon {
    font-size: 32px;
    margin-bottom: 16px;
}
.trust-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}
.trust-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Estimator */
.estimator-card {
    background: var(--bg-surface);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 36px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 36px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.control-group {
    margin-bottom: 28px;
}
.control-label {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    display: block;
    margin-bottom: 12px;
    letter-spacing: -0.2px;
}
.toggle-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.toggle-btn {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    padding: 10px 18px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.toggle-btn:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}
.toggle-btn.active {
    background: rgba(56, 189, 248, 0.15);
    border-color: var(--primary);
    color: #7dd3fc;
    box-shadow: 0 0 16px var(--primary-glow);
}

.tier-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.tier-card {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.tier-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
}
.tier-card.active {
    border-color: var(--emerald);
    background: rgba(16, 185, 129, 0.1);
    box-shadow: 0 0 16px var(--emerald-glow);
}
.tier-badge {
    font-size: 10px;
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--emerald);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.tier-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}
.tier-desc {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.4;
}

.estimator-output {
    background: rgba(3, 7, 18, 0.7);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.output-header {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 14px;
    margin-bottom: 20px;
    letter-spacing: -0.2px;
}
.output-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 13px;
}
.output-lbl {
    color: var(--text-muted);
}
.output-val {
    font-weight: 700;
    font-family: var(--font-mono);
    text-align: right;
}

/* Custom Scope & AI Feasibility Lab */
.custom-triage-card {
    background: var(--bg-surface);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: var(--radius-xl);
    padding: 36px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 36px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), 0 0 30px rgba(56, 189, 248, 0.08);
    position: relative;
    overflow: hidden;
}
.custom-triage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #38bdf8, #10b981, transparent);
}
.triage-badge-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 16px;
}
.triage-textarea {
    width: 100%;
    background: rgba(3, 7, 18, 0.85);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    color: #f8fafc;
    font-family: var(--font-sans);
    font-size: 13.5px;
    line-height: 1.6;
    resize: vertical;
    transition: all 0.25s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}
.triage-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 16px var(--primary-glow), inset 0 2px 4px rgba(0, 0, 0, 0.3);
}
.triage-textarea::placeholder {
    color: rgba(148, 163, 184, 0.45);
    font-style: normal;
}
.triage-preset-chips {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 14px 0 24px;
}
.chip-label {
    font-size: 11px;
    color: var(--text-dim);
    font-family: var(--font-mono);
    text-transform: uppercase;
}
.preset-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 11.5px;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.preset-chip:hover {
    color: #fff;
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.4);
}
.preset-chip.active {
    color: #fff;
    background: rgba(56, 189, 248, 0.22);
    border-color: rgba(56, 189, 248, 0.65);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

/* File Upload & Document Attachment Styles */
.file-upload-wrapper {
    margin: 14px 0 18px;
    width: 100%;
}
.file-input-hidden {
    display: none !important;
}
.file-upload-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(56, 189, 248, 0.35);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}
.file-upload-btn:hover {
    background: rgba(56, 189, 248, 0.08);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.15);
}
.file-preview-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.45);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12.5px;
    color: #fff;
    margin-top: 4px;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.15);
}
.file-preview-chip .file-name {
    font-weight: 600;
    color: var(--primary);
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.file-preview-chip .file-size {
    color: var(--text-dim);
    font-size: 11px;
}
.file-remove-btn {
    background: transparent;
    border: none;
    color: #f43f5e;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    margin-left: 6px;
    transition: all 0.2s ease;
}
.file-remove-btn:hover {
    transform: scale(1.25);
    color: #fb7185;
}
.triage-dossier-col {
    background: rgba(3, 7, 18, 0.75);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.dossier-empty-state {
    text-align: center;
    padding: 30px 10px;
}
.dossier-empty-icon {
    font-size: 36px;
    margin-bottom: 12px;
    opacity: 0.7;
    animation: pulse 2.5s infinite;
}
.dossier-empty-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}
.dossier-empty-desc {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 320px;
    margin: 0 auto;
}
.dossier-badge-wrap {
    margin-bottom: 16px;
}
.verdict-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}
.verdict-accepted {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.45);
    color: #34d399;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}
.verdict-declined {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.45);
    color: #f87171;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
}
.tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}
.tier-badge-micro {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.45);
    color: #34d399;
}
.tier-badge-standard {
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.45);
    color: #38bdf8;
}
.tier-badge-advanced {
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.45);
    color: #c084fc;
}
.tier-badge-enterprise {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.45);
    color: #fbbf24;
}
.tier-badge-clarification {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.5);
    color: #fbbf24;
    animation: clarificationPulse 2s infinite ease-in-out;
}
@keyframes clarificationPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
    50% { box-shadow: 0 0 12px 2px rgba(245, 158, 11, 0.25); }
}
.dossier-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
}
.dossier-spec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 12px;
}
.spec-box-lbl {
    font-size: 10.5px;
    color: var(--text-dim);
    font-family: var(--font-mono);
    text-transform: uppercase;
}
.spec-box-val {
    font-size: 12.5px;
    font-weight: 700;
    color: #fff;
    margin-top: 2px;
    font-family: var(--font-mono);
}
.dossier-notes {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 18px;
    padding: 10px 14px;
    border-left: 3px solid var(--primary);
    background: rgba(56, 189, 248, 0.05);
    border-radius: 0 6px 6px 0;
}
.dossier-declined-notes {
    font-size: 12px;
    color: #fca5a5;
    line-height: 1.6;
    margin-bottom: 18px;
    padding: 10px 14px;
    border-left: 3px solid #ef4444;
    background: rgba(239, 68, 68, 0.08);
    border-radius: 0 6px 6px 0;
}
.dossier-stack-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
}

/* Clarification Dossier & Interactive Option Cards */
.clarification-question-box {
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.6);
    border-left: 3px solid #38bdf8;
    border-radius: 0 8px 8px 0;
    margin-bottom: 16px;
}
.clarification-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
@media (max-width: 640px) {
    .clarification-grid {
        grid-template-columns: 1fr;
    }
}
.clarification-card {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 10px;
    padding: 14px;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.clarification-card:hover {
    border-color: #38bdf8;
    background: rgba(30, 41, 59, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(56, 189, 248, 0.18);
}
.clarification-card-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}
.clarification-icon {
    font-size: 22px;
    line-height: 1;
    flex-shrink: 0;
}
.clarification-card-titles {
    flex: 1;
}
.clarification-card-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.1px;
}
.clarification-card-sub {
    font-size: 11.5px;
    color: var(--text-dim);
    line-height: 1.4;
    margin-top: 2px;
}
.clarification-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    margin-bottom: 10px;
}
.clarification-meta-pill {
    font-size: 10.5px;
    font-family: var(--font-mono);
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 4px;
    color: #cbd5e1;
}
.clarification-meta-pill .meta-lbl {
    color: var(--text-dim);
    margin-right: 2px;
}
.clarification-meta-pill.pill-emerald {
    border-color: rgba(52, 211, 153, 0.3);
    color: #34d399;
    background: rgba(16, 185, 129, 0.08);
}
.clarification-card-btn {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    font-size: 11.5px;
    font-weight: 600;
    color: #38bdf8;
    transition: color 0.15s ease;
}
.clarification-card:hover .clarification-card-btn {
    color: #7dd3fc;
}
.input-pulse-highlight {
    animation: inputPulseGlow 1.2s ease-out;
}
@keyframes inputPulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.8);
        border-color: #38bdf8;
    }
    50% {
        box-shadow: 0 0 0 10px rgba(56, 189, 248, 0);
        border-color: #38bdf8;
    }
    100% {
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0);
    }
}

/* Direct Interactive Chat Buttons inside Contact Form */
.form-direct-chat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    height: 46px;
}
@media (max-width: 640px) {
    .form-direct-chat-grid {
        grid-template-columns: 1fr;
        height: auto;
    }
}
.form-chat-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    padding: 6px 12px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
    cursor: pointer;
}
.wa-chat-btn {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.45);
    color: #34d399;
}
.wa-chat-btn:hover {
    background: rgba(16, 185, 129, 0.22);
    border-color: #34d399;
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.35);
    transform: translateY(-1px);
    color: #6ee7b7;
}
.tg-chat-btn {
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.45);
    color: #38bdf8;
}
.tg-chat-btn:hover {
    background: rgba(56, 189, 248, 0.22);
    border-color: #38bdf8;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.35);
    transform: translateY(-1px);
    color: #7dd3fc;
}
.chat-btn-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    text-align: left;
}
.chat-btn-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.chat-btn-sub {
    font-size: 11.5px;
    font-family: var(--font-mono);
    opacity: 0.95;
}

/* Contact Card & Form */
.contact-card {
    background: var(--bg-surface);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 40px;
    max-width: 860px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
.form-group {
    margin-bottom: 20px;
}
.form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 8px;
}
.form-input, .form-select, .form-textarea {
    width: 100%;
    background: rgba(3, 7, 18, 0.8);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    color: #fff;
    font-family: var(--font-sans);
    font-size: 14px;
    transition: all 0.2s ease;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 12px var(--primary-glow);
}
.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
}
.assurance-note {
    font-size: 12px;
    color: var(--text-dim);
    max-width: 440px;
    line-height: 1.5;
}

.success-box {
    text-align: center;
    padding: 40px 20px;
}
.success-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    border: 2px solid var(--emerald);
    color: var(--emerald);
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.success-title {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}
.success-msg {
    font-size: 15px;
    color: var(--text-muted);
    max-width: 580px;
    margin: 0 auto 24px;
}
.success-meta {
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 28px;
}

/* Footer */
.footer {
    background: #030408;
    border-top: 1px solid var(--border-subtle);
    padding: 70px 0 30px;
    position: relative;
    z-index: 10;
}
.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}
.footer-tagline {
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.6;
    margin: 16px 0 16px;
    max-width: 340px;
}
.footer-locations {
    font-size: 11px;
    font-family: var(--font-mono);
    color: var(--primary);
    letter-spacing: 0.5px;
}
.footer-heading {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 16px;
}
.footer-links {
    list-style: none;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}
.footer-links a:hover {
    color: #fff;
}
.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    padding-top: 24px;
}
.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.copyright {
    font-size: 12px;
    color: var(--text-dim);
}
.footer-badge-item {
    font-size: 12px;
    font-family: var(--font-mono);
    color: var(--emerald);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .hero-title { font-size: 36px; }
    .metrics-strip { flex-direction: column; gap: 20px; }
    .metric-divider { display: none; }
    .estimator-card { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr 1fr; }
    .tier-cards { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════
   NextGen Live Engineering Desk Chat Widget
   ═══════════════════════════════════════════════════════════════════ */

.live-chat-launcher {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99990;
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(14, 22, 45, 0.95), rgba(8, 14, 30, 0.95));
    border: 1px solid rgba(0, 229, 255, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 229, 255, 0.25);
    backdrop-filter: blur(12px);
    padding: 10px 18px 10px 12px;
    border-radius: 50px;
    cursor: pointer;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.3px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
}

.live-chat-launcher:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: #00e5ff;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 229, 255, 0.4);
}

.chat-launcher-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00e5ff, #0088ff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #040814;
    flex-shrink: 0;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.6);
}

.chat-launcher-pulse {
    position: absolute;
    top: 6px;
    left: 8px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 229, 255, 0.35);
    animation: chatPulseRing 2.2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes chatPulseRing {
    0% { transform: scale(0.8); opacity: 0.8; }
    50% { transform: scale(1.4); opacity: 0; }
    100% { transform: scale(1.4); opacity: 0; }
}

.chat-launcher-badge {
    background: #ff1744;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(255, 23, 68, 0.6);
}

.live-chat-widget {
    position: fixed;
    bottom: 84px;
    right: 24px;
    width: 380px;
    height: 520px;
    max-height: calc(100vh - 120px);
    background: rgba(8, 12, 24, 0.96);
    border: 1px solid rgba(0, 229, 255, 0.25);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.75), 0 0 35px rgba(0, 229, 255, 0.15);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 99995;
    transform: translateY(25px) scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: all 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.live-chat-widget.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.chat-widget-header {
    background: linear-gradient(135deg, rgba(16, 26, 52, 0.95), rgba(9, 15, 32, 0.95));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-header-avatar {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: visible;
}

.chat-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid #00e5ff;
}

.chat-status-dot {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #00e676;
    border: 2px solid #080c18;
    box-shadow: 0 0 8px #00e676;
}

.chat-header-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.2px;
}

.chat-header-subtitle {
    font-size: 11px;
    color: #00e5ff;
    font-family: var(--font-mono);
    display: flex;
    align-items: center;
    gap: 5px;
}

.chat-close-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: all 0.2s ease;
}

.chat-close-btn:hover {
    background: rgba(255, 23, 68, 0.2);
    color: #ff1744;
    border-color: rgba(255, 23, 68, 0.4);
}

.chat-visitor-bar {
    background: rgba(14, 20, 38, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 8px 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.chat-visitor-input {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 11px;
    color: #fff;
    outline: none;
    transition: border-color 0.2s;
}

.chat-visitor-input:focus {
    border-color: #00e5ff;
}

.chat-messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-behavior: smooth;
}

.chat-messages-container::-webkit-scrollbar {
    width: 4px;
}
.chat-messages-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.chat-msg {
    max-width: 82%;
    display: flex;
    flex-direction: column;
    animation: chatMsgFadeIn 0.25s ease-out;
}

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

.chat-msg-client {
    align-self: flex-end;
    align-items: flex-end;
}

.chat-msg-operator {
    align-self: flex-start;
    align-items: flex-start;
}

.chat-bubble {
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 13px;
    line-height: 1.45;
    word-break: break-word;
}

.chat-msg-client .chat-bubble {
    background: linear-gradient(135deg, #00d2ff, #0077ff);
    color: #060b18;
    font-weight: 500;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 119, 255, 0.25);
}

.chat-msg-operator .chat-bubble {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f0f4fc;
    border-bottom-left-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.chat-msg-meta {
    font-size: 10px;
    color: var(--text-dim);
    margin-top: 4px;
    padding: 0 4px;
    font-family: var(--font-mono);
}

.chat-input-row {
    padding: 12px 14px;
    background: rgba(10, 15, 32, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-msg-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 10px 16px;
    color: #fff;
    font-size: 13px;
    outline: none;
    transition: all 0.2s ease;
}

.chat-msg-input:focus {
    border-color: #00e5ff;
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.25);
}

.chat-send-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00e5ff, #0088ff);
    border: none;
    color: #040814;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 229, 255, 0.3);
}

.chat-send-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 18px rgba(0, 229, 255, 0.5);
}

.chat-send-btn:active {
    transform: scale(0.95);
}

/* Chat Document Attachment Controls */
.chat-attach-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.chat-attach-btn:hover {
    color: #00e5ff;
    border-color: rgba(0, 229, 255, 0.4);
    background: rgba(0, 229, 255, 0.12);
    transform: scale(1.06);
}

.chat-attach-btn.has-file {
    color: #00e5ff;
    border-color: #00e5ff;
    background: rgba(0, 229, 255, 0.2);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
}

/* Document Attachment Selection Preview Bar */
.chat-attachment-preview-bar {
    padding: 8px 14px;
    background: rgba(6, 11, 25, 0.98);
    border-top: 1px solid rgba(0, 229, 255, 0.2);
    animation: slideUpAttachment 0.2s ease-out;
}

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

.chat-attachment-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 12px;
    padding: 6px 10px;
}

.chat-chip-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.chat-chip-meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.chat-chip-name {
    font-size: 11.5px;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-chip-size {
    font-size: 9.5px;
    color: #94a3b8;
    font-family: var(--font-mono);
}

.chat-chip-remove-btn {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #94a3b8;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    flex-shrink: 0;
}

.chat-chip-remove-btn:hover {
    background: rgba(239, 68, 68, 0.25);
    color: #ef4444;
}

/* Chat Message Document Card */
.chat-attachment-card {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    padding: 9px 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.2s ease;
}

.chat-attachment-card:hover {
    border-color: rgba(0, 229, 255, 0.5);
    background: rgba(0, 229, 255, 0.08);
    transform: translateY(-1px);
}

.chat-msg-operator .chat-attachment-card {
    background: rgba(0, 0, 0, 0.25);
    border-color: rgba(0, 229, 255, 0.2);
}

.attachment-file-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.attachment-details {
    flex: 1;
    min-width: 0;
}

.attachment-title {
    font-size: 12px;
    font-weight: 600;
    color: #38bdf8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.attachment-meta-info {
    font-size: 10px;
    color: #94a3b8;
    margin-top: 2px;
    font-family: var(--font-mono);
}

.attachment-action-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.chat-attachment-card:hover .attachment-action-icon {
    background: #38bdf8;
    color: #040814;
}

.chat-attachment-img-preview {
    display: block;
    max-width: 100%;
    max-height: 180px;
    border-radius: 8px;
    margin-top: 8px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: transform 0.2s;
}

.chat-attachment-img-preview:hover {
    transform: scale(1.02);
}

@media (max-width: 600px) {
    .live-chat-widget {
        right: 12px;
        left: 12px;
        width: auto;
        bottom: 80px;
        height: 75vh;
    }
    .live-chat-launcher {
        bottom: 16px;
        right: 16px;
        padding: 8px 14px 8px 10px;
    }
}
