@font-face {
    font-family: 'DIN Next LT Arabic';
    src: url('../fonts/ArbFONTS-DINNEXTLTARABIC-LIGHT-2-2.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DIN Next LT Arabic';
    src: url('../fonts/ArbFONTS-DINNextLTArabic-Regular-2.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DIN Next LT Arabic';
    src: url('../fonts/ArbFONTS-DINNextLTArabic-Medium-2.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DIN Next LT Arabic';
    src: url('../fonts/ArbFONTS-DINNextLTArabic-Bold-2.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DIN Next LT Arabic';
    src: url('../fonts/ArbFONTS-DINNextLTArabic-Black-2.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --plans-green-dark: #124A37;
    --plans-green-gradient-top: #15553F;
    --plans-green-gradient-bottom: #0D3A2B;
    --plans-green-inner: rgba(255, 255, 255, 0.08);
    --plans-gold: #F2AE1C;
    --plans-gold-light: #FEF7ED;
    --plans-gold-border: #FDE68A;
    --plans-text-dark: #15221F;
    --plans-text-muted: #6B7280;
    --plans-border-gray: #E5E7EB;
    --plans-bg-input: #F9FAFB;
    --plans-white: #FFFFFF;
}

/* Centered Sub Header Logo for Plans Page with exact Figma dimensions (74.61px x 85.34px) */
.header .sub__header {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 10px 0 !important;
    background: #FFFFFF !important;
    border-bottom: 1px solid #E5E7EB;
    padding-inline: 0 !important;
}

.header .sub__header .logo {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 auto !important;
}

.header .sub__header .logo img {
    width: 74.61px !important;
    height: 85.34px !important;
    object-fit: contain !important;
    display: block !important;
}

.plans-main {
    min-height: 85vh;
    background-color: #FAFAFA;
}

.plans-section {
    padding-top: 190px;
    padding-bottom: 90px;
    font-family: 'DIN Next LT Arabic', sans-serif !important;
}

.plans-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Main Layout: 2 Columns Side by Side (White Card Right, Green Card Left in RTL) */
.plans-layout-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
}

/*==================================================
   RIGHT COLUMN: PLAN CONFIGURATION & ADD STUDENT
==================================================*/
.plan-config-column {
    flex: 1;
    max-width: 770px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.plan-config-card {
    background: var(--plans-white);
    border-radius: 24px;
    padding: 34px 34px 28px 34px;
    border: 1px solid #ECECEC;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.03);
    position: relative;
}

/* 2 Free Trial Badge (Top-Left of the card) */
.trial-badge {
    position: absolute;
    top: 18px;
    left: 22px;
    width: 110px;
    height: 110px;
    background: #EABE13;
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 2px;
    z-index: 2;
    box-sizing: border-box;
}

.trial-badge .badge-num {
    font-family: 'DIN Next LT Arabic', sans-serif;
    font-size: 24px;
    font-weight: 900;
    color: #FFFFFF;
    line-height: 1.1;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.trial-badge .badge-text {
    font-family: 'DIN Next LT Arabic', sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: #FFFFFF;
    line-height: 1.1;
    letter-spacing: normal;
}

/* Main Title */
.config-title {
    font-family: 'DIN Next LT Arabic', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #15221F;
    min-height: 90px;
    display: flex;
    align-items: center;
    margin-bottom: 36px;
    padding-left: 145px;
    line-height: 1.35;
    text-align: right;
}

/* Form Dropdowns Row (Course Select: Wide 64%, Currency Select: Compact 36%) */
.config-inputs-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 26px;
    width: 100%;
}

.config-inputs-row .form-group:first-child {
    flex: 1.8 1 0;
    min-width: 0;
}

.config-inputs-row .form-group:last-child {
    flex: 1 1 0;
    min-width: 0;
    max-width: 241px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-label {
    font-family: 'DIN Next LT Arabic', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #15221F;
    text-align: right;
}

.custom-select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.custom-select-wrapper .select-icon {
    position: absolute;
    right: 16px;
    color: #6B7280;
    font-size: 16px;
    pointer-events: none;
    z-index: 2;
    display: flex;
    align-items: center;
}

.custom-select-wrapper .select-arrow {
    position: absolute;
    left: 16px;
    color: #8A94A6;
    font-size: 13px;
    pointer-events: none;
    z-index: 2;
}

/* Custom Select with exact Figma specs (Height: 52px, Radius: 8px, Fill: #666666 6%, P: 17px 16px) */
.form-select {
    width: 100%;
    height: 52px;
    padding: 0 44px 0 38px;
    background: rgba(102, 102, 102, 0.06);
    border: none;
    border-radius: 8px;
    font-family: 'DIN Next LT Arabic', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #4B5563;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: all 0.2s ease;
    text-align: right;
    box-sizing: border-box;
}

.form-select:hover {
    background: rgba(102, 102, 102, 0.09);
}

.form-select:focus {
    background: #FFFFFF;
    outline: 1.5px solid var(--plans-gold);
    box-shadow: 0 0 0 3px rgba(234, 190, 19, 0.15);
}

/* Hourly Slider Box with exact Figma specs (693px x 187px, R: 12px, Gap: 31px, Shadow: 0 2px 16px -12px rgba(0,0,0,0.06)) */
.hourly-slider-section {
    width: 100%;
    max-width: 693px;
    min-height: 187px;
    background: #FFFFFF;
    border-radius: 12px;
    padding: 24px 28px 20px 28px;
    margin-bottom: 0;
    box-shadow: 0px 2px 16px -12px rgba(0, 0, 0, 0.06);
    border: 1px solid #F1F5F9;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

.slider-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    direction: rtl;
    width: 100%;
}

.slider-title {
    font-family: 'DIN Next LT Arabic', sans-serif;
    font-size: 17px;
    font-weight: 800;
    color: #15221F;
    text-align: right;
}

.hourly-rate-badge {
    font-family: 'DIN Next LT Arabic', sans-serif;
    font-size: 22px;
    font-weight: 900;
    color: #124A37;
    direction: ltr;
    text-align: left;
}

.slider-container-wrapper {
    position: relative;
    margin: 46px 0 16px 0;
    width: 100%;
}

/* Floating Tooltip above Slider Thumb (#EABE13 Gold) */
.slider-tooltip {
    position: absolute;
    top: -36px;
    background: #EABE13;
    color: #FFFFFF;
    font-family: 'DIN Next LT Arabic', sans-serif;
    font-weight: 800;
    font-size: 13px;
    padding: 3px 10px;
    height: 28px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    white-space: nowrap !important;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(234, 190, 19, 0.35);
    pointer-events: none;
    transition: left 0.05s ease;
    direction: rtl;
    z-index: 10;
}

.slider-tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: var(--arrow-left, 12px);
    transform: translateX(-50%);
    border-width: 6px 5px 0;
    border-style: solid;
    border-color: #EABE13 transparent transparent;
    display: block;
    width: 0;
}

/* Range Slider */
.plan-range-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: #ECEFF1;
    outline: none;
    cursor: pointer;
    position: relative;
}

.plan-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #EABE13;
    border: 3.5px solid #FFFFFF;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    transition: transform 0.15s ease;
}

.plan-range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.plan-range-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #EABE13;
    border: 3.5px solid #FFFFFF;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.slider-description {
    font-family: 'DIN Next LT Arabic', sans-serif;
    font-size: 12px;
    color: #8A94A6;
    line-height: 1.55;
    margin: 0;
    text-align: right;
}

/* Separate Lower Card: Add Student Card */
.add-student-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 16px 28px;
    border: 1px solid #ECECEC;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    direction: rtl;
    margin-top: 0;
    box-sizing: border-box;
    width: 100%;
}

.add-student-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: right;
    direction: rtl;
}

