/* ============================================================
   HARD CITY RP — نظام التصميم
   الألوان: #131417 (خلفية) / #990205 (أحمر) / #ffffff (أبيض)
   الخط: Zain
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Zain:ital,wght@0,200;0,300;0,400;0,700;0,800;0,900;1,400&display=swap');

:root{
  --bg-0:#0a0b0c;         /* أعمق سواد - فوتر/شريط علوي */
  --bg-1:#131417;         /* الخلفية الأساسية */
  --bg-2:#1b1d21;         /* بطاقات */
  --bg-3:#222429;         /* بطاقات هوفر / حدود ناعمة */
  --line:#2b2e34;         /* خطوط فاصلة */
  --red:#990205;          /* الأحمر الأساسي */
  --red-bright:#c40409;   /* أحمر أفتح للتفاعل */
  --red-deep:#5c0103;     /* أحمر غامق للظلال */
  --white:#ffffff;
  --grey:#9a9da3;         /* نص ثانوي */
  --grey-dim:#6b6e74;     /* نص خافت جدا */
  --radius:2px;
  --font:'Zain', sans-serif;
}

*{margin:0;padding:0;box-sizing:border-box;}

html{scroll-behavior:smooth;}

body{
  background:var(--bg-1);
  color:var(--white);
  font-family:var(--font);
  line-height:1.6;
  overflow-x:hidden;
  background-image:
    radial-gradient(circle at 15% 0%, rgba(153,2,5,.10), transparent 40%),
    radial-gradient(circle at 100% 30%, rgba(153,2,5,.06), transparent 45%);
}

img{max-width:100%;display:block;}
a{color:inherit;text-decoration:none;}
ul{list-style:none;}
button{font-family:var(--font);cursor:pointer;border:none;}
input,select,textarea{font-family:var(--font);}

::selection{background:var(--red);color:var(--white);}

/* شريط تمرير */
::-webkit-scrollbar{width:9px;}
::-webkit-scrollbar-track{background:var(--bg-0);}
::-webkit-scrollbar-thumb{background:var(--red-deep);}
::-webkit-scrollbar-thumb:hover{background:var(--red);}

/* focus واضح لإمكانية الوصول */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible{
  outline:2px solid var(--red-bright);
  outline-offset:3px;
}

.container{
  width:100%;
  max-width:1180px;
  margin:0 auto;
  padding:0 28px;
}

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-size:13px;
  letter-spacing:2px;
  color:var(--red-bright);
  font-weight:700;
  margin-bottom:14px;
}
.eyebrow::before{
  content:"";
  width:26px;height:2px;
  background:var(--red);
}

h1,h2,h3,h4{font-family:var(--font);font-weight:800;letter-spacing:.5px;}

.section-title{
  font-size:clamp(26px,4vw,40px);
  font-weight:900;
  margin-bottom:10px;
}
.section-sub{
  color:var(--grey);
  max-width:640px;
  margin-bottom:40px;
  font-size:16px;
}

/* ===================== شريط علوي / الهيدر ===================== */
.site-header{
  position:fixed;
  top:0;left:0;right:0;
  z-index:1000;
  background:rgba(10,11,12,.85);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.nav-wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 28px;
  max-width:1180px;
  margin:0 auto;
}
.logo{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:20px;
  font-weight:900;
  letter-spacing:1px;
}
.logo .dot{
  width:10px;height:10px;
  background:var(--red);
  box-shadow:0 0 12px 2px var(--red);
  border-radius:1px;
  animation:pulse 1.8s ease-in-out infinite;
}
.logo span{color:var(--red-bright);}

@keyframes pulse{
  0%,100%{opacity:1;transform:scale(1);}
  50%{opacity:.35;transform:scale(.8);}
}

.nav-links{
  display:flex;
  align-items:center;
  gap:6px;
}
.nav-links a{
  padding:9px 16px;
  font-size:15px;
  font-weight:700;
  color:var(--grey);
  border-radius:var(--radius);
  transition:.2s;
  position:relative;
}
.nav-links a:hover{color:var(--white);}
.nav-links a.active{color:var(--white);}
.nav-links a.active::after{
  content:"";
  position:absolute;
  bottom:0;left:16px;right:16px;
  height:2px;
  background:var(--red);
}

.btn-discord-nav{
  display:flex;
  align-items:center;
  gap:8px;
  background:var(--red);
  color:var(--white)!important;
  padding:9px 18px!important;
  font-weight:800!important;
  border-radius:var(--radius);
}
.btn-discord-nav:hover{background:var(--red-bright);}

.burger{
  display:none;
  flex-direction:column;
  gap:5px;
  background:none;
}
.burger span{width:24px;height:2px;background:var(--white);}

