/* ========================================
   IdeaMirror - AI Startup Similarity Finder
   TaskHarbor-inspired design
   ======================================== */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --blue: #3B82F6;
    --purple: #7C3AED;
    --dark-purple: #6D28D9;
    --dark-blue: #2563EB;
    --light-gray: #F9FAFB;
    --lighter-gray: #E5E7EB;
    --gray: #6B7280;
    --dark-gray: #1F2937;
    --navy: #1E293B;
    --white: #FFFFFF;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(180deg, #F3F4F6 0%, #FFFFFF 100%);
    color: var(--navy);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ========================================
   Navigation Bar
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
}

/* Navbar Sidebar Toggle Button */
.nav-sidebar-toggle {
    background: none;
    border: none;
    color: var(--navy);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
    min-width: 44px;
    min-height: 44px;
    margin-right: 0.5rem;
}

.nav-sidebar-toggle:hover {
    background: var(--light-gray);
}

.nav-sidebar-toggle svg {
    stroke: var(--navy);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    flex-shrink: 0;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    flex: 1;
    justify-content: center;
}

.nav-link {
    color: var(--gray);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem 0;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--navy);
}

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* User Dropdown Menu */
.user-menu {
    position: relative;
}

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border: 2px solid transparent;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: var(--navy);
    position: relative;
    overflow: hidden;
}

.user-menu-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50px;
    padding: 2px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.user-menu-btn:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.25);
}

.user-name-display {
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.user-menu-arrow {
    font-size: 0.65rem;
    transition: transform 0.3s ease;
    color: var(--purple);
}

.user-menu.active .user-menu-arrow {
    transform: rotate(180deg);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 1rem);
    right: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.05),
        0 10px 40px rgba(102, 126, 234, 0.2),
        0 0 0 1px rgba(102, 126, 234, 0.1);
    min-width: 260px;
    padding: 0;
    display: none;
    z-index: 1000;
    overflow: hidden;
}

.user-dropdown.active {
    display: block;
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-15px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.user-dropdown-header {
    padding: 1.25rem 1.25rem 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    border-bottom: 2px solid rgba(102, 126, 234, 0.1);
}

.user-dropdown-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-dropdown-name::before {
    content: '👤';
    font-size: 1.2rem;
}

.user-dropdown-plan {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: linear-gradient(135deg, #7C3AED 0%, #3B82F6 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(124, 58, 237, 0.3);
}

.user-dropdown-plan.free {
    background: linear-gradient(135deg, #6B7280, #4B5563);
    box-shadow: 0 2px 10px rgba(107, 114, 128, 0.3);
}

.user-dropdown-plan.starter {
    background: linear-gradient(135deg, #3B82F6 0%, #06B6D4 100%);
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.3);
}

.user-dropdown-plan.pro {
    background: linear-gradient(135deg, #7C3AED 0%, #EC4899 100%);
    box-shadow: 0 2px 10px rgba(236, 72, 153, 0.3);
}

.user-dropdown-btn {
    width: 100%;
    padding: 1rem 1.25rem;
    background: transparent;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark-gray);
    text-align: left;
}

.user-dropdown-btn:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.08));
    padding-left: 1.5rem;
}

.user-dropdown-btn.logout {
    color: #EF4444;
    border-top: 1px solid rgba(239, 68, 68, 0.1);
    margin-top: 0.5rem;
}

.user-dropdown-btn.logout:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.1));
    color: #DC2626;
}

.nav-btn {
    padding: 0.625rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.login-btn {
    background: transparent;
    color: var(--navy);
}

.login-btn:hover {
    background: var(--light-gray);
}

.signup-btn {
    background: var(--purple);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
}

.signup-btn:hover {
    background: var(--dark-purple);
    transform: translateY(-2px);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ========================================
   Hero Section
   ======================================== */

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 40px 80px;
    overflow: hidden;
}

.gradient-background {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, rgba(59, 130, 246, 0.1) 50%, transparent 70%);
    z-index: -1;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-30px); }
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 4rem;
    animation: fadeInUp 0.8s ease-out;
}

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

/* New Badge */
.new-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: #EEF2FF;
    border: 1px solid #C7D2FE;
    border-radius: 50px;
    padding: 0.5rem 1.25rem;
    margin-bottom: 2rem;
    animation: fadeIn 1s ease-out;
}

