/* =========================================================
   Design Tokens — Neumorphism (Soft UI) Cool Grey
   ========================================================= */
:root {
  --bg: #E0E5EC;
  --fg: #3D4852;
  --muted: #6B7280;
  --placeholder: #A0AEC0;
  --accent: #6C63FF;
  --accent-light: #8B84FF;
  --accent-2: #38B2AC;
  --danger: #E53E3E;

  --sh-dark: rgb(163,177,198,0.6);
  --sh-dark-strong: rgb(163,177,198,0.7);
  --sh-light: rgba(255,255,255,0.55);
  --sh-light-strong: rgba(255,255,255,0.6);

  --r-container: 32px;
  --r-base: 16px;
  --r-inner: 12px;

  --tr: 300ms ease-out;
}

/* Shadow utilities */
.sh-extruded     { box-shadow: 9px 9px 16px var(--sh-dark), -9px -9px 16px var(--sh-light); }
.sh-extruded-sm  { box-shadow: 5px 5px 10px var(--sh-dark), -5px -5px 10px var(--sh-light); }
.sh-inset        { box-shadow: inset 6px 6px 10px var(--sh-dark), inset -6px -6px 10px var(--sh-light); }
.sh-inset-deep   { box-shadow: inset 10px 10px 20px var(--sh-dark-strong), inset -10px -10px 20px var(--sh-light-strong); }

/* =========================================================
   Reset & Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'IBM Plex Sans Arabic', 'DM Sans', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  direction: rtl;
  text-align: right;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: 'IBM Plex Sans Arabic', 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
code {
  font-family: ui-monospace, 'DM Sans', monospace;
  background: var(--bg);
  padding: 2px 6px;
  border-radius: 6px;
  box-shadow: inset 2px 2px 4px var(--sh-dark), inset -2px -2px 4px var(--sh-light);
  font-size: 13px;
}

:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent);
  border-radius: var(--r-inner);
}

.muted { color: var(--muted); }

/* =========================================================
   Layout
   ========================================================= */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 16px 16px 120px;
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--bg);
  padding: 12px 0;
  box-shadow: 0 6px 14px rgba(163,177,198,0.4);
  border-bottom: 1px solid rgba(255,255,255,0.35);
}
.header-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-base);
  display: grid;
  place-items: center;
  color: var(--accent);
  flex-shrink: 0;
  background: var(--bg);
}
.brand-logo {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}
.brand-text h1 {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}
.brand-text .count {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

/* =========================================================
   Search
   ========================================================= */
.search-well {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  height: 56px;
  background: var(--bg);
  border-radius: var(--r-base);
  margin-bottom: 18px;
  color: var(--muted);
}
.search-well input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 16px;
  font-weight: 500;
  color: var(--fg);
  outline: none;
  min-width: 0;
}
.search-well input::placeholder { color: var(--placeholder); }
.search-well input::-webkit-search-cancel-button { display: none; }

/* =========================================================
   Chips (faculty filter)
   ========================================================= */
.chips {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 12px 4px 20px;
  margin: 0 -4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.chips::-webkit-scrollbar { display: none; }

.chip {
  flex-shrink: 0;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform var(--tr), box-shadow var(--tr), color var(--tr), background var(--tr);
  box-shadow: 5px 5px 10px var(--sh-dark), -5px -5px 10px var(--sh-light);
}
.chip:hover { transform: translateY(-1px); }
.chip:active {
  transform: translateY(0.5px);
  box-shadow: inset 3px 3px 6px var(--sh-dark), inset -3px -3px 6px var(--sh-light);
}
.chip.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  box-shadow: 4px 4px 8px rgba(108,99,255,0.35), -4px -4px 8px rgba(255,255,255,0.6);
}

/* =========================================================
   Loading
   ========================================================= */
