:root {
    --primary: #ff6b00;
    --dark: #0c1544;
    --dark-light: #1a2a6c;
    --light: #f8f9fc;
    --gray: #6c757d;
    --success: #28a745;
    --accent1: #4a90e2;
    --accent2: #50c878;
}

body {
    font-family: 'Tajawal', sans-serif;
    background: linear-gradient(to bottom, var(--light), #e0e7ff);
    color: var(--dark);
}

.pricing-hero {
    background: radial-gradient(circle at top, var(--dark-light), var(--dark));
    color: white;
    padding: 150px 20px 100px;
    position: relative;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.pricing-hero h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.pricing-hero p {
    font-size: 1.6rem;
    opacity: 0.95;
    max-width: 900px;
    margin: 0 auto;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 107, 0, 0.2), transparent 60%);
    pointer-events: none;
}

/* Mobile Fixed Header */
.mobile-header {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: white;
    border-radius: 50px;
    padding: 12px 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    gap: 20px;
}

.mobile-header button {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 14px 28px;
    font-weight: 700;
    font-size: 1.1rem;
    min-width: 160px;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
    transition: all 0.3s;
}

.mobile-header button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 107, 0, 0.4);
}

/* Controls Desktop */
.controls {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 28px 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-top: -50px;
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-btn {
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 700;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    transition: all 0.3s ease-in-out;
    margin: 5px;
}

.filter-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 10px rgba(255, 107, 0, 0.3);
}

.form-select {
    border-radius: 50px;
    padding: 12px 24px;
    font-weight: 600;
    border: 2px solid var(--gray);
    min-width: 180px;
}

.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 0, 0.25);
}

.pricing-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 50px;
}

.apps-list {
    background: white;
    border-radius: 25px;
    padding: 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.calculator {
    background: white;
    border-radius: 25px;
    padding: 35px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 120px;
    height: fit-content;
}

/* Off-Canvas Panels - تحسين الشكل */
.offcanvas-panel {
    position: fixed;
    top: 0;
    width: 340px;
    height: 100%;
    background: white;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.25);
    z-index: 1050;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    padding: 30px;
    overflow-y: auto;
}

.offcanvas-filters {
    left: 0;
    z-index: 9999;
    transform: translateX(-100%);
}

.offcanvas-invoice {
    left: 0;
    z-index: 9999;
    transform: translateX(-100%);
}

.offcanvas-panel.show {
    transform: translateX(0);
}

.offcanvas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.offcanvas-header h3 {
    margin: 0;
    font-weight: 900;
    font-size: 1.8rem;
    color: var(--dark-light);
}

.close-offcanvas {
    background: none;
    border: none;
    font-size: 2.2rem;
    color: var(--gray);
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.close-offcanvas:hover {
    background: #f0f0f0;
    color: var(--danger);
}

/* App Cards - تحسين الـ Tooltip */
.app-card {
    background: linear-gradient(135deg, white, #f8f9fc);
    border-radius: 20px;
    padding: 5px 0px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    border: 3px solid transparent;
    /* overflow: hidden; */
    user-select: none;
    margin: 6px 8px;
}

.app-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(255, 107, 0, 0.25);
}

.app-card.selected {
    border: 3px solid var(--primary);
    background: linear-gradient(135deg, #fff8f0, #fff0e6);
    box-shadow: 0 20px 45px rgba(255, 107, 0, 0.35);
    transform: translateY(-8px);
}

.app-card.selected::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: -12px;
    left: 'right';
    background: var(--success);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Tooltip محسن - يظهر من الأعلى داخل الكارت */
.app-card .card-body {
    position: relative;
}

@media (min-width: 992px) {
    .col-lg-2 {
        flex: 0 0 auto;
        width: 17.999997% !important;
    }
}

.app-card .tooltip-info {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    width: 350px;
    padding: 15px;
    border-radius: 15px;
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.4s ease;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

/* 
        .app-card:hover .tooltip-info {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        } */
.app-card .tooltip-info {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 15px;
    border-radius: 15px;
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.4s ease;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

.app-card.show-info .tooltip-info {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.info-badge {
    position: absolute;
    top: 12px;
    left: right;
    background: var(--accent1);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    cursor: help;
    z-index: 11;
}

.card-icon {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--primary), var(--accent1));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.2rem;
}

.app-price {
    font-size: 15.5px;
    font-weight: 800;
    color: var(--accent2);
    margin: 1.2rem 0;
}

/* Calculator */
.calculator h2 {
    font-weight: 900;
    color: var(--dark-light);
    margin-bottom: 1.8rem;
    text-align: center;
    font-size: 1.8rem;
}

.selected-item {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px dashed #ddd;
    font-size: 1.1rem;
}

.users-item {
    font-weight: 700;
    color: var(--primary);
}

.total {
    /*   background: linear-gradient(135deg, var(--accent1), var(--primary)); */
    /*  border-radius: 20px;
            padding: 30px;
            margin-top: 2rem;
            text-align: center;
            color: white; */
}

.total h3.fw-bold.mb-1 {
    font-size: 20px !important;
}

.total-amount {
    font-size: 3rem;
    font-weight: 900;
    margin: 10px 0;
    font-size: 19px !important;
}

/* زر إكمال الدفع */
.checkout-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--success), #218838);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 18px;
    font-size: 1.4rem;
    font-weight: 900;
    margin-top: 25px;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
    transition: all 0.3s;
    cursor: pointer;
}

.checkout-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(40, 167, 69, 0.5);
}