.badge-text {
    background: var(--purple);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-description {
    color: var(--navy);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Hero Title */
.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: var(--navy);
}

.gradient-text-purple {
    background: linear-gradient(135deg, var(--purple) 0%, var(--blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--gray);
    margin-bottom: 2.5rem;
    font-weight: 400;
    line-height: 1.7;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.primary-btn,
.secondary-btn {
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-family: 'Inter', sans-serif;
}

.primary-btn {
    background: var(--purple);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.3);
}

.primary-btn:hover {
    background: var(--dark-purple);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(124, 58, 237, 0.4);
}

.secondary-btn {
    background: var(--white);
    color: var(--purple);
    border: 2px solid var(--purple);
}

.secondary-btn:hover {
    background: var(--purple);
    color: var(--white);
    transform: translateY(-3px);
}

/* ========================================
   Search Interface
   ======================================== */

.search-interface {
    max-width: 1000px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.search-box {
    background: var(--white);
    border-radius: 20px;
    padding: 3.5rem 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.1);
}

.search-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1rem;
    text-align: center;
}

.search-description {
    font-size: 1.125rem;
    color: var(--gray);
    text-align: center;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

/* ========================================
   Input & Button Styles
   ======================================== */

.input-wrapper {
    margin-bottom: 1.5rem;
}

.idea-input {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.05rem;
    font-family: 'Inter', sans-serif;
    border: 2px solid var(--lighter-gray);
    background: var(--white);
    border-radius: 14px;
    resize: vertical;
    transition: all 0.3s ease;
    min-height: 140px;
    color: var(--navy);
    line-height: 1.6;
}

.idea-input:hover {
    border-color: #C7D2FE;
}

.idea-input:focus {
    outline: none;
    border-color: var(--purple);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.08);
}

.idea-input::placeholder {
    color: #9CA3AF;
}

.search-button {
    width: 100%;
    padding: 1.25rem 2rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--white);
    background: linear-gradient(135deg, var(--purple) 0%, #8B5CF6 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.search-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4);
}

.search-button:active {
    transform: translateY(-1px);
}

.search-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.search-button svg {
    transition: transform 0.3s ease;
}

.search-button:hover svg {
    transform: scale(1.15) rotate(5deg);
}

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

/* ========================================
   Error Message
   ======================================== */

.error-message {
    background: #FEE2E2;
    color: #991B1B;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-top: 1rem;
    border-left: 4px solid #DC2626;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* ========================================
   Loading Section
   ======================================== */

.loading-section {
    padding: 4rem 20px;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.loading-spinner {
    display: inline-block;
}

.spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    border: 4px solid #E5E7EB;
    border-top: 4px solid var(--blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.loading-subtext {
    font-size: 1rem;
    color: var(--gray);
}

/* ========================================
   Keywords Section
   ======================================== */

.keywords-section {
    padding: 2rem 20px;
    text-align: center;
    animation: fadeInUp 0.6s ease;
}

.keywords-label {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.keywords-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.keyword-tag {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, var(--blue) 0%, var(--purple) 100%);
    color: var(--white);
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    animation: popIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes popIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ========================================
   Results Section
   ======================================== */

.results-section {
    padding: 3rem 20px 5rem;
    animation: fadeInUp 0.8s ease;
}

.results-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark-gray);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

/* Result Card */
.result-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    animation: cardSlideIn 0.6s ease backwards;
}

.result-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--blue);
}

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

/* Stagger animation for cards */
.result-card:nth-child(1) { animation-delay: 0.1s; }
.result-card:nth-child(2) { animation-delay: 0.2s; }
.result-card:nth-child(3) { animation-delay: 0.3s; }
.result-card:nth-child(4) { animation-delay: 0.4s; }
.result-card:nth-child(5) { animation-delay: 0.5s; }

.card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.card-header-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.startup-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin: 0;
}

.source-badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    width: fit-content;
    border: 1.5px solid;
    transition: all 0.3s ease;
    
    /* Default style (Database) */
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(99, 102, 241, 0.15));
    color: #3B82F6;
    border-color: rgba(59, 130, 246, 0.3);
}

/* AI Powered badge (GPT) - different style */
.source-badge.ai-powered {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(168, 85, 247, 0.15));
    color: #7C3AED;
    border-color: rgba(124, 58, 237, 0.3);
}

/* Similarity Score Styles */
.similarity-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 100px;
}

.similarity-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: conic-gradient(
        var(--badge-color) calc(var(--similarity) * 3.6deg),
        var(--light-gray) 0deg
    );
    position: relative;
    animation: scoreAppear 0.6s ease-out;
}

@keyframes scoreAppear {
    from {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    to {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.similarity-circle::before {
    content: '';
    position: absolute;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--white);
}

.similarity-percent {
    position: relative;
    z-index: 1;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--navy);
}

.similarity-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
}

.similarity-high .similarity-label {
    color: #EF4444;
}

.similarity-medium .similarity-label {
    color: #F59E0B;
}

.similarity-low .similarity-label {
    color: #10B981;
}

.startup-description {
    color: var(--gray);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    min-height: 80px;
}

.view-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--blue) 0%, var(--purple) 100%);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.view-button:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.view-button svg {
    transition: transform 0.3s ease;
}

.view-button:hover svg {
    transform: translateX(3px);
}

/* ========================================
   Footer
   ======================================== */