.loading {
  text-align: center;
  padding: 40px 0;
  color: var(--muted);
}
.spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin: 0 auto 16px;
  background: var(--bg);
  position: relative;
}
.spinner::after {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: var(--accent);
  border-right-color: var(--accent-light);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================
   Teacher Cards
   ========================================================= */
.results {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 720px) {
  .results { grid-template-columns: 1fr 1fr; }
}

.teacher-card {
  background: var(--bg);
  border-radius: var(--r-container);
  padding: 22px;
  transition: transform var(--tr), box-shadow var(--tr);
  box-shadow: 9px 9px 16px var(--sh-dark), -9px -9px 16px var(--sh-light);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.teacher-card:hover {
  transform: translateY(-2px);
  box-shadow: 12px 12px 20px var(--sh-dark-strong), -12px -12px 20px var(--sh-light-strong);
}

.teacher-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.avatar-well {
  width: 56px;
  height: 56px;
  border-radius: var(--r-base);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--accent);
  background: var(--bg);
  box-shadow: inset 6px 6px 10px var(--sh-dark), inset -6px -6px 10px var(--sh-light);
}
.avatar-well svg { width: 26px; height: 26px; }

.teacher-info { min-width: 0; flex: 1; }
.teacher-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.35;
  margin-bottom: 6px;
}
.teacher-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.teacher-meta .tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--bg);
  box-shadow: inset 3px 3px 6px var(--sh-dark), inset -3px -3px 6px var(--sh-light);
  font-weight: 500;
  font-size: 12px;
  color: var(--muted);
}

/* Phone well */
.phone-well {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--bg);
  border-radius: var(--r-base);
  box-shadow: inset 6px 6px 12px var(--sh-dark), inset -6px -6px 12px var(--sh-light);
}
.phone-well svg { color: var(--accent); flex-shrink: 0; }
.phone-number {
  font-family: 'DM Sans', 'IBM Plex Sans Arabic', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: 0.03em;
  direction: ltr;
  font-variant-numeric: tabular-nums;
}

/* Actions */
.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.actions-row2 {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-start;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 18px;
  border-radius: var(--r-base);
  font-weight: 600;
  font-size: 15px;
  transition: transform var(--tr), box-shadow var(--tr);
  box-shadow: 5px 5px 10px var(--sh-dark), -5px -5px 10px var(--sh-light);
  background: var(--bg);
  color: var(--fg);
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 7px 7px 14px var(--sh-dark-strong), -7px -7px 14px var(--sh-light-strong);
}
.btn:active {
  transform: translateY(0.5px);
  box-shadow: inset 3px 3px 6px var(--sh-dark), inset -3px -3px 6px var(--sh-light);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff;
  box-shadow: 5px 5px 12px rgba(108,99,255,0.4), -5px -5px 10px rgba(255,255,255,0.6);
}
.btn-accent:hover {
  box-shadow: 7px 7px 16px rgba(108,99,255,0.5), -7px -7px 12px rgba(255,255,255,0.7);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25D366, #20BA5A);
  color: #fff;
  box-shadow: 5px 5px 12px rgba(37,211,102,0.35), -5px -5px 10px rgba(255,255,255,0.6);
}
.btn-whatsapp:hover {
  box-shadow: 7px 7px 16px rgba(37,211,102,0.5), -7px -7px 12px rgba(255,255,255,0.7);
}

.btn-report {
  height: 40px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  box-shadow: 3px 3px 6px var(--sh-dark), -3px -3px 6px var(--sh-light);
}
.btn-report:hover { color: var(--danger); }

/* =========================================================
   Empty State
   ========================================================= */
.empty {
  text-align: center;
  padding: 50px 24px;
  border-radius: var(--r-container);
  color: var(--muted);
  font-weight: 500;
  background: var(--bg);
}

/* =========================================================
   FAB (ساعدنا)
   ========================================================= */
.fab {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 25;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 56px;
  padding: 0 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 6px 6px 16px rgba(108,99,255,0.45), -6px -6px 14px rgba(255,255,255,0.6);
  transition: transform var(--tr), box-shadow var(--tr);
}
.fab:hover {
  transform: translateY(-2px);
  box-shadow: 8px 8px 22px rgba(108,99,255,0.55), -8px -8px 18px rgba(255,255,255,0.7);
}
.fab:active {
  transform: translateY(0.5px);
  box-shadow: 3px 3px 8px rgba(108,99,255,0.5), -3px -3px 6px rgba(255,255,255,0.6);
}

