/**
 * Crazy Techsol Pvt. Ltd. — AI Solutions Consultant Design System
 * Cyber Red Glow, Glassmorphism, Floating Widget & Morphism Landing Page
 */

:root {
    --cts-red-primary: #dc2626;
    --cts-red-glow: #ef4444;
    --cts-red-dark: #991b1b;
    --cts-red-gradient: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #b91c1c 100%);
    --cts-red-gradient-hover: linear-gradient(135deg, #f87171 0%, #ef4444 50%, #dc2626 100%);
    --cts-bg-glass: rgba(18, 4, 7, 0.92);
    --cts-bg-card: rgba(14, 3, 5, 0.95);
    --cts-red-border: rgba(220, 38, 38, 0.38);
    --cts-red-border-bright: rgba(239, 68, 68, 0.65);
    --cts-text-main: #f8fafc;
    --cts-text-muted: #94a3b8;
    --cts-font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --cts-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ==========================================================================
   1. FLOATING ACTION BUTTON (footer.php)
   ========================================================================== */
.cts-floating-widget-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999999 !important;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(18, 4, 7, 0.95);
    border: 1px solid var(--cts-red-border-bright);
    border-radius: 50px;
    padding: 7px 18px 7px 8px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.7), 0 0 25px rgba(220, 38, 38, 0.4);
    text-decoration: none !important;
    color: #ffffff !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    font-family: var(--cts-font-body);
}

.cts-floating-widget-btn:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.8), 0 0 35px rgba(239, 68, 68, 0.6);
    border-color: #ef4444;
}

.cts-float-icon-wrap {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--cts-red-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.6);
    flex-shrink: 0;
}

.cts-float-mic {
    font-size: 19px;
    color: #ffffff;
}

.cts-float-ping {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.5);
    animation: cts-radar-ping 2.2s infinite;
    pointer-events: none;
}

@keyframes cts-radar-ping {
    0% { transform: scale(1); opacity: 0.8; }
    70% { transform: scale(1.65); opacity: 0; }
    100% { transform: scale(1.65); opacity: 0; }
}

.cts-float-label {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.cts-float-title {
    font-family: var(--cts-font-heading);
    font-size: 14.5px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.cts-float-sub {
    font-size: 11px;
    color: #f87171;
    font-weight: 500;
}

/* ==========================================================================
   2. FLOATING CHAT MODAL (footer.php)
   ========================================================================== */
.cts-widget-modal {
    position: fixed;
    bottom: 95px;
    right: 28px;
    z-index: 999998 !important;
    width: 400px;
    max-width: calc(100vw - 32px);
    height: 590px;
    max-height: calc(100vh - 120px);
    background: var(--cts-bg-glass);
    border: 1px solid var(--cts-red-border);
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85), 0 0 45px rgba(220, 38, 38, 0.25);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    display: none;
    flex-direction: column;
    overflow: hidden;
    font-family: var(--cts-font-body);
    animation: cts-modal-pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.cts-widget-modal.show {
    display: flex !important;
}

.cts-widget-modal.fullscreen {
    width: 95vw !important;
    max-width: 1200px !important;
    height: 90vh !important;
    max-height: 90vh !important;
    bottom: 5vh !important;
    right: calc(50vw - 47.5vw) !important;
    left: calc(50vw - 47.5vw) !important;
    border-radius: 24px !important;
}

@keyframes cts-modal-pop {
    0% { opacity: 0; transform: translateY(25px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Header */
.cts-widget-header {
    background: rgba(24, 6, 9, 0.95);
    border-bottom: 1px solid var(--cts-red-border);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.cts-header-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cts-header-info {
    display: flex;
    flex-direction: column;
}

.cts-header-name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--cts-font-heading);
    font-size: 15.5px;
    font-weight: 700;
    color: #ffffff;
}

.cts-verified-badge {
    color: #22c55e;
    font-size: 11px;
}

.cts-header-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: #94a3b8;
}

.cts-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e;
}

.cts-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cts-widget-action-btn,
.cts-creative-close-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cts-widget-action-btn:hover,
.cts-creative-close-btn:hover {
    background: rgba(220, 38, 38, 0.25);
    border-color: rgba(220, 38, 38, 0.6);
    color: #ffffff;
}

/* Modal Body */
.cts-widget-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 16px;
    position: relative;
}

.cts-lead-gate-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 8px 4px;
    margin: auto 0;
}

