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_ssl,
.saas-badge.is-pending_verification,
.saas-badge.is-ready,
.saas-badge.is-waiting_dns,
.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-not_started,
.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-badge.is-partial {
    color: #7cc7ff;
    background: rgba(124, 199, 255, 0.12);
    border-color: rgba(124, 199, 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-domain-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.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-signup-shell {
    align-items: stretch;
}

.saas-signup-card {
    max-width: 920px;
}

.saas-signup-form .form-text {
    color: rgba(255, 255, 255, 0.62);
}

.saas-signup-note {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.saas-signup-apps {
    display: grid;
    gap: 14px;
}

.saas-signup-app-card {
    display: block;
    cursor: pointer;
}

.saas-signup-app-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.saas-signup-app-card__body {
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.saas-signup-app-card input:checked + .saas-signup-app-card__body {
    border-color: rgba(255, 193, 7, 0.7);
    background: rgba(255, 193, 7, 0.08);
    transform: translateY(-1px);
}

.saas-signup-app-card__icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 22px;
}

.saas-signup-success {
    display: grid;
    gap: 14px;
    margin-top: 24px;
}

.saas-signup-success__steps {
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.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);
    }
}

.saas-user-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 6px 8px 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.saas-user-pill__meta {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.saas-user-pill__meta strong {
    color: #fff;
    font-size: 12px;
}

.saas-user-pill__meta small {
    color: rgba(255, 255, 255, 0.62);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.saas-public-body,
.saas-auth-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.14), transparent 28%),
        radial-gradient(circle at bottom right, rgba(255, 184, 77, 0.12), transparent 24%),
        linear-gradient(160deg, #081327 0%, #102447 48%, #16385f 100%);
}

.saas-public-shell,
.saas-auth-shell {
    max-width: 1480px;
    margin: 0 auto;
    padding: 24px 24px 48px;
}

.saas-public-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
    padding: 16px 18px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(7, 15, 32, 0.54);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 45px rgba(4, 10, 28, 0.16);
}

.saas-public-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.saas-public-brand img {
    width: 52px;
    height: 52px;
    border-radius: 18px;
}

.saas-public-brand h1 {
    margin: 0;
    color: #fff;
    font-size: 1.6rem;
}

.saas-public-brand span {
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
}

.saas-public-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 14px;
}

.saas-locale-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
}

.saas-locale-btn {
    min-width: 48px;
    padding: 8px 12px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(255, 255, 255, 0.75);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.saas-locale-btn.is-active {
    background: rgba(255, 193, 7, 0.92);
    color: #0c1222;
}

.saas-public-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.saas-public-nav a {
    color: rgba(255, 255, 255, 0.78);
    white-space: nowrap;
}

.saas-public-main,
.saas-auth-shell {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.saas-public-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 24px;
    align-items: stretch;
    padding: 40px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.15), transparent 26%),
        linear-gradient(135deg, rgba(7, 15, 46, 0.96), rgba(19, 95, 148, 0.82));
    box-shadow: 0 28px 65px rgba(4, 10, 28, 0.28);
}

.saas-public-hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.saas-public-hero-copy h2,
.saas-auth-showcase h2 {
    color: #fff;
    font-size: clamp(2rem, 3vw, 3.4rem);
    line-height: 1.05;
    margin-bottom: 16px;
}

.saas-public-hero-copy p,
.saas-auth-showcase p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 16px;
    line-height: 1.9;
}

.saas-public-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.saas-public-inline-note {
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 13px;
}

.saas-public-hero-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-content: start;
}

.saas-public-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 30px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 18px 42px rgba(4, 10, 28, 0.14);
}

.saas-public-section-head {
    max-width: 880px;
}

.saas-public-section-head h3 {
    margin-bottom: 10px;
    color: #fff;
    font-size: 1.8rem;
}

.saas-public-section-head p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.saas-public-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.saas-launch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.saas-plan-grid,
.saas-app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
    justify-content: center;
    gap: 18px;
}

.saas-feature-card,
.saas-launch-card,
.saas-cta-card,
.saas-auth-card,
.saas-auth-showcase {
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 18px 45px rgba(4, 10, 28, 0.18);
}

.saas-feature-card,
.saas-launch-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 26px;
}

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

.saas-feature-card h4,
.saas-launch-card h4,
.saas-cta-card h3,
.saas-auth-card h3 {
    color: #fff;
    margin-bottom: 10px;
}

.saas-feature-card p,
.saas-launch-card p,
.saas-cta-card p,
.saas-auth-card p {
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.8;
}

.saas-launch-list,
.saas-auth-points {
    margin: 16px 0 0;
    padding-left: 18px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
}

.saas-launch-list {
    margin-top: auto;
}

.saas-cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding: 30px;
}

.saas-public-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-top: 8px;
}

.saas-auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
    align-items: center;
    gap: 26px;
}

.saas-auth-showcase,
.saas-auth-card {
    padding: 32px;
}

.saas-auth-points {
    padding-left: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.saas-auth-point {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.saas-auth-point i {
    font-size: 22px;
}

.saas-auth-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.saas-auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.saas-auth-footer,
.saas-auth-support {
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
}

.saas-auth-footer a,
.saas-auth-support a {
    color: #fff;
}

@media (max-width: 991.98px) {
    .saas-public-hero,
    .saas-auth-shell {
        grid-template-columns: 1fr;
    }

    .saas-public-grid,
    .saas-launch-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .saas-cta-card,
    .saas-public-footer,
    .saas-public-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 767.98px) {
    .saas-public-shell {
        padding: 16px 14px 28px;
    }

    .saas-public-header,
    .saas-public-section,
    .saas-public-hero,
    .saas-auth-showcase,
    .saas-auth-card {
        padding: 22px;
    }

    .saas-public-header-actions,
    .saas-public-nav {
        width: 100%;
    }

    .saas-public-nav {
        border-radius: 20px;
    }

    .saas-public-grid,
    .saas-launch-grid,
    .saas-public-hero-panel {
        grid-template-columns: 1fr;
    }

    .saas-plan-grid,
    .saas-app-grid {
        grid-template-columns: 1fr;
    }
}

.saas-public-body[data-locale="ar"] {
    font-family: "Tajawal", "Roboto", sans-serif;
}

.saas-public-body[data-locale="ar"] .saas-public-header,
.saas-public-body[data-locale="ar"] .saas-public-section,
.saas-public-body[data-locale="ar"] .saas-public-hero,
.saas-public-body[data-locale="ar"] .saas-public-footer {
    text-align: right;
}

.saas-public-body[data-locale="ar"] .saas-public-header-actions {
    justify-content: flex-start;
}

.saas-public-body[data-locale="ar"] .saas-public-nav,
.saas-public-body[data-locale="ar"] .saas-public-actions,
.saas-public-body[data-locale="ar"] .saas-public-footer {
    flex-direction: row-reverse;
}

.saas-public-body[data-locale="ar"] .saas-launch-list {
    padding-left: 0;
    padding-right: 18px;
}
