/* ====================================
   B2B COMPONENTS - ADDITIONAL STYLES
   ==================================== */

/* ====================================
   PARTICLE SYSTEM
   ==================================== */

   .particle-container {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    pointer-events: none;
}

/* Different particle sizes */
.particle-sm { width: 4px; height: 4px; }
.particle-md { width: 8px; height: 8px; }
.particle-lg { width: 12px; height: 12px; }

/* Particle glow effect */
.particle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent);
    border-radius: 50%;
}

/* ====================================
   LOADING STATES
   ==================================== */

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

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

.skeleton-loader {
    background: linear-gradient(90deg, 
        #E2E8F0 25%, 
        #CBD5E0 50%, 
        #E2E8F0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ====================================
   TOOLTIPS
   ==================================== */

.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip-text {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--b2b-dark-blue);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.875rem;
    white-space: nowrap;
    z-index: 1000;
    transition: opacity 0.3s ease;
}

.tooltip-text::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--b2b-dark-blue);
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* ====================================
   PROGRESS BARS
   ==================================== */

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: rgba(67, 97, 238, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--b2b-gradient-primary);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-with-label {
    display: flex;
    align-items: center;
    gap: 12px;
}

.progress-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--b2b-dark-blue);
    min-width: 40px;
    text-align: right;
}

/* ====================================
   BADGES & TAGS
   ==================================== */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-success {
    background-color: #D1FAE5;
    color: #065F46;
}

.badge-warning {
    background-color: #FEF3C7;
    color: #92400E;
}

.badge-danger {
    background-color: #FEE2E2;
    color: #991B1B;
}

.badge-info {
    background-color: #DBEAFE;
    color: #1E40AF;
}

/* ====================================
   ALERTS & NOTIFICATIONS
   ==================================== */

.alert {
    padding: 16px 20px;
    border-radius: 8px;
    border-left: 4px solid;
    margin-bottom: 16px;
}

.alert-success {
    background-color: #D1FAE5;
    border-color: #10B981;
    color: #065F46;
}

.alert-warning {
    background-color: #FEF3C7;
    border-color: #F59E0B;
    color: #92400E;
}

.alert-danger {
    background-color: #FEE2E2;
    border-color: #EF4444;
    color: #991B1B;
}

.alert-info {
    background-color: #DBEAFE;
    border-color: #3B82F6;
    color: #1E40AF;
}

.alert-title {
    font-weight: 700;
    margin-bottom: 4px;
}

.alert-close {
    float: right;
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.alert-close:hover {
    opacity: 1;
}

/* ====================================
   MODALS
   ==================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 42, 56, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.modal {
    background: white;
    border-radius: 16px;
    padding: 0;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: var(--shadow-b2b-xl);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

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

.modal-header {
    padding: 24px 32px;
    border-bottom: 1px solid rgba(30, 42, 56, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--b2b-dark-blue);
    margin: 0;
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--b2b-bg-light);
    color: var(--text-secondary-b2b);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--b2b-accent-red);
    color: white;
}

.modal-body {
    padding: 32px;
    overflow-y: auto;
    max-height: calc(90vh - 160px);
}

.modal-footer {
    padding: 24px 32px;
    border-top: 1px solid rgba(30, 42, 56, 0.1);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* ====================================
   ACCORDION
   ==================================== */

.accordion {
    border: 1px solid rgba(30, 42, 56, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.accordion-item {
    border-bottom: 1px solid rgba(30, 42, 56, 0.1);
}

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

.accordion-header {
    width: 100%;
    padding: 20px 24px;
    background: white;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.2s ease;
}

.accordion-header:hover {
    background-color: var(--b2b-bg-light);
}

.accordion-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--b2b-dark-blue);
}

.accordion-icon {
    font-size: 1.25rem;
    color: var(--text-secondary-b2b);
    transition: transform 0.3s ease;
}

.accordion-header.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-content.active {
    max-height: 500px;
}

.accordion-body {
    padding: 0 24px 20px 24px;
    color: var(--text-secondary-b2b);
    line-height: 1.6;
}

/* ====================================
   TABS
   ==================================== */

.tabs {
    border-bottom: 2px solid var(--b2b-bg-light);
    margin-bottom: 32px;
}

.tab-list {
    display: flex;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.tab-button {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-secondary-b2b);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-button:hover {
    color: var(--b2b-gradient-end);
    background-color: rgba(67, 97, 238, 0.05);
}

.tab-button.active {
    color: var(--b2b-gradient-end);
    border-bottom-color: var(--b2b-gradient-end);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeInUp 0.4s ease;
}

/* ====================================
   CARDS - ADDITIONAL VARIANTS
   ==================================== */

.info-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-b2b-sm);
    border: 1px solid rgba(30, 42, 56, 0.08);
    transition: all 0.3s ease;
}

