/* Header */
.header {
    position: relative;
    z-index: 50;
    width: 100%;
    border-bottom: 1px solid rgba(226, 232, 240, 0.2);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.logo {
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.logo-icon {
    width: 1.25rem;
    height: 1.25rem;
    background: white;
    border-radius: 0.25rem;
    transform: rotate(12deg);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
}

/* Navigation */
.nav-desktop {
    display: flex; /* Show desktop nav by default */
    gap: 2rem;
}

.nav-btn {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 500;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1rem;
}

.nav-btn.active {
    background: #1e293b;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nav-btn:not(.active) {
    color: #64748b;
}

.nav-btn:not(.active):hover {
    color: #1e293b;
    background: #f1f5f9;
}

.sign-in-btn {
    background: #1e293b;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.sign-in-btn:hover {
    background: #334155;
    transform: scale(1.05);
}

.dashboard-btn {
    background: #10b981;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dashboard-btn:hover {
    background: #059669;
    transform: scale(1.05);
}

/* Onboarding Popup Styles */
.onboarding-popup-content {
    max-width: 1100px !important;
    min-width: 320px !important;
    width: calc(100vw - 2rem) !important;
    height: calc(100dvh - 2rem) !important;
    max-height: calc(100dvh - 2rem) !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    padding: 1.25rem !important;
}

/* Tighten header spacing inside onboarding only */
.onboarding-popup-content .popup-header {
    margin-bottom: 0.75rem;
}
.onboarding-popup-content .popup-title {
    font-size: 1.25rem;
}
.onboarding-popup-content .popup-close {
    font-size: 1.25rem;
}

.onboarding-progress {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.onboarding-progress-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: #e2e8f0;
    transition: all 0.3s ease;
}

.onboarding-progress-dot.active {
    background: #1e293b;
    transform: scale(1.2);
}

.onboarding-content {
    text-align: center;
    margin-bottom: 0.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-height: 100%;
    overflow: hidden;
    padding: 0.25rem 0;
}

.onboarding-page {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.onboarding-icon {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.onboarding-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
    flex-shrink: 0;
}

.onboarding-description {
    color: #64748b;
    line-height: 1.35;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    flex-shrink: 0;
    overflow-wrap: anywhere;
}

.onboarding-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
    flex: 0 1 auto;
    min-height: 0;
}

.onboarding-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.feature-icon {
    font-size: 1.25rem;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border-radius: 0.5rem;
    border: none;
    flex-shrink: 0;
}

.onboarding-steps {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.75rem;
    flex: 0 1 auto;
    min-height: 0;
}

.onboarding-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
}

.step-number {
    width: 2rem;
    height: 2rem;
    background: #1e293b;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.step-content h5 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
    text-align: left;
}

.step-content p {
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

.onboarding-benefits {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.onboarding-benefit {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
}

.benefit-icon {
    font-size: 1.25rem;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.onboarding-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    flex-shrink: 0;
    padding-top: 0.75rem;
    border-top: 1px solid #e2e8f0;
}

.onboarding-navigation .btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    min-width: 100px;
}

/* Place confirm button aligned with navigation row on page 3 */
#onboardingPage3 #onboardingSubscriptionConfirmBtn {
    margin-left: auto;
}

/* Subscription summary card styling */
.onboarding-summary-card {
    margin: 1rem auto 0;
    max-width: 720px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 2rem 2.5rem;
    text-align: left;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.onboarding-summary-card div {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.onboarding-summary-card div:last-child {
    margin-bottom: 0;
    color: #64748b;
    font-size: 0.9rem;
}

/* Subscription page: allow minimal vertical scroll to preserve card layout */
#onboardingPage3 .onboarding-content {
    max-height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* Compact layout for annual view to avoid vertical scrolling */
#onboardingPage3.annual-compact .onboarding-title {
    margin-bottom: 0.25rem;
}
#onboardingPage3.annual-compact #onboarding-subscription-grid .pricing-grid {
    gap: 0.75rem;
}
#onboardingPage3.annual-compact #onboarding-subscription-grid .pricing-card {
    padding: 0.9rem;
    min-height: 320px;
}
#onboardingPage3.annual-compact #onboarding-subscription-grid .pricing-features {
    font-size: 0.85rem;
}

#onboardingPage3 #onboarding-subscription-grid {
    max-height: 100%;
    overflow: visible;
}

.desktop-sign-in {
    display: block; /* Show desktop sign in by default */
}

/* Mobile Menu */
.mobile-container {
    display: none; /* Hide mobile container by default */
    align-items: center;
    gap: 1rem;
}

.mobile-menu-btn {
    padding: 0.5rem;
    border-radius: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.mobile-menu-btn:hover {
    background: #f1f5f9;
}

.hamburger {
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
}

.hamburger-line {
    width: 100%;
    height: 0.125rem;
    background: #64748b;
    transition: all 0.3s ease;
}

.hamburger.open .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(0.375rem, 0.375rem);
}

.hamburger.open .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.open .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(0.375rem, -0.375rem);
}

.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.2);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: none;
}

.mobile-menu.open {
    display: block;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
}

.mobile-nav-btn {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 500;
    border: none;
    background: none;
    cursor: pointer;
    text-align: left;
    font-size: 1rem;
}

.mobile-nav-btn.active {
    background: #1e293b;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mobile-nav-btn:not(.active) {
    color: #64748b;
}

.mobile-nav-btn:not(.active):hover {
    color: #1e293b;
    background: #f1f5f9;
}

/* Popup */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(4px);
}

.popup-content {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    position: relative;
}

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

.popup-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
}

.popup-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #64748b;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