/* =========================================================
   Modal
   ========================================================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(61, 72, 82, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fadeIn 200ms ease-out;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: var(--bg);
  border-radius: var(--r-container);
  padding: 28px 24px 24px;
  animation: slideUp 260ms ease-out;
}
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.modal h2 { font-size: 22px; margin-bottom: 6px; }
.modal .muted { font-size: 14px; margin: 0 0 20px; }

.modal-close {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg);
  color: var(--muted);
  transition: transform var(--tr), color var(--tr);
}
.modal-close:hover { transform: rotate(90deg); color: var(--danger); }
.modal-close:active {
  box-shadow: inset 3px 3px 6px var(--sh-dark), inset -3px -3px 6px var(--sh-light);
}

form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin: 14px 0 6px;
}
form input,
form select,
form textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg);
  border: none;
  border-radius: var(--r-base);
  font-size: 15px;
  font-weight: 500;
  color: var(--fg);
  box-shadow: inset 6px 6px 10px var(--sh-dark), inset -6px -6px 10px var(--sh-light);
  transition: box-shadow var(--tr);
  resize: vertical;
}
form input:focus,
form select:focus,
form textarea:focus {
  outline: none;
  box-shadow: inset 10px 10px 20px var(--sh-dark-strong),
              inset -10px -10px 20px var(--sh-light-strong),
              0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
}
form input::placeholder,
form textarea::placeholder { color: var(--placeholder); }
form input.invalid,
form textarea.invalid {
  box-shadow: inset 6px 6px 10px var(--sh-dark),
              inset -6px -6px 10px var(--sh-light),
              0 0 0 2px var(--danger);
}
form .error-msg {
  display: none;
  font-size: 12px;
  color: var(--danger);
  margin-top: 6px;
  font-weight: 500;
}
form .error-msg.show { display: block; }

form button[type="submit"] {
  width: 100%;
  margin-top: 22px;
}

.report-context {
  padding: 14px 16px;
  border-radius: var(--r-base);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 4px;
  background: var(--bg);
}
.report-context strong { color: var(--fg); font-weight: 700; }

/* =========================================================
   Toast
   ========================================================= */
.toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 70;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 250ms, transform 250ms;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* =========================================================
   Responsive
   ========================================================= */
@media (min-width: 720px) {
  .brand-text h1 { font-size: 24px; }
  .container { padding: 20px 20px 120px; }
  .fab { bottom: 24px; left: 24px; height: 60px; padding: 0 26px; font-size: 16px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- Portfolio button (header) --- */
.portfolio-btn {
  margin-inline-start: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  background: var(--bg);
  color: var(--fg);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 5px 5px 10px var(--sh-dark), -5px -5px 10px var(--sh-light);
  transition: transform var(--tr), box-shadow var(--tr), color var(--tr);
  flex-shrink: 0;
}
.portfolio-btn svg { color: var(--accent); flex-shrink: 0; }
.portfolio-btn:hover {
  transform: translateY(-1px);
  box-shadow: 7px 7px 14px var(--sh-dark-strong), -7px -7px 14px var(--sh-light-strong);
  color: var(--accent);
}
.portfolio-btn:active {
  transform: translateY(0.5px);
  box-shadow: inset 3px 3px 6px var(--sh-dark), inset -3px -3px 6px var(--sh-light);
}
.portfolio-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent);
}

/* --- Disclaimer strip --- */
.disclaimer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  background: var(--bg);
  box-shadow: inset 0 4px 8px rgba(163,177,198,0.18);
  text-align: center;
  line-height: 1.5;
}
.disclaimer span[aria-hidden] { font-size: 14px; }

/* --- Mobile adjustments --- */
@media (max-width: 520px) {
  .portfolio-btn {
    width: auto;
    padding: 0 10px;
    font-size: 12px;
    gap: 4px;
  }
  .portfolio-text {
    display: inline;
  }
  .portfolio-btn svg {
    width: 14px;
    height: 14px;
  }
  .disclaimer { font-size: 11px; padding: 8px 12px; }
}

/* --- Landing: hero --- */
.hero {
  text-align: center;
  padding: 32px 8px 24px;
}
.hero-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--fg);
  margin: 0 0 8px;
}
.hero-sub {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
  font-weight: 500;
}

