@charset "UTF-8";
/* استدعاء الخطوط: Cairo للنصوص العادية، و Tajawal للعناوين العريضة جداً */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700&family=Tajawal:wght@500;700;800;900&display=swap');

:root {
    --ink: #111827; /* أسود داكن جداً لتباين ممتاز على الأبيض */
    --muted: #6b7280;
    --paper: #ffffff; /* أبيض سادة منور للخلفية */
    --surface: #ffffff; /* أبيض سادة للعناصر */
    --accent: #a44d37;
    --accent-dark: #823b2b;
    --line: #e5e7eb; /* لون رمادي فاتح جداً للخطوط الفاصلة */
    --soft: #fdf3f1;
    --green: #10b981;
    --radius: 20px;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 24px 50px rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { 
    margin: 0; 
    color: var(--ink); 
    background: var(--paper); 
    font: 15px/1.8 'Cairo', sans-serif; 
    -webkit-font-smoothing: antialiased; 
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
a { color: inherit; text-decoration: none; transition: all 0.2s ease; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { opacity: 0.6; cursor: not-allowed; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }

/* ================= فرض الخط العريض (Heavy/Bold) ================= */
h1 { 
    font-family: 'Tajawal', 'Cairo', sans-serif !important; 
    font-size: clamp(34px, 4.8vw, 64px); 
    font-weight: 900 !important; /* أعرض وزن متاح */
    line-height: 1.3; 
    letter-spacing: -1px; 
}
h2 { 
    font-family: 'Tajawal', 'Cairo', sans-serif !important; 
    font-size: 28px; 
    font-weight: 800 !important; 
    line-height: 1.4; 
    letter-spacing: -0.5px; 
}
h3 { 
    font-family: 'Tajawal', 'Cairo', sans-serif !important; 
    font-size: 21px; 
    font-weight: 800 !important; 
}
.brand { 
    font-family: 'Tajawal', 'Cairo', sans-serif !important; 
    font-weight: 900 !important; 
}

em { font-style: normal; color: var(--accent); }
[hidden] { display: none !important; }
.wrap { max-width: 1180px; width: calc(100% - 40px); margin-inline: auto; }

/* ================= Animations ================= */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}
.animate-up { animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* ================= الهيدر (Header) ================= */
.site-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}
.header-inner { max-width: 1180px; padding: 16px 32px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 24px; letter-spacing: -0.5px; color: var(--ink); }
.brand-icon {
    display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #ffffff; width: 40px; height: 40px; border-radius: 12px; font: 700 24px 'Tajawal', sans-serif;
    box-shadow: 0 4px 12px rgba(164, 77, 55, 0.3);
}
nav { display: flex; align-items: center; gap: 32px; font-size: 15px; font-weight: 600; }
nav a:not(.button), .nav-link { color: var(--muted); background: none; border: 0; padding: 0; transition: color 0.2s; }
nav a:not(.button):hover, .nav-link:hover { color: var(--accent); }
nav form { margin: 0; }
.menu-toggle { display: none; }

/* ================= Buttons ================= */
.button {
    display: inline-flex; align-items: center; justify-content: center; gap: 12px;
    background: var(--accent); color: #fff; border: none; border-radius: 12px;
    padding: 12px 24px; font-weight: 700; font-size: 15px; line-height: 1.5;
    transition: all 0.3s ease; box-shadow: var(--shadow-sm);
}
.button:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.button span { font-size: 18px; transition: transform 0.3s ease; }
.button:hover span { transform: translateX(-4px) translateY(-4px); }
.button.small { padding: 10px 18px; font-size: 14px; gap: 8px; }
.button.full { width: 100%; padding: 14px 24px; font-size: 16px; }
.button.secondary { background: var(--soft); color: var(--accent-dark); }
.button.light { background: var(--soft); color: var(--accent); box-shadow: none; }
.button.light:hover { background: #f5e4e0; }

/* ================= Hero Section ================= */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; min-height: 600px; padding-block: 80px; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; color: var(--accent); font-weight: 700; background: var(--soft); padding: 4px 12px; border-radius: 20px; }
.status-dot { height: 8px; width: 8px; border-radius: 50%; background: var(--green); display: inline-block; box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2); }
.hero h1 { margin: 20px 0; }
.lead { font-size: 17px; line-height: 1.8; color: var(--muted); max-width: 480px; font-weight: 500; }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 32px; }
.text-link { font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; transition: color 0.2s; }
.text-link:hover { color: var(--accent); }
.text-link span { margin-right: 8px; transition: transform 0.2s; }
.text-link:hover span { transform: translateX(-4px); }
.hero-note { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 13px; margin-top: 24px; font-weight: 500; }
.hero-note > span { color: var(--green); background: #d1fae5; padding: 2px 6px; border-radius: 50%; font-size: 10px; }

/* ================= Hero Art ================= */
.hero-art { min-height: 480px; position: relative; display: grid; place-items: center; }
.orbit { position: absolute; border: 1px dashed var(--line); border-radius: 50%; z-index: -1; animation: spin 40s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }
.orbit-one { width: 380px; height: 380px; }
.orbit-two { width: 480px; height: 480px; border: 1px solid var(--soft); }
.preview-card {
    width: 360px; max-width: 90%; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(12px);
    border: 1px solid var(--line); border-radius: 24px; padding: 24px;
    box-shadow: var(--shadow-lg); transform: rotate(-2deg); animation: float 6s ease-in-out infinite;
}
.preview-top { display: flex; gap: 12px; align-items: center; font-size: 13px; font-weight: 700; }
.mini-logo { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: white; font-weight: 800; font-family: 'Tajawal', sans-serif;}
.preview-top small { display: block; font-size: 11px; color: var(--muted); font-weight: 500; }
.sample-account { display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--paper); border-radius: 14px; margin-top: 16px; font-size: 13px; font-weight: 600; border: 1px solid var(--line); }
.sample-account small { display: block; font-size: 11px; color: var(--muted); font-weight: 400; }
.account-symbol { background: var(--soft); border-radius: 10px; display: grid; place-items: center; width: 38px; height: 38px; font-size: 18px; color: var(--accent); }
.badge { display: inline-block; background: #d1fae5; color: var(--green); border-radius: 20px; padding: 4px 12px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.floating-tag { position: absolute; bottom: 20px; right: -20px; background: var(--surface); box-shadow: var(--shadow-md); border-radius: 16px; border: 1px solid var(--line); display: flex; align-items: center; gap: 12px; padding: 12px 18px; font-size: 13px; font-weight: 700; transform: rotate(3deg); animation: float 5s ease-in-out infinite reverse; }

/* ================= Features ================= */
.benefit-strip { display: flex; justify-content: center; gap: 40px; border-block: 1px solid var(--line); padding-block: 24px; align-items: center; font-size: 15px; font-weight: 600; background: var(--surface); }
.benefit-strip b { color: var(--accent); margin-right: 8px; }
.section { padding-block: 100px; }
.section-heading { margin-bottom: 32px; }
.section-heading h2 { margin-top: 10px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-grid article { border: 1px solid var(--line); border-radius: 24px; padding: 32px; background: var(--surface); transition: transform 0.3s, box-shadow 0.3s; }
.feature-grid article:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.feature-number { display: grid; place-items: center; height: 44px; width: 44px; background: var(--soft); border-radius: 12px; color: var(--accent); font-size: 16px; font-weight: 800; margin-bottom: 24px; }
.feature-grid p { font-size: 14px; color: var(--muted); margin-top: 12px; line-height: 1.8; }

/* ================= Auth Layout (تسجيل الدخول وإنشاء حساب - المربعات الأنيقة) ================= */
.auth-layout { display: grid; grid-template-columns: 1fr 420px; gap: 80px; align-items: center; padding-block: 60px; max-width: 1000px; margin: auto; }
.auth-story h1 { font-size: 42px; margin-block: 16px; }
.auth-story > p { color: var(--muted); max-width: 360px; margin-bottom: 30px; font-size: 16px; }
.story-line { display: flex; gap: 16px; align-items: center; padding: 12px 0; font-size: 15px; font-weight: 600; }
.story-line > span { font-size: 12px; color: var(--accent); background: var(--soft); border-radius: 50%; height: 32px; width: 32px; display: grid; place-items: center; font-weight: 800; }

.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 32px; box-shadow: var(--shadow-lg); width: 100%; }
.form-kicker { color: var(--accent); font-size: 12px; font-weight: 700; background: var(--soft); padding: 4px 10px; border-radius: 12px; }
.form-card h2 { margin: 12px 0 8px; font-size: 26px; }
.form-card > p { font-size: 14px; color: var(--muted); margin-bottom: 24px; font-weight: 500; }
.form-card a { color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.form-card label { display: block; font-size: 13px; font-weight: 600; margin: 16px 0 8px; color: var(--ink); }

/* مدخلات الفورم أصغر وأكثر أناقة */
.form-card input { 
    width: 100%; border: 1px solid var(--line); background: #f9fafb; color: var(--ink); 
    padding: 10px 14px; border-radius: 10px; font-size: 14px; font-family: inherit; font-weight: 500;
    transition: all 0.2s; min-height: 44px; 
}
.form-card input:focus { background: #fff; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(164, 77, 55, 0.1); }
.form-card input::placeholder { font-size: 13px; color: #9ca3af; font-weight: 400; }
.password-wrap { position: relative; }
.password-wrap input { padding-left: 65px; }
.show-password { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); border: 0; background: rgba(164,77,55,0.05); font-size: 12px; font-weight: 600; color: var(--accent); padding: 6px 10px; border-radius: 8px; transition: background 0.2s; }
.show-password:hover { background: rgba(164,77,55,0.15); }
.form-note { display: block; text-align: center; color: var(--muted); font-size: 11px; margin-top: 16px; font-weight: 500; }

.alert { font-size: 13px; border: 1px solid var(--line); background: #f9fafb; padding: 12px; border-radius: 10px; line-height: 1.8; overflow-wrap: anywhere; margin-bottom: 16px; font-weight: 500; }
.alert.error { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.alert.success { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }

/* ================= Dashboard Layout (تم الحفاظ عليها وتحسين ألوانها) ================= */
.dashboard { padding-top: 45px; padding-bottom: 60px; }
.dashboard-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.dashboard-heading p { color: var(--muted); font-size: 14px; margin-top: 8px; }
.dashboard-grid { display: grid; grid-template-columns: 350px 1fr; gap: 24px; align-items: start; }
.panel { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.panel-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.panel h2 { font-size: 22px; }
.muted { color: var(--muted); font-size: 13px; }
.hint { font-size: 12px; color: var(--muted); line-height: 1.9; margin: 13px 0; }
.icon-button { border: 1px solid var(--line); border-radius: 9px; width: 38px; height: 38px; background: var(--surface); color: var(--accent); font-size: 20px; flex-shrink: 0; display: grid; place-items: center; transition: all 0.2s; }
.icon-button:hover { background: var(--soft); }
.count { background: var(--soft); font-size: 12px; display: inline-grid; place-items: center; width: 25px; height: 25px; border-radius: 8px; color: var(--accent); vertical-align: middle; margin-right: 8px; font-weight: 700; }
.empty-state { text-align: center; padding: 40px 10px; }
.empty-state > span { display: inline-grid; place-items: center; border: 1px solid var(--line); height: 60px; width: 60px; border-radius: 50%; color: var(--accent); font-size: 24px; margin-bottom: 16px; background: var(--soft); }
.account-card { border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin-top: 16px; background: #fafafa; }
.account-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; }
.address { direction: ltr; unicode-bidi: isolate; overflow-wrap: anywhere; font: 13px/1.8 ui-monospace, Consolas, monospace; text-align: right; user-select: all; color: var(--ink); background: #fff; padding: 8px; border: 1px solid var(--line); border-radius: 8px; margin: 12px 0; }
.account-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.account-actions button { font-size: 12px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); transition: background 0.2s; font-weight: 600; }
.account-actions button:hover { background: var(--line); }
.account-actions .danger { color: #dc2626; background: #fef2f2; border-color: #fecaca; }
.account-actions .danger:hover { background: #fee2e2; }

/* QR Box & Tables */
#qr-box { margin-top: 24px; text-align: center; }
#qr { width: 100%; max-width: 260px; background: white; border: 1px solid var(--line); border-radius: 16px; padding: 10px; }
#countdown { display: block; color: var(--accent); font-size: 20px; font-weight: 700; margin-top: 12px; font-variant-numeric: tabular-nums; }
.transaction-toolbar { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin: 20px 0; }
.table-scroll { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; text-align: right; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-size: 12px; background: #f9fafb; color: var(--muted); font-weight: 700; }
tbody tr:hover { background: #f9fafb; }

/* ================= API Panel ================= */
.api-panel { margin-top: 24px; }
.token-box { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; border: 1px dashed #d1d5db; border-radius: 16px; background: #f9fafb; padding: 16px; margin-top: 16px; }
.token-box small { grid-column: 1/-1; color: var(--muted); font-size: 11px; }
.token-box code { direction: ltr; unicode-bidi: isolate; overflow-wrap: anywhere; font: 13px/1.8 ui-monospace, Consolas, monospace; color: var(--accent-dark); text-align: left; font-weight: 600; }
.api-example { direction: ltr; text-align: left; white-space: pre-wrap; overflow: auto; background: #111827; color: #f3f4f6; border-radius: 12px; padding: 16px; font: 13px/1.8 ui-monospace, Consolas, monospace; margin: 16px 0 0; }

/* ================= الفوتر (Premium Footer) ================= */
.site-footer { background: #ffffff; border-top: 1px solid var(--line); padding: 80px 20px 24px; margin-top: auto; }
.footer-inner { max-width: 1180px; margin: auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; }
.footer-brand h3 { font-size: 24px; font-weight: 900; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; font-family: 'Tajawal', sans-serif; }
.footer-brand p { color: var(--muted); font-size: 14px; max-width: 320px; line-height: 1.8; font-weight: 500; }
.footer-links h4 { font-size: 17px; font-weight: 800; margin-bottom: 24px; color: var(--ink); font-family: 'Tajawal', sans-serif; }
.footer-links ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.footer-links a { color: var(--muted); font-size: 14px; font-weight: 600; transition: all 0.2s ease; display: inline-flex; align-items: center; }
.footer-links a:hover { color: var(--accent); transform: translateX(-6px); }
.footer-bottom { max-width: 1180px; margin: 60px auto 0; border-top: 1px solid var(--line); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); font-weight: 600; }

/* ================= Media Queries ================= */
@media(max-width: 1000px) {
    .hero { gap: 30px; }
    .hero-art { min-height: 430px; }
    .orbit-one { width: 340px; height: 340px; }
    .orbit-two { width: 390px; height: 390px; }
    .preview-card { width: 320px; }
    .floating-tag { right: -5px; }
    .auth-layout { gap: 45px; }
    .dashboard-grid { grid-template-columns: 310px 1fr; }
    .panel { padding: 22px; }
    nav { gap: 20px; }
}
@media(max-width: 900px) {
    .auth-layout { grid-template-columns: 1fr; gap: 40px; }
    .auth-story { text-align: center; }
    .auth-story p { margin: 0 auto 30px; }
    .story-line { justify-content: center; }
    .hero { grid-template-columns: 1fr; text-align: center; padding-top: 40px; }
    .hero-copy { display: flex; flex-direction: column; align-items: center; }
    .hero-actions { justify-content: center; flex-wrap: wrap; }
    .hero-art { display: none; } /* إخفاء الرسمة في الشاشات الصغيرة لتوفير المساحة */
    .footer-inner { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .footer-brand p { margin: 0 auto; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
@media(max-width: 760px) {
    .wrap { width: calc(100% - 32px); }
    .header-inner { padding: 16px 20px; }
    .brand { font-size: 20px; }
    .brand-icon { width: 36px; height: 36px; font-size: 20px; }
    
    .menu-toggle { display: flex; flex-direction: column; gap: 5px; padding: 10px; background: transparent; border: 1px solid var(--line); border-radius: 10px; }
    .menu-toggle span { height: 2px; width: 22px; background: var(--ink); border-radius: 2px; }
    
    nav { display: none; position: absolute; top: 76px; left: 16px; right: 16px; background: var(--surface); padding: 24px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); border-radius: 16px; flex-direction: column; align-items: stretch; gap: 16px; }
    nav.open { display: flex; }
    
    h1 { font-size: 38px; }
    h2 { font-size: 24px; }
    
    .benefit-strip { flex-direction: column; gap: 16px; }
    .feature-grid { grid-template-columns: 1fr; }
    
    .dashboard-grid { grid-template-columns: 1fr; gap: 20px; }
    .dashboard-heading { flex-direction: column; align-items: flex-start; gap: 12px; }
    .panel h2 { font-size: 20px; }
    .transaction-toolbar { flex-direction: column; align-items: flex-start; gap: 12px; }
}
@media(max-width: 500px) {
    .form-card { padding: 24px 20px; border-radius: 20px; }
    .token-box { grid-template-columns: 1fr; }
    .token-box .icon-button { width: 100%; margin-top: 10px; }
}
@media(prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; animation: none !important; }
}
