/* Event Butler UI Design System - GRADIENT UPDATE v2.0 - CACHE BUST */
/* Force browser refresh with gradient text styles */
:root {
    --background: 222.2 84% 4.9%;
    --foreground: 210 40% 98%;
    --card: 222.2 84% 4.9%;
    --card-foreground: 210 40% 98%;
    --popover: 222.2 84% 4.9%;
    --popover-foreground: 210 40% 98%;
    --primary: 207 90% 54%;
    --primary-foreground: 222.2 47.4% 11.2%;
    --secondary: 217.2 32.6% 17.5%;
    --secondary-foreground: 210 40% 98%;
    --muted: 217.2 32.6% 17.5%;
    --muted-foreground: 215 20.2% 65.1%;
    --accent: 217.2 32.6% 17.5%;
    --accent-foreground: 210 40% 98%;
    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 210 40% 98%;
    --border: 217.2 32.6% 17.5%;
    --input: 217.2 32.6% 17.5%;
    --ring: 207 90% 54%;
    --radius: 1rem;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border-color: hsl(var(--border));
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    background: linear-gradient(135deg, hsl(222.2, 84%, 4.9%) 0%, hsl(217.2, 32.6%, 8%) 50%, hsl(215, 50%, 3%) 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Event Butler specific utilities */
.gradient-border {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(59, 130, 246, 0.3));
    border-radius: inherit;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    -webkit-mask-composite: xor;
}

/* Top Navigation */
.top-nav {
    margin-bottom: 1.5rem;
}

.back-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    text-decoration: none;
    color: hsl(var(--foreground));
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    backdrop-filter: blur(10px);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
    position: relative;
    overflow: hidden;
}

.back-home-btn:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
    color: hsl(var(--foreground));
    transform: translateY(-1px);
}

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

.back-home-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(59, 130, 246, 0.1));
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    border-radius: inherit;
}

.back-home-btn:hover::before {
    opacity: 1;
}

.back-home-btn svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

/* Header styles */
.header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding: 3rem 2rem;
    background: hsl(var(--card));
    border-radius: 1.5rem;
    border: 1px solid hsl(var(--border));
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    background: linear-gradient(135deg, hsl(var(--primary)), rgba(139, 92, 246, 0.4));
    border-radius: inherit;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    -webkit-mask-composite: xor;
}

.header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, hsl(var(--primary)), #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: hsl(var(--muted-foreground));
    font-weight: 500;
}

.value-prop {
    font-size: 1rem;
    color: hsl(var(--muted-foreground));
    opacity: 0.8;
}

/* Main content layout */
.calculator-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

/* Input section styles */
.input-section {
    background: hsl(var(--card));
    padding: 2rem;
    border-radius: 1.5rem;
    border: 1px solid hsl(var(--border));
    position: relative;
}

.input-section::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
    border-radius: inherit;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    -webkit-mask-composite: xor;
    pointer-events: none;
    z-index: -1;
}

.input-section h2,
.input-section h3 {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    color: transparent !important;
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 1.5rem;
    display: inline-block;
}

.input-section h3 {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid hsl(var(--border));
    font-size: 1.25rem;
}

/* Form styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: hsl(var(--foreground));
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
    background: hsl(var(--input));
    color: hsl(var(--foreground));
    font-size: 1rem;
    transition: all 0.2s ease-in-out;
    position: relative;
    z-index: 10;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: hsl(var(--ring));
    box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2);
}

.form-group input::placeholder {
    color: hsl(var(--muted-foreground));
}

/* Slider styles */
.slider-group {
    margin-bottom: 1.75rem;
}

.slider-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 500;
    color: hsl(var(--foreground));
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.slider-container input[type="range"] {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: hsl(var(--muted));
    outline: none;
    appearance: none;
    cursor: pointer;
    position: relative;
    z-index: 10;
}

.slider-container input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, hsl(var(--primary)), #8b5cf6);
    cursor: pointer;
    box-shadow: 0 2px 8px hsl(var(--primary) / 0.3);
    transition: all 0.2s ease-in-out;
}

.slider-container input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px hsl(var(--primary) / 0.5);
}

.slider-container input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, hsl(var(--primary)), #8b5cf6);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px hsl(var(--primary) / 0.3);
}

.slider-value {
    background: hsl(var(--accent));
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    color: hsl(var(--accent-foreground));
    min-width: 100px;
    text-align: center;
    border: 1px solid hsl(var(--border));
    font-size: 0.875rem;
}

/* SyncLab footer styling */
.synclab-link {
    text-decoration: none;
    display: inline-block;
}

.synclab-link:link,
.synclab-link:visited {
    color: transparent;
}

