﻿/* الصفحة الرئيسية - نسخة خارجية مضغوطة وقابلة للقراءة */
body {
    background: radial-gradient(circle at 85% 8%,rgba(15,118,110,.16),transparent 34%),radial-gradient(circle at 5% 95%,rgba(124,58,237,.10),transparent 34%),linear-gradient(180deg,#f8fafc 0%,#eef6f4 100%);
}


/* =================================
   خطوط الصفحة الرئيسية
   ================================= */

@font-face {
    font-family: "DINNextHome";
    src: url("../fonts/din-next-lt-w23-regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "HelveticaHome";
    src: url("../fonts/HelveticaNeue.ttc") format("collection");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}
.content-wrap {
    padding: 10px !important;
}

.home-ultra {
    direction: rtl;
    padding: 12px 8px 24px;
    color: #0f172a;
}

.home-wrap {
    max-width: 1440px;
    margin: 0 auto;
}

.home-hero {
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    padding: 30px;
    color: #fff;
    background: radial-gradient(circle at 15% 18%,rgba(255,255,255,.18),transparent 28%),radial-gradient(circle at 85% 80%,rgba(45,212,191,.24),transparent 34%),linear-gradient(135deg,#0f172a 0%,#0f766e 55%,#022c22 100%);
    box-shadow: 0 30px 85px rgba(15,23,42,.20);
}

    .home-hero::before {
        content: "";
        position: absolute;
        width: 420px;
        height: 420px;
        border-radius: 999px;
        background: rgba(255,255,255,.08);
        left: -160px;
        top: -170px;
    }

    .home-hero::after {
        content: "";
        position: absolute;
        width: 260px;
        height: 260px;
        border-radius: 999px;
        background: rgba(250,204,21,.14);
        right: -95px;
        bottom: -120px;
    }

.home-hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0,1.08fr) minmax(410px,.92fr);
    gap: 34px;
    align-items: stretch;
}

.home-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.28);
    color: #fff;
    font-weight: 850;
    margin-bottom: 14px;
}

.home-hero h1 {
    margin-bottom: 9px;
    font-size: clamp(1.6rem,2.55vw,2.45rem);
    line-height: 1.4;
    font-weight: 950;
}

.home-hero p {
    color: rgba(255,255,255,.80);
    font-size: 1.04rem;
    line-height: 2;
    margin: 0;
    max-width: 860px;
    font-weight: 750;
}

.home-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 22px;
}

    .home-actions .btn {
        border-radius: 999px;
        font-weight: 950;
        padding: 11px 22px;
        box-shadow: 0 12px 28px rgba(0,0,0,.13);
    }

.hero-side-card {
    width: 100%;
    height: 100%;
    min-height: 330px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient( 145deg,rgba(255,255,255,.16),rgba(255,255,255,.08) );
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 30px;
    backdrop-filter: blur(14px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.15),0 18px 45px rgba(0,0,0,.12);
}

.hero-logo-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
}

.hero-logo {
    width: 76px;
    height: 76px;
    flex: 0 0 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 23px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 14px 28px rgba(0,0,0,.16);
}

    .hero-logo img {
        max-width: 62px;
        max-height: 62px;
        object-fit: contain;
    }

.hero-side-title {
    color: #fff;
    font-size: 1.08rem;
    font-weight: 950;
    line-height: 1.7;
}

.hero-side-sub {
    margin-top: 4px;
    color: rgba(255,255,255,.72);
    font-size: .86rem;
    font-weight: 750;
    line-height: 1.8;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 11px;
}

.hero-stat-paid {
    background: rgba(45,212,191,.16);
    border-color: rgba(153,246,228,.30);
}

    .hero-stat-paid .hero-stat-num {
        color: #ccfbf1;
    }

.hero-stat {
    min-height: 92px;
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 20px;
    background: rgba(255,255,255,.13);
    border: 1px solid rgba(255,255,255,.20);
    transition: transform .2s ease,background .2s ease;
}

    .hero-stat:hover {
        transform: translateY(-2px);
        background: rgba(255,255,255,.18);
    }

.hero-stat-num {
    color: #fff;
    font-size: 1.45rem;
    font-weight: 950;
    line-height: 1.1;
}

.hero-stat-label {
    margin-top: 8px;
    color: rgba(255,255,255,.73);
    font-size: .78rem;
    font-weight: 800;
    line-height: 1.6;
}

.hero-stat-num {
    font-weight: 950;
    font-size: 1.4rem;
    line-height: 1;
}

.hero-stat-label {
    margin-top: 7px;
    font-weight: 800;
    color: rgba(255,255,255,.72);
    font-size: .78rem;
    line-height: 1.6;
}

.section-head {
    margin: 32px 0 18px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 7px 14px;
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #bbf7d0;
    font-weight: 950;
    margin-bottom: 9px;
    font-size: .86rem;
}

.section-title {
    margin: 0;
    color: #0f172a;
    font-weight: 950;
    line-height: 1.5;
}

.section-sub {
    margin: 5px 0 0;
    color: #64748b;
    font-weight: 750;
    line-height: 1.8;
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 16px;
}

.portal-card {
    min-height: 250px;
    border-radius: 30px;
    padding: 24px;
    text-decoration: none;
    color: #0f172a;
    background: linear-gradient(180deg,rgba(255,255,255,.98),rgba(255,255,255,.92));
    border: 1px solid rgba(226,232,240,.98);
    box-shadow: 0 18px 48px rgba(15,23,42,.075);
    transition: .25s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    .portal-card:hover {
        transform: translateY(-8px);
        color: #0f172a;
        box-shadow: 0 30px 80px rgba(15,23,42,.15);
        border-color: rgba(15,118,110,.30);
    }

    .portal-card::before {
        content: "";
        position: absolute;
        inset: 0;
        opacity: 0;
        transition: .25s ease;
        background: linear-gradient(135deg,rgba(15,118,110,.10),transparent 48%);
    }

    .portal-card:hover::before {
        opacity: 1;
    }

    .portal-card::after {
        content: "";
        position: absolute;
        width: 220px;
        height: 180px;
        border-radius: 999px;
        left: -82px;
        bottom: -92px;
        opacity: .10;
    }

    .portal-card > div {
        position: relative;
        z-index: 2;
    }

.portal-icon {
    width: 64px;
    height: 64px;
    border-radius: 24px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.95rem;
    box-shadow: 0 18px 35px rgba(15,23,42,.16);
    margin-bottom: 16px;
}

.portal-title {
    font-size: 1.28rem;
    font-weight: 950;
    margin-bottom: 10px;
}

.portal-desc {
    color: #64748b;
    line-height: 1.9;
    font-weight: 750;
    margin: 0;
    font-size: .94rem;
}

.portal-tags {
    margin-top: 18px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.portal-tag {
    border-radius: 999px;
    padding: 5px 10px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    color: #475569;
    font-size: .78rem;
    font-weight: 950;
}

.portal-foot {
    margin-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 950;
    color: #0f766e;
    position: relative;
    z-index: 2;
}

.portal-exam .portal-icon, .portal-exam::after {
    background: linear-gradient(135deg,#0f766e,#0f172a);
}

.portal-admission .portal-icon, .portal-admission::after {
    background: linear-gradient(135deg,#06b6d4,#0f766e);
}

.portal-survey .portal-icon, .portal-survey::after {
    background: linear-gradient(135deg,#7c3aed,#0f766e);
}

.practice-panel {
    margin-top: 18px;
    border-radius: 34px;
    padding: 24px;
    background: radial-gradient(circle at 90% 8%,rgba(15,118,110,.10),transparent 32%),linear-gradient(180deg,rgba(255,255,255,.96),rgba(255,255,255,.86));
    border: 1px solid rgba(226,232,240,.98);
    box-shadow: 0 22px 70px rgba(15,23,42,.08);
}

.practice-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 16px;
}

.practice-card {
    min-height: 245px;
    border-radius: 28px;
    padding: 22px;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 16px 42px rgba(15,23,42,.07);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    transition: .22s ease;
}

    .practice-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 28px 70px rgba(15,23,42,.13);
    }

    .practice-card::after {
        content: "";
        position: absolute;
        width: 175px;
        height: 175px;
        border-radius: 999px;
        background: rgba(15,118,110,.10);
        left: -80px;
        bottom: -90px;
    }

.practice-top {
    position: relative;
    z-index: 2;
}

.practice-icon {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    background: linear-gradient(135deg,#0f766e,#16a34a);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
    margin-bottom: 16px;
    box-shadow: 0 14px 30px rgba(15,118,110,.20);
}

.practice-name {
    color: #0f172a;
    font-weight: 950;
    font-size: 1.12rem;
    margin-bottom: 9px;
    line-height: 1.6;
}

.practice-desc {
    color: #64748b;
    font-weight: 750;
    line-height: 1.8;
    margin: 0 0 16px;
    font-size: .9rem;
}

.practice-count {
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    color: #64748b;
    font-weight: 850;
}

    .practice-count strong {
        color: #0f172a;
        font-size: 1.05rem;
    }

.practice-actions {
    position: relative;
    z-index: 2;
    margin-top: 16px;
}

.practice-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 999px;
    padding: 10px 18px;
    background: #ecfdf5;
    color: #166534;
    border: 1px solid #bbf7d0;
    font-weight: 950;
    text-decoration: none;
    min-width: 145px;
}

    .practice-btn:hover {
        color: #166534;
    }

.empty-public {
    border: 1px dashed #cbd5e1;
    background: #f8fafc;
    color: #64748b;
    border-radius: 24px;
    padding: 28px;
    text-align: center;
    font-weight: 900;
}

.latest-layout {
    margin-top: 18px;
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 16px;
    align-items: stretch;
}

.latest-feature {
    border-radius: 30px;
    padding: 24px;
    color: #fff;
    background: radial-gradient(circle at 15% 20%,rgba(255,255,255,.16),transparent 30%),linear-gradient(135deg,#0f172a,#0f766e);
    box-shadow: 0 18px 48px rgba(15,23,42,.14);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 260px;
    overflow: hidden;
    position: relative;
}

    .latest-feature::after {
        content: "";
        width: 190px;
        height: 190px;
        border-radius: 999px;
        background: rgba(255,255,255,.10);
        position: absolute;
        left: -80px;
        bottom: -90px;
    }

    .latest-feature > div {
        position: relative;
        z-index: 2;
    }

    .latest-feature h3 {
        font-weight: 950;
        line-height: 1.6;
        margin: 0 0 10px;
    }

    .latest-feature p {
        color: rgba(255,255,255,.76);
        font-weight: 750;
        line-height: 1.9;
        margin: 0;
    }

.latest-list {
    display: grid;
    gap: 12px;
}

.latest-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    box-shadow: 0 12px 30px rgba(15,23,42,.06);
}

.latest-name {
    font-weight: 950;
    color: #0f172a;
    line-height: 1.6;
}

.latest-meta {
    color: #64748b;
    font-weight: 750;
    font-size: .88rem;
    margin-top: 4px;
}

.footer-panel {
    margin-top: 28px;
    border-radius: 28px;
    background: radial-gradient(circle at 10% 20%,rgba(255,255,255,.12),transparent 30%),linear-gradient(135deg,#0f172a,#0f766e);
    color: #fff;
    box-shadow: 0 16px 42px rgba(15,23,42,.14);
    overflow: hidden;
}

.footer-inner {
    padding: 16px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-logo {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: rgba(255,255,255,.92);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0,0,0,.16);
    flex: 0 0 auto;
}

    .footer-logo img {
        max-width: 48px;
        max-height: 48px;
        object-fit: contain;
    }

.footer-title {
    font-weight: 950;
    font-size: 1rem;
}

.footer-sub {
    color: rgba(255,255,255,.72);
    font-size: .86rem;
    font-weight: 750;
    margin-top: 4px;
}

.footer-copy {
    text-align: left;
    color: rgba(255,255,255,.78);
    font-weight: 850;
    line-height: 1.8;
    font-size: .9rem;
}

    .footer-copy a {
        color: #fff;
        text-decoration: none;
        font-weight: 950;
    }

        .footer-copy a:hover {
            text-decoration: underline;
        }

.visitor-message-card {
    direction: rtl;
    text-align: right;
    background: linear-gradient(135deg,#ecfdf5,#ffffff);
    border: 1px solid rgba(16,185,129,.25);
    border-radius: 24px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 14px 34px rgba(15,23,42,.08);
    margin: 18px 0;
    flex-wrap: wrap;
}

.visitor-message-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: #10b981;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    flex-shrink: 0;
}

.visitor-message-content {
    flex: 1;
    min-width: 240px;
}

    .visitor-message-content h4 {
        margin: 0;
        font-weight: 900;
        color: #064e3b;
    }

    .visitor-message-content p {
        margin: 6px 0 0;
        color: #475569;
        font-weight: 700;
        line-height: 1.8;
    }

.portal-list {
    display: grid;
    gap: 12px;
}

.portal-list-item {
    min-height: 92px;
    padding: 15px 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
    color: #0f172a;
    text-decoration: none;
    border-radius: 20px;
    background: rgba(255,255,255,.96);
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 28px rgba(15,23,42,.06);
    transition: .2s ease;
}

    .portal-list-item:hover {
        color: #0f172a;
        border-color: rgba(15,118,110,.30);
        box-shadow: 0 18px 42px rgba(15,23,42,.12);
        transform: translateX(-4px);
    }

.portal-list-icon {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 17px;
    color: #fff;
    font-size: 1.45rem;
    box-shadow: 0 10px 22px rgba(15,23,42,.16);
}

.portal-list-content {
    flex: 1;
    min-width: 0;
}

.portal-list-title {
    margin-bottom: 4px;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 950;
}

.portal-list-description {
    margin: 0;
    color: #64748b;
    font-size: .86rem;
    font-weight: 750;
    line-height: 1.7;
}

.portal-list-action {
    min-width: 118px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    color: #0f766e;
    font-size: .82rem;
    font-weight: 950;
    white-space: nowrap;
}

    .portal-list-action i {
        font-size: 1.1rem;
    }

.portal-list-item.portal-exam .portal-list-icon {
    background: linear-gradient(135deg,#0f766e,#0f172a);
}

.portal-list-item.portal-admission .portal-list-icon {
    background: linear-gradient(135deg,#06b6d4,#0f766e);
}

.portal-list-item.portal-survey .portal-list-icon {
    background: linear-gradient(135deg,#7c3aed,#0f766e);
}

.practice-list {
    display: grid;
    gap: 12px;
}

.practice-list-item {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 9px 26px rgba(15,23,42,.055);
    transition: .2s ease;
}

    .practice-list-item:hover {
        border-color: rgba(15,118,110,.28);
        box-shadow: 0 16px 38px rgba(15,23,42,.10);
        transform: translateX(-3px);
    }

.practice-list-icon {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 17px;
    color: #fff;
    font-size: 1.35rem;
    background: linear-gradient(135deg,#0f766e,#16a34a);
    box-shadow: 0 10px 22px rgba(15,118,110,.20);
}

.practice-list-content {
    flex: 1;
    min-width: 0;
}

.practice-list-title {
    margin-bottom: 4px;
    color: #0f172a;
    font-size: .96rem;
    font-weight: 950;
    line-height: 1.6;
}

.practice-list-description {
    margin: 0;
    color: #64748b;
    font-size: .81rem;
    font-weight: 750;
    line-height: 1.7;
}

.practice-list-count {
    min-width: 115px;
    padding: 8px 12px;
    text-align: center;
    border-radius: 14px;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: .72rem;
    font-weight: 850;
}

    .practice-list-count strong {
        display: block;
        margin-top: 2px;
        color: #0f172a;
        font-size: 1.05rem;
        font-weight: 950;
    }

.practice-list-action {
    min-width: 150px;
    display: flex;
    justify-content: flex-end;
}

    .practice-list-action .practice-btn {
        min-width: 135px;
        padding: 9px 15px;
        margin: 0;
    }

@media (max-width: 768px) {
    .portal-list-item, .practice-list-item {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .portal-list-content, .practice-list-content {
        min-width: calc(100% - 75px);
    }

    .portal-list-action {
        width: 100%;
        padding-right: 71px;
        justify-content: flex-start;
    }

    .practice-list-count {
        margin-right: 69px;
    }

    .practice-list-action {
        width: 100%;
        padding-right: 69px;
        justify-content: flex-start;
    }
}

@media (max-width: 576px) {
    .portal-list-item, .practice-list-item {
        padding: 13px;
        gap: 11px;
        border-radius: 17px;
    }

    .portal-list-icon, .practice-list-icon {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
        border-radius: 15px;
    }

    .portal-list-content, .practice-list-content {
        min-width: calc(100% - 60px);
    }

    .portal-list-action, .practice-list-action, .practice-list-count {
        width: 100%;
        min-width: 0;
        margin-right: 0;
        padding-right: 59px;
    }

        .practice-list-action .practice-btn {
            width: 100%;
        }
}

.paid-exams-section {
    position: relative;
    margin-top: 42px;
    padding: 0;
}

.paid-kicker {
    color: #0f766e;
    border-color: #99f6e4;
    background: #f0fdfa;
}

.paid-all-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    color: #0f766e;
    background: #fff;
    text-decoration: none;
    font-size: .88rem;
    font-weight: 900;
    box-shadow: 0 7px 18px rgba(15,23,42,.045);
    transition: .2s ease;
}

    .paid-all-link:hover {
        color: #fff;
        border-color: #0f766e;
        background: #0f766e;
        transform: translateY(-1px);
    }

.paid-layout {
    display: grid;
    grid-template-columns: minmax(310px,.8fr) minmax(500px,1.2fr);
    gap: 16px;
    align-items: stretch;
}

.paid-feature {
    position: relative;
    overflow: hidden;
    min-height: 340px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 28px;
    border-radius: 30px;
    color: #fff;
    background: radial-gradient( circle at 15% 18%,rgba(255,255,255,.17),transparent 31% ),radial-gradient( circle at 90% 90%,rgba(45,212,191,.19),transparent 34% ),linear-gradient( 135deg,#0f172a 0%,#134e4a 48%,#0f766e 100% );
    box-shadow: 0 20px 55px rgba(15,23,42,.16);
}

    .paid-feature::before {
        content: "";
        position: absolute;
        width: 220px;
        height: 220px;
        left: -90px;
        bottom: -105px;
        border-radius: 999px;
        background: rgba(255,255,255,.09);
    }

    .paid-feature > * {
        position: relative;
        z-index: 2;
    }

.paid-feature-badge {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 13px;
    margin-bottom: 18px;
    border: 1px solid rgba(255,255,255,.26);
    border-radius: 999px;
    color: #fff;
    background: rgba(255,255,255,.13);
    font-size: .8rem;
    font-weight: 900;
    backdrop-filter: blur(5px);
}

.paid-feature h3 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 1.45rem;
    font-weight: 950;
    line-height: 1.75;
}

.paid-feature p {
    margin: 0;
    color: rgba(255,255,255,.78);
    font-size: .91rem;
    font-weight: 750;
    line-height: 2;
}

.paid-feature-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-top: 25px;
}

.paid-secure-note {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,.86);
    font-size: .8rem;
    font-weight: 850;
}

.paid-feature .btn-light {
    color: #0f172a;
    border: 0;
    box-shadow: 0 10px 25px rgba(0,0,0,.13);
}

    .paid-feature .btn-light:hover {
        color: #0f766e;
        background: #f0fdfa;
    }

.paid-list {
    display: grid;
    align-content: stretch;
    gap: 12px;
}

.paid-item {
    min-height: 132px;
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 18px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    background: rgba(255,255,255,.97);
    box-shadow: 0 11px 30px rgba(15,23,42,.06);
    transition: transform .2s ease,border-color .2s ease,box-shadow .2s ease;
}

    .paid-item:hover {
        border-color: rgba(15,118,110,.38);
        transform: translateY(-2px);
        box-shadow: 0 18px 42px rgba(15,118,110,.10);
    }

.paid-item-content {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 14px;
}

.paid-item-icon {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    color: #fff;
    background: linear-gradient(135deg,#0f766e,#134e4a);
    box-shadow: 0 10px 23px rgba(15,118,110,.20);
    font-size: 1.25rem;
}

.paid-item-details {
    flex: 1;
    min-width: 0;
}

.paid-name {
    margin: 0 0 7px;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 950;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.paid-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 14px;
    color: #64748b;
    font-size: .78rem;
    font-weight: 750;
}

    .paid-meta span {
        display: inline-flex;
        align-items: center;
        gap: 5px;
    }

    .paid-meta i {
        color: #0f766e;
    }

.paid-item-action {
    width: auto;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    padding: 0;
    border: 0;
}

.paid-price {
    min-width: 98px;
    text-align: center;
}

.paid-price-label {
    display: block;
    margin-bottom: 3px;
    color: #64748b;
    font-size: .7rem;
    font-weight: 750;
}

.paid-price div {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    color: #0f766e;
    direction: ltr;
}

.paid-price strong {
    font-size: 1.22rem;
    font-weight: 950;
}

.paid-price span {
    font-size: .76rem;
    font-weight: 900;
}

.paid-buy-btn {
    min-width: 122px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 17px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg,#0f766e,#134e4a);
    text-decoration: none;
    font-size: .83rem;
    font-weight: 950;
    box-shadow: 0 9px 22px rgba(15,118,110,.20);
    transition: .2s ease;
    white-space: nowrap;
}

    .paid-buy-btn:hover {
        color: #fff;
        background: linear-gradient(135deg,#115e59,#0f172a);
        transform: translateY(-1px);
        box-shadow: 0 13px 28px rgba(15,118,110,.27);
    }

.paid-login-required {
    display: inline-flex;
    align-items: center;
    padding: 9px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    color: #475569;
    background: #f8fafc;
    font-size: .78rem;
    font-weight: 850;
}

.paid-empty {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 23px;
    border: 1px dashed #5eead4;
    border-radius: 22px;
    color: #134e4a;
    background: #f0fdfa;
}

.paid-empty-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg,#0f766e,#134e4a);
    font-size: 1.25rem;
}

.paid-empty strong {
    display: block;
    margin-bottom: 3px;
    color: #0f172a;
    font-weight: 950;
}

.paid-empty div:last-child div {
    color: #64748b;
    font-size: .83rem;
}

.survey-feedback-card {
    border: 1px solid #dbeafe;
    border-radius: 18px;
    background: linear-gradient(135deg,#ffffff,#f0f9ff);
    transition: transform .2s ease,box-shadow .2s ease;
}

    .survey-feedback-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(15,118,110,.12);
    }

.survey-feedback-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 1.35rem;
}

@media (max-width: 940px) {
    .paid-layout {
        grid-template-columns: 1fr;
    }

    .paid-feature {
        min-height: 285px;
    }
}

@media (max-width: 650px) {
    .paid-exams-section {
        margin-top: 32px;
    }

    .paid-feature {
        min-height: auto;
        padding: 23px 20px;
        border-radius: 24px;
    }

    .paid-item {
        min-height: 0;
        grid-template-columns: 1fr;
        align-items: stretch;
        padding: 16px;
        border-radius: 19px;
    }

    .paid-item-action {
        width: 100%;
        justify-content: space-between;
        padding-top: 13px;
        border-top: 1px dashed #e2e8f0;
    }

    .paid-price {
        text-align: right;
    }

        .paid-price div {
            justify-content: flex-start;
        }

    .paid-buy-btn {
        min-width: 130px;
    }

    .paid-all-link {
        margin-top: 10px;
    }
}

.home-hero {
    padding: 22px 30px;
}

.home-hero-inner {
    grid-template-columns: minmax(0,1.18fr) minmax(390px,.82fr);
    gap: 26px;
    align-items: center;
}

.hero-side-card {
    height: auto;
    min-height: 0;
    padding: 20px;
    border-radius: 27px;
}

.hero-logo-row {
    gap: 13px;
    margin-bottom: 15px;
}

.hero-logo {
    width: 66px;
    height: 66px;
    flex-basis: 66px;
    border-radius: 20px;
}

    .hero-logo img {
        max-width: 54px;
        max-height: 54px;
    }

.hero-side-title {
    font-size: 1rem;
    line-height: 1.5;
}

.hero-side-sub {
    margin-top: 2px;
    font-size: .8rem;
    line-height: 1.55;
}

.hero-stats {
    gap: 8px;
}

.hero-stat {
    min-height: 74px;
    padding: 10px 8px;
    border-radius: 17px;
}

.hero-stat-num {
    font-size: 1.25rem;
}

.hero-stat-label {
    margin-top: 5px;
    font-size: .7rem;
    line-height: 1.45;
}

.home-hero h1 {
    margin-bottom: 9px;
    font-size: clamp(1.6rem,2.55vw,2.45rem);
    line-height: 1.4;
    font-weight: 950;
}

.home-hero p {
    font-size: .93rem;
    line-height: 1.75;
}

.home-actions {
    gap: 8px;
    margin-top: 16px;
}

    .home-actions .btn {
        padding: 9px 17px;
        font-size: .88rem;
        white-space: nowrap;
    }


/* خط النصوص العام */
.home-ultra,
.home-ultra p,
.home-ultra span,
.home-ultra a,
.home-ultra button,
.home-ultra .btn {
    font-family: "HelveticaHome", Arial, sans-serif !important;
}

    /* خط العناوين */
    .home-ultra :is( h1, h2, h3, h4, h5, h6, .hero-side-title, .section-title, .portal-title, .practice-name, .latest-name, .footer-title, .portal-list-title, .practice-list-title, .paid-name ) {
        font-family: "DINNextHome", Tahoma, sans-serif !important;
    }


@media (max-width: 420px) {
    .paid-item-action {
        align-items: stretch;
        flex-direction: column;
    }

    .paid-price {
        width: 100%;
        text-align: right;
    }

    .paid-buy-btn, .paid-login-required {
        width: 100%;
    }
}

/* توسيع الصفحة على شاشات الديسكتوب الكبيرة */
.home-wrap {
    width: 100%;
    max-width: 1440px;
    margin-inline: auto;
}

@media (min-width: 1600px) {
    .home-wrap {
        max-width: 1760px;
    }
}

@media (min-width: 1900px) {
    .home-wrap {
        max-width: 1880px;
    }
}

@media (max-width: 1200px) {
    .practice-grid {
        grid-template-columns: repeat(2,1fr);
    }
}

@media (max-width: 992px) {
    .home-hero-inner, .latest-layout {
        grid-template-columns: 1fr;
    }

    .portal-grid {
        grid-template-columns: 1fr;
    }

    .portal-card {
        min-height: 220px;
    }

    .hero-stats {
        grid-template-columns: repeat(3,1fr);
    }
}

.portal-system .portal-icon, .portal-system .portal-list-icon {
    background: rgba(124,58,237,.14) !important;
    color: #7c3aed !important;
}

    .portal-system .portal-icon i, .portal-system .portal-list-icon i {
        color: #7c3aed !important;
    }

.portal-learning .portal-icon {
    background: linear-gradient(135deg,#f59e0b,#b45309);
}

/* إلغاء الدائرة السفلية */
.portal-card.portal-learning::after {
    content: none !important;
    display: none !important;
}

/* شارة تحت الإنشاء */
.portal-card.portal-learning::before {
    content: "تحت الإنشاء" !important;
    position: absolute !important;
    /* مهم جدًا: إلغاء inset: 0 الموروث */
    inset: auto !important;
    top: 16px !important;
    left: 16px !important;
    right: auto !important;
    bottom: auto !important;
    width: auto !important;
    height: auto !important;
    z-index: 5 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 5px 11px !important;
    border: 1px solid #fcd34d !important;
    border-radius: 999px !important;
    color: #92400e !important;
    background: #fef3c7 !important;
    font-size: .72rem !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    white-space: nowrap !important;
    opacity: 1 !important;
    transform: none !important;
}

/* منع تغير الشارة عند مرور الفأرة */
.portal-card.portal-learning:hover::before {
    inset: auto !important;
    top: 16px !important;
    left: 16px !important;
    right: auto !important;
    bottom: auto !important;
    width: auto !important;
    height: auto !important;
    opacity: 1 !important;
    transform: none !important;
    background: #fef3c7 !important;
}

/* أيقونة نسخة القائمة */
.portal-list-item.portal-learning .portal-list-icon {
    background: linear-gradient(135deg,#f59e0b,#b45309);
}

/* لوحة المؤشرات والإحصاءات */
.portal-reports .portal-icon,
.portal-list-item.portal-reports .portal-list-icon {
    background: linear-gradient(135deg, #0284c7, #1e3a8a) !important;
    color: #fff !important;
}

    .portal-reports .portal-icon i,
    .portal-list-item.portal-reports .portal-list-icon i {
        color: #fff !important;
    }

/* لون الدائرة الزخرفية السفلية للبلاطة */
.portal-card.portal-reports::after {
    background: linear-gradient(135deg, #0284c7, #1e3a8a);
}

@media (max-width: 768px) {
    .practice-grid {
        grid-template-columns: 1fr;
    }

    .latest-item {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 576px) {
    .home-ultra {
        padding: 12px 4px 24px;
    }

    .home-hero {
        border-radius: 26px;
        padding: 22px;
    }

    .home-actions .btn, .practice-btn {
        width: 100%;
    }

    .hero-logo-row {
        flex-direction: column;
        text-align: center;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .section-head {
        align-items: flex-start;
    }

    .footer-inner, .footer-brand {
        justify-content: center;
        text-align: center;
    }

    .footer-copy {
        text-align: center;
    }



    .home-actions {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px;
    }

        .home-actions .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 7px;
            min-height: 42px;
            padding: 9px 18px;
            border-radius: 999px;
            font-size: .9rem;
            font-weight: 700;
            white-space: nowrap;
        }

    .home-actions-services .btn {
        background: rgba(255,255,255,.06);
    }

    .home-action-count {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 22px;
        height: 22px;
        padding: 0 6px;
        border-radius: 999px;
        background: #fbbf24;
        color: #1f2937;
        font-size: .75rem;
        font-weight: 800;
    }

    .home-actions-wrap {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 20px;
    }

 

    .home-actions-wrap .btn {
        width: auto !important;
        margin: 0 !important;
        white-space: nowrap;
    }

    .home-actions-wrap {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        padding-bottom: 6px;
    }

    /* جميع أزرار الهيرو في صف واحد */
    .home-actions-wrap {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto align-items: center !important;
        gap: 10px !important;
        margin-top: 16px !important;
    }

        /* إلغاء تأثير الحاويتين الداخليتين على ترتيب الأزرار */
        .home-actions-wrap > .home-actions {
            display: contents !important;
        }

        /* الأزرار نفسها */
        .home-actions-wrap .btn {
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            width: auto !important;
            min-width: 0 !important;
            margin: 0 !important;
            padding: 9px 17px !important;
            white-space: nowrap !important;
            flex: 0 0 auto !important;
        }

    /* جميع أزرار الهيرو في صف واحد */
    .home-actions-all {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 10px !important;
        width: 100% !important;
        margin-top: 16px !important;
        overflow-x: auto;
        padding-bottom: 4px;
    }

        .home-actions-all .btn {
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            flex: 0 0 auto !important;
            width: auto !important;
            min-width: auto !important;
            margin: 0 !important;
            padding: 9px 16px !important;
            white-space: nowrap !important;
            font-size: .85rem;
            font-weight: 500;
        }

    @media (max-width: 576px) {
        .home-actions-wrap, .home-actions {
            align-items: stretch;
        }

        .home-actions {
            width: 100%;
        }

            .home-actions .btn {
                flex: 1 1 180px;
            }
    }
}
