/* Garet Font Face */
@font-face {
    font-family: 'Garet';
    src: url('../assets/garet/Garet-Book.woff2') format('woff2'),
         url('../assets/garet/Garet-Book.woff') format('woff'),
         url('../assets/garet/Garet-Book.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Garet';
    src: url('../assets/garet/Garet-Heavy.woff2') format('woff2'),
         url('../assets/garet/Garet-Heavy.woff') format('woff'),
         url('../assets/garet/Garet-Heavy.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Professional Color System */
    --accent-orange: #FF6B35;
    --accent-orange-light: #FF8C5A;
    --accent-orange-dark: #E55A2B;
    --accent-orange-pale: #FFE5DC;
    --gradient-orange: linear-gradient(135deg, #FF2037 0%, #FFB041 100%);
    --gradient-orange-hover: linear-gradient(135deg, #E01D30 0%, #F5A03A 100%);
    --text-primary: #1A1A1A;
    --text-secondary: #666666;
    --text-light: #999999;
    --bg-white: #FFFFFF;
    --bg-gray-50: #FAFAFA;
    --bg-gray-100: #F5F5F5;
    --bg-gray-200: #EEEEEE;
    --border-color: #E5E5E5;
    --border-light: #F0F0F0;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.08), 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
    --shadow-orange: 0 4px 12px rgba(255, 50, 65, 0.3);
    
    --font-family-headings: 'Bebas', sans-serif;
    --font-family-body: 'Bebas', sans-serif;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-body);
    background: var(--bg-white);
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.chat-active {
    overflow-y: auto;
}

/* Hidden Background Elements */
.bg-particles {
    display: none;
}

.fire-background {
    display: none;
}

/* Header */
.main-header {
    background: var(--bg-white);
    border-bottom: none;
    box-shadow: none;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow 0.3s ease;
}

/* Header hover effect removed for clean white background */

.header-content {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-logo {
    width: 120px;
    height: auto;
    object-fit: contain;
    transition: transform 0.2s ease;
    filter: brightness(0);
}

.header-logo:hover {
    transform: scale(1.05);
}

/* Floating controls in main header */
.header-floating-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.header-floating-controls.visible {
    opacity: 1;
    pointer-events: auto;
}

.header-right-section {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: auto;
}

.header-cta {
    font-family: var(--font-family-headings);
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    color: var(--text-primary);
    margin: 0;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Bottom Left Status Bar */
.bottom-left-status-bar {
    position: fixed;
    bottom: 24px;
    left: 10px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
}

/* Rising Indicator Wrapper */
.rising-indicator-wrapper {
    position: relative;
    width: 40px;
    height: 40px;
    /* Animation for the wrapper entrance */
    animation: slideInLeft 0.5s ease 0.6s both;
    display: none; /* Managed by JS to show/hide */
}

/* Rising Indicator (Signed In) */
.rising-indicator {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 4px 18px 4px 12px;
    background: var(--bg-white);
    border-radius: 999px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    user-select: none;
    overflow: hidden;
    white-space: nowrap;
    
    /* Absolute positioning to prevent affecting parent width */
    position: absolute;
    left: 0;
    top: 0;
    /* Remove animation from here as it's on wrapper now */
}

.rising-indicator.collapsed {
    padding-right: 12px;
    padding-left: 12px;
    width: 56px;
    gap: 0;
    justify-content: flex-start;
}

.rising-indicator.collapsed #rising-user-name,
.rising-indicator.collapsed .rising-text {
    opacity: 0;
    width: 0;
    overflow: hidden;
    pointer-events: none;
}

.rising-indicator:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.16);
    transform: translateX(2px);
    background: #fff5f5;
}

.rising-indicator:hover.collapsed {
    width: auto;
    padding-right: 18px;
    padding-left: 12px;
    gap: 8px;
}

.rising-indicator:hover.collapsed #rising-user-name,
.rising-indicator:hover.collapsed .rising-text {
    opacity: 1;
    width: auto;
}

.rising-indicator:active {
    transform: translateX(0px) scale(0.98);
}

.rising-indicator.expanded {
    width: auto;
    padding-right: 18px;
    padding-left: 12px;
    gap: 8px;
}

.rising-indicator.expanded #rising-user-name,
.rising-indicator.expanded .rising-text {
    opacity: 1;
    width: auto;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.rising-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    animation: waveAnimation 1s ease-in-out infinite;
    position: relative;
}

@keyframes waveAnimation {
    0%, 100% {
        transform: rotate(0deg);
    }
    10%, 30% {
        transform: rotate(14deg);
    }
    20%, 40% {
        transform: rotate(-8deg);
    }
    50%, 60% {
        transform: rotate(14deg);
    }
    70% {
        transform: rotate(-4deg);
    }
    80% {
        transform: rotate(10deg);
    }
    90% {
        transform: rotate(0deg);
    }
}

.rising-icon .opportunity-icon {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
    transition: opacity 0.3s ease;
}

.rising-icon .exit-icon {
    width: 18px;
    height: 18px;
    stroke: white;
    stroke-width: 2.5;
    position: absolute;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rising-indicator:hover .rising-icon {
    animation: none;
}

.rising-indicator:hover .opportunity-icon {
    opacity: 0;
}

.rising-indicator:hover .exit-icon {
    opacity: 1;
}

#rising-user-name {
    font-weight: 600;
    color: var(--text-primary);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.rising-text {
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* LinkedIn Minimal Button for Status Bar */
.linkedin-signin-btn-minimal {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 999px;
    font-family: var(--font-family-body);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    animation: slideInLeft 0.5s ease 0.4s both;
    margin: 0;
    width: auto;
}

.linkedin-signin-btn-minimal:hover {
    background: var(--bg-card-hover);
    border-color: #0077b5;
    box-shadow: 0 4px 16px rgba(0, 119, 181, 0.15);
    transform: translateX(2px);
}

.linkedin-signin-btn-minimal svg {
    width: 14px;
    height: 14px;
    fill: #0077b5;
    flex-shrink: 0;
}

/* LinkedIn Circle Button */
.linkedin-signin-btn-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    animation: slideInLeft 0.5s ease 0.4s both;
    margin: 0;
}

.linkedin-signin-btn-circle:hover {
    background: var(--bg-white);
    border-color: #0077b5;
    box-shadow: 0 4px 12px rgba(0, 119, 181, 0.25);
    transform: translateY(-2px);
}

.linkedin-signin-btn-circle svg {
    width: 20px;
    height: 20px;
    fill: #0077b5;
    flex-shrink: 0;
}

/* Status Bar Elements */
.status-bar-header {
    font-family: var(--font-family-body);
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 1px;
    margin-bottom: 2px;
    font-weight: 600;
    text-align: center;
    animation: slideInLeft 0.5s ease 0.2s both;
}

.status-bar-separator {
    width: 100%;
    height: 1px;
    background-color: var(--border-light);
    margin: 8px 0;
    animation: slideInLeft 0.5s ease 0.3s both;
}

/* Status Bar Store Badges */
.status-bar-store-badges {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    animation: slideInLeft 0.5s ease 0.2s both;
}

/* Rising indicator animation removed from here */

.store-badge-link {
    display: block;
    transition: all 0.3s ease;
}

.store-badge-link:hover {
    transform: translateY(-2px);
}

.store-badge-icon {
    height: 40px;
    width: auto;
    display: block;
    border-radius: 8px;
}

/* Hero title in header */
.header-content .hero-title {
    font-family: var(--font-family-headings);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    letter-spacing: 0.5px;
    color: var(--text-primary);
    margin: 0;
    font-weight: 700;
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0px 20px;
    padding-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.main-content.chat-active {
    max-width: 1200px;
    padding: 0px 20px;
    align-items: stretch;
    justify-content: flex-start;
    min-height: auto;
}

/* Hero Section */
/* Hero section removed - title moved to header */
.hero-section {
    display: none;
}

/* Initial Input Section */
.initial-input-section {
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: fadeInUp 0.6s ease forwards;
}

.initial-input-section.hidden {
    display: none;
}

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

.main-headline {
    font-family: var(--font-family-headings);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    letter-spacing: -0.5px;
}

.highlight-orange {
    background: var(--gradient-orange);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.fireball-icon {
    height: 1em;
    width: auto;
    vertical-align: text-top;
    margin-left: 0.15em;
}

.main-prompt {
    font-family: var(--font-family-body);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 400;
    color: var(--text-secondary);
    text-align: center;
    letter-spacing: 1px;
    margin-bottom:50px;
}


.main-input-wrapper {
    width: 100%;
    position: relative;
    background: var(--bg-white);
    border: 2px solid transparent;
    border-radius: var(--radius-2xl);
    background-image: 
        linear-gradient(white, white),
        var(--gradient-orange);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    padding: 16px 20px;
    box-shadow: 0 2px 8px rgba(255, 50, 65, 0.15), 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top:24px;
}

.main-input-wrapper:focus-within {
    box-shadow: 0 4px 12px rgba(255, 50, 65, 0.25), 0 2px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.main-input {
    flex: 1;
    border: none;
    outline: none;
    font-family: var(--font-family-body);
    font-size: 1.1rem;
    color: var(--text-primary);
    background: transparent;
    resize: none;
    min-height: 24px;
    max-height: 300px;
    line-height: 1.6;
    padding: 0;
    margin: 0;
}

.main-input:focus {
    outline: none;
    border: none;
    box-shadow: none;
}

.main-input::placeholder {
    color: var(--text-light);
}

.main-input.typing::placeholder {
    border-right: 2px solid var(--text-light);
    padding-right: 2px;
    animation: blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--text-light); }
}

.main-voice-btn {
    border: none;
    background: none;
    cursor: pointer;
    padding: 10px;
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.main-voice-btn:hover {
    background: var(--gradient-orange);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: scale(1.1);
}

.main-voice-btn:active {
    transform: scale(0.95);
}

.main-voice-btn svg {
    width: 24px;
    height: 24px;
}

.main-voice-btn.recording {
    position: relative;
    animation: pulse 1.5s ease infinite;
}

.main-voice-btn.recording svg {
    stroke: #FF2037;
}

.main-voice-btn.recording::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    padding: 2px;
    background: var(--gradient-orange);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    z-index: -1;
}

.main-send-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-orange);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-orange);
    flex-shrink: 0;
}

.main-send-btn:hover {
    background: var(--gradient-orange-hover);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 50, 65, 0.4);
}

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

.main-send-btn:disabled {
    background: var(--bg-gray-200);
    color: var(--text-light);
    cursor: not-allowed;
    opacity: 0.5;
    box-shadow: none;
    transform: none;
}

.main-send-btn:disabled:hover {
    background: var(--bg-gray-200);
    transform: none;
    box-shadow: none;
}

.main-send-btn svg {
    width: 22px;
    height: 22px;
}

/* Example Queries */
.example-queries {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 16px;
    overflow-x: auto;
}

.example-queries::-webkit-scrollbar {
    height: 6px;
}

.example-queries::-webkit-scrollbar-track {
    background: var(--bg-gray-50);
    border-radius: 3px;
}

.example-queries::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.example-queries::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-orange);
}

