/* ======= base ======= */
:root{
  --card-bg: rgba(20,20,20,0.86);
  --muted: #bdbdbd;
  --accent-green: #4ade80;
}

.upgrade-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 12px;
    text-align: center;
    font-family: "Cairo", sans-serif;
    direction: rtl;
}
/*TEST*/
/* خلي العناوين في النص */
.plan-card h2 {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;

    /* جليتش/لمعة رايقة */
    background: linear-gradient(45deg, #ff00cc, #3333ff, #00ffcc, #ff9900);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    animation: gradientFlow 6s ease infinite;
    text-shadow: 0 0 10px rgba(255,255,255,0.6),
                 0 0 20px rgba(255,0,200,0.7),
                 0 0 30px rgba(0,255,200,0.7);
}

/* حركة الألوان */
@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* العنوان */
.upgrade-title {
    font-size: 34px;
    font-weight: 900;
    margin-bottom: 30px;
    background: linear-gradient(45deg, #ff416c, #ff4b2b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

/* الخطط */
.plans {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    align-items: stretch;
}

/* الكارت */
.plan-card {
    flex: 0 1 320px;
    max-width: 340px;
    background: var(--card-bg);
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.55);
    padding: 26px;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    text-align: right;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
    color: #f1f1f1;
}

/* glow light effect */
.plan-card::before{
    content: "";
    position: absolute;
    inset: -40% -40% auto auto;
    width: 220%;
    height: 220%;
    background: radial-gradient(circle at 10% 10%, rgba(255,255,255,0.05), transparent 55%);
    transform: rotate(20deg);
    pointer-events: none;
}

/* hover */
.plan-card:hover{
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

/* النصوص داخل الكارت */
.plan-card h2{
    font-size: 22px;
    margin-bottom: 6px;
    font-weight: 800;
    color: #fff;
}

.plan-card .desc{
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 14px;
    font-weight: 500;
}

/* list */
.plan-card ul{
    list-style: none;
    padding: 0 10px;
    margin-bottom: 16px;
    text-align: right;
}

.plan-card ul li{
    position: relative;
    padding-right: 26px;
    margin: 8px 0;
    color: #e4e4e4;
    font-size: 15px;
}

/* checkmark */
.plan-card ul li::before{
    content: "✔";
    position: absolute;
    right: 0;
    color: var(--accent-green);
    font-weight: 700;
}

/* price */
.price{
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 18px;
    color: #fff;
    text-align: center;
}

.price .old{
    margin-left: 8px;
    color: #9e9e9e;
    font-size: 14px;
    text-decoration: line-through;
}

/* زر */
.btn{
    display: block;
    width: 100%;
    padding: 12px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 16px;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease;
    box-shadow: 0 6px 18px rgba(0,0,0,0.45);
    text-align: center;
    margin-top: 10px;
}

/* ألوان الأزرار */
.basic .btn{
    background: linear-gradient(45deg,#007bff,#00c6ff);
    color: #fff;
}
.premium .btn{
    background: linear-gradient(45deg,#28a745,#6be585);
    color: #064e3b;
}
.gold .btn{
    background: linear-gradient(45deg,#ffcc00,#ffd86b);
    color: #000;
}
.gold .price{
    color: #ffeb3b;
}

/* ======= Mobile ======= */
@media (max-width: 768px) {
    .plans{
        flex-direction: column;
        gap: 16px;
        justify-content: flex-start;
        align-items: flex-start;
    }

    .plan-card{
        width: 84%;
        max-width: none;
        margin: 0 auto 14px auto;  /* الكارت يتوسط في الموبايل */
        text-align: right;
        transform: none;
    }

    .upgrade-container{ padding: 0 6px; }
    .upgrade-title{ font-size: 26px; margin-bottom: 20px; }
    .plan-card h2{ font-size: 19px; }
    .price{ font-size: 19px; }
}
