/* ============ فلته — الهوية البصرية الرسمية (Brand Guidelines v1.0) ============ */
:root {
  /* Brand palette */
  --indigo: #6D28D9;       /* primary */
  --violet: #8B5CF6;       /* bright violet */
  --lilac:  #C4B5FD;
  --tint:   #F3F0FF;       /* violet tint */
  --ink:    #18141F;       /* body text / headings */
  --muted:  #6B6B7B;       /* slate gray */
  --line:   #ECE9F5;
  --bg:     #FFFFFF;
  --card:   #FFFFFF;

  /* legacy aliases (kept so existing class hooks stay on-brand) */
  --coral:  var(--indigo);
  --orange: var(--violet);
  --purple: var(--violet);
  --teal:   #7048E8;
  --sky:    #8B5CF6;
  --pink:   #A78BFA;
  --green:  #6D28D9;
  --yellow: #5B21B6;

  --grad:      linear-gradient(135deg, #6D28D9, #8B5CF6);
  --grad-teal: linear-gradient(135deg, #7C3AED, #A78BFA);
  --grad-sun:  linear-gradient(135deg, #8B5CF6, #C4B5FD);
  --shadow: 0 10px 30px rgba(109, 40, 217, 0.10);
  --radius: 20px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'IBM Plex Sans Arabic', 'Poppins', system-ui, sans-serif; background: var(--bg); color: var(--ink); line-height: 1.8; }
a { color: var(--indigo); text-decoration: none; }
img { max-width: 100%; }

/* ── أزرار ── */
.btn { display: inline-block; padding: 12px 30px; border-radius: 50px; font-family: inherit; font-size: 15px;
       font-weight: 700; cursor: pointer; border: none; transition: transform .2s, box-shadow .2s; text-align: center; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(109,40,217,.35); }
.btn-teal { background: var(--grad-teal); color: #fff; box-shadow: 0 8px 20px rgba(124,58,237,.35); }
.btn-sun { background: var(--grad-sun); color: #fff; box-shadow: 0 8px 20px rgba(139,92,246,.4); }
.btn-outline { background: #fff; color: var(--indigo); border: 2px solid var(--indigo); }
.btn-light { background: #fff; color: var(--ink); border: 2px solid var(--line); }
.btn-sm { padding: 7px 18px; font-size: 13px; }
.btn-danger { background: #FCE7EC; color: #E03131; }

/* ── شارات ── */
.badge { display: inline-block; padding: 4px 14px; border-radius: 50px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.badge-coral  { background: #EDE7FB; color: #6D28D9; }
.badge-teal   { background: #EDE9FE; color: #7048E8; }
.badge-yellow { background: #EDE7FB; color: #5B21B6; }
.badge-sky    { background: #EEF0FF; color: #6D28D9; }
.badge-purple { background: #F1ECFF; color: #7048E8; }
.badge-green  { background: #EDE7FB; color: #6D28D9; }
.badge-gray   { background: #F1F0F5; color: #6B6B7B; }
.badge-pink   { background: #F3EEFF; color: #8B5CF6; }

/* ── رسائل ── */
.flash { padding: 14px 22px; border-radius: 14px; margin-bottom: 20px; font-weight: 700; }
.flash-success { background: #EDE7FB; color: #5B21B6; }
.flash-error { background: #FCE7EC; color: #E03131; }

/* ── الموقع العام ── */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
       border-bottom: 1px solid var(--line); padding: 12px 5%; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.nav-brand { display: inline-flex; align-items: center; }
.nav-brand img { height: 46px; width: auto; display: block; }
.nav-links { display: flex; gap: 22px; list-style: none; align-items: center; flex-wrap: wrap; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 600; transition: color .2s; }
.nav-links a:hover { color: var(--indigo); }

.hero { text-align: center; padding: 90px 5% 70px; position: relative; overflow: hidden; }
.hero .blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; z-index: 0; }
.hero .blob1 { width: 380px; height: 380px; background: #DDD2FB; top: -120px; right: -80px; }
.hero .blob2 { width: 300px; height: 300px; background: #E9E3FE; bottom: -100px; left: -60px; }
.hero .blob3 { width: 220px; height: 220px; background: #EFE9FF; top: 40%; left: 12%; }
.hero > * { position: relative; z-index: 1; }
.hero h1 { font-size: 50px; font-weight: 800; line-height: 1.3; margin-bottom: 18px; }
.hero h1 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { color: var(--muted); font-size: 18px; max-width: 620px; margin: 0 auto 32px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-chips { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.chip { background: #fff; border: 1px solid var(--line); padding: 8px 20px; border-radius: 50px; font-size: 13px; font-weight: 700; box-shadow: var(--shadow); }

.section { padding: 70px 5%; }
.section-alt { background: linear-gradient(180deg, #F3F0FF, #FFFFFF); }
.container { max-width: 1140px; margin: 0 auto; }
.sec-head { text-align: center; margin-bottom: 50px; }
.sec-head .eyebrow { display: inline-block; background: #EDE7FB; color: #6D28D9; padding: 6px 20px; border-radius: 50px; font-size: 13px; font-weight: 800; margin-bottom: 14px; }
.sec-head h2 { font-size: 36px; font-weight: 800; margin-bottom: 10px; }
.sec-head p { color: var(--muted); max-width: 560px; margin: 0 auto; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.card { background: var(--card); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.ico { vertical-align: middle; flex-shrink: 0; }
.service-card { transition: transform .25s; display: flex; flex-direction: column; }
.service-card:hover { transform: translateY(-6px); }
.service-ico { width: 52px; height: 52px; border-radius: 14px; background: #EDE7FB; color: var(--indigo);
               display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.service-card:nth-child(3n+2) .service-ico { background: #EDE9FE; color: #7048E8; }
.service-card:nth-child(3n) .service-ico { background: #EEF0FF; color: #8B5CF6; }
.service-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.service-card p { color: var(--muted); font-size: 14px; flex: 1; }
.service-price { font-size: 20px; font-weight: 800; color: var(--indigo); margin: 14px 0 6px; }
.service-price small { color: var(--muted); font-weight: 600; font-size: 12px; }
.service-meta { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.feat-list { list-style: none; margin: 12px 0; font-size: 13.5px; }
.feat-list li { padding: 4px 0; color: var(--ink); }
.feat-list li::before { content: '✓'; color: var(--indigo); font-weight: 900; margin-left: 8px; }

.sector-card { text-align: center; padding: 28px 18px; }
.sector-ico { width: 48px; height: 48px; border-radius: 50%; background: #EDE7FB; color: #6D28D9;
              display: flex; align-items: center; justify-content: center; margin: 0 auto; }
.sector-card:nth-child(2) .sector-ico { background: #EDE9FE; color: #7048E8; }
.sector-card:nth-child(3) .sector-ico { background: #EEF0FF; color: #8B5CF6; }
.sector-card:nth-child(4) .sector-ico { background: #F1ECFF; color: #7C3AED; }
.sector-card:nth-child(5) .sector-ico { background: #F3EEFF; color: #6D28D9; }
.sector-card h4 { margin-top: 12px; font-size: 16px; font-weight: 700; }
.sector-card p { color: var(--muted); font-size: 12.5px; }

/* ── الباقات ── */
.pkg { position: relative; text-align: center; display: flex; flex-direction: column; }
.pkg.popular { border: 3px solid var(--indigo); transform: scale(1.04); }
.pkg .pop-tag { position: absolute; top: -16px; right: 50%; transform: translateX(50%); background: var(--grad); color: #fff;
                padding: 5px 22px; border-radius: 50px; font-size: 12px; font-weight: 800; box-shadow: 0 6px 16px rgba(109,40,217,.4); }
.pkg h3 { font-size: 21px; font-weight: 800; }
.pkg .tagline { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.pkg .price { font-size: 38px; font-weight: 800; }
.pkg .price small { font-size: 14px; color: var(--muted); font-weight: 600; }
.pkg .feat-list { text-align: right; flex: 1; }
.pkg-coral .price { color: var(--indigo); } .pkg-teal .price { color: #7048E8; }
.pkg-purple .price { color: var(--violet); } .pkg-sky .price { color: #8B5CF6; }
.pkg-yellow .price { color: #5B21B6; }

/* ── جدول الأسعار ── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
table.pricing { width: 100%; border-collapse: collapse; background: #fff; min-width: 650px; }
table.pricing thead { background: var(--grad); color: #fff; }
table.pricing th { padding: 16px 20px; text-align: right; font-size: 14px; }
table.pricing td { padding: 15px 20px; border-bottom: 1px solid var(--line); font-size: 14px; }
table.pricing tbody tr:nth-child(even) { background: #FAF8FF; }
table.pricing tbody tr:last-child td { border-bottom: none; }
.price-tag { font-weight: 800; color: var(--indigo); }

/* ── خطوات وأسئلة ── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { text-align: center; padding: 26px 16px; }
.step .num { width: 52px; height: 52px; border-radius: 50%; background: var(--grad); color: #fff; font-size: 21px; font-weight: 800;
             display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; box-shadow: 0 8px 18px rgba(109,40,217,.3); }
.step h4 { font-size: 15px; font-weight: 700; }
.step p { font-size: 12.5px; color: var(--muted); }

.pay-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pay-card { text-align: center; }
.pay-card .pct { font-size: 42px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

details.faq { background: #fff; border-radius: 16px; padding: 18px 24px; margin-bottom: 12px; box-shadow: var(--shadow); border: 1px solid var(--line); }
details.faq summary { font-weight: 700; cursor: pointer; font-size: 15px; }
details.faq p { color: var(--muted); font-size: 14px; margin-top: 10px; }

/* ── نماذج ── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 6px; }
input, select, textarea { width: 100%; padding: 12px 16px; border: 2px solid var(--line); border-radius: 14px;
  font-family: inherit; font-size: 14px; background: #FCFBFF; color: var(--ink); transition: border .2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--indigo); background: #fff; }
textarea { min-height: 110px; resize: vertical; }

/* ── فوتر ── */
.footer { background: linear-gradient(135deg, #F3F0FF, #EDE7FB); padding: 50px 5% 30px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; max-width: 1140px; margin: 0 auto 30px; }
.footer h4 { font-size: 16px; font-weight: 800; margin-bottom: 12px; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 8px; font-size: 14px; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--indigo); }
.footer-bottom { text-align: center; color: var(--muted); font-size: 13px; border-top: 1px solid rgba(109,40,217,.15); padding-top: 20px; max-width: 1140px; margin: 0 auto; }

/* ── صفحات الدخول ── */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 30px;
  background: linear-gradient(135deg, #F3F0FF, #EDE7FB, #E9E3FE); }
.auth-card { background: #fff; border-radius: 26px; padding: 44px; width: 100%; max-width: 440px; box-shadow: 0 20px 60px rgba(109,40,217,.15); }
.auth-card h1 { font-size: 26px; font-weight: 800; text-align: center; margin-bottom: 6px; }
.auth-card .sub { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 26px; }

/* ── لوحة التحكم ── */
.dash { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.sidebar { background: #fff; border-left: 1px solid var(--line); padding: 26px 18px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar .brand { margin-bottom: 6px; padding: 0 10px; }
.sidebar .brand img { height: 40px; width: auto; }
.sidebar .role { font-size: 12px; color: var(--muted); padding: 0 10px; margin-bottom: 24px; }
.side-nav { list-style: none; }
.side-nav a { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 14px; color: var(--muted);
  font-size: 14px; font-weight: 700; margin-bottom: 4px; transition: all .2s; }
.side-nav a svg { flex-shrink: 0; }
.contact-list li { display: flex; align-items: center; gap: 8px; }
.side-nav a:hover { background: #F3F0FF; color: var(--ink); }
.side-nav a.active { background: var(--grad); color: #fff; box-shadow: 0 6px 16px rgba(109,40,217,.3); }
.dash-main { padding: 32px 36px; }
.dash-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; flex-wrap: wrap; gap: 12px; }
.dash-head h1 { font-size: 26px; font-weight: 800; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 28px; }
.stat { border-radius: var(--radius); padding: 22px; color: #fff; }
.stat .num { font-size: 30px; font-weight: 800; }
.stat .lbl { font-size: 13px; opacity: .9; }
.stat-coral { background: var(--grad); }
.stat-teal { background: var(--grad-teal); }
.stat-sun { background: linear-gradient(135deg, #8B5CF6, #C4B5FD); }
.stat-purple { background: linear-gradient(135deg, #7C3AED, #A78BFA); }

table.data { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
table.data th { background: #F3F0FF; padding: 13px 16px; text-align: right; font-size: 13px; color: #6D28D9; }
table.data td { padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
table.data tr:last-child td { border-bottom: none; }
table.data tr:hover td { background: #FAF8FF; }

/* ── محادثة التذاكر ── */
.chat { display: flex; flex-direction: column; gap: 14px; margin-bottom: 22px; }
.msg { max-width: 75%; padding: 14px 20px; border-radius: 18px; font-size: 14px; }
.msg .who { font-size: 11.5px; font-weight: 800; margin-bottom: 4px; opacity: .75; }
.msg-me { background: var(--grad); color: #fff; align-self: flex-start; border-bottom-right-radius: 4px; }
.msg-them { background: #fff; border: 1px solid var(--line); align-self: flex-end; border-bottom-left-radius: 4px; }

/* ── خط زمني ── */
.timeline-h { display: flex; gap: 0; overflow-x: auto; padding: 10px 0 20px; }
.tl-step { flex: 1; min-width: 100px; text-align: center; position: relative; }
.tl-step::before { content: ''; position: absolute; top: 17px; right: 50%; width: 100%; height: 4px; background: var(--line); z-index: 0; }
.tl-step:first-child::before { display: none; }
.tl-step .dot { width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 3px solid var(--line);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; position: relative; z-index: 1; font-size: 15px; }
.tl-step.done .dot { background: var(--violet); border-color: var(--violet); color:#fff; }
.tl-step.done::before { background: var(--violet); }
.tl-step.now .dot { background: var(--grad); border-color: var(--indigo); box-shadow: 0 0 0 6px #EDE7FB; }
.tl-step .lbl { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.tl-step.now .lbl { color: var(--indigo); }

/* ── متجاوب ── */
@media (max-width: 980px) {
  .grid-3, .grid-4, .steps, .pay-cards, .stats { grid-template-columns: 1fr 1fr; }
  .dash { grid-template-columns: 1fr; }
  .sidebar { position: relative; height: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .pkg.popular { transform: none; }
}
@media (max-width: 600px) {
  .grid-3, .grid-4, .grid-2, .steps, .pay-cards, .stats, .form-grid { grid-template-columns: 1fr; }
  .dash-main { padding: 20px 16px; }
}