.footer {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    border-top: 2px solid rgba(102, 126, 234, 0.1);
    margin-top: 4rem;
    padding: 3rem 0 1.5rem 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-description {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 300px;
}

.footer-heading {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.footer-links,
.footer-contact {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a,
.footer-contact a {
    color: var(--gray);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--purple);
    transform: translateX(5px);
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-contact svg {
    color: var(--purple);
    flex-shrink: 0;
}

.footer-contact a:hover {
    color: var(--purple);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(102, 126, 234, 0.15);
    text-align: center;
}

.footer-copyright {
    color: var(--gray);
    font-size: 0.9rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--blue) 0%, var(--purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 1024px) {
    .container,
    .nav-container {
        padding: 0 30px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .search-box {
        padding: 2.5rem 2rem;
    }
}

@media (max-width: 768px) {
    .nav-sidebar-toggle {
        display: flex !important;
        margin-right: 0.25rem;
        padding: 0.4rem;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        padding: 1rem 0;
        border-radius: 0 0 12px 12px;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu .nav-link {
        padding: 1rem 2rem;
        display: block;
        width: 100%;
        text-align: left;
    }
    
    .nav-actions {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 1rem 2rem;
        flex-direction: column;
        gap: 0.75rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 12px 12px;
        margin-top: 0.5rem;
    }
    
    .nav-actions.active {
        display: flex;
    }
    
    .user-info-nav {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    /* Footer Responsive */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-brand .footer-logo {
        justify-content: center;
    }
    
    .footer-description {
        max-width: 100%;
    }
    
    .footer-links,
    .footer-contact {
        align-items: center;
    }
    
    .user-email-nav,
    .logout-btn-nav {
        width: 100%;
        text-align: center;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .container,
    .nav-container {
        padding: 0 20px;
    }
    
    .hero-section {
        padding: 100px 20px 60px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .primary-btn,
    .secondary-btn {
        width: 100%;
    }
    
    .search-box {
        padding: 2rem 1.5rem;
    }
    
    .search-title {
        font-size: 1.75rem;
    }
    
    .search-description {
        font-size: 1rem;
    }
    
    .idea-input {
        font-size: 0.95rem;
        padding: 1rem;
    }
    
    .search-button {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .results-title {
        font-size: 1.5rem;
    }
    
    .result-card {
        padding: 1.5rem;
    }
    
    .card-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .similarity-score {
        align-self: flex-start;
        flex-direction: row;
        gap: 1rem;
    }
    
    .similarity-circle {
        width: 60px;
        height: 60px;
    }
    
    .similarity-circle::before {
        width: 48px;
        height: 48px;
    }
    
    .similarity-percent {
        font-size: 1rem;
    }
    
    .new-badge {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1.1rem;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .hero-section {
        min-height: 85vh;
        padding: 90px 16px 40px;
    }
    
    .search-box {
        border-radius: 16px;
        padding: 2rem 1.25rem;
    }
    
    .search-title {
        font-size: 1.5rem;
    }
    
    .search-description {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }
    
    .idea-input {
        font-size: 1rem;
        padding: 1.25rem;
    }
}

/* ========================================
   Advice Section
   ======================================== */

.advice-section {
    max-width: 900px;
    margin: 3rem auto;
    padding: 0 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.advice-container {
    background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.advice-container::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.advice-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.advice-icon {
    font-size: 3rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.advice-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: var(--white);
}

.advice-content {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
    white-space: pre-wrap;
}

.advice-content li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    list-style: none;
}

.advice-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4ADE80;
    font-weight: bold;
    font-size: 1.25rem;
}

.advice-footer {
    display: flex;
    justify-content: flex-end;
    position: relative;
    z-index: 1;
}

.advice-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .advice-container {
        padding: 2rem 1.5rem;
    }
    
    .advice-title {
        font-size: 1.5rem;
    }
    
    .advice-content {
        font-size: 1rem;
    }
    
    .advice-icon {
        font-size: 2.5rem;
    }
}

/* ========================================
   Tech Stack Section
   ======================================== */

.tech-stack-section {
    max-width: 1000px;
    margin: 3rem auto;
    padding: 0 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.tech-stack-container {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.tech-stack-container::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

.tech-stack-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}

.tech-stack-icon {
    font-size: 3.5rem;
    animation: bounce 2s ease-in-out infinite;
}

.tech-stack-title-group {
    flex: 1;
}

.tech-stack-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: var(--white);
}

.tech-stack-subtitle {
    font-size: 1.125rem;
    margin: 0;
    opacity: 0.9;
    font-weight: 500;
}

.tech-stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.tech-stack-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.tech-stack-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.tech-item-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.tech-item-icon {
    font-size: 1.75rem;
}

.tech-item-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
    color: var(--white);
}

.tech-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tech-list li {
    padding: 0.5rem 0;
    font-size: 1rem;
    line-height: 1.5;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    padding-left: 1.25rem;
}

.tech-list li:last-child {
    border-bottom: none;
}

.tech-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #34D399;
    font-weight: bold;
    font-size: 1rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .tech-stack-container {
        padding: 2rem 1.5rem;
    }
    
    .tech-stack-title {
        font-size: 1.5rem;
    }
    
    .tech-stack-subtitle {
        font-size: 1rem;
    }
    
    .tech-stack-icon {
        font-size: 2.5rem;
    }
    
    .tech-stack-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* ========================================
   Accessibility
   ======================================== */

.search-button:focus,
.idea-input:focus,
.view-button:focus {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

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

/* ========================================
   Idea Generator Modal
   ======================================== */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.4s ease;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.modal-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy);
    background: linear-gradient(135deg, var(--purple), var(--blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-close {
    background: var(--light-gray);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--gray);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--lighter-gray);
    color: var(--navy);
    transform: rotate(90deg);
}

.modal-description {
    color: var(--gray);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.category-btn {
    background: linear-gradient(135deg, #F9FAFB 0%, #FFFFFF 100%);
    border: 2px solid var(--lighter-gray);
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.category-btn:hover {
    border-color: var(--purple);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
}

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

.category-btn.selected {
    border-color: var(--purple);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

/* Generate Ideas Button */
.generate-btn-container {
    text-align: center;
    margin: 2rem 0;
    padding: 1.5rem 0;
    border-top: 2px dashed var(--lighter-gray);
}

.generate-ideas-btn {
    background: linear-gradient(135deg, var(--purple), var(--blue));
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

.generate-ideas-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.5);
}

.generate-ideas-btn:active:not(:disabled) {
    transform: translateY(0);
}

.generate-ideas-btn:disabled {
    background: var(--lighter-gray);
    color: var(--gray);
    cursor: not-allowed;
    box-shadow: none;
}

.generate-hint {
    color: var(--gray);
    font-size: 0.9rem;
    margin-top: 0.75rem;
}

.generate-hint.hidden {
    display: none;
}

/* Generated Ideas Section */
.ideas-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    margin: 2rem 0 1.5rem 0;
}

.ideas-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.idea-card {
    background: linear-gradient(135deg, #F9FAFB 0%, #FFFFFF 100%);
    border: 2px solid var(--lighter-gray);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.idea-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--purple), var(--blue));
    opacity: 0;
    transition: opacity 0.3s;
}

.idea-card:hover {
    border-color: var(--purple);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
}

.idea-card:hover::before {
    opacity: 1;
}

.idea-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.idea-card-description {
    font-size: 0.95rem;
    color: var(--gray);
    line-height: 1.6;
}

.idea-card-action {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--purple);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.idea-card-action svg {
    width: 16px;
    height: 16px;
}

/* Idea Generation Loading */
.idea-gen-loading {
    text-align: center;
    padding: 3rem 2rem;
}

.spinner-small {
    width: 40px;
    height: 40px;
    border: 4px solid var(--lighter-gray);
    border-top-color: var(--purple);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.idea-gen-loading p {
    color: var(--gray);
    font-size: 1rem;
}

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

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

/* Mobile Responsive */
@media (max-width: 768px) {
    .modal-content {
        padding: 1.5rem;
        max-height: 95vh;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .category-btn {
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    .idea-card {
        padding: 1.25rem;
    }
}

/* ========================================
   AI CO-FOUNDER CHAT STYLES
   ======================================== */

/* Brief advice styling */
.advice-content.brief-advice {
    font-size: 1rem;
    color: var(--dark-gray);
}

.advice-content.brief-advice ul {
    margin: 0;
    padding-left: 1.25rem;
}

.advice-content.brief-advice li {
    margin-bottom: 0.5rem;
}

/* AI Co-Founder CTA */
.ai-cofounder-cta {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    text-align: center;
    position: relative;
    z-index: 100;
    pointer-events: auto;
}

.cta-text {
    color: white;
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.ai-cofounder-btn {
    background: white;
    color: #764ba2;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1000;
    pointer-events: auto;
}

.ai-cofounder-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    background: #f8f9fa;
}

/* Chat Panel */
.ai-cofounder-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ai-cofounder-panel.active {
    opacity: 1;
}

.chat-panel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.chat-panel-container {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 500px;
    background: white;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.ai-cofounder-panel.active .chat-panel-container {
    transform: translateX(0);
}

/* Chat Header */
.chat-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--lighter-gray);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.chat-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chat-icon {
    font-size: 2rem;
}

.chat-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.chat-subtitle {
    font-size: 0.875rem;
    opacity: 0.9;
    margin: 0;
}

.chat-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Chat Body */
.chat-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    background: #f8f9fa;
}

/* Welcome Message */
.chat-welcome {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
}

.welcome-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.chat-welcome h4 {
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 1rem;
}

.chat-welcome p {
    color: var(--gray);
    margin-bottom: 1rem;
}

.chat-welcome ul {
    text-align: left;
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.chat-welcome ul li {
    padding: 0.5rem 0;
    color: var(--dark-gray);
}

.welcome-hint {
    font-size: 0.875rem;
    color: var(--purple);
    font-weight: 600;
    margin-top: 1rem;
}

/* Chat Messages */
.chat-message {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    animation: slideUp 0.3s ease;
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    background: var(--light-gray);
}

.message-content {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    max-width: 80%;
    color: var(--dark-gray);
    line-height: 1.6;
}

.chat-message.user .message-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* Typing Indicator */
.chat-message.typing .message-content {
    padding: 1rem 1.5rem;
}

.typing-dots {
    display: flex;
    gap: 0.5rem;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gray);
    animation: typing 1.4s infinite;
}

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

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

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.5;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Chat Footer */
.chat-panel-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--lighter-gray);
    background: white;
}

.chat-limit-info {
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    background: var(--light-gray);
    border-radius: 8px;
    text-align: center;
}

.limit-text {
    font-size: 0.875rem;
    color: var(--gray);
}

.limit-text strong {
    color: var(--purple);
    font-weight: 700;
}

.chat-limit-info.limit-warning {
    background: #FEF3C7;
    border: 1px solid #FCD34D;
}

.chat-limit-info.limit-warning .limit-text {
    color: #92400E;
}

.chat-limit-info.limit-warning strong {
    color: #B45309;
}

.chat-input-container {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
}

.chat-input {
    flex: 1;
    border: 2px solid var(--lighter-gray);
    border-radius: 10px;
    padding: 0.75rem;
    font-size: 0.95rem;
    font-family: inherit;
    resize: none;
    max-height: 120px;
    transition: border 0.2s ease;
}

.chat-input:focus {
    outline: none;
    border-color: var(--purple);
}

.chat-send-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.chat-send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.send-icon {
    font-size: 1.25rem;
}

/* ========================================
   PAYWALL MODAL STYLES
   ======================================== */

.paywall-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.paywall-modal.active {
    opacity: 1;
}

.paywall-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.paywall-content {
    position: relative;
    background: white;
    border-radius: 16px;
    padding: 3rem;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.paywall-modal.active .paywall-content {
    transform: scale(1);
}

.paywall-icon {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 1rem;
}

.paywall-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    color: var(--navy);
    margin-bottom: 1rem;
}

.paywall-description {
    text-align: center;
    color: var(--gray);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.paywall-plans {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.paywall-plan {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.paywall-plan.featured {
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #667eea, #764ba2) border-box;
    border: 2px solid transparent;
    position: relative;
}

.plan-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.paywall-plan h3 {
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.plan-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--purple);
    margin-bottom: 1rem;
}

.plan-features {
    list-style: none;
    padding: 0;
}

.plan-features li {
    padding: 0.5rem 0;
    color: var(--dark-gray);
    font-size: 0.95rem;
}

.paywall-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.paywall-btn {
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.paywall-btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.paywall-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.paywall-btn.secondary {
    background: var(--light-gray);
    color: var(--dark-gray);
}

.paywall-btn.secondary:hover {
    background: var(--lighter-gray);
}

/* Mobile Responsive for Chat & Paywall */
@media (max-width: 768px) {
    .chat-panel-container {
        max-width: 100%;
    }
    
    .paywall-content {
        padding: 2rem;
    }
    
    .paywall-plans {
        grid-template-columns: 1fr;
    }
    
    .paywall-title {
        font-size: 1.5rem;
    }
    
    .paywall-actions {
        flex-direction: column;
    }
    
    .paywall-btn {
        width: 100%;
    }
}

/* ========================================
   About, Features & Pricing Sections
   ======================================== */

/* Common Section Styles */
.about-section,
.features-section,
.pricing-section {
    padding: 80px 40px;
    background: var(--white);
}

.about-section {
    background: linear-gradient(180deg, #FFFFFF 0%, #F9FAFB 100%);
}

.features-section {
    background: var(--white);
}

.pricing-section {
    background: linear-gradient(180deg, #F9FAFB 0%, #FFFFFF 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
}

.about-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.about-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.about-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1rem;
}

.about-card p {
    font-size: 1rem;
    color: var(--gray);
    line-height: 1.7;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    border: 2px solid var(--lighter-gray);
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--purple);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.75rem;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--gray);
    line-height: 1.6;
}

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    border: 2px solid var(--lighter-gray);
    position: relative;
    transition: all 0.3s ease;
    text-align: center;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.popular {
    border-color: var(--purple);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.2);
    transform: scale(1.05);
}

.pricing-card.popular:hover {
    transform: scale(1.08) translateY(-8px);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--purple) 0%, var(--dark-purple) 100%);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.plan-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.plan-badge.free {
    background: linear-gradient(135deg, #E5E7EB 0%, #D1D5DB 100%);
    color: var(--dark-gray);
}

.plan-badge.starter {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.plan-badge.pro {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.plan-name {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 1rem;
}

.plan-price {
    margin-bottom: 2rem;
}

.plan-price .price {
    font-size: 3rem;
    font-weight: 900;
    color: var(--navy);
}

.plan-price .period {
    font-size: 1rem;
    color: var(--gray);
    font-weight: 500;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    text-align: left;
}

.plan-features li {
    font-size: 1rem;
    color: var(--dark-gray);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--lighter-gray);
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-btn {
    width: 100%;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.free-btn {
    background: var(--lighter-gray);
    color: var(--gray);
    cursor: not-allowed;
}

.starter-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.starter-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.pro-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.3);
}

.pro-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(240, 147, 251, 0.4);
}

/* Responsive Design for New Sections */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .about-content,
    .features-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .pricing-card.popular {
        transform: scale(1);
    }
    
    .pricing-card.popular:hover {
        transform: scale(1) translateY(-8px);
    }
    
    .plan-price .price {
        font-size: 2.5rem;
    }
}

/* ========================================
   Checkout Modal
   ======================================== */

.checkout-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.checkout-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.checkout-container {
    position: relative;
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

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

.checkout-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
}

.checkout-close:hover {
    background: var(--light-gray);
    color: var(--navy);
}

.checkout-header {
    text-align: center;
    padding: 2.5rem 2rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.checkout-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.checkout-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.checkout-subtitle {
    font-size: 1rem;
    opacity: 0.9;
}

.checkout-body {
    padding: 2rem;
}

/* Plan Summary */
.checkout-summary {
    background: var(--light-gray);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.checkout-summary h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--lighter-gray);
    font-size: 0.95rem;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item.total {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--purple);
    padding-top: 1rem;
    margin-top: 0.5rem;
    border-top: 2px solid var(--lighter-gray);
}

/* Form Styling */
.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1.25rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--lighter-gray);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.form-group input::placeholder {
    color: var(--gray);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.card-icons {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
}

.form-group {
    position: relative;
}

/* Checkout Actions */
.checkout-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.checkout-btn {
    flex: 1;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.checkout-btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.checkout-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.checkout-btn.primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.checkout-btn.secondary {
    background: var(--light-gray);
    color: var(--dark-gray);
}

.checkout-btn.secondary:hover {
    background: var(--lighter-gray);
}

.btn-spinner .spinner-small {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Security Badge */
.checkout-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--lighter-gray);
}

.checkout-security span {
    font-size: 1.25rem;
}

.checkout-security p {
    font-size: 0.85rem;
    color: var(--gray);
}

/* Responsive */
@media (max-width: 768px) {
    .checkout-container {
        width: 95%;
        max-height: 95vh;
    }
    
    .checkout-header {
        padding: 2rem 1.5rem 1.5rem;
    }
    
    .checkout-body {
        padding: 1.5rem;
    }
    
    .checkout-title {
        font-size: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .checkout-actions {
        flex-direction: column;
    }
}

/* ========================================
   Startup Info Modal & Info Icon
   ======================================== */

.startup-name-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.info-icon-btn {
    background: transparent;
    border: 2px solid var(--lighter-gray);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    flex-shrink: 0;
    color: var(--gray);
}

.info-icon-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
    transform: scale(1.1);
}

.info-icon-btn svg {
    width: 18px;
    height: 18px;
}

/* Startup Info Modal */
.startup-info-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.startup-info-modal.active {
    display: flex;
}

.startup-info-modal .modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
}

.startup-info-modal .modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideUp 0.4s ease;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.startup-info-modal .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 2rem 1rem 2rem;
    border-bottom: 1px solid var(--lighter-gray);
}

.startup-info-modal .modal-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0;
}

.modal-close-btn {
    background: var(--light-gray);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
}

.modal-close-btn:hover {
    background: #ff4757;
    color: white;
    transform: rotate(90deg);
}

.startup-info-modal .modal-body {
    padding: 2rem;
}

.info-section {
    margin-bottom: 2rem;
}

.info-section:last-of-type {
    margin-bottom: 1.5rem;
}

.info-startup-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 0.75rem 0;
}

.info-label {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray);
    margin-bottom: 0.75rem;
}

.info-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 0.5rem 0;
}

.info-link:hover {
    color: #764ba2;
    gap: 0.75rem;
}

.info-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--dark-gray);
    margin: 0;
}

.similarity-info {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem;
    background: var(--light-gray);
    border-radius: 12px;
}

.similarity-circle-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: conic-gradient(
        var(--badge-color) calc(var(--similarity) * 3.6deg),
        var(--lighter-gray) 0deg
    );
    position: relative;
    flex-shrink: 0;
}

