/* ════════════════════════════════════════════════════════════════
   ENTERPRISE.CSS — AlphaVault AI Enterprise B2B
   Couvre : auth.html · checkout.html · enterprise-admin.html
            enterprise-invite.html
   ════════════════════════════════════════════════════════════════ */

/* ─── Variables ──────────────────────────────────────────────── */
:root {
    --ent-primary:    #1e3a5f;
    --ent-secondary:  #1e40af;
    --ent-accent:     #2563eb;
    --ent-gold:       #f59e0b;
    --ent-success:    #10b981;
    --ent-danger:     #ef4444;
    --ent-warning:    #d97706;
    --ent-bg:         #f8fafc;
    --ent-card:       #ffffff;
    --ent-border:     #e2e8f0;
    --ent-text:       #1e293b;
    --ent-muted:      #64748b;
    --ent-shadow-sm:  0 2px 8px rgba(0, 0, 0, 0.06);
    --ent-shadow:     0 4px 24px rgba(0, 0, 0, 0.10);
    --ent-shadow-lg:  0 12px 48px rgba(0, 0, 0, 0.16);
    --ent-radius:     16px;
    --ent-radius-sm:  10px;
    --ent-ease:       0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ════════════════════════════════════════════════════════════════
   1. AUTH PAGE — Toggle Individual / Enterprise
   ════════════════════════════════════════════════════════════════ */

.auth-type-toggle {
    display: flex;
    background: #f1f5f9;
    border-radius: 12px;
    padding: 4px;
    gap: 4px;
    margin-bottom: 20px;
    border: 1px solid var(--ent-border);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06);
}

.auth-type-btn {
    flex: 1;
    padding: 10px 14px;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: var(--ent-muted);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--ent-ease);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
}

.auth-type-btn.active {
    background: #ffffff;
    color: var(--ent-text);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
}

.auth-type-btn.enterprise-btn.active {
    background: linear-gradient(135deg, var(--ent-primary), var(--ent-secondary));
    color: white;
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.35);
}

.auth-type-btn:hover:not(.active) {
    color: var(--ent-text);
    background: rgba(255, 255, 255, 0.6);
}

.enterprise-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border-radius: 999px;
    padding: 2px 7px;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

/* ── Enterprise Form Header Banner ────────────────────────────── */
.enterprise-form-header {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, #0f1e35 0%, #1e3a5f 60%, #1e40af 100%);
    border-radius: var(--ent-radius-sm);
    padding: 16px 20px;
    margin-bottom: 20px;
    box-shadow: 0 6px 20px rgba(30, 58, 95, 0.35);
    position: relative;
    overflow: hidden;
}

.enterprise-form-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 15px,
        rgba(255, 255, 255, 0.02) 15px,
        rgba(255, 255, 255, 0.02) 30px
    );
    pointer-events: none;
}

.enterprise-form-icon {
    font-size: 2rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}

.enterprise-form-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: white;
    margin-bottom: 3px;
    position: relative;
    z-index: 1;
}

.enterprise-form-subtitle {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 500;
    line-height: 1.4;
    position: relative;
    z-index: 1;
}

/* ════════════════════════════════════════════════════════════════
   2. CHECKOUT PAGE — Enterprise Plan Card
   ════════════════════════════════════════════════════════════════ */

.plan-option.enterprise-plan {
    background: linear-gradient(145deg, #0a1628 0%, #1e3a5f 50%, #1e40af 100%);
    border: 2px solid rgba(59, 130, 246, 0.35);
    position: relative;
    overflow: hidden;
    color: white;
}

.plan-option.enterprise-plan::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 18px,
        rgba(255, 255, 255, 0.025) 18px,
        rgba(255, 255, 255, 0.025) 36px
    );
    pointer-events: none;
}

.plan-option.enterprise-plan::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

.plan-option.enterprise-plan:hover {
    border-color: rgba(59, 130, 246, 0.65);
    box-shadow: 0 24px 64px rgba(30, 58, 95, 0.45),
                0 0 40px rgba(59, 130, 246, 0.2);
    transform: translateY(-5px);
}

.plan-option.enterprise-plan.selected {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3),
                0 20px 60px rgba(30, 58, 95, 0.45);
}

.plan-option.enterprise-plan .plan-name  { color: white; }
.plan-option.enterprise-plan .plan-features li { color: rgba(255, 255, 255, 0.84); }
.plan-option.enterprise-plan .plan-features li i { color: #60a5fa; }

.enterprise-badge-plan {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    color: white;
    border: 1px solid rgba(96, 165, 250, 0.5);
    box-shadow: 0 0 24px rgba(59, 130, 246, 0.3);
}

/* ════════════════════════════════════════════════════════════════
   3. SEAT SELECTOR (checkout.html)
   ════════════════════════════════════════════════════════════════ */

#enterpriseSeatSelector {
    display: none; /* JS toggle */
    background: white;
    border: 2px solid rgba(30, 58, 95, 0.12);
    border-radius: var(--ent-radius);
    padding: 28px;
    margin-bottom: 20px;
    box-shadow: var(--ent-shadow);
    animation: entSlideDown 0.3s ease;
}

@keyframes entSlideDown {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.seat-selector-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    flex-wrap: wrap;
    gap: 10px;
}

.seat-selector-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--ent-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.seat-selector-title i { color: var(--ent-accent); }

.seat-tier-badge {
    background: linear-gradient(135deg, var(--ent-primary), var(--ent-secondary));
    color: white;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    box-shadow: 0 2px 10px rgba(30, 58, 95, 0.3);
    white-space: nowrap;
}

/* Seat Counter */
.seat-count-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    margin: 18px 0;
}

.seat-count-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--ent-border);
    background: white;
    color: var(--ent-primary);
    font-size: 1.6rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--ent-ease);
    line-height: 1;
    font-family: monospace;
    user-select: none;
}

.seat-count-btn:hover {
    background: var(--ent-primary);
    color: white;
    border-color: var(--ent-primary);
    box-shadow: 0 6px 16px rgba(30, 58, 95, 0.35);
    transform: scale(1.1);
}

.seat-count-btn:active { transform: scale(0.94); }

.seat-count-value {
    font-size: 3.2rem;
    font-weight: 900;
    color: var(--ent-primary);
    line-height: 1;
    min-width: 88px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.seat-count-label {
    font-size: 0.75rem;
    color: var(--ent-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    text-align: center;
    margin-top: 5px;
}

/* Seat Slider */
.seat-slider-wrapper { margin: 14px 0 22px; }

.seat-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(
        to right,
        var(--ent-accent) 0%,
        var(--ent-accent) var(--slider-fill, 1.5%),
        #e2e8f0 var(--slider-fill, 1.5%),
        #e2e8f0 100%
    );
    outline: none;
    cursor: pointer;
    margin-bottom: 12px;
    transition: background 0.1s ease;
}

.seat-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--ent-accent);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
    transition: all 0.15s ease;
}

.seat-slider::-webkit-slider-thumb:hover {
    transform: scale(1.25);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.45);
}

.seat-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--ent-accent);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.seat-slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--ent-muted);
    font-weight: 600;
}

/* Seat Tier Info Cards (the 3 cards Starter/Business/Corporate) */
.seat-tier-info {
    transition: all 0.2s ease;
    cursor: default;
}

/* Seat Pricing Breakdown */
.seat-pricing-breakdown {
    background: linear-gradient(135deg, #f8fafc, #f0f4ff);
    border: 1px solid var(--ent-border);
    border-radius: var(--ent-radius-sm);
    padding: 18px 20px;
    margin-top: 16px;
}

.seat-pricing-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid rgba(203, 213, 225, 0.5);
    font-size: 0.875rem;
}

.seat-pricing-row:last-child {
    border-bottom: none;
    padding-top: 13px;
    margin-top: 2px;
}

.seat-pricing-label {
    color: var(--ent-muted);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.seat-pricing-value {
    font-weight: 700;
    color: var(--ent-text);
}

.seat-savings-badge {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.22);
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ════════════════════════════════════════════════════════════════
   4. CONTACT SALES SECTION (checkout.html, 200+ seats)
   ════════════════════════════════════════════════════════════════ */

#contactSalesSection {
    display: none; /* JS toggle */
    background: linear-gradient(145deg, #0a1628 0%, #1e3a5f 60%, #1e40af 100%);
    border-radius: var(--ent-radius);
    padding: 40px 36px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 12px 40px rgba(30, 58, 95, 0.35);
    position: relative;
    overflow: hidden;
    animation: entSlideDown 0.3s ease;
}

#contactSalesSection::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(59, 130, 246, 0.22) 0%, transparent 70%);
    pointer-events: none;
}

.contact-sales-icon {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 16px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
    position: relative;
    z-index: 1;
}

.contact-sales-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: white;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.contact-sales-subtitle {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.7;
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}

.btn-contact-sales {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    text-decoration: none;
    padding: 16px 36px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 800;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.45);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

.btn-contact-sales:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(245, 158, 11, 0.55);
    color: white;
    text-decoration: none;
}

.contact-sales-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
    position: relative;
    z-index: 1;
}