.example-query-card,
.initial-input-section .example-query-card,
#example-queries .example-query-card,
#example-queries > div {
    background: var(--bg-white) !important;
    border: 1px solid #dfd3cf !important;
    border-radius: 999px;
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: none !important;
    flex: 0 1 auto;
    min-width: fit-content;
    white-space: nowrap;
    text-align: center;
    box-sizing: border-box;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.example-query-card:hover,
.initial-input-section .example-query-card:hover,
#example-queries .example-query-card:hover,
#example-queries > div:hover {
    background: var(--gradient-orange) !important;
    color: white !important;
    box-shadow: var(--shadow-orange) !important;
    border-color: transparent !important;
}

.example-query-card:hover .query-title,
.example-query-card:hover .query-text {
    color: white !important;
}

.example-query-card.active {
    background: var(--gradient-orange) !important;
    border-color: #FF2037 !important;
    color: white !important;
}

.example-query-card.active .query-title,
.example-query-card.active .query-text {
    color: white;
}

.query-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.query-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.query-title {
    font-family: var(--font-family-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.query-text {
    font-family: var(--font-family-body);
    font-size: 1rem;
    color: inherit;
    margin: 0;
    line-height: 1.5;
    display: inline;
}

/* Trusted By Section */
.trusted-by-section {
    width: 100%;
    max-width: 1200px;
    margin: 100px auto 50px;
    padding: 0 20px;
    animation: fadeInUp 0.6s ease forwards;
}

.trusted-by-section.hidden {
    display: none;
}

.trusted-by-heading {
    font-family: var(--font-family-headings);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    margin: 0 0 20px 0;
    letter-spacing: 0.5px;
}

.trusted-by-subheading {
    font-family: var(--font-family-body);
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-light);
    text-align: center;
    letter-spacing: 0.5px;
}



.logos-carousel-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.logos-carousel {
    display: flex;
    gap: 48px;
    animation: scroll-logos 60s linear infinite;
    width: max-content;
}

.logos-carousel:hover {
    animation-play-state: paused;
}

.logo-item {
    height: 24px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.logo-item:hover {
    filter: grayscale(0%);
    opacity: 1;
}

@keyframes scroll-logos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
}
}