.cts-gate-header-mini h4 {
    font-family: var(--cts-font-heading);
    font-size: 19px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 6px;
}

.cts-gate-header-mini p {
    font-size: 13px;
    color: #94a3b8;
    margin: 0;
    line-height: 1.45;
}

/* Active Consultation Workspace */
.cts-consultation-workspace {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Active Client Bar */
.cts-active-client-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 38px;
    background: rgba(28, 6, 10, 0.85);
    border: 1px solid var(--cts-red-border);
    border-radius: 12px;
    padding: 0 12px;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.cts-client-info-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 13px;
    font-weight: 500;
    color: #e2e8f0;
}

.cts-live-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 10px #22c55e;
    flex-shrink: 0;
    animation: cts-dot-pulse 1.8s infinite;
}

@keyframes cts-dot-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.cts-edit-profile-btn {
    background: rgba(220, 38, 38, 0.12) !important;
    background-color: rgba(220, 38, 38, 0.12) !important;
    border: 1px solid rgba(220, 38, 38, 0.35) !important;
    color: #fca5a5 !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    font-family: var(--cts-font-body) !important;
    padding: 4px 12px !important;
    border-radius: 20px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    line-height: 1.2 !important;
    height: auto !important;
    margin: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    text-decoration: none !important;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    flex-shrink: 0 !important;
}

.cts-edit-profile-btn:hover {
    background: rgba(220, 38, 38, 0.28) !important;
    background-color: rgba(220, 38, 38, 0.28) !important;
    border-color: #ef4444 !important;
    color: #ffffff !important;
    transform: translateY(-1px) scale(1.03) !important;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35) !important;
}

/* Mode Switcher */
.cts-mode-switch {
    display: flex;
    gap: 8px;
    background: rgba(10, 2, 4, 0.6);
    padding: 4px;
    border-radius: 10px;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.cts-mode-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 12.5px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.cts-mode-btn.active {
    background: var(--cts-red-gradient);
    color: #ffffff;
}

/* Mini Voice Orb */
.cts-ai-orb-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0 6px;
    text-align: center;
}

.cts-consultation-workspace.text-mode .cts-ai-orb-wrapper {
    display: none !important;
}

.cts-ai-orb {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #ef4444 0%, #dc2626 50%, #7f1d1d 100%);
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.7);
    color: #ffffff;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cts-ai-orb.active-pulse,
.cts-ai-orb.active-speaking {
    animation: cts-orb-glow 1.5s infinite;
}

@keyframes cts-orb-glow {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.8); }
    70% { box-shadow: 0 0 0 20px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.cts-equalizer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 22px;
    margin: 8px 0 4px;
}

.cts-eq-bar {
    width: 3.5px;
    height: 5px;
    background: #ef4444;
    border-radius: 3px;
    transition: height 0.15s ease;
}

.cts-equalizer.active .cts-eq-bar:nth-child(1) { animation: cts-eq-anim 0.8s infinite alternate 0.1s; }
.cts-equalizer.active .cts-eq-bar:nth-child(2) { animation: cts-eq-anim 0.8s infinite alternate 0.3s; }
.cts-equalizer.active .cts-eq-bar:nth-child(3) { animation: cts-eq-anim 0.8s infinite alternate 0.5s; }
.cts-equalizer.active .cts-eq-bar:nth-child(4) { animation: cts-eq-anim 0.8s infinite alternate 0.2s; }
.cts-equalizer.active .cts-eq-bar:nth-child(5) { animation: cts-eq-anim 0.8s infinite alternate 0.4s; }