.contact-sales-feature {
    display: flex;
    align-items: center;
    gap: 7px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.78rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.08);
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.contact-sales-feature i { color: #34d399; font-size: 0.72rem; }

/* ════════════════════════════════════════════════════════════════
   5. ENTERPRISE ADMIN DASHBOARD — Header
   ════════════════════════════════════════════════════════════════ */

.enterprise-admin-header {
    background: linear-gradient(145deg, #0a1628 0%, #1e3a5f 55%, #1e40af 100%);
    border-radius: 22px;
    padding: 32px 36px;
    margin-bottom: 28px;
    box-shadow: 0 16px 48px rgba(30, 58, 95, 0.38);
    position: relative;
    overflow: hidden;
}

.enterprise-admin-header::before {
    content: '';
    position: absolute;
    top: -35%;
    right: -8%;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

.enterprise-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.enterprise-header-left { flex: 1; min-width: 220px; }

.enterprise-logo-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}

.enterprise-logo-icon {
    width: 58px;
    height: 58px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    flex-shrink: 0;
}

.enterprise-company-name {
    font-size: 1.45rem;
    font-weight: 900;
    color: white;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.enterprise-plan-tag {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.92);
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 6px;
    letter-spacing: 0.2px;
}

.enterprise-header-stats {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.enterprise-stat-card {
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    padding: 16px 22px;
    text-align: center;
    min-width: 96px;
    transition: all 0.2s ease;
}

.enterprise-stat-card:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-2px);
}

.enterprise-stat-value {
    font-size: 1.9rem;
    font-weight: 900;
    color: white;
    line-height: 1;
    margin-bottom: 4px;
    font-variant-numeric: tabular-nums;
}

.enterprise-stat-value.gold { color: #fbbf24; }

.enterprise-stat-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.62);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

/* ════════════════════════════════════════════════════════════════
   6. SEAT USAGE BAR
   ════════════════════════════════════════════════════════════════ */

.seat-usage-section {
    background: white;
    border: 1px solid var(--ent-border);
    border-radius: var(--ent-radius);
    padding: 24px 28px;
    margin-bottom: 24px;
    box-shadow: var(--ent-shadow-sm);
}

.seat-usage-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}

.seat-usage-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ent-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.seat-usage-title i { color: var(--ent-accent); }

.seat-usage-numbers {
    font-size: 0.875rem;
    color: var(--ent-muted);
    font-weight: 600;
}

.seat-usage-numbers strong {
    color: var(--ent-text);
    font-weight: 800;
}

.seat-progress-track {
    height: 10px;
    background: #f1f5f9;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 14px;
}

.seat-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--ent-accent) 0%, #60a5fa 100%);
    border-radius: 999px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.seat-progress-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    animation: entShimmer 2.2s ease infinite;
}

@keyframes entShimmer {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

.seat-progress-bar.warning {
    background: linear-gradient(90deg, #f59e0b 0%, #ef4444 100%);
}

.seat-legend {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.seat-legend-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.8rem;
    color: var(--ent-muted);
    font-weight: 600;
}

.seat-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.seat-legend-dot.used      { background: var(--ent-accent); }
.seat-legend-dot.pending   { background: var(--ent-gold); }
.seat-legend-dot.available { background: #d1fae5; border: 2px solid var(--ent-success); }

/* ════════════════════════════════════════════════════════════════
   7. MEMBER TABLE
   ════════════════════════════════════════════════════════════════ */

.enterprise-member-table-wrapper {
    background: white;
    border: 1px solid var(--ent-border);
    border-radius: var(--ent-radius);
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: var(--ent-shadow-sm);
}

.enterprise-table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--ent-border);
    flex-wrap: wrap;
    gap: 12px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
}

.enterprise-table-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--ent-text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.enterprise-table-title i { color: var(--ent-accent); }

.enterprise-table-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-invite-member {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--ent-primary), var(--ent-secondary));
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 9px;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--ent-ease);
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.3);
    font-family: 'Inter', sans-serif;
}

.btn-invite-member:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(30, 58, 95, 0.42);
}

.btn-invite-member:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Table */
.enterprise-member-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.enterprise-member-table thead tr {
    border-bottom: 2px solid var(--ent-border);
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
}

.enterprise-member-table th {
    padding: 13px 20px;
    text-align: left;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--ent-muted);
    text-transform: uppercase;
    letter-spacing: 0.7px;
    white-space: nowrap;
}

.enterprise-member-table tbody tr {
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s ease;
}

.enterprise-member-table tbody tr:last-child { border-bottom: none; }
.enterprise-member-table tbody tr:hover       { background: #f8fafc; }

.enterprise-member-table td {
    padding: 13px 20px;
    color: var(--ent-text);
    vertical-align: middle;
}

/* Member info */
.member-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.member-avatar {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
    letter-spacing: 0.3px;
}

.member-name {
    font-weight: 600;
    color: var(--ent-text);
    font-size: 0.875rem;
}

.member-email-cell {
    color: var(--ent-muted);
    font-size: 0.8rem;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Badges */
.member-role,
.member-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    white-space: nowrap;
}

.member-role.admin  { background: rgba(245, 158, 11, 0.12); color: #d97706; border: 1px solid rgba(245, 158, 11, 0.3); }
.member-role.member { background: rgba(37, 99, 235, 0.08);  color: #2563eb; border: 1px solid rgba(37, 99, 235, 0.2); }

.member-status.active   { background: rgba(16, 185, 129, 0.10); color: #059669; border: 1px solid rgba(16, 185, 129, 0.25); }
.member-status.pending  { background: rgba(245, 158, 11, 0.10); color: #d97706; border: 1px solid rgba(245, 158, 11, 0.25); }
.member-status.inactive { background: rgba(100, 116, 139, 0.10); color: #64748b; border: 1px solid rgba(100, 116, 139, 0.22); }

/* Action buttons */
.member-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--ent-border);
    background: white;
    color: var(--ent-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    font-size: 0.78rem;
}

.member-action-btn:hover {
    background: var(--ent-accent);
    color: white;
    border-color: var(--ent-accent);
    transform: scale(1.1);
}

.member-action-btn.danger:hover {
    background: var(--ent-danger);
    border-color: var(--ent-danger);
}

/* Empty state */
.enterprise-empty-state {
    text-align: center;
    padding: 52px 24px;
}

.enterprise-empty-icon {
    font-size: 3rem;
    margin-bottom: 14px;
    display: block;
    filter: grayscale(0.3);
}

.enterprise-empty-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ent-text);
    margin-bottom: 8px;
}

.enterprise-empty-text {
    font-size: 0.875rem;
    color: var(--ent-muted);
    line-height: 1.6;
}

/* ════════════════════════════════════════════════════════════════
   8. UPGRADE SEATS SECTION
   ════════════════════════════════════════════════════════════════ */

.upgrade-seats-section {
    background: linear-gradient(135deg, #f0f4ff, #e8f0fe);
    border: 2px solid rgba(37, 99, 235, 0.14);
    border-radius: var(--ent-radius);
    padding: 28px 32px;
    margin-bottom: 24px;
}

.upgrade-seats-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--ent-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.upgrade-seats-title i { color: var(--ent-accent); }

.upgrade-seats-text {
    font-size: 0.85rem;
    color: var(--ent-muted);
    margin-bottom: 20px;
    line-height: 1.55;
}

.upgrade-seats-control {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}

.upgrade-seats-input {
    width: 120px;
    padding: 10px 16px;
    border: 2px solid var(--ent-border);
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    color: var(--ent-text);
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    background: white;
}

.upgrade-seats-input:focus {
    border-color: var(--ent-accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.btn-upgrade-seats {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--ent-primary), var(--ent-secondary));
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--ent-ease);
    font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 14px rgba(30, 58, 95, 0.32);
}

.btn-upgrade-seats:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(30, 58, 95, 0.42);
}

.btn-upgrade-seats:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ════════════════════════════════════════════════════════════════
   9. MODALS
   ════════════════════════════════════════════════════════════════ */

.enterprise-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.enterprise-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.enterprise-modal {
    background: white;
    border-radius: 22px;
    width: 100%;
    max-width: 520px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
    overflow: hidden;
    transform: scale(0.93) translateY(24px);
    transition: transform 0.28s cubic-bezier(0.34, 1.4, 0.64, 1);
    max-height: 90vh;
    overflow-y: auto;
}

.enterprise-modal-overlay.active .enterprise-modal {
    transform: scale(1) translateY(0);
}

.enterprise-modal-header {
    background: linear-gradient(135deg, var(--ent-primary), var(--ent-secondary));
    padding: 22px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 2;
}

.enterprise-modal-title {
    font-size: 1rem;
    font-weight: 800;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.enterprise-modal-close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.enterprise-modal-close:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.45);
    transform: rotate(90deg);
}

.enterprise-modal-body { padding: 28px; }

.enterprise-modal-footer {
    padding: 18px 28px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid var(--ent-border);
    background: #f8fafc;
}

/* ════════════════════════════════════════════════════════════════
   10. ENTERPRISE INVITE PAGE
   ════════════════════════════════════════════════════════════════ */

.invite-accept-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(145deg, #0a1628 0%, #1e3a5f 55%, #1e40af 100%);
    position: relative;
    overflow: hidden;
}

.invite-accept-container::before {
    content: '';
    position: absolute;
    top: -25%;
    right: -8%;
    width: 620px;
    height: 620px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.16) 0%, transparent 70%);
    pointer-events: none;
}

.invite-accept-container::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.invite-accept-card {
    background: white;
    border-radius: 26px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 36px 80px rgba(0, 0, 0, 0.32);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.invite-accept-header {
    background: linear-gradient(135deg, var(--ent-primary), var(--ent-secondary));
    padding: 40px 36px 52px;
    text-align: center;
    position: relative;
}

.invite-accept-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 44px;
    background: white;
    clip-path: ellipse(58% 100% at 50% 100%);
}

.invite-company-logo {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 16px;
    filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.3));
}

.invite-company-name {
    font-size: 1.4rem;
    font-weight: 900;
    color: white;
    margin-bottom: 8px;
}

.invite-subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 500;
}

.invite-accept-body { padding: 32px 36px 36px; }

.invite-info-card {
    background: #f8fafc;
    border: 1px solid var(--ent-border);
    border-radius: var(--ent-radius-sm);
    overflow: hidden;
    margin-bottom: 24px;
}

.invite-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 20px;
    border-bottom: 1px solid var(--ent-border);
    font-size: 0.875rem;
}

