:root {
    --primary: #3b82f6;
    --accent: #fbbf24;
    --success: #10b981;
    --dark: #05070a;
    --card: #0f172a;
    --white: #f8fafc;
}

body {
    margin: 0; font-family: 'Cairo', sans-serif;
    background-color: var(--dark); color: var(--white);
    line-height: 1.6; direction: rtl;
    overflow-x: hidden;
}

.container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }

/* Hero Section with Cinematic MAN Truck Background */
.hero { 
    padding: 100px 0 140px; 
    text-align: center;
    /* صورة احترافية لشاحنة MAN مع طبقة تعتيم متدرجة */
    background: linear-gradient(rgba(5, 7, 10, 0.75), rgba(5, 7, 10, 0.95)), 
                url('https://images.unsplash.com/photo-1601584115197-04ecc0da31d7?auto=format&fit=crop&q=80&w=2000');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
    border-bottom: 2px solid rgba(59, 130, 246, 0.2);
}

h1 { font-size: 3.5rem; font-weight: 900; margin: 0; }
.accent { color: var(--accent); text-shadow: 0 0 25px rgba(251, 191, 36, 0.4); }
.hero-lead { font-size: 1.25rem; color: #94a3b8; max-width: 750px; margin: 25px auto; }

/* Article Styling */
.article-container { margin-top: -60px; position: relative; z-index: 10; }
.main-article { background: var(--card); padding: 40px; border-radius: 24px; border: 1px solid #1e293b; box-shadow: 0 15px 40px rgba(0,0,0,0.4); }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; margin: 30px 0; }
.info-item { background: rgba(15, 23, 42, 0.5); padding: 20px; border-radius: 15px; border-right: 4px solid var(--primary); }
.cta-box { background: rgba(59, 130, 246, 0.1); border: 1px dashed var(--primary); padding: 25px; border-radius: 15px; margin-top: 30px; text-align: center; }

/* Dashboard & Calculator */
.dashboard { background: #111827; padding: 30px; border-radius: 24px; border: 2px solid var(--primary); margin: 50px 0; }
.dashboard-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.live-status { color: var(--success); font-weight: 700; font-size: 0.9rem; background: rgba(16, 185, 129, 0.1); padding: 5px 15px; border-radius: 20px; }

.input-row input { 
    width: 100%; background: #020617; border: 1px solid #334155; 
    padding: 18px; border-radius: 16px; color: white; font-size: 1.8rem; text-align: center;
    box-sizing: border-box; margin-top: 10px; font-weight: bold;
}

.stats-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 25px 0; }
.stat-item { background: #020617; padding: 20px; border-radius: 16px; text-align: center; border: 1px solid #1e293b; }
.stat-item h4 { font-size: 1.8rem; margin: 8px 0 0; }
.highlight-stat h4 { color: var(--accent); }

/* Payment Portal UI (Perfect Match for Image) */
.payment-portal { background: #12181f; border: 1px solid #2a3541; padding: 30px !important; text-align: center; }
.portal-title { font-size: 2rem; margin: 0; font-weight: 800; }
.portal-sub { color: #64748b; margin: 8px 0 25px; font-size: 1.1rem; }

.payment-details-box { 
    display: flex; justify-content: space-between; 
    background: #0d1117; padding: 20px; border-radius: 15px; margin-bottom: 25px; border: 1px solid #1e293b;
}
.p-detail span { color: #64748b; font-size: 0.9rem; display: block; margin-bottom: 5px; }
.p-detail strong { font-size: 1.4rem; }
.green-text { color: var(--success); }

.qr-container img { background: white; padding: 12px; border-radius: 15px; width: 220px; margin: 0 auto; display: block; border: 5px solid #1e293b; }

.address-copy-container { 
    background: #000; padding: 18px; border-radius: 12px; cursor: pointer;
    display: flex; align-items: center; justify-content: space-between; margin-top: 15px; border: 1px solid #2a3541;
}
.wallet-addr { font-family: monospace; color: var(--success); font-size: 0.85rem; word-break: break-all; text-align: left; direction: ltr; flex: 1; margin-left: 10px; }

.warning-note { 
    background: rgba(245, 158, 11, 0.05); border: 1px solid rgba(245, 158, 11, 0.2);
    padding: 18px; border-radius: 12px; color: var(--accent); font-size: 0.85rem; margin: 25px 0; line-height: 1.5;
}

/* Modals & Buttons */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); z-index: 9999; overflow-y: auto; }
.modal-content { background: var(--card); width: 92%; max-width: 480px; margin: 5% auto; padding: 25px; border-radius: 24px; position: relative; border: 1px solid #334155; }

.btn { padding: 16px 32px; border-radius: 14px; font-weight: bold; cursor: pointer; border: none; transition: 0.3s; }
.btn-gold { background: var(--accent); color: #000; }
.btn-pay-now { width: 100%; background: var(--primary); color: white; margin-top: 25px; font-size: 1.2rem; }
.btn-confirm-final { width: 100%; background: var(--success); color: white; padding: 18px; margin-top: 15px; font-size: 1.1rem; }

.verification-form input { width: 100%; padding: 14px; margin-bottom: 12px; border-radius: 10px; border: 1px solid #334155; background: #0b0f19; color: white; box-sizing: border-box; }

.close { position: absolute; left: 20px; top: 15px; font-size: 30px; cursor: pointer; color: #64748b; }

/* Network Selection */
.net-card { background: #0d1117; padding: 15px; border-radius: 14px; display: flex; align-items: center; cursor: pointer; border: 2px solid transparent; margin-bottom: 10px; transition: 0.3s; }
.net-card:hover { border-color: var(--primary); background: #1e293b; }
.net-card img { width: 45px; margin-left: 15px; }

/* Pulse Animation for Gold Button */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(251, 191, 36, 0); }
    100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0); }
}
.pulse { animation: pulse 2s infinite; }

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .stats-row { grid-template-columns: 1fr; }
    .hero-btns { display: flex; flex-direction: column; gap: 10px; }
}