
/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* No blue/gray flash on tap (Android Chrome / Samsung Internet) on any button, link or data-click element.
   Keyboard focus still shows the gold outline below (:focus-visible), so this only removes the touch highlight. */
html { -webkit-tap-highlight-color: transparent; font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
* { -webkit-tap-highlight-color: transparent; }
body {
  font-family: 'Cairo', system-ui, -apple-system, sans-serif;
  direction: rtl;
  text-align: right;
  background: #0d0d0f;
  color: #f0f0f2;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; font-size: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }
a { text-decoration: none; color: inherit; }

/* ─── COLOR VARIABLES ─── */
:root {
  --bg:     #0d0d0f;
  --s:      #141417;
  --card:   #1a1a1e;
  --b1:     #252528;
  --b2:     #333338;
  --gold:   #d4a017;
  --blue:   #3b82f6;
  --purple: #8b5cf6;
  --red:    #ef4444;
  --green:  #22c55e;
  --t1:     #f0f0f2;
  --t2:     #a0a0a8;
  --t3:     #8f8f99;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--b2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ─── UTILITIES ─── */
.hidden { display: none !important; }
.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 16px; }
.mt { margin-top: 14px; }
.req { color: var(--red); font-weight: 800; }

/* ─── GRIDS ─── */
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.g3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 768px) {
  .g2, .g3 { grid-template-columns: 1fr; }
}

/* ─── SITE HEADER ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 15, 0.98);
  border-bottom: 1px solid var(--b1);
  backdrop-filter: blur(12px);
}
.hdr-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 12px;
}

/* Logo */
.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  cursor: default;
  user-select: none;
}
.logo-icon {
  width: 38px;
  height: 38px;
  background: #1a0a06;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-size: 18px;
  font-weight: 800;
  flex-shrink: 0;
}
.logo-icon img { display: block; width: 100%; height: 100%; object-fit: cover; }
.logo-name { font-size: 15px; font-weight: 800; color: var(--t1); line-height: 1.2; }
.logo-sub { font-size: 11px; color: var(--t3); font-weight: 500; }

/* Header Right Actions */
.hdr-right { display: flex; align-items: center; gap: 8px; }
.admin-link-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--gold);
  color: #000;
  font-size: 12px;
  font-weight: 800;
  border: none;
  transition: opacity .15s;
}
.admin-link-btn:hover { opacity: .88; }
.logout-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 8px;
  background: transparent;
  color: var(--red);
  border: 1px solid rgba(239, 68, 68, 0.35);
  font-size: 12px;
  font-weight: 700;
  transition: background .15s;
}
.logout-btn:hover { background: rgba(239, 68, 68, 0.1); }
@media (max-width: 540px) {
  .logo-sub { display: none; }
  .logo-name { font-size: 13px; }
  .logo-icon { width: 34px; height: 34px; font-size: 16px; }
  .admin-link-btn { padding: 6px 9px; font-size: 11px; gap: 4px; }
  .logout-btn { padding: 6px 9px; font-size: 11px; }
  .hdr-inner { gap: 6px; height: 54px; }
  .hdr-right { gap: 5px; }
}