.add-student-title {
    font-family: 'DIN Next LT Arabic', sans-serif;
    font-size: 17px;
    font-weight: 800;
    color: #15221F;
    margin: 0 0 4px 0;
    text-align: right;
    line-height: 1.3;
}

.add-student-sub {
    font-family: 'DIN Next LT Arabic', sans-serif;
    font-size: 13.5px;
    font-weight: 500;
    color: #8A94A6;
    margin: 0;
    text-align: right;
    line-height: 1.4;
}

.btn-add-student {
    background: #FFFDF5;
    color: #D4AF37;
    border: 1.5px solid #FDE68A;
    padding: 10px 20px;
    border-radius: 10px;
    font-family: 'DIN Next LT Arabic', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    direction: rtl;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-add-student i {
    font-size: 13px;
    color: #B47818;
}

.btn-add-student:hover {
    background: #FEF3C7;
    border-color: #EABE13;
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(234, 190, 19, 0.25);
}

/* Container for dynamic student cards */
.extra-students-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

.additional-student-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 30px 34px 26px 34px;
    border: 1px solid #ECECEC;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.03);
    position: relative;
    box-sizing: border-box;
    width: 100%;
    animation: fadeInSlide 0.3s ease;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.student-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    direction: rtl;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid #F1F5F9;
}

