:root{
  --bg:#0f172a;              /* خلفية داكنة أنظف */
  --panel:#111827;           /* كروت */
  --card:#0b1220;
  --muted:#94a3b8;
  --text:#e5e7eb;
  --line:#1f2937;

  --accent:#facc15;          /* أصفر أهدأ من السابق */
  --accent-soft:rgba(250,204,21,.15);
}

*{box-sizing:border-box}
html,body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial;
  color:var(--text);
  background:
    radial-gradient(circle at 20% 20%, rgba(250,204,21,.05), transparent 40%),
    radial-gradient(circle at 80% 30%, rgba(59,130,246,.06), transparent 40%),
    var(--bg);
}

.wrap{max-width:1100px;margin:0 auto;padding:16px}

.topbar{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.brand{display:flex; gap:12px; align-items:center}

.logo{
  width:40px;
  height:40px;
  border-radius:10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  display:grid;
  place-items:center;
  font-weight:800;
  color: var(--accent);
}

.name{font-weight:800; letter-spacing:.3px}
.sub{font-size:12px;color:var(--muted)}

.pill{
  border:1px solid var(--line);
  padding:8px 10px;
  border-radius:999px;
  color:var(--muted);
  font-size:12px;
  white-space:nowrap;
  display:flex;
  gap:8px;
  align-items:center;
}

.tagline{
  font-size:12px;
  color: rgba(250,204,21,.85);
  margin-top:2px;
}

.sub{
  font-size:11px;
  color:var(--muted);
  margin-top:2px;
}

.topbar .wrap{display:flex; justify-content:space-between; align-items:center}

.page-title{
  font-size:2rem;
  font-weight:800;
  color:#fff;
  margin:34px 0 22px 0;
  letter-spacing:.2px;
}

.page-title::after{
  content:"";
  display:block;
  width:110px;
  height:2px;
  margin-top:12px;
  background: rgba(255,255,255,.12);
}

.page-lead{
  margin: -10px 0 18px 0;
  max-width: 900px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}
.page-lead strong{ color:#fff; font-weight:700; }

.layout{display:grid; grid-template-columns: 360px 1fr; gap:16px}
@media (max-width: 980px){ .layout{grid-template-columns: 1fr;} }

.panel{background:var(--panel); border:1px solid var(--line); border-radius:14px; padding:16px}
.results{display:flex; flex-direction:column; gap:16px}

h2,h3{margin:0 0 12px; color:#ffffff}

.field{display:block; margin:12px 0}
.field span{display:block; font-size:13px; color:var(--muted); margin-bottom:6px}
.field input, .field select{
  width:100%;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background:var(--card);
  color:var(--text);
  outline:none;
}

.row{display:flex; gap:8px; align-items:stretch}
.row > input,
.row > select{
  flex: 1 1 0;
  width: 0;
  min-width: 0;
}

.suffix{padding:0 10px; color:var(--muted)}
.hint{color:var(--muted)}
.details{margin-top:10px; border:1px dashed var(--line); border-radius:12px; padding:10px}
.details summary{cursor:pointer; color:var(--text); font-weight:600}
.grid2{display:grid; grid-template-columns:1fr 1fr; gap:10px}

.btn{
  width:100%;
  padding:12px 14px;
  border-radius:12px;
  border:1px solid var(--accent);
  background:var(--accent-soft);
  color:#ffffff;
  font-weight:700;
  cursor:pointer;
  transition:.2s ease;
}
.btn:hover{
  background:var(--accent);
  color:#111827;
}

.note{color:var(--muted); font-size:12px; line-height:1.4}

.cards{display:grid; grid-template-columns: repeat(3, 1fr); gap:12px}
@media (max-width: 980px){ .cards{grid-template-columns:1fr;} }

.card{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:14px;
  padding:14px;
  min-width:0;
}
.label{color:var(--muted); font-size:12px}
.value{
  font-size:26px;
  font-weight:900;
  margin-top:6px;
  color:#ffffff;
}
.card.highlight .value{
  color: var(--accent) !important;
}
.meta{color:var(--muted); font-size:12px; margin-top:4px}

.block{background:var(--panel); border:1px solid var(--line); border-radius:14px; padding:16px}
.breakdown{display:grid; gap:8px}
.brow{display:flex; justify-content:space-between; border-bottom:1px solid rgba(31,41,55,.6); padding-bottom:8px}
.brow.total{border-bottom:none; padding-top:6px}
.tiny{margin-top:10px; color:var(--muted); font-size:12px}

.table{width:100%; border-collapse:collapse}
.table th,.table td{padding:10px; border-bottom:1px solid rgba(31,41,55,.6); text-align:left}
.table th{color:var(--muted); font-weight:600; font-size:12px}

.footer{border-top:1px solid var(--line); color:var(--muted); font-size:12px}

.net-note{
  margin: 15px 0 20px 0;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffc107;
  font-size: 0.9rem;
  white-space: nowrap;
}

.net-note-title{
  font-weight: 700;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.net-note-text{
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}

.net-note-icon{
  width: 14px;
  height: 14px;
  color: #ffc107;
  flex: 0 0 auto;
}

.seo-content{
  grid-column: 1 / -1;
  width: 100%;
  box-sizing: border-box;
  margin: 22px 0 0 0;
  padding: 18px;
  max-width: none;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
}

.seo-content h2 {
  margin-bottom: 18px;
  padding-bottom: 18px;
  font-size: 1.6rem;
  color: #ffc107;
  font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.seo-content h3 {
  position: relative;
  margin-top: 28px;
  padding-top: 18px;
  color: #ffffff;
}
.seo-content h3::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 10%;
  height: 1px;
  background: rgba(255,255,255,0.15);
}
.seo-content p { margin-bottom: 14px; opacity: 0.9; }

.card.highlight{
  border-left: 1px solid var(--line) !important;
  box-shadow: none !important;
}
.card.highlight::before{ display:none !important; content:none !important; }

@media (max-width: 520px){
  .pill{display:none;}
}

html, body {
  overflow-x: hidden;
  width: 100%;
}
.layout > * { min-width: 0; }
.results, .panel, .block, .cards, .card { min-width: 0; }
.net-note, .net-note-text {
  white-space: normal;
  overflow-wrap: anywhere;
}
img, svg { max-width: 100%; }

/* ===== Prospetrac: final tweaks for simplified main calculator (no comparisons) ===== */

/* Brand as two-line link (no icon) */
.brand{
  display:inline-block;
  text-decoration:none;
  color:inherit;
}
.brand:visited{ color:inherit; }
.brand:hover{ opacity:.95; }

.brand-text{
  display:flex;
  flex-direction:column;
  line-height:1.1;
}
.name{
  font-weight:800;
  letter-spacing:.3px;
  color:#fff;
}
.tagline{
  margin-top:2px;
  font-size:12px;
  color: rgba(250,204,21,.85);
}

/* Links site-wide */
a{
  color: var(--accent);
  text-decoration: none;
}
a:hover, a:focus-visible{
  text-decoration: underline;
}

/* Net note should span full row under the 3 cards */
.net-note{
  grid-column: 1 / -1;
  width:100%;
  margin: 10px 0 0 0;
}

/* SEO hero (flag + heading) */
.seo-hero{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom: 14px;
}
.seo-heading{
  margin:0;
}
.flag-wrap{
  width:64px;
  height:40px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  overflow:hidden;
}
.flag-wrap img{
  width:100%;
  height:100%;
  object-fit:cover;
}

/* Mobile: keep SEO hero stacked */
@media (max-width: 520px){
  .seo-hero{ flex-direction:column; align-items:flex-start; }
  .flag-wrap{ width:72px; height:44px; }
}
.seo-content{
  width: 100%;
  max-width: 1100px;
  margin: 22px auto 0;
  box-sizing: border-box;

  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 18px;
}