.similarity-circle-large::before {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: white;
}

.similarity-percent-large {
    position: relative;
    z-index: 1;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
}

.similarity-details {
    flex: 1;
}

.similarity-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.similarity-badge.high-similarity {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: white;
}

.similarity-badge.medium-similarity {
    background: linear-gradient(135deg, #feca57, #ff9ff3);
    color: white;
}

.similarity-badge.low-similarity {
    background: linear-gradient(135deg, #48dbfb, #0abde3);
    color: white;
}

.similarity-explanation {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--gray);
    margin: 0;
}

.info-actions {
    display: flex;
    gap: 1rem;
    padding-top: 0.5rem;
}

.info-action-btn {
    flex: 1;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    border: none;
}

.info-action-btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.info-action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.info-action-btn.secondary {
    background: var(--light-gray);
    color: var(--dark-gray);
}

.info-action-btn.secondary:hover {
    background: var(--lighter-gray);
}

/* Responsive adjustments for info modal */
@media (max-width: 768px) {
    .startup-name-row {
        flex-wrap: wrap;
    }
    
    .similarity-info {
        flex-direction: column;
        text-align: center;
    }
    
    .info-actions {
        flex-direction: column;
    }
    
    .startup-info-modal .modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .startup-info-modal .modal-header,
    .startup-info-modal .modal-body {
        padding: 1.5rem;
    }
}

/* ============================================ */
/* PAYMENT SUCCESS MODAL */
/* ============================================ */

.payment-success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.payment-success-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
}