/* People Carousel Section */
.people-carousel-section {
    width: 100%;
    max-width: 1200px;
    margin: 30px auto 60px;
    padding: 0 20px;
    animation: fadeInUp 0.6s ease forwards 0.2s;
}

.people-carousel-section.hidden {
    display: none;
}

.people-carousel-wrapper {
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

.people-carousel {
    display: flex;
    gap: 10px;
    animation: scroll-people 40s linear infinite;
    width: max-content;
}

.people-carousel:hover {
    animation-play-state: paused;
}

/* Reverse animation for bottom carousel */
.people-carousel-reverse {
    animation: scroll-people-reverse 40s linear infinite;
}

.people-item {
    height: 250px;
    border-radius: 9px; /* Image radius (5px) + Padding (4px) */
    flex-shrink: 0;
    border: none;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 4px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Crop content that exceeds wrapper */
}

.people-image {
    /* Zoom in to crop transparent edges (approx 5-8%) */
    height: 108%; 
    width: auto;
    border-radius: 5px;
    display: block;
    object-fit: cover;
    /* Remove white background so it doesn't show if scaling isn't perfect */
}

/* Highlighted state for selected images */
.people-item.highlighted {
    background: var(--gradient-orange);
    animation: pulse-highlight 0.5s ease;
    z-index: 10;
}

@keyframes pulse-highlight {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 50, 65, 0);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(255, 50, 65, 0.3);
    }
}

@keyframes scroll-people {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes scroll-people-reverse {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

/* Connection wave styling */
.connection-wave {
    position: fixed;
    height: 60px;
    pointer-events: none;
    z-index: 1000;
    transform-origin: center center;
    filter: drop-shadow(0 4px 12px rgba(255, 50, 65, 0.6));
    will-change: left, top, transform, opacity;
}

/* Chat Container */
.chat-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    display: none;
}

body.chat-active .chat-container {
    max-width: 100%;
    margin: 0 auto;
}

body.chat-active .chat-wrapper {
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
    box-shadow: none;
}

.chat-container.visible {
    display: block;
    animation: chatReveal 0.8s ease forwards;
}

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

.chat-wrapper {
    background: var(--bg-white);
    border-radius: 0;
    box-shadow: none;
    border: none;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    overflow: visible;
    height: auto;
    min-height: calc(100vh - 92px);
    position: relative;
    transition: box-shadow 0.3s ease;
}

.chat-wrapper:hover {
    box-shadow: none;
}

/* Accent Strip */
.gradient-strip {
    height: 0px;
    background: transparent;
}

.chat-header {
    padding: 32px 0px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
}

.chat-header h2 {
    font-family: var(--font-family-headings);
    font-size: clamp(1.4rem, 2.5vw, 1.85rem);
    letter-spacing: 2px;
    color: var(--text-primary);
    margin: 0;
    font-weight: 600;
}

.header-right-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.restart-conversation-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-family-body);
}

