@import url("https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&display=swap");

:root{
  /* Base */
  --bg:#0b0f1a;
  --text:#f5f7fb;
  --muted: rgba(245,247,251,.72);
  --stroke: rgba(255,255,255,.10);
  --shadow: 0 18px 70px rgba(0,0,0,.55);
  --radius: 20px;

  /* ✅ الألوان (تقدر تغيرها بسهولة) */
  --accent: #721aff;     /* برتقالي رئيسي */
  --accent2:#a057ff;     /* برتقالي هادي */
  --sky:    #9e6aff;     /* أزرق فاتح */
  --gray:   #b8bfcc;

  /* Surfaces */
  --glass: rgba(255,255,255,.06);
  --glass2: rgba(255,255,255,.09);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: "Tajawal", system-ui, -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;
  background:
    radial-gradient(1100px 600px at 10% 0%, rgba(144, 26, 255, 0.18), transparent 60%),
    radial-gradient(900px 520px at 90% 10%, rgba(188, 106, 255, 0.16), transparent 55%),
    radial-gradient(900px 600px at 50% 120%, rgba(255,255,255,.06), transparent 55%),
    var(--bg);
  color:var(--text);
}

a{color:inherit;text-decoration:none}
.container{max-width:1120px;margin:0 auto;padding:18px}

/* Top bar */
.topbar{
  border-bottom: none;
}


.brand{
  display:flex; align-items:center; justify-content:space-between; gap:14px;
  padding:14px 18px 10px 18px;
}

.brand .left{display:flex;align-items:center;gap:12px}
.logo{
  width:44px;
  height:44px;
  border-radius:50%;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.14);
}

.logo img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

.brand h1{margin:0;font-size:18px;letter-spacing:.2px}
.brand .meta{font-size:12px;color:var(--muted)}

/* Nav chips */
.nav{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  padding: 0 18px 14px 18px;
  margin-top: 10px;            /* يبعد الأزرار عن النص */
}

.chip{
  padding:9px 12px;border-radius:999px;
  background: rgba(255,255,255,.06);
  border:1px solid var(--stroke);
  font-size:13px;color:var(--text);
  transition: transform .08s ease, border-color .12s ease, background .12s ease;
}
.chip:hover{
  border-color: rgba(95, 26, 255, 0.65);
  background: rgba(144, 26, 255, 0.08);
}
.chip:active{transform: translateY(1px)}

/* Hero */
.hero{
  margin-top:18px;
  padding:22px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(95, 26, 255, 0.14), rgba(163, 106, 255, 0.1));
  border:1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow);
  position:relative;
  overflow:hidden;
}
.hero:before{
  content:"";
  position:absolute; inset:-2px;
  background: radial-gradient(600px 220px at 20% 20%, rgba(133, 26, 255, 0.2), transparent 60%),
              radial-gradient(560px 200px at 85% 30%, rgba(183, 106, 255, 0.18), transparent 55%);
  filter: blur(10px);
  opacity:.8;
  pointer-events:none;
}
.hero > *{position:relative}
.hero h2{margin:0 0 8px 0;font-size:30px}
.hero p{margin:0;color:var(--muted);line-height:1.95;font-size:16px}

/* Grid / Cards */
.grid{
  margin-top:16px;
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:14px;
}
.card{
  grid-column: span 12;
  padding:16px;
  border-radius: var(--radius);
  background: var(--glass);
  border:1px solid var(--stroke);
  box-shadow: 0 10px 34px rgba(0,0,0,.25);
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.card:hover{
  transform: translateY(-1px);
  background: var(--glass2);
  border-color: rgba(255,255,255,.16);
}
@media (min-width: 820px){
  .card.span6{grid-column: span 6;}
  .card.span4{grid-column: span 4;}
  .card.span8{grid-column: span 8;}
}
.card h3{margin:0 0 10px 0;font-size:19px}
.card p{margin:0;color:var(--muted);line-height:1.95}

/* Buttons */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  margin-top:12px;
  padding:11px 14px;border-radius:16px;
  background: rgba(171, 106, 255, 0.14);
  border:1px solid rgba(176, 106, 255, 0.28);
  color:var(--text);
  font-weight:800;
  transition: transform .08s ease, border-color .12s ease, background .12s ease;
}
.btn:hover{
  background: rgba(133, 26, 255, 0.14);
  border-color: rgba(125, 26, 255, 0.55);
}
.btn:active{transform: translateY(1px)}