.payment-success-content {
    position: relative;
    background: white;
    border-radius: 24px;
    padding: 48px 40px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    animation: slideInUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.payment-success-icon {
    font-size: 80px;
    margin-bottom: 24px;
    animation: bounce 0.6s ease-out 0.3s;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

.payment-success-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 16px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.payment-success-text {
    font-size: 18px;
    color: #666;
    margin: 0 0 12px 0;
    line-height: 1.6;
}

.payment-success-subtext {
    font-size: 14px;
    color: #999;
    margin: 0 0 32px 0;
}

.payment-success-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px 48px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.payment-success-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.payment-success-btn:active {
    transform: translateY(0);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .payment-success-content {
        padding: 40px 24px;
    }
    
    .payment-success-icon {
        font-size: 64px;
    }
    
    .payment-success-title {
        font-size: 24px;
    }
    
    .payment-success-text {
        font-size: 16px;
    }
}

/* ============================================
 * CHAT SIDEBAR (Feature 1)
 * ============================================ */

.chat-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
    border-right: 3px solid;
    border-image: linear-gradient(180deg, #667eea 0%, #764ba2 50%, #3B82F6 100%) 1;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.chat-sidebar.hidden {
    transform: translateX(-100%);
}

/* Desktop: Sidebar always visible unless .hidden */
@media (min-width: 769px) {
    .chat-sidebar {
        transform: translateX(0);
    }
    
    .sidebar-overlay {
        display: none !important;
    }
    
    /* Hide sidebar toggle button on desktop (sidebar is always visible) */
    .sidebar-toggle-btn {
        display: none !important;
    }
    
    /* Ensure new-chat button is visible on desktop */
    .new-chat-btn {
        display: flex !important;
        flex-shrink: 0;
    }
    
    /* Adjust header layout for desktop - only title and new-chat button */
    .sidebar-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px;
        gap: 1rem;
    }
    
    .sidebar-title {
        flex: 1;
    }
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 16px;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #3B82F6 100%) 1;
    background: rgba(124, 58, 237, 0.02);
}

.sidebar-toggle-btn {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s;
}

.sidebar-toggle-btn:hover {
    background: rgba(124, 58, 237, 0.08);
    color: #7C3AED;
}

.sidebar-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.new-chat-btn {
    background: linear-gradient(135deg, #7C3AED 0%, #3B82F6 100%);
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 36px;
    flex-shrink: 0;
}

.new-chat-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.sidebar-loading,
.sidebar-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    color: #6b7280;
}

.sidebar-loading .spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(124, 58, 237, 0.2);
    border-top-color: #7C3AED;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 12px;
}