@media (max-width:900px){
  .nav-links{
    position:fixed;
    top:64px;left:0;right:0;
    background:var(--bg-0);
    flex-direction:column;
    align-items:stretch;
    padding:10px 20px 20px;
    border-bottom:1px solid var(--line);
    transform:translateY(-140%);
    transition:transform .25s ease;
  }
  .nav-links.open{transform:translateY(0);}
  .nav-links a{padding:14px 8px;border-bottom:1px solid var(--line);}
  .burger{display:flex;}
}

/* مسافة تعويض للهيدر الثابت */
main{padding-top:78px;}

/* ===================== الهيرو ===================== */
.hero{
  position:relative;
  min-height:88vh;
  display:flex;
  align-items:center;
  overflow:hidden;
  border-bottom:1px solid var(--line);
}
.hero-grid{
  position:absolute;inset:0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size:56px 56px;
  opacity:.25;
  mask-image:radial-gradient(circle at 30% 40%, black, transparent 70%);
}
.siren-sweep{
  position:absolute;
  top:0;bottom:0;
  width:220px;
  background:linear-gradient(90deg, transparent, rgba(153,2,5,.35), transparent);
  filter:blur(6px);
  animation:sweep 5s linear infinite;
}
@keyframes sweep{
  0%{left:-15%;}
  100%{left:110%;}
}
.hero-content{
  position:relative;
  z-index:2;
  max-width:760px;
}
.stamp{
  display:inline-block;
  border:2px solid var(--red);
  color:var(--red-bright);
  font-weight:900;
  font-size:13px;
  letter-spacing:3px;
  padding:6px 14px;
  transform:rotate(-3deg);
  margin-bottom:22px;
}
.hero h1{
  font-size:clamp(42px,7.5vw,84px);
  line-height:.98;
  font-weight:900;
  margin-bottom:20px;
}
.hero h1 em{
  font-style:normal;
  color:var(--red-bright);
  text-shadow:0 0 30px rgba(196,4,9,.5);
}
.hero p{
  font-size:18px;
  color:var(--grey);
  max-width:560px;
  margin-bottom:32px;
}
.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
}
.hero-stats{
  display:flex;
  gap:34px;
  margin-top:52px;
  flex-wrap:wrap;
}
.hero-stats div{border-inline-start:2px solid var(--red);padding-inline-start:14px;}
.hero-stats b{display:block;font-size:26px;font-weight:900;}
.hero-stats span{color:var(--grey-dim);font-size:13px;}

/* ===================== أزرار ===================== */
.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:14px 28px;
  font-weight:800;
  font-size:15px;
  border-radius:var(--radius);
  transition:.2s;
}
.btn-primary{
  background:var(--red);
  color:var(--white);
  box-shadow:0 8px 30px -10px rgba(153,2,5,.7);
}
.btn-primary:hover{background:var(--red-bright);transform:translateY(-2px);}
.btn-outline{
  border:1px solid var(--line);
  color:var(--white);
  background:rgba(255,255,255,.02);
}
.btn-outline:hover{border-color:var(--red);color:var(--red-bright);}

/* ===================== بطاقات عامة ===================== */
.card{
  background:var(--bg-2);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:26px;
  transition:.25s;
}
.card:hover{border-color:var(--red-deep);transform:translateY(-4px);}

.grid-3{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
}
.grid-2{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:22px;
}
@media (max-width:820px){
  .grid-3,.grid-2{grid-template-columns:1fr;}
}

section{padding:90px 0;}
section.tight{padding:60px 0;}