@keyframes cts-eq-anim {
    0% { height: 5px; }
    100% { height: 20px; background: #fca5a5; }
}

.cts-status-text {
    font-size: 12px;
    color: #cbd5e1;
    font-weight: 500;
}

/* Transcript Panel */
.cts-transcript-panel {
    flex: 1;
    background: rgba(10, 2, 4, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 12px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
    min-height: 140px;
}

.cts-chat-msg {
    display: flex;
    max-width: 85%;
}

.cts-chat-msg.agent {
    align-self: flex-start;
}

.cts-chat-msg.user {
    align-self: flex-end;
}

.cts-msg-bubble {
    padding: 8px 14px;
    font-size: 13px;
    line-height: 1.45;
    border-radius: 14px;
}

.cts-chat-msg.agent .cts-msg-bubble {
    background: rgba(24, 6, 9, 0.95);
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: #ffffff;
    border-bottom-left-radius: 2px;
}

.cts-chat-msg.user .cts-msg-bubble {
    background: var(--cts-red-gradient);
    color: #ffffff;
    border-bottom-right-radius: 2px;
}

/* ==========================================================================
   3. CHATGPT / CLAUDE STYLE INPUT BAR (Side-by-Side Mic & Send)
   ========================================================================== */
.cts-input-bar,
.cts-console-input-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(14, 3, 6, 0.95);
    border: 1px solid rgba(220, 38, 38, 0.35);
    border-radius: 24px;
    padding: 5px 8px 5px 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: all 0.25s ease;
    position: relative;
    z-index: 5;
    flex-shrink: 0 !important;
    margin-top: auto;
}

.cts-input-bar:focus-within,
.cts-console-input-bar:focus-within {
    border-color: #ef4444;
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.4), 0 12px 35px rgba(0, 0, 0, 0.6);
}

.cts-input-bar input,
.cts-console-input-bar input {
    flex: 1;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: #ffffff;
    font-size: 14px;
    font-family: var(--cts-font-body);
    padding: 7px 4px;
    min-width: 0;
}

.cts-input-bar input::placeholder,
.cts-console-input-bar input::placeholder {
    color: #94a3b8;
    opacity: 0.85;
}

.cts-input-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.cts-input-mic-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cts-input-mic-btn:hover {
    background: rgba(220, 38, 38, 0.22);
    border-color: rgba(220, 38, 38, 0.6);
    color: #ffffff;
    transform: scale(1.08);
}

.cts-input-mic-btn.active-voice {
    background: radial-gradient(circle at 35% 35%, #ef4444 0%, #dc2626 60%, #991b1b 100%);
    border-color: rgba(255, 255, 255, 0.8);
    color: #ffffff;
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.85);
    animation: cts-mic-pulse 1.4s infinite;
}

@keyframes cts-mic-pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    50% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.cts-send-btn,
.cts-console-send-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--cts-red-gradient);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13.5px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
}

.cts-send-btn:hover,
.cts-console-send-btn:hover {
    background: var(--cts-red-gradient-hover);
    transform: scale(1.08);
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.6);
}

/* ==========================================================================
   4. FULL-PAGE MORPHISM (ai-consultant.php)
   ========================================================================== */
.cts-morphism-page-wrapper {
    position: relative;
    background: #070204;
    color: #ffffff;
    font-family: var(--cts-font-body);
    padding: 80px 0 120px;
    overflow: hidden;
    min-height: 100vh;
}

.cts-glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.35;
}

.cts-glow-orb-1 {
    top: 5%;
    left: 10%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, #dc2626 0%, rgba(220, 38, 38, 0) 70%);
}

.cts-glow-orb-2 {
    top: 25%;
    right: 5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #991b1b 0%, rgba(153, 27, 27, 0) 70%);
}