.restart-conversation-btn:hover {
    background: var(--bg-gray-50);
    border-color: var(--text-secondary);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.restart-conversation-btn:active {
    transform: translateY(0);
}

.restart-conversation-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

.profile-progress-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.profile-progress-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fireball-svg {
    width: 100%;
    height: 100%;
}

.fireball-fill {
    transition: y 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-messages {
    flex-grow: 1;
    padding: 0px 0px 40px;
    overflow-y: visible;
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: var(--bg-white);
    min-height: auto;
}

.message {
    display: flex;
    align-items: flex-end;
    opacity: 0;
    animation: smoothSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes smoothSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.message.user {
    justify-content: flex-end;
}

.message.bot {
    justify-content: flex-start;
}

.message-bubble {
    padding: 16px 22px;
    border-radius: var(--radius-xl);
    max-width: 75%;
    line-height: 1.6;
    font-size: 0.95rem;
    position: relative;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.message.user .message-bubble {
    background: var(--gradient-orange);
    color: white;
    border-bottom-right-radius: var(--radius-sm);
    box-shadow: var(--shadow-orange);
    font-weight: 400;
}

.message.user .message-bubble:hover {
    background: var(--gradient-orange-hover);
    box-shadow: 0 6px 16px rgba(255, 50, 65, 0.3);
    transform: translateY(-2px);
}

.message.bot .message-bubble {
    background: var(--bg-gray-50);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    border-bottom-left-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.message.bot .message-bubble:hover {
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

/* Markdown formatting within message bubbles */
.message-bubble strong {
    font-weight: 700;
}

.message-bubble em {
    font-style: italic;
}

.message.bot .message-bubble strong {
    color: var(--text-primary);
}

.message.user .message-bubble strong,
.message.user .message-bubble em {
    color: white;
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px;
}

.typing-indicator span {
    height: 8px;
    width: 8px;
    background: var(--text-secondary);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: -0.16s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0s;
}

@keyframes typingBounce {
    0%, 60%, 100% {
        opacity: 0.3;
    }
    30% {
        opacity: 1;
    }
}

.chat-input-container {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 0px;
    border-top: 1px solid var(--border-light);
    z-index: 10;
}

.chat-input {
    display: flex;
    align-items: center;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-2xl);
    padding: 10px 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.chat-input:focus-within {
    border-color: #FF2037;
    box-shadow: 
        0 0 0 3px rgba(255, 32, 55, 0.1),
        var(--shadow-md);
    transform: translateY(-2px);
}

.chat-input textarea {
    flex-grow: 1;
    border: none;
    outline: none;
    padding: 10px 14px;
    font-size: 0.95rem;
    background: transparent;
    color: var(--text-primary);
    resize: none;
    max-height: 120px;
    font-family: var(--font-family-body);
}

.chat-input textarea::placeholder {
    color: var(--text-secondary);
}

.chat-input button {
    border: none;
    background: none;
    cursor: pointer;
    padding: 10px;
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.chat-input button:hover {
    background: var(--gradient-orange);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: scale(1.1);
}

.chat-input button:active {
    transform: scale(0.95);
}

#send-btn {
    background: var(--gradient-orange);
    color: white;
    width: 48px;
    height: 48px;
    margin-left: 10px;
    box-shadow: var(--shadow-orange);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#send-btn:hover {
    background: var(--gradient-orange-hover);
    box-shadow: 0 6px 20px rgba(255, 50, 65, 0.4);
    transform: translateY(-3px) scale(1.05);
}

#send-btn:active {
    transform: translateY(-1px) scale(1.02);
}

#send-btn:disabled {
    background: var(--bg-gray-200);
    color: var(--text-light);
    cursor: not-allowed;
    opacity: 0.5;
    box-shadow: none;
    transform: none;
}

#send-btn:disabled:hover {
    background: var(--bg-gray-200);
    transform: none;
    box-shadow: none;
}

#mic-btn.recording {
    position: relative;
}

#mic-btn.recording::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    padding: 2px;
    background: var(--gradient-orange);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    z-index: -1;
}

#mic-btn.recording svg {
    stroke: #FF2037;
}

#preview-pdf-btn {
    background: var(--gradient-orange);
    color: white;
    width: 48px;
    height: 48px;
    margin-left: 10px;
    border: none;
    box-shadow: 0 4px 20px rgba(255, 50, 65, 0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: pulse-glow 2s ease-in-out infinite;
    position: relative; /* For tooltip */
}

/* Tooltip for Preview PDF Button */
#preview-pdf-btn:hover::after {
    content: "Download your RISER Report";
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-primary);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-family: var(--font-family-body);
    white-space: nowrap;
    opacity: 1;
    visibility: visible;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 100;
}