.sidebar-empty svg {
    margin-bottom: 12px;
    opacity: 0.5;
}

.sidebar-empty p {
    margin: 8px 0;
    font-weight: 500;
}

.sidebar-empty small {
    font-size: 13px;
    opacity: 0.7;
}

.sidebar-sessions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.session-item {
    background: rgba(124, 58, 237, 0.04);
    border: 1px solid rgba(124, 58, 237, 0.12);
    border-radius: 12px;
    padding: 12px 14px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.session-item:hover {
    background: rgba(124, 58, 237, 0.08);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15), 0 0 20px rgba(118, 75, 162, 0.1);
}

.session-item.active {
    background: rgba(124, 58, 237, 0.12);
    border: 2px solid transparent;
    border-image: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #3B82F6 100%) 1;
    box-shadow: 0 2px 12px rgba(102, 126, 234, 0.25);
}

.session-title {
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    margin: 0 0 4px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.session-date {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
}

.session-delete-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(239, 68, 68, 0.1);
    border: none;
    color: #EF4444;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    opacity: 0;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.session-item:hover .session-delete-btn {
    opacity: 1;
}

.session-delete-btn:hover {
    background: rgba(239, 68, 68, 0.2);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

/* Push content when sidebar is visible */
body.sidebar-open {
    margin-left: 280px;
}

/* ============================================
 * SUBSCRIPTION MANAGEMENT MODAL (Feature 3)
 * ============================================ */

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

.subscription-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
}

