/* ══════════════════════════════════════════════════════════════
   منصة خريطتي — styles.css
   Exact theme from شبكات التنقيط page
   Primary  : #0f3460
   Accent   : #00b4d8
   Page BG  : #f0f4f8
   Font     : Cairo
══════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Cairo', sans-serif;
  background: #f0f4f8;
  direction: rtl;
  color: #1e293b;
  min-height: 100vh;
}

/* ══════════════════════════════════════════════════════════════
   NAVBAR  — exact copy from .navbar in شبكات
══════════════════════════════════════════════════════════════ */
.navbar {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  padding: 0 28px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(15,52,96,.07);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0f3460, #00b4d8);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,180,216,.30);
  overflow: hidden;
}

.nav-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-brand-text {
  font-size: 19px;
  font-weight: 800;
  color: #0f3460;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* exact .nav-link from شبكات */
.nav-link {
  padding: 7px 15px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
  transition: all .18s;
  border: 1px solid transparent;
  background: none;
  cursor: pointer;
  font-family: 'Cairo', sans-serif;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover {
  background: #f0f9ff;
  color: #0f3460;
}

/* active state — exact from شبكات .nav-link.active */
.nav-link.active {
  background: linear-gradient(135deg, rgba(15,52,96,.08), rgba(0,180,216,.08));
  color: #0f3460;
  border-color: rgba(0,180,216,.2);
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-user-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f3460;
}

.nav-divider {
  width: 1px;
  height: 20px;
  background: #e2e8f0;
  display: block;
}

.nav-avatar-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  border-radius: 50%;
  outline: 2px solid transparent;
  transition: outline-color .18s;
}

.nav-avatar-btn:hover { outline-color: #00b4d8; }

.nav-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: block;
}

/* mobile hamburger */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  color: #64748b;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 10px;
  transition: background .18s, color .18s;
  font-family: 'Cairo', sans-serif;
}

.mobile-menu-btn:hover { background: #f0f9ff; color: #0f3460; }

/* nav-menu transitions */
#nav-menu { transition: max-height .3s ease-in-out, opacity .3s ease-in-out; }
.mobile-menu-hidden { max-height: 0; opacity: 0; pointer-events: none; overflow: hidden; }
.mobile-menu-visible { max-height: 700px; opacity: 1; pointer-events: auto; }

@media (min-width: 768px) {
  .mobile-menu-hidden {
    max-height: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    overflow: visible !important;
    display: flex !important;
  }
  .mobile-menu-btn { display: none !important; }
  .nav-user { display: flex !important; }
}

/* ── Reports dropdown — exact from شبكات ── */
.reports-dropdown { position: relative; }

.reports-dropdown-menu {
  transition: opacity .2s ease, transform .2s ease;
  transform-origin: top right;
}
.reports-dropdown-menu.dropdown-closed {
  opacity: 0;
  transform: scale(.95) translateY(-5px);
  pointer-events: none;
}
.reports-dropdown-menu.dropdown-open {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}
@media (min-width: 768px) {
  .reports-dropdown:hover .reports-dropdown-menu {
    opacity: 1 !important;
    transform: scale(1) translateY(0) !important;
    pointer-events: auto !important;
  }
}

.report-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  transition: all .2s;
  border-right: 3px solid transparent;
  text-decoration: none;
  color: #374151;
}
.report-item:hover {
  background: linear-gradient(to left, #eff6ff, #fff);
  border-right-color: #00b4d8;
  padding-right: 20px;
}
.report-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .navbar { padding: 0 16px; height: auto; min-height: 60px; }
  .mobile-menu-btn { display: flex !important; align-items: center; justify-content: center; }
  .nav-user { display: none; }

  #nav-menu {
    position: absolute;
    top: 60px;
    left: 12px;
    right: 12px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 30px rgba(15,52,96,.12);
    padding: 12px;
    z-index: 50;
    flex-direction: column;
    align-items: stretch;
  }

  #nav-menu .nav-link {
    padding: 11px 14px;
    width: 100%;
    font-size: 14px;
  }

  .reports-dropdown-mobile-open .reports-dropdown-menu {
    position: relative !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
    width: 100% !important;
    box-shadow: none !important;
    border: none !important;
    margin-top: 4px;
  }
  .chevron-icon { transition: transform .2s ease; }
  .reports-dropdown-mobile-open .chevron-icon { transform: rotate(180deg); }
}