#preview-pdf-btn:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: var(--text-primary) transparent transparent transparent;
    opacity: 1;
    visibility: visible;
    z-index: 100;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(255, 50, 65, 0.5);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 6px 30px rgba(255, 50, 65, 0.8);
        transform: scale(1.05);
    }
}

#preview-pdf-btn:hover {
    background: var(--gradient-orange-hover);
    color: white;
    box-shadow: 0 8px 30px rgba(255, 50, 65, 0.6);
    transform: translateY(-3px) scale(1.1);
    animation: none;
}

#preview-pdf-btn:active {
    transform: translateY(-1px) scale(1.05);
}

.options-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
    justify-content: flex-end;
}

.option-button {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    padding: 11px 22px;
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    font-weight: 500;
    font-family: var(--font-family-body);
    box-shadow: var(--shadow-sm);
}

.option-button:hover {
    background: var(--gradient-orange);
    color: white;
    box-shadow: var(--shadow-orange);
    transform: translateY(-3px) scale(1.03);
}

.option-button:active {
    transform: translateY(-1px) scale(1.01);
}

/* Fire Icon - Hidden */
.fire-icon {
    display: none;
}

/* Mobile-only body image */
.mobile-body-image {
    display: none;
    width: 100%;
    text-align: center;
    margin: 0 0;
}

.mobile-body-image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .mobile-body-image {
        display: block;
    }
    body {
        background: var(--bg-white);
    }

    .header-content {
        padding: 12px 16px;
    }

    .header-logo {
        width: 120px;
        height: auto;
    }

    .main-content {
        min-height: calc(100vh - 80px);
        padding-bottom: 140px;
    }

    .main-headline {
        font-size: clamp(2.3rem, 4vw, 3rem);
        margin-bottom: 12px;
    }

    .main-prompt {
        font-size: clamp(1.1rem, 2vw, 1.5rem);
        margin-bottom: 24px;
    }

    .main-input-wrapper {
        padding: 12px 16px;
        gap: 12px;
    }

    .main-input {
        font-size: 1rem;
        min-height: 44px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .main-send-btn {
        width: 44px;
        height: 44px;
        margin-top: -2px;
    }

    .main-voice-btn {
        padding: 10px;
    }

    .main-voice-btn svg {
        width: 24px;
        height: 24px;
    }

    .example-queries {
        flex-wrap: wrap;
        gap: 12px;
    }

    .example-query-card {
        flex: 1 1 calc(50% - 6px);
        min-width: calc(50% - 6px);
        white-space: normal;
        padding: 16px;
    }

    .header-cta {
        font-size: clamp(0.9rem, 2vw, 1.2rem);
    }

    .trusted-by-section {
        margin: 100px auto 50px;
        padding: 0 16px;
    }

    .trusted-by-heading {
        font-size: clamp(1.25rem, 4vw, 1.75rem);
    }

    .logo-item {
        height: 19px;
    }

    .people-item {
        height: 140px;
        width: 105px;
    }

    .bottom-left-status-bar {
        top: auto;
        bottom: 18px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        flex-direction: row;
        align-items: center;
        justify-content: center;
        padding: 10px 18px;
        gap: 12px;
        width: min(320px, calc(100% - 32px));
        max-width: 360px;
        background: rgba(255, 255, 255, 0.95);
        border-radius: 999px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
        backdrop-filter: blur(6px);
    }

    .status-bar-store-badges {
        flex-direction: row;
    }

    .status-bar-header,
    .status-bar-separator {
        display: none;
    }

    .connection-wave {
        height: 36px;
    }

    .rising-indicator {
        padding: 6px 14px 6px 10px;
        font-size: 0.85rem;
    }
    
    .rising-indicator.collapsed {
        width: 50px;
        padding: 6px 10px;
    }
    
    .rising-indicator.expanded {
        width: auto;
        padding: 6px 14px 6px 10px;
    }

    .rising-icon {
        width: 30px;
        height: 30px;
    }

    .rising-icon .opportunity-icon,
    .rising-icon .exit-icon {
        width: 16px;
        height: 16px;
    }

    .linkedin-signin-btn-minimal {
        padding: 6px 12px;
        font-size: 0.7rem;
        gap: 6px;
    }

    .linkedin-signin-btn-minimal svg {
        width: 12px;
        height: 12px;
    }

    .store-badge-icon {
        height: 36px;
    }

    .people-carousel-section {
        margin: 30px auto 40px;
    }

    .people-carousel-section .people-carousel-wrapper {
        margin-top: 30px !important;
    }

    .people-carousel-section .people-carousel-wrapper + .people-carousel-wrapper {
        margin-top: 18px !important;
    }

    .header-content .hero-title {
        font-size: clamp(1.2rem, 2.5vw, 2rem);
    }

    .main-content.chat-active {
        padding: 0 16px;
    }

    .chat-container {
        margin: 0 auto;
    }

    .chat-wrapper {
        border-radius: 0;
        min-height: calc(100vh - 80px);
    }

    .chat-header {
        padding: 24px 0px 20px;
    }

    .chat-header h2 {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }
    
    .restart-conversation-btn span {
        display: none;
    }
    
    .restart-conversation-btn {
        padding: 8px;
        min-width: 36px;
    }

    .chat-messages {
        padding: 0px 0px 40px;
        gap: 12px;
    }

    .message-bubble {
        padding: 12px 18px;
        font-size: 0.95rem;
        max-width: 85%;
    }

    .chat-input-container {
        padding: 20px 0px;
        display: flex;
        flex-direction: column;
        gap: 12px;
        bottom: 80px;
    }

    .chat-input {
        padding: 5px 8px;
    }

    .chat-input textarea {
        padding: 10px 14px;
        font-size: 0.95rem;
    }

    .chat-input button {
        padding: 10px;
    }

    #send-btn {
        width: 40px;
        height: 40px;
    }

    .options-container {
        gap: 12px;
        margin-top: 0;
        margin-bottom: 4px;
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        order: 1;
    }

    .options-container::-webkit-scrollbar {
        display: none;
    }

    .option-button {
        padding: 8px 16px;
        font-size: 0.9rem;
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .chat-input {
        order: 2;
    }

    /* Mobile-specific touch optimizations */
    .chat-input button {
        min-width: 44px;
        min-height: 44px;
    }

    .option-button {
        min-height: 44px;
    }
}