.invite-info-row:last-child { border-bottom: none; }

.invite-info-label {
    color: var(--ent-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.6px;
}

.invite-info-value {
    font-weight: 700;
    color: var(--ent-text);
    display: flex;
    align-items: center;
    gap: 7px;
    text-align: right;
}

.btn-accept-invite {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--ent-primary), var(--ent-secondary));
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.28s ease;
    box-shadow: 0 8px 24px rgba(30, 58, 95, 0.42);
    font-family: 'Inter', sans-serif;
    margin-bottom: 12px;
}

.btn-accept-invite:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(30, 58, 95, 0.52);
}

.btn-accept-invite:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-decline-invite {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--ent-muted);
    border: 2px solid var(--ent-border);
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.btn-decline-invite:hover {
    border-color: var(--ent-danger);
    color: var(--ent-danger);
    background: rgba(239, 68, 68, 0.04);
}

/* Invite success state */
#inviteSuccessState {
    text-align: center;
    padding: 40px 32px;
}

.invite-success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 24px;
    box-shadow: 0 10px 28px rgba(16, 185, 129, 0.42);
    animation: entPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes entPop {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

/* ════════════════════════════════════════════════════════════════
   11. TOAST (Enterprise)
   ════════════════════════════════════════════════════════════════ */

#toastContainer {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 99999;
    pointer-events: none;
}

/* ════════════════════════════════════════════════════════════════
   12. UTILITY
   ════════════════════════════════════════════════════════════════ */

.hidden { display: none !important; }

/* ════════════════════════════════════════════════════════════════
   13. RESPONSIVE
   ════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .enterprise-header-stats { gap: 10px; }
    .enterprise-stat-card { padding: 14px 16px; min-width: 82px; }
}

@media (max-width: 768px) {
    .enterprise-admin-header { padding: 22px 20px; }
    .enterprise-header-content { flex-direction: column; }
    .enterprise-header-stats   { justify-content: center; width: 100%; }
    .enterprise-stat-card      { flex: 1; min-width: 70px; }
    .enterprise-table-actions  { flex-direction: column; width: 100%; }
    .enterprise-table-header   { flex-direction: column; align-items: flex-start; }
    .upgrade-seats-control     { flex-direction: column; align-items: stretch; }
    .btn-upgrade-seats         { justify-content: center; }
    .invite-accept-body        { padding: 24px 20px; }
    .enterprise-modal-body     { padding: 20px; }
    .enterprise-modal-footer   { padding: 14px 20px; }
    .seat-count-value          { font-size: 2.4rem; }
    .auth-type-toggle          { margin-bottom: 16px; }
    .contact-sales-features    { gap: 8px; }
    .enterprise-member-table th:nth-child(5),
    .enterprise-member-table td:nth-child(5) { display: none; }
}

@media (max-width: 480px) {
    .enterprise-stat-value     { font-size: 1.5rem; }
    .enterprise-company-name   { font-size: 1.15rem; }
    .enterprise-member-table th:nth-child(3),
    .enterprise-member-table td:nth-child(3) { display: none; }
    .member-email-cell         { display: none; }
    .seat-count-btn            { width: 42px; height: 42px; font-size: 1.3rem; }
    .seat-count-value          { font-size: 2rem; }
    .invite-accept-header      { padding: 28px 22px 44px; }
}

/* ════════════════════════════════════════════════════════════
   ENTERPRISE.CSS — Layout additions (Drive-style)
   Light mode DEFAULT · Dark mode via body.dark-mode
   ════════════════════════════════════════════════════════════ */

/* ── 1. CSS Variables — LIGHT par défaut ──────────────────── */
:root {
    --avd-bg:             #f1f5f9;
    --avd-sidebar-bg:     #ffffff;
    --avd-header-bg:      rgba(255,255,255,0.97);
    --avd-card:           #ffffff;
    --avd-card-hover:     #f8fafc;
    --avd-input-bg:       rgba(0,0,0,0.04);
    --avd-border:         rgba(0,0,0,0.08);
    --avd-border-hover:   rgba(0,0,0,0.15);
    --avd-text:           #1e293b;
    --avd-text-muted:     #475569;
    --avd-text-dim:       #94a3b8;
    --avd-primary:        #667eea;
    --avd-primary-dark:   #764ba2;
    --avd-green:          #10b981;
    --avd-amber:          #f59e0b;
    --avd-red:            #ef4444;
    --avd-purple:         #8b5cf6;
    --avd-radius:         10px;
    --avd-radius-lg:      16px;
    --avd-radius-xl:      24px;
    --avd-shadow:         0 4px 24px rgba(0,0,0,0.10);
    --avd-shadow-lg:      0 10px 50px rgba(0,0,0,0.18);
    --avd-sidebar-w:      260px;
    --avd-header-h:       58px;
    --avd-transition:     all 0.2s ease;
}

/* ── 2. Dark mode override ────────────────────────────────── */
body.dark-mode {
    --avd-bg:             #0b1120;
    --avd-sidebar-bg:     #0f172a;
    --avd-header-bg:      rgba(11,17,32,0.97);
    --avd-card:           rgba(30,41,59,0.92);
    --avd-card-hover:     rgba(51,65,85,0.9);
    --avd-input-bg:       rgba(255,255,255,0.06);
    --avd-border:         rgba(255,255,255,0.08);
    --avd-border-hover:   rgba(255,255,255,0.15);
    --avd-text:           #f0f4f8;
    --avd-text-muted:     #cbd5e1;
    --avd-text-dim:       #94a3b8;
    --avd-shadow:         0 4px 24px rgba(0,0,0,0.35);
    --avd-shadow-lg:      0 10px 50px rgba(0,0,0,0.55);
}

/* ── 3. Reset de base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; }

body.ent-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--avd-bg);
    color: var(--avd-text);
    font-size: 13px;
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ── 4. App Layout ────────────────────────────────────────── */
#entApp {
    display: flex;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* ── 5. SIDEBAR ───────────────────────────────────────────── */
#entSidebar {
    width: var(--avd-sidebar-w);
    flex-shrink: 0;
    background: var(--avd-sidebar-bg);
    border-right: 1px solid var(--avd-border);
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: visible;
    position: relative;
    z-index: 200;
    transition: width 0.25s ease, transform 0.3s ease;
    box-shadow: 2px 0 20px rgba(0,0,0,0.06);
}
body.dark-mode #entSidebar { box-shadow: 2px 0 20px rgba(0,0,0,0.35); }

/* Collapsed */
#entSidebar.collapsed { width: 64px; }
#entSidebar.collapsed .avd-nav-item-text,
#entSidebar.collapsed .avd-nav-badge,
#entSidebar.collapsed .avd-nav-label,
#entSidebar.collapsed .avd-platform-nav,
#entSidebar.collapsed .avd-new-btn-text,
#entSidebar.collapsed .avd-storage-meter,
#entSidebar.collapsed .ent-sidebar-user-trigger > div,
#entSidebar.collapsed #entUserPlan,
#entSidebar.collapsed #entUserChevron { display: none; }
#entSidebar.collapsed .avd-nav-item { justify-content: center; padding: 10px; }
#entSidebar.collapsed .avd-nav-item-icon { margin: 0; }

/* Logo */
.ent-logo-text { display: block; height: 40px; object-fit: contain; max-width: 170px; }
.ent-logo-icon { display: none; height: 38px; width: 38px; object-fit: contain; }
#entSidebar.collapsed .ent-logo-text { display: none; }
#entSidebar.collapsed .ent-logo-icon {
    display: flex; align-items: center; justify-content: center;
    padding: 12px 0 10px; width: 100%;
}

/* Sidebar scroll */
.ent-sidebar-scroll {
    flex: 1; overflow-y: auto; overflow-x: hidden;
}
.ent-sidebar-scroll::-webkit-scrollbar { width: 3px; }
.ent-sidebar-scroll::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.1); border-radius: 4px;
}
body.dark-mode .ent-sidebar-scroll::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.08);
}

/* Sidebar collapse toggle */
.ent-sidebar-toggle {
    position: absolute; right: -14px; top: 50%;
    transform: translateY(-50%);
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--avd-card);
    border: 1px solid var(--avd-border);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: var(--avd-text-muted);
    font-size: 10px; z-index: 300;
    transition: var(--avd-transition);
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    flex-shrink: 0;
}
.ent-sidebar-toggle:hover {
    background: var(--avd-primary); color: #fff;
    border-color: var(--avd-primary);
    box-shadow: 0 4px 16px rgba(102,126,234,0.4);
}

/* Mobile close button */
.ent-mobile-close-btn {
    display: none;
    position: absolute; top: 12px; right: 12px;
    width: 32px; height: 32px; border-radius: 8px;
    background: var(--avd-input-bg);
    border: 1px solid var(--avd-border);
    color: var(--avd-text-muted); font-size: 14px;
    cursor: pointer; align-items: center; justify-content: center;
    z-index: 10; transition: var(--avd-transition);
}
.ent-mobile-close-btn:hover {
    background: rgba(239,68,68,0.12); color: var(--avd-red);
}
@media (max-width: 768px) { .ent-mobile-close-btn { display: flex; } }