/* ══════════════════════════════════════════════════════════════
   PAGE HEADER HERO — exact from .page-header in شبكات
══════════════════════════════════════════════════════════════ */
.page-header {
  background: linear-gradient(135deg, #0f3460 0%, #1a4a7a 50%, #0f3460 100%);
  padding: 40px 32px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%2300b4d8' fill-opacity='0.06'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/svg%3E");
}

/* curved bottom cutout — exact from شبكات */
.page-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 32px;
  background: #f0f4f8;
  clip-path: ellipse(55% 100% at 50% 100%);
}

.page-header-content { position: relative; z-index: 1; }

.page-header h1 {
  font-size: 26px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: -.3px;
}

.page-header p {
  font-size: 14px;
  color: rgba(255,255,255,.78);
  max-width: 520px;
  margin: 0 auto 16px;
  line-height: 1.75;
}

/* tip strip inside hero — exact from .header-tip */
.header-tip {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(0,180,216,.18);
  border: 1px solid rgba(0,180,216,.3);
  border-radius: 14px;
  padding: 10px 16px;
  font-size: 13px;
  max-width: 600px;
  text-align: right;
  line-height: 1.6;
  color: rgba(255,255,255,.9);
  backdrop-filter: blur(4px);
}
.header-tip i { color: #00b4d8; flex-shrink: 0; font-size: 15px; margin-top: 2px; }

/* ══════════════════════════════════════════════════════════════
   MAIN LAYOUT
══════════════════════════════════════════════════════════════ */
main {
  max-width: 960px;
  margin: 0 auto;
  padding: 36px 24px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ══════════════════════════════════════════════════════════════
   WIZARD CARD
   Same look as the white A4 card area in شبكات (sidebar panel)
══════════════════════════════════════════════════════════════ */
#wizard {
  background: #fff;
  width: 100%;
  max-width: 900px;
  border-radius: 2.5rem;
  box-shadow: 0 8px 40px rgba(15,52,96,.10);
  padding: 40px 48px;
  border: 1px solid rgba(255,255,255,.9);
  animation: fadeInUp .55s cubic-bezier(.16,1,.3,1) both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Wizard header text */
.wizard-header {
  text-align: center;
  margin-bottom: 36px;
}
.wizard-header h2 {
  font-size: 24px;
  font-weight: 900;
  color: #0f3460;
  margin-bottom: 8px;
  letter-spacing: -.2px;
}
.wizard-header p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.7;
}

/* section divider inside wizard */
.wizard-divider {
  border: none;
  border-top: 1.5px solid #f1f5f9;
  margin: 28px 0;
}

/* ══════════════════════════════════════════════════════════════
   STEP INDICATORS  — matches sidebar-section in شبكات
══════════════════════════════════════════════════════════════ */
.step-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

/* active — exact .step-indicator.active */
.step-indicator {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
  transition: all .25s;
}
.step-indicator.active {
  background: #00b4d8;
  color: #fff;
  box-shadow: 0 0 0 4px rgba(0,180,216,.20);
}
.step-indicator.inactive {
  background: #e2e8f0;
  color: #94a3b8;
}

.step-title {
  font-size: 17px;
  font-weight: 800;
  transition: color .25s;
}
.step-title.active  { color: #0f3460; }
.step-title.inactive { color: #94a3b8; }

/* ══════════════════════════════════════════════════════════════
   TELMIDTICE ACCORDION
   Matches .sidebar-section card style from شبكات
══════════════════════════════════════════════════════════════ */
#talamid-instructions {
  margin-bottom: 28px;
  border-radius: 16px;
  background: linear-gradient(to left, #f8fafc, #fff);
  border: 1.5px solid #e2e8f0;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(15,52,96,.05);
}

#talamid-toggle-btn {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background .2s;
}
#talamid-toggle-btn:hover { background: rgba(0,180,216,.05); }

.talamid-toggle-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}
.talamid-toggle-inner img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.talamid-toggle-inner h4 {
  font-size: 14px;
  font-weight: 800;
  color: #0f3460;
  margin-bottom: 2px;
}
.talamid-toggle-inner .talamid-subtitle {
  font-size: 12px;
  font-weight: 700;
  color: #00b4d8;
}

#talamid-toggle-icon {
  font-size: 14px;
  color: #94a3b8;
  transition: transform .3s;
}

#talamid-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height .5s ease-in-out;
  border-top: 1px solid #f1f5f9;
  background: rgba(248,250,252,.6);
}
#talamid-content .talamid-inner {
  padding: 18px 20px;
  font-size: 13px;
  color: #475569;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