@media (max-width: 480px) {
    .header-content .hero-title {
        font-size: clamp(1rem, 2vw, 1.5rem);
    }

    .header-right-section {
        flex-direction: column;
        gap: 8px;
        align-items: flex-end;
    }

    .header-cta {
        font-size: clamp(0.75rem, 2vw, 1rem);
        text-align: right;
    }

    .trusted-by-section {
        margin: 30px auto 20px;
        padding: 0 12px;
    }

    .trusted-by-heading {
        font-size: clamp(1.1rem, 4vw, 1.5rem);
        margin-bottom: 20px;
    }

    .main-content {
        padding-bottom: 140px;
    }

    .logo-item {
        height: 17px;
    }

    .people-item {
        height: 120px;
        width: 90px;
    }

    .bottom-left-status-bar {
        top: auto;
        bottom: 12px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        padding: 10px 14px;
        gap: 10px;
        width: min(300px, calc(100% - 224px));
        max-width: 320px;
    }

    .connection-wave {
        height: 30px;
    }

    .rising-indicator {
        padding: 6px 12px 6px 10px;
        font-size: 0.8rem;
    }
    
    .rising-indicator.collapsed {
        width: 48px;
        padding: 6px 10px;
    }
    
    .rising-indicator.expanded {
        width: auto;
        padding: 6px 12px 6px 10px;
    }

    .rising-icon {
        width: 28px;
        height: 28px;
    }

    .rising-icon .opportunity-icon,
    .rising-icon .exit-icon {
        width: 14px;
        height: 14px;
    }

    .linkedin-signin-btn-minimal {
        padding: 6px 10px;
        font-size: 0.65rem;
        gap: 6px;
    }

    .linkedin-signin-btn-minimal svg {
        width: 11px;
        height: 11px;
    }

    .store-badge-icon {
        height: 32px;
    }

    .people-carousel-section {
        margin: 20px auto 30px;
    }

    .chat-container {
        margin: 0 auto;
    }

    .chat-wrapper {
        min-height: calc(100vh - 72px);
    }

    .chat-header {
        padding: 20px 0px 16px;
    }

    .chat-header h2 {
        font-size: 1.5rem;
    }
    
    .header-right-controls {
        gap: 8px;
    }
    
    .header-floating-controls {
        gap: 8px;
    }

    .chat-messages {
        padding: 0px 0px 40px;
    }

    .message-bubble {
        max-width: 90%;
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .chat-input-container {
        padding: 16px 0px;
        display: flex;
        flex-direction: column;
        gap: 10px;
        bottom: 72px;
    }

    .options-container {
        gap: 10px;
        margin-top: 0;
        margin-bottom: 4px;
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        order: 1;
    }

    .options-container::-webkit-scrollbar {
        display: none;
    }

    .option-button {
        padding: 6px 14px;
        font-size: 0.85rem;
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .chat-input {
        order: 2;
    }
}

/* Landscape mobile orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .header-content .hero-title {
        font-size: clamp(1.1rem, 2vw, 1.8rem);
    }

    .chat-wrapper {
        min-height: calc(100vh - 80px);
    }
}

/* Tablet optimization */
@media (min-width: 769px) and (max-width: 1024px) {
    .chat-container {
        max-width: 100%;
    }

    .chat-wrapper {
        min-height: calc(100vh - 92px);
    }

    .header-content .hero-title {
        font-size: clamp(2rem, 4vw, 3rem);
    }

    .chat-header h2 {
        font-size: 2.5rem;
    }
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-logo {
    width: 80px;
    height: auto;
    margin-bottom: 20px;
}

.loading-spinner {
    width: 68px;
    height: 68px;
    border: 14px solid rgba(255, 32, 55, 0.1);
    border-top: 14px solid var(--text-primary);
    border-radius: 50%;
    animation: spin 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

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

.loading-text {
    margin-top: 15px;
    font-family: var(--font-family-headings);
    font-size: 1.2rem;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

/* Button Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    animation: rippleEffect 0.6s ease-out;
    pointer-events: none;
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Smooth Transitions */
* {
    -webkit-tap-highlight-color: var(--accent-orange);
    -webkit-touch-callout: none;
}

button {
    position: relative;
    overflow: hidden;
}

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

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-orange);
    border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-orange-hover);
}

/* Selection Color */
::selection {
    background: orangered;
    color: white;
}

::-moz-selection {
    background: orangered;
    color: white;
}

/* Focus Visible for Keyboard Navigation */
*:focus-visible {
    outline: 2px solid var(--accent-orange);
    outline-offset: 2px;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .particle,
    .fire-background,
    .loading-logo {
        animation: none !important;
    }
}

/* Print Styles */
@media print {
    .hero-section,
    .chat-input-container,
    .gradient-strip,
    .bg-particles,
    .fire-background {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .chat-wrapper {
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .message-bubble {
        page-break-inside: avoid;
    }
}

/* ===================================
   RISER REPORT MODAL STYLES
   =================================== */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal.modal-locked .modal-close {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    max-width: 560px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.4s ease;
    z-index: 1;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 32px;
    color: var(--text-secondary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 2;
}

.modal-close:hover {
    background: var(--bg-gray-100);
    color: var(--text-primary);
    transform: rotate(90deg);
}

.modal-header {
    text-align: center;
    padding: 40px 40px 20px;
    border-bottom: none;
}

.modal-flame-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    animation: flameFlicker 2s ease-in-out infinite;
}

.modal-flame-icon svg,
.modal-flame-icon img {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 12px rgba(255, 50, 65, 0.4));
}

@keyframes flameFlicker {
    0%, 100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
    50% {
        transform: scale(1.05) translateY(-2px);
        opacity: 0.95;
    }
}

.modal-logo {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    animation: pulse 2s ease infinite;
}

.modal-header h2 {
    font-family: var(--font-family-headings);
    font-size: 28px;
    color: var(--text-primary);
    margin-bottom: 12px;
    font-weight: 700;
    line-height: 1.3;
}

.modal-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 400;
}

.modal-body {
    padding: 35px 40px 40px;
}

/* Google Sign-in Modal */
.google-signin-modal {
    margin: 20px 0 15px;
    display: flex;
    justify-content: center;
}

.google-signin-modal > div {
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
}

/* LinkedIn Sign-in Button */
.linkedin-signin-btn {
    width: 100%;
    max-width: 300px;
    padding: 12px 24px;
    background: #0077b5;
    color: white;
    border: none;
    border-radius: 50px;
    font-family: var(--font-family-body);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(0, 119, 181, 0.2);
    margin: 10px auto;
}

.linkedin-signin-btn:hover {
    background: #005885;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 119, 181, 0.3);
}

.linkedin-signin-btn:active {
    transform: translateY(0);
}

.linkedin-signin-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.linkedin-signin-btn-main {
    margin: 0;
}

/* Completion Badge */
.completion-badge {
    text-align: center;
    margin-bottom: 30px;
}

.completion-circle {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
}

.completion-svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.completion-bg {
    fill: none;
    stroke: var(--bg-gray-200);
    stroke-width: 8;
}

.completion-progress {
    fill: none;
    stroke: #FF2037;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 1s ease;
}

.completion-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 28px;
    font-weight: bold;
    background: var(--gradient-orange);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.completion-message {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Modal Buttons */
.modal-btn {
    width: 100%;
    padding: 16px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-family-body);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.modal-btn-primary {
    background: var(--gradient-orange);
    color: white;
    box-shadow: var(--shadow-orange);
    font-size: 16px;
    font-weight: 500;
    padding: 16px 24px;
    border-radius: 30px;
}

.modal-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 50, 65, 0.3);
}

.modal-btn-primary:active {
    transform: translateY(0);
}

.modal-btn-swipe {
    margin-top: 10px;
}

.modal-btn-secondary {
    background: linear-gradient(90deg, #E8685D 0%, #F08B75 30%, #F5A186 60%, #FBBB9F 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(232, 104, 93, 0.25);
    font-size: 20px;
    font-weight: 600;
    padding: 20px 48px;
    border-radius: 50px;
    letter-spacing: 0.3px;
    border: none;
    margin-top: 10px;
}

.modal-btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(232, 104, 93, 0.35);
    background: linear-gradient(90deg, #E97868 0%, #F19B85 30%, #F6B196 60%, #FCCBAF 100%);
}

.modal-btn-secondary:active {
    transform: translateY(0);
}

.modal-btn-continue {
    margin-bottom: 12px;
    background: white;
    color: #1a1a1a;
    border: 2px solid transparent;
    background-image: linear-gradient(white, white), linear-gradient(135deg, #FF2037 0%, #FFB041 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

/* Round Download Button */
.modal-btn-round {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    padding: 0;
    margin: 30px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 8px 30px rgba(255, 50, 65, 0.4);
}

.modal-btn-round svg {
    width: 32px;
    height: 32px;
    stroke-width: 2.5;
}

.modal-btn-round span {
    font-size: 14px;
    font-weight: 600;
    margin-top: 4px;
}

.modal-btn-round:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 40px rgba(255, 50, 65, 0.5);
}

.modal-btn-round:active {
    transform: translateY(-2px) scale(1.02);
}

/* Matching Text */
.modal-matching-text {
    text-align: center;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    margin: 30px 0 20px;
    padding: 0 20px;
    white-space: pre-line;
}

#continue-progressing-btn {
    margin-bottom: 12px;
    background: white;
    color: #1a1a1a;
    border: 2px solid transparent;
    background-image: linear-gradient(white, white), linear-gradient(135deg, #FF2037 0%, #FFB041 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.modal-btn-continue:hover {
    background-image: linear-gradient(white, white), linear-gradient(135deg, #E01D30 0%, #F5A03A 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 32, 55, 0.2);
}

.modal-btn-continue:active {
    transform: translateY(0);
}

/* Modal Divider */
.modal-divider {
    position: relative;
    text-align: center;
    margin: 35px 0 25px;
}

.modal-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.modal-divider span {
    position: relative;
    background: var(--bg-white);
    padding: 0 20px;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* App Store Section */
.app-store-section {
    text-align: center;
    margin-bottom: 25px;
}

.app-store-text {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.5;
}

.qr-codes-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 20px;
    padding: 0 20px;
}

.qr-code-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.qr-canvas {
    width: 140px !important;
    height: 140px !important;
    margin: 0 auto;
    border: none;
    border-radius: 8px;
    padding: 10px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.qr-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    margin: 0;
}

.app-store-link {
    display: inline-block;
    transition: transform 0.2s ease;
}

.app-store-link:hover {
    transform: scale(1.05);
}

.app-store-link img {
    display: block;
    margin: 0 auto;
}

.store-badge {
    height: 45px !important;
    width: auto;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 30px 20px 15px;
    }
    
    .modal-body {
        padding: 25px 20px 30px;
    }
    
    .modal-flame-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 20px;
    }
    
    .modal-header h2 {
        font-size: 22px;
    }
    
    .modal-subtitle {
        font-size: 14px;
    }
    
    .qr-codes-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }
    
    .qr-canvas {
        width: 130px !important;
        height: 130px !important;
    }
    
    .completion-circle {
        width: 100px;
        height: 100px;
    }
    
    .completion-text {
        font-size: 24px;
    }
    
    .modal-btn-primary {
        font-size: 16px;
        padding: 16px 28px;
    }
    
    .modal-btn-secondary {
        font-size: 18px;
        padding: 18px 40px;
    }
}

/* --- NEW STYLES FOR STAGE & RESUME --- */

/* Stage Indicator */
.stage-indicator {
    display: flex;
    gap: 8px;
    margin-right: 16px;
}

.stage-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--border-color);
    transition: all 0.3s ease;
}