/* ── 6. Platform NAV (sidebar) ────────────────────────────── */
.avd-platform-nav { padding: 0 0 8px; }
.avd-platform-nav .avd-nav-label {
    padding: 10px 16px 4px;
    font-size: 9px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1.2px;
    color: var(--avd-text-dim);
}
.avd-platform-section { margin-bottom: 2px; }
.avd-platform-folder {
    display: flex; align-items: center; gap: 9px;
    padding: 8px 10px; font-size: 12px; font-weight: 700;
    color: var(--avd-text-muted); cursor: pointer;
    border-radius: 10px; margin: 0 8px;
    transition: var(--avd-transition); position: relative;
    background: none; border: none;
    width: calc(100% - 16px); text-align: left;
}
.avd-platform-folder:hover {
    background: var(--avd-input-bg); color: var(--avd-text);
}
.avd-platform-folder i:first-child { font-size: 13px; width: 16px; text-align: center; }
.avd-platform-folder .arrow { margin-left: auto; font-size: 9px; transition: transform 0.2s; }
.avd-platform-folder.open .arrow { transform: rotate(180deg); }
.avd-platform-submenu { display: none; padding: 2px 0; }
.avd-platform-submenu.open { display: block; }
.avd-platform-link {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 10px 6px 36px;
    font-size: 11px; font-weight: 500;
    color: var(--avd-text-dim); text-decoration: none;
    border-radius: 8px; margin: 0 8px;
    transition: var(--avd-transition);
}
.avd-platform-link:hover {
    background: var(--avd-input-bg); color: var(--avd-text-muted);
}
.avd-platform-link.active {
    color: var(--avd-primary); background: rgba(102,126,234,0.08);
}
.avd-platform-link i { font-size: 11px; width: 14px; text-align: center; }
.avd-platform-divider {
    border: none; border-top: 1px solid var(--avd-border);
    margin: 8px 16px;
}

/* Enterprise-specific NAV items */
.avd-nav { padding: 4px 8px; }
.avd-nav-section { margin-bottom: 6px; }
.avd-nav-label {
    padding: 10px 10px 5px;
    font-size: 9px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1.4px;
    color: var(--avd-text-dim);
}
.avd-nav-item {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 10px; border-radius: 10px;
    cursor: pointer; transition: var(--avd-transition);
    color: var(--avd-text-muted); position: relative;
    margin-bottom: 2px;
}
.avd-nav-item:hover { background: var(--avd-input-bg); color: var(--avd-text); }
.avd-nav-item.active { background: rgba(102,126,234,0.12); color: var(--avd-primary); }
.avd-nav-item-icon {
    width: 20px; display: flex; align-items: center;
    justify-content: center; font-size: 14px; flex-shrink: 0;
}
.avd-nav-item-text {
    flex: 1; font-size: 12px; font-weight: 700;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.avd-nav-badge {
    font-size: 9px; font-weight: 800;
    padding: 2px 7px; border-radius: 20px;
    background: rgba(102,126,234,0.15); color: var(--avd-primary);
    min-width: 22px; text-align: center; flex-shrink: 0;
}

/* ── 7. Storage / License Meter ───────────────────────────── */
.ent-storage-meter {
    padding: 12px 14px;
    border-top: 1px solid var(--avd-border);
    flex-shrink: 0;
}
.ent-storage-label {
    display: flex; justify-content: space-between;
    font-size: 10px; font-weight: 700;
    color: var(--avd-text-muted); margin-bottom: 7px;
}
.ent-storage-bar {
    height: 4px; background: var(--avd-input-bg);
    border-radius: 4px; overflow: hidden;
}
.ent-storage-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--avd-primary), var(--avd-purple));
    border-radius: 4px; transition: width 0.5s ease;
}
.ent-storage-fill.warning { background: linear-gradient(90deg, var(--avd-amber), var(--avd-red)); }
.ent-storage-info { font-size: 9px; color: var(--avd-text-dim); margin-top: 5px; }

/* ── 8. Sidebar Footer / User ─────────────────────────────── */
.ent-sidebar-footer {
    border-top: 1px solid var(--avd-border);
    position: relative; flex-shrink: 0;
}
.ent-sidebar-user-trigger {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px; cursor: pointer;
    transition: var(--avd-transition);
}
.ent-sidebar-user-trigger:hover { background: var(--avd-input-bg); }
.ent-sidebar-user-dropdown {
    display: none; position: absolute;
    bottom: 100%; left: 0; right: 0;
    background: var(--avd-card);
    border: 1px solid var(--avd-border);
    border-radius: 14px; padding: 8px;
    margin: 0 8px 6px;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.15);
    z-index: 1000;
}
body.dark-mode .ent-sidebar-user-dropdown {
    box-shadow: 0 -10px 40px rgba(0,0,0,0.5);
}
.ent-sidebar-user-dropdown.open { display: block; }
.ent-sidebar-dropdown-header {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--avd-border);
    margin-bottom: 6px;
}
.ent-sidebar-dropdown-header img {
    width: 38px; height: 38px;
    border-radius: 50%; object-fit: cover;
}
.ent-sidebar-dropdown-link {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 12px; color: var(--avd-text-muted);
    text-decoration: none; font-size: 12px; font-weight: 600;
    border-radius: 8px; transition: var(--avd-transition);
}
.ent-sidebar-dropdown-link:hover {
    background: var(--avd-input-bg); color: var(--avd-text);
}
.ent-sidebar-dropdown-link i { font-size: 13px; width: 16px; text-align: center; }
.ent-sidebar-dropdown-logout {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 12px; color: var(--avd-red);
    font-size: 12px; font-weight: 700; border-radius: 8px;
    cursor: pointer; transition: var(--avd-transition);
    background: none; border: none; width: 100%; text-align: left;
    margin-top: 4px; border-top: 1px solid var(--avd-border);
    font-family: inherit;
}
.ent-sidebar-dropdown-logout:hover { background: rgba(239,68,68,0.08); }

/* ── 9. MAIN ──────────────────────────────────────────────── */
#entMain {
    flex: 1; display: flex; flex-direction: column;
    height: 100vh; overflow: hidden; min-width: 0;
    transition: margin-left 0.25s ease;
}

/* ── 10. HEADER ───────────────────────────────────────────── */
#entHeader {
    height: var(--avd-header-h);
    background: var(--avd-header-bg);
    border-bottom: 1px solid var(--avd-border);
    display: flex; align-items: center;
    gap: 10px; padding: 0 18px;
    flex-shrink: 0; backdrop-filter: blur(20px);
    position: relative; z-index: 100;
}

/* Breadcrumb */
.ent-breadcrumb {
    display: flex; align-items: center; gap: 6px; flex-shrink: 0;
}
.ent-breadcrumb-item {
    font-size: 12px; font-weight: 700;
    color: var(--avd-text-dim); cursor: pointer;
    transition: color 0.15s; white-space: nowrap;
}
.ent-breadcrumb-item:hover { color: var(--avd-text); }
.ent-breadcrumb-item.active { color: var(--avd-text); }
.ent-breadcrumb-sep { font-size: 9px; color: var(--avd-text-dim); }

/* Header controls */
.ent-header-controls {
    display: flex; align-items: center;
    gap: 6px; margin-left: auto; flex-shrink: 0;
}
.ent-header-btn {
    display: flex; align-items: center; gap: 6px;
    padding: 7px 12px;
    background: var(--avd-input-bg);
    border: 1px solid var(--avd-border);
    border-radius: 10px; font-family: inherit;
    font-size: 12px; font-weight: 600;
    color: var(--avd-text-muted); cursor: pointer;
    transition: var(--avd-transition); white-space: nowrap;
}
.ent-header-btn:hover {
    background: rgba(255,255,255,0.1); color: var(--avd-text);
    border-color: var(--avd-border-hover);
}
body:not(.dark-mode) .ent-header-btn:hover { background: rgba(0,0,0,0.06); }
.ent-header-btn.danger { color: var(--avd-red); border-color: rgba(239,68,68,0.3); }
.ent-header-btn.danger:hover {
    background: rgba(239,68,68,0.08);
    border-color: rgba(239,68,68,0.5);
}

/* Theme toggle */
.ent-theme-toggle {
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    background: var(--avd-input-bg);
    border: 1px solid var(--avd-border);
    border-radius: 10px; cursor: pointer;
    color: var(--avd-text-muted); font-size: 14px;
    transition: var(--avd-transition); flex-shrink: 0;
}
.ent-theme-toggle:hover {
    background: rgba(245,158,11,0.1); color: var(--avd-amber);
    border-color: rgba(245,158,11,0.3);
}

/* Status dot */
.ent-status-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #475569; transition: var(--avd-transition); flex-shrink: 0;
}
.ent-status-dot.connected { background: var(--avd-green); box-shadow: 0 0 8px rgba(16,185,129,0.5); }
.ent-status-dot.error { background: var(--avd-red); }

/* Avatar header */
.ent-user-avatar {
    width: 34px; height: 34px; border-radius: 50%;
    background: linear-gradient(135deg,#667eea,#764ba2);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 800; color: #fff;
    cursor: pointer; flex-shrink: 0; overflow: hidden;
}
.ent-user-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Mobile menu button */
.ent-mobile-menu-btn {
    width: 36px; height: 36px;
    display: none; align-items: center; justify-content: center;
    background: var(--avd-input-bg);
    border: 1px solid var(--avd-border);
    border-radius: 10px; cursor: pointer;
    color: var(--avd-text-muted); font-size: 16px;
    flex-shrink: 0; transition: var(--avd-transition);
}
.ent-mobile-menu-btn:hover { color: var(--avd-text); }
@media (max-width: 768px) { .ent-mobile-menu-btn { display: flex; } }

/* ── 11. CONTENT AREA ─────────────────────────────────────── */
#entContent {
    flex: 1; overflow-y: auto; overflow-x: hidden;
    padding: 24px 28px;
    background: var(--avd-bg);
}
#entContent::-webkit-scrollbar { width: 5px; }
#entContent::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.12); border-radius: 4px;
}
body.dark-mode #entContent::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
}

/* ── 12. Enterprise components — variable-aware ───────────── */

