:root{
  --bg:#08111f;
  --surface:#0f172a;
  --surface-2:#111c31;
  --soft:#17233d;
  --border:rgba(255,255,255,.09);
  --text:#eef4ff;
  --muted:#a7b6d1;
  --primary:#2dd4bf;
  --primary-2:#06b6d4;
  --accent:#7c3aed;
  --danger:#ef4444;
  --success:#22c55e;
  --shadow:0 18px 50px rgba(0,0,0,.35);
  --radius:22px;
  --radius-sm:14px;
  --container:1200px;
}

*{box-sizing:border-box}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  background:
    radial-gradient(circle at top right, rgba(45,212,191,.09), transparent 30%),
    radial-gradient(circle at top left, rgba(124,58,237,.11), transparent 25%),
    linear-gradient(180deg, #07101d 0%, #0a1222 100%);
  color:var(--text);
  font-family:Tahoma, Arial, sans-serif;
  line-height:1.85;
}

img{
  max-width:100%;
  display:block;
}

.container{
  width:min(var(--container), calc(100% - 32px));
  margin-inline:auto;
}

.hero{
  padding:54px 0 28px;
}

.hero .container{
  background:linear-gradient(180deg, rgba(17,28,49,.9), rgba(10,17,31,.96));
  border:1px solid var(--border);
  border-radius:30px;
  padding:42px 28px;
  box-shadow:var(--shadow);
}

.hero-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 14px;
  border-radius:999px;
  background:rgba(45,212,191,.12);
  color:#b6fff4;
  font-size:14px;
  font-weight:700;
  margin-bottom:16px;
}
.site-header{
  position:sticky;
  top:0;
  z-index:1000;
  padding:14px 0;
  background:rgba(8, 17, 31, 0.72);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(255,255,255,.06);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  min-height:78px;
  padding:14px 22px;
  background:linear-gradient(180deg, rgba(17,28,49,.92), rgba(11,18,32,.96));
  border:1px solid rgba(255,255,255,.08);
  border-radius:22px;
  box-shadow:
    0 10px 30px rgba(0,0,0,.28),
    inset 0 1px 0 rgba(255,255,255,.04);
}

.brand{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:0;
}

.brand a{
  display:inline-flex;
  align-items:center;
  text-decoration:none;
}

.logo{
  width:58px;
  height:58px;
  object-fit:cover;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
  box-shadow:
    0 8px 22px rgba(0,0,0,.25),
    0 0 0 4px rgba(255,255,255,.02);
}

.brand-text p{
  margin:0;
  font-size:1rem;
  font-weight:800;
  letter-spacing:.2px;
  color:#f4f8ff;
  white-space:nowrap;
}

.main-nav{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.main-nav a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:0 16px;
  border-radius:999px;
  text-decoration:none;
  color:#d8e4ff;
  font-weight:700;
  font-size:14px;
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.06);
  transition:
    transform .2s ease,
    background .2s ease,
    color .2s ease,
    border-color .2s ease,
    box-shadow .2s ease;
}

.main-nav a:hover{
  transform:translateY(-1px);
  color:#ffffff;
  background:rgba(45,212,191,.10);
  border-color:rgba(45,212,191,.28);
  box-shadow:0 8px 18px rgba(6,182,212,.12);
}

.main-nav a.active{
  color:#06222c;
  background:linear-gradient(135deg, var(--primary), var(--primary-2));
  border-color:transparent;
  box-shadow:0 10px 22px rgba(6,182,212,.24);
}

.main-nav a.active:hover{
  color:#06222c;
}

@media (max-width:900px){
  .header-inner{
    flex-direction:column;
    align-items:stretch;
    padding:16px;
  }

  .brand{
    justify-content:center;
  }

  .brand-text p{
    white-space:normal;
    text-align:center;
  }

  .main-nav{
    justify-content:center;
  }
}

@media (max-width:560px){
  .site-header{
    padding:10px 0;
  }

  .header-inner{
    min-height:auto;
    border-radius:18px;
  }

  .logo{
    width:50px;
    height:50px;
    border-radius:14px;
  }

  .main-nav a{
    width:100%;
  }
}
.last-updated{
  margin-top:12px;
  color:#b9c8e8;
  font-size:14px;
  font-weight:700;
}
h1,h2,h3{
  margin:0 0 10px;
  line-height:1.35;
}