.stage-dot.active {
    background: var(--gradient-orange);
    transform: scale(1.2);
}

.stage-dot.completed {
    background: var(--gradient-orange);
    opacity: 0.6;
}

/* Attach Button */
.attach-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative; /* Needed for tooltip positioning */
}

.attach-btn:hover {
    background: var(--gradient-orange);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.attach-btn svg {
    width: 20px;
    height: 20px;
}

/* --- NEW STYLES FOR STAGE & RESUME --- */

/* Highlight Animation for Attach Button */
.attach-btn.highlight {
    animation: pulse-attention 2s infinite;
    color: var(--accent-orange);
}

@keyframes pulse-attention {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255, 107, 53, 0);
        transform: scale(1.1);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0);
        transform: scale(1);
    }
}

/* Tooltip for Attach Button */
.attach-btn {
    position: relative;
}

.attach-btn::after {
    content: "Upload resume to auto-fill details (Optional)";
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-primary);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-family: var(--font-family-body);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.1s ease-out;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 9999;
}

.attach-btn::before {
    content: '';
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: var(--text-primary) transparent transparent transparent;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.1s ease-out;
    z-index: 9999;
}

/* Show tooltip on hover OR when explicitly shown */
.attach-btn:hover::after,
.attach-btn.show-tooltip::after {
    opacity: 1;
    visibility: visible;
}