/* Page loading & access denied */
.ent-page-loading {
    display: flex; align-items: center; justify-content: center;
    min-height: 100vh; flex-direction: column;
    gap: 16px; color: var(--avd-text-muted); font-size: 0.9rem;
    background: var(--avd-bg);
}
.ent-page-loading i { font-size: 2rem; color: var(--avd-primary); animation: spin 1s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.ent-access-denied {
    display: none; flex-direction: column; align-items: center;
    justify-content: center; min-height: 100vh;
    text-align: center; color: var(--avd-text-muted);
    padding: 40px; background: var(--avd-bg);
}
.ent-access-denied.active { display: flex; }

/* Admin Header Card */
.enterprise-admin-header {
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 50%, #1d4ed8 100%);
    border-radius: 20px; padding: 28px 32px;
    margin-bottom: 24px; position: relative; overflow: hidden;
}
.enterprise-admin-header::before {
    content: ''; position: absolute;
    top: -50%; right: -10%; width: 300px; height: 300px;
    background: rgba(255,255,255,0.05); border-radius: 50%;
}
.enterprise-header-content {
    display: flex; align-items: center;
    justify-content: space-between; flex-wrap: wrap; gap: 20px;
    position: relative; z-index: 1;
}
.enterprise-header-left { flex: 1; min-width: 0; }
.enterprise-logo-row {
    display: flex; align-items: center; gap: 14px; margin-bottom: 12px;
}
.enterprise-logo-icon {
    width: 56px; height: 56px; border-radius: 16px;
    background: rgba(255,255,255,0.15); border: 2px solid rgba(255,255,255,0.25);
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; flex-shrink: 0;
    backdrop-filter: blur(10px);
}
.enterprise-company-name {
    font-size: 1.6rem; font-weight: 900; color: white;
    line-height: 1.2; margin-bottom: 6px;
}
.enterprise-plan-tag {
    display: inline-flex; align-items: center;
    background: rgba(255,255,255,0.15); color: white;
    padding: 4px 14px; border-radius: 20px;
    font-size: 0.75rem; font-weight: 700;
    border: 1px solid rgba(255,255,255,0.25);
}
.enterprise-header-stats {
    display: flex; gap: 16px; flex-wrap: wrap;
}
.enterprise-stat-card {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 14px; padding: 14px 20px;
    text-align: center; min-width: 80px;
    backdrop-filter: blur(10px);
    transition: var(--avd-transition);
}
.enterprise-stat-card:hover { background: rgba(255,255,255,0.18); }
.enterprise-stat-value {
    font-size: 1.6rem; font-weight: 900;
    color: white; line-height: 1;
}
.enterprise-stat-value.gold { color: #fbbf24; }
.enterprise-stat-label {
    font-size: 0.7rem; color: rgba(255,255,255,0.7);
    font-weight: 700; margin-top: 4px;
    text-transform: uppercase; letter-spacing: 0.5px;
}

/* Section Grid (mini stats) */
.ent-section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px; margin-bottom: 24px;
}
.ent-mini-stat {
    background: var(--avd-card);
    border: 1px solid var(--avd-border);
    border-radius: 14px; padding: 18px 20px;
    display: flex; align-items: center; gap: 14px;
    transition: var(--avd-transition);
}
.ent-mini-stat:hover {
    box-shadow: var(--avd-shadow); transform: translateY(-2px);
    border-color: var(--avd-border-hover);
}
.ent-mini-stat-icon {
    width: 46px; height: 46px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; flex-shrink: 0;
}
.ent-mini-stat-icon.blue  { background: rgba(37,99,235,0.1); color: #2563eb; }
.ent-mini-stat-icon.green { background: rgba(16,185,129,0.1); color: #10b981; }
.ent-mini-stat-icon.amber { background: rgba(245,158,11,0.1); color: #f59e0b; }
.ent-mini-stat-icon.navy  { background: rgba(30,58,95,0.1); color: #1e3a5f; }
body.dark-mode .ent-mini-stat-icon.navy { color: #93c5fd; background: rgba(147,197,253,0.1); }
.ent-mini-stat-value {
    font-size: 1.5rem; font-weight: 900; color: var(--avd-text); line-height: 1;
}
.ent-mini-stat-label {
    font-size: 0.75rem; color: var(--avd-text-dim); font-weight: 600; margin-top: 4px;
}

/* Seat usage bar */
.seat-usage-section {
    background: var(--avd-card);
    border: 1px solid var(--avd-border);
    border-radius: 16px; padding: 20px 24px;
    margin-bottom: 20px;
}
.seat-usage-header {
    display: flex; align-items: center;
    justify-content: space-between; margin-bottom: 14px;
    flex-wrap: wrap; gap: 8px;
}
.seat-usage-title {
    font-size: 0.9rem; font-weight: 800;
    color: var(--avd-text);
    display: flex; align-items: center; gap: 8px;
}
.seat-usage-title i { color: var(--avd-primary); }
.seat-usage-numbers { font-size: 0.85rem; color: var(--avd-text-muted); font-weight: 600; }
.seat-progress-track {
    height: 10px; background: var(--avd-input-bg);
    border-radius: 10px; overflow: hidden; margin-bottom: 12px;
}
.seat-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--avd-primary), var(--avd-purple));
    border-radius: 10px; transition: width 0.6s ease;
}
.seat-progress-bar.warning { background: linear-gradient(90deg, var(--avd-amber), var(--avd-red)); }
.seat-legend { display: flex; gap: 18px; flex-wrap: wrap; }
.seat-legend-item {
    display: flex; align-items: center;
    gap: 6px; font-size: 0.78rem;
    color: var(--avd-text-muted); font-weight: 600;
}
.seat-legend-dot {
    width: 10px; height: 10px; border-radius: 50%;
}
.seat-legend-dot.used { background: var(--avd-primary); }
.seat-legend-dot.pending { background: var(--avd-amber); }
.seat-legend-dot.available { background: var(--avd-input-bg); border: 2px solid var(--avd-border); }

/* Billing Portal section */
.ent-billing-portal {
    background: var(--avd-card);
    border: 1px solid var(--avd-border);
    border-radius: 16px; padding: 20px 24px;
    margin-bottom: 20px;
    display: flex; align-items: center;
    justify-content: space-between;
    flex-wrap: wrap; gap: 16px;
}
.ent-billing-title {
    font-size: 0.9rem; font-weight: 700;
    color: var(--avd-text); margin-bottom: 4px;
    display: flex; align-items: center; gap: 8px;
}
.ent-billing-title i { color: var(--avd-amber); }
.ent-billing-text { font-size: 0.8rem; color: var(--avd-text-muted); }

/* Add seats section */
.upgrade-seats-section {
    background: linear-gradient(135deg, rgba(30,58,95,0.06), rgba(37,99,235,0.04));
    border: 2px solid rgba(37,99,235,0.15);
    border-radius: 16px; padding: 20px 24px;
    margin-bottom: 24px;
}
body.dark-mode .upgrade-seats-section {
    background: rgba(37,99,235,0.06);
    border-color: rgba(37,99,235,0.2);
}
.upgrade-seats-title {
    font-size: 0.9rem; font-weight: 800;
    color: var(--avd-text); margin-bottom: 6px;
    display: flex; align-items: center; gap: 8px;
}
.upgrade-seats-title i { color: var(--avd-primary); }
.upgrade-seats-text { font-size: 0.8rem; color: var(--avd-text-muted); margin-bottom: 16px; }
.upgrade-seats-control {
    display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap;
}
.upgrade-seats-input {
    width: 90px; padding: 10px 14px;
    border: 2px solid var(--avd-border);
    border-radius: 10px; font-size: 1rem;
    font-weight: 700; text-align: center;
    background: var(--avd-card); color: var(--avd-text);
    font-family: inherit; outline: none;
    transition: var(--avd-transition);
}
.upgrade-seats-input:focus { border-color: var(--avd-primary); }
.btn-upgrade-seats {
    display: inline-flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg, #1e3a5f, #2563eb);
    color: white; border: none;
    padding: 12px 24px; border-radius: 10px;
    font-size: 0.875rem; font-weight: 700;
    cursor: pointer; transition: var(--avd-transition);
    box-shadow: 0 4px 14px rgba(37,99,235,0.3);
    font-family: inherit;
}
.btn-upgrade-seats:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37,99,235,0.4);
}
.btn-upgrade-seats:disabled { opacity: 0.6; transform: none; cursor: not-allowed; }

/* Member Table Wrapper */
.enterprise-member-table-wrapper {
    background: var(--avd-card);
    border: 1px solid var(--avd-border);
    border-radius: 16px; overflow: hidden;
    margin-bottom: 24px;
}
.enterprise-table-header {
    display: flex; align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--avd-border);
    flex-wrap: wrap; gap: 12px;
    background: var(--avd-card);
}
.enterprise-table-title {
    font-size: 0.9rem; font-weight: 800;
    color: var(--avd-text);
    display: flex; align-items: center; gap: 8px;
}
.enterprise-table-title i { color: var(--avd-primary); }
.enterprise-table-actions {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.enterprise-member-table {
    width: 100%; border-collapse: collapse;
}
.enterprise-member-table thead th {
    padding: 10px 16px;
    font-size: 0.7rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.8px;
    color: var(--avd-text-dim);
    border-bottom: 1px solid var(--avd-border);
    background: var(--avd-input-bg);
    text-align: left;
}
.enterprise-member-table tbody tr {
    border-bottom: 1px solid var(--avd-border);
    transition: var(--avd-transition);
    cursor: default;
}
.enterprise-member-table tbody tr:last-child { border-bottom: none; }
.enterprise-member-table tbody tr:hover { background: var(--avd-input-bg); }
.enterprise-member-table tbody td {
    padding: 10px 16px; font-size: 0.8rem;
    color: var(--avd-text-muted); vertical-align: middle;
}

/* Member components */
.member-info { display: flex; align-items: center; gap: 10px; }
.member-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.875rem; font-weight: 800; color: white; flex-shrink: 0;
}
.member-name { font-size: 0.85rem; font-weight: 700; color: var(--avd-text); }
.member-email-cell { color: var(--avd-text-dim) !important; font-size: 0.78rem !important; }
.member-status, .member-role {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px; border-radius: 20px;
    font-size: 0.72rem; font-weight: 700;
}
.member-status.active { background: rgba(16,185,129,0.1); color: #10b981; }
.member-status.pending { background: rgba(245,158,11,0.1); color: #f59e0b; }
.member-status.inactive { background: rgba(100,116,139,0.1); color: var(--avd-text-dim); }
.member-role.admin { background: rgba(37,99,235,0.1); color: #2563eb; }
.member-role.member { background: var(--avd-input-bg); color: var(--avd-text-muted); }
.member-action-btn {
    width: 30px; height: 30px; border-radius: 8px;
    border: 1px solid var(--avd-border);
    background: var(--avd-input-bg); color: var(--avd-text-muted);
    cursor: pointer; display: inline-flex; align-items: center;
    justify-content: center; font-size: 0.75rem;
    transition: var(--avd-transition);
}
.member-action-btn:hover { background: var(--avd-card); color: var(--avd-text); }
.member-action-btn.danger:hover {
    background: rgba(239,68,68,0.1); color: var(--avd-red);
    border-color: rgba(239,68,68,0.3);
}

/* Empty state */
.enterprise-empty-state {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; padding: 48px; text-align: center;
}
.enterprise-empty-icon {
    font-size: 2.5rem; color: var(--avd-text-dim); margin-bottom: 12px;
}
.enterprise-empty-title {
    font-size: 1rem; font-weight: 700;
    color: var(--avd-text-muted); margin-bottom: 6px;
}
.enterprise-empty-text { font-size: 0.825rem; color: var(--avd-text-dim); }

/* Buttons */
.btn-invite-member {
    display: inline-flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white; border: none;
    padding: 9px 18px; border-radius: 10px;
    font-size: 0.875rem; font-weight: 700;
    cursor: pointer; transition: var(--avd-transition);
    box-shadow: 0 4px 12px rgba(37,99,235,0.3);
    font-family: inherit;
}
.btn-invite-member:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(37,99,235,0.4);
}
.btn-invite-member:disabled { opacity: 0.5; transform: none; cursor: not-allowed; }

.btn-billing-portal {
    display: inline-flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white; border: none;
    padding: 10px 22px; border-radius: 10px;
    font-size: 0.875rem; font-weight: 700;
    cursor: pointer; transition: var(--avd-transition);
    box-shadow: 0 4px 12px rgba(245,158,11,0.3);
    white-space: nowrap; font-family: inherit;
}
.btn-billing-portal:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245,158,11,0.4);
}