/* --- Landing: services grid --- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 12px;
}
@media (min-width: 720px) {
  .services-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 22px 22px;
  border-radius: var(--r-container);
  background: var(--bg);
  text-decoration: none;
  color: var(--fg);
  transition: transform var(--tr), box-shadow var(--tr);
}
a.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 12px 12px 20px var(--sh-dark-strong), -12px -12px 20px var(--sh-light-strong);
}
a.service-card:active {
  transform: translateY(0.5px);
  box-shadow: inset 6px 6px 10px var(--sh-dark), inset -6px -6px 10px var(--sh-light);
}
a.service-card:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--r-base);
  display: grid;
  place-items: center;
  color: var(--accent);
  background: var(--bg);
  margin-bottom: 4px;
}

.service-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--fg);
  margin: 0;
  line-height: 1.3;
}
.service-desc {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.6;
  margin: 0;
  flex: 1;
}
.service-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  margin-top: 6px;
}

/* Service card — coming soon (disabled) */
.service-soon {
  opacity: 0.75;
  cursor: default;
}
.service-soon .service-icon { color: var(--muted); }
.soon-badge {
  position: absolute;
  top: 18px;
  inset-inline-end: 18px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: var(--bg);
  border-radius: 999px;
  box-shadow: inset 3px 3px 6px var(--sh-dark), inset -3px -3px 6px var(--sh-light);
}
.service-cta-disabled {
  color: var(--muted);
  opacity: 0.7;
  font-weight: 600;
}

/* Mobile tightening */
@media (max-width: 520px) {
  .hero { padding: 24px 4px 18px; }
  .hero-title { font-size: 22px; }
  .hero-sub { font-size: 14px; }
  .service-card { padding: 22px 18px 18px; }
}

/* --- Brand English subtitle (Daraja) --- */
.brand-en {
  font-family: 'DM Sans', 'IBM Plex Sans Arabic', sans-serif;
  font-weight: 500;
  font-size: 0.62em;
  color: var(--muted);
  margin-inline-start: 6px;
  letter-spacing: 0.03em;
  vertical-align: middle;
  direction: ltr;
  unicode-bidi: isolate;
}
/* =========================================================
   Store Button (header)
   ========================================================= */
.store-btn {
  margin-inline-start: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  background: var(--bg);
  color: var(--fg);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 5px 5px 10px var(--sh-dark), -5px -5px 10px var(--sh-light);
  transition: transform var(--tr), box-shadow var(--tr), color var(--tr);
  flex-shrink: 0;
  position: relative;
}
/* شارة نقطة صغيرة للإشارة إلى "جديد" */
.store-btn::after {
  content: '';
  position: absolute;
  top: 6px;
  inset-inline-end: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2a2a2a;
  box-shadow: 0 0 0 2px var(--bg);
}
.store-btn-logo {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}
.store-btn:hover {
  transform: translateY(-1px);
  box-shadow: 7px 7px 14px var(--sh-dark-strong), -7px -7px 14px var(--sh-light-strong);
}
.store-btn:active {
  transform: translateY(0.5px);
  box-shadow: inset 3px 3px 6px var(--sh-dark), inset -3px -3px 6px var(--sh-light);
}
.store-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px #2a2a2a;
}

/* portfolio-btn يحتاج margin-inline-start: 0 بعد إضافة store-btn قبله */
.store-btn + .portfolio-btn {
  margin-inline-start: 8px;
}

/* =========================================================
   Store Card (index)
   ========================================================= */
.store-section {
  margin-top: 28px;
}
.store-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 22px;
  border-radius: var(--r-container);
  background: var(--bg);
  transition: transform var(--tr), box-shadow var(--tr);
}
.store-card:hover {
  transform: translateY(-2px);
  box-shadow: 12px 12px 20px var(--sh-dark-strong), -12px -12px 20px var(--sh-light-strong);
}

.store-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.store-logo-well {
  width: 56px;
  height: 56px;
  border-radius: var(--r-base);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--bg);
  overflow: hidden;
}
.store-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
}
.store-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}

.store-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--fg);
  margin: 0;
  line-height: 1.3;
}
.store-tagline {
  font-size: 14px;
  font-weight: 600;
  color: #2a2a2a;
  margin: 0;
  line-height: 1.5;
}
.store-desc {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.7;
  font-weight: 500;
}