.attach-btn:hover::before,
.attach-btn.show-tooltip::before {
    opacity: 1;
    visibility: visible;
}

/* White Background Button Variant (e.g. LinkedIn) */
.modal-btn.white-bg {
    background: white;
    color: #0077b5; /* LinkedIn Blue or standard text color */
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.modal-btn.white-bg:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.linkedin-signin-btn.white-bg {
    background: white;
    color: #0a66c2; /* LinkedIn official blue */
    border: 1px solid #dce6f1;
    justify-content: center; /* Center content */
}

.linkedin-signin-btn.white-bg svg {
    fill: #0a66c2; /* LinkedIn official blue */
}

.linkedin-signin-btn.white-bg:hover {
    background: #f0f6fa;
    border-color: #c0d4e6;
}

/* Update Modal Header Icon Size if needed */
.modal-flame-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF6B35 0%, #FF2037 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.2);
}

.modal-flame-icon img {
    width: 50%;
    height: 50%;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Make icon white */
}

/* Proper Gradient for Download Button */
.modal-btn.modal-btn-primary,
.modal-btn.modal-btn-swipe {
    background: linear-gradient(135deg, #FFB041 0%, #FF2037 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 32, 55, 0.3);
}

.modal-btn.modal-btn-primary:hover,
.modal-btn.modal-btn-swipe:hover {
    background: linear-gradient(135deg, #FFC061 0%, #FF4057 100%); /* Slightly lighter on hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 32, 55, 0.4);
}
