/*
 * Twenty-One Persian / RTL layer
 * Loaded after WHMCS theme.css. Keeping all overrides here makes upgrades easier.
 */

:root {
    --rtl-primary: #4f46e5;
    --rtl-primary-dark: #3730a3;
    --rtl-accent: #06b6d4;
    --rtl-ink: #172033;
    --rtl-muted: #64748b;
    --rtl-surface: #ffffff;
    --rtl-soft: #f4f7fb;
    --rtl-border: #e2e8f0;
    --rtl-radius: 18px;
    --rtl-shadow: 0 18px 50px rgba(30, 41, 59, .09);
}

html[dir="rtl"] {
    direction: rtl;
    text-align: right;
    scroll-behavior: smooth;
}

html[dir="rtl"] body,
html[dir="rtl"] button,
html[dir="rtl"] input,
html[dir="rtl"] select,
html[dir="rtl"] textarea,
html[dir="rtl"] .tooltip,
html[dir="rtl"] .popover {
    font-family: Tahoma, Arial, sans-serif;
}

body.whmcs-rtl {
    color: var(--rtl-ink);
    background: var(--rtl-soft);
    text-align: right;
}

/* Bootstrap 4 physical helpers, mirrored for RTL. */
html[dir="rtl"] .ml-auto { margin-right: auto !important; margin-left: 0 !important; }
html[dir="rtl"] .mr-auto { margin-left: auto !important; margin-right: 0 !important; }
html[dir="rtl"] .ml-1 { margin-right: .25rem !important; margin-left: 0 !important; }
html[dir="rtl"] .mr-1 { margin-left: .25rem !important; margin-right: 0 !important; }
html[dir="rtl"] .ml-2 { margin-right: .5rem !important; margin-left: 0 !important; }
html[dir="rtl"] .mr-2 { margin-left: .5rem !important; margin-right: 0 !important; }
html[dir="rtl"] .ml-3 { margin-right: 1rem !important; margin-left: 0 !important; }
html[dir="rtl"] .mr-3 { margin-left: 1rem !important; margin-right: 0 !important; }
html[dir="rtl"] .ml-4 { margin-right: 1.5rem !important; margin-left: 0 !important; }
html[dir="rtl"] .mr-4 { margin-left: 1.5rem !important; margin-right: 0 !important; }
html[dir="rtl"] .ml-5 { margin-right: 3rem !important; margin-left: 0 !important; }
html[dir="rtl"] .mr-5 { margin-left: 3rem !important; margin-right: 0 !important; }
html[dir="rtl"] .pl-0 { padding-right: 0 !important; padding-left: initial !important; }
html[dir="rtl"] .pr-0 { padding-left: 0 !important; padding-right: initial !important; }
html[dir="rtl"] .pl-1 { padding-right: .25rem !important; padding-left: 0 !important; }
html[dir="rtl"] .pr-1 { padding-left: .25rem !important; padding-right: 0 !important; }
html[dir="rtl"] .pl-2 { padding-right: .5rem !important; padding-left: 0 !important; }
html[dir="rtl"] .pr-2 { padding-left: .5rem !important; padding-right: 0 !important; }
html[dir="rtl"] .pl-3 { padding-right: 1rem !important; padding-left: 0 !important; }
html[dir="rtl"] .pr-3 { padding-left: 1rem !important; padding-right: 0 !important; }
html[dir="rtl"] .pl-4 { padding-right: 1.5rem !important; padding-left: 0 !important; }
html[dir="rtl"] .pr-4 { padding-left: 1.5rem !important; padding-right: 0 !important; }
html[dir="rtl"] .pl-5 { padding-right: 3rem !important; padding-left: 0 !important; }
html[dir="rtl"] .pr-5 { padding-left: 3rem !important; padding-right: 0 !important; }
html[dir="rtl"] .float-left { float: right !important; }
html[dir="rtl"] .float-right { float: left !important; }
html[dir="rtl"] .pull-left { float: right !important; }
html[dir="rtl"] .pull-right { float: left !important; }
html[dir="rtl"] .text-left { text-align: right !important; }
html[dir="rtl"] .text-right { text-align: left !important; }