.info-card:hover {
    box-shadow: var(--shadow-b2b-md);
    transform: translateY(-2px);
}

.info-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.info-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--b2b-gradient-primary);
    color: white;
    font-size: 1.5rem;
}

.info-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--b2b-dark-blue);
    margin: 0;
}

.info-card-body {
    color: var(--text-secondary-b2b);
    line-height: 1.6;
}

/* ====================================
   FEATURE COMPARISON TABLE
   ==================================== */

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-b2b-md);
}

.comparison-table thead {
    background: var(--b2b-gradient-primary);
    color: white;
}

.comparison-table th {
    padding: 20px;
    text-align: left;
    font-weight: 700;
    font-size: 1rem;
}

.comparison-table td {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(30, 42, 56, 0.08);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tbody tr:hover {
    background-color: var(--b2b-bg-light);
}

.check-icon {
    color: var(--b2b-trust-green);
    font-size: 1.25rem;
}

.cross-icon {
    color: var(--text-light-b2b);
    font-size: 1.25rem;
}

/* ====================================
   TESTIMONIAL CARDS
   ==================================== */

.testimonial-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow-b2b-md);
    position: relative;
}

.testimonial-quote {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text-primary-b2b);
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-quote::before {
    content: '"';
    font-size: 3rem;
    color: var(--b2b-gradient-end);
    opacity: 0.2;
    position: absolute;
    top: 20px;
    left: 24px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--b2b-gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

.author-info {
    flex: 1;
}

.author-name {
    font-weight: 700;
    color: var(--b2b-dark-blue);
    margin-bottom: 4px;
}

.author-role {
    font-size: 0.875rem;
    color: var(--text-secondary-b2b);
}

/* ====================================
   PRICING CARDS
   ==================================== */

.pricing-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-b2b-md);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    text-align: center;
}

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

.pricing-card.featured {
    border-color: var(--b2b-gradient-end);
    background: linear-gradient(180deg, white 0%, rgba(67, 97, 238, 0.02) 100%);
}

.pricing-badge {
    background: var(--b2b-gradient-primary);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 16px;
}

.pricing-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--b2b-dark-blue);
    margin-bottom: 12px;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--b2b-dark-blue);
    margin-bottom: 8px;
}

.pricing-price-currency {
    font-size: 1.5rem;
    vertical-align: super;
}

.pricing-period {
    color: var(--text-secondary-b2b);
    font-size: 0.875rem;
    margin-bottom: 32px;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
    text-align: left;
}

.pricing-features li {
    padding: 12px 0;
    color: var(--text-primary-b2b);
    display: flex;
    align-items: center;
    gap: 12px;
}

.pricing-features li::before {
    content: '✓';
    color: var(--b2b-trust-green);
    font-weight: 700;
    font-size: 1.25rem;
}

/* ====================================
   STATS COUNTER
   ==================================== */

.stats-counter {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    padding: 60px 0;
}

.stat-counter-item {
    text-align: center;
}

.counter-number {
    font-size: 4rem;
    font-weight: 900;
    background: var(--b2b-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 12px;
}

.counter-label {
    font-size: 1rem;
    color: var(--text-secondary-b2b);
    font-weight: 600;
}

/* ====================================
   RESPONSIVE UTILITIES
   ==================================== */

@media (max-width: 768px) {
    .modal {
        width: 95%;
        max-height: 95vh;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 20px;
    }
    
    .comparison-table {
        font-size: 0.875rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 12px;
    }
    
    .pricing-card {
        padding: 32px 24px;
    }
    
    .stats-counter {
        gap: 32px;
    }
    
    .counter-number {
        font-size: 3rem;
    }
}