/* =========================================================================
   EXTRA — Pro Theme (Dark, clean, elegant)
   Works with current EJS structure (index/login/register/dashboard/panel)
   ========================================================================= */

:root{
  --bg: #0a0f16;
  --bg-soft: #0d121b;
  --card: #0f1724;
  --card-2: #111c2a;
  --muted: #9fb0c4;
  --text: #e8f1ff;
  --brand: #3aa0ff;
  --brand-2: #1ec9ff;
  --ok: #2dd4bf;
  --bad: #ff6b6b;
  --border: #1b2a3d;
  --shadow: 0 10px 30px rgba(8,12,20,.35);
  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 22px;
  --fw-bold: 800;
  --fw-med: 650;
  --ring: 0 0 0 3px rgba(58,160,255,.25);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font:14px/1.65 Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto;
  color:var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(58,160,255,.06), transparent 55%),
    radial-gradient(1000px 500px at 110% 0%, rgba(30,201,255,.05), transparent 50%),
    var(--bg);
}

/* ---------------- Layout ---------------- */
.wrap{max-width:1100px;margin:0 auto;padding:22px}
.center{text-align:center}
.mt{margin-top:14px}

/* ---------------- Top Nav ---------------- */
.nav{
  position:sticky;top:0;z-index:40;
  background:linear-gradient(180deg, rgba(13,18,27,.9), rgba(13,18,27,.75));
  border-bottom:1px solid var(--border);
  backdrop-filter: blur(8px);
}
.nav .wrap{display:flex;align-items:center;justify-content:space-between;gap:14px}
.brand{display:flex;align-items:center;gap:12px}
.logo{width:80px;height:Auto}
.logo-lg{width:Auto;height:164px;margin:0 auto 12px;display:block;filter: drop-shadow(0 6px 16px rgba(0,0,0,.35))}
.brand span{font-weight:var(--fw-bold);letter-spacing:.2px}
nav a{
  color:var(--text);opacity:.9;text-decoration:none;margin-left:18px;
  padding:8px 10px;border-radius:10px;transition:.2s ease all
}
nav a:hover{opacity:1;background:rgba(255,255,255,.04)}
nav .btn.small{margin-left:10px}

/* ---------------- Buttons ---------------- */
.btn{
  --bg-btn: linear-gradient(135deg, var(--brand), var(--brand-2));
  background:var(--bg-btn);
  color:#ffffff;
  border:0;
  padding:11px 16px;
  border-radius:14px;
  font-weight:var(--fw-bold);
  text-decoration:none;
  display:inline-flex;align-items:center;justify-content:center;
  box-shadow: 0 8px 22px rgba(58,160,255,.25);
  transition:.18s ease transform,.18s ease box-shadow, .18s ease filter;
  cursor:pointer;
}
.btn:hover{transform:translateY(-1px);box-shadow: 0 10px 26px rgba(58,160,255,.32)}
.btn:active{transform:translateY(0)}
.btn.small{padding:8px 12px;border-radius:10px}
.btn.block{width:100%}