.subscription-modal-content {
    position: relative;
    width: 90%;
    max-width: 540px;
    max-height: 80vh;
    background: linear-gradient(180deg, #1a1625 0%, #0f0e14 100%);
    border-radius: 24px;
    border: 1px solid rgba(124, 58, 237, 0.2);
    overflow: hidden;
    animation: slideUpFade 0.3s ease;
}

.subscription-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid rgba(124, 58, 237, 0.1);
}

.subscription-modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.subscription-modal-close {
    background: none;
    border: none;
    color: #9CA3AF;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s;
}

.subscription-modal-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
}

.subscription-modal-body {
    padding: 24px;
    max-height: calc(80vh - 80px);
    overflow-y: auto;
}

.subscription-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.subscription-loading .spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(124, 58, 237, 0.2);
    border-top-color: #7C3AED;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

.subscription-loading p {
    color: #9CA3AF;
    margin: 0;
}

.subscription-card {
    background: rgba(124, 58, 237, 0.05);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.subscription-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.subscription-card-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.subscription-plan-badge {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: capitalize;
}

.subscription-plan-badge.free {
    background: rgba(156, 163, 175, 0.2);
    color: #9CA3AF;
}

.subscription-plan-badge.starter {
    background: linear-gradient(135deg, #7C3AED 0%, #3B82F6 100%);
    color: #fff;
}

.subscription-plan-badge.pro {
    background: linear-gradient(135deg, #F59E0B 0%, #EF4444 100%);
    color: #fff;
}

.subscription-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.subscription-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-label {
    color: #9CA3AF;
    font-size: 14px;
}

.detail-value {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.detail-value strong {
    color: #7C3AED;
    font-size: 16px;
}

.subscription-cancel-section,
.subscription-upgrade-section {
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
}

.subscription-upgrade-section {
    background: rgba(124, 58, 237, 0.05);
    border-color: rgba(124, 58, 237, 0.2);
    text-align: center;
}

.cancel-warning {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.cancel-warning svg {
    flex-shrink: 0;
}

.cancel-warning h4 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 4px 0;
}

.cancel-warning p {
    font-size: 14px;
    color: #9CA3AF;
    margin: 0;
}

.cancel-subscription-btn {
    width: 100%;
    padding: 12px 24px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #EF4444;
    color: #EF4444;
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.cancel-subscription-btn:hover {
    background: #EF4444;
    color: #fff;
    transform: translateY(-2px);
}

.upgrade-text {
    color: #9CA3AF;
    font-size: 14px;
    margin: 0 0 16px 0;
}

.upgrade-btn {
    padding: 12px 32px;
    background: linear-gradient(135deg, #7C3AED 0%, #3B82F6 100%);
    border: none;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.upgrade-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.4);
}

.subscription-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.subscription-error svg {
    margin-bottom: 16px;
}

.subscription-error p {
    color: #9CA3AF;
    margin: 0 0 20px 0;
    font-size: 16px;
}

.retry-btn {
    padding: 10px 24px;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid #7C3AED;
    color: #7C3AED;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.retry-btn:hover {
    background: #7C3AED;
    color: #fff;
}

/* ============================================
 * RESPONSIVE - SIDEBAR & MODAL
 * ============================================ */

@media (max-width: 768px) {
    .chat-sidebar {
        width: 100%;
        max-width: 320px;
        transform: translateX(-100%);
        z-index: 2000;
    }
    
    .chat-sidebar.visible {
        transform: translateX(0);
    }
    
    body.sidebar-open {
        margin-left: 0;
        overflow: hidden;
    }
    
    .sidebar-overlay {
        display: none;
        z-index: 1999;
    }
    
    .sidebar-overlay.visible {
        display: block !important;
    }
    
    .subscription-modal-content {
        width: 95%;
        margin: 0 auto;
    }
    
    .subscription-modal-body {
        padding: 20px;
    }
    
    /* AI Cofounder Chat Panel Mobile */
    .chat-panel-container {
        max-width: 100%;
        width: 100%;
    }
    
    .chat-panel-header {
        padding: 1rem;
    }
    
    .chat-panel-title {
        font-size: 1.1rem;
    }
    
    .chat-panel-body {
        padding: 1rem;
    }
    
    .message-content {
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
    }
    
    .chat-input {
        font-size: 0.9rem;
        padding: 0.65rem;
    }
    
    .chat-send-btn {
        padding: 0.65rem;
        min-width: 44px;
    }
    
    /* Modal Content Mobile */
    .modal-content {
        padding: 1.5rem;
        max-height: 85vh;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
    
    .close-btn {
        width: 36px;
        height: 36px;
        font-size: 1.5rem;
    }
    
    /* Checkout Modal Mobile */
    .checkout-modal-content {
        width: 95%;
        max-width: 95%;
        padding: 1.5rem;
    }
    
    .checkout-header h2 {
        font-size: 1.5rem;
    }
    
    .checkout-plan-name {
        font-size: 1.25rem;
    }
    
    .checkout-price {
        font-size: 2rem;
    }
    
    /* Result Cards Mobile */
    .result-card {
        padding: 1.25rem;
    }
    
    .result-card-header h3 {
        font-size: 1.1rem;
    }
    
    /* Auth Modal Mobile */
    .auth-modal-content {
        width: 95%;
        max-width: 400px;
        padding: 1.5rem;
    }
    
    .auth-form input {
        font-size: 0.95rem;
        padding: 0.85rem;
    }
    
    .auth-submit {
        font-size: 0.95rem;
        padding: 0.85rem;
    }
}

@media (max-width: 480px) {
    /* Navigation Actions Fix */
    .nav-actions {
        top: 100%;
        margin-top: 0.5rem;
    }
    
    .nav-btn {
        padding: 0.75rem 1.25rem;
        min-height: 44px;
        font-size: 0.95rem;
    }
    
    /* Chat Panel Extra Small Screens */
    .chat-panel-header {
        padding: 0.75rem;
        flex-wrap: wrap;
    }
    
    .chat-panel-title {
        font-size: 1rem;
    }
    
    .close-chat-btn {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
        min-width: 44px;
        min-height: 44px;
    }
    
    .message-content {
        font-size: 0.85rem;
        padding: 0.65rem 0.85rem;
    }
    
    .chat-input {
        font-size: 0.85rem;
        min-height: 44px;
    }
    
    .chat-send-btn {
        min-width: 44px;
        min-height: 44px;
    }
    
    /* Modal Mobile Small */
    .modal-content {
        padding: 1.25rem;
        border-radius: 16px;
    }
    
    .modal-header h2 {
        font-size: 1.25rem;
    }
    
    /* Checkout Mobile Small */
    .checkout-modal-content {
        padding: 1.25rem;
    }
    
    .checkout-header h2 {
        font-size: 1.25rem;
    }
    
    .checkout-price {
        font-size: 1.75rem;
    }
    
    .lemon-checkout-btn {
        min-height: 48px;
        font-size: 1rem;
    }
    
    /* Result Cards Mobile Small */
    .result-card {
        padding: 1rem;
    }
    
    .result-card-header h3 {
        font-size: 1rem;
    }
    
    .view-button {
        font-size: 0.85rem;
        padding: 0.65rem 1.25rem;
        min-height: 44px;
    }
    
    /* Search Box Mobile */
    .search-button {
        font-size: 0.95rem;
        padding: 1rem 1.5rem;
        min-height: 48px;
    }
    
    /* Pricing Cards Mobile */
    .pricing-card {
        padding: 1.5rem;
    }
    
    .plan-name {
        font-size: 1.1rem;
    }
    
    .plan-price .price {
        font-size: 2rem;
    }
    
    .plan-btn {
        min-height: 48px;
        font-size: 1rem;
    }
    
    /* Auth Modal Small */
    .auth-modal-content {
        padding: 1.25rem;
    }
    
    .auth-header h2 {
        font-size: 1.25rem;
    }
    
    .auth-form input {
        min-height: 48px;
    }
    
    .auth-submit {
        min-height: 48px;
    }
    
    /* Advice Section Mobile */
    .advice-container {
        padding: 1.5rem;
    }
    
    .advice-title {
        font-size: 1.25rem;
    }
    
    .advice-text {
        font-size: 0.9rem;
    }
    
    /* AI Cofounder Button Mobile */
    .ai-cofounder-btn {
        bottom: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
        padding: 0;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        text-indent: -9999px;
        white-space: nowrap;
    }
    
    .ai-cofounder-btn::before {
        content: '💬';
        position: absolute;
        text-indent: 0;
        font-size: 1.75rem;
    }
    
    .ai-cofounder-cta {
        padding: 1.25rem;
    }
    
    .cta-text {
        font-size: 0.9rem;
    }
    
    /* Mobile Menu Button Touch Target */
    .mobile-menu-btn {
        min-width: 44px;
        min-height: 44px;
        padding: 0.5rem;
    }
    
    /* Sidebar Toggle Mobile */
    .sidebar-toggle-btn,
    .new-chat-btn {
        min-width: 40px;
        min-height: 40px;
    }
}