.divider-label{
  display:flex;
  align-items:center;
  gap:16px;
  color:var(--grey-dim);
  font-size:13px;
  letter-spacing:2px;
  margin:60px 0 30px;
}
.divider-label::before,.divider-label::after{
  content:"";flex:1;height:1px;background:var(--line);
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

/* ===================== دوائر الأقسام (شرطة/اسعاف/قضاء) ===================== */
.dept-card{
  position:relative;
  background:var(--bg-2);
  border:1px solid var(--line);
  padding:30px 26px;
  overflow:hidden;
}
.dept-card .num{
  position:absolute;
  top:-10px;left:14px;
  font-size:90px;
  font-weight:900;
  color:rgba(255,255,255,.03);
  line-height:1;
}
.dept-icon{
  width:52px;height:52px;
  border:2px solid var(--red);
  display:flex;align-items:center;justify-content:center;
  font-size:24px;
  margin-bottom:18px;
  color:var(--red-bright);
}
.dept-card h3{font-size:21px;margin-bottom:8px;}
.dept-card p{color:var(--grey);font-size:14.5px;margin-bottom:18px;}
.dept-card .status{
  font-size:12px;
  font-weight:800;
  letter-spacing:1px;
  padding:5px 10px;
  display:inline-block;
  border:1px dashed var(--grey-dim);
  color:var(--grey);
}
.dept-card .status.open{border-color:var(--red);color:var(--red-bright);}

/* ===================== فوتر ===================== */
footer{
  background:var(--bg-0);
  border-top:1px solid var(--line);
  padding:56px 0 28px;
}
.footer-grid{
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr;
  gap:36px;
  margin-bottom:40px;
}
.footer-grid h4{font-size:15px;margin-bottom:16px;color:var(--white);}
.footer-grid a{
  display:block;
  color:var(--grey);
  font-size:14.5px;
  margin-bottom:10px;
  transition:.2s;
}
.footer-grid a:hover{color:var(--red-bright);}
.footer-grid p{color:var(--grey-dim);font-size:14px;max-width:340px;}
.footer-bottom{
  border-top:1px solid var(--line);
  padding-top:22px;
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:10px;
  color:var(--grey-dim);
  font-size:13px;
}
@media (max-width:760px){.footer-grid{grid-template-columns:1fr;}}

/* ===================== عناصر مساعدة لصفحات فرعية ===================== */
.page-hero{
  border-bottom:1px solid var(--line);
  padding:70px 0 50px;
  position:relative;
}
.page-hero h1{font-size:clamp(32px,5vw,52px);margin-bottom:12px;}
.page-hero p{color:var(--grey);max-width:600px;}
.crumbs{
  display:flex;gap:8px;align-items:center;
  color:var(--grey-dim);
  font-size:13px;
  margin-bottom:20px;
}
.crumbs .sep{color:var(--red-deep);}
.crumbs .cur{color:var(--red-bright);}

/* أكورديون القوانين */
.acc-group{margin-bottom:36px;}
.acc-group > h2{
  display:flex;align-items:center;gap:12px;
  font-size:19px;
  margin-bottom:16px;
  color:var(--red-bright);
}
.acc-group > h2::before{
  content:"";width:8px;height:8px;background:var(--red);
}
.acc-item{
  border:1px solid var(--line);
  background:var(--bg-2);
  margin-bottom:10px;
  border-radius:var(--radius);
  overflow:hidden;
}
.acc-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:17px 20px;
  font-weight:700;
  font-size:15.5px;
  background:none;
  color:var(--white);
  width:100%;
  text-align:right;
}
.acc-head .plus{
  color:var(--red-bright);
  font-size:20px;
  transition:transform .25s;
  flex-shrink:0;
  margin-inline-start:14px;
}
.acc-item.open .plus{transform:rotate(45deg);}
.acc-body{
  max-height:0;
  overflow:hidden;
  transition:max-height .3s ease;
  color:var(--grey);
  font-size:14.5px;
}
.acc-body-inner{padding:0 20px 20px;}
.acc-body ul{padding-inline-start:18px;}
.acc-body li{
  list-style:disc;
  margin-bottom:8px;
}

/* تبويبات التقديمات */
.tabs{
  display:flex;
  gap:10px;
  border-bottom:1px solid var(--line);
  margin-bottom:36px;
  flex-wrap:wrap;
}
.tab-btn{
  background:none;
  color:var(--grey);
  padding:14px 22px;
  font-weight:800;
  font-size:15.5px;
  border-bottom:2px solid transparent;
  display:flex;align-items:center;gap:8px;
}
.tab-btn:hover{color:var(--white);}
.tab-btn.active{color:var(--white);border-color:var(--red);}
.tab-panel{display:none;}
.tab-panel.active{display:block;animation:fadein .3s ease;}
@keyframes fadein{from{opacity:0;transform:translateY(6px);}to{opacity:1;transform:translateY(0);}}

.form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
}
.form-grid .full{grid-column:1/-1;}
@media (max-width:700px){.form-grid{grid-template-columns:1fr;}}

.field label{
  display:block;
  font-size:13.5px;
  font-weight:700;
  margin-bottom:8px;
  color:var(--grey);
}
.field input,.field select,.field textarea{
  width:100%;
  background:var(--bg-2);
  border:1px solid var(--line);
  color:var(--white);
  padding:12px 14px;
  font-size:14.5px;
  border-radius:var(--radius);
  transition:.2s;
}
.field textarea{resize:vertical;min-height:110px;}
.field input:focus,.field select:focus,.field textarea:focus{
  border-color:var(--red);
  background:var(--bg-3);
}
.field small{color:var(--grey-dim);display:block;margin-top:6px;font-size:12.5px;}

.form-note{
  display:flex;
  gap:12px;
  background:rgba(153,2,5,.08);
  border:1px solid var(--red-deep);
  padding:14px 16px;
  font-size:13.5px;
  color:var(--grey);
  margin-bottom:26px;
}
.form-note b{color:var(--red-bright);}