.synclab-link:hover .synclab-text {
    opacity: 0.8;
}

.synclab-text {
    background: linear-gradient(135deg, #00e5ff, #2196f3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.synclab-logo {
    width: 14px;
    height: 14px;
    vertical-align: middle;
    margin-left: 6px;
}

/* Currency input styling */
.currency-input {
    position: relative;
    display: flex;
    align-items: center;
}

.currency-symbol {
    position: absolute;
    left: 12px;
    color: #ffffff;
    font-weight: 600;
    pointer-events: none;
    z-index: 1000;
    top: 50%;
    transform: translateY(-50%);
}

.currency-input input {
    padding-left: 30px !important;
}

/* Results section styles */
.results-section {
    background: hsl(var(--card));
    padding: 2rem;
    border-radius: 1.5rem;
    border: 1px solid hsl(var(--border));
    position: relative;
    overflow: hidden;
}

.results-section::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
    border-radius: inherit;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    -webkit-mask-composite: xor;
}

.results-section h2 {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    color: transparent !important;
    margin-bottom: 2rem;
    font-weight: 600;
    text-align: center;
    font-size: 1.5rem;
    display: inline-block;
}

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

.metric-card {
    background: hsl(var(--accent));
    padding: 1.5rem;
    border-radius: 1rem;
    text-align: center;
    border: 1px solid hsl(var(--border));
    transition: all 0.2s ease-in-out;
    position: relative;
    overflow: hidden;
}

.metric-card::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: inherit;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    -webkit-mask-composite: xor;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px hsl(var(--primary) / 0.15);
}

.metric-card h3 {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.metric-value {
    font-size: 2rem;
    font-weight: 800;
    color: hsl(var(--foreground));
}

.roi-card {
    position: relative;
}

.roi-value {
    transition: all 0.3s ease;
}

.roi-value.negative {
    color: hsl(var(--destructive));
}

.roi-value.moderate {
    color: #f59e0b;
}

.roi-value.positive {
    color: #32ff32 !important;
    text-shadow: 0 0 10px rgba(50, 255, 50, 0.5);
}

/* Benchmark section */
.benchmark-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: hsl(var(--accent));
    border-radius: 1rem;
    border: 1px solid hsl(var(--border));
}

.benchmark-section h3 {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    color: transparent !important;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
    display: inline-block;
}

.benchmark-grid {
    display: grid;
    gap: 1rem;
}

.benchmark-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: hsl(var(--card));
    border-radius: 0.5rem;
    border-left: 4px solid transparent;
    transition: all 0.2s ease-in-out;
}

.benchmark-item.better {
    border-left-color: hsl(var(--primary));
    background: hsl(var(--primary) / 0.1);
}

.benchmark-item.worse {
    border-left-color: hsl(var(--destructive));
    background: hsl(var(--destructive) / 0.1);
}

.benchmark-item.equal {
    border-left-color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.benchmark-text {
    flex: 1;
    font-size: 0.875rem;
    color: hsl(var(--foreground));
}

.benchmark-icon {
    font-size: 1.25rem;
    margin-left: 1rem;
}

/* Recommendations section */
/* Enhanced Recommendations Section */
.recommendations-section {
    margin: 3rem 0;
    padding: 2rem;
    background: hsl(var(--card));
    border-radius: 1.5rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    z-index: 10;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease-out;
}

.recommendations-section.animate-in {
    animation: slideInUp 0.6s ease-out forwards;
}

.recommendations-section h3 {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    color: transparent !important;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 700;
    font-size: 1.5rem;
    display: block;
}

/* Recommendation Card Styles */
.recommendation-card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.recommendation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 1rem 1rem 0 0;
}

.recommendation-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
    border-color: hsl(var(--primary) / 0.3);
}

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

.recommendation-icon {
    font-size: 2rem;
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: hsl(var(--primary) / 0.1);
    border-radius: 0.75rem;
    border: 1px solid hsl(var(--primary) / 0.2);
}

.recommendation-meta {
    flex: 1;
    min-width: 0;
}

