/* هوية تمام: خلفية داكنة دافئة + برتقالي #ff5a26 (نفس موقع الشركة وتطبيق الترويج).
   CSS يستعمل خصائص منطقية (inline-start/end) حتى يشتغل RTL و LTR بنفس الملف. */
:root {
  --bg: #14120e;
  --bg-2: #1a1813;
  --card: #211e18;
  --card-2: #2a261f;
  --line: #322e26;
  --text: #f5f1e8;
  --muted: #b9b3a5;
  --accent: #ff5a26;
  --accent-d: #e84a17;
  --tint: #3a2219;
  --good: #35c07a;
  --danger: #ff6b6b;
  --radius: 16px;
  --shadow: 0 8px 28px rgba(0, 0, 0, .35);
  --font: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, 'Noto Sans Arabic', system-ui, sans-serif;
}
:root:lang(en), :root:lang(tr) { --font: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; color-scheme: dark; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.7; font-size: 16px; overflow-wrap: anywhere; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1120px; margin-inline: auto; padding-inline: 20px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* الشريط العلوي */
.topbar { background: var(--bg-2); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 12px; flex-wrap: wrap; padding-block: 8px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; }
.brand img { width: 36px; height: 36px; }
.nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav a, .nav button { color: var(--muted); padding: 8px 14px; border-radius: 10px; font-size: 15px; background: none; border: 0; cursor: pointer; font-family: inherit; white-space: nowrap; }
.nav a:hover, .nav button:hover { background: var(--card); color: var(--text); }
.nav .cta { background: var(--accent); color: var(--bg); font-weight: 700; }
.nav .cta:hover { background: var(--accent-d); color: var(--bg); }
select.lang { width: auto; padding: 6px 10px; font-size: 14px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); color: var(--text); }

/* أزرار وحقول */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: var(--bg); font-weight: 800; font-family: inherit; font-size: 16px;
  border: 0; border-radius: 999px; padding: 12px 26px; cursor: pointer; transition: .15s;
}
.btn:hover { background: var(--accent-d); transform: translateY(-1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn.dark { background: var(--card-2); color: var(--text); border: 1px solid var(--line); }
.btn.dark:hover { background: var(--line); }
.btn.ghost { background: transparent; color: var(--text); border: 1.5px solid rgba(245, 241, 232, .25); }
.btn.ghost:hover { background: var(--text); color: var(--bg); }
.btn.sm { padding: 6px 16px; font-size: 14px; }
.btn.danger { background: var(--danger); color: var(--bg); }
label { display: block; font-weight: 700; margin: 14px 0 6px; font-size: 15px; }
input, select, textarea {
  width: 100%; font-family: inherit; font-size: 16px; padding: 12px 14px; color: var(--text);
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
input::placeholder { color: #6f695c; }
input[dir="ltr"], .ltr { direction: ltr; text-align: start; }
:root[dir="rtl"] input[dir="ltr"] { text-align: right; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.muted { color: var(--muted); }
.row { display: flex; gap: 16px; flex-wrap: wrap; }
.row > * { flex: 1 1 260px; }
.msg { padding: 12px 16px; border-radius: 12px; margin: 12px 0; font-weight: 600; }
.msg.err { background: #3a1d1d; color: #ff9d9d; border: 1px solid #5a2a2a; }
.msg.good { background: #14301f; color: #7be2a8; border: 1px solid #1f4a30; }

/* الصفحة الرئيسية */
.hero { background: var(--bg); padding: 76px 0 96px; position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::after { content: ""; position: absolute; width: 560px; height: 560px; border-radius: 50%; inset-inline-end: -180px; top: -240px;
  background: radial-gradient(circle, rgba(255, 90, 38, .28), transparent 65%); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(32px, 5vw, 54px); line-height: 1.3; margin: 0 0 16px; font-weight: 800; max-width: 760px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { font-size: 19px; color: var(--muted); max-width: 620px; margin: 0 0 28px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.stats { display: flex; gap: 32px; margin-top: 44px; flex-wrap: wrap; }
.stats b { display: block; font-size: 28px; color: var(--accent); }
.stats span { color: var(--muted); font-size: 14px; }

section { padding: 56px 0; }
section.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
h2.title { font-size: 30px; margin: 0 0 8px; font-weight: 800; }
.sub { color: var(--muted); margin: 0 0 28px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.step .num { width: 42px; height: 42px; border-radius: 12px; background: var(--accent); color: var(--bg); display: grid; place-items: center; font-weight: 900; font-size: 20px; margin-bottom: 12px; }
.step h3 { margin: 0 0 6px; }

.plat-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.chip { padding: 8px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); cursor: pointer; font-family: inherit; font-size: 15px; font-weight: 700; color: var(--muted); }
.chip:hover { color: var(--text); }
.chip.on { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.svc h3 { margin: 6px 0 4px; font-size: 18px; }
.svc .price { font-size: 26px; font-weight: 900; color: var(--text); }
.svc .price small { font-size: 13px; color: var(--muted); font-weight: 600; }
.tag { display: inline-block; padding: 2px 12px; border-radius: 999px; font-size: 13px; font-weight: 800; }
.tag.economy { background: var(--line); color: var(--muted); }
.tag.premium { background: #3d2a14; color: #ffb27a; }
.tag.iraq { background: #14301f; color: #7be2a8; }

.note { border-inline-start: 5px solid var(--accent); background: var(--tint); }
footer { background: var(--bg-2); border-top: 1px solid var(--line); color: var(--muted); padding: 28px 0; text-align: center; font-size: 14px; }

/* لوحة العميل والأدمن */
.page { padding: 28px 0 60px; }
.balance { background: var(--tint); border-color: rgba(255, 90, 38, .4); }
.balance b { font-size: 34px; color: var(--accent); }
.tabs { display: flex; gap: 6px; margin: 20px 0; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.tabs button { background: none; border: 0; font-family: inherit; font-size: 16px; font-weight: 700; padding: 12px 18px; cursor: pointer; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs button.on { color: var(--text); border-bottom-color: var(--accent); }
.hide { display: none !important; }

table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { text-align: start; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--card-2); font-weight: 800; }
.tablewrap { overflow-x: auto; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
td .linkcell { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: ltr; text-align: left; }
.st { font-weight: 800; }
.st.Completed { color: var(--good); }
.st.Failed, .st.Canceled { color: var(--danger); }
.st.Partial { color: #ffb27a; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.kpi b { display: block; font-size: 28px; color: var(--accent); }
.total { font-size: 22px; font-weight: 900; color: var(--accent); }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }
.end { text-align: end; }
@media (max-width: 640px) {
  .hero { padding: 48px 0 64px; }
  .topbar .wrap { padding-block: 10px; }
  .brand { font-size: 20px; }
  .nav a, .nav button { padding: 6px 10px; font-size: 14px; }
  .nav .hide-sm { display: none; }
}