h1{
  font-size:clamp(30px,5vw,52px);
  letter-spacing:-.4px;
}

h2{
  font-size:clamp(22px,3vw,30px);
}

h3{
  font-size:clamp(18px,2.4vw,24px);
}

.hero-text{
  color:var(--muted);
  font-size:18px;
  max-width:860px;
  margin:0;
}

.hero-points{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:22px;
}

.hero-points span{
  background:rgba(255,255,255,.04);
  border:1px solid var(--border);
  color:#d8e4ff;
  padding:8px 14px;
  border-radius:999px;
  font-size:14px;
}

.page-grid{
  display:grid;
  grid-template-columns:minmax(0, 2fr) minmax(280px, .95fr);
  gap:22px;
  align-items:start;
  margin-bottom:22px;
}

.card,
.card-soft{
  background:linear-gradient(180deg, rgba(15,23,42,.95), rgba(11,18,32,.98));
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}

.card{
  padding:24px;
}

.card-soft{
  padding:20px;
  background:linear-gradient(180deg, rgba(20,32,58,.92), rgba(11,18,32,.98));
}

.section-intro,
.muted,
.mini-text{
  color:var(--muted);
}

.tool-form{
  margin-top:16px;
}

.form-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:16px;
}

.field{
  display:flex;
  flex-direction:column;
  gap:8px;
}

label{
  font-weight:700;
  color:#eaf2ff;
}

select,
input[type="range"]{
  width:100%;
}

select{
  appearance:none;
  background:var(--soft);
  color:var(--text);
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  min-height:50px;
  padding:0 14px;
  outline:none;
  transition:.2s ease;
}

select:focus{
  border-color:rgba(45,212,191,.6);
  box-shadow:0 0 0 4px rgba(45,212,191,.12);
}

.distribution{
  margin-top:18px;
}

.sliders-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:14px 18px;
}

.slider-field{
  display:flex;
  flex-direction:column;
  gap:8px;
}

input[type="range"]{
  accent-color:var(--primary);
  cursor:pointer;
}

.distribution-note{
  margin-top:12px;
  font-weight:700;
  color:#d8fff8;
}

.actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:18px;
}

.btn{
  border:0;
  border-radius:14px;
  padding:14px 18px;
  font-weight:700;
  font-size:15px;
  cursor:pointer;
  transition:transform .18s ease, opacity .18s ease, box-shadow .18s ease;
}

.btn:hover{
  transform:translateY(-1px);
}

.btn-primary{
  background:linear-gradient(135deg, var(--primary), var(--primary-2));
  color:#04202a;
  box-shadow:0 14px 35px rgba(6,182,212,.22);
}

.btn-secondary{
  background:#1b2946;
  color:#dbe8ff;
  border:1px solid rgba(255,255,255,.08);
}

.side-panel{
  display:flex;
  flex-direction:column;
  gap:22px;
}

.side-card h2{
  margin-bottom:14px;
}

.feature-list{
  margin:0;
  padding:0 18px 0 0;
}

.feature-list li{
  margin-bottom:8px;
  color:#dbe8ff;
}

.tz-box{
  background:rgba(255,255,255,.03);
  border:1px solid var(--border);
  border-radius:14px;
  padding:12px 14px;
  color:#dce9ff;
  margin-bottom:10px;
}

.results-wrap{
  margin-bottom:22px;
}

.results-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:14px;
}

.result-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:16px;
  margin-bottom:16px;
}

.result-card{
  min-height:158px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.highlight-card{
  background:
    radial-gradient(circle at top left, rgba(45,212,191,.12), transparent 35%),
    linear-gradient(180deg, rgba(18,34,52,.97), rgba(11,18,32,.99));
}

.result-label{
  color:#9edfff;
  font-weight:700;
  font-size:13px;
  margin-bottom:8px;
}

.top-three-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:14px;
}

.top-box{
  border:1px solid var(--border);
  border-radius:18px;
  padding:18px;
  background:rgba(255,255,255,.03);
}

.top-box .rank{
  display:inline-flex;
  min-width:30px;
  height:30px;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:rgba(45,212,191,.14);
  color:#b6fff4;
  font-weight:700;
  margin-bottom:10px;
}

