body {
    min-height: 100vh;
}

.saas-menu .nav-view-link.active,
.saas-menu .mm-active > .nav-view-link {
    background: rgba(255, 255, 255, 0.12);
}

.saas-side-note {
    margin: 16px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    line-height: 1.8;
}

.saas-platform-mark {
    display: flex;
    align-items: center;
    gap: 14px;
}

.saas-platform-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.saas-top-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.saas-hero-card {
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 34%),
        linear-gradient(135deg, rgba(9, 18, 56, 0.9), rgba(24, 105, 155, 0.78));
    box-shadow: 0 24px 60px rgba(4, 10, 28, 0.28);
    border-radius: 24px;
}

.saas-eyebrow {
    display: inline-flex;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.saas-title {
    margin-bottom: 14px;
    color: #fff;
    font-size: clamp(2rem, 3vw, 3.2rem);
    font-weight: 700;
    line-height: 1.05;
}

.saas-copy {
    color: rgba(255, 255, 255, 0.78);
    font-size: 15px;
    line-height: 1.9;
}

.saas-summary-box {
    height: 100%;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.saas-summary-box strong {
    display: block;
    margin-top: 8px;
    font-size: 1.35rem;
}

.saas-summary-label {
    color: rgba(255, 255, 255, 0.64);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.saas-metric-card {
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
}

.saas-metric-card .card-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.saas-metric-icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 24px;
    color: #fff;
}

.saas-views {
    padding-bottom: 24px;
}

.saas-view {
    display: none;
}

.saas-view.is-active {
    display: block;
}

.saas-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 1.25rem 1.25rem 0;
    border-bottom: 0;
}

.saas-stack-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.saas-stack-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.saas-stack-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.saas-stack-meta {
    color: #aab0bc;
    font-size: 12px;
}

.saas-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.saas-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 11px;
    font-weight: 700;
}

.saas-badge.is-active,
.saas-badge.is-live,
.saas-badge.is-completed,
.saas-badge.is-published {
    color: #0bb783;
    background: rgba(11, 183, 131, 0.1);
    border-color: rgba(11, 183, 131, 0.18);
}

.saas-badge.is-draft,
.saas-badge.is-trial,
.saas-badge.is-pending,
.saas-badge.is-pending_dns,
.saas-badge.is-pending_verification,
.saas-badge.is-queued,
.saas-badge.is-planned,
.saas-badge.is-missing {
    color: #ffb84d;
    background: rgba(255, 184, 77, 0.12);
    border-color: rgba(255, 184, 77, 0.18);
}

.saas-badge.is-suspended,
.saas-badge.is-paused,
.saas-badge.is-failed,
.saas-badge.is-archived {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    border-color: rgba(255, 107, 107, 0.18);
}

.saas-badge.is-public {
    color: #59a7ff;
    background: rgba(89, 167, 255, 0.12);
    border-color: rgba(89, 167, 255, 0.18);
}

.saas-table th {
    border-top: 0;
    white-space: nowrap;
}

.saas-table td {
    vertical-align: middle;
}

.saas-table .btn {
    white-space: nowrap;
}

.saas-app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.saas-app-card {
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%;
}

.saas-app-card h6 {
    margin-bottom: 8px;
}

.saas-app-card p {
    color: #aab0bc;
    font-size: 13px;
    line-height: 1.7;
}

.saas-store-price {
    margin-top: 14px;
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
}

.saas-store-subline {
    margin-top: 12px;
    color: #aab0bc;
    font-size: 12px;
    line-height: 1.7;
}

.saas-app-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.saas-app-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.saas-plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.saas-plan-card {
    padding: 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.saas-plan-price {
    margin: 14px 0;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
}

.saas-plan-price small {
    font-size: 0.85rem;
    color: #aab0bc;
}

.saas-plan-card ul {
    padding-left: 18px;
    margin-bottom: 0;
    color: #c7ccda;
    line-height: 1.9;
}

.saas-domain-detail {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.saas-detail-card {
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.saas-detail-label {
    display: block;
    margin-bottom: 6px;
    color: #aab0bc;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.saas-detail-value {
    word-break: break-word;
    font-size: 14px;
    line-height: 1.7;
}

.saas-checklist {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0;
    padding-left: 18px;
    color: #c7ccda;
    line-height: 1.8;
}

.saas-workspace-grid {
    margin-bottom: 8px;
}

.saas-workspace-shell {
    border-radius: 22px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.saas-frame-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.04);
}

.saas-frame-shell {
    position: relative;
    min-height: calc(100vh - 360px);
    background: #0b1120;
}

.saas-frame {
    display: block;
    width: 100%;
    height: calc(100vh - 360px);
    min-height: calc(100vh - 360px);
    border: 0;
    background: #fff;
}

.saas-frame-loading {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(11, 17, 32, 0.6);
    color: #fff;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

.saas-frame-loading.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.saas-timeline {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.saas-timeline-item {
    position: relative;
    padding: 16px 18px 16px 52px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.saas-timeline-item::before {
    content: "";
    position: absolute;
    top: 18px;
    left: 18px;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: #6ea8fe;
    box-shadow: 0 0 0 6px rgba(110, 168, 254, 0.14);
}

.saas-timeline-meta {
    display: block;
    margin-top: 6px;
    color: #aab0bc;
    font-size: 12px;
}

.saas-empty {
    padding: 32px 18px;
    text-align: center;
    border-radius: 18px;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    color: #aab0bc;
}

#feedback .alert {
    border-radius: 18px;
}

.overlay {
    display: none;
}

.wrapper.toggled .overlay {
    display: block;
}

.back-to-top {
    display: none;
    align-items: center;
    justify-content: center;
}

@media (max-width: 991.98px) {
    .saas-top-actions {
        gap: 8px;
    }

    .saas-frame-shell,
    .saas-frame {
        min-height: calc(100vh - 420px);
        height: calc(100vh - 420px);
    }
}

@media (max-width: 767.98px) {
    .page-content {
        padding: 1rem 1rem 0 1rem;
    }

    .saas-platform-chip {
        display: none;
    }

    .saas-top-actions {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .saas-card-header,
    .saas-frame-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .saas-frame-shell,
    .saas-frame {
        min-height: calc(100vh - 480px);
        height: calc(100vh - 480px);
    }
}
