:root {
    --primary: #38bdf8;
    --secondary: #10b981;
    --dark: #0f172a;
    --danger: #ef4444;
    --glass: rgba(30, 41, 59, 0.7);
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Cairo', sans-serif; }
body { background-color: var(--dark); color: #f8fafc; overflow-x: hidden; }

.glow-bg { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle at 50% 50%, #1e3a8a 0%, #0f172a 80%); z-index: -1; }

.site-header { text-align: center; padding: 50px 20px; }
.logo { font-size: 2rem; font-weight: 700; color: white; margin-bottom: 10px; }
.logo span { color: var(--primary); }

/* شبكة البطاقات */
.cards-grid { display: flex; justify-content: center; gap: 25px; padding: 20px; flex-wrap: wrap; max-width: 1400px; margin: 0 auto; }
.card-item { background: var(--glass); backdrop-filter: blur(12px); border-radius: 24px; padding: 25px; text-align: center; width: 260px; border: 1px solid rgba(255, 255, 255, 0.1); transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1); cursor: pointer; position: relative; }
.card-item:hover { transform: translateY(-10px) scale(1.02); border-color: var(--primary); box-shadow: 0 20px 40px rgba(0,0,0,0.4); }

/* --- إصلاح طبقات ملصق الخصم --- */
.special-promo { border: 2px solid var(--danger) !important; box-shadow: 0 0 20px rgba(239, 68, 68, 0.2); }
.promo-badge { 
    position: absolute; 
    top: 15px; 
    left: 15px; 
    background: var(--danger); 
    padding: 6px 14px; 
    border-radius: 10px; 
    font-weight: 700; 
    font-size: 0.85rem; 
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.6); 
    z-index: 10; /* يضمن الظهور فوق الصورة */
}

.card-item img { 
    width: 100%; 
    height: 140px; 
    object-fit: contain; 
    margin-bottom: 20px; 
    filter: drop-shadow(0 10px 10px rgba(0,0,0,0.3)); 
    position: relative;
    z-index: 1; /* يبقى أسفل الملصق */
}

.select-btn { width: 100%; padding: 12px; background: transparent; border: 2px solid var(--primary); color: var(--primary); border-radius: 12px; font-weight: 700; cursor: pointer; transition: 0.3s; }
.card-item:hover .select-btn { background: var(--primary); color: var(--dark); }

.timer-display-card { font-size: 0.8rem; color: var(--danger); font-weight: bold; margin-bottom: 10px; }

/* المودال ونظام الخطوات */
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); z-index: 2000; display: none; justify-content: center; align-items: center; backdrop-filter: blur(5px); }
.modal-content { background: #1e293b; padding: 40px; border-radius: 32px; width: 450px; position: relative; border: 1px solid rgba(255,255,255,0.05); }

.step-indicator { display: flex; align-items: center; justify-content: center; margin-bottom: 30px; }
.step { width: 35px; height: 35px; border-radius: 50%; background: #334155; display: flex; align-items: center; justify-content: center; font-weight: 700; transition: 0.3s; }
.step.active { background: var(--primary); color: var(--dark); box-shadow: 0 0 15px var(--primary); }
.line { width: 40px; height: 2px; background: #334155; margin: 0 10px; }

.step-label { color: #94a3b8; font-size: 0.95rem; margin-bottom: 15px; }
.fade-in { animation: fadeIn 0.4s ease forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.categories-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cat-btn { padding: 12px; background: #0f172a; border: 1px solid #334155; border-radius: 12px; color: white; cursor: pointer; font-weight: 700; transition: 0.2s; }
.cat-btn.active { background: var(--primary); color: #0f172a; border-color: var(--primary); }

.price-box { background: rgba(16, 185, 129, 0.1); border: 1px solid var(--secondary); padding: 20px; border-radius: 16px; text-align: center; margin: 20px 0; }
.price-box strong { font-size: 2rem; color: var(--secondary); }

.main-action-btn { width: 100%; padding: 16px; background: var(--secondary); color: white; border: none; border-radius: 16px; font-size: 1.1rem; font-weight: 700; cursor: pointer; transition: 0.3s; }
.main-action-btn:hover { background: #059669; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(16, 185, 129, 0.2); }

.pro-input { width: 100%; padding: 16px; background: #0f172a; border: 1px solid #334155; border-radius: 16px; color: white; font-size: 1.1rem; text-align: center; margin-bottom: 10px; }
.mini-price { text-align: center; margin-bottom: 15px; color: #94a3b8; }

.network-options { display: flex; flex-direction: column; gap: 12px; }
.net-card { padding: 20px; border-radius: 16px; border: 1px solid #334155; background: #0f172a; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: 0.3s; }
.net-card:hover { border-color: white; background: #1e293b; }
.net-card.trc strong { color: var(--danger); }
.net-card.bep strong { color: #eab308; }

.back-link { background: none; border: none; color: #64748b; cursor: pointer; display: block; margin: 15px auto 0; text-decoration: underline; font-size: 0.9rem; }
.hidden { display: none !important; }

/* الإشعارات */
.notification-toast { position: fixed; bottom: 20px; left: 20px; background: rgba(30, 41, 59, 0.95); border-right: 4px solid var(--primary); padding: 12px 20px; border-radius: 10px; z-index: 9999; box-shadow: 0 10px 30px rgba(0,0,0,0.5); animation: slideIn 0.5s ease; }
@keyframes slideIn { from { transform: translateX(-100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
/* تنسيق صفحة الدفع الاحترافية */
.payment-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #0b111a;
    padding: 20px;
}

.payment-container {
    background: #151d27;
    width: 100%;
    max-width: 480px;
    border-radius: 24px;
    padding: 35px;
    border: 1px solid #1f2a37;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

/* قسم ملخص البيانات الجديد */
.order-details-top {
    background: rgba(56, 189, 248, 0.05);
    border: 1px dashed #38bdf8;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
}
.detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 5px;
}
.detail-row span { color: #94a3b8; }
.detail-row strong { color: #fff; }

/* شبكة معلومات الدفع (كما في الصورة) */
.payment-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #0f1721;
    border-radius: 16px;
    padding: 15px;
    margin-bottom: 25px;
    border: 1px solid #1e293b;
}
.p-info-box { text-align: center; }
.border-right { border-right: 1px solid #1e293b; }
.p-label { display: block; color: #6b7280; font-size: 0.8rem; margin-bottom: 5px; }
.p-value { font-size: 1.2rem; font-weight: bold; }
.amount-highlight { color: #10b981; } /* اللون الأخضر من الصور */
.network-highlight { color: #fff; }

/* منطقة الـ QR */
.qr-frame {
    background: white;
    padding: 12px;
    border-radius: 16px;
    display: inline-block;
}
.qr-frame img { width: 180px; height: 180px; display: block; }
.qr-hint { font-size: 0.85rem; color: #94a3b8; margin-top: 10px; }

/* حقل النسخ */
.copy-input-group {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}
.address-display {
    flex: 1;
    background: #0b111a;
    border: 1px solid #1e293b;
    border-radius: 10px;
    padding: 12px;
}
.address-display input {
    width: 100%;
    background: transparent;
    border: none;
    color: #3b82f6; /* اللون الأزرق من الصورة */
    text-align: center;
    font-family: monospace;
}
.copy-btn-icon {
    background: #10b981;
    border: none;
    border-radius: 10px;
    width: 50px;
    color: white;
    cursor: pointer;
}

/* صندوق التنبيه */
.security-alert {
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid #ef4444;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    gap: 12px;
    margin: 20px 0;
    text-align: right;
    font-size: 0.8rem;
    line-height: 1.5;
}

.timer-clock {
    font-size: 2rem;
    color: #ef4444;
    font-weight: bold;
}

.finalize-action-btn {
    width: 100%;
    padding: 18px;
    background: #10b981;
    border: none;
    border-radius: 15px;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.2);
}
/* تنسيق صفحة الإثبات */
.proof-page { display: flex; justify-content: center; align-items: center; min-height: 100vh; padding: 20px; }
.proof-container { background: #1e293b; width: 100%; max-width: 500px; border-radius: 28px; padding: 35px; border: 1px solid rgba(255,255,255,0.05); }

.proof-header { text-align: center; margin-bottom: 25px; }
.proof-header h2 { font-size: 1.6rem; color: #fff; margin-bottom: 8px; }
.proof-header p { color: #94a3b8; font-size: 0.85rem; }

/* صندوق الملخص */
.final-summary-box { 
    background: #111827; border-radius: 18px; padding: 20px; 
    display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 25px; border: 1px solid #334155;
}
.summary-item span { display: block; font-size: 0.75rem; color: #64748b; margin-bottom: 4px; }
.summary-item strong { color: #fff; font-size: 1rem; }
.summary-item.full-width { grid-column: span 2; border-top: 1px solid #1f2937; padding-top: 10px; }
.green-text { color: #10b981 !important; }

/* منطقة الرفع */
.file-upload-wrapper { margin-bottom: 20px; }
.upload-label { 
    display: flex; flex-direction: column; align-items: center; padding: 30px; 
    border: 2px dashed #334155; border-radius: 20px; cursor: pointer; transition: 0.3s; background: rgba(15, 23, 42, 0.4);
}
.upload-label:hover { border-color: #38bdf8; background: rgba(56, 189, 248, 0.05); }
.upload-icon { font-size: 2.5rem; margin-bottom: 10px; }
.upload-label span { font-weight: bold; color: #fff; margin-bottom: 5px; }
.upload-label small { color: #64748b; }
#proof-file { display: none; }

.info-note { background: rgba(56, 189, 248, 0.1); color: #38bdf8; padding: 12px; border-radius: 10px; font-size: 0.75rem; margin-bottom: 25px; line-height: 1.4; }

.submit-final-btn { 
    width: 100%; padding: 18px; background: #38bdf8; border: none; border-radius: 16px; 
    color: #0f172a; font-size: 1.1rem; font-weight: 800; cursor: pointer; transition: 0.3s;
}
.submit-final-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(56, 189, 248, 0.3); }