.ent-btn-secondary {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px;
    border: 1px solid var(--avd-border);
    background: var(--avd-input-bg);
    border-radius: 8px; font-size: 0.8rem;
    font-weight: 600; color: var(--avd-text-muted);
    cursor: pointer; transition: var(--avd-transition);
    font-family: inherit;
}
.ent-btn-secondary:hover {
    border-color: var(--avd-primary); color: var(--avd-primary);
    background: rgba(102,126,234,0.06);
}

/* Search input */
.ent-search-input {
    padding: 8px 14px;
    border: 1px solid var(--avd-border);
    border-radius: 8px; font-size: 0.8rem;
    background: var(--avd-input-bg); color: var(--avd-text);
    outline: none; width: 220px;
    font-family: inherit; transition: var(--avd-transition);
}
.ent-search-input:focus {
    border-color: var(--avd-primary);
    box-shadow: 0 0 0 3px rgba(102,126,234,0.12);
}
.ent-search-input::placeholder { color: var(--avd-text-dim); }

/* ── 13. MODALS — variable-aware ──────────────────────────── */
.enterprise-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: none; align-items: center; justify-content: center; padding: 16px;
}
.enterprise-modal-overlay.active { display: flex; }
.enterprise-modal {
    background: var(--avd-card);
    border: 1px solid var(--avd-border);
    border-radius: 20px; max-width: 520px;
    width: 100%; box-shadow: var(--avd-shadow-lg);
    overflow: hidden; max-height: 90vh;
    display: flex; flex-direction: column;
}
.enterprise-modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 22px;
    background: linear-gradient(135deg, #1e3a5f, #2563eb);
    flex-shrink: 0;
}
.enterprise-modal-title {
    font-size: 1rem; font-weight: 800; color: white;
    display: flex; align-items: center; gap: 10px;
}
.enterprise-modal-close {
    width: 30px; height: 30px; border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
    color: white; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; transition: var(--avd-transition);
}
.enterprise-modal-close:hover { background: rgba(239,68,68,0.3); }
.enterprise-modal-body { padding: 22px; overflow-y: auto; flex: 1; }
.enterprise-modal-footer {
    display: flex; align-items: center; justify-content: flex-end;
    gap: 10px; padding: 14px 22px;
    border-top: 1px solid var(--avd-border); flex-shrink: 0;
    background: var(--avd-card);
}

/* Form elements in modals */
.form-label {
    font-size: 0.8rem; font-weight: 700;
    color: var(--avd-text); display: block; margin-bottom: 8px;
}
.form-input {
    width: 100%; box-sizing: border-box;
    padding: 10px 14px;
    border: 1px solid var(--avd-border);
    border-radius: 10px; font-size: 0.875rem;
    background: var(--avd-input-bg); color: var(--avd-text);
    font-family: inherit; outline: none;
    transition: var(--avd-transition);
}
.form-input:focus {
    border-color: var(--avd-primary);
    box-shadow: 0 0 0 3px rgba(102,126,234,0.12);
}
.form-input::placeholder { color: var(--avd-text-dim); }
.form-input option { background: var(--avd-card); color: var(--avd-text); }

/* ── 14. Toast container ──────────────────────────────────── */
#toastContainer {
    position: fixed; bottom: 24px; right: 24px;
    display: flex; flex-direction: column;
    gap: 10px; z-index: 99999; pointer-events: none;
}

/* ── 15. Responsive ───────────────────────────────────────── */
@media (max-width: 1024px) {
    .ent-section-grid { grid-template-columns: repeat(2, 1fr); }
    .enterprise-header-stats { gap: 10px; }
    .enterprise-stat-card { padding: 10px 14px; min-width: 70px; }
}
@media (max-width: 768px) {
    #entSidebar {
        position: fixed; left: 0; top: 0; bottom: 0;
        z-index: 1000; transform: translateX(-100%);
        overflow-y: auto; overflow-x: hidden;
    }
    #entSidebar.mobile-open {
        transform: translateX(0);
        box-shadow: 4px 0 40px rgba(0,0,0,0.3);
    }
    .ent-sidebar-toggle { display: none !important; }
    #entContent { padding: 14px 14px; }
    .ent-section-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .enterprise-member-table thead th:nth-child(4),
    .enterprise-member-table thead th:nth-child(5),
    .enterprise-member-table tbody td:nth-child(4),
    .enterprise-member-table tbody td:nth-child(5) { display: none; }
    .enterprise-admin-header { padding: 18px 20px; }
    .enterprise-company-name { font-size: 1.2rem; }
    .enterprise-header-stats { gap: 8px; }
    .enterprise-stat-value { font-size: 1.2rem; }
    .ent-billing-portal { flex-direction: column; align-items: flex-start; }
    .upgrade-seats-control { flex-wrap: wrap; }
}
@media (max-width: 480px) {
    .ent-section-grid { grid-template-columns: 1fr; }
    .enterprise-table-actions { flex-direction: column; align-items: stretch; }
    .ent-search-input { width: 100%; }
    .enterprise-header-stats { display: none; }
}

/* ══════════════════════════════════════════════════════════
   ENTERPRISE BILLING PANEL
══════════════════════════════════════════════════════════ */

/* ── Section header ─────────────────────────────────────── */
.ent-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}
.ent-section-header-left    { display:flex; align-items:center; gap:14px; }
.ent-section-header-icon    {
    width:44px; height:44px; border-radius:12px;
    background:linear-gradient(135deg,#667eea,#764ba2);
    display:flex; align-items:center; justify-content:center;
    font-size:1.1rem; color:white;
    box-shadow:0 4px 12px rgba(102,126,234,0.3);
}
.ent-section-header-title   { font-size:1.05rem; font-weight:900; color:var(--avd-text); }
.ent-section-header-sub     { font-size:0.78rem; color:var(--avd-text-dim); margin-top:2px; }
.ent-billing-updated        { font-size:10px; color:var(--avd-text-dim); font-style:italic; }

/* ── Loading / Empty states ─────────────────────────────── */
.ent-billing-loading,
.ent-billing-empty {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 12px; padding: 48px 24px;
    background: var(--avd-card);
    border: 1px solid var(--avd-border);
    border-radius: var(--avd-radius-lg, 14px);
    margin-bottom: 20px;
    color: var(--avd-text-dim);
    font-size: 0.9rem;
}
.ent-billing-loading i      { font-size:1.8rem; color:var(--avd-primary); }
.ent-billing-empty-icon     { font-size:3rem; }
.ent-billing-empty-title    { font-size:1rem; font-weight:800; color:var(--avd-text); }
.ent-billing-empty-text     { font-size:0.82rem; text-align:center; max-width:380px;
                               line-height:1.6; color:var(--avd-text-dim); }

/* ── Mini Stats ─────────────────────────────────────────── */
.ent-billing-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}
.ent-billing-stat-card {
    background: var(--avd-card);
    border: 1px solid var(--avd-border);
    border-radius: 14px;
    padding: 18px 20px;
    display: flex; align-items: center; gap: 14px;
    transition: all 0.2s ease;
}
.ent-billing-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
.ent-billing-stat-icon {
    width:44px; height:44px; border-radius:12px;
    display:flex; align-items:center; justify-content:center;
    font-size:1.1rem; flex-shrink:0;
}
.ent-billing-stat-value { font-size:1.4rem; font-weight:900; color:var(--avd-text); line-height:1; }
.ent-billing-stat-label { font-size:0.72rem; color:var(--avd-text-dim);
                           font-weight:700; margin-top:4px; text-transform:uppercase;
                           letter-spacing:0.5px; }