.checkout-btn i {
    margin-left: right;
}

/* Responsive */
@media (max-width: 992px) {
    .pricing-container {
        grid-template-columns: 1fr;
    }

    .calculator {
        position: static;
        margin-top: 40px;
    }

    .controls {
        display: none;
    }

    .mobile-header {
        display: flex;
    }
}

@media (max-width: 768px) {
    .pricing-hero h1 {
        font-size: 3rem;
    }

    .pricing-hero p {
        font-size: 1.3rem;
    }

    .offcanvas-panel {
        width: 100%;
        padding: 20px;
    }

    .mobile-header button {
        padding: 12px 20px;
        font-size: 1rem;
        min-width: 140px;
    }
}

.pricing-row {
    overflow: hidden !important;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-right: 0;
    margin-left: 0;
    align-items: center;
    justify-content: center;
}
.toggle-container {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 220px;
    height: 50px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
        position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    border-radius: 50px;
    transition: .4s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    color: #000000;
    font-weight: bold;
}

.slider:before {
    position: absolute;
    content: "";
    height: 42px;
    width: 100px;
    left: 4px;
    bottom: 4px;
    background: #8b5cf6;
    border-radius: 40px;
    transition: .4s;
}

input:checked+.slider:before {
    transform: translateX(100px);
}

.label-left,
.label-right {
    z-index: 1;
    transition: .4s;
}

input:checked+.slider .label-left {
    color: #ccc;
}

input:not(:checked)+.slider .label-right {
    color: #ccc;
}

.pricing-container-pk {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.package-card {
    width: 260px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    text-align: center;
}

.free {
    background: #f0f8ff;
    border-top: 5px solid #00bfff;
}

.standard {
    background: #fff0f0;
    border-top: 5px solid #ff69b4;
}

.custom {
    background: #f0fff0;
    border-top: 5px solid #32cd32;
}

.price {
    font-size: 2.2em;
    font-weight: bold;
}

.original-price {
    text-decoration: line-through;
    color: #e74c3c;
    font-size: 0.85em;
    margin-left: 8px;
    display: none;
}

.features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: right;
}

.features li {
    margin: 8px 0;
}

.btn {
    background: #6a1b9a;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 6px;
    width: 100%;
    font-weight: 600;
}

.trial {
    background: #f5f5f5;
    color: #333;
    margin-top: 10px;
}

.pricing-container-pk {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.package-card {
    width: 300px;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    background: white;
    transition: transform 0.25s ease;
}

.package-card:hover {
    transform: translateY(-8px);
}

.package-card .price {
    font-size: 2.6rem;
    font-weight: 800;
    text-align: center;
    margin: 20px 0;
    color: #111;
}

.original-price {
    font-size: 1.1rem;
    text-decoration: line-through;
    color: #e74c3c;
    margin-left: 10px;
}

.features {
    flex-grow: 1;
    list-style: none;
    padding: 0 20px;
    margin: 0;
    text-align: right;
}

.features li {
    margin: 12px 0;
    font-size: 1.05rem;
}

.hosting {
    text-align: center;
    font-size: 0.95rem;
    color: #555;
    margin: 15px 20px;
}

.card-footer {
    padding: 20px;
    margin-top: auto;
}

.card-footer .btn {
    width: 100%;
    padding: 14px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    background: #6a1b9a;
    color: white;
}

.free .card-footer .btn {
    background: #00b894;
}

.standard .card-footer .btn {
    background: #e84393;
}

.custom .card-footer .btn {
    background: #00b894;
}
.fi-apps{
    display: flex;
    align-items: center;
    justify-self: center;
}