.btn-store {
  height: 48px;
  padding: 0 20px;
  background: #2a2a2a;
  color: #E0E5EC;
  border-radius: var(--r-base);
  font-weight: 700;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 5px 5px 12px rgba(42,42,42,0.3), -5px -5px 10px rgba(255,255,255,0.6);
  transition: transform var(--tr), box-shadow var(--tr), background var(--tr);
  align-self: flex-start;
}
.btn-store:hover {
  transform: translateY(-1px);
  background: #1a1a1a;
  box-shadow: 7px 7px 16px rgba(42,42,42,0.4), -7px -7px 12px rgba(255,255,255,0.7);
}
.btn-store:active {
  transform: translateY(0.5px);
  box-shadow: inset 3px 3px 6px rgba(0,0,0,0.35), inset -3px -3px 6px rgba(255,255,255,0.15);
}
.btn-store:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px #2a2a2a;
}

/* Mobile adjustments */
@media (max-width: 520px) {
  .store-btn {
    width: auto;
    padding: 0 3px;
    font-size: 12px;
    gap: 3px;
  }
  .store-btn-text {
    display: inline;
  }
  .store-btn-logo {
    width: 16px;
    height: 16px;
  }
  /* النقطة الصغيرة أعلى الزر حتى لا تتقاطع مع النص */
  .store-btn::after {
    top: 3px;
    inset-inline-end: 3px;
    width: 5px;
    height: 5px;
  }
  .store-btn + .portfolio-btn { margin-inline-start: 8px; }
  .store-card { padding: 20px 18px; }
  .store-name { font-size: 16px; }
  .store-tagline { font-size: 13px; }
  .btn-store { align-self: stretch; width: 100%; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .store-btn, .store-card, .btn-store { transition: none; }
}

/* =========================================================
   Store: social actions (WhatsApp + Facebook)
   ========================================================= */
.store-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.btn-store-fb {
  height: 48px;
  padding: 0 20px;
  background: var(--bg);
  color: #1877F2; /* لون فيسبوك */
  border-radius: var(--r-base);
  font-weight: 700;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 5px 5px 10px var(--sh-dark), -5px -5px 10px var(--sh-light);
  transition: transform var(--tr), box-shadow var(--tr);
  text-decoration: none;
}
.btn-store-fb:hover {
  transform: translateY(-1px);
  box-shadow: 7px 7px 14px var(--sh-dark-strong), -7px -7px 14px var(--sh-light-strong);
}
.btn-store-fb:active {
  transform: translateY(0.5px);
  box-shadow: inset 3px 3px 6px var(--sh-dark), inset -3px -3px 6px var(--sh-light);
}
@media (max-width: 520px) {
  .store-actions { flex-direction: column; }
  .store-actions .btn-store, .store-actions .btn-store-fb { width: 100%; }
}

/* =========================================================
   Teacher card: share button
   ========================================================= */
.btn-share {
  height: 40px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  box-shadow: 3px 3px 6px var(--sh-dark), -3px -3px 6px var(--sh-light);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg);
  border: none;
  border-radius: var(--r-inner);
  cursor: pointer;
  transition: transform var(--tr), color var(--tr);
}
.btn-share:hover { color: var(--accent); transform: translateY(-1px); }
.btn-share:active { transform: translateY(0.5px); box-shadow: inset 3px 3px 6px var(--sh-dark), inset -3px -3px 6px var(--sh-light); }

/* تعديل actions-row2 ليصطفوا جنب بعض */
.actions-row2 {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

/* =========================================================
   Store Modal (Navbar)
   ========================================================= */
.store-modal-header {
  text-align: center;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.store-modal-logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: contain;
  box-shadow: 5px 5px 10px var(--sh-dark), -5px -5px 10px var(--sh-light);
  background: var(--bg);
  padding: 8px;
}
.store-modal-header h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 0;
  color: var(--fg);
}
.store-modal-header .muted {
  margin: 0;
}
.store-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.store-modal-actions .btn {
  width: 100%;
  height: 52px;
  font-size: 15px;
}