.cts-morphism-hero {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.cts-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(220, 38, 38, 0.15);
    border: 1px solid var(--cts-red-border-bright);
    color: #fca5a5;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 18px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.cts-hero-title {
    font-family: var(--cts-font-heading);
    font-size: clamp(32px, 5vw, 54px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.cts-gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #fca5a5 50%, #ef4444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cts-hero-desc {
    font-size: 17px;
    color: #cbd5e1;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

.cts-morphism-card,
.cts-workspace-card {
    background: rgba(18, 4, 7, 0.85);
    border: 1px solid var(--cts-red-border);
    border-radius: 24px;
    padding: 36px;
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    position: relative;
    z-index: 2;
}

.cts-glass-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cts-glass-input-box {
    position: relative;
    display: flex;
    align-items: center;
}

.cts-field-icon {
    position: absolute;
    left: 18px;
    color: #94a3b8;
    font-size: 16px;
    pointer-events: none;
}

.cts-glass-input-box input {
    width: 100%;
    background: rgba(10, 2, 4, 0.85);
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 14px;
    padding: 13px 18px 13px 48px;
    color: #ffffff;
    font-size: 14.5px;
    font-family: var(--cts-font-body);
    outline: none;
    transition: all 0.25s ease;
}

.cts-glass-input-box input:focus {
    border-color: #ef4444;
    box-shadow: 0 0 16px rgba(220, 38, 38, 0.4);
}

.cts-glass-submit-btn,
.cts-gate-cta-btn {
    background: var(--cts-red-gradient);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-family: var(--cts-font-heading);
    font-size: 16px;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.5);
    transition: all 0.3s ease;
}

.cts-glass-submit-btn:hover,
.cts-gate-cta-btn:hover {
    background: var(--cts-red-gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(220, 38, 38, 0.7);
}

/* Landing Page Console Stage */
.cts-orb-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 0 14px;
    text-align: center;
}

.cts-orb-button {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #ef4444 0%, #dc2626 50%, #7f1d1d 100%);
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 15px 40px rgba(220, 38, 38, 0.7);
    color: #ffffff;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cts-orb-button.active-pulse,
.cts-orb-button.active-speaking {
    animation: cts-orb-glow 1.5s infinite;
}

.cts-wave-equalizer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 26px;
    margin: 12px 0 6px;
}

.cts-wave-bar {
    width: 4px;
    height: 6px;
    background: #ef4444;
    border-radius: 4px;
    transition: height 0.15s ease;
}

.cts-wave-equalizer.active .cts-wave-bar:nth-child(1) { animation: cts-eq-anim 0.8s infinite alternate 0.1s; }
.cts-wave-equalizer.active .cts-wave-bar:nth-child(2) { animation: cts-eq-anim 0.8s infinite alternate 0.3s; }
.cts-wave-equalizer.active .cts-wave-bar:nth-child(3) { animation: cts-eq-anim 0.8s infinite alternate 0.5s; }
.cts-wave-equalizer.active .cts-wave-bar:nth-child(4) { animation: cts-eq-anim 0.8s infinite alternate 0.2s; }
.cts-wave-equalizer.active .cts-wave-bar:nth-child(5) { animation: cts-eq-anim 0.8s infinite alternate 0.4s; }

.cts-console-status {
    font-size: 13.5px;
    color: #cbd5e1;
    font-weight: 500;
}

.cts-console-stream {
    background: rgba(10, 2, 4, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 18px;
    min-height: 180px;
    max-height: 320px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 14px;
}

.cts-stream-bubble {
    display: flex;
    max-width: 85%;
}

.cts-stream-bubble.agent {
    align-self: flex-start;
}

.cts-stream-bubble.user {
    align-self: flex-end;
}

.cts-bubble-content {
    padding: 10px 16px;
    font-size: 13.5px;
    line-height: 1.5;
    border-radius: 14px;
}

.cts-stream-bubble.agent .cts-bubble-content {
    background: rgba(24, 6, 9, 0.95);
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: #ffffff;
    border-bottom-left-radius: 2px;
}

.cts-stream-bubble.user .cts-bubble-content {
    background: var(--cts-red-gradient);
    color: #ffffff;
    border-bottom-right-radius: 2px;
}

.cts-starter-chips {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.cts-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cts-chip:hover {
    background: rgba(220, 38, 38, 0.2);
    border-color: rgba(220, 38, 38, 0.5);
    color: #ffffff;
}

.cts-verify-card,
.cts-contact-card {
    background: rgba(24, 6, 9, 0.98);
    border: 1px solid var(--cts-red-border-bright);
    border-radius: 16px;
    padding: 18px;
    margin-top: 10px;
}

.cts-verify-grid,
.cts-contact-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 12px 0;
}

.cts-verify-field input,
.cts-contact-form-grid input {
    width: 100%;
    background: rgba(10, 2, 4, 0.9);
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 10px;
    padding: 10px 14px;
    color: #ffffff;
    font-size: 13.5px;
    outline: none;
}

.cts-verify-submit-btn,
.cts-contact-submit-btn {
    width: 100%;
    background: var(--cts-red-gradient);
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-weight: 700;
    padding: 12px;
    cursor: pointer;
    font-size: 14px;
}

/* ==========================================================================
   5. CHATGPT APP STYLE VOICE POP MODAL OVERLAY (INSIDE CHATBOX CONTAINER)
   ========================================================================== */
.cts-voice-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000005;
    background: rgba(4, 1, 3, 0.88);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: cts-fade-in 0.25s ease forwards;
}

/* Scoped specifically inside Floating Chatbox Widget */
.cts-widget-modal .cts-voice-modal-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 99 !important;
    background: rgba(12, 2, 5, 0.97) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    padding: 10px !important;
    border-radius: 24px !important;
}