@media (min-width: 576px) {
    html[dir="rtl"] .float-sm-left { float: right !important; }
    html[dir="rtl"] .float-sm-right { float: left !important; }
    html[dir="rtl"] .text-sm-left { text-align: right !important; }
    html[dir="rtl"] .text-sm-right { text-align: left !important; }
}

@media (min-width: 768px) {
    html[dir="rtl"] .float-md-left { float: right !important; }
    html[dir="rtl"] .float-md-right { float: left !important; }
    html[dir="rtl"] .text-md-left { text-align: right !important; }
    html[dir="rtl"] .text-md-right { text-align: left !important; }
    html[dir="rtl"] .ml-md-4 { margin-right: 1.5rem !important; margin-left: 0 !important; }
}

@media (min-width: 992px) {
    html[dir="rtl"] .float-lg-left { float: right !important; }
    html[dir="rtl"] .float-lg-right { float: left !important; }
    html[dir="rtl"] .text-lg-left { text-align: right !important; }
    html[dir="rtl"] .text-lg-right { text-align: left !important; }
}

/* Header and navigation. */
.whmcs-rtl .header,
.whmcs-rtl .footer,
.whmcs-rtl .card,
.whmcs-rtl .modal-content,
.whmcs-rtl .panel {
    direction: rtl;
}

.whmcs-rtl .header .navbar-brand {
    margin-right: 0;
    margin-left: 1rem;
}

.whmcs-rtl .navbar-nav,
.whmcs-rtl .navbar-collapse,
.whmcs-rtl .input-group,
.whmcs-rtl .btn-group,
.whmcs-rtl .pagination {
    direction: rtl;
}

.whmcs-rtl .dropdown-menu {
    right: 0;
    left: auto;
    text-align: right;
}

.whmcs-rtl .dropdown-menu-right {
    right: auto;
    left: 0;
}

.whmcs-rtl .dropdown-item,
.whmcs-rtl .nav-link,
.whmcs-rtl .list-group-item,
.whmcs-rtl .sidebar .card-body,
.whmcs-rtl .sidebar .panel-body {
    text-align: right;
}

.whmcs-rtl .dropdown-toggle::after {
    margin-right: .35rem;
    margin-left: 0;
}

.whmcs-rtl .navbar .search .input-group-prepend,
.whmcs-rtl .input-group-prepend {
    margin-right: 0;
    margin-left: -1px;
}

.whmcs-rtl .input-group-append {
    margin-right: -1px;
    margin-left: 0;
}

.whmcs-rtl .input-group > .form-control:not(:last-child),
.whmcs-rtl .input-group > .custom-select:not(:last-child) {
    border-radius: 0 .35rem .35rem 0;
}

.whmcs-rtl .input-group > .form-control:not(:first-child),
.whmcs-rtl .input-group > .custom-select:not(:first-child) {
    border-radius: .35rem 0 0 .35rem;
}

.whmcs-rtl .input-group-prepend .btn,
.whmcs-rtl .input-group-prepend .input-group-text {
    border-radius: 0 .35rem .35rem 0;
}

.whmcs-rtl .input-group-append .btn,
.whmcs-rtl .input-group-append .input-group-text {
    border-radius: .35rem 0 0 .35rem;
}

.whmcs-rtl .master-breadcrumb .breadcrumb {
    direction: rtl;
    padding-right: 0;
}

.whmcs-rtl .breadcrumb-item + .breadcrumb-item {
    padding-right: .5rem;
    padding-left: 0;
}

.whmcs-rtl .breadcrumb-item + .breadcrumb-item::before {
    float: right;
    padding-right: 0;
    padding-left: .5rem;
    content: "\2039";
}

/* Forms, tables, alerts and common WHMCS components. */
.whmcs-rtl label,
.whmcs-rtl legend,
.whmcs-rtl .form-check,
.whmcs-rtl .modal-header,
.whmcs-rtl .modal-body,
.whmcs-rtl .modal-footer,
.whmcs-rtl .alert,
.whmcs-rtl .card-header,
.whmcs-rtl .card-body,
.whmcs-rtl .card-footer {
    text-align: right;
}

.whmcs-rtl .form-check {
    padding-right: 1.25rem;
    padding-left: 0;
}

.whmcs-rtl .form-check-input {
    margin-right: -1.25rem;
    margin-left: 0;
}