/* ── Two-col Grid ───────────────────────────────────────── */
.ent-billing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
@media (max-width: 900px) { .ent-billing-grid { grid-template-columns: 1fr; } }

/* ── Billing Cards ──────────────────────────────────────── */
.ent-billing-card {
    background: var(--avd-card);
    border: 1px solid var(--avd-border);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
}
.ent-billing-card-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px;
    background: var(--avd-input-bg);
    border-bottom: 1px solid var(--avd-border);
    font-size: 0.875rem; font-weight: 800; color: var(--avd-text);
}
.ent-billing-card-body { padding: 20px; }
.ent-billing-card-actions {
    padding: 14px 20px;
    border-top: 1px solid var(--avd-border);
    display: flex; gap: 10px; flex-wrap: wrap;
}

/* ── Status Badge ───────────────────────────────────────── */
.ent-billing-status-badge {
    font-size: 10px; font-weight: 800;
    padding: 4px 12px; border-radius: 20px;
    display: inline-flex; align-items: center;
}
.ent-billing-status-badge.active   { background:rgba(16,185,129,0.12); color:#10b981;
                                      border:1px solid rgba(16,185,129,0.3); }
.ent-billing-status-badge.trialing { background:rgba(245,158,11,0.12); color:#f59e0b;
                                      border:1px solid rgba(245,158,11,0.3); }
.ent-billing-status-badge.past_due { background:rgba(239,68,68,0.12); color:#ef4444;
                                      border:1px solid rgba(239,68,68,0.3); }
.ent-billing-status-badge.canceled { background:rgba(100,116,139,0.12); color:#64748b;
                                      border:1px solid rgba(100,116,139,0.3); }
.ent-billing-status-badge.paused   { background:rgba(102,126,234,0.12); color:#818cf8;
                                      border:1px solid rgba(102,126,234,0.3); }

/* ── Detail Rows ─────────────────────────────────────────── */
.ent-billing-detail-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--avd-border);
    font-size: 0.825rem;
}
.ent-billing-detail-row:last-child { border-bottom: none; }
.ent-billing-detail-label { color:var(--avd-text-dim); font-weight:600; }
.ent-billing-detail-value { color:var(--avd-text); font-weight:700; text-align:right;
                             max-width:60%; word-break:break-all; }
.ent-billing-detail-value.mono { font-family:monospace; font-size:10px;
                                  color:var(--avd-text-dim); }