@keyframes cts-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.cts-voice-modal-card {
    width: 380px;
    max-width: 92vw;
    background: radial-gradient(circle at 50% 20%, rgba(35, 8, 14, 0.96) 0%, rgba(14, 3, 6, 0.98) 100%);
    border: 1px solid rgba(239, 68, 68, 0.45);
    border-radius: 36px;
    padding: 28px 24px;
    box-shadow: 0 35px 100px rgba(0, 0, 0, 0.95), 0 0 60px rgba(220, 38, 38, 0.35);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: cts-card-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.cts-widget-modal .cts-voice-modal-card {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    background: radial-gradient(circle at 50% 15%, rgba(32, 6, 12, 0.98) 0%, rgba(12, 2, 5, 0.99) 100%) !important;
    border: 1px solid rgba(239, 68, 68, 0.38) !important;
    border-radius: 18px !important;
    padding: 14px 14px 16px !important;
    box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.7), 0 8px 30px rgba(0, 0, 0, 0.6) !important;
    justify-content: space-between !important;
}

@keyframes cts-card-pop {
    0% { transform: scale(0.85) translateY(20px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

.cts-voice-modal-top {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.cts-widget-modal .cts-voice-modal-top {
    margin-bottom: 8px !important;
}

.cts-voice-modal-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--cts-font-heading);
    font-size: 14.5px;
    font-weight: 700;
    color: #e2e8f0;
}

.cts-voice-modal-close {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cts-voice-modal-close:hover {
    background: rgba(220, 38, 38, 0.3);
    border-color: #ef4444;
    color: #ffffff;
}

/* Stage & Orb */
.cts-voice-modal-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
    padding: 15px 0 25px;
}

.cts-widget-modal .cts-voice-modal-stage {
    padding: 6px 0 10px !important;
    flex: 1 !important;
}

.cts-voice-orb-glow {
    position: absolute;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.4) 0%, rgba(220, 38, 38, 0) 70%);
    filter: blur(25px);
    pointer-events: none;
    animation: cts-glow-pulse 2.2s infinite ease-in-out alternate;
}