.student-card-title {
    font-family: 'DIN Next LT Arabic', sans-serif;
    font-size: 19px;
    font-weight: 800;
    color: #15221F;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.student-num-badge {
    background: #1E6548;
    color: #FFFFFF;
    border: 1px solid #1E6548;
    font-size: 13px;
    font-weight: 800;
    padding: 3px 12px;
    border-radius: 6px;
}

.btn-delete-student-card {
    background: #F1F5F9;
    color: #64748B;
    border: 1px solid #E2E8F0;
    padding: 6px 14px;
    border-radius: 8px;
    font-family: 'DIN Next LT Arabic', sans-serif;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-delete-student-card:hover {
    background: #FFFFFF;
    color: #DC2626;
    border-color: #CBD5E1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/*==================================================
   LEFT CARD: PRICING SUMMARY (GREEN CARD)
==================================================*/
.summary-wrapper {
    width: 491px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pricing-summary-card {
    background: linear-gradient(180deg, var(--plans-green-gradient-top) 0%, var(--plans-green-gradient-bottom) 100%);
    border-radius: 20px;
    padding: 30px 26px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

/* Absolute Watermark that blends smoothly without hard cutoffs */
.card-bg-watermark {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    -webkit-mask-image: radial-gradient(ellipse at 50% 65%, rgba(0, 0, 0, 1) 25%, rgba(0, 0, 0, 0) 75%);
    mask-image: radial-gradient(ellipse at 50% 65%, rgba(0, 0, 0, 1) 25%, rgba(0, 0, 0, 0) 75%);
}

.card-bg-watermark img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.08;
    mix-blend-mode: luminosity;
}

/* Content above watermark */
.summary-top-row,
.summary-inner-box,
.summary-notice-box,
.summary-bottom-price-row,
.btn-confirm-plan,
.summary-exchange-note {
    position: relative;
    z-index: 2;
}

/* Top Row (Frame 142) */
.summary-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 440px;
    height: 51px;
    margin-bottom: 22px;
}

.summary-price-box {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 6px;
    direction: rtl;
}

.summary-price {
    position: relative;
    display: inline-flex;
    align-items: center;
    font-size: 44px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
    font-family: 'DIN Next LT Arabic', 'Poppins', sans-serif;
    letter-spacing: -0.5px;
}

.summary-price::after {
    content: "";
    position: absolute;
    left: -6px;
    right: -6px;
    top: 63%;
    transform: translateY(-50%);
    height: 7px;
    background-color: #ffffff;
    border-radius: 999px;
    pointer-events: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.summary-period {
    font-size: 13.5px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.2;
    margin-bottom: 2px;
}

.summary-target {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    text-align: left;
    white-space: nowrap;
}

/* Inner Light Green Box with exact Figma specs (433px x 168px, R:12px, P:29px) */
.summary-inner-box {
    width: 100%;
    max-width: 433px;
    height: 168px;
    background: linear-gradient(90deg, rgba(33, 87, 61, 0.03) 0%, rgba(72, 189, 131, 0.35) 100%);
    border-radius: 12px;
    padding: 29px 24px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    box-shadow: 0px 2px 16px -12px rgba(0, 0, 0, 0.06);
    border: none;
    box-sizing: border-box;
}

/* Discount Tag with exact full width and fading divider line */
.summary-discount-tag {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    min-height: 23px;
    padding: 0 0 14px 0;
    opacity: 0.95;
    color: #EABE13;
    font-family: 'DIN Next LT Arabic', sans-serif;
    font-size: 15px;
    font-weight: 800;
    text-align: right;
    direction: rtl;
    border-bottom: 1px solid transparent;
    border-image: linear-gradient(to left, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 55%, rgba(255, 255, 255, 0.01) 100%) 1;
    box-sizing: border-box;
}

.summary-discount-tag .discount-icon {
    font-family: 'DIN Next LT Arabic', sans-serif;
    font-size: 18px;
    font-weight: 900;
    color: #EABE13;
    line-height: 1;
    direction: ltr;
    display: inline-block;
    unicode-bidi: isolate;
    letter-spacing: -0.5px;
}

.summary-discount-tag .discount-text {
    font-family: 'DIN Next LT Arabic', sans-serif;
    font-size: 15px;
    font-weight: 800;
    color: #EABE13;
    line-height: 1;
}

.summary-details-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.summary-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    direction: rtl;
    width: 100%;
}

.summary-detail-item:first-child {
    padding-bottom: 12px;
    border-bottom: 1px solid transparent;
    border-image: linear-gradient(to left, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 55%, rgba(255, 255, 255, 0.01) 100%) 1;
}

.detail-label {
    font-size: 14px;
    color: #FFFFFF;
    font-weight: 600;
    text-align: right;
}

.detail-value {
    font-size: 18px;
    font-weight: 800;
    color: #FFFFFF;
    font-family: 'DIN Next LT Arabic', sans-serif;
    text-align: left;
}

/* Notice Box with exact Figma specs (Fill 440px x Fixed 35px, P: 0 8px, Gap: 8px) */
.summary-notice-box {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    max-width: 440px;
    min-height: 35px;
    padding: 0 8px;
    gap: 8px;
    margin-bottom: 22px;
    direction: rtl;
    box-sizing: border-box;
}

.notice-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.notice-text {
    font-family: 'DIN Next LT Arabic', sans-serif;
    font-size: 11.5px;
    font-weight: 500;
    color: #C2DCD2;
    line-height: 1.45;
    text-align: right;
    margin: 0;
}

/* Bottom Price Row (Frame 1000003030) */
.summary-bottom-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 440px;
    height: 51px;
    gap: 20px;
    margin-bottom: 20px;
}

.bottom-price-label {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    white-space: nowrap;
}

.bottom-price-value {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 6px;
    direction: rtl;
}

.final-amount {
    font-size: 38px;
    font-weight: 900;
    color: #ffffff;
    font-family: 'DIN Next LT Arabic', sans-serif;
    line-height: 0.95;
    direction: ltr !important;
}

.final-period {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2px;
}

/* Confirm Button with exact Figma specs */
.btn-confirm-plan {
    width: 100%;
    height: 50px;
    background-color: #EABE13;
    color: #FFFFFF;
    border: 2px solid #F9F3E1;
    border-radius: 8px;
    font-family: inherit;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    transition: all 0.2s ease;
    text-align: center;
    margin-bottom: 14px;
}

.btn-confirm-plan:hover {
    background-color: #D9AF0D;
    border-color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(234, 190, 19, 0.4);
}

.summary-exchange-note {
    font-size: 12px;
    font-weight: 500;
    color: #8EB7A9;
    text-align: center;
    line-height: 1.5;
    margin: 0 auto;
    width: 100%;
}

/* Payment Methods Row Below Green Card (491px x 57.34px) */
.payment-methods-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 7px;
    width: 100%;
    max-width: 491px;
    height: 57.34px;
    margin: 12px auto 0 auto;
    direction: ltr !important;
}