/* ── Action Buttons ─────────────────────────────────────── */
.ent-billing-action-btn {
    padding: 8px 16px; border-radius: 8px; font-size: 0.8rem;
    font-weight: 700; cursor: pointer; border: 2px solid;
    transition: all 0.2s ease; display: inline-flex;
    align-items: center; gap: 6px; font-family: inherit;
}
.ent-billing-action-btn.success {
    background:rgba(16,185,129,0.1); color:#10b981; border-color:#10b981;
}
.ent-billing-action-btn.success:hover { background:#10b981; color:white; }
.ent-billing-action-btn.warning {
    background:rgba(245,158,11,0.1); color:#f59e0b; border-color:#f59e0b;
}
.ent-billing-action-btn.warning:hover { background:#f59e0b; color:white; }
.ent-billing-action-btn.danger  {
    background:rgba(239,68,68,0.1); color:#ef4444; border-color:#ef4444;
}
.ent-billing-action-btn.danger:hover  { background:#ef4444; color:white; }
.ent-billing-action-btn.hidden  { display:none !important; }

/* ── Payment Method ─────────────────────────────────────── */
.ent-billing-pm-loading,
.ent-billing-pm-empty {
    padding: 20px; text-align: center;
    color: var(--avd-text-dim); font-size: 12px;
}
.ent-billing-pm-card {
    background: var(--avd-input-bg);
    border: 1px solid var(--avd-border);
    border-radius: 12px; padding: 16px 18px;
    margin-bottom: 10px;
    display: flex; flex-direction: column; gap: 8px;
}
.ent-billing-pm-card.default {
    border-color: rgba(102,126,234,0.4);
    background: rgba(102,126,234,0.05);
}
.ent-billing-pm-brand {
    display: flex; align-items: center; justify-content: space-between;
}
.ent-billing-pm-default-badge {
    font-size: 9px; font-weight: 800; padding: 2px 8px;
    background: rgba(102,126,234,0.15); color: #818cf8;
    border-radius: 20px;
}
.ent-billing-pm-number { font-size: 14px; font-weight: 700; color: var(--avd-text);
                          letter-spacing: 2px; }
.ent-billing-pm-meta   { display:flex; gap:12px; font-size:11px; color:var(--avd-text-dim); }

/* ── Upcoming Invoice Banner ─────────────────────────────── */
.ent-billing-upcoming {
    margin-top: 14px;
    padding: 14px 16px;
    background: rgba(102,126,234,0.06);
    border: 1px solid rgba(102,126,234,0.2);
    border-radius: 10px;
}
.ent-billing-upcoming-title {
    font-size: 11px; font-weight: 800; color: var(--avd-primary);
    text-transform: uppercase; letter-spacing: 0.5px;
    margin-bottom: 8px; display: flex; align-items: center; gap: 6px;
}
.ent-billing-upcoming-row {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 12px; color: var(--avd-text-muted);
}

/* ── Invoices Table ─────────────────────────────────────── */
.ent-invoices-table {
    width: 100%; border-collapse: collapse; font-size: 13px;
}
.ent-invoices-table th {
    padding: 10px 16px; text-align: left;
    font-size: 10px; font-weight: 800; color: var(--avd-text-dim);
    text-transform: uppercase; letter-spacing: 0.5px;
    background: var(--avd-input-bg); border-bottom: 1px solid var(--avd-border);
}
.ent-invoices-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--avd-border);
    vertical-align: middle;
}
.ent-invoices-table tr:last-child td { border-bottom: none; }
.ent-invoices-table tr:hover td { background: var(--avd-hover, rgba(255,255,255,0.02)); }
.ent-invoices-loading {
    text-align: center; padding: 32px !important;
    color: var(--avd-text-dim); font-size: 12px;
}

/* Invoice status badges */
.ent-invoice-status {
    font-size: 10px; font-weight: 800; padding: 3px 10px;
    border-radius: 20px; display: inline-block;
}
.ent-invoice-status.paid  { background:rgba(16,185,129,0.12); color:#10b981; }
.ent-invoice-status.open  { background:rgba(245,158,11,0.12); color:#f59e0b; }
.ent-invoice-status.void  { background:rgba(100,116,139,0.12); color:#64748b; }
.ent-invoice-status.draft { background:rgba(102,126,234,0.12); color:#818cf8; }

/* Invoice action buttons */
.ent-invoice-action-btn {
    width:30px; height:30px; border-radius:8px;
    display:inline-flex; align-items:center; justify-content:center;
    background:var(--avd-input-bg); border:1px solid var(--avd-border);
    color:var(--avd-text-dim); cursor:pointer; font-size:11px;
    text-decoration:none; transition:all 0.15s;
}
.ent-invoice-action-btn:hover {
    background:var(--avd-primary); border-color:var(--avd-primary);
    color:white;
}
.ent-invoice-action-btn.warning:hover {
    background:#f59e0b; border-color:#f59e0b; color:white;
}

/* ── Danger Zone ─────────────────────────────────────────── */
.ent-billing-danger-zone {
    background: rgba(239,68,68,0.04);
    border: 1px solid rgba(239,68,68,0.2);
    border-radius: 16px; padding: 20px 24px;
    margin-bottom: 20px;
}
.ent-billing-danger-title {
    font-size: 13px; font-weight: 900; color: #ef4444;
    margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
}
.ent-billing-danger-item {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; flex-wrap: wrap;
}
.ent-billing-danger-btn {
    padding: 10px 20px; background: rgba(239,68,68,0.1);
    border: 2px solid #ef4444; color: #ef4444;
    border-radius: 10px; font-size: 13px; font-weight: 800;
    cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
    transition: all 0.2s; font-family: inherit; white-space: nowrap;
    flex-shrink: 0;
}
.ent-billing-danger-btn:hover { background: #ef4444; color: white; }

/* ── ScrollSpy fix for billing section ──────────────────── */
#section-billing { scroll-margin-top: 80px; }

/* ══════════════════════════════════════════════════════════
   LICENSE MANAGEMENT — Seats per Member
══════════════════════════════════════════════════════════ */

/* ── Thead license counter ──────────────────────────────── */
.ent-seat-legend-inline {
    font-size: 10px;
    font-weight: 700;
    padding: 1px 8px;
    background: rgba(102,126,234,0.1);
    color: var(--avd-primary);
    border-radius: 20px;
    white-space: nowrap;
}

/* ── License badges (in table) ──────────────────────────── */
.ent-license-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
}
.ent-license-badge.active {
    background: rgba(16,185,129,0.12);
    color: #10b981;
    border: 1px solid rgba(16,185,129,0.25);
}
.ent-license-badge.suspended {
    background: rgba(239,68,68,0.1);
    color: #ef4444;
    border: 1px solid rgba(239,68,68,0.2);
}
.ent-license-badge.pending {
    background: rgba(100,116,139,0.1);
    color: #94a3b8;
    border: 1px solid rgba(100,116,139,0.2);
}

/* ── Revoke / Restore buttons (inline) ─────────────────── */
.ent-seat-revoke-btn,
.ent-seat-restore-btn {
    width: 26px; height: 26px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center; justify-content: center;
    font-size: 11px;
    cursor: pointer;
    border: 1px solid;
    transition: all 0.15s ease;
    flex-shrink: 0;
}
.ent-seat-revoke-btn {
    background: rgba(239,68,68,0.08);
    color: #ef4444;
    border-color: rgba(239,68,68,0.25);
}
.ent-seat-revoke-btn:hover {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}
.ent-seat-restore-btn {
    background: rgba(16,185,129,0.08);
    color: #10b981;
    border-color: rgba(16,185,129,0.25);
}
.ent-seat-restore-btn:hover {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

/* ══════════════════════════════════════════════════════════
   MEMBER DETAIL MODAL
══════════════════════════════════════════════════════════ */

.ent-member-detail-modal {
    max-width: 560px;
    width: 100%;
}

/* ── Avatar in modal header ─────────────────────────────── */
.ent-member-detail-avatar {
    width: 52px; height: 52px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; font-weight: 900;
    color: white;
    border: 3px solid rgba(255,255,255,0.3);
    flex-shrink: 0;
}

/* ── License Banner ─────────────────────────────────────── */
.ent-md-license-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 14px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.ent-md-license-banner.active {
    background: rgba(16,185,129,0.08);
    border: 1px solid rgba(16,185,129,0.25);
}
.ent-md-license-banner.suspended {
    background: rgba(239,68,68,0.06);
    border: 1px solid rgba(239,68,68,0.2);
}
.ent-md-license-banner-left {
    display: flex; align-items: center; gap: 12px; flex: 1;
}
.ent-md-license-icon {
    width: 40px; height: 40px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; flex-shrink: 0;
}
.ent-md-license-banner.active .ent-md-license-icon {
    background: rgba(16,185,129,0.15); color: #10b981;
}
.ent-md-license-banner.suspended .ent-md-license-icon {
    background: rgba(239,68,68,0.1); color: #ef4444;
}
.ent-md-license-title {
    font-size: 13px; font-weight: 800; color: var(--avd-text);
    margin-bottom: 2px;
}
.ent-md-license-sub {
    font-size: 11px; color: var(--avd-text-dim);
}

/* ── License Toggle Button ──────────────────────────────── */
.ent-md-license-toggle {
    padding: 9px 18px;
    border-radius: 10px;
    font-size: 12px; font-weight: 800;
    cursor: pointer; border: 2px solid;
    display: inline-flex; align-items: center; gap: 7px;
    transition: all 0.2s ease; font-family: inherit;
    white-space: nowrap; flex-shrink: 0;
}
.ent-md-license-toggle.revoke {
    background: rgba(239,68,68,0.08);
    color: #ef4444; border-color: #ef4444;
}
.ent-md-license-toggle.revoke:hover {
    background: #ef4444; color: white;
}
.ent-md-license-toggle.restore {
    background: rgba(16,185,129,0.08);
    color: #10b981; border-color: #10b981;
}
.ent-md-license-toggle.restore:hover {
    background: #10b981; color: white;
}

/* ── Info Grid ──────────────────────────────────────────── */
.ent-md-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}
.ent-md-info-item {
    background: var(--avd-input-bg);
    border: 1px solid var(--avd-border);
    border-radius: 10px;
    padding: 12px 14px;
}
.ent-md-info-label {
    font-size: 10px; font-weight: 800;
    color: var(--avd-text-dim);
    text-transform: uppercase; letter-spacing: 0.5px;
    margin-bottom: 5px;
}
.ent-md-info-value {
    font-size: 13px; font-weight: 700;
    color: var(--avd-text);
}
.ent-md-info-value.mono {
    font-family: monospace; font-size: 10px;
    color: var(--avd-text-dim); word-break: break-all;
}

/* ── Section title inside modal ─────────────────────────── */
.ent-md-section-title {
    font-size: 11px; font-weight: 800;
    color: var(--avd-text-dim);
    text-transform: uppercase; letter-spacing: 0.6px;
    margin-bottom: 12px;
    display: flex; align-items: center; gap: 7px;
}

/* ── License History Timeline ───────────────────────────── */
.ent-md-history {
    display: flex; flex-direction: column; gap: 0;
    padding-left: 4px;
}
.ent-md-history-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 14px;
    position: relative;
}
.ent-md-history-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 11px; top: 26px;
    width: 2px; bottom: 0;
    background: var(--avd-border);
}
.ent-md-history-dot {
    width: 24px; height: 24px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    background: #10b981;
    position: relative; z-index: 1;
}
.ent-md-history-content { flex: 1; padding-top: 2px; }
.ent-md-history-label {
    font-size: 12px; font-weight: 700; color: var(--avd-text);
    margin-bottom: 2px;
}
.ent-md-history-date {
    font-size: 10px; color: var(--avd-text-dim);
}

/* ── Scroll spy update ──────────────────────────────────── */
#section-members { scroll-margin-top: 80px; }

/* ════════════════════════════════════════════════════════════════
   CHECKOUT — Enterprise Plan Card : Corrections & Overrides
   À ajouter EN FIN de enterprise.css
   ════════════════════════════════════════════════════════════════ */

/* ── 1. Affichage & Layout de base ───────────────────────────── */
.plan-option.enterprise-plan {
    display: flex !important;          /* override du display:none inline via JS */
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 24px;
    border-radius: 20px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
    z-index: 0;
    /* Gradient dégradé navy → blue enterprise */
    background: linear-gradient(145deg, #0a1628 0%, #1e3a5f 50%, #1e40af 100%);
    border: 2px solid rgba(59, 130, 246, 0.35);
    color: white;
    width: 100%;
    box-sizing: border-box;
}

/* ── 2. Badge "🏢 Enterprise" ─────────────────────────────────── */
.plan-option.enterprise-plan .plan-badge,
.enterprise-badge-plan {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    color: white;
    border: 1px solid rgba(96, 165, 250, 0.5);
    border-radius: 999px;
    padding: 5px 14px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    margin-bottom: 14px;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.35);
    text-transform: none;
    width: fit-content;
}

/* ── 3. Nom du plan ───────────────────────────────────────────── */
.plan-option.enterprise-plan .plan-name {
    color: white !important;
    font-size: 1.25rem;
    font-weight: 900;
    margin: 0 0 12px 0;
    position: relative;
    z-index: 2;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* ── 4. Bloc Prix ("From $8 /seat/mo") ───────────────────────── */
.plan-option.enterprise-plan .plan-price {
    display: flex;
    align-items: baseline;
    gap: 2px;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
    row-gap: 0;
}

/* Texte "From" */
.plan-option.enterprise-plan .plan-price > span:first-child {
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    color: rgba(255, 255, 255, 0.75) !important;
    margin-right: 4px;
    align-self: center;
    font-style: italic;
}

/* Symbole "$" */
.plan-option.enterprise-plan .plan-price .currency {
    font-size: 1.4rem;
    font-weight: 800;
    color: white !important;
    line-height: 1;
    align-self: flex-start;
    margin-top: 4px;
}

/* Montant "8" */
.plan-option.enterprise-plan .plan-price .amount {
    font-size: 2.8rem;
    font-weight: 900;
    color: white !important;
    line-height: 1;
    letter-spacing: -0.03em;
}

/* "/seat/mo" */
.plan-option.enterprise-plan .plan-price .period {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7) !important;
    align-self: flex-end;
    padding-bottom: 4px;
    margin-left: 2px;
}

/* ── 5. Liste des features ────────────────────────────────────── */
.plan-option.enterprise-plan .plan-features {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.plan-option.enterprise-plan .plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85) !important;
    line-height: 1.4;
}

/* Icône check */
.plan-option.enterprise-plan .plan-features li i.fa-check-circle {
    color: #60a5fa !important;
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Texte en gras dans les features */
.plan-option.enterprise-plan .plan-features li strong {
    color: white !important;
    font-weight: 700;
}

/* ── 6. Séparateur / diviseur visuel entre prix et features ──── */
.plan-option.enterprise-plan::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.18) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ── 7. État selected ─────────────────────────────────────────── */
.plan-option.enterprise-plan.selected {
    border-color: #60a5fa;
    box-shadow:
        0 0 0 3px rgba(59, 130, 246, 0.35),
        0 20px 60px rgba(30, 58, 95, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* ── 8. Hover ─────────────────────────────────────────────────── */
.plan-option.enterprise-plan:hover {
    border-color: rgba(59, 130, 246, 0.7);
    box-shadow:
        0 24px 64px rgba(30, 58, 95, 0.5),
        0 0 40px rgba(59, 130, 246, 0.22);
    transform: translateY(-5px);
}

/* ── 9. Stripes overlay (décoratif, z-index bas) ─────────────── */
.plan-option.enterprise-plan::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 18px,
        rgba(255, 255, 255, 0.025) 18px,
        rgba(255, 255, 255, 0.025) 36px
    );
    pointer-events: none;
    z-index: 1;
}

/* ── 10. Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
    .plan-option.enterprise-plan {
        padding: 22px 18px;
    }

    .plan-option.enterprise-plan .plan-price .amount {
        font-size: 2.2rem;
    }

    .plan-option.enterprise-plan .plan-name {
        font-size: 1.1rem;
    }

    .plan-option.enterprise-plan .plan-features li {
        font-size: 0.82rem;
    }
}

@media (max-width: 480px) {
    .plan-option.enterprise-plan {
        padding: 18px 16px;
    }

    .plan-option.enterprise-plan .plan-price .amount {
        font-size: 2rem;
    }

    .plan-option.enterprise-plan .plan-price .currency {
        font-size: 1.2rem;
    }
}