:root{
  --bg:#121212; --panel:#1e1e1e; --ink:#fff; --muted:#bdbdbd;
  --brand:#00ff99; --brand-2:#00cc77; --line:#2a2a2a; --danger:#ff3b30;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0; background:var(--bg); color:var(--ink); font-family:Tahoma,Arial,sans-serif; line-height:1.8}

/* ========= HEADER ========= */
.sf-header{position:sticky; top:0; z-index:1000; background:rgba(18,18,18,.9); backdrop-filter: blur(6px); border-bottom:1px solid var(--line)}
.sf-wrap{max-width:1200px; margin:auto; padding:12px 16px; display:flex; align-items:center; gap:12px}
.sf-brand{color:var(--ink); text-decoration:none; font-weight:900; letter-spacing:.3px; font-size:20px;
  background:linear-gradient(90deg,var(--brand),#5cf0c0); -webkit-background-clip:text; -webkit-text-fill-color:transparent}
.sf-burger{display:none; border:1px solid var(--line); background:var(--panel); color:var(--ink); padding:8px 10px; border-radius:8px; cursor:pointer}
.sf-nav{display:flex; align-items:center; gap:14px; margin-inline-start:16px}
.sf-nav a{color:var(--ink); text-decoration:none; font-weight:700; padding:8px 10px; border-radius:8px}
.sf-nav a:hover{color:var(--brand)}
.sf-cta{margin-inline-start:auto; display:flex; align-items:center; gap:10px}
.sf-cart{display:inline-flex; align-items:center; gap:6px; text-decoration:none; color:var(--ink); background:var(--panel); border:1px solid var(--line); padding:6px 10px; border-radius:10px}
#sfCartCount{background:crimson; color:#fff; min-width:20px; text-align:center; padding:2px 6px; border-radius:999px; font-weight:800; font-size:12px}

/* Auth buttons & user */
.sf-btn{background:var(--brand); color:#000; border:none; padding:8px 12px; border-radius:10px; font-weight:800; cursor:pointer}
.sf-btn--ghost{background:transparent; color:var(--ink); border:1px solid var(--line)}
.sf-btn--sm{padding:6px 10px; font-size:13px}
.sf-btn--danger{background:var(--danger); color:#fff}
.sf-btn--full{width:100%}
.sf-auth{display:flex; align-items:center; gap:8px}
.sf-user.hidden,.sf-dropdown.hidden{display:none}
.sf-chip{background:var(--panel); border:1px solid var(--line); color:var(--ink); border-radius:999px; width:36px; height:36px; display:grid; place-items:center; cursor:pointer; font-weight:800}
.sf-dropdown{position:absolute; top:56px; inset-inline-end:16px; background:var(--panel); border:1px solid var(--line); border-radius:12px; min-width:260px; box-shadow:0 10px 30px rgba(0,0,0,.35); padding:10px}
.sf-user-info{display:flex; gap:10px; align-items:center; padding:8px; border-bottom:1px dashed var(--line); margin-bottom:8px}
.sf-user-avatar{width:36px; height:36px; border-radius:50%; display:grid; place-items:center; background:#222}
.sf-user-name{font-weight:800}
.sf-user-email{font-size:12px; color:var(--muted)}
.sf-menu-link{display:block; padding:10px 8px; color:var(--ink); text-decoration:none; border-radius:8px}
.sf-menu-link:hover{background:#252525}

/* ========= MOBILE NAV (قائمة رأسية عمودية) ========= */
@media (max-width: 860px){
  .sf-wrap{flex-wrap:wrap; gap:10px}
  .sf-burger{display:inline-block; margin-inline-start:auto}
  .sf-nav{order:3; width:100%; flex-direction:column; align-items:stretch; gap:0; max-height:0; overflow:hidden; transition:max-height .25s ease}
  .sf-nav a{padding:14px 10px; border-bottom:1px solid var(--line)}
  .sf-nav.open{max-height:360px}
  .sf-cta{order:2; width:100%; justify-content:space-between}
}

/* ========= HERO بصورة خلفية سينمائية ========= */
.hero{border-bottom:1px solid var(--line)}
.hero--image{
  position:relative;
  background-image:var(--hero-url);
  background-size:cover;
  background-position:center;
}
.hero--image::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(180deg,rgba(0,0,0,.45), rgba(0,0,0,.65));
}
.hero__inner{position:relative; z-index:1; max-width:1200px; margin:auto; padding:60px 16px}
.hero__title{margin:0 0 10px; font-size:32px}
.hero__text{margin:0; color:var(--muted); font-size:16px}
@media(max-width:860px){
  .hero__inner{padding:42px 16px}
  .hero__title{font-size:26px}
}

/* ========= عام ========= */
.container{max-width:1200px; margin:auto; padding:24px 16px}
.grid{display:grid; gap:16px}
.grid-cards{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}
.card{background:var(--panel); border:1px solid var(--line); border-radius:12px; padding:14px; box-shadow:0 0 10px rgba(0,0,0,.35)}
.card h3{margin:0 0 6px}
.muted{color:var(--muted); font-size:14px}
.btn{background:var(--brand); border:none; padding:8px 12px; border-radius:8px; cursor:pointer; font-weight:800}
.btn:hover{background:var(--brand-2)}
.btn-ghost{background:transparent; color:#fff; border:1px solid var(--line)}
.center{text-align:center}

/* جداول + فورمات */
table{width:100%; border-collapse:collapse; overflow:hidden; border-radius:12px}
th,td{padding:10px; text-align:center; border-bottom:1px solid var(--line)}
th{background:#181818}
input,select,textarea{width:100%; background:#181818; color:var(--ink); border:1px solid var(--line); border-radius:10px; padding:10px 12px; outline:none}
label{display:block; margin:8px 0 6px; font-weight:700}

/* ========= FOOTER ========= */
footer{background:#1f1f1f; color:#ccc; text-align:center; padding:18px; border-top:1px solid var(--line); font-size:14px}
footer a{color:#dfe; text-decoration:none}
footer a:hover{color:#aff}