.form-status{
  margin-top:16px;
  font-size:14px;
  font-weight:700;
  display:none;
  padding:12px 16px;
  border-radius:var(--radius);
}
.form-status.show{display:block;}
.form-status.ok{background:rgba(30,150,80,.12);color:#5fd08a;border:1px solid #1c6b46;}
.form-status.err{background:rgba(153,2,5,.12);color:#ff8a8d;border:1px solid var(--red-deep);}
.form-status.loading{background:var(--bg-2);color:var(--grey);border:1px solid var(--line);}

/* بطاقات الستريمرز */
.streamer-card{
  background:var(--bg-2);
  border:1px solid var(--line);
  overflow:hidden;
}
.streamer-top{
  height:110px;
  background:
    radial-gradient(circle at 20% 20%, rgba(153,2,5,.5), transparent 60%),
    var(--bg-3);
  position:relative;
}
.streamer-live{
  position:absolute;
  top:14px;left:14px;
  background:var(--red);
  color:var(--white);
  font-size:11px;
  font-weight:900;
  letter-spacing:1px;
  padding:4px 10px;
  display:flex;align-items:center;gap:6px;
}
.streamer-live::before{
  content:"";width:6px;height:6px;background:var(--white);border-radius:50%;
  animation:pulse 1.4s infinite;
}
.streamer-avatar{
  width:64px;height:64px;
  background:var(--bg-0);
  border:3px solid var(--bg-2);
  border-radius:50%;
  position:absolute;
  bottom:-32px;right:20px;
  display:flex;align-items:center;justify-content:center;
  font-weight:900;
  font-size:22px;
  color:var(--red-bright);
}
.streamer-body{padding:42px 20px 22px;}
.streamer-body h3{font-size:18px;margin-bottom:4px;}
.streamer-body span{color:var(--grey-dim);font-size:13px;}
.streamer-tags{display:flex;gap:8px;margin:14px 0;flex-wrap:wrap;}
.streamer-tags span{
  border:1px solid var(--line);
  padding:4px 10px;
  font-size:11.5px;
  color:var(--grey);
}
.streamer-body .btn{width:100%;justify-content:center;margin-top:8px;padding:11px;font-size:14px;}

/* صفحة من نحن */
.value-card{text-align:center;padding:32px 22px;}
.value-card .n{
  font-size:14px;font-weight:900;color:var(--red-bright);
  letter-spacing:2px;margin-bottom:12px;
}
.team-card{text-align:center;}
.team-avatar{
  width:78px;height:78px;
  margin:0 auto 16px;
  border-radius:50%;
  background:linear-gradient(160deg, var(--red-deep), var(--bg-3));
  display:flex;align-items:center;justify-content:center;
  font-weight:900;font-size:24px;
  border:2px solid var(--red);
}

/* صفحة تسجيل الدخول */
.login-wrap{
  min-height:calc(100vh - 78px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:60px 20px;
  position:relative;
}
.login-card{
  width:100%;
  max-width:420px;
  background:var(--bg-2);
  border:1px solid var(--line);
  padding:42px 34px;
  text-align:center;
  position:relative;
}
.login-card::before{
  content:"";
  position:absolute;top:0;left:0;right:0;height:3px;
  background:linear-gradient(90deg, var(--red), transparent, var(--red));
}
.login-badge{
  width:64px;height:64px;
  border:2px solid var(--red);
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  margin:0 auto 20px;
  font-size:26px;
  color:var(--red-bright);
}
.login-card h1{font-size:24px;margin-bottom:8px;}
.login-card p{color:var(--grey);font-size:14px;margin-bottom:30px;}

.login-form{
  display:flex;
  flex-direction:column;
  gap:18px;
  text-align:right;
}

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

.field-group label{
  font-size:13px;
  font-weight:700;
  color:var(--grey);
}

.field-group input{
  width:100%;
  background:var(--bg-1);
  border:1px solid var(--line);
  color:var(--white);
  padding:12px 14px;
  border-radius:var(--radius);
  font-size:14px;
  transition:.2s ease;
}

.field-group input::placeholder{
  color:var(--grey-dim);
}

.field-group input:focus{
  border-color:var(--red-bright);
  background:var(--bg-3);
  box-shadow:0 0 0 3px rgba(196,4,9,.12);
  outline:none;
}

.btn-discord-big{
  width:100%;
  justify-content:center;
  background:var(--red);
  color:var(--white);
  padding:15px;
  font-size:16px;
  font-weight:800;
  margin-bottom:16px;
  border-radius:var(--radius);
  transition:.2s ease;
}
.btn-discord-big:hover{background:var(--red-bright);}
.login-foot{color:var(--grey-dim);font-size:12.5px;margin-top:18px;}
.login-info{
  text-align:right;
  margin-top:26px;
  padding-top:22px;
  border-top:1px solid var(--line);
  font-size:12.5px;
  color:var(--grey-dim);
}

/* شارات أيقونات بسيطة CSS بدون خطوط أيقونات خارجية */
.ic{
  width:1em;height:1em;
  display:inline-block;
}
