/* ═══════════════════════════════════════════════════════════════
   SaaS Kit – Website / Portal Styles
   ═══════════════════════════════════════════════════════════════ */

/* ── Hero Section ────────────────────────────────────────────── */
.saas-hero {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    position: relative;
    overflow: hidden;
}

.saas-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

/* ── Plan Cards ──────────────────────────────────────────────── */
.saas-plan-card {
    /* Internal padding so content doesn't hug the edges. */
    padding: 2.25rem 1.75rem 1.75rem;          /* 36px 28px 28px */
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);

    /* Flex column so the CTA can sit at the bottom via .mt-auto. */
    display: flex;
    flex-direction: column;

    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
    position: relative;
}

.saas-plan-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2) !important;
}

/* Featured (middle) card gets more breathing room and a stronger
   shadow — but the same internal padding so the inside doesn't
   feel cramped vs. the others. */
.saas-plan-featured {
    padding: 2.75rem 2rem 2rem;                /* 44px 32px 32px */
    border: 2px solid #6366f1;
    transform: scale(1.03);
    box-shadow: 0 16px 48px rgba(99,102,241,0.25) !important;
}

.saas-plan-featured:hover {
    transform: scale(1.03) translateY(-6px);
}

.saas-popular-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
}

.saas-popular-badge .badge {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
}

/* ── Plan Icon ───────────────────────────────────────────────── */
.saas-plan-icon {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(99,102,241,0.18);
}

/* ── Pricing Numbers ─────────────────────────────────────────── */
.saas-price-amount,
.saas-price-value {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.saas-price-amount .currency-symbol {
    font-size: 24px;
    vertical-align: top;
    margin-right: 2px;
}

/* ── Feature List spacing inside the card ─────────────────────── */
.saas-feature-list {
    padding-left: 0;
}

/* ── Feature List ────────────────────────────────────────────── */
.saas-feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    font-size: 14px;
    color: #374151;
}

.saas-feature-item i {
    color: #10b981;
    font-size: 14px;
    flex-shrink: 0;
}

/* ── Portal Dashboard ────────────────────────────────────────── */
.saas-instance-card {
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}

.saas-instance-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transform: translateY(-3px);
}

.saas-instance-status-bar {
    height: 4px;
    width: 100%;
}

.saas-status-running    { background: #10b981; }
.saas-status-suspended  { background: #f59e0b; }
.saas-status-expired    { background: #ef4444; }
.saas-status-creating   { background: #3b82f6; animation: saas-pulse 1.5s infinite; }

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

/* ── Login Button ────────────────────────────────────────────── */
.saas-login-btn {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff !important;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.2s, transform 0.1s;
}

.saas-login-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    color: #fff !important;
}

/* ── Domain Setup ────────────────────────────────────────────── */
.saas-domain-input-group .input-group-text {
    background: #f3f4f6;
    border-left: none;
    color: #6b7280;
    font-size: 13px;
}

.saas-domain-input-group input {
    border-right: none;
}

.saas-domain-input-group input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}

/* ── Checkout Page ───────────────────────────────────────────── */
.saas-checkout-hero {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    padding: 2.5rem 0 2rem;
}

.saas-checkout-card {
    padding: 2.25rem 2rem;                /* 36px / 32px */
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.saas-plan-summary {
    padding: 2rem 1.75rem;                /* 32px / 28px */
    border-radius: 16px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
}

.saas-plan-summary .text-muted {
    color: rgba(255,255,255,0.7) !important;
}

/* Bootstrap doesn't ship .text-white-75; define it so the order
   summary doesn't fall back to opaque white. */
.text-white-75 {
    color: rgba(255,255,255,0.75) !important;
}

/* In the order-summary the plan icon doesn't get an inline gradient
   like it does on the pricing page — give it one here so it looks
   right out-of-the-box. */
.saas-plan-summary .saas-plan-icon {
    background: rgba(255,255,255,0.18);
    box-shadow: none;
}

/* ── Invoice List in Portal ──────────────────────────────────── */
.saas-invoice-row {
    transition: background 0.15s;
}

.saas-invoice-row:hover {
    background: #f8fafc;
}

/* ── FAQ ─────────────────────────────────────────────────────── */
.saas-faq .accordion-button:not(.collapsed) {
    background: #ede9fe;
    color: #5b21b6;
    box-shadow: none;
}

.saas-faq .accordion-button:focus {
    box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}

/* ── Breadcrumb ──────────────────────────────────────────────── */
.saas-breadcrumb {
    font-size: 13px;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
    .saas-plan-card,
    .saas-plan-featured {
        padding: 1.75rem 1.25rem 1.5rem;        /* 28px 20px 24px */
    }
    .saas-plan-featured {
        transform: scale(1);
    }
    .saas-hero h1 {
        font-size: 28px;
    }
}