#talamid-content .talamid-inner strong {
  font-weight: 800;
  color: #0f3460;
  display: block;
  margin-bottom: 6px;
}

/* path code block — matches .add-col-row style from شبكات */
.path-copy-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.path-code {
  flex: 1;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  padding: 8px 12px;
  border-radius: 10px;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: #0f3460;
  direction: ltr;
  min-width: 0;
}

/* copy button — exact same as .add-col-row button from شبكات */
.btn-copy {
  padding: 8px 14px;
  background: linear-gradient(135deg, #0f3460, #00b4d8);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: 'Cairo', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all .18s;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,180,216,.25);
}
.btn-copy:hover {
  background: linear-gradient(135deg, #0b2847, #0095b3);
  box-shadow: 0 4px 12px rgba(0,180,216,.35);
  transform: translateY(-1px);
}
.btn-copy.copied {
  background: linear-gradient(135deg, #059669, #10b981);
  box-shadow: 0 2px 8px rgba(16,185,129,.3);
}

kbd {
  display: inline-block;
  padding: 3px 8px;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  color: #334155;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
  font-family: 'Cairo', sans-serif;
}

.talamid-inner .run-imgs {
  display: flex;
  gap: 14px;
  margin-top: 10px;
  opacity: .75;
}
.talamid-inner .run-imgs img {
  height: 60px;
  object-fit: contain;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

/* ══════════════════════════════════════════════════════════════
   FILE UPLOAD DROP ZONE
   Exact copy of .upload-zone from شبكات
══════════════════════════════════════════════════════════════ */
.upload-zone {
  border: 2px dashed #cbd5e1;
  border-radius: 20px;
  padding: 36px 24px;
  text-align: center;
  cursor: pointer;
  transition: all .25s;
  color: #94a3b8;
  background: #fafbfc;
  position: relative;
}
.upload-zone:hover,
.upload-zone.drag-over {
  border-color: #00b4d8;
  background: rgba(0,180,216,.04);
  color: #00b4d8;
}

.upload-icon-wrap {
  width: 64px;
  height: 64px;
  background: #e0f2fe;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  transition: transform .3s;
}
.upload-zone:hover .upload-icon-wrap { transform: scale(1.08); }
.upload-icon-wrap i { font-size: 28px; color: #00b4d8; }

.upload-zone .upload-title {
  font-size: 15px;
  font-weight: 800;
  color: #0f3460;
  margin-bottom: 4px;
}
.upload-zone .upload-formats {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
}
#file-name {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #00b4d8;
  min-height: 18px;
}

/* ══════════════════════════════════════════════════════════════
   ANALYSIS PROGRESS
   Exact copy of .progress-wrap / .progress-bar-bg from شبكات
══════════════════════════════════════════════════════════════ */
#analysis-result {
  margin-top: 18px;
  background: #f8fafc;
  border-radius: 16px;
  padding: 14px 18px;
  border: 1.5px solid #e2e8f0;
}

.progress-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 8px;
}

.progress-bg {
  background: #e2e8f0;
  border-radius: 8px;
  height: 6px;
  overflow: hidden;
}

/* exact .progress-bar-fill from شبكات */
#progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #0f3460, #00b4d8);
  border-radius: 8px;
  transition: width .4s ease;
  width: 0%;
}

/* OCR sub-bar */
#ocr-progress-container {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}
.ocr-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
#ocr-language-select {
  font-family: 'Cairo', sans-serif;
  font-size: 11px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 3px 8px;
  outline: none;
  background: #fff;
  color: #334155;
  cursor: pointer;
  transition: border-color .18s;
}
#ocr-language-select:focus { border-color: #00b4d8; }

#ocr-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #34d399);
  border-radius: 8px;
  transition: width .2s linear;
  width: 0%;
}

/* ══════════════════════════════════════════════════════════════
   GENERATE BUTTON — exact copy of .download-btn from شبكات
══════════════════════════════════════════════════════════════ */
#generate-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #0f3460, #00b4d8);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-family: 'Cairo', sans-serif;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: all .2s;
  box-shadow: 0 4px 16px rgba(0,180,216,.35);
  position: relative;
  overflow: hidden;
}
#generate-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.10), transparent);
}
#generate-btn:not(:disabled):hover {
  background: linear-gradient(135deg, #0b2847, #0095b3);
  box-shadow: 0 6px 20px rgba(0,180,216,.45);
  transform: translateY(-2px);
}
#generate-btn:not(:disabled):active { transform: scale(.98); }
#generate-btn:disabled {
  opacity: .65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
