/* Base styles - Modern AI/iOS Futuristic Theme */
:root {
    --primary-color: #007AFF;
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --accent-color: #5E5CE6;
    --success-color: #34C759;
    --background-color: #F2F2F7;
    --card-background: #FFFFFF;
    --text-color: #1C1C1E;
    --text-secondary: #8E8E93;
    --border-radius: 16px;
    --box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    --hover-box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    --transition-speed: 0.3s;
    --glass-background: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
}

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

html, body {
    min-height: 100%;
    width: 100%;
    background: #FFFFFF;
}

/* =============================================================================
   FULL-SCREEN PROFESSIONAL HOMEPAGE - CLEAN REDESIGN
   ============================================================================= */

/* Base Container */
.homepage-container {
    min-height: 100vh;
    width: 100%;
    background: #FFFFFF;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #111827;
}

.homepage-view {
    display: flex;
    flex-direction: column;
}

/* ===== NAVIGATION ===== */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.nav-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 80px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.nav-logo {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #111111;
    text-transform: uppercase;
}


/* ===== FULL-SCREEN HERO ===== */
.hero-fullscreen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px 80px 120px;
    background: #FFFFFF;
    width: 100%;
}

.hero-wrapper {
    width: 100%;
    max-width: 1200px;
    text-align: center;
    margin: 0 auto;
}

.hero-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 3px;
    color: #888888;
    margin-bottom: 48px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 64px;
    font-weight: 300;
    line-height: 1.15;
    letter-spacing: -1px;
    color: #111111;
    margin-bottom: 32px;
}

.hero-subtitle {
    font-size: 17px;
    line-height: 1.8;
    color: #666666;
    margin-bottom: 56px;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.btn-request-access {
    background: #FFFFFF;
    color: #111111;
    border: 1px solid #CCCCCC;
    padding: 14px 36px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    width: auto;
}

.btn-request-access:hover {
    border-color: #111111;
    background: #FAFAFA;
}



/* ===== SECTION: WHAT IT DOES ===== */
.section-what {
    padding: 140px 80px;
    background: #FAFAFA;
    width: 100%;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.section-container-narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 80px;
    width: 100%;
}

.section-header-center {
    text-align: center;
    margin-bottom: 80px;
}

.section-heading {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 3px;
    color: #888888;
    margin-bottom: 0;
    text-transform: uppercase;
}

.section-subheading {
    font-size: 15px;
    color: #999999;
    font-weight: 400;
    margin-top: 12px;
}

.grid-four {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.capability-card {
    background: #FFFFFF;
    border: none;
    border-radius: 0;
    padding: 48px 40px;
    transition: all 0.3s ease;
}

.capability-card:hover {
    background: #F8F8F8;
}

.capability-number {
    font-size: 11px;
    font-weight: 500;
    color: #AAAAAA;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.capability-title {
    font-size: 16px;
    font-weight: 600;
    color: #111111;
    margin-bottom: 14px;
    letter-spacing: -0.2px;
}

.capability-text {
    font-size: 14px;
    line-height: 1.7;
    color: #777777;
}

/* ===== SECTION: WHO USES THIS ===== */
.section-who {
    padding: 120px 80px;
    background: #FFFFFF;
    width: 100%;
}

.who-box {
    background: transparent;
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0;
    padding: 80px 0;
    text-align: center;
}

.who-title {
    font-size: 11px;
    font-weight: 600;
    color: #888888;
    margin-bottom: 32px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.who-description {
    font-size: 24px;
    line-height: 1.6;
    color: #333333;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 300;
}

.who-divider {
    width: 40px;
    height: 1px;
    background: rgba(0, 0, 0, 0.15);
    margin: 40px auto;
}

.who-not-for {
    font-size: 14px;
    color: #999999;
    line-height: 1.7;
    font-style: italic;
}

/* ===== SECTION: ACCESS ===== */
.section-access {
    padding: 80px 80px;
    background: #FAFAFA;
    width: 100%;
}

.access-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    width: fit-content;
}

.access-dot {
    width: 6px;
    height: 6px;
    background: #10B981;
    border-radius: 50%;
    animation: pulse-dot 2.5s ease-in-out infinite;
}

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

.access-label {
    font-size: 12px;
    font-weight: 500;
    color: #888888;
    letter-spacing: 0.5px;
}

/* ===== FOOTER ===== */
.main-footer {
    padding: 40px 80px;
    background: #FFFFFF;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    width: 100%;
}

.footer-wrapper {
    text-align: center;
    font-size: 11px;
    color: #AAAAAA;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-brand {
    font-weight: 600;
    color: #888888;
}

.footer-sep {
    margin: 0 12px;
    color: #DDDDDD;
}

.footer-label {
    color: #AAAAAA;
}

/* ===== LOGIN VIEW ===== */
.login-view {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FAFAFA;
    padding: 60px 24px;
}

.login-card-pro {
    width: 100%;
    max-width: 400px;
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 2px;
    padding: 48px;
    box-shadow: none;
}

.back-btn-pro {
    background: #FFFFFF;
    color: #111111;
    border: 1px solid #CCCCCC;
    padding: 14px 36px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    margin: 0 auto 32px auto;
    transition: all 0.3s ease;
    width: auto;
    display: block;
}

.back-btn-pro:hover {
    border-color: #111111;
    background: #FAFAFA;
}

.login-header-pro h1 {
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 3px;
    color: #888888;
    text-transform: uppercase;
}

.login-header-pro p {
    color: #666666;
    font-size: 14px;
    margin-bottom: 32px;
}

.login-methods {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pro-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pro-input-group label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #888888;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.pro-input-group input {
    width: 100%;
    padding: 12px 14px;
    background: #FFFFFF;
    border: 1px solid #DDDDDD;
    border-radius: 4px;
    color: #111111;
    font-size: 14px;
    transition: all 0.2s ease;
}

.pro-input-group input:focus {
    outline: none;
    border-color: #111111;
}

.pro-btn-submit {
    padding: 12px;
    background: #111111;
    color: #FFFFFF;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.3s ease;
}

.pro-btn-submit:hover {
    background: #333333;
}

/* =============================================================================
   RESPONSIVE DESIGN
   ============================================================================= */

/* Large Desktop (1400px and up) */
@media (min-width: 1400px) {
    .hero-title {
        font-size: 72px;
    }
    
    .nav-content,
    .hero-fullscreen,
    .section-what,
    .section-who,
    .section-access,
    .main-footer {
        padding-left: 120px;
        padding-right: 120px;
    }
}

/* Tablet & Small Desktop (1024px and below) */
@media (max-width: 1024px) {
    .nav-content {
        padding: 0 40px;
    }
    
    .hero-fullscreen {
        padding: 64px 40px 100px;
    }
    
    .hero-title {
        font-size: 48px;
        letter-spacing: -0.5px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .section-what,
    .section-who {
        padding: 100px 40px;
    }
    
    .section-container-narrow {
        padding: 0 40px;
    }
    
    .grid-four {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .capability-card {
        padding: 36px 28px;
    }
    
    .who-box {
        padding: 60px 0;
    }
    
    .who-description {
        font-size: 20px;
    }
    
    .main-footer,
    .section-access {
        padding: 40px;
    }
}

/* Mobile & Tablet (768px and below) */
@media (max-width: 768px) {
    .nav-content {
        padding: 0 24px;
        height: 56px;
    }
    
    .nav-logo {
        font-size: 16px;
    }
    
    .nav-login {
        padding: 7px 16px;
        font-size: 11px;
    }
    
    .hero-fullscreen {
        min-height: auto;
        padding: 100px 24px 80px;
    }
    
    .hero-tag {
        font-size: 10px;
        margin-bottom: 32px;
    }
    
    .hero-title {
        font-size: 36px;
        font-weight: 400;
        margin-bottom: 24px;
    }
    
    .hero-subtitle {
        font-size: 15px;
        margin-bottom: 40px;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    
    .hero-actions .btn-request-access {
        width: 100%;
        padding: 14px 24px;
    }
    
    .section-what {
        padding: 60px 24px;
    }
    
    .section-header-center {
        margin-bottom: 48px;
    }
    
    .grid-four {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .capability-card {
        padding: 32px 24px;
    }
    
    .section-who {
        padding: 60px 24px;
    }
    
    .section-container-narrow {
        padding: 0;
    }
    
    .who-box {
        padding: 48px 0;
    }
    
    .who-description {
        font-size: 18px;
    }
    
    .section-access {
        padding: 48px 24px;
    }
    
    .main-footer {
        padding: 32px 24px;
    }
    
    .login-card-pro {
        padding: 36px 24px;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .who-description {
        font-size: 16px;
    }
}

/* =============================================================================
   HOMEPAGE OVERRIDE - FORCE FULL WHITE AND FULL WIDTH
   ============================================================================= */
html,
body,
.homepage-container,
.homepage-view,
#auth-container,
#homepage-view {
    background: #FFFFFF !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

#auth-container {
    padding: 0 !important;
}

.hero-fullscreen,
.section-what,
.section-who,
.section-access,
.main-footer,
.main-nav {
    background: #FFFFFF !important;
}

.section-what,
.section-access {
    background: #FAFAFA !important;
}

/* Override global h1 gradient for homepage */
.homepage-view h1,
.homepage-view .hero-title,
.hero-title {
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #000000 !important;
    background-clip: unset !important;
    color: #000000 !important;
}

.homepage-view h2,
.homepage-view h3,
.section-heading,
.capability-title,
.who-title {
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #000000 !important;
    background-clip: unset !important;
    color: #000000 !important;
}

/* End of Homepage Styles */

.login-view {
    background: #F9FAFB !important;
    color: #0F172A !important;
}

.login-view::before {
    display: none !important;
}

/* =====================================================
   LOGIN VIEW STYLES
   ===================================================== */
.login-view {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #09090B;
    padding: 32px;
    position: relative;
}

.login-view::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 30%, rgba(59, 130, 246, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.login-container {
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: #71717A;
    font-size: 14px;
    cursor: pointer;
    padding: 12px 0;
    margin-bottom: 24px;
    transition: color 0.2s ease;
}

.back-btn:hover {
    color: #FAFAFA;
}

.login-card {
    background: linear-gradient(180deg, #18181B 0%, #0F0F12 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo {
    font-size: 40px;
    margin-bottom: 16px;
}

.login-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #FAFAFA;
    margin-bottom: 8px;
}

.login-header p {
    font-size: 14px;
    color: #71717A;
}

.login-form-wrapper {
    /* Already contained in login-card */
}

.google-login-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    background: #FAFAFA;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #09090B;
    cursor: pointer;
    transition: all 0.2s ease;
}

.google-login-btn:hover {
    background: #E4E4E7;
    transform: translateY(-1px);
}

.login-divider {
    display: flex;
    align-items: center;
    margin: 28px 0;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.login-divider span {
    padding: 0 16px;
    font-size: 13px;
    color: #52525B;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.login-field label {
    font-size: 13px;
    font-weight: 500;
    color: #A1A1AA;
}

.login-field input {
    padding: 16px 18px;
    background: #09090B;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 15px;
    color: #FAFAFA;
    transition: all 0.2s ease;
}

.login-field input::placeholder {
    color: #52525B;
}

.login-field input:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.login-submit-btn {
    padding: 16px 24px;
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.login-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
}

.login-note {
    text-align: center;
    font-size: 14px;
    color: #52525B;
    margin-top: 24px;
}

.login-note a {
    color: #60A5FA;
    text-decoration: none;
}

.login-note a:hover {
    text-decoration: underline;
}

/* Desktop Large (1600px+) - Default styles above */

/* Desktop Standard (1200px - 1599px) */
@media (max-width: 1599px) {
    .hero-title {
        font-size: 64px;
    }
    
    .section-title {
        font-size: 48px;
    }
}

/* Tablet Landscape / Small Desktop (900px - 1199px) */
@media (max-width: 1199px) {
    .landing-nav {
        padding: 16px 40px;
    }
    
    .landing-hero {
        padding: 140px 40px 100px;
    }
    
    .hero-container {
        gap: 60px;
    }
    
    .hero-title {
        font-size: 52px;
    }
    
    .features-grid-large {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .steps-grid::before {
        display: none;
    }
    
    .tutorials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .landing-features,
    .landing-how-it-works,
    .landing-tutorials,
    .landing-audience,
    .landing-cta {
        padding: 120px 40px;
    }
    
    .trust-bar,
    .landing-footer {
        padding: 32px 40px;
    }
}

/* Tablet Portrait (768px - 899px) */
@media (max-width: 899px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-description {
        max-width: 100%;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .hero-mockup {
        max-width: 400px;
    }
    
    .hero-title {
        font-size: 44px;
    }
    
    .section-title {
        font-size: 40px;
    }
}

/* Mobile (max-width: 767px) */
@media (max-width: 767px) {
    .landing-nav {
        padding: 14px 20px;
    }
    
    .nav-links {
        display: none;
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    .landing-hero {
        padding: 120px 24px 80px;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 36px;
        letter-spacing: -1px;
    }
    
    .hero-description {
        font-size: 17px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .stat-divider {
        display: none;
    }
    
    .trust-bar {
        padding: 32px 24px;
    }
    
    .trust-container {
        flex-direction: column;
        gap: 24px;
    }
    
    .trust-logos {
        gap: 32px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .landing-features,
    .landing-how-it-works,
    .landing-tutorials,
    .landing-audience,
    .landing-cta {
        padding: 80px 24px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .section-subtitle {
        font-size: 17px;
    }
    
    .features-grid-large {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .feature-card-large {
        padding: 32px;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .tutorials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .audience-split {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .audience-block {
        padding: 36px;
    }
    
    .cta-content h2 {
        font-size: 32px;
    }
    
    .cta-content p {
        font-size: 17px;
    }
    
    .landing-footer {
        padding: 32px 24px;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
    
    .footer-links {
        gap: 24px;
    }
}

/* =====================================================
   INFO TOOLTIPS - Hover/Tap for explanations
   ===================================================== */
.info-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-left: 6px;
    cursor: help;
    vertical-align: middle;
    z-index: 1;
}

.info-tooltip .info-icon {
    font-size: 13px;
    color: #8E8E93;
    transition: color 0.2s ease;
}

.info-tooltip:hover .info-icon {
    color: #007AFF;
}

.info-tooltip .tooltip-content {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    padding: 14px 16px;
    background: rgba(28, 28, 30, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    z-index: 999999;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    pointer-events: none;
}

/* Fixed position tooltip - appears in a portal-like manner */
.info-tooltip .tooltip-content.tooltip-fixed {
    position: fixed;
    bottom: auto;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    max-width: 90vw;
    padding: 20px 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 999999 !important; /* Ensure it's above everything */
    pointer-events: auto;
}

/* Wider tooltip for market valuation section */
.info-tooltip .tooltip-content.tooltip-wide {
    width: 320px;
    max-width: 90vw;
}

/* Market pricing section tooltips - align left to prevent clipping */
.market-pricing-notice .info-tooltip .tooltip-content {
    left: 0;
    transform: translateX(0);
    right: auto;
}

.market-pricing-notice .info-tooltip .tooltip-content::after {
    left: 20px;
    transform: none;
}

.info-tooltip .tooltip-content.tooltip-fixed::after {
    display: none; /* No arrow for fixed tooltips */
}

/* Backdrop overlay for fixed tooltips */
.info-tooltip.tooltip-above:hover::before,
.info-tooltip.tooltip-above:focus::before,
.info-tooltip.tooltip-above.active::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 999998;
}

/* Tooltip above the element */
.info-tooltip.tooltip-above .tooltip-content:not(.tooltip-fixed) {
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
}

.info-tooltip:hover .tooltip-content,
.info-tooltip:focus .tooltip-content,
.info-tooltip.active .tooltip-content {
    opacity: 1;
    visibility: visible;
}

/* Ensure tooltip parent gets higher z-index when active */
.info-tooltip:hover,
.info-tooltip:focus {
    z-index: 999999;
}

/* Ensure bidding option with active tooltip is above others */
.bidding-option:has(.info-tooltip:hover),
.bidding-option:has(.info-tooltip:focus) {
    z-index: 9999;
    position: relative;
}

/* Ensure market row with active tooltip is above others */
.market-row:has(.info-tooltip:hover),
.market-row:has(.info-tooltip:focus) {
    z-index: 9999;
    position: relative;
}

.info-tooltip .tooltip-content::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: rgba(28, 28, 30, 0.95);
}

.tooltip-title {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tooltip-title::before {
    content: 'ⓘ';
    font-size: 12px;
    opacity: 0.7;
}

.tooltip-text {
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
}

.tooltip-text p {
    margin-bottom: 8px;
}

.tooltip-text p:last-child {
    margin-bottom: 0;
}

/* Position adjustments for edge cases */
.info-tooltip.tooltip-left .tooltip-content {
    left: auto;
    right: 0;
    transform: none;
}

.info-tooltip.tooltip-left .tooltip-content::after {
    left: auto;
    right: 16px;
    transform: none;
}

.info-tooltip.tooltip-right .tooltip-content {
    left: 0;
    transform: none;
}

.info-tooltip.tooltip-right .tooltip-content::after {
    left: 16px;
    transform: none;
}

/* Mini tooltips for compact areas */
.info-tooltip.mini {
    width: 14px;
    height: 14px;
    margin-left: 4px;
}

.info-tooltip.mini .info-icon {
    font-size: 11px;
}

.info-tooltip.mini .tooltip-content {
    width: 200px;
    padding: 8px 10px;
}

.info-tooltip.mini .tooltip-text {
    font-size: 11px;
}

/* Mobile: tap to toggle */
@media (max-width: 768px) {
    .info-tooltip .tooltip-content {
        width: 260px;
        padding: 12px 14px;
    }
    
    .tooltip-text {
        font-size: 11px;
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: #FFFFFF;
    background-attachment: fixed;
    padding: 0;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 30px 40px;
    animation: fadeIn 0.8s ease-out;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    min-height: 100vh;
}

@media (min-width: 1400px) {
    .container {
        padding: 40px 80px;
    }
}

@media (min-width: 1800px) {
    .container {
        padding: 40px 120px;
    }
}

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

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

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

h1 {
    margin-bottom: 12px;
    text-align: center;
    font-size: 42px;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

h2 {
    margin-bottom: 8px;
    text-align: center;
    font-size: 32px;
    font-weight: 600;
    color: var(--text-color);
    letter-spacing: -0.3px;
}

.form-group {
    margin-bottom: 20px;
    transition: transform var(--transition-speed);
}

.form-group:hover {
    transform: translateX(5px);
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 14px;
    letter-spacing: -0.1px;
}

input, select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    background: var(--card-background);
    color: var(--text-color);
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

input:focus, select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
    outline: none;
    transform: translateY(-1px);
}

input:hover, select:hover {
    border-color: rgba(0, 0, 0, 0.12);
}

small {
    color: var(--text-secondary);
    font-size: 13px;
    display: block;
    margin-top: 6px;
    font-weight: 500;
}

button {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
    letter-spacing: 0.3px;
}

button:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

button:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* Add spacing between Calculate and Save buttons */
#calculate-button {
    margin-bottom: 15px;
}

button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

button:active::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.05);
}

.intro-text {
    margin-bottom: 32px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 17px;
    font-weight: 500;
    line-height: 1.5;
}

/* Auth styles */
.hidden {
    display: none;
}

#auth-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    box-shadow: none;
    border-radius: 0;
    background: #FFFFFF;
}

.auth-options {
    max-width: 100%;
    margin: 0 auto;
    background-color: var(--card-background);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: box-shadow var(--transition-speed);
}

.auth-options:hover {
    box-shadow: var(--hover-box-shadow);
}

.auth-button {
    margin-bottom: 20px;
    background-color: #db4437;
}

.auth-button:hover {
    background-color: #c53929;
}

.or-divider {
    position: relative;
    text-align: center;
    margin: 20px 0;
}

.or-divider:before,
.or-divider:after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background-color: #ddd;
}

.or-divider:before {
    left: 0;
}

.or-divider:after {
    right: 0;
}

.or-divider span {
    display: inline-block;
    padding: 0 10px;
    background-color: var(--card-background);
    color: #888;
    position: relative;
}

.auth-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.auth-buttons button {
    flex: 1;
}

/* Navigation and tabs */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    margin-bottom: 32px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.tab-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
}

.tab-button {
    flex: 1;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    font-weight: 600;
    font-size: 15px;
    color: var(--text-secondary);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-button.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 6px 24px rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
}

.tab-button:hover:not(.active) {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border-color: rgba(102, 126, 234, 0.2);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.tab-content.active {
    display: block;
}

/* Form layout */
#calculator-form {
    background-color: var(--card-background);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* Saved estimates */
.estimates-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.estimate-card {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: all var(--transition-speed);
    animation: fadeIn 0.5s ease-out;
}

.estimate-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-box-shadow);
}

.estimate-header {
    background-color: #f5f5f5;
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.estimate-header h3 {
    margin: 0;
    font-size: 18px;
}

.estimate-date {
    font-size: 14px;
    color: #888;
    opacity: 0.8;
}

.estimate-body {
    padding: 15px;
}

.estimate-main-value {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.estimate-details {
    margin-bottom: 15px;
    font-size: 14px;
    background-color: var(--background-color);
    padding: 10px;
    border-radius: var(--border-radius);
}

.estimate-details p {
    margin: 5px 0;
}

.saved-bidding-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.saved-bid-option {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--border-radius);
    padding: 10px;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-speed);
}

.saved-bid-option:hover {
    transform: scale(1.05);
}

.saved-roi {
    font-size: 12px;
    font-weight: 600;
    opacity: 0.9;
}

.saved-bid {
    font-size: 16px;
    font-weight: 700;
}

.estimate-notes {
    margin-bottom: 15px;
}

.note-textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    margin-bottom: 10px;
    min-height: 60px;
    resize: vertical;
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.note-textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    outline: none;
}

.save-note-button {
    background-color: var(--primary-color);
}

.save-note-button:hover {
    background-color: #2980b9;
}

.estimate-actions {
    display: flex;
    gap: 10px;
    padding: 0 15px 15px;
}

.load-estimate-button, .delete-estimate-button {
    flex: 1;
}

.load-estimate-button {
    background-color: var(--primary-color);
}

.load-estimate-button:hover {
    background-color: #2980b9;
}

.delete-estimate-button {
    background-color: #e74c3c;
}

.delete-estimate-button:hover {
    background-color: #c0392b;
}

.secondary-button {
    background-color: #7f8c8d;
}

.secondary-button:hover {
    background-color: #6c7a7d;
}

/* Make result presentation better */
.result-box {
    margin-top: 0;
    background: var(--card-background);
    border-radius: 24px;
    overflow: visible; /* Changed to allow tooltips to overflow */
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
    opacity: 0;
    animation: fadeInResult 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    transform-origin: center top;
}

.result-box:hover {
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12);
}

@keyframes fadeInResult {
    0% { opacity: 0; transform: translateY(20px) scale(0.95); }
    50% { opacity: 1; transform: translateY(0) scale(1.02); }
    100% { opacity: 1; transform: scale(1); }
}

.result-header {
    padding: 24px;
    background: var(--primary-gradient);
    color: white;
    font-weight: 700;
    text-align: center;
    font-size: 20px;
    letter-spacing: -0.3px;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.2);
}

/* Price Adjustment Notice */
.price-adjustment-notice {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: 12px;
    padding: 16px 20px;
    margin: 16px 20px;
}

.price-adjustment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #92400e;
    font-size: 15px;
}

.adjustment-icon {
    font-size: 18px;
}

.price-adjustment-body {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: white;
    border-radius: 8px;
    border: 1px solid #fcd34d;
}

.price-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.price-label {
    font-size: 11px;
    color: #78350f;
    font-weight: 500;
}

.price-value {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
}

.price-value.negative {
    color: #dc2626;
}

.price-value.highlight {
    color: #059669;
    font-size: 18px;
}

.price-arrow {
    font-size: 18px;
    color: #d97706;
    font-weight: bold;
}

.price-item.market-price .price-value {
    color: #6b7280;
}

.price-item.adjusted-value {
    background: #ecfdf5;
    padding: 8px 12px;
    border-radius: 6px;
    border: 2px solid #10b981;
}

.price-adjustment-note {
    margin-top: 12px;
    font-size: 12px;
    color: #92400e;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    border-left: 3px solid #f59e0b;
}

@media (max-width: 768px) {
    .price-adjustment-body {
        flex-direction: column;
        align-items: stretch;
    }
    
    .price-arrow {
        transform: rotate(90deg);
        text-align: center;
    }
    
    .price-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.result-content {
    padding: 20px;
    background: var(--card-background);
}

.result-summary {
    margin-bottom: 20px;
    padding: 15px;
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.result-summary p {
    margin: 5px 0;
    font-size: 15px;
}

.bidding-options-container {
    display: grid;
    gap: 15px;
    margin-top: 20px;
    overflow: visible; /* Allow tooltips to overflow */
    padding-bottom: 150px; /* Extra space for last tooltip to be visible */
}

.bidding-option {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
    color: white;
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation-fill-mode: both;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: visible; /* Allow tooltips to overflow */
}

.bidding-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.bidding-option:hover::before {
    transform: translateX(100%);
}

.bidding-option:nth-child(1) {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.bidding-option:nth-child(2) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bidding-option:nth-child(3) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.bidding-option:nth-child(4) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.bidding-option:nth-child(5) {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.bidding-option:nth-child(6) {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.bidding-option:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 16px 40px rgba(102, 126, 234, 0.45);
}

.roi-label {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.bid-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bid-amount-small {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.bid-breakdown {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    opacity: 0.9;
    flex-wrap: wrap;
    gap: 5px;
}

.warning {
    text-align: center;
    padding: 15px;
    background-color: #fff3cd;
    color: #856404;
    border-radius: var(--border-radius);
    border-left: 4px solid #ffc107;
    margin-top: 15px;
}

.bid-amount {
    font-size: 36px;
    color: var(--primary-color);
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    animation: pulse 2s infinite;
}

.calculation-breakdown {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
}

.calculation-breakdown li {
    margin: 5px 0;
    font-size: 16px;
    padding: 8px 15px;
    background: var(--background-color);
    border-radius: 5px;
    transition: transform var(--transition-speed);
    animation: slideIn 0.5s ease-out;
    animation-fill-mode: both;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.calculation-breakdown li:hover {
    transform: translateX(5px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.calculation-breakdown li:nth-child(1) { animation-delay: 0.1s; }
.calculation-breakdown li:nth-child(2) { animation-delay: 0.2s; }
.calculation-breakdown li:nth-child(3) { animation-delay: 0.3s; }

.no-estimates-container {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, rgba(142, 142, 147, 0.05), rgba(142, 142, 147, 0.02));
    border-radius: 16px;
    margin: 20px 0;
}

.no-estimates {
    text-align: center;
    color: #48484A;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.no-estimates-hint {
    text-align: center;
    color: #8E8E93;
    font-size: 14px;
    margin: 8px 0;
    line-height: 1.5;
}

.no-estimates-hint strong {
    color: #5E5CE6;
    font-weight: 600;
}

/* Auction link styling */
.auction-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-speed);
}

.auction-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Auction result section */
.auction-result-section {
    margin: 15px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.auction-result-inputs {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auction-result-inputs label {
    font-weight: 600;
    font-size: 14px;
}

.actual-price-input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: border-color var(--transition-speed);
}

.actual-price-input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.result-buttons {
    display: flex;
    gap: 10px;
}

.won-button, .lost-button {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition-speed);
    font-size: 15px;
}

.won-button {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
}

.won-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(67, 233, 123, 0.4);
}

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

.lost-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(245, 87, 108, 0.4);
}

/* Archived cards */
.archived-card {
    border-left: 4px solid #6c757d;
}

.archived-card.status-won {
    border-left-color: #43e97b;
}

.archived-card.status-lost {
    border-left-color: #f5576c;
}

.archive-status {
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
    color: white;
}

.status-won {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.status-lost {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* Profit/Loss section */
.profit-loss-section {
    margin: 15px 0;
    padding: 15px;
    border-radius: var(--border-radius);
    font-weight: 600;
}

.profit-loss-section.profit {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.profit-loss-section.loss {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.profit-loss-section p {
    margin: 5px 0;
}

/* Archived notes */
.archived-notes {
    margin: 15px 0;
    padding: 10px;
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    font-size: 14px;
}

/* Archived bidding options - more compact */
.saved-bidding-options-archive {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.saved-bid-option-small {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 5px;
    padding: 5px 10px;
    color: white;
    font-size: 12px;
    display: flex;
    gap: 5px;
    align-items: center;
}

.saved-bid-option-small .saved-roi {
    font-weight: 600;
}

.saved-bid-option-small .saved-bid {
    font-weight: 700;
}

/* Fix logout button */
#logout-button {
    width: auto;
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 12px;
    background: rgba(255, 59, 48, 0.1);
    color: #FF3B30;
    border: 2px solid rgba(255, 59, 48, 0.2);
    font-weight: 600;
}

#logout-button:hover {
    background: rgba(255, 59, 48, 0.15);
    border-color: rgba(255, 59, 48, 0.3);
    box-shadow: 0 4px 12px rgba(255, 59, 48, 0.2);
}

/* Custom Confirmation Modal */
.confirm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.confirm-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.confirm-modal {
    background: linear-gradient(135deg, #ffffff, #f8f9ff);
    border-radius: 20px;
    padding: 32px 40px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25), 0 10px 30px rgba(94, 92, 230, 0.15);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.confirm-modal-overlay.active .confirm-modal {
    transform: scale(1) translateY(0);
}

.confirm-modal-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

.confirm-modal-title {
    font-size: 22px;
    font-weight: 700;
    color: #1C1C1E;
    margin: 0 0 12px 0;
}

.confirm-modal-message {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 28px 0;
}

.confirm-modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.confirm-modal-btn {
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}

.confirm-modal-btn.cancel {
    background: linear-gradient(135deg, #f5f5f7, #e8e8ed);
    color: #1C1C1E;
    border: 1px solid #d1d1d6;
}

.confirm-modal-btn.cancel:hover {
    background: linear-gradient(135deg, #e8e8ed, #d1d1d6);
    transform: translateY(-2px);
}

.confirm-modal-btn.confirm {
    background: linear-gradient(135deg, #FF3B30, #FF6B60);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 59, 48, 0.3);
}

.confirm-modal-btn.confirm:hover {
    background: linear-gradient(135deg, #FF6B60, #FF8580);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 59, 48, 0.4);
}

.confirm-modal-btn.confirm.success {
    background: linear-gradient(135deg, #34C759, #5DD67A);
    box-shadow: 0 4px 15px rgba(52, 199, 89, 0.3);
}

.confirm-modal-btn.confirm.success:hover {
    background: linear-gradient(135deg, #5DD67A, #7AE095);
    box-shadow: 0 6px 20px rgba(52, 199, 89, 0.4);
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    top: -100px;
    right: 24px;
    background: linear-gradient(135deg, rgba(52, 199, 89, 0.95) 0%, rgba(48, 209, 88, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: white;
    padding: 18px 28px;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    font-weight: 600;
    font-size: 15px;
    z-index: 10000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 420px;
    word-wrap: break-word;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.toast-notification.show {
    top: 24px;
    animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast-notification.error {
    background: linear-gradient(135deg, rgba(255, 59, 48, 0.95) 0%, rgba(255, 69, 58, 0.95) 100%);
}

.toast-notification.success {
    background: linear-gradient(135deg, rgba(52, 199, 89, 0.95) 0%, rgba(48, 209, 88, 0.95) 100%);
}

@keyframes slideDown {
    0% {
        top: -100px;
        opacity: 0;
    }
    100% {
        top: 20px;
        opacity: 1;
    }
}

/* Date Group Headers */
.date-group-header {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 30px 0 15px 0;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(52, 152, 219, 0.05) 100%);
    border-left: 4px solid var(--primary-color);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.1);
    animation: fadeIn 0.5s ease-out;
}

.date-group-header:first-child {
    margin-top: 0;
}

/* Calculator Grid Layout (Two Column) */
.calculator-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 20px;
}

@media (min-width: 1024px) {
    .calculator-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (min-width: 1400px) {
    .calculator-grid {
        grid-template-columns: 45% 55%;
        gap: 50px;
    }
}

@media (min-width: 1800px) {
    .calculator-grid {
        grid-template-columns: 40% 60%;
        gap: 60px;
    }
}

.calculator-form-column {
    display: flex;
    flex-direction: column;
}

.calculator-results-column {
    display: flex;
    flex-direction: column;
}

@media (min-width: 1024px) {
    .results-sticky-container {
        position: sticky;
        top: 1rem;
        max-height: calc(100vh - 2rem);
        overflow-y: auto;
        overflow-x: visible; /* Allow tooltips to overflow horizontally */
    }
}

/* Form Sections */
.form-section {
    background: var(--card-background);
    padding: 24px;
    border-radius: 20px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all var(--transition-speed) ease;
}

.form-section:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.form-section-title {
    font-size: 18px;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    letter-spacing: -0.2px;
}

.form-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    padding: 10px 15px;
    margin: -10px -15px 10px;
    border-radius: 12px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-section-header:hover {
    background: rgba(142, 108, 239, 0.05);
    transform: translateX(3px);
}

.form-section-header:active {
    transform: translateX(3px) scale(0.998);
}

.collapse-toggle {
    background: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 5px 10px;
    color: var(--primary-color);
    width: auto;
    transition: transform 0.3s ease;
}

/* =====================================================
   VEHICLE IDENTIFICATION SECTION STYLES
   ===================================================== */
.vehicle-id-section {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.05) 0%, rgba(88, 86, 214, 0.05) 100%);
    border: 2px solid rgba(0, 122, 255, 0.2);
}

/* Input Method Tabs */
.vehicle-input-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding-bottom: 12px;
}

.vehicle-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.vehicle-tab:hover {
    background: rgba(0, 122, 255, 0.05);
    border-color: rgba(0, 122, 255, 0.2);
}

.vehicle-tab.active {
    background: rgba(0, 122, 255, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.recommended-badge {
    font-size: 10px;
    font-weight: 600;
    background: #34C759;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

/* Tab Content */
.vehicle-tab-content {
    display: none;
}

.vehicle-tab-content.active {
    display: block;
}

/* VIN Decode Button */
.vin-decode-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
    height: 48px;
}

.vin-decode-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.3);
}

.vin-decode-btn:disabled {
    background: #8E8E93;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Fetch Market Button */
.fetch-market-btn {
    margin-top: 12px;
    padding: 12px 20px;
    background: rgba(0, 122, 255, 0.1);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fetch-market-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* Decoded Vehicle Info */
.decoded-vehicle-info {
    margin-top: 16px;
    padding: 16px;
    background: rgba(52, 199, 89, 0.08);
    border: 1px solid rgba(52, 199, 89, 0.3);
    border-radius: 12px;
    /* Smooth appearance */
    animation: fadeInSmooth 0.25s ease-out;
}

@keyframes fadeInSmooth {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.decoded-header {
    font-size: 14px;
    font-weight: 600;
    color: #34C759;
    margin-bottom: 8px;
}

.decoded-details {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
}

.decoded-trim {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-left: 8px;
}

.decoded-specs {
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.decoded-specs span {
    background: rgba(0, 0, 0, 0.05);
    padding: 4px 8px;
    border-radius: 4px;
}

/* Market Behavior Display */
.market-behavior {
    margin-top: 16px;
    padding: 16px;
    background: rgba(0, 122, 255, 0.05);
    border: 1px solid rgba(0, 122, 255, 0.15);
    border-radius: 12px;
}

.market-behavior-header {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.market-behavior-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.market-stat {
    text-align: center;
    padding: 12px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.market-stat .stat-label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.market-stat .stat-value {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
}

.market-behavior-note {
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-secondary);
    font-style: italic;
}

@media (max-width: 600px) {
    .market-behavior-stats {
        grid-template-columns: 1fr;
    }
    
    .vehicle-input-tabs {
        flex-direction: column;
    }
}

/* Legacy vin-section support */
.vin-section {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.05) 0%, rgba(88, 86, 214, 0.05) 100%);
    border: 2px solid rgba(0, 122, 255, 0.2);
}

.vin-input-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.vin-input-group {
    flex: 1;
    min-width: 250px;
}

.vin-input-group input {
    text-transform: uppercase;
    font-family: 'SF Mono', 'Menlo', 'Monaco', monospace;
    font-size: 15px;
    letter-spacing: 1px;
}

.vin-lookup-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 160px;
    height: 48px;
}

.vin-lookup-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.3);
}

.vin-lookup-btn:disabled {
    background: #8E8E93;
    cursor: not-allowed;
    opacity: 0.6;
}

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

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

.vin-status {
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.vin-status.success {
    background: rgba(52, 199, 89, 0.1);
    border: 1px solid rgba(52, 199, 89, 0.3);
    color: #34C759;
}

.vin-status.error {
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid rgba(255, 59, 48, 0.3);
    color: #FF3B30;
}

.vin-status.loading {
    background: rgba(0, 122, 255, 0.1);
    border: 1px solid rgba(0, 122, 255, 0.3);
    color: #007AFF;
}

.vin-status.info {
    background: rgba(255, 149, 0, 0.1);
    border: 1px solid rgba(255, 149, 0, 0.3);
    color: #FF9500;
}

.vin-usage {
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(142, 142, 147, 0.08);
    border-radius: 8px;
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.vin-usage-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.vin-usage-item .usage-bar {
    width: 60px;
    height: 6px;
    background: rgba(142, 142, 147, 0.2);
    border-radius: 3px;
    overflow: hidden;
}

.vin-usage-item .usage-bar-fill {
    height: 100%;
    background: #34C759;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.vin-usage-item .usage-bar-fill.warning {
    background: #FF9500;
}

.vin-usage-item .usage-bar-fill.danger {
    background: #FF3B30;
}

/* =====================================================
   PRICING SECTION STYLES (Inferred Sales)
   ===================================================== */
.pricing-section {
    background: linear-gradient(135deg, rgba(52, 199, 89, 0.05) 0%, rgba(0, 122, 255, 0.05) 100%);
    border: 2px solid rgba(52, 199, 89, 0.2);
}

.pricing-source {
    font-size: 11px;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 4px;
    margin-left: 8px;
    background: rgba(52, 199, 89, 0.15);
    color: #34C759;
}

.state-selector-row {
    margin-bottom: 16px;
}

.state-group select {
    min-width: 220px;
    max-width: 100%;
}

/* State Recommendation UI */
.state-recommendation {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.4;
}

.state-recommendation.tier-high {
    background: rgba(52, 199, 89, 0.15);
    border: 1px solid rgba(52, 199, 89, 0.3);
    color: #34C759;
}

.state-recommendation.tier-mid {
    background: rgba(255, 149, 0, 0.15);
    border: 1px solid rgba(255, 149, 0, 0.3);
    color: #FF9500;
}

.state-recommendation.tier-low {
    background: rgba(255, 59, 48, 0.15);
    border: 1px solid rgba(255, 59, 48, 0.3);
    color: #FF3B30;
}

.state-recommendation.tier-override {
    background: rgba(0, 122, 255, 0.15);
    border: 1px solid rgba(0, 122, 255, 0.3);
    color: #007AFF;
}

.state-recommendation .rec-message {
    font-weight: 500;
}

.state-recommendation .rec-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.state-recommendation .rec-btn {
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.state-recommendation .rec-nationwide {
    background: linear-gradient(135deg, #34C759, #30B050);
    color: white;
}

.state-recommendation .rec-nationwide:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 199, 89, 0.3);
}

.state-recommendation .rec-state {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.state-recommendation .rec-state:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Mileage Band Indicator */
.mileage-band-indicator {
    margin-top: 8px;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.mileage-band-indicator.positive {
    background: rgba(52, 199, 89, 0.15);
    color: #34C759;
    border: 1px solid rgba(52, 199, 89, 0.3);
}

.mileage-band-indicator.neutral {
    background: rgba(142, 142, 147, 0.15);
    color: #8E8E93;
    border: 1px solid rgba(142, 142, 147, 0.3);
}

.mileage-band-indicator.negative {
    background: rgba(255, 149, 0, 0.15);
    color: #FF9500;
    border: 1px solid rgba(255, 149, 0, 0.3);
}

.mileage-band-indicator.very-negative {
    background: rgba(255, 59, 48, 0.15);
    color: #FF3B30;
    border: 1px solid rgba(255, 59, 48, 0.3);
}

/* Inferred Pricing Display */
.inferred-pricing-display {
    background: linear-gradient(135deg, #34C759 0%, #30B050 100%);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-bottom: 16px;
    position: relative;
    /* Smooth appearance animation */
    animation: slideDown 0.3s ease-out;
    transform-origin: top;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 500px;
    }
}

.inferred-pricing-display.estimated {
    background: linear-gradient(135deg, #FF9500 0%, #E08600 100%);
}

/* Confidence Badge */
.pricing-confidence-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.pricing-confidence-badge .badge-icon {
    font-size: 14px;
}

.inferred-pricing-display.estimated .pricing-confidence-badge {
    background: rgba(0, 0, 0, 0.15);
}

/* Pricing Tooltip */
.pricing-tooltip {
    margin-top: 14px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 6px;
}

.pricing-tooltip small {
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    font-style: italic;
    line-height: 1.4;
}

/* Pricing Disclaimer */
.pricing-disclaimer {
    margin-top: 12px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 6px;
}

.pricing-disclaimer small {
    color: rgba(255, 255, 255, 0.9);
    font-size: 11px;
}

.inferred-pricing-header {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
}

.inferred-pricing-value {
    font-size: 32px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.inferred-pricing-meta {
    display: flex;
    justify-content: center;
    gap: 24px;
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin-top: 12px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
}

.inferred-pricing-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.inferred-pricing-meta span::before {
    font-size: 16px;
}

/* Manual Pricing Override */
.manual-pricing-section {
    border: 1px dashed rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
}

.manual-pricing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--text-secondary);
}

.toggle-manual-btn {
    padding: 4px 12px;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
}

.toggle-manual-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}

.manual-pricing-fields {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* Legacy market-section support */
.market-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border: 2px solid rgba(102, 126, 234, 0.2);
}

.market-section.auto-filled {
    border-color: rgba(52, 199, 89, 0.4);
}

.market-section.auto-filled .form-section-title::after {
    content: ' ✓ Auto-filled';
    color: #34C759;
    font-size: 12px;
    font-weight: 500;
}

.market-source {
    font-size: 11px;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 4px;
    margin-left: 8px;
}

.market-source.from-vin {
    background: rgba(52, 199, 89, 0.15);
    color: #34C759;
}

.market-source.manual {
    background: rgba(142, 142, 147, 0.15);
    color: var(--text-secondary);
}

.market-median-display {
    margin-top: 20px;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.market-median-box,
.market-wholesale-box {
    flex: 1;
    min-width: 180px;
    background: rgba(255, 255, 255, 0.95);
    padding: 14px 18px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.market-median-box {
    border: 2px solid #34C759;
}

.market-wholesale-box {
    border: 2px solid #FF9500;
}

.market-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.market-value {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-color);
}

.market-median-box .market-value {
    color: #34C759;
}

.market-wholesale-box .market-value {
    color: #FF9500;
}

/* Vehicle Info from VIN */
.vin-vehicle-info {
    margin-top: 12px;
    padding: 12px 16px;
    background: rgba(52, 199, 89, 0.08);
    border-radius: 10px;
    border: 1px solid rgba(52, 199, 89, 0.2);
}

.vin-vehicle-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: #34C759;
    margin-bottom: 8px;
}

.vin-vehicle-info p {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
    margin: 0;
}

/* Legacy KBB styles (keep for backward compatibility) */
.kbb-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border: 2px solid rgba(102, 126, 234, 0.2);
}

.kbb-median-display {
    margin-top: 20px;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.kbb-median-box,
.kbb-wholesale-box {
    flex: 1;
    min-width: 180px;
    background: rgba(255, 255, 255, 0.95);
    padding: 14px 18px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.kbb-median-box {
    border: 2px solid #34C759;
}

.kbb-wholesale-box {
    border: 2px solid #FF9500;
}

.kbb-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.kbb-value {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-color);
}

.kbb-median-box .kbb-value {
    color: #34C759;
}

.kbb-wholesale-box .kbb-value {
    color: #FF9500;
}

/* KBB Pricing Notice in Results */
.kbb-pricing-notice {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
}

.kbb-pricing-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 15px;
}

.kbb-icon {
    font-size: 18px;
}

.kbb-pricing-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.kbb-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.kbb-row:last-child {
    border-bottom: none;
}

.kbb-row.highlight {
    background: rgba(52, 199, 89, 0.1);
    padding: 8px 12px;
    border-radius: 8px;
    margin: 4px -12px;
}

.kbb-row.adjusted {
    background: rgba(0, 122, 255, 0.08);
    padding: 8px 12px;
    border-radius: 8px;
    margin: 4px -12px;
}

.kbb-row.wholesale {
    background: rgba(255, 149, 0, 0.1);
    padding: 8px 12px;
    border-radius: 8px;
    margin: 4px -12px;
}

.kbb-row-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.kbb-row-value {
    font-weight: 600;
    font-size: 14px;
}

.kbb-row-value.green {
    color: #34C759;
}

.kbb-row-value.orange {
    color: #FF9500;
}

.kbb-row-value.negative {
    color: #FF3B30;
}

.kbb-row-value.highlight {
    color: var(--primary-color);
    font-size: 16px;
}

.kbb-pricing-note {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 12px;
    color: var(--text-secondary);
}

/* =====================================================
   MARKET PRICING NOTICE (VIN-based or manual)
   ===================================================== */
.market-pricing-notice {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.08) 0%, rgba(88, 86, 214, 0.08) 100%);
    border: 1px solid rgba(0, 122, 255, 0.2);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    overflow: visible; /* Allow tooltips to overflow */
    position: relative;
}

.market-pricing-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 15px;
    flex-wrap: wrap;
}

.market-icon {
    font-size: 18px;
}

.vin-badge {
    font-size: 11px;
    font-family: 'SF Mono', 'Menlo', 'Monaco', monospace;
    background: rgba(52, 199, 89, 0.15);
    color: #34C759;
    padding: 3px 8px;
    border-radius: 4px;
    margin-left: auto;
}

.market-pricing-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: visible; /* Allow tooltips to overflow */
    position: relative;
}

.market-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    overflow: visible; /* Allow tooltips to overflow */
    position: relative;
}

.market-row:last-child {
    border-bottom: none;
}

.market-row.highlight {
    background: rgba(52, 199, 89, 0.1);
    padding: 8px 12px;
    border-radius: 8px;
    margin: 4px -12px;
}

.market-row.adjusted {
    background: rgba(0, 122, 255, 0.08);
    padding: 8px 12px;
    border-radius: 8px;
    margin: 4px -12px;
}

.market-row.mileage-adj {
    background: rgba(0, 122, 255, 0.06);
    padding: 6px 12px;
    border-radius: 6px;
    margin: 4px -12px;
    border-left: 3px solid #007AFF;
}

.market-row.disclosure-adj {
    background: rgba(255, 59, 48, 0.08);
    padding: 6px 12px;
    border-radius: 6px;
    margin: 4px -12px;
    border-left: 3px solid #FF3B30;
}

.market-row.salvage-adj {
    background: rgba(255, 59, 48, 0.1);
    padding: 6px 12px;
    border-radius: 6px;
    margin: 4px -12px;
    border-left: 3px solid #FF3B30;
}

.market-row-value.positive {
    color: #34C759;
}

.market-row-value.negative {
    color: #FF3B30;
}

.market-row.retail-final {
    background: rgba(52, 199, 89, 0.12);
    padding: 10px 12px;
    border-radius: 8px;
    margin: 8px -12px 4px -12px;
    border: 1px solid rgba(52, 199, 89, 0.3);
}

.market-row.retail-final .market-row-value {
    font-size: 18px;
    font-weight: 700;
    color: #34C759;
}

.market-pricing-note.disclosure-note {
    color: #FF9500;
    font-size: 12px;
    margin-bottom: 4px;
}

.market-row.wholesale {
    background: rgba(255, 149, 0, 0.1);
    padding: 8px 12px;
    border-radius: 8px;
    margin: 4px -12px;
}

.market-row-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.market-row-value {
    font-weight: 600;
    font-size: 14px;
}

.market-row-value.green {
    color: #34C759;
}

.market-row-value.orange {
    color: #FF9500;
}

.market-row-value.orange-high {
    color: #E67E00;
    font-weight: 700;
}

/* Wholesale High Row */
.market-row.wholesale-high {
    background: linear-gradient(135deg, rgba(255, 149, 0, 0.08) 0%, rgba(230, 126, 0, 0.12) 100%);
    border-radius: 6px;
    padding: 8px 12px !important;
    margin-top: 4px;
    border-left: 3px solid #E67E00;
}

.market-row.wholesale-high .market-row-label {
    font-size: 12px;
    color: #8B5A00;
}

/* Capped Badge */
.capped-badge {
    display: inline-block;
    font-size: 8px;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #FF6B6B 0%, #EE5A5A 100%);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cap-warning {
    color: #c0392b;
    font-size: 11px;
    margin-top: 4px;
}

.market-row-value.negative {
    color: #FF3B30;
}

.market-row-value.highlight {
    color: var(--primary-color);
    font-size: 16px;
}

.market-pricing-note {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 12px;
    color: var(--text-secondary);
}

/* Two Exit Tabs (legacy - keeping for backward compat) */
.scenario-tabs.two-exits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.scenario-tabs.two-exits .scenario-tab {
    flex: 1;
}

/* =====================================================
   EXITS GRID - Side by Side Layout (No Tabs)
   ===================================================== */
.exits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}

.exit-column {
    background: var(--card-background);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow: visible; /* Allow tooltips to overflow */
}

.exit-column.retail-column {
    border-top: 3px solid #34C759;
}

.exit-column.wholesale-column {
    border-top: 3px solid #FF9500;
}

.exit-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.exit-icon {
    font-size: 20px;
}

.exit-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-color);
    flex: 1;
}

.exit-badge {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.06);
    color: var(--text-secondary);
}

.exit-value {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    margin-bottom: 12px;
}

.exit-value .value-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.exit-value .value-amount {
    font-size: 18px;
    font-weight: 700;
}

.retail-column .exit-value .value-amount {
    color: #34C759;
}

.wholesale-column .exit-value .value-amount {
    color: #FF9500;
}

/* Bidding Options Container in Exit Columns */
.exit-column .bidding-options-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.exit-column .bidding-options-container h4.ladder-title {
    display: none; /* Hide redundant titles */
}

.no-bids-warning {
    padding: 12px;
    background: rgba(255, 59, 48, 0.1);
    border-radius: 8px;
    color: #FF3B30;
    font-size: 13px;
    text-align: center;
}

/* Responsive: Stack on mobile */
@media (max-width: 768px) {
    .exits-grid {
        grid-template-columns: 1fr;
    }
}

/* Retail and Wholesale Summaries */
.scenario-summary.retail-summary,
.scenario-summary.wholesale-summary {
    background: var(--card-background);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

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

.summary-icon {
    font-size: 24px;
}

.summary-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
}

.summary-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.scenario-description {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 12px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
}

/* Ladder Titles */
.ladder-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.2);
}

/* Retail Options (ROI-based) */
/* =====================================================
   RETAIL OPTIONS (ROI-based) - Clean Modern Style
   ===================================================== */
.bidding-option.retail-option {
    background: #fff;
    border: 1px solid rgba(52, 199, 89, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: visible; /* Allow tooltips to overflow */
}

.bidding-option.retail-option:hover {
    border-color: #34C759;
    box-shadow: 0 4px 12px rgba(52, 199, 89, 0.15);
    transform: translateY(-2px);
}

.bidding-option.retail-option .roi-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    background: linear-gradient(135deg, #34C759 0%, #2DB350 100%);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    box-shadow: 0 2px 6px rgba(52, 199, 89, 0.3);
    position: relative; /* For tooltip positioning */
    overflow: visible;
}

/* =====================================================
   WHOLESALE OPTIONS (Cash-based) - Clean Modern Style
   ===================================================== */
.bidding-option.wholesale-option {
    background: #fff;
    border: 1px solid rgba(255, 149, 0, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: visible; /* Allow tooltips to overflow */
}

.bidding-option.wholesale-option:hover {
    border-color: #FF9500;
    box-shadow: 0 4px 12px rgba(255, 149, 0, 0.15);
    transform: translateY(-2px);
}

.bidding-option.wholesale-option .profit-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    background: linear-gradient(135deg, #FF9500 0%, #E88600 100%);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    box-shadow: 0 2px 6px rgba(255, 149, 0, 0.3);
    position: relative; /* For tooltip positioning */
    overflow: visible;
}

/* Bid Details - Clean Layout */
.bidding-option .bid-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.bidding-option .max-bid-value {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
}

.bidding-option .profit-value {
    font-size: 13px;
    color: #666;
    margin-top: 2px;
}

.bid-amount-large {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color);
    margin-top: 8px;
}

.profit-amount {
    color: #34C759;
    font-weight: 600;
}

/* Cash Ladder specific styles */
.bidding-options-container.cash-ladder .bidding-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
}

.bidding-options-container.cash-ladder .bid-details {
    text-align: right;
}

/* ROI Ladder specific styles */
.bidding-options-container.roi-ladder .bidding-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 18px;
}

.bidding-options-container.roi-ladder .bid-details {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.collapse-toggle:hover {
    transform: scale(1.1);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

@media (min-width: 768px) {
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.collapsible-content.collapsed {
    display: none;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.primary-button {
    flex: 2;
}

.secondary-button {
    flex: 1;
    background-color: var(--primary-color);
}

/* Results Placeholder */
.results-placeholder {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.placeholder-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.placeholder-subtext {
    font-size: 14px;
    color: #bbb;
}

/* Scenario Tabs */
.scenario-tabs {
    display: flex;
    gap: 12px;
    background: transparent;
    border-radius: 0;
    overflow: visible;
    margin-bottom: 24px;
}

.scenario-tab {
    flex: 1;
    padding: 18px 16px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-secondary);
    width: auto;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.scenario-tab:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: rgba(102, 126, 234, 0.3);
}

.scenario-tab.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.4);
    transform: translateY(-4px) scale(1.02);
}

.tab-icon {
    font-size: 28px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.scenario-tab.active .tab-icon {
    filter: drop-shadow(0 4px 8px rgba(255, 255, 255, 0.3));
    transform: scale(1.1);
}

.tab-label {
    font-weight: 700;
    font-size: 15px;
    letter-spacing: -0.2px;
}

.tab-badge {
    font-size: 12px;
    opacity: 0.8;
    font-weight: 500;
}

.scenario-tab.active .tab-badge {
    opacity: 0.95;
}

.scenario-content {
    display: none;
    padding: 20px;
    background: var(--card-background);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.scenario-content.active {
    display: block;
}

.scenario-summary {
    background: var(--background-color);
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-label {
    font-weight: 500;
    color: #666;
}

.summary-value {
    font-weight: 700;
    font-size: 18px;
    color: var(--primary-color);
}

/* Salvage Title Notice */
.salvage-notice {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 12px 15px;
    border-radius: var(--border-radius);
    margin: 15px 0;
    color: #856404;
    font-size: 14px;
}

.salvage-notice strong {
    display: block;
    margin-bottom: 5px;
}

/* Auto-calculation note */
.auto-calc-note {
    background: linear-gradient(135deg, rgba(94, 92, 230, 0.1), rgba(142, 142, 147, 0.05));
    border-left: 4px solid #5E5CE6;
    padding: 10px 14px;
    border-radius: 8px;
    margin: 8px 0;
    font-size: 13px;
    color: #48484A;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.auto-calc-icon {
    font-size: 16px;
}

/* Vehicle Detection Display */
.vehicle-detection {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 16px;
    margin-bottom: 24px;
    animation: fadeIn 0.5s ease-out;
}

.detection-icon {
    font-size: 32px;
}

.detection-info {
    flex: 1;
}

.detection-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.detection-details {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-color);
}

.detection-meta {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* =====================================================
   LINE OF CREDIT (LOC) SECTION STYLES
   ===================================================== */
.loc-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border: 2px solid rgba(102, 126, 234, 0.2);
}

.loc-toggle-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.loc-toggle-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: white;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(102, 126, 234, 0.1);
}

.loc-toggle-label:hover {
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.loc-toggle-text {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.loc-toggle-hint {
    color: #666;
    font-size: 13px;
    padding-left: 16px;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 52px;
    height: 28px;
    flex-shrink: 0;
}

.toggle-input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: all 0.3s ease;
    border-radius: 28px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: all 0.3s ease;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-input:checked + .toggle-slider {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.toggle-input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

/* LOC Details Section */
.loc-details {
    margin-top: 16px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    border: 2px solid rgba(102, 126, 234, 0.15);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* LOC Recommendation Box */
.loc-recommendation-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border: 2px solid #4CAF50;
    border-radius: 10px;
    margin-bottom: 20px;
}

.loc-rec-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.loc-rec-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.loc-rec-text strong {
    color: #2e7d32;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.loc-rec-text span:not(.loc-rec-reason) {
    font-size: 18px;
    font-weight: 700;
    color: #1b5e20;
}

.loc-rec-reason {
    font-size: 12px;
    color: #4CAF50;
    font-weight: 500;
}

/* Hold Time Dropdown */
.hold-time-select {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 600;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23667eea' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.hold-time-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* LOC Fee Display */
.loc-fee-display {
    text-align: center;
}

.loc-fee-value {
    font-size: 28px;
    font-weight: 700;
    color: #667eea;
    font-family: 'Courier New', monospace;
    padding: 12px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 10px;
    border: 2px solid rgba(102, 126, 234, 0.2);
}

.loc-fee-display small {
    display: block;
    margin-top: 8px;
    color: #666;
}

/* LOC Summary in Results */
.loc-summary-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
}

.loc-included-notice {
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    margin: 16px 0;
    font-size: 14px;
    color: #4a5568;
}

.loc-notice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
}

.loc-notice-header strong {
    color: #667eea;
    font-size: 15px;
}

.loc-current-fee {
    font-size: 18px;
    font-weight: 700;
    color: #667eea;
}

.loc-borrowed-breakdown {
    background: rgba(255, 255, 255, 0.6);
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.loc-breakdown-title {
    font-size: 14px;
    color: #374151;
    margin-bottom: 4px;
}

.loc-breakdown-title strong {
    color: #1F2937;
    font-size: 16px;
}

.loc-breakdown-items {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: #6B7280;
}

.loc-exposure-warning {
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(245, 158, 11, 0.1);
    border-left: 3px solid #F59E0B;
    border-radius: 4px;
    font-size: 12px;
    color: #B45309;
    font-weight: 500;
}

.loc-fee-by-timeframe {
    margin-top: 12px;
}

.loc-timeframe-title {
    font-size: 13px;
    color: #6B7280;
    margin-bottom: 8px;
    font-weight: 500;
}

.loc-timeframe-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.loc-timeframe-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 6px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(102, 126, 234, 0.15);
    transition: all 0.2s ease;
}

.loc-timeframe-item.selected {
    background: rgba(102, 126, 234, 0.15);
    border-color: #667eea;
}

.timeframe-label {
    font-size: 11px;
    color: #6B7280;
    font-weight: 500;
}

.timeframe-fee {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-top: 2px;
}

.loc-timeframe-item.selected .timeframe-fee {
    color: #667eea;
}

.loc-formula-note {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(102, 126, 234, 0.15);
    font-size: 12px;
    color: #9CA3AF;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
}

.loc-fee-range {
    color: #8a92b2;
}

@media (max-width: 640px) {
    .loc-timeframe-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .loc-notice-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .loc-breakdown-items {
        flex-direction: column;
        gap: 4px;
    }
}

/* Sale Time Prediction Display */
.sale-time-prediction {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 2px solid #2196F3;
    border-radius: 10px;
    margin: 12px 0;
}

.prediction-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.prediction-content {
    flex: 1;
}

.prediction-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #1565C0;
    margin-bottom: 2px;
}

.prediction-value {
    font-size: 20px;
    font-weight: 700;
    color: #0D47A1;
}

.prediction-detail {
    font-size: 12px;
    color: #1976D2;
    margin-top: 2px;
}

.prediction-disclaimer {
    font-size: 10px;
    color: #5a5a5a;
    font-style: italic;
    margin-top: 6px;
    line-height: 1.4;
    opacity: 0.9;
}

/* Mileage Adjustment Display */
.mileage-adjustment-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border: 1px dashed rgba(255, 255, 255, 0.3);
    margin: 8px 0;
}

.mileage-adj-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
}

.mileage-adj-value {
    font-size: 15px;
    font-weight: 700;
}

.mileage-adj-value.positive {
    color: #34C759;
}

.mileage-adj-value.negative {
    color: #FF6B6B;
}

.mileage-adj-value.neutral {
    color: var(--text-muted);
}

.mileage-adj-note {
    font-size: 10px;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.4;
    text-align: center;
    margin-top: 2px;
}

/* Required field star */
.required-star {
    color: #ff3b30;
    font-weight: 700;
}

/* =====================================================
   VEHICLE INFORMATION SECTION (Mileage Edit)
   ===================================================== */
.vehicle-info-section {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(5, 150, 105, 0.05) 100%);
    border: 2px solid rgba(16, 185, 129, 0.2);
}

.vehicle-info-section h5 {
    color: #059669;
}

.vehicle-info-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.mileage-input-group {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
}

.mileage-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mileage-input {
    flex: 1;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    background: white;
    transition: all 0.2s ease;
}

.mileage-input:focus {
    outline: none;
    border-color: #10B981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.mileage-suffix {
    font-size: 14px;
    color: #6B7280;
    font-weight: 500;
}

.mileage-warning {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #F59E0B;
    font-weight: 500;
}

.mileage-input-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #374151;
}

.mileage-input-group label .required-star {
    color: #EF4444;
}

/* =====================================================
   VEHICLE INFO CARD (Modern Design)
   ===================================================== */
.vehicle-info-card {
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
    border: 2px solid #10B981;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.15);
    margin-bottom: 20px;
}

.vehicle-info-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

.vehicle-info-icon {
    font-size: 20px;
}

.vehicle-info-title {
    font-size: 15px;
    font-weight: 700;
    color: white;
    letter-spacing: 0.3px;
}

.vehicle-info-card-body {
    padding: 20px;
}

.mileage-field {
    max-width: 350px;
}

.mileage-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.mileage-label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.required-badge {
    font-size: 10px;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    padding: 3px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mileage-input-container {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #D1FAE5;
    border-radius: 12px;
    padding: 4px 8px;
    transition: all 0.2s ease;
}

.mileage-input-container:focus-within {
    border-color: #10B981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

.mileage-icon {
    font-size: 18px;
    margin-right: 8px;
    opacity: 0.6;
}

.mileage-input-modern {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 18px;
    font-weight: 600;
    color: #1F2937;
    padding: 10px 8px;
    min-width: 0;
}

.mileage-input-modern:focus {
    outline: none;
}

.mileage-input-modern::placeholder {
    color: #9CA3AF;
    font-weight: 400;
}

.mileage-unit {
    font-size: 14px;
    font-weight: 600;
    color: #6B7280;
    padding: 0 10px;
    border-left: 1px solid #E5E7EB;
}

.mileage-helper-text {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
}

.mileage-helper-text.warning {
    background: rgba(245, 158, 11, 0.1);
    color: #B45309;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.mileage-helper-text.success {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.mileage-helper-text .helper-icon {
    font-size: 14px;
}

/* =====================================================
   PRICE OVERRIDE SECTION
   ===================================================== */
.price-override-section {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
    border-radius: 12px;
    margin-top: 16px;
    overflow: hidden;
}

.price-override-section.expanded .override-content {
    display: block;
}

.override-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.override-header:hover {
    background: rgba(245, 158, 11, 0.1);
}

.override-title {
    font-size: 14px;
    font-weight: 600;
    color: #92400e;
    display: flex;
    align-items: center;
    gap: 6px;
}

.override-toggle-icon {
    font-size: 12px;
    color: #92400e;
    transition: transform 0.3s ease;
}

.price-override-section.expanded .override-toggle-icon {
    transform: rotate(180deg);
}

.override-content {
    display: none;
    padding: 16px;
    background: rgba(255, 255, 255, 0.7);
    border-top: 1px solid rgba(245, 158, 11, 0.3);
}

.override-notice {
    background: rgba(245, 158, 11, 0.1);
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
    color: #92400e;
}

.override-notice small {
    font-size: 12px;
}

.override-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.override-column {
    background: white;
    border-radius: 10px;
    padding: 14px;
    border: 1px solid #e5e7eb;
}

.override-column.retail {
    border-left: 3px solid #059669;
}

.override-column.wholesale {
    border-left: 3px solid #f59e0b;
}

.override-column-header {
    margin-bottom: 12px;
}

.override-toggle-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.override-toggle-checkbox {
    display: none;
}

.override-toggle-switch {
    width: 40px;
    height: 22px;
    background: #d1d5db;
    border-radius: 11px;
    position: relative;
    transition: background 0.3s ease;
}

.override-toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.override-toggle-checkbox:checked + .override-toggle-switch {
    background: #059669;
}

.override-column.wholesale .override-toggle-checkbox:checked + .override-toggle-switch {
    background: #f59e0b;
}

.override-toggle-checkbox:checked + .override-toggle-switch::after {
    transform: translateX(18px);
}

.override-values {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.override-estimated {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #6b7280;
    padding: 8px 10px;
    background: #f9fafb;
    border-radius: 6px;
}

.override-estimated .override-value {
    font-weight: 600;
    color: #374151;
}

.override-input-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.override-input-row.disabled {
    opacity: 0.5;
    background: #f3f4f6;
}

.override-input-row.active {
    background: #ecfdf5;
    border: 1px solid #10b981;
}

.override-column.wholesale .override-input-row.active {
    background: #fffbeb;
    border: 1px solid #f59e0b;
}

.override-label {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
}

.override-input-wrapper {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    overflow: hidden;
}

.override-input-wrapper .currency-symbol {
    padding: 6px 8px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
}

.override-input {
    width: 100px;
    padding: 6px 8px;
    border: none;
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    outline: none;
}

.override-input:disabled {
    background: #f9fafb;
    color: #9ca3af;
}

.override-active-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    border-radius: 6px;
    color: white;
}

.override-column.wholesale .override-active-display {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
}

.override-active-display.hidden {
    display: none;
}

.active-badge {
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.active-value {
    font-size: 14px;
    font-weight: 700;
}

@media (max-width: 768px) {
    .override-grid {
        grid-template-columns: 1fr;
    }
}

/* Override indicator in live summary */
.override-indicator {
    display: inline-block;
    font-size: 12px;
    margin-left: 4px;
    cursor: help;
    animation: pulse-override 2s infinite;
}

@keyframes pulse-override {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Override badge in results */
.override-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    background: linear-gradient(135deg, #007AFF, #5856D6);
    color: white;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse-override 2s infinite;
}

/* =====================================================
   CALCULATOR PRICE OVERRIDE SECTION
   ===================================================== */
.calculator-override-section {
    margin-top: 16px;
    padding: 14px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
    border-radius: 10px;
}

.override-toggle-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.calculator-override-section .override-toggle-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #92400e;
}

.calculator-override-section .override-toggle-checkbox {
    display: none;
}

.calculator-override-section .override-toggle-switch {
    width: 40px;
    height: 22px;
    background: #d1d5db;
    border-radius: 11px;
    position: relative;
    transition: background 0.3s ease;
}

.calculator-override-section .override-toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.calculator-override-section .override-toggle-checkbox:checked + .override-toggle-switch {
    background: #f59e0b;
}

.calculator-override-section .override-toggle-checkbox:checked + .override-toggle-switch::after {
    transform: translateX(18px);
}

.override-input-container {
    margin-top: 14px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
}

/* Two-column override grid for calculator */
.override-grid-calc {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.override-calc-column {
    background: white;
    border-radius: 10px;
    padding: 14px;
    border: 1px solid #e5e7eb;
}

.override-calc-column.retail {
    border-top: 3px solid #059669;
}

.override-calc-column.wholesale {
    border-top: 3px solid #f59e0b;
}

.override-calc-header {
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f3f4f6;
}

.override-calc-original {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 8px 10px;
    background: #f9fafb;
    border-radius: 6px;
}

.override-calc-original .override-label {
    font-size: 11px;
    color: #6b7280;
    font-weight: 500;
}

.override-calc-original .override-value {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.override-calc-input {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.override-calc-input .override-label {
    font-size: 11px;
    color: #92400e;
    font-weight: 600;
}

.calculator-override-section .override-input-wrapper {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.calculator-override-section .override-input-wrapper:focus-within {
    border-color: #f59e0b;
}

.override-calc-column.retail .override-input-wrapper:focus-within {
    border-color: #059669;
}

.calculator-override-section .override-input-wrapper .currency-symbol {
    padding: 8px 10px;
    background: #f9fafb;
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
}

.calculator-override-section .override-input {
    flex: 1;
    padding: 8px 10px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    outline: none;
    min-width: 80px;
}

.calculator-override-section .override-input::placeholder {
    font-size: 11px;
    font-weight: 400;
    color: #9ca3af;
}

.override-calc-badge {
    margin-top: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
}

.override-calc-column.retail .override-calc-badge {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: white;
}

.override-calc-column.wholesale .override-calc-badge {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    color: white;
}

.override-calc-badge strong {
    font-weight: 700;
}

.calculator-override-section .override-notice {
    margin-top: 12px;
    padding: 8px 12px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 6px;
    color: #92400e;
    text-align: center;
}

.calculator-override-section .override-notice small {
    font-size: 11px;
}

@media (max-width: 500px) {
    .override-grid-calc {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   TIME-WEIGHTED EXIT COMPARISON SECTION
   ===================================================== */
.time-weighted-section {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 16px;
    overflow: visible;
    margin-top: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.time-weighted-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px 16px 0 0;
    overflow: visible;
    position: relative;
}

/* Tooltip styling for time-weighted section */
.time-weighted-header .info-tooltip .tooltip-content {
    z-index: 99999;
}

.time-weighted-icon {
    font-size: 22px;
}

.time-weighted-title {
    font-size: 16px;
    font-weight: 700;
    color: white;
    flex: 1;
}

.data-source-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-source-badge.marketcheck {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
}

.data-source-badge.estimated {
    background: rgba(245, 158, 11, 0.2);
    color: #FCD34D;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.time-weighted-body {
    padding: 20px;
}

.time-weighted-intro {
    font-size: 13px;
    color: #94a3b8;
    margin: 0 0 16px 0;
    text-align: center;
    font-style: italic;
}

/* Cycle Settings Bar */
.cycle-settings-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cycle-setting {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cycle-label {
    font-size: 12px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 4px;
}

.cycle-value-display {
    font-size: 14px;
    font-weight: 600;
    color: #22d3ee;
    background: rgba(34, 211, 238, 0.15);
    padding: 4px 10px;
    border-radius: 6px;
}

.cycle-input-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 149, 0, 0.15);
    border-radius: 8px;
    padding: 4px 10px;
    border: 1px solid rgba(255, 149, 0, 0.4);
    transition: all 0.2s ease;
}

.cycle-input-wrapper:focus-within {
    border-color: #FF9500;
    background: rgba(255, 149, 0, 0.25);
    box-shadow: 0 0 0 3px rgba(255, 149, 0, 0.15);
}

.wholesale-cycle-input {
    width: 45px;
    padding: 6px 4px;
    font-size: 14px;
    font-weight: 600;
    color: #FF9500;
    background: transparent;
    border: none;
    text-align: center;
    outline: none;
    -moz-appearance: textfield; /* Firefox */
}

/* Hide spinners completely */
.wholesale-cycle-input::-webkit-inner-spin-button,
.wholesale-cycle-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cycle-unit {
    font-size: 12px;
    color: #94a3b8;
}

/* Responsive cycle settings */
@media (max-width: 600px) {
    .cycle-settings-bar {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .cycle-setting {
        justify-content: space-between;
    }
}

/* Editable row indicator */
.exit-stat-row.editable-row .stat-value {
    color: #FF9500;
}

.exit-comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.exit-comparison-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.exit-comparison-card.winner {
    border-color: #10B981;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.exit-comparison-card.retail .exit-card-header {
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
}

.exit-comparison-card.wholesale .exit-card-header {
    background: linear-gradient(135deg, #2196F3 0%, #1565C0 100%);
}

.exit-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
}

.exit-card-icon {
    font-size: 18px;
}

.exit-card-title {
    font-size: 12px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.exit-card-body {
    padding: 16px;
}

.exit-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}

.exit-stat-row.highlight {
    background: rgba(255, 255, 255, 0.05);
    margin: 8px -16px;
    padding: 10px 16px;
    border-radius: 0;
}

.exit-stat-row .stat-label {
    font-size: 11px;
    color: #94a3b8;
}

.exit-stat-row .stat-value {
    font-size: 13px;
    font-weight: 600;
    color: #e2e8f0;
    font-family: 'SF Mono', 'Courier New', monospace;
}

.exit-stat-row .stat-value.positive {
    color: #4ADE80;
}

.exit-stat-row .stat-value.negative {
    color: #F87171;
}

.exit-stat-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 12px 0;
}

.exit-time-profit {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(5, 150, 105, 0.2) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 10px;
    padding: 14px;
    margin-top: 12px;
    text-align: center;
}

.exit-time-profit .time-profit-label {
    display: block;
    font-size: 10px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.exit-time-profit .time-profit-value {
    display: block;
    font-size: 20px;
    font-weight: 800;
    font-family: 'SF Mono', 'Courier New', monospace;
}

.exit-time-profit .time-profit-value.positive {
    color: #4ADE80;
}

.exit-time-profit .time-profit-value.negative {
    color: #F87171;
}

/* Summary Section */
.time-weighted-summary {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    text-align: center;
}

.summary-header {
    font-size: 14px;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 16px;
}

.summary-comparison {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 24px;
    border-radius: 10px;
}

.summary-item.retail {
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.summary-item.wholesale {
    background: rgba(33, 150, 243, 0.15);
    border: 1px solid rgba(33, 150, 243, 0.3);
}

.summary-label {
    font-size: 11px;
    color: #94a3b8;
}

.summary-value {
    font-size: 18px;
    font-weight: 700;
    font-family: 'SF Mono', 'Courier New', monospace;
}

.summary-value.positive {
    color: #4ADE80;
}

.summary-value.negative {
    color: #F87171;
}

.summary-vs {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
}

.summary-difference {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-difference .diff-text {
    font-size: 13px;
    color: #94a3b8;
}

.summary-difference .diff-text strong {
    color: #4ADE80;
}

.time-weighted-footnote {
    margin-top: 16px;
    padding: 12px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
    text-align: center;
}

.time-weighted-footnote small {
    font-size: 11px;
    color: #94a3b8;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .exit-comparison-grid {
        grid-template-columns: 1fr;
    }
    
    .summary-comparison {
        flex-direction: column;
        gap: 12px;
    }
    
    .summary-vs {
        display: none;
    }
}

/* =====================================================
   FACEBOOK DESCRIPTION GENERATOR STYLES
   ===================================================== */
.fb-description-section {
    background: linear-gradient(135deg, #1877F2 0%, #42a5f5 100%);
    border: none;
    border-radius: 16px;
    padding: 20px !important;
    box-shadow: 0 8px 32px rgba(24, 119, 242, 0.25);
}

.fb-description-section h5 {
    color: white;
    margin-bottom: 8px;
}

.fb-description-section h5 .info-tooltip .info-icon {
    color: rgba(255, 255, 255, 0.8);
}

.fb-description-section .section-description {
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    margin-bottom: 16px;
}

.fb-generator-container {
    margin-top: 16px;
}

/* Disclosure Notice */
.fb-disclosure-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
}

.fb-disclosure-notice .notice-icon {
    font-size: 14px;
}

.fb-disclosure-notice .notice-text {
    line-height: 1.4;
}

.generate-fb-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 18px 28px;
    background: white;
    color: #1877F2;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.generate-fb-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    background: #f8fafc;
}

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

.generate-fb-btn .btn-icon {
    font-size: 22px;
}

/* Loading State */
.fb-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.loading-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(24, 119, 242, 0.2);
    border-top-color: #1877F2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Output Container */
.fb-output-container {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.fb-description-output {
    width: 100%;
    min-height: 280px;
    padding: 24px;
    border: none;
    font-size: 14px;
    line-height: 1.8;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    resize: vertical;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    color: #1e293b;
}

.fb-description-output:focus {
    outline: none;
    background: #ffffff;
}

.fb-output-actions {
    display: flex;
    gap: 10px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.save-fb-btn,
.copy-fb-btn,
.regenerate-fb-btn {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.save-fb-btn {
    background: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%);
    color: white;
}

.save-fb-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.save-fb-btn.saved {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

.save-fb-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.copy-fb-btn {
    background: linear-gradient(135deg, #34C759 0%, #28a745 100%);
    color: white;
}

.copy-fb-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 199, 89, 0.3);
}

.regenerate-fb-btn {
    background: rgba(24, 119, 242, 0.1);
    color: #1877F2;
    border: 2px solid rgba(24, 119, 242, 0.2);
}

.regenerate-fb-btn:hover {
    background: rgba(24, 119, 242, 0.2);
    transform: translateY(-1px);
}

.fb-save-status {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

.fb-save-status.saved {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.fb-save-status.unsaved {
    background: rgba(245, 158, 11, 0.1);
    color: #D97706;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.cached-description-notice {
    margin-top: 14px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 13px;
    color: white;
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Regenerate Confirmation Modal */
.regenerate-modal {
    text-align: center;
}

.regenerate-modal .modal-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.regenerate-modal h3 {
    margin: 0 0 12px 0;
    font-size: 20px;
    color: #1F2937;
}

.regenerate-modal p {
    margin: 0 0 8px 0;
    color: #6B7280;
    font-size: 14px;
}

.regenerate-modal .modal-warning {
    margin-top: 16px;
    padding: 10px 14px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 8px;
    color: #D97706;
    font-size: 13px;
}

.regenerate-modal .modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.regenerate-modal .modal-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.regenerate-modal .modal-btn-cancel {
    background: #F3F4F6;
    color: #374151;
}

.regenerate-modal .modal-btn-cancel:hover {
    background: #E5E7EB;
}

.regenerate-modal .modal-btn-confirm {
    background: linear-gradient(135deg, #1877F2 0%, #1565D8 100%);
    color: white;
}

.regenerate-modal .modal-btn-confirm:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

/* =====================================================
   EXIT TYPE RADIO BUTTONS
   ===================================================== */
.exit-type-group {
    grid-column: 1 / -1;
}

.exit-type-radios {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.exit-type-radios .radio-option {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.exit-type-radios .radio-option:hover {
    border-color: #3B82F6;
    background: rgba(59, 130, 246, 0.03);
}

.exit-type-radios .radio-option.selected,
.exit-type-radios .radio-option:has(input:checked) {
    border-color: #3B82F6;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(59, 130, 246, 0.03) 100%);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}

.exit-type-radios .radio-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #3B82F6;
    cursor: pointer;
}

.exit-type-radios .radio-label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.exit-type-radios .radio-option:has(input:checked) .radio-label {
    color: #1E40AF;
    font-weight: 600;
}

.exit-type-required {
    display: block;
    animation: fadeIn 0.3s ease;
}

@media (max-width: 480px) {
    .exit-type-radios {
        flex-direction: column;
        gap: 8px;
    }
    
    .exit-type-radios .radio-option {
        padding: 12px 14px;
    }
}

/* =====================================================
   RETROSPECTIVE EXIT VALIDATION STYLES
   ===================================================== */
.retrospective-validation {
    grid-column: 1 / -1;
    border-radius: 12px;
    padding: 16px;
    margin-top: 8px;
    margin-bottom: 8px;
}

.retrospective-validation.validation-correct {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(16, 185, 129, 0.03) 100%);
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.retrospective-validation.validation-suboptimal {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(245, 158, 11, 0.03) 100%);
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.retrospective-validation.validation-locked {
    background: linear-gradient(135deg, rgba(156, 163, 175, 0.08) 0%, rgba(156, 163, 175, 0.03) 100%);
    border: 1px dashed rgba(156, 163, 175, 0.4);
}

.validation-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.validation-locked .validation-header {
    margin-bottom: 12px;
    border-bottom: none;
    padding-bottom: 0;
}

.validation-header .validation-icon {
    font-size: 18px;
}

.validation-header .validation-title {
    font-weight: 600;
    font-size: 14px;
    color: #374151;
}

.validation-locked .validation-header .validation-title {
    color: #9CA3AF;
}

/* Locked state */
.validation-locked-message {
    color: #6B7280;
    font-size: 13px;
}

.validation-locked-message p {
    margin: 0 0 10px 0;
}

.validation-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.validation-checklist li {
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.5);
}

.validation-checklist li.complete {
    color: #047857;
    background: rgba(16, 185, 129, 0.1);
}

.validation-checklist li.missing {
    color: #9CA3AF;
}

/* Window info */
.validation-window-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    font-size: 12px;
}

.validation-window-info .window-label {
    color: #6B7280;
}

.validation-window-info .window-value {
    font-weight: 600;
    color: #374151;
}

/* Comparison cards */
.validation-comparison {
    display: flex;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 14px;
}

.validation-comparison .comparison-item {
    flex: 1;
    background: white;
    border-radius: 10px;
    padding: 14px;
    text-align: center;
    border: 2px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.validation-comparison .comparison-item.winner {
    border-color: rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, white 100%);
}

.validation-comparison .comparison-badge {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6B7280;
    margin-bottom: 8px;
    padding: 3px 8px;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 4px;
    display: inline-block;
}

.validation-comparison .comparison-item.winner .comparison-badge {
    background: rgba(16, 185, 129, 0.15);
    color: #047857;
}

.validation-comparison .comparison-label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.validation-comparison .comparison-value {
    font-size: 22px;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 6px;
}

.validation-comparison .comparison-item.winner .comparison-value {
    color: #047857;
}

.validation-comparison .comparison-detail {
    font-size: 11px;
    color: #9CA3AF;
    line-height: 1.4;
}

.validation-comparison .comparison-vs {
    display: flex;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    color: #9CA3AF;
    padding: 0 4px;
}

/* Result section */
.validation-result {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    padding: 12px 14px;
}

.validation-result .result-verdict {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
    padding: 6px 12px;
    border-radius: 6px;
    display: inline-block;
}

.validation-result .result-verdict.correct {
    background: rgba(16, 185, 129, 0.15);
    color: #047857;
}

.validation-result .result-verdict.suboptimal {
    background: rgba(245, 158, 11, 0.15);
    color: #B45309;
}

.validation-result .result-text {
    font-size: 13px;
    line-height: 1.6;
    color: #374151;
}

.validation-correct .validation-result {
    background: rgba(16, 185, 129, 0.08);
}

.validation-suboptimal .validation-result {
    background: rgba(245, 158, 11, 0.08);
}

@media (max-width: 480px) {
    .validation-comparison {
        flex-direction: column;
        gap: 8px;
    }
    
    .validation-comparison .comparison-vs {
        padding: 4px 0;
        justify-content: center;
    }
    
    .validation-comparison .comparison-item {
        width: 100%;
    }
    
    .validation-checklist {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   DEAL TIMELINE / TIME METRICS STYLES
   ===================================================== */
.time-metrics-display {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
}

.time-metrics-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

.time-metrics-header .metrics-icon {
    font-size: 18px;
}

.time-metrics-header .metrics-title {
    font-weight: 600;
    color: #1E40AF;
    font-size: 14px;
}

.time-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.time-metric-item {
    background: white;
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.time-metric-item.active {
    border-color: rgba(16, 185, 129, 0.3);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.03) 0%, rgba(16, 185, 129, 0.08) 100%);
}

.time-metric-item.pending {
    border-color: rgba(156, 163, 175, 0.3);
    background: rgba(156, 163, 175, 0.05);
}

.time-metric-item .metric-label {
    font-size: 11px;
    font-weight: 600;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.time-metric-item.active .metric-label {
    color: #047857;
}

.time-metric-item .metric-value {
    font-size: 18px;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 4px;
}

.time-metric-item.active .metric-value {
    color: #047857;
}

.time-metric-item.pending .metric-value {
    color: #9CA3AF;
    font-size: 14px;
    font-style: italic;
}

.time-metric-item .metric-desc {
    font-size: 10px;
    color: #9CA3AF;
}

@media (max-width: 480px) {
    .time-metrics-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .time-metric-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
    
    .time-metric-item .metric-label {
        margin-bottom: 0;
    }
    
    .time-metric-item .metric-desc {
        display: none;
    }
}

/* =====================================================
   POST-DEAL ANALYSIS STYLES
   ===================================================== */
.post-deal-analysis-section {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 16px;
    padding: 20px;
    margin-top: 20px;
}

.post-deal-analysis-section h5 {
    color: #5B21B6;
    display: flex;
    align-items: center;
    gap: 8px;
}

.deal-analysis-container {
    margin-top: 12px;
}

.generate-analysis-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.generate-analysis-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.generate-analysis-btn .btn-icon {
    font-size: 18px;
}

.analysis-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    color: #5B21B6;
    font-weight: 500;
}

.analysis-output,
.analysis-result {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.analysis-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    color: white;
}

.analysis-badge {
    font-size: 14px;
    font-weight: 600;
}

.analysis-date {
    font-size: 12px;
    opacity: 0.9;
}

.analysis-content {
    padding: 20px;
}

.analysis-text {
    font-size: 14px;
    line-height: 1.8;
    color: #374151;
}

.analysis-text p {
    margin: 0 0 12px 0;
}

.analysis-text ul {
    margin: 8px 0;
    padding-left: 20px;
}

.analysis-text li {
    margin: 6px 0;
}

.analysis-text strong {
    color: #1F2937;
}

.save-analysis-btn,
.regenerate-analysis-btn {
    display: block;
    width: calc(100% - 36px);
    margin: 0 18px 18px 18px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.save-analysis-btn {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
}

.save-analysis-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.regenerate-analysis-btn {
    background: rgba(99, 102, 241, 0.1);
    color: #5B21B6;
    border: 2px solid rgba(99, 102, 241, 0.2);
}

.regenerate-analysis-btn:hover {
    background: rgba(99, 102, 241, 0.2);
}

/* Locked/Disabled Analysis State */
.post-deal-analysis-section.disabled-section {
    opacity: 0.85;
}

.analysis-locked-message {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.08) 0%, rgba(156, 163, 175, 0.08) 100%);
    border: 2px dashed rgba(107, 114, 128, 0.3);
    border-radius: 12px;
}

.analysis-locked-message .locked-icon {
    font-size: 32px;
    opacity: 0.7;
}

.analysis-locked-message .locked-text {
    flex: 1;
}

.analysis-locked-message .locked-text strong {
    display: block;
    font-size: 15px;
    color: #374151;
    margin-bottom: 4px;
}

.analysis-locked-message .locked-text p {
    margin: 0;
    font-size: 13px;
    color: #6B7280;
    line-height: 1.5;
}

.section-description {
    font-size: 13px;
    color: #666;
    margin: 4px 0 12px 0;
}

/* Quality Checklist Styles */
.quality-section,
.disclosure-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(245, 247, 250, 0.9) 100%);
}

.quality-intro,
.disclosure-intro {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-weight: 500;
    line-height: 1.5;
}

.disclosure-intro strong {
    color: var(--primary-color);
}

/* Disclosure Summary */
.disclosure-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255, 149, 0, 0.1);
    border: 1px solid rgba(255, 149, 0, 0.3);
    border-radius: 8px;
    margin-top: 16px;
}

.disclosure-summary .summary-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
}

.disclosure-summary .summary-value {
    font-size: 18px;
    font-weight: 700;
}

/* Disclosure flag group titles */
.disclosure-title {
    color: #FF3B30;
}

.flags-group {
    margin-bottom: 24px;
    padding: 16px;
    background: white;
    border-radius: 12px;
    border: 2px solid rgba(0, 0, 0, 0.04);
}

.flags-group-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.critical-title {
    color: #FF3B30;
    font-weight: 700;
}

.moderate-title {
    color: #FF9500;
}

.bonus-title {
    color: #34C759;
}

.critical-group {
    border-left: 4px solid #FF3B30;
    background: rgba(255, 59, 48, 0.05);
}

.moderate-group {
    border-left: 4px solid #FF9500;
    background: rgba(255, 149, 0, 0.05);
}

.bonus-group {
    border-left: 4px solid #34C759;
    background: rgba(52, 199, 89, 0.05);
}

.flags-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}

.flag-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.flag-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px 12px;
    background: var(--background-color);
    border-radius: 10px;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.flag-label:hover {
    background: rgba(102, 126, 234, 0.08);
    border-color: rgba(102, 126, 234, 0.2);
    transform: translateX(2px);
}

.flag-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.flag-text {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-color);
}

.flag-item small {
    padding-left: 42px;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 0;
}

/* Recommendation Badge */
.recommendation-badge {
    margin: 24px;
    padding: 20px 24px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: fadeIn 0.6s ease-out;
}

.recommendation-icon {
    font-size: 48px;
    line-height: 1;
}

.recommendation-content {
    flex: 1;
}

.recommendation-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    margin-bottom: 4px;
}

.recommendation-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.recommendation-message {
    font-size: 15px;
    font-weight: 500;
    opacity: 0.95;
}

.recommendation-badge {
    color: white;
}

/* Recommended Star */
.recommended-star {
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 20px;
    animation: pulse 2s infinite;
}

.scenario-tab.recommended {
    position: relative;
    border: 2px solid currentColor;
}


#quality-score-display {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 14px;
}

/* Estimates Table */
.estimates-controls {
    margin-bottom: 20px;
}

.search-filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.search-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 14px;
}

.filter-select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 14px;
    min-width: 150px;
}

.results-summary {
    font-size: 14px;
    color: #666;
    text-align: right;
}

.estimates-table-container {
    overflow-x: auto;
    background: var(--card-background);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.estimates-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.estimates-table thead {
    background: var(--primary-gradient);
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.estimates-table th {
    padding: 16px 14px;
    text-align: left;
    font-weight: 700;
    white-space: nowrap;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.estimates-table td {
    padding: 16px 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.estimates-table tbody tr.estimate-row {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.estimates-table tbody tr.estimate-row:hover {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    transform: translateX(3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.estimates-table tbody tr.estimate-row.expanded {
    background: rgba(94, 92, 230, 0.05);
}

.estimates-table tbody tr.estimate-row:active {
    transform: scale(0.998);
}

.col-expand {
    width: 40px;
    text-align: center;
}

.col-date {
    width: 100px;
}

.col-car {
    min-width: 150px;
}

.col-title {
    width: 80px;
}

.col-erv {
    width: 120px;
}

.col-bid {
    width: 140px;
    font-weight: 600;
    color: var(--primary-color);
}

.col-scenario {
    width: 120px;
}

.col-actions {
    width: 80px;
    text-align: center;
}

.expand-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    width: auto;
    color: var(--primary-color);
}

.expand-icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

.title-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.title-badge.clean {
    background: #d4edda;
    color: #155724;
}

.title-badge.salvage {
    background: #fff3cd;
    color: #856404;
}

.scenario-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
}

.action-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    font-size: 18px;
    width: auto;
    transition: transform 0.2s ease;
}

.action-btn:hover {
    transform: scale(1.2);
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #999;
}

/* Expanded Details Row */
.estimate-details-row td {
    background: #f9f9f9;
    padding: 0;
}

.expanded-details {
    padding: 24px 32px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 16px;
}

@media (min-width: 768px) {
    .expanded-details {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }
}

.details-section {
    background: white;
    padding: 20px 24px;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
}

.details-section h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0;
}

.details-section p {
    margin: 8px 0;
    font-size: 14px;
    line-height: 1.6;
}

/* Exit Strategy Badge */
.exit-strategy-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-transform: capitalize;
    margin-left: 4px;
}

.exit-strategy-badge.retail,
.exit-strategy-badge.private {
    background: linear-gradient(135deg, #34C759 0%, #30D158 100%);
    color: white;
}

.exit-strategy-badge.wholesale {
    background: linear-gradient(135deg, #007AFF 0%, #0051D5 100%);
    color: white;
}

.exit-strategy-badge.carvana {
    background: linear-gradient(135deg, #FF9500 0%, #FF8000 100%);
    color: white;
}

.resale-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

/* Financial Summary Box */
.summary-box {
    padding: 20px;
    border-radius: 12px;
    background: #fafafa;
    border: 1px solid #e8e8e8;
}

/* Main row with 2 items */
.summary-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

/* Highlighted items (Est. Resale, Auction Price) */
.summary-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 18px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}

.summary-item.highlight {
    background: linear-gradient(135deg, #fff, #f8f9ff);
    border: 2px solid #5E5CE6;
}

.summary-label {
    font-size: 11px;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-value {
    font-size: 20px;
    font-weight: 800;
    color: #111;
}

/* Costs Section */
.costs-section {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    margin-bottom: 16px;
}

.costs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    background: linear-gradient(135deg, #f5f5f5, #eee);
    border-bottom: 1px solid #e0e0e0;
}

.costs-title {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.costs-total {
    font-size: 18px;
    font-weight: 800;
    color: #111;
}

/* Cost breakdown grid - 3 columns */
.costs-breakdown {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: #e8e8e8;
}

.cost-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: #fff;
}

.cost-label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.cost-value {
    font-size: 14px;
    font-weight: 700;
    color: #111;
}

/* Investment Bar */
.investment-bar {
    padding: 16px 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, #e5f9e7, #d4f4d7);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    border: 2px solid #b7e9bc;
}

.investment-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
}

.investment-label {
    font-size: 11px;
    color: #2d7738;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.investment-value {
    font-size: 20px;
    font-weight: 800;
    color: #1e5a28;
}

/* Responsive: Mobile */
@media (max-width: 600px) {
    .summary-row-2 {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .costs-breakdown {
        grid-template-columns: 1fr 1fr;
    }
    
    .investment-bar {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (max-width: 400px) {
    .costs-breakdown {
        grid-template-columns: 1fr;
    }
}

.resale-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.resale-label {
    font-size: 12px;
    color: #666;
}

.resale-value {
    font-weight: 600;
    font-size: 14px;
    color: var(--primary-color);
}

.scenario-bids-compact {
    margin: 5px 0;
}

.bid-chip {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    margin: 2px;
    white-space: nowrap;
}

/* Bidding Options Grid - Column Layout */
.bidding-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 12px;
}

/* Two exits only - full width columns */
.bidding-options-grid.two-exits {
    grid-template-columns: 1fr 1fr;
}

.bidding-column {
    background: linear-gradient(135deg, #ffffff, #f8f9ff);
    border-radius: 12px;
    padding: 16px;
    border: 2px solid #e8e8ff;
    transition: all 0.2s ease;
}

.bidding-column:hover {
    border-color: #5E5CE6;
    box-shadow: 0 4px 12px rgba(94, 92, 230, 0.15);
    transform: translateY(-2px);
}

.bidding-column-header {
    font-size: 13px;
    font-weight: 700;
    color: #5E5CE6;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e8e8ff;
    text-align: center;
}

.bidding-column-bids {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bid-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s ease;
}

.bid-item:hover {
    transform: translateX(3px);
    box-shadow: 0 2px 8px rgba(94, 92, 230, 0.3);
}

/* Responsive for bidding options */
@media (max-width: 900px) {
    .bidding-options-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: var(--border-radius);
    font-size: 14px;
    transition: all 0.2s ease;
    width: auto;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: none;
}

.pagination-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f5f5f5;
}

.pagination-ellipsis {
    padding: 8px 4px;
    color: #999;
}

/* Responsive design */
@media (max-width: 1023px) {
    .calculator-grid {
        grid-template-columns: 1fr;
    }
    
    .results-sticky-container {
        position: relative;
        top: auto;
        max-height: none;
    }
}

@media (max-width: 767px) {
    .container {
        padding: 15px 20px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .scenario-tabs {
        flex-direction: column;
    }
    
    .scenario-tab {
        flex-direction: row;
        justify-content: center;
        gap: 10px;
    }
    
    .search-filter-bar {
        flex-direction: column;
    }
    
    .filter-select {
        width: 100%;
    }
    
    .estimates-table {
        font-size: 12px;
    }
    
    .estimates-table th,
    .estimates-table td {
        padding: 8px 4px;
    }
    
    .col-car {
        min-width: 120px;
    }
    
    .expanded-details {
        grid-template-columns: 1fr;
    }
    
    .resale-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 15px;
    }
    
    body {
        padding: 0;
    }
    
    .auth-buttons {
        flex-direction: column;
    }
    
    .tab-buttons {
        flex-direction: column;
    }
    
    .bid-breakdown {
        flex-direction: column;
        align-items: center;
    }
    
    .saved-bidding-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bid-amount-small {
        font-size: 20px;
    }
    
    .roi-label {
        font-size: 18px;
    }
    
    .toast-notification {
        right: 10px;
        left: 10px;
        max-width: calc(100% - 20px);
    }
    
    .toast-notification.show {
        top: 10px;
    }
    
    .date-group-header {
        font-size: 16px;
        padding: 10px 15px;
    }
    
    .form-section {
        padding: 15px;
    }
    
    .form-section-title {
        font-size: 14px;
    }
    
    /* Make table scroll horizontally on very small screens */
    .estimates-table-container {
        overflow-x: scroll;
    }
    
    .estimates-table {
        min-width: 700px;
    }
}
/* ========================================
   TRADER'S BOARD STYLES
   ======================================== */

.traders-board-filters {
    background: var(--card-background);
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 12px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-group label {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Date Group Containers */
.date-group {
    margin-bottom: 32px;
    border-radius: 20px;
    overflow: hidden;
    background: var(--card-background);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.today-group {
    border: 2px solid #34C759;
    box-shadow: 0 8px 24px rgba(52, 199, 89, 0.15);
}

.past-group {
    opacity: 0.6;
    border: 1px solid #FF3B30;
}

.date-group-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.today-group .date-group-header {
    background: linear-gradient(135deg, #34C759 0%, #30D158 100%);
}

.past-group .date-group-header {
    background: linear-gradient(135deg, #FF3B30 0%, #FF453A 100%);
}

.date-group-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.group-count {
    font-size: 13px;
    opacity: 0.9;
    font-weight: 500;
}

/* Trader Table Rows */
.trader-row {
    font-size: 14px;
}

.trader-row:hover {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    transform: translateX(3px);
}

.col-time {
    width: 80px;
    font-weight: 700;
}

/* Time column - white in header, colored in rows */
thead .col-time {
    color: white !important;
}

tbody .col-time {
    color: #667eea;
}

.col-vehicle {
    min-width: 250px;
}

.vehicle-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.vehicle-name {
    font-weight: 600;
    color: #1a1a1a;
}

.salvage-mini {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    background: #FF9500;
    color: white;
}

.col-auction {
    width: 120px;
    font-weight: 600;
}

.col-bid {
    width: 120px;
    font-size: 15px;
    font-weight: 700;
    color: #34C759;
}

.col-exit {
    width: 130px;
}

.col-demand {
    width: 130px;
}

/* ========================================
   ESTIMATE CARD BOXES (NEW LAYOUT)
   ======================================== */

.estimates-cards-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
}

.estimate-card-box {
    background: white;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: all 0.2s ease;
}

.estimate-card-box:hover {
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.12);
    border-color: rgba(102, 126, 234, 0.2);
}

.estimate-card-box.expanded {
    box-shadow: 0 6px 24px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.card-header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    gap: 16px;
    cursor: pointer;
    background: linear-gradient(135deg, #fafbff 0%, #f5f7ff 100%);
}

.card-header:hover {
    background: linear-gradient(135deg, #f0f3ff 0%, #e8ecff 100%);
}

.card-checkbox {
    flex-shrink: 0;
}

.card-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #667eea;
}

.card-main {
    flex: 1;
    min-width: 0;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
}

.meta-divider {
    color: #ccc;
}

.meta-item {
    font-weight: 500;
}

.title-badge-mini {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.title-badge-mini.clean {
    background: #34C759;
    color: white;
}

.title-badge-mini.salvage {
    background: #FF9500;
    color: white;
}

.card-values {
    display: flex;
    gap: 20px;
}

.card-value {
    text-align: center;
    padding: 8px 16px;
    border-radius: 10px;
    min-width: 100px;
}

.card-value.retail {
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
}

.card-value.wholesale {
    background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%);
}

.card-value .value-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.card-value.retail .value-amount {
    color: #2E7D32;
    font-size: 16px;
    font-weight: 700;
}

.card-value.wholesale .value-amount {
    color: #E65100;
    font-size: 16px;
    font-weight: 700;
}

.card-actions {
    display: flex;
    gap: 8px;
}

.card-expand-icon {
    font-size: 14px;
    color: #999;
    transition: transform 0.2s ease;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

.estimate-card-box.expanded .card-expand-icon {
    color: #667eea;
}

.card-details {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: #fff;
}

/* Financial Summary Colors */
.summary-value.green {
    color: #2E7D32 !important;
}

.summary-value.orange {
    color: #E65100 !important;
}

/* Responsive Card Layout */
@media (max-width: 768px) {
    .card-header {
        flex-wrap: wrap;
        padding: 12px 16px;
        gap: 12px;
    }
    
    .card-main {
        order: 1;
        flex: 1 1 calc(100% - 50px);
    }
    
    .card-checkbox {
        order: 0;
    }
    
    .card-expand-icon {
        order: 2;
    }
    
    .card-values {
        order: 3;
        width: 100%;
        justify-content: space-between;
    }
    
    .card-value {
        flex: 1;
        min-width: 0;
    }
    
    .card-actions {
        order: 4;
        width: 100%;
        justify-content: center;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        padding-top: 12px;
        margin-top: 4px;
    }
    
    .card-title {
        font-size: 15px;
    }
    
    .card-meta {
        flex-wrap: wrap;
    }
}

/* ========================================
   END ESTIMATE CARD BOXES
   ======================================== */

.demand-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

/* Expanded Details Row */
.expanded-details-row {
    background: #f8f9fa;
}

.expanded-details-row td {
    padding: 0 !important;
}

/* No Estimates Message */
.no-estimates {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .filter-row {
        grid-template-columns: 1fr;
    }
    
    .date-group-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .traders-table {
        font-size: 12px;
    }
    
    .col-vehicle {
        min-width: 180px;
    }
}

/* ========================================
   AUCTION PRICE MODAL
   ======================================== */

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

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

.price-modal-content {
    position: relative;
    background: white;
    border-radius: 24px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
    max-width: 480px;
    width: 90%;
    overflow: hidden;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.price-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 32px 32px 24px;
    text-align: center;
}

.price-modal-icon {
    font-size: 64px;
    display: block;
    margin-bottom: 16px;
    animation: bounce 0.6s ease;
}

.price-modal-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.price-modal-body {
    padding: 32px;
}

.price-modal-message {
    text-align: center;
    color: #666;
    font-size: 16px;
    margin: 0 0 24px;
    font-weight: 500;
}

.price-input-container {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    padding: 4px 4px 4px 20px;
    transition: all 0.3s ease;
}

.price-input-container:focus-within {
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.price-input-symbol {
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
    margin-right: 8px;
}

.price-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    padding: 16px;
    outline: none;
}

.price-input::placeholder {
    color: #ccc;
}

/* Remove number input arrows */
.price-input::-webkit-inner-spin-button,
.price-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.price-input[type=number] {
    -moz-appearance: textfield;
}

.price-modal-actions {
    display: flex;
    gap: 12px;
    padding: 24px 32px 32px;
}

.price-modal-button {
    flex: 1;
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: capitalize;
}

.price-modal-cancel {
    background: #f0f0f0;
    color: #666;
}

.price-modal-cancel:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

.price-modal-confirm {
    background: linear-gradient(135deg, #34C759 0%, #30D158 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(52, 199, 89, 0.3);
}

.price-modal-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(52, 199, 89, 0.4);
}

.price-modal-confirm:active {
    transform: translateY(0);
}

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

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

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

/* Responsive */
@media (max-width: 600px) {
    .price-modal-content {
        width: 95%;
        max-width: none;
    }
    
    .price-modal-header {
        padding: 24px 20px 20px;
    }
    
    .price-modal-icon {
        font-size: 48px;
    }
    
    .price-modal-title {
        font-size: 20px;
    }
    
    .price-modal-body {
        padding: 24px 20px;
    }
    
    .price-input {
        font-size: 24px;
        padding: 12px;
    }
    
    .price-modal-actions {
        padding: 20px;
        flex-direction: column;
    }
}

/* ========================================
   EDIT PURCHASED VEHICLE MODAL
   ======================================== */

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

.modal-overlay.active {
    display: flex;
}

.edit-purchased-modal {
    background: white;
    border-radius: 24px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 32px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
}

.vehicle-info-header {
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.vehicle-info-header h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
    color: #1a1a1a;
}

.vehicle-info-header p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

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

.section-title {
    margin: 24px 0 16px 0;
    color: #667eea;
    font-size: 16px;
    font-weight: 600;
}

.edit-row {
    display: grid;
    grid-template-columns: 180px 120px 1fr 120px;
    gap: 16px;
    align-items: center;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.edit-row:hover {
    background: #f0f2f5;
}

.edit-row.total-row {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0ff 100%);
    border: 2px solid #667eea;
    font-weight: 600;
}

.edit-label {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.edit-estimate {
    font-size: 14px;
    color: #999;
    padding: 10px 12px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    text-align: right;
    font-family: 'Courier New', monospace;
}

.edit-actual-input {
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    font-family: 'Courier New', monospace;
}

.edit-actual-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.edit-actual-calculated {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    padding: 10px 12px;
    background: #fff;
    border-radius: 8px;
    border: 2px solid #667eea;
    text-align: right;
    font-family: 'Courier New', monospace;
}

.edit-delta {
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    padding: 6px 10px;
    border-radius: 8px;
    min-width: 80px;
}

.edit-delta.positive {
    background: #d4f4dd;
    color: #1e7e34;
}

.edit-delta.negative {
    background: #fce8e8;
    color: #c62828;
}

.edit-delta.neutral {
    background: #f5f5f5;
    color: #999;
}

.edit-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 16px 0;
}

.profit-summary {
    margin-top: 24px;
    padding: 24px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 16px;
    border: 2px solid #0ea5e9;
}

.profit-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(14, 165, 233, 0.2);
}

.profit-row:last-child {
    border-bottom: none;
}

.profit-value {
    font-size: 20px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

.profit-value.profit {
    color: #1e7e34;
}

.profit-value.loss {
    color: #c62828;
}

.roi-value {
    font-size: 20px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

.profit-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(14, 165, 233, 0.3);
}

.comparison-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.comparison-item small {
    color: #666;
    font-size: 12px;
}

.comparison-item span {
    font-size: 16px;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.modal-footer {
    padding: 20px 32px;
    background: #f8f9fa;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    border-top: 1px solid #e0e0e0;
}

.modal-btn {
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cancel-btn {
    background: #e0e0e0;
    color: #666;
}

.cancel-btn:hover {
    background: #d0d0d0;
    transform: translateY(-2px);
}

.save-btn {
    background: linear-gradient(135deg, #34C759 0%, #30D158 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(52, 199, 89, 0.3);
}

.save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(52, 199, 89, 0.4);
}

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

/* Responsive */
@media (max-width: 768px) {
    .edit-purchased-modal {
        width: 95%;
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .edit-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .edit-label {
        font-weight: 600;
        color: #667eea;
    }
    
    .edit-estimate::before {
        content: 'Est: ';
        font-weight: 600;
        color: #999;
    }
    
    .modal-footer {
        padding: 16px 20px;
    }
}

/* ========================================
   PURCHASED VEHICLES SECTION
   ======================================== */

.purchased-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.summary-card {
    background: var(--card-background);
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.summary-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    border-color: rgba(102, 126, 234, 0.2);
}

.summary-icon {
    font-size: 40px;
    margin-bottom: 12px;
    display: block;
}

.summary-value {
    font-size: 32px;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    line-height: 1.2;
}

.summary-label {
    font-size: 13px;
    color: #666;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.purchased-table-container {
    overflow-x: auto;
    background: var(--card-background);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.purchased-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.purchased-table thead {
    background: var(--primary-gradient);
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.purchased-table th {
    padding: 16px 14px;
    text-align: left;
    font-weight: 700;
    white-space: nowrap;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.purchased-table td {
    padding: 16px 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.purchased-row {
    transition: all 0.2s ease;
    cursor: pointer;
}

.purchased-row.clickable-row:hover {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.purchased-row.expanded {
    background-color: #f0f4ff;
}

.purchased-details-row {
    background: #fafbfc;
}

.purchased-details-row td {
    padding: 0 !important;
}

/* Purchased Edit Form (Inline) */
.purchased-edit-form {
    padding: 32px;
    background: white;
    border-radius: 12px;
    margin: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.edit-form-header {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.edit-form-header h4 {
    margin: 0 0 8px 0;
    color: #667eea;
    font-size: 20px;
    font-weight: 700;
}

.form-subtitle {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.edit-form-body {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.edit-section h5 {
    margin: 0 0 16px 0;
    color: #1a1a1a;
    font-size: 16px;
    font-weight: 600;
}

.highlight-section {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0ff 100%);
    border: 2px solid #667eea;
    border-radius: 12px;
    padding: 24px !important;
}

.highlight-section h5 {
    color: #667eea;
}

/* VIN Display */
.vin-display {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
    margin-bottom: 16px;
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
}

.vin-label {
    font-size: 12px;
    font-weight: 600;
    color: #667eea;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vin-value {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: 1px;
}

/* Vehicle Identity Display */
.vehicle-identity-display {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.identity-label {
    font-size: 12px;
    font-weight: 600;
    color: #666;
}

.identity-value {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
}

.input-method-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    margin-left: auto;
}

.input-method-badge.vin {
    background: linear-gradient(135deg, #34C759 0%, #2DB350 100%);
    color: white;
}

.input-method-badge.manual {
    background: linear-gradient(135deg, #8E8E93 0%, #636366 100%);
    color: white;
}

/* Title Status Badges in info grid */
.info-value.title-badge-clean {
    color: #34C759;
    font-weight: 600;
}

.info-value.title-badge-salvage {
    color: #FF9500;
    font-weight: 600;
}

/* Mileage adjustment indicators */
.info-value.positive {
    color: #34C759;
}

.info-value.negative {
    color: #FF3B30;
}

/* LOC Tracking Section */
.loc-tracking-section {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: 12px;
    padding: 24px !important;
}

.loc-tracking-section h5 {
    color: #b45309;
}

.loc-tracking-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.loc-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.loc-info-label {
    font-size: 12px;
    color: #92400e;
    font-weight: 500;
}

.loc-info-value {
    font-size: 16px;
    font-weight: 600;
    color: #78350f;
}

.loc-actual-section {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 24px;
    padding-top: 16px;
    border-top: 1px dashed #d97706;
    margin-top: 16px;
}

.loc-actual-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.loc-actual-input-group label {
    font-size: 13px;
    font-weight: 600;
    color: #92400e;
}

.loc-months-input {
    padding: 10px 16px;
    border: 2px solid #d97706;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    font-weight: 500;
    min-width: 180px;
}

.loc-months-input:focus {
    outline: none;
    border-color: #b45309;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.loc-actual-results {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.loc-result-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: white;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #fbbf24;
}

.loc-result-label {
    font-size: 12px;
    color: #92400e;
    font-weight: 500;
}

.loc-result-value {
    font-size: 18px;
    font-weight: 700;
    color: #78350f;
}

.loc-result-value.positive {
    color: #059669;
}

.loc-result-value.negative {
    color: #dc2626;
}

.loc-savings {
    border-color: #059669;
    background: #ecfdf5;
}

.loc-info-note {
    font-size: 12px;
    color: #92400e;
    margin-top: 12px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    border-left: 3px solid #f59e0b;
}

/* Quality Flags Display in Purchased Vehicles */
.quality-flags-section {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border: 2px solid #9ca3af;
    border-radius: 12px;
    padding: 20px !important;
}

.quality-flags-section h5 {
    color: #4b5563;
}

.quality-flags-display {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.flag-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.flag-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.flag-badge.green {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #10b981;
}

.flag-badge.yellow {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #f59e0b;
}

.flag-badge.red {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

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

.info-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.info-label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.info-value {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    font-family: 'Courier New', monospace;
}

.auction-link-ref {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(102, 126, 234, 0.2);
    font-size: 14px;
}

.auction-link-ref a {
    color: #667eea;
    text-decoration: none;
    word-break: break-all;
}

.auction-link-ref a:hover {
    text-decoration: underline;
}

/* Purchase Date Field */
.purchase-date-field {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding: 12px 16px;
    background: rgba(102, 126, 234, 0.08);
    border-radius: 10px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.purchase-date-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #4b5563;
}

.purchase-date-label .date-icon {
    font-size: 16px;
}

.purchase-date-input {
    flex: 1;
    max-width: 180px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    background: white;
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.purchase-date-input:hover {
    border-color: #667eea;
}

.purchase-date-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

/* Bidding Options Section - Two Scenarios */
.bidding-section-all {
    background: linear-gradient(135deg, #f8faf8 0%, #f0f8f8 100%);
    border: 2px solid #667eea;
    border-radius: 12px;
    padding: 16px !important;
}

.bidding-section-all h5 {
    color: #667eea;
    margin-bottom: 8px;
}

.bidding-subtitle {
    font-size: 12px;
    color: #666;
    margin: 0 0 12px 0;
}

.bidding-scenarios-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (max-width: 768px) {
    .bidding-scenarios-grid {
        grid-template-columns: 1fr;
    }
}

.bidding-scenario-column {
    background: white;
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.bidding-scenario-column.green {
    border: 2px solid #34C759;
}

.bidding-scenario-column.blue {
    border: 2px solid #007AFF;
}

.bidding-scenario-column.orange {
    border: 2px solid #FF9500;
}

.bidding-scenario-column.recommended {
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
    transform: scale(1.02);
}

.bidding-scenario-column:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.bidding-scenario-column.recommended:hover {
    transform: scale(1.02) translateY(-2px);
}

.bidding-scenario-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}

.bidding-type-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.08);
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bidding-scenario-column.green .bidding-type-badge {
    background: rgba(52, 199, 89, 0.15);
    color: #34C759;
}

.bidding-scenario-column.orange .bidding-type-badge {
    background: rgba(255, 149, 0, 0.15);
    color: #FF9500;
}

.bidding-scenario-icon {
    font-size: 20px;
}

.bidding-scenario-title {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    flex: 1;
}

.recommended-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bidding-scenario-bids {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bid-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    background: #f8f9fa;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.bid-option:hover {
    background: #e8e9ea;
    transform: translateX(2px);
}

.bid-roi,
.bid-label {
    font-size: 12px;
    font-weight: 600;
    color: #667eea;
}

.bidding-scenario-column.orange .bid-label {
    color: #FF9500;
}

.bid-value {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    font-family: 'Courier New', monospace;
}

/* Notes Section */
.notes-section {
    background: #fffef5;
    border: 2px solid #FFA500;
    border-radius: 12px;
    padding: 20px !important;
}

.notes-section h5 {
    color: #FFA500;
}

.original-notes {
    padding: 16px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    color: #333;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
}

.notes-textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    line-height: 1.6;
    resize: vertical;
    transition: all 0.2s ease;
}

.notes-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.notes-hint {
    margin: 8px 0 0 0;
    font-size: 13px;
    color: #666;
    font-style: italic;
}

/* Live Summary Bar - Real-time Profit Tracker */
.live-summary-bar {
    margin-top: 24px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e8eaf6 100%);
    border: 2px solid #667eea;
    border-radius: 12px;
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr 1.2fr;
    gap: 16px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.live-summary-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
}

.live-summary-column .column-header {
    font-size: 12px;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.live-summary-column.market-values {
    background: rgba(102, 126, 234, 0.1);
}

/* Deductions Section */
.deductions-section {
    margin: 8px 0;
    padding: 8px 10px;
    background: rgba(255, 193, 7, 0.15);
    border-radius: 6px;
    border-left: 3px solid #FFC107;
}

.deductions-header {
    font-size: 10px;
    font-weight: 700;
    color: #856404;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
}

.deduction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 0;
}

.deduction-label {
    font-size: 11px;
    color: #666;
}

.deduction-value {
    font-size: 12px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

.deduction-value.positive {
    color: #34C759;
}

.deduction-value.negative {
    color: #FF3B30;
}

/* Individual flag deductions */
.deduction-item.flag-deduction {
    padding-left: 8px;
    border-left: 2px solid #FF3B30;
    margin-left: 4px;
}

.deduction-item.flag-deduction .deduction-label {
    font-size: 10px;
    color: #856404;
}

.deduction-item.flag-deduction .deduction-value {
    font-size: 9px;
    word-break: break-word;
}

/* ==============================================
   DEDUCTIONS BREAKDOWN BOX - Separate Expandable
   ============================================== */
.deductions-breakdown-box {
    margin-top: 16px;
    background: linear-gradient(135deg, #fff5e6 0%, #fff0db 100%);
    border: 2px solid #F5A623;
    border-radius: 12px;
    overflow: visible;
    box-shadow: 0 4px 12px rgba(245, 166, 35, 0.2);
}

.deductions-breakdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: linear-gradient(135deg, #F5A623 0%, #E09600 100%);
    cursor: pointer;
    transition: background 0.2s ease;
    border-radius: 10px 10px 0 0;
    overflow: visible;
    position: relative;
}

/* Tooltip styling for deductions header */
.deductions-breakdown-header .info-tooltip .tooltip-content {
    z-index: 99999;
}

/* Make tooltip icon visible on colored backgrounds */
.deductions-breakdown-header .info-tooltip .info-icon {
    color: rgba(255, 255, 255, 0.8);
}

.deductions-breakdown-header .info-tooltip:hover .info-icon {
    color: #ffffff;
}

.time-weighted-header .info-tooltip .info-icon {
    color: rgba(255, 255, 255, 0.7);
}

.time-weighted-header .info-tooltip:hover .info-icon {
    color: #ffffff;
}

.deductions-breakdown-header:hover {
    background: linear-gradient(135deg, #E09600 0%, #c98000 100%);
}

.deductions-breakdown-title {
    font-size: 14px;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.deductions-breakdown-toggle {
    font-size: 14px;
    color: white;
    transition: transform 0.3s ease;
}

.deductions-breakdown-box.expanded .deductions-breakdown-toggle {
    transform: rotate(180deg);
}

.deductions-breakdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 20px;
    background: linear-gradient(135deg, #fff5e6 0%, #fff0db 100%);
    border-radius: 0 0 10px 10px;
}

.deductions-breakdown-box.expanded .deductions-breakdown-content {
    max-height: 1000px;
    padding: 20px;
    overflow: visible;
}

/* Two Column Layout */
.deductions-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.deduction-column {
    background: white;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.deduction-column.retail-column {
    border-top: 4px solid #4CAF50;
}

.deduction-column.wholesale-column {
    border-top: 4px solid #2196F3;
}

.deduction-column-header {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.15);
}

.deduction-base-value {
    display: flex;
    justify-content: space-between;
    padding: 8px 10px;
    background: #f5f5f5;
    border-radius: 6px;
    margin-bottom: 10px;
}

.deduction-base-value .base-label {
    font-size: 11px;
    color: #666;
}

.deduction-base-value .base-value {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    font-family: 'SF Mono', 'Courier New', monospace;
}

.deduction-line-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 10px;
    margin: 4px 0;
    border-radius: 4px;
    border-left: 3px solid #ccc;
}

.deduction-line-item.negative {
    background: rgba(255, 59, 48, 0.08);
    border-left-color: #FF3B30;
}

.deduction-line-item.positive {
    background: rgba(52, 199, 89, 0.08);
    border-left-color: #34C759;
}

.deduction-line-item .line-label {
    font-size: 11px;
    color: #555;
}

.deduction-line-item .line-value {
    font-size: 12px;
    font-weight: 700;
    font-family: 'SF Mono', 'Courier New', monospace;
}

.deduction-line-item.negative .line-value {
    color: #FF3B30;
}

.deduction-line-item.positive .line-value {
    color: #34C759;
}

.deduction-total-line {
    display: flex;
    justify-content: space-between;
    padding: 8px 10px;
    margin: 8px 0;
    border-radius: 4px;
    background: rgba(255, 59, 48, 0.15);
    border: 1px dashed #FF3B30;
}

.deduction-total-line .line-label {
    font-size: 11px;
    font-weight: 600;
    color: #c0392b;
}

.deduction-total-line .line-value {
    font-size: 12px;
    font-weight: 700;
    font-family: 'SF Mono', 'Courier New', monospace;
    color: #c0392b;
}

.deduction-final-value {
    display: flex;
    justify-content: space-between;
    padding: 10px 12px;
    margin-top: 12px;
    background: linear-gradient(135deg, #333 0%, #444 100%);
    border-radius: 8px;
}

.deduction-final-value .final-label {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.deduction-final-value .final-value {
    font-size: 16px;
    font-weight: 800;
    color: #4CAF50;
    font-family: 'SF Mono', 'Courier New', monospace;
}

.deduction-column.wholesale-column .deduction-final-value .final-value {
    color: #64B5F6;
}

.deductions-footnote {
    margin-top: 16px;
    padding: 10px 12px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 6px;
    text-align: center;
}

.deductions-footnote small {
    font-size: 11px;
    color: #666;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .deductions-two-column {
        grid-template-columns: 1fr;
    }
    
    .deductions-breakdown-box.expanded .deductions-breakdown-content {
        padding: 16px;
    }
}

/* Total deduction row */
.deduction-item.total-deduction {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed rgba(0, 0, 0, 0.15);
    font-weight: 600;
}

.deduction-item.total-deduction .deduction-label {
    font-weight: 700;
    color: #333;
}

/* Adjusted Values Section */
.adjusted-values {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed rgba(0, 0, 0, 0.15);
}

.pricing-row.adjusted-final {
    background: rgba(255, 255, 255, 0.5);
    padding: 4px 8px;
    border-radius: 4px;
    margin-top: 4px;
}

.pricing-value.wholesale-raw {
    color: #FF9500;
}

.live-summary-column.total-spent {
    background: rgba(255, 255, 255, 0.9);
}

.live-summary-column.retail-exit {
    background: rgba(52, 199, 89, 0.1);
    border: 1px solid rgba(52, 199, 89, 0.3);
}

.live-summary-column.wholesale-exit {
    background: rgba(255, 149, 0, 0.1);
    border: 1px solid rgba(255, 149, 0, 0.3);
}

.live-summary-column .pricing-row.profit-row {
    margin-top: 4px;
    padding-top: 6px;
    border-top: 1px dashed rgba(0, 0, 0, 0.1);
}

.pricing-value.profit-retail.positive,
.pricing-value.profit-wholesale.positive {
    color: #34C759 !important;
}

.pricing-value.profit-retail.negative,
.pricing-value.profit-wholesale.negative {
    color: #FF3B30 !important;
}

.live-summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
}

/* Pricing Summary Layout */
.live-summary-item.pricing-summary {
    align-items: flex-start;
    gap: 8px;
}

.pricing-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.pricing-row .pricing-label {
    font-size: 11px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    min-width: 100px;
}

.pricing-row .pricing-value {
    font-size: 16px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

.pricing-row .pricing-value.raw {
    color: #667eea;
}

.pricing-row.adjusted .pricing-label {
    color: #888;
}

.pricing-row .pricing-value.adjusted-retail {
    color: #34C759;
}

.pricing-row .pricing-value.adjusted-wholesale {
    color: #FF9500;
}

.live-summary-label {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.live-summary-value {
    font-size: 24px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
}

.live-summary-value.erv-value {
    color: #667eea;
}

.live-summary-value.total-value.positive {
    color: #34C759;
}

.live-summary-value.total-value.negative {
    color: #ff3b30;
}

.live-summary-value.profit-value.positive {
    color: #34C759;
}

.live-summary-value.profit-value.negative {
    color: #ff3b30;
}

.live-summary-divider {
    font-size: 28px;
    font-weight: 300;
    color: #667eea;
    flex: 0 0 auto;
}

@media (max-width: 768px) {
    .live-summary-bar {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        padding: 16px;
    }
    
    .live-summary-column {
        padding: 10px;
    }
    
    .live-summary-column .column-header {
        font-size: 11px;
    }
    
    .live-summary-divider {
        transform: rotate(90deg);
        font-size: 24px;
    }
    
    .live-summary-value {
        font-size: 20px;
    }
}

/* Profit Targets Section - Minimum Sale Prices */
.profit-targets-section {
    margin-top: 16px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(5, 150, 105, 0.05) 100%);
    border: 2px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
}

.profit-targets-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(16, 185, 129, 0.15);
}

.profit-targets-title {
    font-size: 15px;
    font-weight: 600;
    color: #059669;
}

.profit-targets-subtitle {
    font-size: 12px;
    color: #6B7280;
}

.profit-targets-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.profit-target-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 10px;
    background: white;
    border-radius: 10px;
    border: 2px solid #e5e7eb;
    transition: all 0.25s ease;
}

.profit-target-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 20% Profit - Red (lowest profit) */
.profit-target-item[data-roi="20"] {
    background: rgba(239, 68, 68, 0.08);
    border-color: #EF4444;
}

.profit-target-item[data-roi="20"] .target-roi {
    color: #DC2626;
}

.profit-target-item[data-roi="20"] .target-price {
    color: #DC2626;
}

/* 30% Profit - Yellow/Orange */
.profit-target-item[data-roi="30"] {
    background: rgba(245, 158, 11, 0.08);
    border-color: #F59E0B;
}

.profit-target-item[data-roi="30"] .target-roi {
    color: #D97706;
}

.profit-target-item[data-roi="30"] .target-price {
    color: #D97706;
}

/* 40% Profit - Light Green */
.profit-target-item[data-roi="40"] {
    background: rgba(34, 197, 94, 0.08);
    border-color: #22C55E;
}

.profit-target-item[data-roi="40"] .target-roi {
    color: #16A34A;
}

.profit-target-item[data-roi="40"] .target-price {
    color: #16A34A;
}

/* 50% Profit - Dark Green (highest profit) */
.profit-target-item[data-roi="50"] {
    background: rgba(16, 185, 129, 0.12);
    border-color: #10B981;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.profit-target-item[data-roi="50"] .target-roi {
    color: #059669;
    font-weight: 700;
}

.profit-target-item[data-roi="50"] .target-price {
    color: #059669;
    font-size: 17px;
}

/* ERV Target - Purple/Blue (special) */
.profit-target-item.erv-target {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-color: #667eea;
}

.target-roi {
    font-size: 11px;
    font-weight: 600;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 6px;
}

.profit-target-item.erv-target .target-roi {
    color: #667eea;
}

.target-price {
    font-size: 16px;
    font-weight: 700;
    color: #1F2937;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
}

.profit-target-item.erv-target .target-price {
    color: #667eea;
    font-size: 18px;
}

/* Profit Amount Display */
.target-profit-amount {
    font-size: 12px;
    font-weight: 600;
    margin-top: 4px;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.05);
}

/* Color-coded profit amounts */
.profit-target-item[data-roi="20"] .target-profit-amount {
    background: rgba(239, 68, 68, 0.12);
    color: #DC2626;
}

.profit-target-item[data-roi="30"] .target-profit-amount {
    background: rgba(245, 158, 11, 0.12);
    color: #D97706;
}

.profit-target-item[data-roi="40"] .target-profit-amount {
    background: rgba(34, 197, 94, 0.12);
    color: #16A34A;
}

.profit-target-item[data-roi="50"] .target-profit-amount {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
    font-weight: 700;
}

.profit-target-item.erv-target .target-profit-amount {
    background: rgba(102, 126, 234, 0.12);
    color: #667eea;
    font-weight: 700;
}

.profit-target-item.erv-target .target-profit-amount.positive {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}

.profit-target-item.erv-target .target-profit-amount.negative {
    background: rgba(239, 68, 68, 0.12);
    color: #DC2626;
}

.target-profit-label {
    font-size: 11px;
    font-weight: 600;
    margin-top: 4px;
    padding: 2px 8px;
    border-radius: 4px;
}

.target-profit-label.positive {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
}

.target-profit-label.negative {
    background: rgba(239, 68, 68, 0.15);
    color: #DC2626;
}

/* =====================================================
   TWO-EXIT PROFIT TARGETS LAYOUT
   ===================================================== */

.profit-exits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.profit-exit-column {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 16px;
    border: 2px solid #e5e7eb;
}

.profit-exit-column.private-exit {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.06) 0%, rgba(16, 185, 129, 0.03) 100%);
    border-color: rgba(34, 197, 94, 0.3);
}

.profit-exit-column.wholesale-exit {
    background: linear-gradient(135deg, rgba(255, 149, 0, 0.06) 0%, rgba(245, 158, 11, 0.03) 100%);
    border-color: rgba(255, 149, 0, 0.3);
}

.exit-column-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.exit-icon {
    font-size: 18px;
}

.exit-title {
    font-size: 14px;
    font-weight: 600;
    color: #1F2937;
    flex: 1;
}

.exit-type {
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.06);
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.private-exit .exit-type {
    background: rgba(34, 197, 94, 0.15);
    color: #16A34A;
}

.wholesale-exit .exit-type {
    background: rgba(255, 149, 0, 0.15);
    color: #D97706;
}

.exit-range {
    font-size: 11px;
    color: #6B7280;
    padding: 8px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 6px;
    margin-bottom: 12px;
    text-align: center;
}

.private-exit .exit-range {
    background: rgba(34, 197, 94, 0.08);
    color: #15803D;
}

.wholesale-exit .exit-range {
    background: rgba(255, 149, 0, 0.08);
    color: #B45309;
}

.exit-targets {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.exit-targets .profit-target-item {
    flex-direction: row;
    justify-content: space-between;
    padding: 10px 12px;
    gap: 8px;
}

.exit-targets .target-roi,
.exit-targets .target-label {
    margin-bottom: 0;
    font-size: 12px;
    min-width: 80px;
    font-weight: 600;
    color: #374151;
}

.exit-targets .target-price {
    font-size: 14px;
    flex: 1;
    text-align: right;
}

.exit-targets .target-profit-amount,
.exit-targets .target-status {
    font-size: 11px;
    min-width: 80px;
    text-align: right;
}

.target-status {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
}

.target-status.positive {
    background: rgba(34, 197, 94, 0.12);
    color: #16A34A;
}

.target-status.negative {
    background: rgba(239, 68, 68, 0.12);
    color: #DC2626;
}

/* ROI Badge for Profit Calculator */
.target-roi-badge {
    font-size: 13px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.06);
    color: #6B7280;
    min-width: 50px;
    text-align: center;
}

.target-roi-badge.positive {
    background: rgba(34, 197, 94, 0.15);
    color: #16A34A;
}

.target-roi-badge.negative {
    background: rgba(239, 68, 68, 0.15);
    color: #DC2626;
}

/* KBB Price Point Items */
.kbb-low-item,
.ws-low-item {
    background: rgba(239, 68, 68, 0.06);
    border-color: rgba(239, 68, 68, 0.25);
}

.kbb-low-item .target-label,
.ws-low-item .target-label {
    color: #DC2626;
}

.kbb-median-item,
.ws-median-item {
    background: rgba(245, 158, 11, 0.06);
    border-color: rgba(245, 158, 11, 0.25);
}

.kbb-median-item .target-label,
.ws-median-item .target-label {
    color: #D97706;
}

.kbb-high-item,
.ws-high-item {
    background: rgba(34, 197, 94, 0.08);
    border-color: rgba(34, 197, 94, 0.3);
}

.kbb-high-item .target-label,
.ws-high-item .target-label {
    color: #16A34A;
}

/* Profitable / Loss states */
.profit-target-item.profitable {
    border-color: rgba(34, 197, 94, 0.4);
}

.profit-target-item.loss {
    border-color: rgba(239, 68, 68, 0.4);
    opacity: 0.85;
}

/* KBB Max and Wholesale Max special styling */
.kbb-max-target,
.wholesale-max-target {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.08) 100%) !important;
    border-color: #667eea !important;
    margin-top: 4px;
}

.kbb-max-target .target-roi,
.wholesale-max-target .target-roi {
    color: #667eea !important;
    font-weight: 700;
}

.kbb-max-target .target-price,
.wholesale-max-target .target-price {
    color: #667eea !important;
}

/* Achievability states for new layout */
.exit-targets .profit-target-item.achievable {
    border-color: rgba(34, 197, 94, 0.4);
    background: rgba(34, 197, 94, 0.06);
}

.exit-targets .profit-target-item.not-achievable {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.04);
    opacity: 0.7;
}

.exit-targets .profit-target-item.capped {
    border-color: rgba(245, 158, 11, 0.4);
    background: rgba(245, 158, 11, 0.06);
}

@media (max-width: 900px) {
    .profit-exits-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .profit-targets-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .profit-target-item.erv-target {
        grid-column: span 2;
    }
    
    .profit-targets-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .profit-targets-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .target-price {
        font-size: 14px;
    }
}

.no-bidding-data {
    padding: 16px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    color: #856404;
    font-size: 14px;
    margin: 0 0 8px 0;
}

.no-bidding-hint {
    font-size: 13px;
    color: #666;
    margin: 0;
    font-style: italic;
}

.est-values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.est-value-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 14px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.est-label {
    font-size: 14px;
    color: #666;
}

.est-value {
    font-size: 14px;
    font-weight: 700;
    color: #999;
    font-family: 'Courier New', monospace;
}

.actual-inputs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

/* Fee Breakdown Styles */
.fees-breakdown-group {
    grid-column: 1 / -1; /* Span full width */
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #0ea5e9;
    border-radius: 12px;
    padding: 20px;
    margin: 8px 0;
}

.fees-header {
    font-size: 15px;
    font-weight: 700;
    color: #0369a1;
    margin-bottom: 16px;
    display: block;
}

.fees-subcategories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.fee-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fee-item label {
    font-size: 12px;
    color: #0369a1;
    font-weight: 500;
}

.fee-input {
    padding: 10px 12px;
    border: 1px solid #7dd3fc;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    transition: all 0.2s ease;
}

.fee-input:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

.fee-input:not(:placeholder-shown) {
    border-color: #0ea5e9;
    background: #f0f9ff;
}

.fees-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: white;
    border-radius: 8px;
    border: 2px solid #0ea5e9;
}

.fees-total-label {
    font-size: 14px;
    font-weight: 600;
    color: #0369a1;
}

.fees-total-value {
    font-size: 18px;
    font-weight: 700;
    color: #0c4a6e;
}

.fees-total-value.has-value {
    color: #059669;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-group label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.actual-input {
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    font-family: 'Courier New', monospace;
}

.actual-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.edit-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 2px solid #f0f0f0;
}

.cancel-edit-btn,
.save-edit-btn {
    padding: 12px 28px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cancel-edit-btn {
    background: #e0e0e0;
    color: #666;
}

.cancel-edit-btn:hover {
    background: #d0d0d0;
    transform: translateY(-2px);
}

.save-edit-btn {
    background: linear-gradient(135deg, #34C759 0%, #30D158 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(52, 199, 89, 0.3);
}

.save-edit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(52, 199, 89, 0.4);
}

.save-edit-btn:active,
.cancel-edit-btn:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .purchased-edit-form {
        padding: 20px;
        margin: 8px;
    }
    
    .est-values-grid,
    .actual-inputs-grid {
        grid-template-columns: 1fr;
    }
    
    .edit-form-actions {
        flex-direction: column;
    }
    
    .cancel-edit-btn,
    .save-edit-btn {
        width: 100%;
    }
}

.profit-positive {
    color: #34C759;
    font-weight: 700;
}

.profit-negative {
    color: #FF3B30;
    font-weight: 700;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.purchased {
    background: #FF9500;
    color: white;
}

.status-badge.sold {
    background: #34C759;
    color: white;
}

/* Edit Modal for Purchased Vehicle */
.purchased-edit-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

.purchased-edit-content {
    position: relative;
    background: white;
    border-radius: 24px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsive */
@media (max-width: 768px) {
    .purchased-summary {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .summary-card {
        padding: 16px;
    }
    
    .summary-icon {
        font-size: 32px;
    }
    
    .summary-value {
        font-size: 24px;
    }
    
    .purchased-table {
        font-size: 12px;
    }
    
    .purchased-table th,
    .purchased-table td {
        padding: 8px 6px;
    }
}

@media (max-width: 480px) {
    .purchased-summary {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   BULK ACTIONS STYLES
   ======================================== */

/* Bulk Actions Bar */
.bulk-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 16px 24px;
    background: linear-gradient(135deg, rgba(94, 92, 230, 0.12), rgba(94, 92, 230, 0.06));
    border-radius: 14px;
    border: 2px solid rgba(94, 92, 230, 0.2);
    box-shadow: 0 2px 12px rgba(94, 92, 230, 0.1);
    gap: 20px;
    flex-wrap: wrap;
}

.bulk-selection-controls {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 200px;
}

.bulk-action-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.bulk-btn {
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-width: 120px;
    text-align: center;
}

.bulk-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.bulk-btn.secondary-button {
    background: linear-gradient(135deg, #F5F5F7, #FFFFFF);
    color: #1C1C1E;
    border: 1.5px solid #D1D1D6;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.bulk-btn.secondary-button:hover:not(:disabled) {
    background: linear-gradient(135deg, #EBEBF0, #F5F5F7);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
    border-color: #B8B8BD;
}

.bulk-btn.primary-button {
    background: linear-gradient(135deg, #5E5CE6, #7C7AFF);
    color: white;
    font-weight: 700;
    box-shadow: 0 3px 12px rgba(94, 92, 230, 0.3);
    border: none;
    min-width: 160px;
}

.bulk-btn.primary-button:hover:not(:disabled) {
    background: linear-gradient(135deg, #7C7AFF, #9896FF);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(94, 92, 230, 0.45);
}

.bulk-btn.primary-button:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(94, 92, 230, 0.35);
}

.bulk-btn.danger-button {
    background: linear-gradient(135deg, #FF3B30, #FF6B60);
    color: white;
    font-weight: 700;
    box-shadow: 0 3px 12px rgba(255, 59, 48, 0.3);
    border: none;
    min-width: 160px;
}

.bulk-btn.danger-button:hover:not(:disabled) {
    background: linear-gradient(135deg, #FF6B60, #FF8580);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 59, 48, 0.45);
}

.bulk-btn.danger-button:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 59, 48, 0.35);
}

.selection-count {
    font-size: 14px;
    color: #5E5CE6;
    font-weight: 700;
    padding: 4px 12px;
    background: rgba(94, 92, 230, 0.12);
    border-radius: 8px;
    min-width: 100px;
    text-align: center;
}

/* Checkbox Column */
.col-checkbox {
    width: 40px;
    text-align: center;
}

.estimate-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #5E5CE6;
}

.select-all-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #5E5CE6;
}

/* Archived Card Header with Checkbox */
.estimate-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.archived-card .estimate-checkbox {
    flex-shrink: 0;
}

.archived-card .estimate-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.archived-card .estimate-header h3 {
    margin: 0;
}

/* Editing Mode Banner */
.editing-mode-banner {
    background: linear-gradient(135deg, #FFA500 0%, #FF8C00 100%);
    border-radius: 16px;
    padding: 24px 28px;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(255, 165, 0, 0.3);
    animation: slideDown 0.4s ease;
}

.banner-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.banner-info {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.banner-icon {
    font-size: 32px;
    line-height: 1;
    flex-shrink: 0;
}

.banner-text {
    color: white;
    font-size: 15px;
    line-height: 1.6;
}

.banner-text strong {
    font-weight: 700;
    font-size: 16px;
    display: inline;
}

.banner-close {
    align-self: center;
    padding: 12px 32px;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid white;
    border-radius: 10px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.banner-close:hover {
    background: white;
    color: #FF8C00;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

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

@media (max-width: 768px) {
    .banner-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .banner-close {
        width: 100%;
        padding: 12px;
    }
}

/* Archive Tabs */
.archive-tabs-container {
    margin-bottom: 24px;
}

.archive-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    background: #f8f9fa;
    padding: 8px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.archive-tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    background: transparent;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.archive-tab-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.archive-tab-btn.active {
    background: white;
    color: #1a1a1a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.archive-tab-btn[data-archive-tab="won"].active {
    background: linear-gradient(135deg, #34C759 0%, #30D158 100%);
    color: white;
}

.archive-tab-btn[data-archive-tab="lost"].active {
    background: linear-gradient(135deg, #FF3B30 0%, #FF453A 100%);
    color: white;
}

.tab-icon {
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.archive-tab-btn:not(.active) .tab-icon {
    background: rgba(0, 0, 0, 0.05);
}

.tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 10px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
}

.archive-tab-btn:not(.active) .tab-count {
    background: rgba(0, 0, 0, 0.08);
    color: #999;
}

.archive-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.archive-tab-content[style*="display: block"] {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

/* Archive card color coding based on parent tab */
.archive-tab-content[data-archive-content="won"] .archived-card {
    border-left-color: #34C759;
}

.archive-tab-content[data-archive-content="lost"] .archived-card {
    border-left-color: #FF3B30;
}

/* Responsive tabs */
@media (max-width: 768px) {
    .archive-tabs {
        flex-direction: column;
        gap: 8px;
        padding: 8px;
    }
    
    .archive-tab-btn {
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .tab-icon {
        width: 28px;
        height: 28px;
        font-size: 18px;
    }
}

/* Archived Card Expandable Details */
.archived-expanded-details {
    margin-top: 20px;
    padding-top: 20px;
}

.cost-breakdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.cost-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.cost-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.cost-value {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    font-family: 'Courier New', monospace;
}

.estimate-header {
    cursor: pointer;
    user-select: none;
}

.estimate-header:hover {
    background: rgba(0, 0, 0, 0.02);
}

.estimate-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.expand-btn {
    background: none;
    border: none;
    font-size: 14px;
    color: #667eea;
    cursor: pointer;
    padding: 4px 8px;
    transition: transform 0.3s ease;
}

.expand-btn.expanded {
    transform: rotate(180deg);
}

.expand-btn:hover {
    color: #5566d6;
}

.estimate-summary {
    margin-bottom: 16px;
}

/* Track in Purchased Vehicles button */
/* Archived Actions Container */
.archived-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    align-items: center;
}

.track-purchased-btn {
    flex: 1;
    height: 40px;
    padding: 0 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.track-purchased-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.3);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

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

/* Recover Estimate Button - For relisted cars */
.recover-estimate-btn {
    flex: 1;
    height: 40px;
    padding: 0 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.recover-estimate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

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

/* Archived Bidding Options Section */
.archived-bidding-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed #e0e0e0;
}

.archived-bidding-section .bidding-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.archived-bidding-section .bidding-columns.two-exits {
    grid-template-columns: 1fr 1fr;
}

.archived-bidding-section .bidding-column {
    background: #f8fafc;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.archived-bidding-section .bidding-column-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 14px;
    font-weight: 600;
    font-size: 13px;
    text-align: center;
}

.archived-bidding-section .bidding-column-body {
    padding: 12px;
}

.archived-bidding-section .bid-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    background: white;
    border-radius: 6px;
    margin-bottom: 6px;
    border: 1px solid #e2e8f0;
}

.archived-bidding-section .bid-row:last-child {
    margin-bottom: 0;
}

.archived-bidding-section .bid-roi {
    font-size: 12px;
    font-weight: 600;
    color: #667eea;
}

.archived-bidding-section .bid-amount {
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
}

.no-bidding-data {
    color: #9ca3af;
    font-style: italic;
    text-align: center;
    padding: 20px;
    background: #f9fafb;
    border-radius: 8px;
}

/* Delete Archived Button - Compact Icon Only */
.delete-archived-btn {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    padding: 0;
    background: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
    border: 1.5px solid rgba(255, 59, 48, 0.3);
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.delete-archived-btn:hover {
    background: #ff3b30;
    border-color: #ff3b30;
    transform: translateY(-1px) scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 59, 48, 0.3);
}

.delete-archived-btn:active {
    transform: translateY(0) scale(1);
    box-shadow: 0 2px 6px rgba(255, 59, 48, 0.2);
}

/* Responsive Bulk Actions */
@media (max-width: 768px) {
    .bulk-actions-bar {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .bulk-selection-controls,
    .bulk-action-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .bulk-btn {
        flex: 1;
    }
}
