.sector-hero-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 140px 0 80px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: background-color 0.7s ease;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.sector-hero-bg {
    position: absolute;
    inset: 0;
    opacity: 0.2;
    pointer-events: none;
}

.sector-hero-content {
    container-type: inline-size;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

@media (max-width: 1024px) {
    .sector-hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Voice Interaction Panel (Transparent) */
.voice-interaction-panel {
    border-radius: 2rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 600px;
    background: transparent !important;
    /* Force transparent override */
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.chat-header {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    /* Softer line */
    display: flex;
    align-items: center;
    gap: 16px;
}

.cally-orb-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.cally-orb-glass {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.2);
    filter: blur(2px);
    border-radius: 50%;
    mix-blend-mode: overlay;
}

.cally-orb-inner {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    opacity: 0.9;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.chat-header-text h3 {
    color: white;
    font-weight: 600;
    font-size: 1.125rem;
    margin: 0;
}

.chat-header-text p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 4px 0 0 0;
}

.voice-messages {
    flex: 1;
    padding: 24px 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Scrollbar styling for a cleaner look */
.voice-messages::-webkit-scrollbar {
    width: 6px;
}

.voice-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.voice-message-row {
    display: flex;
    align-items: flex-end;
    /* Align avatars with bubble bottom */
    gap: 12px;
    width: 100%;
}

.row-cally {
    justify-content: flex-start;
}

.row-user {
    justify-content: flex-end;
}

.voice-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.avatar-cally {
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
}

.avatar-user {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.avatar-glass {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.2);
    filter: blur(2px);
    mix-blend-mode: overlay;
}

.avatar-inner {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
    z-index: 1;
}

.chat-bubble {
    max-width: 85%;
    border-radius: 16px;
    padding: 16px;
    font-size: 15px;
    line-height: 1.6;
    position: relative;
}

.bubble-cally {
    align-self: flex-start;
    border-top-left-radius: 4px;
    color: white;
}

.bubble-user {
    align-self: flex-end;
    border-top-right-radius: 4px;
    color: rgba(255, 255, 255, 0.9);
}

/* Voice Listening Wave Indicator replacing text input */
.voice-wave-indicator {
    padding: 24px 0 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    /* Softer line */
    display: flex;
    align-items: center;
    gap: 6px;
}

.wave-bar {
    width: 3px;
    height: 12px;
    border-radius: 3px;
    animation: wave 1s infinite ease-in-out;
}

.wave-bar:nth-child(1) {
    animation-delay: 0.1s;
    height: 16px;
}

.wave-bar:nth-child(2) {
    animation-delay: 0.2s;
    height: 24px;
}

.wave-bar:nth-child(3) {
    animation-delay: 0.3s;
    height: 18px;
}

.wave-bar:nth-child(4) {
    animation-delay: 0.4s;
    height: 12px;
}

@keyframes wave {

    0%,
    100% {
        transform: scaleY(0.7);
        opacity: 0.5;
    }

    50% {
        transform: scaleY(1.3);
        opacity: 1;
    }
}

.voice-listening-text {
    margin-left: 10px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

/* Right Side Context & Stats */
.illustration-panel {
    position: relative;
    height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 48px;
}

.stats-cards-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: flex-start;
    z-index: 20;
}

@media (min-width: 640px) {
    .stats-cards-container {
        flex-direction: row;
    }
}

.sector-context-info {
    text-align: left;
    max-width: 480px;
    margin-top: 20px;
}

.sector-context-info h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: white;
    margin: 0 0 16px 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.sector-context-info p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
}

/* Removing the old stats-cards-container absolute positioning that was on line 321 */

@media (min-width: 640px) {
    .stats-cards-container {
        flex-direction: row;
    }
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.stat-card-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.stat-card-title {
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.stat-card-value {
    font-size: 30px;
    font-weight: 700;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

/* Mobile Responsive for Sector Hero */
@media (max-width: 768px) {
    .sector-hero-container {
        padding: 100px 0 60px 0;
    }

    .sector-hero-content {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 0 16px;
    }

    .voice-interaction-panel {
        height: auto;
        min-height: 300px;
    }

    .illustration-panel {
        height: auto;
        gap: 24px;
    }

    .sector-context-info h2 {
        font-size: 1.6rem;
    }

    .sector-context-info p {
        font-size: 0.9rem;
    }

    .stat-card {
        min-width: 140px;
        padding: 14px;
    }

    .stat-card-value {
        font-size: 22px;
    }

    /* Only fix the button overflow — keep the rest of the layout as-is */
    .sector-hero-scene-wrapper {
        overflow: visible !important;
    }
}