.pay-logo-card {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 8px 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50.34px;
    flex: 1;
    border: 1px solid #F1F5F9;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pay-logo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.pay-logo-card img {
    object-fit: contain;
    display: block;
    margin: auto;
}

.pay-logo-card[title="VISA"] img {
    height: 20px;
    max-width: 46px;
}

.pay-logo-card[title="Stripe"] img {
    height: 25px;
    max-width: 50px;
}

.pay-logo-card[title="PayPal"] img {
    height: 30px;
    max-width: 50px;
}

.pay-logo-card[title="كاش"] img {
    height: 40px;
    max-width: 55px;
}

.pay-logo-card[title="InstaPay"] img {
    height: 40px;
    max-width: 55px;
}

/*==================================================
   MODAL DIALOG & CELEBRATION CONFETTI
==================================================*/
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 61, 46, 0.65);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 1rem;
    overflow: hidden;
}

.modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* Falling Celebration Confetti Canvas */
.modal-confetti-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.modal-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 36px 28px 26px 28px;
    max-width: 380px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 2;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18);
    transform: translateY(20px) scale(0.96);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    direction: rtl;
    box-sizing: border-box;
}

.modal-backdrop.active .modal-card {
    transform: translateY(0) scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #F3F4F6;
    color: #6B7280;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    cursor: pointer;
    border: none;
    transition: background 0.2s ease;
}