.btn.ghost{
  background:transparent;color:var(--text);
  border:1px solid var(--border);box-shadow:none
}
.btn.ghost:hover{border-color:#29415f;background:rgba(255,255,255,.03)}

/* ---------------- Hero ---------------- */
.hero{padding:48px 0 10px;border-bottom:1px solid var(--border)}
.hero-inner{display:flex;flex-direction:column;gap:12px}
.hero h1{
  font-size:28px;letter-spacing:.2px;margin:0 0 6px;
  text-shadow:0 6px 18px rgba(58,160,255,.15)
}
.sub{color:var(--muted);margin:0 0 6px}
.badge{
  display:inline-flex;align-items:center;gap:12px;
  padding:10px 12px;border-radius:14px;
  background:linear-gradient(180deg, #0c131f, #0b111a);
  border:1px solid var(--border);
  box-shadow:var(--shadow);
}
.badge.big img{width:60px;height:auto;border-radius:12px}
.cta{margin-top:12px}

/* ---------------- Cards & Grids ---------------- */
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.grid-2{display:grid;grid-template-columns:1.6fr 1fr;gap:18px}

.card{
  background:
    radial-gradient(400px 160px at 80% -20%, rgba(58,160,255,.08), transparent 55%),
    var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:18px;
  box-shadow: var(--shadow);
}
.card h3{margin:0 0 10px;font-weight:var(--fw-med)}
.card .price{font-size:22px;font-weight:var(--fw-bold)}
.kv>div{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:9px 0;border-bottom:1px dashed #203043}
.kv>div:last-child{border-bottom:0}

.ok{color:var(--ok)}.bad{color:var(--bad)}
code{background:#0b111a;border:1px solid #1b2a3d;padding:2px 6px;border-radius:8px}

/* ---------------- Auth Cards ---------------- */
.auth-wrap{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:26px}
.auth-card{
  width:100%;max-width:440px;
  background:
    radial-gradient(600px 220px at -10% -10%, rgba(30,201,255,.10), transparent 60%),
    var(--card-2);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  padding:24px 22px;
  box-shadow: var(--shadow);
}
.auth-card h1{margin:8px 0 12px;text-align:center}

label{display:block;margin:12px 0 6px;color:#cfe0f4}
input{
  width:100%;padding:11px 12px;border-radius:12px;
  border:1px solid #213145;background:#0b111a;color:var(--text);
  outline:none;transition:.15s ease border,.15s ease box-shadow
}
input:focus{border-color:#355a86;box-shadow:var(--ring)}
.alert{background:#2a1620;border:1px solid #4c2134;color:#ffb0c0;padding:10px 12px;border-radius:12px;margin-bottom:12px}

/* ---------------- Invoice / Logs ---------------- */
.invoice{
  background:linear-gradient(180deg,#0b121b,#0a1017);
  border:1px solid var(--border);
  border-radius:var(--radius-sm);
  padding:14px;box-shadow: var(--shadow)
}
.logs{
  margin-top:10px;background:#08101a;border:1px solid #182334;border-radius:12px;
  max-height:240px;overflow:auto;padding:8px
}
.log{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:12px;margin-bottom:4px;color:#b9c7d8}
.log.ok{color:#9ff2d8}.log.err{color:#ff9aa0}.log.info{color:#a9b9cc}

/* ---------------- Sections ---------------- */
.features{padding:28px 0}
.pricing{padding:10px 0 40px}
.foot{border-top:1px solid var(--border);padding:20px 0;color:var(--muted)}
.foot .wrap{display:flex;align-items:center;justify-content:space-between}

/* ---------------- Helpers ---------------- */
.muted{color:var(--muted);opacity:.9}

/* ---------------- Media ---------------- */
@media (max-width: 1020px){
  .wrap{padding:18px}
  .grid-2{grid-template-columns:1fr}
}
@media (max-width: 860px){
  .grid-3{grid-template-columns:1fr}
  .badge.big img{width:120px}
  .hero h1{font-size:24px}
}
/* ===== OS Compatibility — Professional Strip ===== */
.os-compat.pro{
  border-top:1px solid #1f2a44; border-bottom:1px solid #1f2a44;
  background: linear-gradient(180deg, rgba(11,18,32,.55), rgba(11,18,32,.35));
}
.os-compat.pro .pro-wrap{
  display:grid; gap:16px; align-items:center; padding:18px 16px;
  grid-template-columns: 1fr;
}
@media(min-width:980px){
  .os-compat.pro .pro-wrap{ grid-template-columns: .9fr 1.1fr }
}
.os-compat.pro .pro-copy h3{ margin:0 0 4px 0; font-size:20px; font-weight:800; letter-spacing:.1px }
.os-compat.pro .pro-copy p{ margin:0; }

/* Badges container */
.pro-badges{
  display:grid; gap:12px;
  grid-template-columns: repeat(1,minmax(0,1fr));
}
@media(min-width:680px){ .pro-badges{ grid-template-columns: repeat(2,minmax(0,1fr)) } }
@media(min-width:1180px){ .pro-badges{ grid-template-columns: repeat(3,minmax(0,1fr)) } }

/* Single badge */
.badge-os{
  display:flex; align-items:center; gap:12px;
  padding:12px 14px; border-radius:14px;
  background: rgba(14,22,38,.7);
  border:1px solid rgba(39,64,97,.65);
  position:relative; overflow:hidden;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.badge-os:hover{ transform: translateY(-2px); background: rgba(14,22,38,.82); }

/* Avatar (big) */
.badge-os .avatar{
  width:42px; height:42px; border-radius:12px;
  background:#0f172a; border:1px solid rgba(72,101,140,.5);
  display:grid; place-items:center; overflow:hidden;
  box-shadow:0 10px 22px rgba(0,0,0,.25);
}
.badge-os .avatar img{ width:70%; height:70%; object-fit:contain; filter:grayscale(.03) }

/* Meta text */
.badge-os .meta{ display:flex; flex-direction:column; line-height:1.0 }
.badge-os .meta strong{ font-weight:800; letter-spacing:.2px }
.badge-os .meta small{ color:#9fb6d9; margin-top:4px }
.badge-os .meta .ok{ color:#10b981 }

/* Wide badge for RHEL family (logos stack + text + tick) */
.badge-os.wide{ align-items:center; }
.badge-os .stack{
  display:flex; align-items:center; gap:0; margin-right:4px;
}
.badge-os .stack .mini{
  width:28px; height:28px; border-radius:8px; background:#0f172a;
  border:1px solid rgba(72,101,140,.5); display:grid; place-items:center;
  overflow:hidden; box-shadow:0 6px 14px rgba(0,0,0,.22);
}
.badge-os .stack .mini img{ width:70%; height:70%; object-fit:contain }
.badge-os .stack .mini + .mini{ margin-left:-8px } /* overlap */
.badge-os .tick{ margin-left:auto; font-size:16px }

/* Gradient accent by brand (subtle ring) */
.badge-os[data-brand="debian"]{ border-image: linear-gradient(120deg,#c81d66,#6d28d9) 1 }
.badge-os[data-brand="ubuntu"]{ border-image: linear-gradient(120deg,#e95420,#f59e0b) 1 }
.badge-os[data-brand="rhel"]  { border-image: linear-gradient(120deg,#9333ea,#22d3ee) 1 }

/* Compact mode option (if بغيت تصغّر شوية) */
.os-compat.pro.compact .avatar{ width:36px; height:36px }
.os-compat.pro.compact .stack .mini{ width:24px; height:24px }

/* === Subtle OS logos background === */
.os-wall{
  position:fixed; inset:0; z-index:-1; pointer-events:none;
  /* اختيارية: تغميق بسيط باش يندمج مع الخلفية */
  mix-blend-mode: normal;
}
.os-wall svg{
  width:100%; height:100%; display:block;
  opacity:.05;             /* ~5% كما طلبت */
  filter: saturate(0.9);   /* خفف الساتوريشن شوية */
}

/* على الشاشات الصغيرة، نقص الكثافة */
@media (max-width: 640px){
  .os-wall svg{ opacity:.035; }
}