.whmcs-rtl .custom-control {
    padding-right: 1.5rem;
    padding-left: 0;
}

.whmcs-rtl .custom-control-label::before,
.whmcs-rtl .custom-control-label::after {
    right: -1.5rem;
    left: auto;
}

.whmcs-rtl .close {
    margin: -1rem auto -1rem -1rem;
}

.whmcs-rtl table,
.whmcs-rtl .dataTables_wrapper,
.whmcs-rtl .table-list {
    direction: rtl;
    text-align: right;
}

.whmcs-rtl .table th,
.whmcs-rtl .table td {
    text-align: right;
}

.whmcs-rtl .dataTables_filter {
    text-align: left;
}

.whmcs-rtl .dataTables_length,
.whmcs-rtl div.dataTables_info {
    text-align: right;
}

.whmcs-rtl .pagination {
    padding-right: 0;
}

.whmcs-rtl .page-item:first-child .page-link {
    border-radius: 0 .25rem .25rem 0;
}

.whmcs-rtl .page-item:last-child .page-link {
    border-radius: .25rem 0 0 .25rem;
}

.whmcs-rtl .alert .fas.pull-left,
.whmcs-rtl .alert .far.pull-left,
.whmcs-rtl .alert .fal.pull-left {
    margin-right: -3px;
    margin-left: 14px;
}

.whmcs-rtl .alert .alert-text {
    margin-right: 56px;
    margin-left: 0;
}

.whmcs-rtl .sidebar .sidebar-menu-item-icon-wrapper {
    margin-right: 0;
    margin-left: .5rem;
}

.whmcs-rtl .sidebar .sidebar-menu-item-badge {
    margin-right: auto;
    margin-left: 0;
}

.whmcs-rtl .fa-chevron-right::before { content: "\f053"; }
.whmcs-rtl .fa-chevron-left::before { content: "\f054"; }
.whmcs-rtl .fa-arrow-right::before { content: "\f060"; }
.whmcs-rtl .fa-arrow-left::before { content: "\f061"; }

.whmcs-rtl .iti {
    direction: ltr;
    width: 100%;
}

.whmcs-rtl .iti input {
    direction: ltr;
    text-align: left;
}

.whmcs-rtl input[type="email"],
.whmcs-rtl input[name="domain"],
.whmcs-rtl input[name="email"],
.whmcs-rtl .domain-input,
.whmcs-rtl code,
.whmcs-rtl pre {
    direction: ltr;
    text-align: left;
}

/* Login and authentication pages. */
.template-login #main-body {
    padding-top: 48px;
    padding-bottom: 48px;
    background:
        radial-gradient(circle at 85% 15%, rgba(79, 70, 229, .08), transparent 28%),
        var(--rtl-soft);
}

.template-login .login-form .card {
    overflow: hidden;
    border: 1px solid var(--rtl-border);
    border-radius: var(--rtl-radius);
    box-shadow: 0 22px 55px rgba(30, 41, 59, .10);
}

.template-login .login-form .card-body {
    padding-top: 42px !important;
    padding-bottom: 42px !important;
}

.template-login .login-form .h3 {
    margin-bottom: 8px;
    color: var(--rtl-ink);
    font-weight: 800;
}

.template-login .login-form .form-control-label {
    margin-bottom: 8px;
    color: #334155;
    font-weight: 700;
}

.template-login .login-form .input-group {
    overflow: hidden;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.template-login .login-form .input-group:focus-within {
    border-color: var(--rtl-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, .12);
}

.template-login .login-form .input-group .form-control,
.template-login .login-form .input-group .input-group-text,
.template-login .login-form .input-group .btn {
    border: 0;
    box-shadow: none;
}

.template-login .login-form .input-group .form-control {
    min-height: 48px;
}

.template-login .login-form .input-group-text,
.template-login .login-form .btn-reveal-pw {
    color: #64748b;
    background: #f8fafc;
}

.template-login .login-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 6px;
}

.template-login .login-remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.template-login .login-remember input {
    width: 16px;
    height: 16px;
    margin: 0;
}

.template-login .login-form-actions .btn {
    min-width: 108px;
    padding: 10px 20px;
    border-radius: 9px;
    font-weight: 700;
}

.template-login .login-form .card-footer {
    padding-top: 18px;
    padding-bottom: 18px;
    text-align: center;
    background: #f8fafc;
}

@media (max-width: 575.98px) {
    .template-login #main-body {
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .template-login .login-form .card-body {
        padding: 30px 22px !important;
    }
}

/* Authenticated client dashboard. */
.template-clientareahome #main-body {
    padding-top: 38px;
    padding-bottom: 58px;
    background: var(--rtl-soft);
}

.whmcs-rtl .tiles .row {
    margin-right: -8px;
    margin-left: -8px;
}

.whmcs-rtl .tiles .row > div {
    padding: 8px;
}

.whmcs-rtl .tiles .tile,
.whmcs-rtl .tiles .row > div:last-child .tile,
.whmcs-rtl .tiles div:nth-child(2) > .tile,
.whmcs-rtl .tiles div:nth-child(1) > .tile {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    grid-template-rows: auto auto 3px;
    grid-template-areas:
        "icon stat"
        "icon title"
        "highlight highlight";
    direction: ltr;
    align-items: center;
    column-gap: 18px;
    row-gap: 4px;
    min-height: 132px;
    padding: 22px 24px;
    overflow: hidden;
    text-align: right;
    background: #fff;
    border: 1px solid var(--rtl-border);
    border-radius: 16px;
    box-shadow: 0 8px 26px rgba(30, 41, 59, .05);
}

.whmcs-rtl .tiles .tile:hover {
    background: #fff;
    border-color: #c7d2fe;
    box-shadow: 0 14px 34px rgba(30, 41, 59, .10);
    transform: translateY(-3px);
}

.whmcs-rtl .tiles .tile .stat {
    grid-area: stat;
    z-index: 1;
    align-self: end;
    margin: 0;
    color: var(--rtl-ink);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
    direction: rtl;
    text-align: right;
}

.whmcs-rtl .tiles .tile .title {
    grid-area: title;
    z-index: 1;
    align-self: start;
    margin: 0;
    color: var(--rtl-muted);
    font-size: .82rem;
    line-height: 1.6;
    white-space: normal;
    direction: rtl;
    text-align: right;
}

.whmcs-rtl .tiles .tile i {
    position: static;
    grid-area: icon;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    width: 58px;
    height: 58px;
    color: var(--rtl-primary);
    background: #eef2ff;
    border-radius: 15px;
    font-size: 1.65rem;
    line-height: 1;
}

.whmcs-rtl .tiles .tile:hover i {
    color: #fff;
    background: var(--rtl-primary);
    font-size: 1.65rem;
}

.whmcs-rtl .tiles .tile .highlight {
    grid-area: highlight;
    align-self: end;
    width: 100%;
    height: 3px;
    margin: 12px 0 0;
}

.whmcs-rtl .client-home-cards .card {
    overflow: hidden;
    margin-bottom: 20px;
    background: #fff;
    border: 1px solid var(--rtl-border);
    border-radius: 15px;
    box-shadow: 0 8px 28px rgba(30, 41, 59, .05);
}

.whmcs-rtl .client-home-cards .card-header {
    padding: 17px 20px;
    border-bottom: 1px solid var(--rtl-border);
}

.whmcs-rtl .client-home-cards .card-title {
    color: var(--rtl-ink);
    font-weight: 800;
}

.whmcs-rtl .client-home-cards .list-group {
    border-color: var(--rtl-border) !important;
}

.whmcs-rtl .client-home-cards .list-group .list-group-item {
    padding: 10px 18px;
    border-color: #eef2f7;
}

.whmcs-rtl .client-home-cards .card-footer {
    padding: 12px 18px;
    background: #f8fafc;
}

.whmcs-rtl .sidebar .card-sidebar {
    overflow: hidden;
    border: 1px solid var(--rtl-border);
    border-radius: 14px;
    box-shadow: 0 7px 24px rgba(30, 41, 59, .05);
}

.whmcs-rtl .sidebar .card-sidebar .card-header {
    padding: 15px 17px;
    background: #fff;
    border-bottom: 1px solid var(--rtl-border);
}

.whmcs-rtl .sidebar .card-sidebar .card-title {
    font-weight: 800;
}

.whmcs-rtl .sidebar .list-group-item {
    padding: 10px 16px;
    border-color: #eef2f7;
}

.whmcs-rtl .sidebar .list-group-item.active,
.whmcs-rtl .sidebar .list-group-item.active:hover,
.whmcs-rtl .sidebar .list-group-item.active:focus {
    color: var(--rtl-primary);
    background: #eef2ff;
    border-color: #e0e7ff;
}

@media (max-width: 767.98px) {
    .template-clientareahome #main-body {
        padding-top: 22px;
    }

    .whmcs-rtl .tiles .tile {
        grid-template-columns: 48px minmax(0, 1fr);
        column-gap: 12px;
        min-height: 120px;
        padding: 18px;
    }

    .whmcs-rtl .tiles .tile i {
        width: 48px;
        height: 48px;
        font-size: 1.4rem;
    }
}

/* Homepage: spacious, product-led and intentionally lightweight. */
.is-homepage #main-body {
    padding: 0;
    overflow: hidden;
}

.is-homepage #main-body > .container {
    max-width: none;
    padding: 0;
}

.is-homepage #main-body > .container > .row {
    margin: 0;
}

.is-homepage #main-body .primary-content {
    padding: 0;
}

.is-homepage .master-breadcrumb {
    display: none;
}

.home-shell {
    background: var(--rtl-soft);
}

.home-hero {
    position: relative;
    isolation: isolate;
    color: #fff;
    background:
        radial-gradient(circle at 16% 20%, rgba(34, 211, 238, .25), transparent 28%),
        radial-gradient(circle at 82% 76%, rgba(129, 140, 248, .28), transparent 32%),
        linear-gradient(135deg, #111827 0%, #312e81 55%, #4338ca 100%);
    padding: 86px 0 72px;
}

.home-hero::before,
.home-hero::after {
    position: absolute;
    z-index: -1;
    content: "";
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
}

.home-hero::before {
    width: 420px;
    height: 420px;
    top: -235px;
    left: -90px;
}

.home-hero::after {
    width: 290px;
    height: 290px;
    right: -120px;
    bottom: -175px;
}

.home-hero__inner {
    position: relative;
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.home-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 8px 14px;
    color: #dbeafe;
    background: rgba(255, 255, 255, .09);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 999px;
    font-size: .88rem;
}

.home-hero__eyebrow i { color: #67e8f9; }

.home-hero h1 {
    max-width: 760px;
    margin: 0 auto 18px;
    color: #fff;
    font-size: clamp(2rem, 4.4vw, 4rem);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -.04em;
}

.home-hero__lead {
    max-width: 650px;
    margin: 0 auto 30px;
    color: #cbd5e1;
    font-size: 1.1rem;
    line-height: 2;
}

.home-hero__actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.home-hero__actions .btn {
    min-width: 150px;
    padding: 12px 22px;
    border-radius: 12px;
    font-weight: 700;
}

.home-hero__actions .btn-light {
    color: var(--rtl-primary-dark);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .18);
}

.home-hero__actions .btn-ghost {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .3);
    background: rgba(255, 255, 255, .06);
}

.home-hero__actions .btn-ghost:hover {
    color: #fff;
    background: rgba(255, 255, 255, .13);
}

.home-domain-wrap {
    position: relative;
    z-index: 3;
    margin-top: -36px;
}

.home-domain-wrap .home-domain-search {
    max-width: 940px;
    margin: 0 auto;
    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: 20px;
    box-shadow: var(--rtl-shadow);
}

.home-domain-wrap .home-domain-search > .container {
    max-width: none;
}

.home-domain-wrap .home-domain-search .p-5 {
    padding: 28px 32px !important;
}

.home-domain-wrap .home-domain-search h2 {
    margin-bottom: 20px;
    color: var(--rtl-ink);
    font-size: 1.3rem;
    font-weight: 800;
}

.home-domain-wrap .input-group {
    direction: ltr;
    padding: 5px;
    background: #f8fafc;
    border: 1px solid var(--rtl-border);
    border-radius: 13px;
}