.cts-widget-modal .cts-voice-orb-glow {
    width: 125px !important;
    height: 125px !important;
    filter: blur(18px) !important;
}

@keyframes cts-glow-pulse {
    0% { transform: scale(0.9); opacity: 0.5; }
    100% { transform: scale(1.3); opacity: 0.9; }
}

.cts-voice-orb-blob {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #ff6b6b 0%, #dc2626 50%, #7f1d1d 100%);
    box-shadow: 0 15px 45px rgba(220, 38, 38, 0.8), inset 0 2px 4px rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    animation: cts-chatgpt-fluid 3.5s infinite ease-in-out;
}

.cts-widget-modal .cts-voice-orb-blob {
    width: 86px !important;
    height: 86px !important;
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.7), inset 0 2px 4px rgba(255, 255, 255, 0.5) !important;
}

@keyframes cts-chatgpt-fluid {
    0% { border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%; transform: scale(1); }
    33% { border-radius: 60% 40% 55% 45% / 45% 55% 45% 55%; transform: scale(1.05); }
    66% { border-radius: 45% 55% 40% 60% / 55% 45% 60% 40%; transform: scale(0.98); }
    100% { border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%; transform: scale(1); }
}

.cts-voice-orb-core {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 22px;
}

.cts-widget-modal .cts-voice-orb-core {
    width: 40px !important;
    height: 40px !important;
    font-size: 18px !important;
}

.cts-voice-wave-bars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 24px;
    margin: 20px 0 12px;
}

.cts-widget-modal .cts-voice-wave-bars {
    margin: 10px 0 6px !important;
    height: 18px !important;
}

.cts-voice-wave-bars span {
    width: 4px;
    height: 6px;
    background: #ef4444;
    border-radius: 4px;
    transition: height 0.15s ease;
}

.cts-voice-wave-bars.active span:nth-child(1) { animation: cts-eq-anim 0.8s infinite alternate 0.1s; }
.cts-voice-wave-bars.active span:nth-child(2) { animation: cts-eq-anim 0.8s infinite alternate 0.3s; }
.cts-voice-wave-bars.active span:nth-child(3) { animation: cts-eq-anim 0.8s infinite alternate 0.5s; }
.cts-voice-wave-bars.active span:nth-child(4) { animation: cts-eq-anim 0.8s infinite alternate 0.2s; }
.cts-voice-wave-bars.active span:nth-child(5) { animation: cts-eq-anim 0.8s infinite alternate 0.4s; }

.cts-voice-modal-status {
    font-family: var(--cts-font-heading);
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}

.cts-widget-modal .cts-voice-modal-status {
    font-size: 14.5px !important;
    margin-bottom: 3px !important;
}

.cts-voice-modal-subtext {
    font-size: 12.5px;
    color: #94a3b8;
    line-height: 1.4;
}

.cts-widget-modal .cts-voice-modal-subtext {
    font-size: 11px !important;
    max-width: 250px !important;
    line-height: 1.3 !important;
}

/* Actions */
.cts-voice-modal-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    margin-top: 10px;
}

.cts-widget-modal .cts-voice-modal-actions {
    margin-top: 6px !important;
    gap: 14px !important;
}

.cts-voice-action-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cts-widget-modal .cts-voice-action-btn {
    width: 44px !important;
    height: 44px !important;
    font-size: 16px !important;
}

.cts-voice-action-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.08);
}

.cts-voice-action-btn.muted {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #ef4444;
}

.cts-voice-end-btn {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 60%, #991b1b 100%);
    border: 2px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.7);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cts-widget-modal .cts-voice-end-btn {
    width: 52px !important;
    height: 52px !important;
    font-size: 18px !important;
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.6) !important;
}

.cts-voice-end-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 14px 40px rgba(239, 68, 68, 0.9);
}