/* Titles & badges */
.section-title{
  margin:18px 0 10px 0;
  display:flex;align-items:center;justify-content:space-between;gap:10px;
}
.section-title h2{margin:0;font-size:21px}
.badge{
  font-size:12px;
  color: rgba(0,0,0,.88);
  background: rgba(95, 26, 255, 0.95);
  padding:6px 10px;border-radius:999px;
}

/* Content blocks */
.rule{
  padding:12px 12px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  margin:10px 0;
  line-height:2.0;
}
.rule strong{color:#ffffff}
.small{font-size:13px;color:var(--muted)}
.hr{height:1px;background: rgba(255,255,255,.10);margin:14px 0}

/* Forms */
.form{display:grid; gap:10px;}
input, textarea, select{
  width:100%;
  padding:12px 12px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.25);
  color: var(--text);
  outline:none;
}
textarea{min-height:120px;resize:vertical}
input:focus, textarea:focus, select:focus{border-color: rgba(125, 26, 255, 0.55)}
.submit{
  cursor:pointer;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid rgba(114, 26, 255, 0.55);
  background: rgba(125, 26, 255, 0.14);
  color: var(--text);
  font-weight:900;
}
.submit:hover{background: rgba(133, 26, 255, 0.2)}
.notice{
  padding:12px 14px;
  border-radius:16px;
  border:1px dashed rgba(151, 106, 255, 0.45);
  background: rgba(106,199,255,.08);
  color: var(--muted);
  line-height:2.0;
}

/* Accordions */
details{
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  border-radius: 16px;
  padding: 10px 12px;
  margin:10px 0;
}
summary{
  cursor:pointer;
  font-weight:900;
  color: var(--text);
}
summary::marker{color: rgba(106, 26, 255, 0.9)}
details p, details li{color: var(--muted); line-height: 2.0;}
ul{margin:10px 0 0 18px}

/* Tables */
table{
  width:100%;
  border-collapse: collapse;
  overflow:hidden;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.10);
}
th,td{
  padding:10px 10px;
  border-bottom:1px solid rgba(255,255,255,.08);
  text-align:right;
  color: var(--muted);
}
th{color: var(--text); background: rgba(255,255,255,.04)}
tr:last-child td{border-bottom:none}

.footer{
  margin:26px 0 0px 0;
  text-align:center;
  color: rgba(242,244,248,.60);
  font-size:13px;
}


/* Admin Terms Modal */
.modal-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 9999;
}
.modal-backdrop.show{ display:flex; }
.modal{
  width: min(560px, 100%);
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(14, 18, 32, .92);
  box-shadow: 0 24px 90px rgba(0,0,0,.6);
  overflow: hidden;
}
.modal .hd{
  padding: 16px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  background: linear-gradient(135deg, rgba(105,44,212,.22), rgba(188, 106, 255, 0.1));
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.modal .hd .t{
  font-weight: 900;
  font-size: 16px;
}
.modal .bd{
  padding: 14px 18px 6px 18px;
  color: rgba(245,247,251,.80);
  line-height: 2.0;
  font-size: 14px;
}
.modal .ft{
  padding: 12px 18px 16px 18px;
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  justify-content: flex-start;
}
.btn-ghost{
  display:inline-flex;align-items:center;justify-content:center;
  padding: 11px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
}
.btn-ghost:hover{ background: rgba(255,255,255,.10); }
.btn-danger{
  display:inline-flex;align-items:center;justify-content:center;
  padding: 11px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,84,84,.35);
  background: rgba(255,84,84,.10);
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
}
.btn-danger:hover{ background: rgba(255,84,84,.14); }