.modal-close-btn:hover {
    background: #E5E7EB;
    color: #111827;
}

.modal-party-icon {
    font-size: 38px;
    line-height: 1;
    margin-bottom: 14px;
    display: block;
}

.modal-heading {
    font-family: 'DIN Next LT Arabic', sans-serif;
    font-size: 21px;
    font-weight: 800;
    color: #15221F;
    margin: 0 0 8px 0;
}

.modal-text {
    font-family: 'DIN Next LT Arabic', sans-serif;
    font-size: 13.5px;
    font-weight: 500;
    color: #6B7280;
    line-height: 1.5;
    margin: 0 0 22px 0;
}

.modal-actions-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.modal-link-home {
    font-family: 'DIN Next LT Arabic', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    color: #8A94A6;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.modal-link-home:hover {
    color: #15221F;
}

.btn-modal-curriculum {
    width: 100%;
    height: 48px;
    background: #1E6548;
    color: #FFFFFF !important;
    border-radius: 8px;
    font-family: 'DIN Next LT Arabic', sans-serif;
    font-size: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-modal-curriculum:hover {
    background: #174E37;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 101, 72, 0.3);
}

/*==================================================
   RESPONSIVE DESIGN
==================================================*/
@media (max-width: 992px) {
    .plans-layout-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
    }

    .plan-config-column,
    .plan-config-card,
    .summary-wrapper,
    .pricing-summary-card,
    .payment-methods-row {
        max-width: 100%;
        width: 100%;
    }

    .plans-section {
        padding-top: 170px;
        padding-bottom: 60px;
    }
}

@media (max-width: 768px) {
    .plans-section {
        padding-top: 150px;
        padding-bottom: 40px;
    }

    .config-inputs-row {
        flex-direction: column;
        gap: 14px;
    }

    .config-inputs-row .form-group:first-child,
    .config-inputs-row .form-group:last-child {
        flex: 1 1 100%;
        max-width: 100%;
        width: 100%;
    }

    .summary-top-row,
    .summary-inner-box,
    .summary-notice-box,
    .summary-bottom-price-row {
        max-width: 100%;
        width: 100%;
    }

    .summary-inner-box {
        height: auto;
        min-height: 140px;
    }
}