#generate-btn i { font-size: 18px; color: #00f2ff; }

/* spinner — exact .btn-spinner from شبكات */
.loader {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* View maps button */
#view-maps-container { margin-top: 10px; }

#view-maps-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px;
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
  font-family: 'Cairo', sans-serif;
  font-size: 15px;
  font-weight: 800;
  border-radius: 14px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(16,185,129,.30);
  transition: all .2s;
  position: relative;
  overflow: hidden;
}
#view-maps-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.08), transparent);
}
#view-maps-btn:hover {
  background: linear-gradient(135deg, #047857, #059669);
  box-shadow: 0 6px 20px rgba(16,185,129,.40);
  transform: translateY(-2px);
}

/* ══════════════════════════════════════════════════════════════
   PROFILE MODAL — exact visual from شبكات profile panel
══════════════════════════════════════════════════════════════ */
#profile-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  background: rgba(0,0,0,.40);
  backdrop-filter: blur(4px);
}
#profile-modal.hidden { display: none; }

.profile-modal-card {
  background: #fff;
  border-radius: 2.5rem;
  box-shadow: 0 20px 60px rgba(15,52,96,.18);
  width: 100%;
  max-width: 400px;
  margin: 72px 20px 0;
  overflow: hidden;
  animation: popIn .28s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes popIn {
  from { opacity: 0; transform: scale(.92) translateY(-10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* dark blue header — exact from .sheet-header-bar gradient */
.profile-modal-header {
  background: linear-gradient(135deg, #0f3460 0%, #1a4a7a 100%);
  padding: 32px 28px 28px;
  text-align: center;
  position: relative;
}
.profile-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  color: rgba(255,255,255,.50);
  font-size: 18px;
  cursor: pointer;
  transition: color .18s;
  padding: 4px 6px;
  border-radius: 8px;
}
.profile-modal-close:hover { color: #fff; background: rgba(255,255,255,.10); }

.profile-modal-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid rgba(0,180,216,.50);
  box-shadow: 0 4px 16px rgba(0,0,0,.20);
  margin: 0 auto 12px;
  display: block;
}
.profile-modal-name {
  font-size: 19px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}
.profile-modal-academy {
  font-size: 13px;
  font-weight: 700;
  color: #00b4d8;
}

.profile-modal-body { padding: 24px 28px 28px; }

/* ── TIP CARD — exact from شبكات .tip-card ── */
.tip-card {
  background: linear-gradient(135deg, #fff7ed 0%, #fef3c7 100%);
  border: 1px solid #fde68a;
  border-radius: 1.25rem;
  padding: 1.25rem;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}
.tip-card::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(251,191,36,.20), transparent 70%);
  border-radius: 50%;
}
.tip-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.tip-card-head i { color: #f59e0b; font-size: 16px; }
.tip-card-head strong { font-size: 13px; font-weight: 800; color: #92400e; }
.tip-card-head .tip-date { margin-right: auto; font-size: 10px; font-weight: 700; color: #b45309; }
.tip-card-quote {
  font-style: italic;
  font-weight: 600;
  color: #78350f;
  line-height: 1.85;
  font-size: .95rem;
  position: relative;
  z-index: 1;
}
.tip-card-source {
  text-align: left;
  font-size: .75rem;
  color: #b45309;
  margin-top: 8px;
  font-weight: 700;
}

/* ── Modal action buttons — exact from شبكات ── */
.modal-actions { display: flex; flex-direction: column; gap: 10px; }

/* upgrade = same as .download-btn */
.btn-upgrade {
  display: block;
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #0f3460, #00b4d8);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-family: 'Cairo', sans-serif;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all .2s;
  box-shadow: 0 4px 16px rgba(0,180,216,.30);
  position: relative;
  overflow: hidden;
}
.btn-upgrade::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.10), transparent);
}
.btn-upgrade:hover {
  background: linear-gradient(135deg, #0b2847, #0095b3);
  box-shadow: 0 6px 20px rgba(0,180,216,.40);
  transform: translateY(-2px);
}

.btn-admin {
  display: block;
  width: 100%;
  padding: 12px;
  background: #1e293b;
  color: #fff;
  border: none;
  border-radius: 14px;
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s;
}
.btn-admin:hover { background: #0f172a; }

.btn-logout {
  display: block;
  width: 100%;
  padding: 12px;
  background: none;
  border: 2px solid #fee2e2;
  border-radius: 14px;
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: #ef4444;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all .18s;
}
.btn-logout:hover { background: #fef2f2; border-color: #fca5a5; }

/* ══════════════════════════════════════════════════════════════
   CREDIT MODAL — exact from شبكات
══════════════════════════════════════════════════════════════ */
#credit-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(5px);
}
#credit-modal.hidden { display: none; }

.credit-modal-card {
  background: #fff;
  border-radius: 2rem;
  box-shadow: 0 24px 60px rgba(0,0,0,.18);
  width: 100%;
  max-width: 420px;
  margin: 0 20px;
  padding: 36px 32px;
  text-align: center;
  animation: popIn .28s cubic-bezier(.34,1.56,.64,1) both;
}
.credit-modal-icon {
  width: 80px;
  height: 80px;
  background: #fef3c7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 0 0 8px #fef9e7;
}
.credit-modal-icon i { font-size: 36px; color: #f59e0b; }
.credit-modal-title {
  font-size: 22px;
  font-weight: 900;
  color: #0f3460;
  margin-bottom: 8px;
}
.credit-modal-body {
  font-size: 14px;
  color: #64748b;
  line-height: 1.75;
  margin-bottom: 24px;
}
.credit-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
@media (min-width: 420px) {
  .credit-modal-actions { flex-direction: row; justify-content: center; }
}

.btn-subscribe {
  flex: 1;
  padding: 13px 20px;
  background: linear-gradient(135deg, #0f3460, #00b4d8);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  box-shadow: 0 4px 14px rgba(0,180,216,.28);
}
.btn-subscribe:hover { box-shadow: 0 6px 20px rgba(0,180,216,.40); transform: translateY(-2px); }

.btn-dismiss {
  flex: 1;
  padding: 12px 20px;
  background: #f1f5f9;
  color: #475569;
  border: none;
  border-radius: 12px;
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s;
}
.btn-dismiss:hover { background: #e2e8f0; }

/* ══════════════════════════════════════════════════════════════
   FOOTER — exact copy from شبكات .footer
══════════════════════════════════════════════════════════════ */
.site-footer {
  background: #0f172a;
  color: #64748b;
  padding: 44px 32px 24px;
  direction: rtl;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 32px;
}
.footer-brand-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0f3460, #00b4d8);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,180,216,.3);
  overflow: hidden;
}
.footer-logo img { width: 100%; height: 100%; object-fit: contain; }
.footer-logo-text { font-size: 18px; font-weight: 900; color: #00b4d8; }
.footer-desc { font-size: 13px; line-height: 1.8; color: #475569; }
.footer-col h4 { font-size: 14px; font-weight: 700; color: #f1f5f9; margin-bottom: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col ul li a {
  font-size: 13px;
  color: #475569;
  text-decoration: none;
  transition: color .15s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-col ul li a::before { content: '←'; font-size: 11px; opacity: .4; }
.footer-col ul li a:hover { color: #00b4d8; }
.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 20px;
  text-align: center;
  font-size: 12.5px;
  color: #334155;
}
.footer-bottom a { color: #00b4d8; text-decoration: none; font-weight: 700; }

@media (max-width: 767px) {
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ══════════════════════════════════════════════════════════════
   TOOLS SECTION — exact copy from شبكات .tools-section
══════════════════════════════════════════════════════════════ */
.tools-section {
  background: #fff;
  padding: 36px 32px;
  border-top: 1px solid #e2e8f0;
}
.tools-section-inner { max-width: 860px; margin: 0 auto; text-align: center; }
.tools-section h2 { font-size: 20px; font-weight: 800; color: #0f3460; margin-bottom: 6px; }
.tools-section p { font-size: 13.5px; color: #64748b; margin-bottom: 20px; }
.tools-grid { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.tool-card {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 700;
  color: #334155;
  text-decoration: none;
  background: #fff;
  transition: all .18s;
  cursor: pointer;
}
.tool-card:hover {
  border-color: #00b4d8;
  background: #f0f9ff;
  color: #0f3460;
  box-shadow: 0 4px 12px rgba(0,180,216,.15);
  transform: translateY(-2px);
}
.tool-card i { font-size: 17px; color: #00b4d8; }

/* ══════════════════════════════════════════════════════════════
   UTILITIES
══════════════════════════════════════════════════════════════ */
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }