/* ========================================
   MEME Client - Packages (Browse)
   ======================================== */

.packages-page {
    min-height: 100vh;
    padding: 40px 0 60px;
    background: linear-gradient(135deg, #f8fafc 0%, #e5e7eb 100%);
}

/* ========== Hero ========== */

.packages-hero {
    text-align: center;
    padding: 50px 20px 30px;
    background: linear-gradient(135deg, rgba(47,84,48,0.04), rgba(196,154,59,0.05));
    border-radius: 24px;
    margin-bottom: 40px;
}

.hero-badge {
    display: inline-block;
    padding: 7px 18px;
    background: linear-gradient(135deg, #2F5430, #C49A3B);
    color: #ffffff;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 14px;
    box-shadow: 0 4px 14px rgba(47,84,48,0.35);
}

.hero-title {
    font-size: 30px;
    font-weight: 900;
    color: #111827;
    margin-bottom: 8px;
}

.hero-subtitle {
    font-size: 15px;
    color: #6b7280;
    max-width: 520px;
    margin: 0 auto 26px;
}

/* ========== Custom package CTA ========== */

.custom-package-banner {
    max-width: 780px;
    margin: 0 auto;
}

.custom-package-btn {
    position: relative;
    display: block;
    padding: 2px;
    border-radius: 20px;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.25s ease;
}

.custom-package-btn:hover {
    transform: translateY(-3px);
}

.btn-gradient-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #2F5430, #C49A3B);
    border-radius: 20px;
    opacity: 0.9;
}

.btn-content {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 22px;
    background: #ffffff;
    border-radius: 18px;
}

.btn-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: linear-gradient(135deg, #2F5430, #3D6B3C);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 24px;
    box-shadow: 0 4px 14px rgba(47,84,48,0.35);
}

.btn-text {
    flex: 1;
    text-align: right;
}

.btn-text h4 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 800;
    color: #111827;
}

.btn-text p {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}

.btn-arrow {
    font-size: 20px;
    color: #2F5430;
    transition: transform 0.25s ease;
}

.custom-package-btn:hover .btn-arrow {
    transform: translateX(-6px);
}

/* ========== Section header ========== */

.section-header {
    text-align: center;
    margin: 40px 0 28px;
}

.section-header h2 {
    font-size: 24px;
    font-weight: 900;
    color: #111827;
    margin-bottom: 6px;
}

.section-header p {
    font-size: 14px;
    color: #6b7280;
}

/* ========== Packages grid ========== */

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 22px;
}

/* Card */

.package-card {
    position: relative;
    background: #ffffff;
    border-radius: 18px;
    padding: 20px 18px 18px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(15,23,42,0.06);
    transition: all 0.25s ease;
}

.package-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 18px;
    border: 1px solid transparent;
    background: linear-gradient(135deg, rgba(47,84,48,0.25), rgba(196,154,59,0.2)) border-box;
    -webkit-mask:
        linear-gradient(#fff 0 0) padding-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(15,23,42,0.1);
}

.package-card:hover::before {
    opacity: 1;
}

.package-card.popular {
    border-color: #C49A3B;
}

/* Popular ribbon */

/* شارة الأكثر اختياراً */
.popular-ribbon {
    position: absolute;
    top: 0;
    right: 18px;          /* على حافة الكارت من فوق */
    transform: translateY(-50%);  /* نصها فوق الكارت ونصها جوه */
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: #ffffff;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(245,158,11,0.5);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
}

.popular-ribbon::before {
    content: none; /* نشيل المثلث عشان ما يخبط في العنوان */
}

.popular-ribbon i {
    font-size: 13px;
}


.card-header {
    margin-bottom: 14px;
}

.package-name {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 800;
    color: #111827;
}

.package-desc {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}

/* Period badge */

.period-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px;
    border-radius: 12px;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    margin-bottom: 14px;
}

.period-emoji {
    font-size: 26px;
}

.period-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.period-name {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
}

.period-time {
    font-size: 11px;
    color: #6b7280;
}

/* Price */

.price-section {
    text-align: center;
    padding: 14px 10px;
    border-radius: 14px;
    background: linear-gradient(135deg, #F9FAFB, #EEF2FF);
    margin-bottom: 16px;
    position: relative;
}

.discount-badge {
    position: absolute;
    top: -10px;
    right: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #DC2626, #B91C1C);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 3px 10px rgba(220,38,38,0.4);
}

.price-old {
    font-size: 13px;
    color: #9ca3af;
    text-decoration: line-through;
    margin-bottom: 4px;
}

.price-current {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
}

.price-amount {
    font-size: 28px;
    font-weight: 900;
    color: #2F5430;
}

.price-currency {
    font-size: 13px;
    font-weight: 700;
    color: #2F5430;
}

.price-unit {
    font-size: 12px;
    color: #6b7280;
}

/* Stats */

.package-stats {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 10px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px dashed #E5E7EB;
    margin-bottom: 16px;
}

.stat-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: rgba(47,84,48,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2F5430;
    font-size: 15px;
}

.stat-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.stat-value {
    font-size: 15px;
    font-weight: 800;
    color: #111827;
}

.stat-label {
    font-size: 11px;
    color: #6b7280;
}

.stat-divider {
    width: 1px;
    height: 32px;
    background: #E5E7EB;
}

/* Durations */

.durations-section {
    padding: 10px 10px 12px;
    border-radius: 12px;
    background: #F9FAFB;
    margin-bottom: 14px;
}

.durations-section h5 {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 6px;
}

.durations-section h5 i {
    color: #2F5430;
    font-size: 13px;
}

.duration-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.duration-pill {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid #2F5430;
    font-size: 11px;
    font-weight: 700;
    color: #2F5430;
    background: #ffffff;
    transition: all 0.25s ease;
}

.duration-pill:hover {
    background: #2F5430;
    color: #ffffff;
}

/* Features */

.features-section {
    margin-bottom: 14px;
}

.features-section h5 {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 6px;
}

.features-section h5 i {
    color: #16A34A;
    font-size: 14px;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 10px;
    background: #F3F4F6;
    font-size: 12px;
    color: #111827;
}

.features-list li i {
    color: #16A34A;
    font-size: 13px;
}

.features-list li.more-features {
    background: #EEF2FF;
    color: #4338CA;
}

.features-list li.more-features i {
    color: #4338CA;
}

/* Footer / subscribe */

.card-footer {
    padding-top: 10px;
    border-top: 1px dashed #E5E7EB;
}

.subscribe-btn {
    width: 100%;
    border-radius: 12px;
    padding: 10px 14px;
    border: none;
    background: linear-gradient(135deg, #2F5430, #3D6B3C);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Cairo', sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(47,84,48,0.35);
    transition: all 0.25s ease;
}

.subscribe-btn.secondary {
    background: linear-gradient(135deg, #1c9637, #2F5430);
    box-shadow: 0 4px 12px rgba(79,70,229,0.35);
}

.subscribe-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15,23,42,0.25);
}

.subscribe-btn i {
    font-size: 14px;
}

/* Empty state */

.empty-state {
    text-align: center;
    padding: 50px 20px;
    border-radius: 20px;
    background: #F9FAFB;
    border: 1px dashed #E5E7EB;
}

.empty-icon {
    font-size: 60px;
    color: #9CA3AF;
    margin-bottom: 12px;
}

.empty-state h3 {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 800;
    color: #111827;
}

.empty-state p {
    margin: 0 0 16px;
    font-size: 13px;
    color: #6b7280;
}

.empty-state .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #2F5430, #3D6B3C);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(47,84,48,0.35);
}

/* FAQ */

.faq-section {
    margin-top: 50px;
    padding: 30px 0 0;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.faq-card {
    padding: 18px 16px;
    border-radius: 14px;
    background: #F9FAFB;
    border-right: 3px solid #2F5430;
    box-shadow: 0 1px 4px rgba(15,23,42,0.05);
}

.faq-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #2F5430;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 18px;
    margin-bottom: 10px;
}

.faq-card h5 {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 800;
    color: #111827;
}

.faq-card p {
    margin: 0;
    font-size: 12px;
    color: #6b7280;
}
/* ====================================
   حالات الباقة (التوفر)
==================================== */

.availability-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
}

.availability-badge.available {
    background: #d4edda;
    color: #155724;
}

.availability-badge.limited {
    background: #fff3cd;
    color: #856404;
    animation: pulse 2s infinite;
}

.availability-badge.expiring {
    background: #f8d7da;
    color: #721c24;
}

.availability-badge.full,
.availability-badge.expired,
.availability-badge.upcoming {
    background: #f8d7da;
    color: #721c24;
}

.availability-badge.full-temporary {
    background: #fff3cd;
    color: #856404;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ====================================
   معلومات السعة
==================================== */

.capacity-info {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    margin: 15px 0;
}

.capacity-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #495057;
    margin-bottom: 8px;
}

.capacity-text i {
    color: #6c757d;
}

.capacity-warning {
    margin-right: auto;
    color: #ff9800;
    font-weight: bold;
    font-size: 12px;
}

.capacity-bar-container {
    height: 8px;
    background: #dee2e6;
    border-radius: 4px;
    overflow: hidden;
}

.capacity-bar {
    height: 100%;
    transition: width 0.3s ease;
}

.capacity-bar.success {
    background: linear-gradient(90deg, #4caf50, #66bb6a);
}

.capacity-bar.warning {
    background: linear-gradient(90deg, #ff9800, #ffb74d);
}

.capacity-bar.danger {
    background: linear-gradient(90deg, #e74c3c, #c0392b);
}

.capacity-extra {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 6px 10px;
    background: rgba(255, 193, 7, 0.1);
    border-radius: 4px;
    font-size: 11px;
    color: #856404;
}

/* ====================================
   البطاقات غير المتاحة
==================================== */

.package-card.expired,
.package-card.full,
.package-card.upcoming {
    opacity: 0.7;
    position: relative;
}

.package-card.expired::before,
.package-card.full::before,
.package-card.upcoming::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.5);
    pointer-events: none;
    border-radius: inherit;
}

/* ====================================
   زر الإشعار
==================================== */

.notify-me-btn {
    margin-top: 10px;
}

.btn-notify {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-notify:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.subscribe-btn.disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.subscribe-btn.disabled:hover {
    transform: none;
}
/* ====================================
   زر الباقة الممتلئة
==================================== */

.subscribe-btn.full-btn {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    padding: 12px 20px;
    min-height: 60px;
}

.subscribe-btn.full-btn:hover {
    background: linear-gradient(135deg, #f57c00 0%, #e65100 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4);
}

.subscribe-btn.full-btn div {
    flex: 1;
}

.subscribe-btn.full-btn i {
    font-size: 18px;
}

/* Responsive */

@media (max-width: 768px) {
    .hero-title {
        font-size: 24px;
    }
    .hero-subtitle {
        font-size: 13px;
    }
    .btn-content {
        flex-direction: column;
        text-align: center;
    }
    .btn-text {
        text-align: center;
    }
    .packages-grid {
        grid-template-columns: 1fr;
    }
    .package-card {
        padding: 18px 14px;
    }
}

@media (max-width: 480px) {
    .packages-hero {
        padding: 32px 14px 24px;
    }
    .section-header h2 {
        font-size: 20px;
    }
}