@media (max-width: 576px) {
    .plans-container {
        padding: 0 1rem;
    }

    .plan-config-card {
        padding: 24px 18px 20px 18px;
        border-radius: 16px;
    }

    .trial-badge {
        width: 85px;
        height: 85px;
        top: 16px;
        left: 16px;
        padding: 4px;
    }

    .trial-badge .badge-num {
        font-size: 18px;
    }

    .trial-badge .badge-text {
        font-size: 9.5px;
        max-width: 82%;
        white-space: nowrap;
    }

    .config-title {
        padding-left: 95px;
        font-size: 19px;
        line-height: 1.35;
        min-height: 80px;
        margin-bottom: 20px;
    }

    .hourly-slider-section {
        padding: 18px 16px;
        min-height: auto;
        border-radius: 10px;
    }

    .slider-title {
        font-size: 15px;
    }

    .hourly-rate-badge {
        font-size: 19px;
    }

    .slider-container-wrapper {
        margin: 40px 0 14px 0;
    }

    .slider-description {
        font-size: 11.5px;
        line-height: 1.45;
    }

    .add-student-card {
        padding: 16px 18px;
        border-radius: 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .add-student-info {
        width: 100%;
        text-align: right;
    }

    .add-student-title {
        font-size: 15.5px;
    }

    .add-student-sub {
        font-size: 12.5px;
    }

    .btn-add-student {
        width: 100%;
        justify-content: center;
        padding: 10px;
    }

    /* Green Summary Card Mobile */
    .pricing-summary-card {
        padding: 24px 18px;
        border-radius: 16px;
    }

    .summary-top-row {
        margin-bottom: 16px;
        height: auto;
        gap: 8px;
    }

    .summary-price {
        font-size: 34px;
    }

    .summary-price::after {
        height: 5.5px;
        left: -4px;
        right: -4px;
    }

    .summary-period {
        font-size: 13px;
    }

    .summary-target {
        font-size: 13px;
        white-space: normal;
        line-height: 1.35;
    }

    .summary-inner-box {
        padding: 18px 14px;
        margin-bottom: 16px;
        border-radius: 10px;
        gap: 10px;
    }

    .summary-discount-tag {
        font-size: 13.5px;
        padding-bottom: 10px;
    }

    .summary-discount-tag .discount-icon {
        font-size: 16px;
    }

    .detail-label {
        font-size: 13px;
    }

    .detail-value {
        font-size: 16px;
    }

    .summary-notice-box {
        padding: 0 4px;
        margin-bottom: 18px;
        gap: 6px;
    }

    .notice-text {
        font-size: 11px;
        line-height: 1.4;
    }

    .summary-bottom-price-row {
        height: auto;
        margin-bottom: 16px;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
    }

    .bottom-price-label {
        font-size: 17px;
        white-space: nowrap;
    }

    .bottom-price-value {
        flex-shrink: 0;
    }

    .final-amount {
        font-size: 28px;
    }

    .final-period {
        font-size: 12px;
    }

    .btn-confirm-plan {
        height: 48px;
        font-size: 16px;
        padding: 12px;
    }

    .summary-exchange-note {
        font-size: 11px;
    }

    /* Payment Methods Row Mobile */
    .payment-methods-row {
        gap: 4px;
        height: auto;
        margin-top: 10px;
        max-width: 100%;
        width: 100%;
    }

    .pay-logo-card {
        height: 44px;
        padding: 4px 6px;
        border-radius: 6px;
    }

    .pay-logo-card[title="VISA"] img {
        height: 14px;
        max-width: 38px;
    }

    .pay-logo-card[title="Stripe"] img {
        height: 16px;
        max-width: 40px;
    }

    .pay-logo-card[title="PayPal"] img {
        height: 18px;
        max-width: 40px;
    }

    .pay-logo-card[title="كاش"] img {
        height: 24px;
        max-width: 42px;
    }

    .pay-logo-card[title="InstaPay"] img {
        height: 24px;
        max-width: 42px;
    }
}

@media (max-width: 380px) {
    .trial-badge {
        position: static;
        margin: 0 auto 12px auto;
        width: 80px;
        height: 80px;
    }

    .trial-badge .badge-text {
        font-size: 9px;
    }

    .config-title {
        padding-left: 0;
        font-size: 17px;
        min-height: auto;
        text-align: center;
    }

    .summary-price {
        font-size: 28px;
    }

    .final-amount {
        font-size: 24px;
    }

    .bottom-price-label {
        font-size: 15px;
    }
}

/* ==================================================
   LTR (ENGLISH) SUPPORT FOR PLANS PAGE
================================================== */
html[dir="ltr"] .plans-section,
.plans-layout-wrapper[dir="ltr"] {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

html[dir="ltr"] .plans-layout-wrapper,
.plans-layout-wrapper[dir="ltr"] {
    direction: ltr;
}

/* Plan Configuration Column in LTR */
html[dir="ltr"] .plan-config-card,
.plans-layout-wrapper[dir="ltr"] .plan-config-card {
    text-align: left;
}

html[dir="ltr"] .trial-badge,
.plans-layout-wrapper[dir="ltr"] .trial-badge {
    left: auto;
    right: 22px;
}

html[dir="ltr"] .trial-badge .badge-num,
.plans-layout-wrapper[dir="ltr"] .trial-badge .badge-num {
    font-family: 'Poppins', sans-serif;
}

html[dir="ltr"] .trial-badge .badge-text,
.plans-layout-wrapper[dir="ltr"] .trial-badge .badge-text {
    font-family: 'Poppins', sans-serif;
    font-size: 11.5px;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

html[dir="ltr"] .config-title,
.plans-layout-wrapper[dir="ltr"] .config-title {
    padding-left: 0;
    padding-right: 145px;
    text-align: left;
    font-family: 'Poppins', sans-serif;
}

html[dir="ltr"] .form-label,
.plans-layout-wrapper[dir="ltr"] .form-label {
    text-align: left;
    font-family: 'Poppins', sans-serif;
}

html[dir="ltr"] .custom-select-wrapper .select-icon,
.plans-layout-wrapper[dir="ltr"] .custom-select-wrapper .select-icon {
    right: auto;
    left: 16px;
}

html[dir="ltr"] .custom-select-wrapper .select-arrow,
.plans-layout-wrapper[dir="ltr"] .custom-select-wrapper .select-arrow {
    left: auto;
    right: 16px;
}

html[dir="ltr"] .form-select,
.plans-layout-wrapper[dir="ltr"] .form-select {
    padding: 0 38px 0 44px;
    text-align: left;
    font-family: 'Poppins', sans-serif;
}

html[dir="ltr"] .slider-header-row,
.plans-layout-wrapper[dir="ltr"] .slider-header-row {
    direction: ltr;
}

html[dir="ltr"] .slider-title,
.plans-layout-wrapper[dir="ltr"] .slider-title {
    text-align: left;
    font-family: 'Poppins', sans-serif;
}

html[dir="ltr"] .hourly-rate-badge,
.plans-layout-wrapper[dir="ltr"] .hourly-rate-badge {
    font-family: 'Poppins', sans-serif;
}

html[dir="ltr"] .slider-tooltip,
.plans-layout-wrapper[dir="ltr"] .slider-tooltip {
    direction: ltr;
    font-family: 'Poppins', sans-serif;
}

html[dir="ltr"] .slider-description,
.plans-layout-wrapper[dir="ltr"] .slider-description {
    text-align: left;
    font-family: 'Poppins', sans-serif;
}

/* Add Student Card in LTR */
html[dir="ltr"] .add-student-card,
.plans-layout-wrapper[dir="ltr"] .add-student-card {
    direction: ltr;
}

html[dir="ltr"] .add-student-info,
.plans-layout-wrapper[dir="ltr"] .add-student-info {
    text-align: left;
    direction: ltr;
}

html[dir="ltr"] .add-student-title,
.plans-layout-wrapper[dir="ltr"] .add-student-title {
    text-align: left;
    font-family: 'Poppins', sans-serif;
}

html[dir="ltr"] .add-student-sub,
.plans-layout-wrapper[dir="ltr"] .add-student-sub {
    text-align: left;
    font-family: 'Poppins', sans-serif;
}

html[dir="ltr"] .btn-add-student,
.plans-layout-wrapper[dir="ltr"] .btn-add-student {
    direction: ltr;
    font-family: 'Poppins', sans-serif;
}

/* Dynamic Additional Student Card in LTR */
html[dir="ltr"] .additional-student-card,
.plans-layout-wrapper[dir="ltr"] .additional-student-card {
    text-align: left;
}

html[dir="ltr"] .student-card-header,
.plans-layout-wrapper[dir="ltr"] .student-card-header {
    direction: ltr;
}

html[dir="ltr"] .student-card-title,
.plans-layout-wrapper[dir="ltr"] .student-card-title {
    direction: ltr;
    text-align: left;
    font-family: 'Poppins', sans-serif;
}

html[dir="ltr"] .student-num-badge,
.plans-layout-wrapper[dir="ltr"] .student-num-badge {
    font-family: 'Poppins', sans-serif;
}

html[dir="ltr"] .btn-delete-student-card,
.plans-layout-wrapper[dir="ltr"] .btn-delete-student-card {
    direction: ltr;
    font-family: 'Poppins', sans-serif;
}

/* Summary Card in LTR */
html[dir="ltr"] .summary-top-row,
.plans-layout-wrapper[dir="ltr"] .summary-top-row {
    direction: ltr;
}

html[dir="ltr"] .summary-price-box,
.plans-layout-wrapper[dir="ltr"] .summary-price-box {
    direction: ltr;
}

html[dir="ltr"] .summary-price,
.plans-layout-wrapper[dir="ltr"] .summary-price {
    font-family: 'Poppins', sans-serif;
}

html[dir="ltr"] .summary-period,
.plans-layout-wrapper[dir="ltr"] .summary-period {
    font-family: 'Poppins', sans-serif;
}

html[dir="ltr"] .summary-target,
.plans-layout-wrapper[dir="ltr"] .summary-target {
    text-align: right;
    font-family: 'Poppins', sans-serif;
}

html[dir="ltr"] .summary-discount-tag,
.plans-layout-wrapper[dir="ltr"] .summary-discount-tag {
    direction: ltr;
    justify-content: flex-start;
    text-align: left;
    font-family: 'Poppins', sans-serif;
    border-image: linear-gradient(to right, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 55%, rgba(255, 255, 255, 0.01) 100%) 1;
}

html[dir="ltr"] .summary-discount-tag .discount-icon,
html[dir="ltr"] .summary-discount-tag .discount-text,
.plans-layout-wrapper[dir="ltr"] .summary-discount-tag .discount-icon,
.plans-layout-wrapper[dir="ltr"] .summary-discount-tag .discount-text {
    font-family: 'Poppins', sans-serif;
}

html[dir="ltr"] .summary-detail-item,
.plans-layout-wrapper[dir="ltr"] .summary-detail-item {
    direction: ltr;
}

html[dir="ltr"] .summary-detail-item:first-child,
.plans-layout-wrapper[dir="ltr"] .summary-detail-item:first-child {
    border-image: linear-gradient(to right, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 55%, rgba(255, 255, 255, 0.01) 100%) 1;
}

html[dir="ltr"] .detail-label,
.plans-layout-wrapper[dir="ltr"] .detail-label {
    text-align: left;
    font-family: 'Poppins', sans-serif;
}

html[dir="ltr"] .detail-value,
.plans-layout-wrapper[dir="ltr"] .detail-value {
    text-align: right;
    font-family: 'Poppins', sans-serif;
}

html[dir="ltr"] .summary-notice-box,
.plans-layout-wrapper[dir="ltr"] .summary-notice-box {
    direction: ltr;
}

html[dir="ltr"] .notice-text,
.plans-layout-wrapper[dir="ltr"] .notice-text {
    text-align: left;
    font-family: 'Poppins', sans-serif;
}

html[dir="ltr"] .summary-bottom-price-row,
.plans-layout-wrapper[dir="ltr"] .summary-bottom-price-row {
    direction: ltr;
}

html[dir="ltr"] .bottom-price-label,
.plans-layout-wrapper[dir="ltr"] .bottom-price-label {
    font-family: 'Poppins', sans-serif;
}

html[dir="ltr"] .bottom-price-value,
.plans-layout-wrapper[dir="ltr"] .bottom-price-value {
    direction: ltr;
}

html[dir="ltr"] .final-amount,
.plans-layout-wrapper[dir="ltr"] .final-amount {
    font-family: 'Poppins', sans-serif;
}

html[dir="ltr"] .final-period,
.plans-layout-wrapper[dir="ltr"] .final-period {
    font-family: 'Poppins', sans-serif;
}

html[dir="ltr"] .btn-confirm-plan,
.plans-layout-wrapper[dir="ltr"] .btn-confirm-plan {
    font-family: 'Poppins', sans-serif;
}

html[dir="ltr"] .summary-exchange-note,
.plans-layout-wrapper[dir="ltr"] .summary-exchange-note {
    font-family: 'Poppins', sans-serif;
}

/* Modal in LTR */
html[dir="ltr"] .modal-card {
    direction: ltr;
    text-align: center;
}

html[dir="ltr"] .modal-close-btn {
    left: auto;
    right: 14px;
}

html[dir="ltr"] .modal-heading {
    font-family: 'Poppins', sans-serif;
}

html[dir="ltr"] .modal-text {
    font-family: 'Poppins', sans-serif;
}

html[dir="ltr"] .modal-link-home,
html[dir="ltr"] .btn-modal-curriculum {
    font-family: 'Poppins', sans-serif;
}

/* Mobile LTR adjustments */
@media (max-width: 576px) {
    html[dir="ltr"] .trial-badge,
    .plans-layout-wrapper[dir="ltr"] .trial-badge {
        left: auto;
        right: 16px;
    }

    html[dir="ltr"] .config-title,
    .plans-layout-wrapper[dir="ltr"] .config-title {
        padding-left: 0;
        padding-right: 95px;
        text-align: left;
    }

    html[dir="ltr"] .add-student-info,
    .plans-layout-wrapper[dir="ltr"] .add-student-info {
        text-align: left;
    }
}

@media (max-width: 380px) {
    html[dir="ltr"] .config-title,
    .plans-layout-wrapper[dir="ltr"] .config-title {
        padding-right: 0;
        text-align: center;
    }
}