.home-domain-wrap .form-control {
    height: 50px;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.home-domain-wrap .input-group .btn {
    margin-left: 6px;
    padding-right: 22px;
    padding-left: 22px;
    border: 0;
    border-radius: 9px;
}

.home-domain-wrap .tld-logos {
    direction: ltr;
}

.home-section {
    padding: 82px 0;
}

.home-section--white { background: #fff; }

.home-section__heading {
    max-width: 690px;
    margin: 0 auto 38px;
    text-align: center;
}

.home-section__kicker {
    display: block;
    margin-bottom: 10px;
    color: var(--rtl-primary);
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .04em;
}

.home-section__heading h2 {
    margin-bottom: 12px;
    color: var(--rtl-ink);
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    font-weight: 800;
}

.home-section__heading p {
    margin: 0;
    color: var(--rtl-muted);
    line-height: 1.9;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 255px;
    padding: 28px;
    overflow: hidden;
    color: var(--rtl-ink);
    background: #fff;
    border: 1px solid var(--rtl-border);
    border-radius: var(--rtl-radius);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.service-card::after {
    position: absolute;
    width: 120px;
    height: 120px;
    left: -60px;
    bottom: -60px;
    content: "";
    background: rgba(79, 70, 229, .05);
    border-radius: 50%;
}

.service-card:hover {
    color: var(--rtl-ink);
    text-decoration: none;
    transform: translateY(-6px);
    border-color: #c7d2fe;
    box-shadow: var(--rtl-shadow);
}

.service-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 22px;
    color: var(--rtl-primary);
    background: #eef2ff;
    border-radius: 14px;
    font-size: 1.35rem;
}

.service-card h3 {
    margin-bottom: 10px;
    font-size: 1.15rem;
    font-weight: 800;
}

.service-card p {
    flex-grow: 1;
    margin-bottom: 22px;
    color: var(--rtl-muted);
    line-height: 1.8;
}

.service-card__link {
    color: var(--rtl-primary);
    font-weight: 700;
}

.service-card__link i {
    margin-right: 6px;
    font-size: .8rem;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.quick-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 145px;
    padding: 20px 12px;
    color: var(--rtl-ink);
    text-align: center;
    background: #fff;
    border: 1px solid var(--rtl-border);
    border-radius: 16px;
    transition: transform .2s ease, color .2s ease, box-shadow .2s ease;
}

.quick-link:hover {
    color: var(--rtl-primary);
    text-decoration: none;
    transform: translateY(-4px);
    box-shadow: 0 14px 35px rgba(30, 41, 59, .08);
}

.quick-link i {
    margin-bottom: 14px;
    color: var(--rtl-primary);
    font-size: 1.65rem;
}

.quick-link span {
    font-weight: 700;
    line-height: 1.6;
}

.home-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 36px 42px;
    color: #fff;
    background: linear-gradient(115deg, #312e81, #4f46e5);
    border-radius: 22px;
    box-shadow: var(--rtl-shadow);
}

.home-cta h2 {
    margin-bottom: 8px;
    color: #fff;
    font-size: 1.55rem;
    font-weight: 800;
}

.home-cta p { margin: 0; color: #c7d2fe; }
.home-cta .btn { flex: 0 0 auto; padding: 12px 24px; border-radius: 12px; font-weight: 800; }

.is-homepage .footer { margin-top: 0; }

@media (max-width: 991.98px) {
    .whmcs-rtl .navbar-collapse .navbar-nav { align-items: stretch; }
    .whmcs-rtl .navbar-collapse .dropdown-menu { text-align: right; }
    .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .quick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
    .home-hero { padding: 64px 0 62px; }
    .home-hero h1 { font-size: 2.25rem; }
    .home-section { padding: 62px 0; }
    .home-domain-wrap { margin-top: -24px; padding: 0 15px; }
    .home-domain-wrap .home-domain-search .p-5 { padding: 24px 18px !important; }
    .service-grid { grid-template-columns: 1fr; }
    .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-cta { align-items: stretch; flex-direction: column; padding: 30px 24px; text-align: center; }
}

@media (max-width: 575.98px) {
    .home-hero { padding-top: 52px; }
    .home-hero h1 { font-size: 1.85rem; }
    .home-hero__lead { font-size: 1rem; }
    .home-hero__actions { flex-direction: column; }
    .home-hero__actions .btn { width: 100%; }
    .quick-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .quick-link { min-height: 125px; font-size: .88rem; }
}

@media (prefers-reduced-motion: reduce) {
    html[dir="rtl"] { scroll-behavior: auto; }
    .service-card,
    .quick-link { transition: none; }
}