.recommendation-title {
    color: hsl(var(--foreground));
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.recommendation-impact {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.impact-high {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.impact-medium {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.impact-low {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
}

.recommendation-content {
    margin-bottom: 1.5rem;
}

.recommendation-tip {
    color: hsl(var(--foreground) / 0.9);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.recommendation-details {
    margin-top: 1rem;
    padding: 1rem;
    background: hsl(var(--accent) / 0.3);
    border-radius: 0.75rem;
    border: 1px solid hsl(var(--border));
    animation: slideDown 0.3s ease-out;
}

.recommendation-details p {
    color: hsl(var(--foreground) / 0.8);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 0.75rem 0;
}

.recommendation-details p:last-child {
    margin-bottom: 0;
}

.recommendation-details strong {
    color: hsl(var(--foreground));
    font-weight: 600;
}

.recommendation-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-learn-more {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: none;
    letter-spacing: 0;
}

.btn-learn-more {
    background: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
    border: 1px solid hsl(var(--primary) / 0.3);
}

.btn-learn-more:hover {
    background: hsl(var(--primary) / 0.2);
    transform: translateY(-1px);
}


/* Legacy recommendation item for backwards compatibility */
.recommendation-item {
    padding: 1rem;
    margin-bottom: 1rem;
    background: hsl(var(--primary) / 0.1);
    border-radius: 0.5rem;
    border-left: 4px solid hsl(var(--primary));
    color: hsl(var(--foreground));
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .recommendations-section {
        margin: 2rem 0;
        padding: 1.5rem;
    }
    
    .recommendation-card {
        padding: 1.25rem;
        margin-bottom: 1.25rem;
    }
    
    .recommendation-header {
        flex-direction: row;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .recommendation-icon {
        font-size: 1.5rem;
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .recommendation-title {
        font-size: 1rem;
    }
    
    .recommendation-tip {
        font-size: 0.9rem;
    }
    
    .recommendation-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn-learn-more {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .recommendation-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }
    
    .recommendation-meta {
        text-align: center;
    }
}

/* CTA section */
.cta-section {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid hsl(var(--border));
}

.cta-button {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    margin: 0 0.5rem 1rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cta-button.primary {
    background: linear-gradient(135deg, hsl(var(--primary)), #8b5cf6);
    color: white !important;
    box-shadow: 0 2px 4px hsl(var(--primary) / 0.2);
    position: relative;
    z-index: 10;
}

.cta-button.primary:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4), 0 0 20px rgba(139, 92, 246, 0.3);
    background: linear-gradient(135deg, hsl(var(--primary) / 0.9), rgba(139, 92, 246, 0.9));
    color: white !important;
}

.cta-button.secondary {
    background: transparent;
    color: hsl(var(--primary));
    border: 1px solid hsl(var(--primary));
}

.cta-button.secondary:hover {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    transform: translateY(-1px);
}

/* Email capture */
.email-capture {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.email-capture input {
    padding: 0.75rem 1rem;
    border: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
    background: hsl(var(--input));
    color: hsl(var(--foreground));
    min-width: 250px;
    font-size: 0.875rem;
}

.email-capture button {
    padding: 0.75rem 1.25rem;
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease-in-out;
}

.email-capture button:hover {
    background: hsl(var(--primary) / 0.9);
    transform: translateY(-1px);
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    color: hsl(var(--muted-foreground));
    border-top: 1px solid hsl(var(--border));
    margin-top: 3rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #ffffff;
    text-decoration: none;
}

.footer-text {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-text p {
    margin: 0;
    font-size: 0.875rem;
}


.footer-text .copyright {
    color: hsl(var(--muted-foreground) / 0.7);
}

@media (max-width: 768px) {
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Info icon styles */
.info-icon {
    display: inline-block;
    color: #3b82f6;
    font-size: 14px;
    font-weight: bold;
    margin-left: 6px;
    cursor: help;
    position: relative;
    vertical-align: middle;
    user-select: none;
    transition: all 0.2s ease;
}

.info-icon:hover {
    color: #8b5cf6;
    transform: scale(1.1);
}

/* Tooltip Portal Styles */
#tooltip-root {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 2147483647;
}

.tooltip {
    position: absolute;
    background: hsl(var(--popover));
    color: hsl(var(--popover-foreground));
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: normal;
    line-height: 1.5;
    max-width: min(320px, 90vw);
    text-align: left;
    text-transform: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    border: 1px solid hsl(var(--border));
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: auto;
}

.tooltip.show {
    opacity: 1;
    visibility: visible;
}

.tooltip::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: hsl(var(--popover));
}

.tooltip.below::before {
    top: -6px;
    border-top-color: transparent;
    border-bottom-color: hsl(var(--popover));
}

.tooltip.above::before {
    top: auto;
    bottom: -6px;
    border-bottom-color: transparent;
    border-top-color: hsl(var(--popover));
}

/* Responsive tooltip positioning */
@media (max-width: 768px) {
    .tooltip {
        max-width: min(280px, 90vw);
        font-size: 12px;
        padding: 10px 14px;
    }
}

/* HubSpot Email Capture Modal Styles */
.email-capture-modal {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 1rem;
    padding: 2rem;
    margin-top: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.email-capture-content h3 {
    color: hsl(var(--primary));
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    text-align: center;
}

.email-form {
    max-width: 500px;
    margin: 0 auto;
}

.email-form .form-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.email-form input[type="email"] {
    flex: 1;
    min-width: 250px;
    padding: 0.875rem 1rem;
    border: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.email-form input[type="email"]:focus {
    outline: none;
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 2px hsl(var(--primary) / 0.1);
}

.email-form input[type="email"]::placeholder {
    color: hsl(var(--muted-foreground));
}

.email-form .cta-button {
    white-space: nowrap;
    min-width: 140px;
    margin: 0;
}

.form-actions {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.privacy-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: hsl(var(--muted-foreground));
    font-size: 0.75rem;
    cursor: pointer;
    user-select: none;
    flex: 1;
}

.privacy-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    margin: 0;
    position: relative;
    appearance: none;
    -webkit-appearance: none;
}

.privacy-checkbox-label input[type="checkbox"]:checked {
    background: linear-gradient(135deg, hsl(var(--primary)), rgba(59, 130, 246, 0.8));
    border-color: hsl(var(--primary));
}

.privacy-checkbox-label input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 10px;
    font-weight: bold;
}

.privacy-checkbox-label input[type="checkbox"]:focus {
    outline: 2px solid hsl(var(--primary));
    outline-offset: 2px;
}

.privacy-link {
    color: hsl(var(--primary));
    text-decoration: underline;
    transition: color 0.2s ease-in-out;
}

.privacy-link:hover {
    color: rgba(59, 130, 246, 0.8);
}

.checkbox-text {
    line-height: 1.4;
}

.cta-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

@media (max-width: 576px) {
    .form-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .privacy-checkbox-label {
        justify-content: center;
    }
}

.email-form.submitting .cta-button {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.email-form.submitting .cta-button::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s ease infinite;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

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

.success-message {
    background: hsl(var(--success) / 0.1);
    border: 1px solid hsl(var(--success) / 0.3);
    color: hsl(var(--success));
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    font-weight: 500;
    margin-top: 1rem;
}

.error-message {
    background: hsl(var(--destructive) / 0.1);
    border: 1px solid hsl(var(--destructive) / 0.3);
    color: hsl(var(--destructive));
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    font-weight: 500;
    margin-top: 1rem;
}

/* Responsive styles for email capture */
@media (max-width: 768px) {
    .email-capture-modal {
        padding: 1.5rem;
        margin-top: 1.5rem;
    }
    
    .email-capture-content h3 {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }
    
    .email-form .form-group {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .email-form input[type="email"] {
        min-width: auto;
        width: 100%;
    }
    
    .email-form .cta-button {
        width: 100%;
        min-width: auto;
    }
}

/* Modal styles */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: hsl(var(--background) / 0.8);
    backdrop-filter: blur(4px);
}

.modal-content {
    background: hsl(var(--card));
    margin: 5% auto;
    padding: 2rem;
    border-radius: 1rem;
    width: 90%;
    max-width: 600px;
    position: relative;
    border: 1px solid hsl(var(--border));
    box-shadow: 0 20px 25px hsl(var(--background) / 0.3);
}

.close {
    color: hsl(var(--muted-foreground));
    float: right;
    font-size: 1.75rem;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    transition: color 0.2s ease-in-out;
}

.close:hover {
    color: hsl(var(--primary));
}

.modal h2 {
    color: hsl(var(--primary));
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
}

.modal-body ul {
    list-style: none;
    margin-bottom: 2rem;
}

.modal-body li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: hsl(var(--foreground));
    border-bottom: 1px solid hsl(var(--border));
}

.modal-body li:last-child {
    border-bottom: none;
}

.modal-body li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: hsl(var(--primary));
    font-weight: bold;
    font-size: 1.125rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .calculator-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .header h1 {
        font-size: 2.25rem;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .metric-value {
        font-size: 1.5rem;
    }
    
    .container {
        padding: 1rem;
    }
    
    .input-section,
    .results-section {
        padding: 1.5rem;
    }
    
    .slider-container {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .slider-value {
        text-align: center;
        min-width: auto;
    }
    
    .email-capture {
        flex-direction: column;
        align-items: center;
    }
    
    .email-capture input {
        min-width: auto;
        width: 100%;
        margin-bottom: 0.75rem;
    }
    
    .cta-button {
        display: block;
        width: 100%;
        margin: 0.75rem 0;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.875rem;
    }
    
    .header {
        padding: 1.5rem 1rem;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
}

/* Loading and animation styles */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

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

.animate-in {
    animation: slideIn 0.3s ease-out;
}

/* Print styles */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .cta-section,
    .modal {
        display: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .form-group input,
    .form-group select {
        border-width: 2px;
    }
    
    .metric-card {
        border-width: 2px;
    }
}