.top-box h4{
  margin:0 0 6px;
  font-size:18px;
}

.top-box p{
  margin:0;
  color:var(--muted);
  font-size:14px;
}

.reasons-list{
  margin:0;
  padding:0 20px 0 0;
}

.reasons-list li{
  margin-bottom:8px;
}

.table-wrap{
  overflow:auto;
}

.plan-table{
  width:100%;
  border-collapse:collapse;
  min-width:780px;
}

.plan-table th,
.plan-table td{
  text-align:right;
  padding:14px 12px;
  border-bottom:1px solid rgba(255,255,255,.07);
  vertical-align:top;
}

.plan-table th{
  color:#bfe8ff;
  font-size:14px;
}

.plan-table td{
  color:#e9f1ff;
}

.article-card p,
.faq-card p{
  color:#dce8ff;
  margin:0 0 12px;
}

/* =========================
   SEO Content – Article Style
   سكشن المقال تحت الأداة
========================= */

.seo-content{
  max-width:860px;
  margin:34px auto 60px;
  padding:0 6px;
  display:block;
}

/* كل جزء من المقال */
.seo-content .article-card,
.seo-content .faq-card{
  margin-bottom:26px;
  padding:0;
}

/* العناوين */
.seo-content h2{
  margin:26px 0 10px;
  font-size:1.25rem;
  font-weight:850;
  line-height:1.5;
  color:#e9eefc;
}

.seo-content h3{
  margin:20px 0 8px;
  font-size:1.1rem;
  font-weight:800;
  color:rgba(233,238,252,0.95);
}

/* الفقرات */
.seo-content p{
  margin:0 0 14px;
  line-height:2;
  color:rgba(233,238,252,0.82);
  font-size:1.02rem;
}

/* الصور */
.seo-content .media{
  margin:16px 0 18px;
  border-radius:16px;
  overflow:hidden;
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.08);
}

.seo-content .media img{
  width:100%;
  height:auto;
  display:block;
  object-fit:cover;
  filter:saturate(1.08) contrast(1.04);
}

.seo-content .media figcaption{
  padding:12px 14px;
  font-size:.95rem;
  line-height:1.9;
  color:rgba(233,238,252,.70);
  background:rgba(255,255,255,.025);
  border-top:1px solid rgba(255,255,255,.08);
}

/* القوائم */
.seo-content ul{
  margin:10px 0 18px;
  padding:0 22px 0 0;
  list-style:none;
}

.seo-content ul li{
  padding:10px 0;
  border-bottom:1px solid rgba(255,255,255,.08);
  color:rgba(233,238,252,.85);
}

.seo-content ul li:last-child{
  border-bottom:none;
}

/* FAQ */
details{
  border:1px solid var(--border);
  border-radius:16px;
  padding:14px 16px;
  margin-bottom:12px;
  background:rgba(255,255,255,.03);
}

summary{
  cursor:pointer;
  font-weight:700;
}

summary::-webkit-details-marker{
  display:none;
}

.summary-note{
  color:var(--muted);
}

.hidden{
  display:none!important;
}

/* موبايل */
@media (max-width:820px){

  .seo-content{
    margin:26px auto 44px;
  }

  .seo-content h2{
    font-size:1.15rem;
  }

  .seo-content p{
    font-size:.98rem;
  }
}

.footer{
  width:min(var(--container), calc(100% - 32px));
  margin:18px auto 40px;
  padding:22px 24px;
  border:1px solid var(--border);
  border-radius:22px;
  background:linear-gradient(180deg, rgba(15,23,42,.95), rgba(11,18,32,.98));
  box-shadow:var(--shadow);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}

.footer p{
  margin:0;
  color:var(--muted);
  font-weight:700;
}

.footer__links{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.footer__links a{
  text-decoration:none;
  color:#d8e4ff;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.06);
  background:rgba(255,255,255,.03);
  font-size:14px;
  font-weight:700;
  transition:.2s ease;
}

.footer__links a:hover{
  color:#fff;
  background:rgba(45,212,191,.10);
  border-color:rgba(45,212,191,.28);
}

@media (max-width:700px){
  .footer{
    flex-direction:column;
    align-items:center;
    text-align:center;
  }

  .footer__links{
    justify-content:center;
  }
}