.popup-close:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.popup-subtitle {
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* Buttons */
.btn {
    padding: 1.5rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

/* Ensure all buttons have pointer cursor */
button, .btn, .hero-action-btn, .hero-action-btn-primary, .hero-action-btn-secondary, .hero-action-btn-white, 
.btn-white, .btn-primary, .btn-secondary, .pricing-cta, .early-access-btn, .demo-btn {
    cursor: pointer !important;
}

/* Additional specific rules for home page buttons */
.hero-action-buttons .hero-action-btn,
.hero-action-buttons .hero-action-btn-primary,
.hero-action-buttons .hero-action-btn-secondary,
.cta-section .btn,
.cta-section .btn-white {
    cursor: pointer !important;
}

.btn-primary {
    background: #1e293b;
    color: white;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background: #334155;
    transform: scale(1.05);
}

.btn-secondary {
    background: transparent;
    color: #475569;
    border: 2px solid #cbd5e1;
}

.btn-secondary:hover {
    background: #f8fafc;
    transform: scale(1.05);
}

.btn-outline-secondary {
    background-color: transparent;
    color: #64748b;
    border: 1px solid #cbd5e1;
    transition: all 0.2s ease;
}

.btn-outline-secondary:hover {
    background-color: #f1f5f9;
    border-color: #94a3b8;
    color: #475569;
}

.btn-white {
    background: white;
    color: #1e293b;
}

.btn-white:hover {
    background: #f1f5f9;
    transform: scale(1.05);
}

.btn-success {
    background: #10b981;
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px 0 rgba(16,185,129,0.08);
}
.btn-success:hover, .btn-success:focus {
    background: #059669;
    color: #fff;
    box-shadow: 0 4px 16px 0 rgba(16,185,129,0.12);
}

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

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

.form-label {
    display: block;
    color: #475569;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: #1e293b;
    font-size: 1rem;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: #1e293b;
    background-color: white;
}

.form-input::placeholder {
    color: #64748b;
}



.form-textarea {
    height: 6rem;
    resize: vertical;
    font-family: inherit;
}

.form-success {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.form-error {
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5rem 1.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    backdrop-filter: blur(4px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 2rem;
    background: linear-gradient(to right, #1e293b, #475569);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #1e293b; /* Fallback for browsers that don't support background-clip */
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #64748b;
    max-width: 48rem;
    margin: 0 auto 3rem auto;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    flex-direction: column; /* Stack on mobile by default */
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
    margin: 0 auto 5rem auto;
    width: 100%;
    max-width: fit-content;
}

.hero-action-buttons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin: 0 auto 5rem auto;
    width: 100%;
    max-width: 600px;
}

.hero-action-btn {
    flex: 1 1 0;
    max-width: 260px;
    min-width: 180px;
    height: 64px;
    padding: 0 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 15px rgba(0,0,0,0.06);
}

.hero-action-btn-primary {
    background: #1e293b;
    color: #fff;
}
.hero-action-btn-primary:hover {
    background: #334155;
}

.hero-action-btn-secondary {
    background: #fff;
    color: #1e293b;
    border: 2px solid #cbd5e1;
}
.hero-action-btn-secondary:hover {
    background: #f8fafc;
}

.hero-action-btn-white {
    background: white;
    color: #1e293b;
    border: 2px solid #cbd5e1;
}

.hero-action-btn-white:hover {
    background: #f8fafc;
}

/* Ensure hero action buttons always have pointer cursor */
.hero-action-btn, .hero-action-btn-primary, .hero-action-btn-secondary, .hero-action-btn-white {
    cursor: pointer !important;
}

@media (max-width: 600px) {
  .hero-action-buttons {
    flex-direction: column;
    gap: 1rem;
    max-width: 100%;
  }
  .hero-action-btn {
    width: 100%;
    max-width: 100%;
    height: auto;
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }
}

@media (max-width: 767px) {
    .hero-buttons {
        flex-direction: column !important;
        gap: 1rem;
    }
    .btn {
        padding: 1rem 2rem;
        font-size: 1rem;
        width: 100%;
        max-width: 280px;
    }
}

@media (min-width: 768px) {
    .hero-buttons {
        flex-direction: row !important;
        gap: 2rem;
        justify-content: center;
        align-items: center;
    }
    .btn {
        padding: 1.5rem 2.5rem;
        font-size: 1.125rem;
        width: auto;
    }
}

/* Dashboard Preview */
.dashboard-preview {
    position: relative;
    max-width: 80rem;
    margin: 0 auto;
}

.dashboard-container {
    position: relative;
    /* Removed hover scaling effect to prevent whole page zoom */
}

.dashboard-glow {
    position: absolute;
    inset: -1rem;
    background: linear-gradient(to right, rgba(226, 232, 240, 0.5), rgba(203, 213, 225, 0.5));
    border-radius: 1rem;
    filter: blur(1rem);
    opacity: 0.5;
    transition: opacity 0.5s ease;
}

.dashboard {
    position: relative;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4px);
}

.dashboard-header {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.progress-bar {
    height: 0.75rem;
    border-radius: 9999px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-bar-1 {
    background: linear-gradient(to right, #475569, #1e293b);
}

.progress-bar-2 {
    background: linear-gradient(to right, #64748b, #475569);
}

.progress-bar-3 {
    background: linear-gradient(to right, #cbd5e1, #94a3b8);
}

.dashboard-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.dashboard-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #f8fafc;
    border-radius: 0.75rem;
    padding: 1rem;
    border: 1px solid #f1f5f9;
}

.status-circle {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.status-complete {
    background: #10b981;
}

.status-progress {
    background: #f59e0b;
    animation: pulse 2s infinite;
}

.status-scheduled {
    background: #94a3b8;
}

.item-progress {
    flex: 1;
    height: 1rem;
    border-radius: 9999px;
    background: rgba(226, 232, 240, 0.3);
    position: relative;
    overflow: hidden;
}

.item-progress::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: 9999px;
    transition: width 0.3s ease-in-out;
    width: var(--progress-width, 0%);
}

.progress-complete::before {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    --progress-width: 100%;
}

.progress-active::before {
    background: linear-gradient(90deg, #f59e0b 0%, #f97316 100%);
    --progress-width: 60%;
    animation: progressPulse 3s infinite ease-in-out;
}

.progress-pending::before {
    background: linear-gradient(90deg, #6b7280 0%, #4b5563 100%);
    --progress-width: 10%;
    animation: progressGlow 2s infinite ease-in-out;
}

.item-label {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

/* Features Section */
.features-section {
    position: relative;
    z-index: 10;
    padding: 6rem 1.5rem;
    width: 100%;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.features-header {
    text-align: center;
    margin-bottom: 5rem;
}

.features-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1e293b;
}

.features-subtitle {
    color: #64748b;
    font-size: 1.25rem;
    max-width: 48rem;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    gap: 2rem;
    max-width: 88rem;
    margin: 0 auto;
}

.feature-card {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
}

.feature-card:hover {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

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

.feature-title {
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1e293b;
}

.feature-description {
    color: #64748b;
    line-height: 1.6;
    font-size: 1.125rem;
}

/* About Page Styles */
.about-hero {
    text-align: center;
    margin-bottom: 5rem;
}

.about-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 2rem;
    background: linear-gradient(to right, #1e293b, #475569);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #1e293b; /* Fallback for browsers that don't support background-clip */
}

.about-content {
    display: grid;
    gap: 3rem;
    align-items: center;
    margin-bottom: 5rem;
}

.content-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.content-card {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.content-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1e293b;
}

.team-section {
    position: relative;
}

.team-glow {
    position: absolute;
    inset: -1rem;
    background: linear-gradient(to right, rgba(226, 232, 240, 0.5), rgba(203, 213, 225, 0.5));
    border-radius: 1rem;
    filter: blur(1rem);
    opacity: 0.5;
}

.team-card {
    position: relative;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.team-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #1e293b;
}

.team-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.team-member {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.member-avatar {
    width: 4rem;
    height: 4rem;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 1px solid #e2e8f0;
}

.member-info h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
}

.member-info p {
    color: #64748b;
}

.cta-section {
    background: #1e293b;
    color: white;
    border-radius: 1rem;
    padding-top: 3rem;
    padding-bottom: 5rem;
    padding-left: 3rem;
    padding-right: 3rem;
    text-align: center;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.cta-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.cta-subtitle {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

/* Contact Page Styles */
.contact-grid {
    display: grid;
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-card {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-icon {
    width: 3rem;
    height: 3rem;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
}

.contact-details h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
}

.contact-details p {
    color: #64748b;
}

.message-section {
    position: relative;
}

.message-glow {
    position: absolute;
    inset: -1rem;
    background: linear-gradient(to right, rgba(226, 232, 240, 0.5), rgba(203, 213, 225, 0.5));
    border-radius: 1rem;
    filter: blur(1rem);
    opacity: 0.5;
}

.message-card {
    position: relative;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Product Page Styles */
.process-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.process-step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.process-number {
    width: 3rem;
    height: 3rem;
    background: #1e293b;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.process-content h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.process-content p {
    color: #64748b;
    line-height: 1.6;
}

/* Pricing Styles */
.pricing-grid {
    display: grid;
    gap: 2rem;
    max-width: 80rem;
    margin: 3rem auto 0;
}

/* Compact pricing grid for onboarding popup */
#onboarding-subscription-grid .pricing-grid {
    gap: 1.25rem;
    margin: 1rem auto 0;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    max-width: 100%;
    overflow: visible;
}

#onboarding-subscription-grid .pricing-card {
    padding: 1.25rem;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    font-size: 0.95rem;
}

#onboarding-subscription-grid .pricing-header {
    margin-bottom: 1rem;
}

#onboarding-subscription-grid .pricing-features {
    font-size: 0.9rem;
    flex: 1;
}

#onboarding-subscription-grid .pricing-feature {
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

#onboarding-subscription-grid .pricing-cta {
    margin-top: auto;
}

/* Responsive onboarding modal */
@media (max-width: 768px) {
    .onboarding-popup-content {
        max-width: calc(100vw - 2rem) !important;
        min-width: 300px !important;
        width: calc(100vw - 2rem) !important;
        height: calc(100svh - 2rem) !important;
        padding: 1rem !important;
    }
    
    #onboarding-subscription-grid .pricing-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    #onboarding-subscription-grid .pricing-card {
        min-height: auto;
        padding: 1rem;
        font-size: 0.85rem;
    }
    
    #onboarding-subscription-grid .pricing-features {
        font-size: 0.8rem;
    }
    
    #onboardingSubscriptionConfirmBtn {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0.75rem 0 !important;
        font-size: 0.9rem !important;
    }
}

@media (max-width: 480px) {
    .onboarding-popup-content {
        padding: 0.75rem !important;
    }
    
    .onboarding-progress {
        margin-bottom: 1rem;
    }
    
    .onboarding-content {
        padding: 0.25rem 0;
    }
    
    #onboarding-subscription-grid .pricing-grid {
        gap: 0.75rem;
    }
    
    #onboarding-subscription-grid .pricing-card {
        padding: 0.75rem;
        font-size: 0.8rem;
    }
    
    #onboarding-subscription-grid .pricing-features {
        font-size: 0.85rem;
    }
    
    .onboarding-summary-card {
        padding: 1.5rem;
        margin: 1.5rem auto;
    }
}

.pricing-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 1rem;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
    text-align: center;
}

.pricing-card:hover {
    border-color: #1e293b;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* Featured cards only have black border when selected */
.pricing-featured:not(.pricing-selected) {
    border-color: #e2e8f0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.pricing-featured:not(.pricing-selected):hover {
    border-color: #1e293b;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* Selected featured cards keep the black border */
.pricing-featured.pricing-selected {
    border-color: #1e293b;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* Selected pricing card state */
.pricing-card.pricing-selected {
    border-color: #1e293b;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    transform: scale(1.02);
}

.pricing-card.pricing-selected:hover {
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
    transform: scale(1.02);
}

/* Selection indicator */
.pricing-card.pricing-selected::before {
    content: '✓';
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2rem;
    height: 2rem;
    background: #1e293b;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.875rem;
    z-index: 10;
}

/* Make pricing cards clickable */
.pricing-card {
    cursor: pointer;
    user-select: none;
}

.pricing-badge {
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
}

.pricing-header {
    margin-bottom: 2rem;
}

.pricing-plan {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 1rem;
}

.pricing-currency {
    font-size: 1.5rem;
    font-weight: 500;
    color: #64748b;
}

.pricing-amount {
    font-size: 3rem;
    font-weight: 700;
    color: #1e293b;
}

.pricing-period {
    font-size: 1rem;
    color: #64748b;
    margin-left: 0.25rem;
}

.pricing-description {
    color: #64748b;
    line-height: 1.5;
}

.pricing-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
    text-align: left;
}

.pricing-feature {
    color: #475569;
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pricing-cta {
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    margin-top: auto;
    min-height: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    font-weight: 600;
}

/* ROI Section */
.roi-section {
    position: relative;
}

.roi-glow {
    position: absolute;
    inset: -1rem;
    background: linear-gradient(to right, rgba(30, 41, 59, 0.1), rgba(71, 85, 105, 0.1));
    border-radius: 1rem;
    filter: blur(1rem);
    opacity: 0.5;
}

.roi-card {
    position: relative;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 3rem 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.roi-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #1e293b;
}

.roi-stats {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.roi-stat {
    text-align: center;
}

.roi-number {
    font-size: 3rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.roi-label {
    color: #64748b;
    font-weight: 500;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Integration Section */
.integration-logos {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.integration-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f8fafc;
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.integration-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s ease;
    pointer-events: none;
}

.integration-item:hover {
    border-color: rgba(102, 126, 234, 0.4);
    background: white;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.15);
    transform: translateY(-8px) scale(1.02);
}

.integration-item:hover::before {
    left: 100%;
}

.integration-logo {
    font-size: 2rem;
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

.integration-item:hover .integration-logo {
    transform: scale(1.1) rotate(5deg);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.integration-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.875rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

.integration-item:hover .integration-name {
    color: #667eea;
    transform: translateY(-2px);
    font-weight: 700;
}

/* Add stagger animation for integration items */
.integration-item:nth-child(1) { animation-delay: 0s; }
.integration-item:nth-child(2) { animation-delay: 0.1s; }
.integration-item:nth-child(3) { animation-delay: 0.2s; }
.integration-item:nth-child(4) { animation-delay: 0.3s; }
.integration-item:nth-child(5) { animation-delay: 0.4s; }
.integration-item:nth-child(6) { animation-delay: 0.5s; }

/* Add pulse animation for integration logos on hover */
@keyframes integrationPulse {
    0%, 100% { transform: scale(1.1) rotate(5deg); }
    50% { transform: scale(1.15) rotate(5deg); }
}

.integration-item:hover .integration-logo {
    animation: integrationPulse 2s ease-in-out infinite;
}

/* Counter Animation Styles */
.roi-number, .stat-number, [data-count] {
    transition: all 0.3s ease;
}

.roi-number.counting, .stat-number.counting, [data-count].counting {
    color: #667eea;
    transform: scale(1.05);
}

.roi-number.counted, .stat-number.counted, [data-count].counted {
    animation: countComplete 0.5s ease-out;
}

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

/* Subscription Access Control Styles */
.feature-restricted {
    position: relative;
    opacity: 0.5 !important;
    pointer-events: none !important;
    filter: grayscale(50%);
}

.upgrade-prompt {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    background: rgba(102, 126, 234, 0.95) !important;
    color: white !important;
    padding: 0.5rem 1rem !important;
    border-radius: 0.5rem !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    z-index: 10 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.btn-disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    background: #94a3b8 !important;
}

.project-counter.approaching-limit {
    color: #f59e0b;
    font-weight: 600;
}

/* Trial Status Styles */
.trial-status {
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

.trial-active {
    background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
    border: 1px solid #f59e0b;
    color: #92400e;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.trial-expired {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 1px solid #ef4444;
    color: #dc2626;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.trial-status.expiring-soon {
    animation: trialWarning 2s ease-in-out infinite;
}

@keyframes trialWarning {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.trial-text {
    font-weight: 600;
    font-size: 0.875rem;
}

/* Upgrade Modal Styles */
.upgrade-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.upgrade-modal {
    background: white;
    border-radius: 1rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.upgrade-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.upgrade-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
}

.upgrade-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #64748b;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upgrade-modal-body {
    padding: 1.5rem;
}

.upgrade-benefits {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 0.5rem;
}

.upgrade-benefits h4 {
    margin: 0 0 0.75rem 0;
    color: #1e293b;
    font-size: 1rem;
}

.upgrade-benefits ul {
    margin: 0;
    padding-left: 1.25rem;
    color: #475569;
}

.upgrade-benefits li {
    margin-bottom: 0.5rem;
}

.upgrade-modal-footer {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid #e2e8f0;
    justify-content: flex-end;
}

/* Subscription Management Modal Styles */
.subscription-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.subscription-modal {
    background: white;
    border-radius: 1rem;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.subscription-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.subscription-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
}

.subscription-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #64748b;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.subscription-modal-body {
    padding: 1.5rem;
}

.subscription-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.subscription-options-vertical {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.subscription-option {
    border: 2px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.subscription-option-row {
    border: 2px solid #e2e8f0;
    border-radius: 1rem;
    padding: 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.subscription-option-row:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.subscription-option-row.featured {
    border-color: #667eea;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.subscription-option-content {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    gap: 2rem;
}

.subscription-option-header {
    flex: 0 0 200px;
    text-align: center;
}

.subscription-option-details {
    flex: 1;
}

.subscription-option-action {
    flex: 0 0 150px;
    text-align: center;
}

.plan-description {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0 0 1rem 0;
    line-height: 1.4;
}

.subscription-option:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.subscription-option.featured {
    border-color: #667eea;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.featured-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #667eea;
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.subscription-option h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
}

.plan-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
    margin: 0 0 1rem 0;
}

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

.plan-features li {
    padding: 0.25rem 0;
    color: #475569;
    font-size: 0.875rem;
}

.plan-features li:before {
    content: '✓';
    color: #10b981;
    font-weight: bold;
    margin-right: 0.5rem;
}

.subscription-modal-footer {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid #e2e8f0;
    justify-content: flex-end;
}

/* Responsive adjustments for vertical subscription layout */
@media (max-width: 768px) {
    .subscription-option-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .subscription-option-header,
    .subscription-option-action {
        flex: none;
    }
    
    .plan-features {
        grid-template-columns: 1fr;
    }
}

/* Payment Method Modal Styles */
.payment-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.payment-modal {
    background: white;
    border-radius: 1rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.payment-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.payment-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
}

.payment-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #64748b;
}

.payment-modal-body {
    padding: 1.5rem;
}

.payment-modal-footer {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid #e2e8f0;
    justify-content: flex-end;
}

/* Billing History Modal Styles */
.billing-history-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.billing-history-modal {
    background: white;
    border-radius: 1rem;
    max-width: 700px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.billing-history-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.billing-history-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
}

.billing-history-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #64748b;
}

.billing-history-modal-body {
    padding: 1.5rem;
}

.billing-history-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.billing-history-item {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr 1fr;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    align-items: center;
}

.billing-date {
    font-weight: 600;
    color: #1e293b;
}

.billing-description {
    color: #475569;
}

.billing-amount {
    font-weight: 600;
    color: #1e293b;
    text-align: right;
}

.billing-status {
    text-align: center;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.billing-status.success {
    background: #dcfce7;
    color: #166534;
}

.billing-note {
    color: #64748b;
    font-size: 0.875rem;
    text-align: center;
    font-style: italic;
}

.billing-history-modal-footer {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid #e2e8f0;
    justify-content: flex-end;
}

/* Loading Modal Styles */
.loading-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.loading-modal {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.loading-spinner {
    width: 2rem;
    height: 2rem;
    border: 3px solid #e2e8f0;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

/* LLM Test Interface Styles */
.llm-test-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    background: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.llm-test-panel {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.llm-test-panel h3 {
    margin: 0 0 1.5rem 0;
    color: #1e293b;
    font-size: 1.5rem;
    font-weight: 700;
}

.test-section {
    margin-bottom: 2rem;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
}

.test-section h4 {
    margin: 0 0 1rem 0;
    color: #475569;
    font-size: 1rem;
    font-weight: 600;
}

.model-selector {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.model-selector label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.test-results {
    margin-top: 2rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 0.5rem;
}

.test-results h4 {
    margin: 0 0 1rem 0;
    color: #1e293b;
}

#test-results-content {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1rem;
    max-height: 300px;
    overflow-y: auto;
    font-family: monospace;
    font-size: 0.875rem;
}

#test-results-content pre {
    margin: 0;
    white-space: pre-wrap;
}

#test-results-content .error {
    color: #ef4444;
    font-weight: 600;
}

/* Billing Section Styles */
.billing-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem;
    color: #64748b;
}

.billing-subscription-details,
.billing-information,
.billing-transaction-history {
    padding: 0;
}

.subscription-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.subscription-info-item {
    background: #f8fafc;
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
}

.subscription-info-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.subscription-info-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.subscription-info-subtext {
    font-size: 0.875rem;
    color: #64748b;
}

.subscription-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.subscription-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
}

.subscription-status.active {
    background: #dcfce7;
    color: #166534;
}

.subscription-status.trial {
    background: #fef3c7;
    color: #92400e;
}

.subscription-status.cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.subscription-status.past_due {
    background: #fef3c7;
    color: #92400e;
}

.billing-method-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

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

.billing-method-type {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.billing-method-icon {
    width: 2rem;
    height: 2rem;
    background: #1e293b;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
}

.billing-method-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.billing-method-detail {
    display: flex;
    flex-direction: column;
}

.billing-method-label {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.billing-method-value {
    font-weight: 600;
    color: #1e293b;
}

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

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
}

.transaction-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.transaction-main {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.transaction-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
}

.transaction-icon.paid {
    background: #10b981;
}

.transaction-icon.pending {
    background: #f59e0b;
}

.transaction-icon.failed {
    background: #ef4444;
}

.transaction-icon.refunded {
    background: #6b7280;
}

.transaction-details {
    display: flex;
    flex-direction: column;
}

.transaction-description {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.transaction-date {
    font-size: 0.875rem;
    color: #64748b;
}

.transaction-amount {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.transaction-total {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.transaction-status {
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
}

.transaction-status.paid {
    background: #dcfce7;
    color: #166534;
}

.transaction-status.pending {
    background: #fef3c7;
    color: #92400e;
}

.transaction-status.failed {
    background: #fee2e2;
    color: #991b1b;
}

.transaction-status.refunded {
    background: #f3f4f6;
    color: #374151;
}

.billing-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    color: #64748b;
}

.billing-error-icon {
    width: 3rem;
    height: 3rem;
    background: #fee2e2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dc2626;
    margin-bottom: 1rem;
}

.billing-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    color: #64748b;
}

.billing-empty-icon {
    width: 3rem;
    height: 3rem;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    margin-bottom: 1rem;
}

/* Additional Product Page Enhancements */
.pricing-card .btn {
    transition: all 0.3s ease;
    margin: 0 auto;
}

.pricing-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Ensure pricing buttons are exactly the same size */
.pricing-card .pricing-cta.early-access-btn,
.pricing-card .pricing-cta.demo-btn {
    width: 100%;
    height: 3rem;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    margin: 0;
    padding: 0.75rem 1.5rem;
    box-sizing: border-box;
}

.process-step:hover .process-number {
    background: #334155;
}

.roi-stat:hover .roi-number {
    color: #334155;
}

.roi-number,
.process-number {
    transition: all 0.3s ease;
}
.signin-container {
    max-width: 28rem;
    margin: 0 auto;
    text-align: center;
}

.create-account-container {
    max-width: 40rem;
    margin: 0 auto;
    text-align: center;
}

.signin-header {
    margin-bottom: 3rem;
}

.signin-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.signin-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1e293b;
}

.signin-subtitle {
    color: #64748b;
    font-size: 1.125rem;
    line-height: 1.6;
}

.signin-form-container {
    position: relative;
    margin-bottom: 3rem;
}

.signin-glow {
    position: absolute;
    inset: -1rem;
    background: linear-gradient(to right, rgba(226, 232, 240, 0.5), rgba(203, 213, 225, 0.5));
    border-radius: 1rem;
    filter: blur(1rem);
    opacity: 0.5;
}

.signin-card {
    position: relative;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.forgot-password-link {
    color: #1e293b;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.forgot-password-link:hover {
    color: #334155;
    text-decoration: underline;
}

.signin-divider {
    display: flex;
    align-items: center;
    margin: 2rem 0;
    gap: 1rem;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.divider-text {
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
}

.signup-section {
    text-align: center;
}

.signup-text {
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.signin-features {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 2rem;
}

.features-preview-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1e293b;
}

.features-preview-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-preview-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-align: left;
}

.feature-preview-icon {
    font-size: 1.25rem;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.feature-preview-text {
    color: #475569;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Footer */
.footer {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 2rem 1.5rem;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    overflow-wrap: break-word;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    max-width: 72rem;
    margin: 0 auto;
    width: 100%;
    min-width: 0;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.footer-logo {
    width: 2rem;
    height: 2rem;
    background: #1e293b;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.footer-logo-icon {
    width: 1rem;
    height: 1rem;
    background: white;
    border-radius: 0.125rem;
    transform: rotate(12deg);
}

.footer-brand-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
}

.footer-center {
    flex-shrink: 1;
    text-align: center;
}

.footer-tagline {
    color: #64748b;
    font-size: 0.875rem;
    margin: 0;
    white-space: nowrap;
}

.footer-right {
    flex-shrink: 0;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.footer-link {
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
}

.footer-link:hover {
    color: #1e293b;
}

/* Remove the old footer styles that are no longer needed */
.footer-brand {
    display: none; /* This is replaced by footer-left */
}

/* Responsive Design */
@media (max-width: 767px) {
    /* Mobile: Hide desktop nav, show mobile menu */
    .nav-desktop {
        display: none !important;
    }

    .mobile-container {
        display: flex !important;
    }

    .desktop-sign-in {
        display: none !important;
    }

    /* Mobile: Stack hero buttons vertically */
    .hero-buttons {
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
        max-width: 100%;
    }

    /* Mobile: Allow footer to wrap but keep elements together when possible */
    .footer-content {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 1rem;
        text-align: center;
        width: 100%;
    }

    .footer-left,
    .footer-center,
    .footer-right {
        flex: none !important;
        min-width: auto;
    }

    .footer-links {
        gap: 1rem;
    }

    .footer-tagline {
        font-size: 0.8125rem;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .footer-brand-text {
        font-size: 1.125rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .about-title {
        font-size: 3rem;
    }

    .features-title {
        font-size: 1.875rem;
    }

    .btn {
        padding: 1rem 2rem;
        font-size: 1rem;
        width: 100%;
        max-width: 280px; /* Prevent buttons from being too wide on mobile */
    }

    .hero {
        padding: 3rem 1.5rem;
    }

    .features-section {
        padding: 4rem 1.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    /* Product Page Mobile Styles */
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-featured {
        transform: none;
    }

    .pricing-featured:hover {
        transform: scale(1.02);
    }

    .roi-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .integration-logos {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-step {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    /* Sign In Page Mobile Styles */
    .signin-container {
        max-width: 100%;
        padding: 0 1rem;
    }

    .signin-title {
        font-size: 1.875rem;
    }

    .signin-subtitle {
        font-size: 1rem;
    }

    .features-preview-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

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

@media (min-width: 768px) {
    /* Desktop: Show desktop nav, hide mobile menu */
    .nav-desktop {
        display: flex !important;
    }

    .mobile-container {
        display: none !important;
    }

    .desktop-sign-in {
        display: block !important;
    }

    /* Desktop: Place hero buttons side by side */
    .hero-buttons {
        flex-direction: row !important;
        gap: 2rem;
        justify-content: center;
        align-items: center;
    }

    /* Desktop: Keep footer in single line layout */
    .footer-content {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 3rem;
    }

    .footer-left {
        flex: 0 0 auto;
    }

    .footer-center {
        flex: 1 1 auto;
        text-align: center;
    }

    .footer-right {
        flex: 0 0 auto;
    }

    .footer-tagline {
        white-space: nowrap;
    }

    .btn {
        padding: 1.5rem 2.5rem;
        font-size: 1.125rem;
        width: auto; /* Auto width on desktop */
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .about-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Product Page Desktop Styles */
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .roi-stats {
        grid-template-columns: repeat(4, 1fr);
    }

    .integration-logos {
        grid-template-columns: repeat(3, 1fr);
    }

    .process-steps {
        flex-direction: column;
    }

    .hero-title {
        font-size: 6rem;
    }

    .about-title {
        font-size: 6rem;
    }

    /* Sign In Page Desktop Styles */
    .features-preview-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Medium screens (tablets) - optional breakpoint for better control */
@media (min-width: 480px) and (max-width: 767px) {
    .hero-buttons {
        flex-direction: column !important;
        gap: 1.25rem;
    }

    .btn {
        max-width: 320px; /* Slightly wider on tablets */
    }

    .footer-content {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 1.25rem;
        text-align: center;
    }

    .footer-tagline {
        white-space: normal;
    }

    /* Product Page Tablet Styles */
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 24rem;
        margin: 3rem auto 0;
    }

    .roi-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .integration-logos {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Large screens - ensure single line footer */
@media (min-width: 1200px) {
    .footer-content {
        gap: 4rem;
    }

    .footer-tagline {
        white-space: nowrap;
        font-size: 0.9375rem;
    }

    .footer-links {
        gap: 2rem;
    }

    /* Product Page Large Screen Enhancements */
    .integration-logos {
        grid-template-columns: repeat(6, 1fr);
    }

    .roi-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 3rem;
    }

    .pricing-grid {
        gap: 3rem;
    }
}

/* Project Card Alignment Fixes */
.project-header, .project-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.project-status {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 0.75rem;
  flex-shrink: 0;
  display: inline-block;
}

.project-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
}

.project-menu {
  margin-left: auto;
  display: flex;
  align-items: center;
}

.project-menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-card,
.project-card-large {
  /* Ensure consistent padding and alignment */
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  cursor: pointer;
}

/* Widen profile input fields in settings */
.settings-form .form-input,
.settings-form .form-textarea {
  max-width: 480px;
  width: 100%;
  min-width: 260px;
  box-sizing: border-box;
}
.settings-form .form-row {
  gap: 2rem;
}
@media (min-width: 768px) {
  .settings-form .form-input,
  .settings-form .form-textarea {
    max-width: 600px;
  }
}

/* Project Details Page Input Cleanup */
.form-input, .form-textarea {
  border: 1px solid #e2e8f0 !important;
  background: #f8fafc !important;
  color: #1e293b;
  border-radius: 0.5rem;
  box-shadow: none !important;
}
.form-input:focus, .form-textarea:focus {
  border-color: #1e293b !important;
  background: #fff !important;
  outline: none;
}
.dashboard-container {
  max-width: 1400px;
}

/* Ensure all main auth buttons are full width and centered */
#submitSignin, #createAccountBtn, #earlyAccessBtn, .btn.early-access-btn {
  width: 100%;
  display: block;
  margin-left: auto;
  margin-right: auto;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  box-sizing: border-box;
}

.cta-section .hero-action-buttons {
    margin-bottom: 0;
}

/* Budget Input - Remove any potential spinner buttons */
#projectBudget {
    -webkit-appearance: textfield;
    -moz-appearance: textfield;
    appearance: textfield;
}

#projectBudget::-webkit-outer-spin-button,
#projectBudget::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#projectBudget[type=number] {
    -moz-appearance: textfield;
}

/* Progress Input - Remove spinner arrows */
#projectProgress {
    -webkit-appearance: textfield;
    -moz-appearance: textfield;
    appearance: textfield;
}

#projectProgress::-webkit-outer-spin-button,
#projectProgress::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#projectProgress[type=number] {
    -moz-appearance: textfield;
}

/* Analysis History Cards */
.analysis-history-card {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    background: #fff;
    cursor: pointer;
}

.analysis-history-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #059669;
    transform: translateY(-1px);
}

.analysis-history-card:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Analysis History Container Styling */
#analysisHistoryContainer {
    position: relative;
}

/* Spin animation for loading states */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Analysis Tag Styling */
.analysis-tag {
    font-size: 0.625rem;
    padding: 0.125rem 0.375rem;
    background: #e0f2fe;
    color: #0369a1;
    border-radius: 0.25rem;
    white-space: nowrap;
}

.analysis-tag.tag-construction {
    background: #fef3c7;
    color: #92400e;
}

.analysis-tag.tag-commercial {
    background: #e0f2fe;
    color: #0369a1;
}

.analysis-tag.tag-cpm-analysis {
    background: #f0fdf4;
    color: #166534;
}

/* Historical Analysis Header */
.historical-analysis-header {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 0.5rem;
    padding: 0.75rem;
    margin-bottom: 1rem;
    color: #92400e;
    font-size: 0.875rem;
    animation: slideDown 0.3s ease-out;
}

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

/* Notification animations */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* File History Cards - Matching Analysis Cards */
.file-history-card {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    background: #fff;
    cursor: pointer;
}

.file-history-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #059669;
    transform: translateY(-1px);
}

.file-history-card:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Files Page Specific Styles */
.files-section {
    max-width: 100%;
    margin: 0 auto;
}

.page-header {
    background: #fff;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Responsive Design for Analysis History */
@media (max-width: 768px) {
    .analysis-history-card,
    .file-history-card {
        padding: 0.75rem;
    }
    
    .analysis-history-card h4,
    .file-history-card h4 {
        font-size: 0.8rem;
    }
    
    .analysis-history-card .metadata,
    .file-history-card .metadata {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .analysis-tag {
        font-size: 0.5rem;
        padding: 0.1rem 0.3rem;
    }
    
    .page-header {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 1rem 1rem;
    }
    
    .nav-desktop {
        display: none;
    }
    
    .mobile-container {
        display: flex;
        align-items: center;
        gap: 1rem;
    }
    
    .hero {
        padding: 6rem 0 4rem;
    }
    
    .hero-action-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-action-btn {
        min-width: 100%;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .roi-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .dashboard {
        min-width: 300px;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .features-title,
    .about-title {
        font-size: 2rem;
    }
    
    .feature-card {
        padding: 2rem;
    }
    
    .content-card {
        padding: 2rem;
    }
    
    .roi-stats {
        grid-template-columns: 1fr;
    }
}

/* Pricing Grid Layout */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 80rem;
    margin: 3rem auto 0;
}

.pricing-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 1rem;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    user-select: none;
}

.pricing-card:hover {
    border-color: #1e293b;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.pricing-featured:not(.pricing-selected) {
    border-color: #e2e8f0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.pricing-featured:not(.pricing-selected):hover {
    border-color: #1e293b;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.pricing-featured.pricing-selected {
    border-color: #1e293b;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.pricing-card.pricing-selected {
    border-color: #1e293b;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    transform: scale(1.02);
}

.pricing-card.pricing-selected:hover {
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
    transform: scale(1.02);
}

.pricing-card.pricing-selected::before {
    content: '✓';
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2rem;
    height: 2rem;
    background: #1e293b;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.875rem;
    z-index: 10;
}

.pricing-badge {
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
}

.pricing-header {
    margin-bottom: 2rem;
}

.pricing-plan {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 1rem;
}

.pricing-currency {
    font-size: 1.5rem;
    font-weight: 500;
    color: #64748b;
}

.pricing-amount {
    font-size: 3rem;
    font-weight: 700;
    color: #1e293b;
}

.pricing-period {
    font-size: 1rem;
    color: #64748b;
    margin-left: 0.25rem;
}

.pricing-description {
    color: #64748b;
    line-height: 1.5;
}

.pricing-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
    text-align: left;
}

.pricing-feature {
    color: #475569;
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pricing-cta {
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    margin-top: auto;
    min-height: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    font-weight: 600;
}

.pricing-card .pricing-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.pricing-card .pricing-cta.early-access-btn,
.pricing-card .pricing-cta.demo-btn {
    width: 100%;
    height: 3rem;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    margin: 0;
    padding: 0.75rem 1.5rem;
    box-sizing: border-box;
}

/* Responsive Pricing Grid */
@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .pricing-featured {
        transform: none;
    }
    
    .pricing-featured:hover {
        transform: scale(1.02);
    }
}

@media (min-width: 480px) and (max-width: 767px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 24rem;
        margin: 3rem auto 0;
    }
}

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

@media (min-width: 1200px) {
    .pricing-grid {
        gap: 3rem;
    }
}

/* Enhanced Interactive Elements */
.hero-title {
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.dashboard-item {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.6s ease;
}

.feature-icon {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-bar {
    transition: width 0.8s ease-in-out;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    height: 4px;
    border-radius: 2px;
}

.roi-number {
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.5rem;
}

/* Cursor follow effect for background elements */
.bg-circle {
    transition: transform 0.2s ease-out;
}

/* Enhanced feature card interactions */
.feature-card:hover {
    border-color: rgba(102, 126, 234, 0.3) !important;
}

.feature-card .feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

/* Dashboard preview floating effect */
.dashboard-preview {
    transition: transform 0.1s ease-out;
}

/* Status indicators in dashboard */
.status-complete {
    background: #10b981;
}

.status-progress {
    background: #f59e0b;
    animation: pulse 2s infinite;
}

.status-scheduled {
    background: #6b7280;
}

/* Performance optimizations for smooth scrolling */
.bg-circle {
    will-change: transform;
    transform: translate3d(0, 0, 0); /* Force hardware acceleration */
    backface-visibility: hidden;
}

.header {
    will-change: background, border-color;
    transform: translate3d(0, 0, 0);
}

.feature-card, .content-card, .roi-card, .team-card {
    will-change: box-shadow;
    transform: translate3d(0, 0, 0);
}

/* Progress bar animations */
@keyframes progressPulse {
    0%, 100% {
        opacity: 0.8;
        transform: scaleX(1);
    }
    50% {
        opacity: 1;
        transform: scaleX(1.02);
    }
}

@keyframes progressGlow {
    0%, 100% {
        opacity: 0.6;
        box-shadow: 0 0 5px rgba(107, 114, 128, 0.3);
    }
    50% {
        opacity: 0.9;
        box-shadow: 0 0 15px rgba(107, 114, 128, 0.6);
    }
}

@keyframes progressFillLoop {
    0% {
        width: 0;
    }
    50% {
        width: var(--target-width);
    }
    100% {
        width: 0;
    }
}

/* AI Diagram Section Styles */
.ai-diagram-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 4rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.ai-diagram-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.ai-diagram-header {
    text-align: center;
    margin-bottom: 3.25rem;
}

.ai-diagram-header .features-title {
    color: white;
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.ai-diagram-header .features-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.125rem;
    max-width: 48rem;
    margin: 0 auto;
}

.ai-diagram-container {
    position: relative;
    max-width: 80rem;
    margin: 0 auto;
}

.ai-diagram {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 0;
}

.connection-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.ai-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.inputs-row {
    justify-content: space-between;
}

.brain-row {
    justify-content: center;
}

.outputs-row {
    justify-content: space-between;
}

.ai-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 0.625rem 1rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    will-change: transform;
    
    /* Initial state for animation */
    opacity: 0;
    transform: translateY(30px) scale(0.9);
}

.ai-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.input-card, .output-card {
    flex: 1;
    max-width: 14rem;
    min-height: 4.5rem;
}

.input-card:hover, .output-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
}

.brain-card {
    max-width: 18rem;
    min-height: 5rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(102, 126, 234, 0.15) 100%);
    border: 2px solid rgba(59, 130, 246, 0.3);
    position: relative;
}

.brain-card:hover {
    transform: translateY(-8px) scale(1.05);
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 25px 50px rgba(59, 130, 246, 0.3);
}

.brain-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
    animation: brainPulse 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes brainPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

.card-icon {
    font-size: 1.5rem;
    margin: 0 auto 0.375rem;
    transition: all 0.3s ease;
    display: block;
}

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

.ai-card:hover .card-icon {
    color: #667eea;
    transform: scale(1.1);
}

.ai-card h4 {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.ai-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.7rem;
    line-height: 1.25;
    margin: 0;
}

.processing-dots {
    display: flex;
    justify-content: center;
    gap: 0.3rem;
    margin-top: 0.5rem;
}

.processing-dots span {
    width: 0.5rem;
    height: 0.5rem;
    background: #3b82f6;
    border-radius: 50%;
    animation: processingPulse 1.5s ease-in-out infinite;
}

.processing-dots span:nth-child(1) {
    animation-delay: 0s;
}

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

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

@keyframes processingPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Connection line animations */
.connection-path {
    stroke: #667eea;
    stroke-width: 2;
    fill: none;
    stroke-dasharray: 8 4;
    stroke-dashoffset: 0;
    opacity: 0.8;
    filter: url(#glow);
    transition: all 0.5s ease;
    animation: connectionFlow 3s linear infinite;
}

@keyframes connectionFlow {
    0% {
        stroke-dashoffset: 0;
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
    100% {
        stroke-dashoffset: -24;
        opacity: 0.6;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .ai-diagram {
        gap: 1.75rem;
    }
    
    .ai-row {
        gap: 1.75rem;
    }
    
    .input-card, .output-card {
        max-width: 12rem;
        min-height: 4rem;
        padding: 0.5rem 0.875rem;
    }
    
    .brain-card {
        max-width: 15rem;
        min-height: 4.5rem;
        padding: 0.5rem 0.875rem;
    }
    
    .card-icon {
        font-size: 1.375rem;
        margin-bottom: 0.3rem;
    }
    
    .brain-icon {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .ai-diagram-section {
        padding: 2.65rem 1.5rem;
    }
    
    .ai-diagram-header {
        margin-bottom: 1.75rem;
    }
    
    .ai-diagram-header .features-title {
        font-size: 1.875rem;
    }
    
    .ai-diagram {
        gap: 1.5rem;
    }
    
    .ai-row {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .inputs-row, .outputs-row {
        flex-direction: column;
    }
    
    .input-card, .output-card {
        max-width: 18rem;
        width: 100%;
        min-height: 3.5rem;
        padding: 0.5rem 0.875rem;
    }
    
    .brain-card {
        max-width: 20rem;
        width: 100%;
        min-height: 4rem;
        padding: 0.5rem 1rem;
    }
    
    .card-icon {
        font-size: 1.25rem;
        margin-bottom: 0.3rem;
    }
    
    .brain-icon {
        font-size: 1.625rem;
    }
    
    .ai-card h4 {
        font-size: 0.875rem;
        margin-bottom: 0.25rem;
    }
    
    .ai-card p {
        font-size: 0.65rem;
        line-height: 1.2;
    }
    
    .processing-dots {
        margin-top: 0.5rem;
    }
    
    .processing-dots span {
        width: 0.3rem;
        height: 0.3rem;
    }
}

/* Interactive hover states for action buttons */
.hero-action-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.hero-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.hero-action-btn:hover::before {
    left: 100%;
}

.hero-action-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Enhanced glow effects */
.dashboard-glow,
.roi-glow,
.team-glow,
.message-glow,
.signin-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(102, 126, 234, 0.15) 0%, transparent 70%);
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.dashboard-container:hover .dashboard-glow,
.roi-card:hover .roi-glow,
.team-card:hover .team-glow,
.message-card:hover .message-glow,
.signin-card:hover .signin-glow {
    opacity: 1;
}

/* Stagger animations for multiple elements */
.features-grid .feature-card {
    animation-delay: calc(var(--card-index, 0) * 0.1s);
}

.features-grid .feature-card:nth-child(1) { --card-index: 1; }
.features-grid .feature-card:nth-child(2) { --card-index: 2; }
.features-grid .feature-card:nth-child(3) { --card-index: 3; }

/* Interactive particle effects */
.floating-particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.6) 0%, rgba(102, 126, 234, 0.1) 70%);
    pointer-events: none;
}

/* Loading states for interactive elements */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}


/* Responsive interactive enhancements */
@media (max-width: 768px) {
    .roi-number {
        font-size: 2rem;
    }
    
    .feature-icon {
        font-size: 1.5rem;
    }
    
    .hero-action-btn:hover {
        transform: translateY(-1px) scale(1.01);
    }
}

/* Multi-Step Signup Styles */
.signup-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem auto 3rem auto;
    padding: 0 2rem;
    max-width: 500px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    min-width: 80px;
}

.step-number {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.progress-step.completed .step-number {
    background: #10b981;
    color: white;
}

.progress-step.active .step-number {
    background: #3b82f6;
    color: white;
}

.step-label {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

.progress-step.completed .step-label,
.progress-step.active .step-label {
    color: #1e293b;
}

.progress-line {
    width: 3rem;
    height: 2px;
    background: #e2e8f0;
    margin: 0 0.75rem;
    margin-top: -1.25rem;
}

.progress-line.completed {
    background: #10b981;
}

.signup-header {
    text-align: center;
    margin-bottom: 2rem;
}

.signup-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.signup-subtitle {
    font-size: 1.125rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

/* Subscription Selection Styles */
.subscription-selection-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.subscription-selection-page .container {
    max-width: 1000px;
    margin: 0 auto;
}

.subscription-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 3rem 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.subscription-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 1.5rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    min-height: auto;
}

.subscription-card:hover {
    border-color: #60a5fa;
    transform: translateY(-2px);
    box-shadow: 0 25px 30px -5px rgba(0, 0, 0, 0.15), 0 10px 12px -6px rgba(0, 0, 0, 0.1);
}

.subscription-card.popular {
    position: relative;
}

.subscription-card.popular::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    font-weight: 600;
}

.subscription-plan-name {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
}

.subscription-price {
    font-size: 3.5rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.subscription-price::before {
    content: '$';
    font-size: 2rem;
    vertical-align: super;
    margin-right: 0.125rem;
}

.subscription-price-period {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 1.5rem;
}

/* Selected subscription card */
.subscription-card.selected {
    border: 2px solid #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1), 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.subscription-card.selected::after {
    content: 'Selected';
    position: absolute;
    top: -12px;
    right: 20px;
    background: #3b82f6;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Annual Toggle Card - SocialManager Style */
.annual-toggle-card {
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.annual-toggle-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0;
}

.annual-toggle-info {
    text-align: left;
}

.annual-toggle-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.25rem 0;
}

.annual-toggle-subtitle {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
}

.annual-toggle-switch {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toggle-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #94a3b8;
    transition: color 0.2s ease;
}

.toggle-label[data-billing="monthly"] {
    color: #1e293b;
}

.toggle-label.active {
    color: #1e293b;
}

.toggle-button {
    position: relative;
    width: 44px;
    height: 24px;
    background-color: #e2e8f0;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
    outline: none;
}

.toggle-button:focus {
    box-shadow: 0 0 0 2px white, 0 0 0 4px #3b82f6;
}

.toggle-button.active {
    background-color: #3b82f6;
}

.toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.toggle-button.active .toggle-slider {
    transform: translateX(20px);
}

.annual-savings-banner {
    background: linear-gradient(135deg, #dcfce7, #d1fae5);
    border-radius: 0.75rem;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

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

.savings-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: #166534;
}

/* Update subscription grid for 2 columns */
.subscription-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Make subscription cards shorter and wider */
.subscription-card {
    position: relative;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: auto;
}

/* Subscription savings display */
.subscription-savings {
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    border-radius: 0.5rem;
    padding: 0.5rem;
    margin: 0.75rem 0;
    text-align: center;
}

.savings-text {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #166534;
    margin-bottom: 0.25rem;
}

.savings-amount {
    display: block;
    font-size: 0.75rem;
    color: #15803d;
}

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

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

.subscription-feature {
    padding: 0.5rem 0;
    color: #475569;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.subscription-feature::before {
    content: '✓';
    color: #10b981;
    font-weight: 600;
    flex-shrink: 0;
    margin-top: 0.125rem;
}
    align-items: center;
}

.subscription-feature::before {
    content: '✓';
    color: #10b981;
    font-weight: 600;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.subscription-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 3rem;
    margin-bottom: 4rem;
    padding-bottom: 2rem;
}

.subscription-actions .btn {
    padding: 0.875rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    min-width: 200px;
}

.subscription-actions .btn-outline {
    background: transparent;
    border: 2px solid #e2e8f0;
    color: #64748b;
}

.subscription-actions .btn-outline:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #475569;
}

.subscription-actions .btn-primary:disabled {
    background: #e2e8f0;
    border-color: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Spinner Animation */
.spinner-border {
    display: inline-block;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

@keyframes spinner-border {
    to { transform: rotate(360deg); }
}

/* Payment Confirmation Styles */
.payment-container {
    max-width: 600px;
    margin: 0 auto;
}

.selected-plan-summary {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.plan-summary-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.plan-summary-price {
    font-size: 2rem;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 1rem;
}

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

.plan-summary-feature {
    padding: 0.25rem 0;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plan-summary-feature::before {
    content: '✓';
    color: #10b981;
    font-weight: 600;
    margin-right: 0.5rem;
}

.payment-form {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
}

.payment-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    margin-bottom: 4rem;
    padding-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .signup-progress {
        padding: 0 1rem;
        margin: 1.5rem auto 2.5rem auto;
        max-width: 400px;
    }
    
    .progress-line {
        width: 2rem;
        margin: 0 0.5rem;
    }
    
    .progress-step {
        min-width: 60px;
    }
    
    .subscription-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .subscription-actions,
    .payment-actions {
        flex-direction: column;
    }
    
    .subscription-actions .btn,
    .payment-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .dashboard-preview {
        transform: none !important;
    }
    
    .bg-circle {
        transform: none !important;
    }
    
    .signup-title {
        font-size: 2rem;
    }
    
    .subscription-card {
        padding: 1.5rem;
    }
    
    .subscription-price {
        font-size: 2.5rem;
    }
}

/* Modern subscription card */
.modern-subscription-card {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    margin-bottom: 1rem;
}

.subscription-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}

.subscription-plan .plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
}

.subscription-plan .plan-price {
    font-size: 2rem;
    font-weight: 600;
    color: #059669;
}

.plan-frequency {
    font-size: 1rem;
    font-weight: 400;
    color: #64748b;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-badge.status-active {
    background-color: #dcfce7;
    color: #166534;
}

.status-badge.status-trial {
    background-color: #fef3c7;
    color: #92400e;
}

.status-badge.status-canceled {
    background-color: #fee2e2;
    color: #991b1b;
}

.subscription-details {
    margin-bottom: 0.75rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
}

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

.detail-label {
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
}

.detail-value {
    color: #1e293b;
    font-size: 0.875rem;
    font-weight: 600;
}

.subscription-actions {
    display: flex;
    justify-content: center;
    padding-top: 0.75rem;
    border-top: 1px solid #f1f5f9;
}

/* Card brand icon */
.card-brand-icon {
    width: 24px;
    height: 16px;
    object-fit: contain;
}

.billing-method-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}
