@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&display=swap');

:root {
  --primary: #0d9488;
  --primary-dark: #0f766e;
  --accent: #f59e0b;
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --success: #10b981;
  --danger: #ef4444;
  --shadow: 0 1px 3px rgba(0,0,0,.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.1);
}

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

html {
  font-family: 'Tajawal', sans-serif;
}

html[dir="rtl"] {
  direction: rtl;
}

html[dir="ltr"] {
  direction: ltr;
  font-family: 'Tajawal', 'Segoe UI', sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

#main {
  flex: 1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
}

/* الشريط العلوي */
.top-bar {
  background: var(--primary);
  color: white;
  padding: 0.5rem 0;
  font-size: 0.9rem;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-bar-text {
  opacity: 0.95;
}

.lang-switcher--top {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.25rem 0.35rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
}

.lang-switcher--top .lang-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.lang-switcher--top .lang-link:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.lang-switcher--top .lang-link.active {
  color: var(--primary-dark);
  background: white;
  font-weight: 600;
}

.lang-switcher--top .lang-link.active:hover {
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary-dark);
}

.lang-switcher--top .lang-sep {
  color: rgba(255, 255, 255, 0.4);
  font-weight: 300;
  margin: 0 0.1rem;
}

.lang-switcher--top .lang-link-img {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.35rem;
  line-height: 0;
}

.lang-switcher--top .lang-flag {
  display: block;
  width: 24px;
  height: 16px;
  object-fit: contain;
  object-position: center;
  vertical-align: middle;
}

.top-bar-links a {
  color: white;
  text-decoration: none;
  margin-right: 1rem;
  opacity: 0.9;
}

.top-bar-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Header */
.header {
  background: var(--card);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  gap: 1.5rem;
}

/* شريط البحث — يظهر للمستفيدين فقط، تصميم أنيق */
.header-search-form {
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 420px;
  min-width: 0;
  gap: 0;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.06) 0%, rgba(13, 148, 136, 0.02) 100%);
  border: 1px solid rgba(13, 148, 136, 0.2);
  border-radius: 999px;
  padding: 0.35rem 0.35rem 0.35rem 1rem;
  box-shadow: 0 2px 12px rgba(13, 148, 136, 0.08);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.header-search-form:focus-within {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(13, 148, 136, 0.15);
}
.header-search-icon {
  font-size: 1.1rem;
  opacity: 0.7;
  margin-left: 0.25rem;
  flex-shrink: 0;
}
.header-search-input {
  flex: 1;
  padding: 0.55rem 0.75rem;
  border: none;
  background: transparent;
  border-radius: 0;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  min-width: 0;
}
.header-search-input::placeholder {
  color: var(--text-muted);
}
.header-search-input:focus {
  outline: none;
}
.header-search-btn {
  padding: 0.5rem 1.1rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: inherit;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.3);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.header-search-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.35);
}
.header-search-btn:active {
  transform: translateY(0);
}

@media (max-width: 900px) {
  .header-search-form {
    order: 3;
    width: 100%;
    max-width: none;
    margin-top: 0.75rem;
    padding: 0.4rem 0.4rem 0.4rem 1rem;
  }
  .header-inner {
    flex-wrap: wrap;
  }
}

/* الجوال: إخفاء شريط البحث من الهيدر — البحث متوفر عبر رابط "بحث عن خدمة" في القائمة */
@media (max-width: 768px) {
  .header-search-form {
    display: none !important;
  }
}

/* رابط "بحث عن خدمة" يظهر في القائمة على الجوال فقط */
.nav-link--search-mobile {
  display: none;
}
@media (max-width: 768px) {
  .nav-link--search-mobile {
    display: block;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.12) 0%, rgba(13, 148, 136, 0.06) 100%);
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    text-align: center;
  }
  .nav-link--search-mobile:hover {
    background: rgba(13, 148, 136, 0.18);
    color: var(--primary);
  }
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  font-size: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(13, 148, 136, 0.12);
  color: var(--primary);
  border-radius: 12px;
  flex-shrink: 0;
  border: 2px solid rgba(13, 148, 136, 0.25);
}

.logo-img {
  max-height: 56px;
  width: auto;
  display: block;
}

.logo-text {
  font-size: 1.4rem;
  font-weight: 800;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  flex: 1;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-main .nav-link {
  padding: 0.5rem 0.85rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.2s;
}

.nav-main .nav-link:hover {
  background: var(--bg);
  color: var(--primary);
}

.nav-link-with-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  background: #e53935;
  border-radius: 10px;
  line-height: 1;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-inline-start: 1rem;
  padding-inline-start: 1rem;
  border-inline-start: 1px solid var(--border);
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.9rem;
}

.lang-switcher .lang-link {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
}

.lang-switcher .lang-link:hover {
  color: var(--primary);
}

.lang-switcher .lang-link.active {
  color: var(--primary);
  font-weight: 600;
}

.lang-switcher .lang-sep {
  color: var(--border);
  user-select: none;
}

.nav-user {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* زر القائمة للموبايل */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.nav-toggle:hover {
  background: var(--bg);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-overlay {
  display: none;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-user-mobile {
  display: none;
}

.nav a, .btn {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
  border: none;
  font-family: inherit;
  font-size: 1rem;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-block {
  display: block;
  width: 100%;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.btn-sm {
  padding: 0.35rem 0.6rem;
  font-size: 0.9rem;
  margin-left: 0.25rem;
}

/* Hero */
.hero {
  text-align: center;
  padding: 3rem 1rem;
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  color: white;
  border-radius: 0 0 2rem 2rem;
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.hero p {
  opacity: .9;
  margin-bottom: 1.5rem;
}

/* Cards */
.card {
  background: var(--card);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.providers-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 1rem;
}

.providers-empty {
  color: var(--text-muted);
  padding: 1.5rem;
  text-align: center;
  background: var(--bg);
  border-radius: 8px;
  border: 1px dashed var(--border);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.card-grid .card {
  margin-bottom: 0;
}

/* Forms */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 500;
}
.form-hint {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.9em;
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13,148,136,.2);
}

.form-group-checkbox .checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 0;
}

.form-group-checkbox input[type="checkbox"] {
  width: auto;
  min-width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary);
}

.form-group-checkbox .checkbox-text {
  font-weight: 500;
  font-size: 1rem;
}

/* Pages */
.page {
  padding: 2rem 0;
  min-height: 60vh;
}

.page-title {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

/* ========== الصفحة الرئيسية - تحسينات UX/UI ========== */
.header-cta { font-weight: 600; white-space: nowrap; }
.header-cta--book { min-width: 110px; text-align: center; }

.home-hero {
  position: relative;
  color: #fff;
  padding: 2.75rem 1.25rem 3.25rem;
  text-align: center;
  overflow: hidden;
}
/* خلفية الهيرو تُعيّن من index.php بالمسار الصحيح؛ احتياطي إن لم تُمرر */
.home-hero:not([style*="background-image"]) {
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 45%, #115e59 100%);
}
.home-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 100%, rgba(255,255,255,0.12), transparent 55%);
  pointer-events: none;
}
.home-hero-pattern {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20m40 20V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.home-hero-inner { position: relative; z-index: 1; max-width: 52rem; margin: 0 auto; }
.home-hero-title {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 0.6rem;
  line-height: 1.35;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}
.home-hero-desc {
  margin: 0 0 1.5rem;
  opacity: 0.95;
  font-size: 1.05rem;
  line-height: 1.5;
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}
.home-hero .home-search-heading--hero {
  margin-top: 0.5rem;
  margin-bottom: 1.25rem;
}
.home-hero .home-search-section-title--hero {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  margin: 0 0 0.35rem;
}
.home-hero .home-search-section-desc--hero {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
  margin: 0;
}
.home-hero .home-hero-search {
  margin-top: 0;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}
.home-hero .home-search-extra {
  margin-top: 1rem;
}
/* أزرار «موقعي» و«مسح الموقع» داخل البطاقة البيضاء — ألوان واضحة */
.home-hero-search .home-search-extra .home-hero-btn-outline,
.home-hero-search .home-search-extra .btn-outline {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
}
.home-hero-search .home-search-extra .home-hero-btn-outline:hover,
.home-hero-search .home-search-extra .btn-outline:hover {
  background: rgba(13, 148, 136, 0.1);
  border-color: var(--primary-dark, #0f766e);
  color: var(--primary-dark, #0f766e);
}
.home-hero-search-label {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--text);
}
.home-search-section {
  padding: 3rem 1.25rem 3.5rem;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(13,148,136,0.03) 50%, var(--bg) 100%);
  position: relative;
}
.home-search-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(90%, 420px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  opacity: 0.8;
}
.home-search-heading {
  text-align: center;
  margin-bottom: 2rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}
.home-search-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--primary);
  background: rgba(13,148,136,0.1);
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 0.85rem;
  text-transform: uppercase;
}
.home-search-section-title {
  font-size: 1.85rem;
  font-weight: 800;
  text-align: center;
  margin: 0 0 0.5rem;
  color: var(--text);
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.home-search-section-desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}
.home-search-section .home-hero-search {
  width: 100%;
  max-width: none;
  margin: 0;
}
.home-hero-search {
  background: var(--card);
  border-radius: 24px;
  padding: 2.25rem 2.5rem 2.5rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
  border: 1px solid var(--border);
  width: 100%;
  margin: 0;
  box-sizing: border-box;
}
.home-search-form { text-align: right; }
.home-search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  align-items: flex-end;
}
.home-search-field {
  flex: 1;
  min-width: 180px;
}
.home-search-field label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.55rem;
}
.home-search-label-icon {
  font-size: 1.05rem;
  opacity: 0.9;
}
.home-search-select-wrap {
  position: relative;
}
.home-search-field select,
.home-search-select {
  width: 100%;
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 1.05rem;
  background: var(--surface, #fff);
  color: var(--text);
  transition: border-color 0.2s, background-color 0.2s;
  min-height: 52px;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 1rem center;
  padding-left: 2.75rem;
}
.home-search-field select:hover:not(:disabled),
.home-search-select:hover:not(:disabled) {
  border-color: rgba(13,148,136,0.4);
  background-color: rgba(13,148,136,0.02);
}
.home-search-field select:focus,
.home-search-select:focus {
  outline: none;
  border-color: var(--primary);
}
.home-search-field select:focus-visible,
.home-search-select:focus-visible {
  box-shadow: 0 0 0 3px rgba(13,148,136,0.15);
}
.home-search-field select:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  background-color: var(--bg, #f8fafc);
}
.home-search-field select option,
.home-search-select option {
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
}
.home-search-field select option[value=""],
.home-search-select option[value=""] {
  color: var(--text-muted, #64748b);
}
[dir="rtl"] .home-search-field select,
[dir="rtl"] .home-search-select {
  background-position: right 1rem center;
  padding-left: 1.15rem;
  padding-right: 2.75rem;
}
.home-search-submit { flex-shrink: 0; }
.home-search-btn {
  padding: 1rem 2.25rem;
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: 14px;
  min-height: 52px;
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.home-search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13,148,136,0.35);
}
.home-search-extra { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.home-search-hint { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

.home-trust {
  background: linear-gradient(180deg, rgba(13,148,136,0.04) 0%, var(--bg) 50%);
  padding: 2.5rem 1.25rem;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.home-trust .container {
  max-width: 56rem;
  margin: 0 auto;
}
.home-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 0 auto;
}
.home-trust-card {
  background: var(--card);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--border);
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}
.home-trust-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(13,148,136,0.12);
  border-color: rgba(13,148,136,0.2);
}
.home-trust-icon-wrap {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(13,148,136,0.12) 0%, rgba(13,148,136,0.06) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.home-trust-icon {
  width: 2.75rem;
  height: 2.75rem;
  object-fit: contain;
  display: block;
}
.home-trust-value {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.home-trust-label {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
  margin: 0;
  letter-spacing: 0.01em;
}

.home-how { padding: 1.5rem 1rem; }
.home-how--hero { padding: 1.15rem 0 1.35rem; }
.home-how--hero .home-how-title { color: rgba(255,255,255,0.95); }
.home-how-title {
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  margin: 0 0 1rem;
  color: var(--text);
}
.home-steps--timeline {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  max-width: 600px;
  margin: 0 auto;
}
.home-steps--timeline .home-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  min-width: 0;
  padding: 0.85rem 0.6rem;
  background: var(--card);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  position: relative;
}
.home-how--hero .home-steps--timeline .home-step {
  border-color: rgba(255,255,255,0.25);
  box-shadow: 0 2px 16px rgba(0,0,0,0.12);
}
.home-step-dot {
  width: 24px;
  height: 24px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 0.35rem;
}
.home-steps--timeline .home-step-icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.25rem;
}
.home-step-text { min-width: 0; }
.home-steps--timeline .home-step h3 {
  font-size: 0.95rem;
  margin: 0 0 0.2rem;
  color: var(--text);
  font-weight: 700;
}
.home-steps--timeline .home-step p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.35;
}
.home-step-connector {
  width: 24px;
  flex-shrink: 0;
  align-self: center;
  height: 2px;
  background: linear-gradient(90deg, var(--border), var(--primary));
  opacity: 0.6;
}
@media (max-width: 600px) {
  .home-steps--timeline {
    flex-direction: column;
    max-width: 260px;
    margin-left: auto;
    margin-right: auto;
    gap: 0;
  }
  .home-step-connector {
    width: 2px;
    height: 10px;
    background: linear-gradient(180deg, var(--border), var(--primary));
  }
  .home-steps--timeline .home-step { flex: none; padding: 0.6rem 0.5rem; }
  .home-steps--timeline .home-step-dot { width: 20px; height: 20px; font-size: 0.65rem; margin-bottom: 0.25rem; }
  .home-steps--timeline .home-step-icon { font-size: 1.2rem; margin-bottom: 0.15rem; }
  .home-steps--timeline .home-step h3 { font-size: 0.8rem; }
  .home-steps--timeline .home-step p { font-size: 0.7rem; }
}

.home-services-inline {
  padding: 0 0 1.5rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.home-services-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 0.4rem;
  color: var(--text);
}
.home-services-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
}
.home-services-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-start;
  direction: rtl;
}
.home-service-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: var(--card);
  border-radius: 14px;
  border: 2px solid var(--border);
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.25s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.home-service-chip:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  background: rgba(13,148,136,0.06);
  box-shadow: 0 4px 14px rgba(13,148,136,0.15);
}
.home-service-chip.active {
  background: linear-gradient(135deg, var(--primary) 0%, #0e8e83 100%);
  border-color: var(--primary);
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(13,148,136,0.35);
}
.home-service-chip.active:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(13,148,136,0.4);
}
.home-service-chip-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  line-height: 1;
}
.home-service-chip-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  object-position: center;
}
.home-service-chip-name {
  line-height: 1.3;
}
.home-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.85rem;
  max-width: 720px;
  margin: 0 auto;
}
.home-service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 0.5rem;
  background: var(--card);
  border-radius: 12px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s, background 0.2s;
}
.home-service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13,148,136,0.12);
  border-color: var(--primary);
  background: rgba(13,148,136,0.03);
}
.home-service-icon-wrap {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(13,148,136,0.08);
  flex-shrink: 0;
}
.home-service-icon {
  font-size: 1.35rem;
  line-height: 1;
  display: block;
}
.home-service-icon--img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.home-service-name {
  font-weight: 600;
  font-size: 0.875rem;
  text-align: center;
  line-height: 1.3;
  color: var(--text);
}

.home-reviews {
  padding: 2.5rem 1rem;
  background: linear-gradient(180deg, transparent 0%, rgba(13,148,136,0.03) 100%);
}
.home-reviews .container { max-width: 1100px; margin: 0 auto; }
.home-section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 1.5rem;
  text-align: center;
  letter-spacing: -0.02em;
}
.home-reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}
.home-review-card {
  position: relative;
  background:
    radial-gradient(circle at top left, rgba(13,148,136,0.11), transparent 55%),
    var(--card);
  border-radius: 18px;
  padding: 1.4rem 1.5rem 1.55rem;
  border: 1px solid rgba(148,163,184,0.35);
  box-shadow: 0 10px 30px rgba(15,23,42,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.home-review-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(15,23,42,0.14);
  border-color: rgba(13,148,136,0.55);
}
.home-review-header {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}
.home-review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: radial-gradient(circle at 10% 0, rgba(255,255,255,0.4), transparent 55%),
              linear-gradient(135deg, var(--primary) 0%, #0e8e83 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(13,148,136,0.40);
  flex-shrink: 0;
}
.home-review-avatar span {
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
}
.home-review-header-main {
  flex: 1;
  min-width: 0;
}
.home-review-names {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
}
.home-review-author {
  color: var(--text);
  font-weight: 700;
}
.home-review-sep {
  color: var(--text-muted);
  font-weight: 400;
}
.home-review-provider {
  color: var(--text-muted);
}
.home-review-stars-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.2rem;
  font-size: 0.85rem;
}
.home-review-stars {
  color: #f59e0b;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
}
.home-review-rating-number {
  color: var(--text-muted);
  font-weight: 500;
}
.home-review-quote {
  margin-inline-start: auto;
  font-size: 2.3rem;
  line-height: 1;
  color: rgba(148,163,184,0.45);
}
.home-review-text {
  font-size: 0.98rem;
  color: var(--text);
  margin: 0.2rem 0 0;
  line-height: 1.7;
}

.home-app {
  padding: 2.5rem 1rem;
  background: linear-gradient(135deg, rgba(13,148,136,0.08) 0%, rgba(15,118,110,0.05) 100%);
  text-align: center;
}
.home-app-desc { margin: 0 0 0.5rem; color: var(--text-muted); }
.home-app-count { margin: 0 0 1rem; font-size: 1rem; color: var(--text); }
.home-app-count strong { color: var(--primary); }
.home-app-btn { padding: 0.75rem 2rem; font-weight: 700; font-size: 1.05rem; }
.home-app-soon { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

.home-faq { padding: 2rem 1rem; }
.home-faq-list { max-width: 500px; margin: 0 auto; }
.home-faq-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--card);
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-bottom: 0.5rem;
  text-decoration: none;
  color: var(--text);
  transition: background 0.2s;
}
.home-faq-item:hover { background: rgba(13,148,136,0.06); }
.home-faq-arrow { color: var(--primary); font-weight: 700; }

.home-mobile-cta {
  display: none;
  position: fixed;
  bottom: max(1rem, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  z-index: 999;
  padding: 0.9rem 2rem;
  background: linear-gradient(135deg, var(--primary) 0%, #0e8e83 100%);
  color: #fff !important;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(13,148,136,0.4);
  transition: transform 0.3s, opacity 0.3s;
  opacity: 0;
}
.home-mobile-cta.visible {
  display: block;
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
@media (min-width: 769px) {
  .home-mobile-cta { display: none !important; }
}
@media (max-width: 768px) {
  .home-hero { padding: 1.75rem 1rem 3rem; }
  .home-hero-title { font-size: 1.5rem; }
  .home-hero-desc { font-size: 0.95rem; }
  .home-hero .home-search-heading--hero { margin-bottom: 1rem; }
  .home-hero .home-search-section-title--hero { font-size: 1.2rem; }
  .home-search-section { padding: 2.25rem 1rem 2.5rem; }
  .home-search-heading { margin-bottom: 1.5rem; }
  .home-search-section-title { font-size: 1.5rem; }
  .home-search-section-desc { font-size: 0.95rem; }
  .home-hero-search { padding: 1.75rem 1.25rem; border-radius: 20px; }
  .home-search-field select { min-height: 48px; padding: 0.9rem 1rem; }
  .home-search-btn { min-height: 48px; }
  .home-search-row { flex-direction: column; }
  .home-search-field { min-width: 100%; }
  .home-search-submit { width: 100%; }
  .home-search-btn { width: 100%; padding: 0.75rem; min-height: 48px; }
  .home-how--hero { padding: 0.6rem 0 0.9rem; }
  .home-how--hero .home-how-title { font-size: 0.9rem; margin: 0 0 0.65rem; font-weight: 600; }
  .home-trust { padding: 1.25rem 0.75rem; }
  .home-trust-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    max-width: 100%;
    margin: 0 auto;
  }
  .home-trust-card {
    padding: 0.65rem 0.4rem;
    border-radius: 12px;
    gap: 0.35rem;
    box-shadow: 0 1px 8px rgba(0,0,0,0.04);
  }
  .home-trust-card:hover { transform: none; box-shadow: 0 2px 12px rgba(13,148,136,0.1); }
  .home-trust-icon-wrap {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 10px;
  }
  .home-trust-icon { width: 1.25rem; height: 1.25rem; }
  .home-trust-value { font-size: 1.05rem; font-weight: 700; }
  .home-trust-label { font-size: 0.7rem; line-height: 1.25; text-align: center; }
  .home-services-inline {
    padding: 0 0 1.25rem;
    margin-bottom: 0.75rem;
  }
  .home-services-title { font-size: 1.05rem; margin-bottom: 0.35rem; }
  .home-services-desc { font-size: 0.8rem; margin-bottom: 0.75rem; }
  .home-services-chips {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    direction: rtl;
  }
  .home-service-chip {
    padding: 0.6rem 0.5rem;
    font-size: 0.85rem;
    min-height: 44px;
    box-shadow: none;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
    justify-content: center;
  }
  .home-service-chip:hover,
  .home-service-chip.active,
  .home-service-chip.active:hover {
    box-shadow: none;
  }
  .home-service-chip-icon { font-size: 1.1rem; flex-shrink: 0; }
  .home-service-chip-img { width: 20px; height: 20px; }
  .home-service-chip-name { text-align: center; }
  .home-services-grid { grid-template-columns: repeat(2, 1fr); gap: 0.65rem; max-width: 100%; }
  .home-service-card {
    box-shadow: none;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  }
  .home-service-card:hover {
    box-shadow: none;
  }
  .home-service-icon-wrap { width: 36px; height: 36px; }
  .home-service-icon { font-size: 1.2rem; }
  .home-service-name { font-size: 0.8rem; }
  .home-mobile-cta { min-height: 48px; padding: 1rem 2rem; bottom: max(1.25rem, env(safe-area-inset-bottom)); }
  .header-cta { padding: 0.5rem 0.75rem; font-size: 0.9rem; }
  .index-provider-link { padding: 0.65rem 1.1rem; font-size: 0.9rem; min-height: 44px; }
}

/* الصفحة الرئيسية - index.php (legacy + search card) */
.index-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #0e8e83 100%);
  color: white;
  padding: 2.5rem 1rem;
  text-align: center;
}

.index-hero-title {
  font-size: 1.85rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
}

.index-hero-desc {
  margin: 0;
  opacity: 0.95;
  font-size: 1.05rem;
}

.index-page {
  padding: 0 0 3.5rem;
  margin-top: -0.5rem;
}

.index-clear-location-wrap { margin: 0 0 1rem; }

.index-search-card {
  background: var(--card);
  border-radius: 20px;
  padding: 2rem 1.75rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  border: 1px solid var(--border);
}

.index-search-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: var(--text);
}

/* نموذج البحث في الرئيسية — سطح المكتب */
.index-search-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-end;
}

.index-search-filters .form-group {
  margin: 0;
  min-width: 160px;
}

.index-search-filters .btn,
.index-search-filters a.btn {
  flex-shrink: 0;
}

.index-providers-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1.25rem;
  padding: 0;
}

.index-providers-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.index-providers-icon {
  font-size: 1.5rem;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(13,148,136,0.12) 0%, rgba(13,148,136,0.06) 100%);
  border-radius: 12px;
  color: var(--primary);
}

.index-providers-distance-hint {
  font-size: 0.85rem;
  color: var(--text-secondary, #666);
  font-weight: normal;
  margin-right: 0.5rem;
}

.index-search-card .providers-section-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
}

.index-sort-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.index-sort-label {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.index-sort-chip {
  display: inline-flex;
  padding: 0.45rem 0.85rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: all 0.2s;
}

.index-sort-chip:hover {
  background: rgba(13, 148, 136, 0.08);
  border-color: var(--primary);
  color: var(--primary);
}

.index-sort-chip.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.index-request-nearest-wrap {
  margin-top: 0.75rem;
}
.index-request-nearest {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.index-providers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.35rem;
}

.index-providers-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.index-providers-pagination-info {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.index-providers-pagination-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}
.index-providers-pagination-links .btn { min-width: 2.25rem; }

.index-provider-card {
  display: flex;
  gap: 1.25rem;
  padding: 1.4rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.index-provider-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(13, 148, 136, 0.12);
  border-color: rgba(13, 148, 136, 0.3);
}

.index-provider-avatar-wrap,
.index-provider-avatar-fallback-wrap {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  padding: 3px;
  box-sizing: border-box;
  background: linear-gradient(145deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.18) 100%);
  border-radius: 18px;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.5),
              0 6px 18px rgba(0,0,0,0.16),
              inset 0 1px 0 rgba(255,255,255,0.25);
}

.index-provider-avatar-wrap .provider-avatar {
  width: 100%;
  height: 100%;
  border-radius: 16px;
}

.index-provider-avatar-fallback-wrap .index-provider-avatar-fallback {
  width: 100%;
  height: 100%;
  border-radius: 16px;
}

.index-provider-avatar-fallback {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: linear-gradient(145deg, var(--primary) 0%, #0e8e83 50%, var(--primary-dark) 100%);
  color: #fff;
  font-size: 2.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 3px solid rgba(255,255,255,0.7);
  box-shadow: 0 4px 18px rgba(0,0,0,0.18);
}

.index-provider-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.index-provider-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.4rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem 0.35rem;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  line-height: 1.3;
}

.index-provider-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  background: rgba(13, 148, 136, 0.15);
  color: var(--primary);
  border-radius: 6px;
}

.index-provider-rating {
  font-size: 0.9rem;
  color: var(--accent);
  margin: 0 0 0.25rem;
}

.index-provider-rating span {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.index-provider-location {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 0.25rem;
}

.index-provider-orders { font-size: 0.85rem; color: var(--text-muted); margin: 0.25rem 0; }
.index-provider-eta {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--success);
  background: rgba(16,185,129,0.12);
  padding: 0.2rem 0.5rem;
  border-radius: 8px;
  margin: 0.25rem 0;
}
.index-provider-distance {
  font-size: 0.85rem;
  color: var(--primary);
  margin: 0 0 0.25rem;
  font-weight: 600;
}

.index-provider-specialty {
  font-size: 0.9rem;
  color: var(--text);
  margin: 0 0 0.35rem;
}

.index-provider-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 0.5rem;
}

.index-provider-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff !important;
  background: linear-gradient(135deg, var(--primary) 0%, #0e8e83 100%);
  padding: 0.6rem 1.25rem;
  border-radius: 12px;
  margin-top: auto;
  align-self: center;
  box-shadow: 0 2px 10px rgba(13, 148, 136, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.index-provider-card:hover .index-provider-link {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.4);
}

/* ——— بطاقة الفني (قرم) ——— */
.tc-grid {
  --tc-primary: #1a3c5e;
  --tc-accent: #0d9387;
  --tc-accent-light: rgba(13, 147, 135, 0.18);
  --tc-bg: #f7f8fa;
  --tc-border: #e5e7eb;
  font-family: 'Tajawal', sans-serif;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 992px) {
  .tc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
  .tc-grid { grid-template-columns: 1fr; }
}

.index-provider-card.tc-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  gap: 0;
  background: #fff;
  border: 1px solid var(--tc-border);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s ease;
  overflow: hidden;
}
.index-provider-card.tc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(26, 60, 94, 0.15);
  border-color: rgba(26, 60, 94, 0.2);
}

.tc-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1rem 0;
}
.tc-avatar-wrap {
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2.5px solid #0d9387;
  overflow: hidden;
  background: var(--tc-accent-light);
}
.tc-avatar,
.tc-avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  object-fit: cover;
}
.tc-avatar-fallback {
  background: linear-gradient(145deg, var(--tc-primary) 0%, #2d5a87 100%);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  font-family: 'Tajawal', sans-serif;
}
.tc-head-text {
  flex: 1;
  min-width: 0;
}
.tc-name {
  font-family: 'Tajawal', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--tc-primary);
}
.tc-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}
.tc-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.tc-status--available {
  background: #d1fae5;
  color: #065f46;
}
.tc-status--available::before {
  background: #059669;
}
.tc-status--busy {
  background: #fee2e2;
  color: #991b1b;
}
.tc-status--busy::before {
  background: #dc2626;
}

.tc-body {
  padding: 0.75rem 1rem;
}
.tc-rating,
.tc-new-badge,
.tc-meta,
.tc-skills {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
}
.tc-rating:last-child,
.tc-new-badge:last-child,
.tc-meta:last-child,
.tc-skills:last-child { margin-bottom: 0; }
.tc-rating {
  color: var(--tc-primary);
}
.tc-stars {
  color: var(--tc-accent);
  letter-spacing: 0.05em;
}
.tc-rating .tc-rating-count {
  color: #6b7280;
  font-weight: 500;
  margin-inline-start: 0.25rem;
}
.tc-new-badge {
  font-weight: 700;
  color: var(--tc-primary);
}
.tc-meta {
  color: #4b5563;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
}
.tc-meta-sep { color: #d1d5db; }
.tc-meta.tc-distance,
.tc-meta.tc-eta {
  font-size: 0.8125rem;
  margin-bottom: 0.35rem;
}
.tc-meta.tc-eta {
  font-weight: 600;
  color: var(--tc-primary);
}
.tc-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.tc-skill {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background: var(--tc-accent-light);
  color: #7c5a0a;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
}
.tc-skill-more {
  background: var(--tc-accent-light);
  color: #7c5a0a;
}

.tc-footer {
  display: flex;
  gap: 0.5rem;
  padding: 1rem;
  margin-top: auto;
  border-top: 1px solid var(--tc-border);
  background: var(--tc-bg);
}
.tc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1rem;
  font-family: 'Tajawal', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}
.tc-btn-primary {
  flex: 1;
  background: #0e8379;
  color: #fff;
  border: 2px solid #0e8379;
}
.tc-btn-primary:hover {
  background: #0c7269;
  color: #fff;
  border-color: #0c7269;
}
.tc-btn-outline {
  flex: 0 0 auto;
  min-width: 5rem;
  background: transparent;
  color: #0e8379;
  border: 2px solid #0e8379;
}
.tc-btn-outline:hover {
  background: rgba(14, 131, 121, 0.1);
  color: #0c7269;
  border-color: #0c7269;
}

@media (max-width: 768px) {
  .index-providers-grid.tc-grid {
    padding: 0 1rem 1.5rem;
    gap: 1.25rem;
  }
  .index-provider-card.tc-card .tc-header {
    padding: 1rem 1rem 0;
  }
  .index-provider-card.tc-card .tc-body {
    padding: 0.65rem 1rem 0.85rem;
  }
  .index-provider-card.tc-card .tc-footer {
    padding: 0.85rem 1rem;
  }
}
@media (max-width: 576px) {
  .index-providers-grid.tc-grid {
    padding: 0 0.875rem 1.25rem;
    gap: 1rem;
  }
  .index-provider-card.tc-card {
    padding: 0;
    align-items: stretch;
    text-align: inherit;
    border-radius: 14px;
  }
  .index-provider-card.tc-card .tc-header {
    padding: 0.875rem 0.875rem 0;
    gap: 0.65rem;
  }
  .index-provider-card.tc-card .tc-avatar-wrap {
    width: 48px;
    height: 48px;
    border-width: 2px;
  }
  .index-provider-card.tc-card .tc-name {
    font-size: 0.95rem;
  }
  .index-provider-card.tc-card .tc-status {
    font-size: 0.7rem;
    padding: 0.18rem 0.4rem;
  }
  .index-provider-card.tc-card .tc-body {
    padding: 0.6rem 0.875rem 0.75rem;
  }
  .index-provider-card.tc-card .tc-rating,
  .index-provider-card.tc-card .tc-new-badge,
  .index-provider-card.tc-card .tc-meta {
    font-size: 0.8125rem;
    margin-bottom: 0.4rem;
  }
  .index-provider-card.tc-card .tc-skills {
    gap: 0.3rem;
    margin-bottom: 0;
  }
  .index-provider-card.tc-card .tc-skill {
    font-size: 0.75rem;
    padding: 0.2rem 0.45rem;
  }
  .index-provider-card.tc-card .tc-footer {
    padding: 0.75rem 0.875rem;
    gap: 0.5rem;
    flex-wrap: nowrap;
  }
  .index-provider-card.tc-card .tc-btn {
    min-height: 44px;
    padding: 0.6rem 0.75rem;
    font-size: 0.875rem;
  }
  .index-provider-card.tc-card .tc-btn-outline {
    min-width: 4rem;
  }
}
@media (max-width: 480px) {
  .index-provider-card.tc-card {
    padding: 0;
    align-items: stretch;
    text-align: inherit;
  }
  .index-providers-grid.tc-grid {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-bottom: calc(4rem + env(safe-area-inset-bottom));
  }
}

/* حالة فارغة موحّدة — تطابق هوية التطبيق */
.empty-state {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: linear-gradient(135deg, rgba(13,148,136,0.06) 0%, rgba(13,148,136,0.02) 100%);
  border-radius: 20px;
  border: 2px dashed rgba(13,148,136,0.25);
}
.empty-state-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  background: linear-gradient(135deg, rgba(13,148,136,0.12) 0%, rgba(13,148,136,0.06) 100%);
  border-radius: 50%;
}
.empty-state-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.5rem;
}
.empty-state-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
  line-height: 1.6;
}
.empty-state-desc a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}
.empty-state-desc a:hover {
  text-decoration: underline;
}
.empty-state-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: 10px;
}

.index-providers-empty {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, rgba(13,148,136,0.03) 0%, var(--bg) 100%);
  border-radius: 16px;
  border: 2px dashed var(--border);
  color: var(--text-muted);
  font-size: 1rem;
}

/* صفحة بحث الخدمات */
.search-services-page {
  padding: 1.5rem 1rem 3rem;
}
.search-services-page .page-title {
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}
.search-services-form {
  margin-bottom: 1.5rem;
}
.search-services-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.search-services-input {
  flex: 1;
  min-width: 200px;
  padding: 0.65rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
}
.search-services-input:focus {
  outline: none;
  border-color: var(--primary);
}
.search-services-count {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.search-services-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.search-service-card {
  display: block;
  padding: 1rem 1.25rem;
  background: var(--card);
  border-radius: 12px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s;
}
.search-service-card:hover {
  box-shadow: var(--shadow-lg);
}
.search-service-main {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}
.search-service-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}
.search-service-avatar--icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 148, 136, 0.12);
  font-size: 1.5rem;
  border-radius: 12px;
}
.search-service-info {
  flex: 1;
  min-width: 0;
}
.search-service-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: var(--text);
}
.search-service-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 0.2rem;
}
.search-service-category-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  object-position: center;
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.25rem;
}
.search-service-provider {
  margin-right: 0.5rem;
}
.search-service-location {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 0.2rem;
}
.search-service-distance {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 600;
  margin: 0 0 0.2rem;
}
.search-service-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
  flex-shrink: 0;
}
.search-service-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
}
.search-services-empty {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: linear-gradient(135deg, rgba(13,148,136,0.05) 0%, var(--bg) 100%);
  border-radius: 12px;
  border: 2px dashed var(--border);
  color: var(--text-muted);
}
.search-services-empty a {
  color: var(--primary);
  font-weight: 600;
}

/* صفحة البحث — الجوال */
@media (max-width: 768px) {
  .search-services-page {
    padding: 1rem 0.75rem 2rem;
  }
  .search-services-page .page-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }
  .search-services-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  .search-services-row {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  .search-services-input {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    min-height: 48px;
    border-radius: 10px;
  }
  .search-services-row .btn {
    min-height: 48px;
    width: 100%;
    justify-content: center;
  }
  .search-services-count {
    margin-bottom: 1rem;
  }
  .search-services-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  .search-service-card {
    padding: 1rem;
  }
  .empty-state {
    padding: 2rem 1rem;
  }
  .empty-state-icon {
    width: 64px;
    height: 64px;
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .search-services-page .page-title {
    font-size: 1.1rem;
  }
}

/* ——— الجوال: الصفحة الرئيسية ——— */
@media (max-width: 768px) {
  .index-hero {
    padding: 1rem 0.75rem;
  }
  .index-hero-title {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
  }
  .index-hero-desc {
    font-size: 0.875rem;
    opacity: 0.95;
  }
  .index-page {
    margin-top: -1.5rem;
    padding-bottom: 2rem;
    padding-left: 0;
    padding-right: 0;
  }
  /* بطاقة البحث: أعلى الصفحة، عرض كامل، ثابتة أسفل الهيدر عند التمرير */
  .index-search-card {
    position: sticky;
    top: 3.5rem;
    z-index: 50;
    padding: 1.25rem 1rem;
    margin: 0 0 1.25rem;
    border-radius: 0;
    border-left: none;
    border-right: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    background: var(--card);
  }
  .index-search-title {
    font-size: 1.15rem;
    margin-bottom: 1rem;
    font-weight: 800;
  }
  .index-search-filters {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    margin-bottom: 0;
  }
  .index-search-filters .form-group {
    min-width: 100%;
    width: 100%;
  }
  .index-search-filters .form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
  }
  .index-search-filters .form-group select {
    padding: 0.8rem 1rem;
    font-size: 1rem;
    min-height: 48px;
    border-radius: 10px;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    padding-left: 1rem;
  }
  html[dir="ltr"] .index-search-filters .form-group select {
    background-position: left 1rem center;
    padding-left: 2.5rem;
    padding-right: 1rem;
  }
  .index-search-filters .btn,
  .index-search-filters a.btn {
    min-height: 48px;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    justify-content: center;
    border-radius: 10px;
  }
  .index-search-filters .btn-primary {
    order: 1;
  }
  .index-search-filters .btn-outline,
  .index-search-filters a.btn-outline {
    order: 2;
  }
  .index-search-filters #idx_district_wrap.form-group {
    min-width: 100%;
  }
  .index-page .categories-wrap {
    margin: 0 1rem 1.25rem;
    padding: 1rem;
    border-radius: 12px;
  }
  .index-providers-header {
    margin: 0 1rem 1rem;
    padding-top: 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .index-providers-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem 2rem;
    gap: 1rem;
  }
  .index-provider-card {
    border-radius: 14px;
  }
  .index-sort-bar {
    width: 100%;
  }
  .index-providers-empty,
  .index-page .empty-state {
    margin: 0 1rem 2rem;
  }
  .home-reviews-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .home-review-card {
    padding: 1.25rem;
  }
}

@media (max-width: 480px) {
  .index-hero {
    padding: 0.85rem 0.75rem;
  }
  .index-hero-title {
    font-size: 1.1rem;
  }
  .index-hero-desc {
    font-size: 0.8rem;
  }
  .index-page {
    margin-top: -1.25rem;
  }
  .index-search-card {
    padding: 1rem 0.75rem;
  }
  .index-search-title {
    font-size: 1.05rem;
  }
  .index-search-filters {
    gap: 0.75rem;
  }
  .index-search-filters .form-group select {
    min-height: 46px;
    padding: 0.7rem 1rem 0.7rem 2.5rem;
  }
  .index-search-filters .btn,
  .index-search-filters a.btn {
    min-height: 46px;
  }
  .index-page .categories-wrap {
    margin-left: 0.75rem;
    margin-right: 0.75rem;
  }
  .index-providers-header {
    margin-left: 0.75rem;
    margin-right: 0.75rem;
  }
  .index-providers-grid {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  .index-provider-card:not(.tc-card) {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.25rem;
  }
  .index-provider-info {
    align-self: stretch;
    width: 100%;
  }
  .index-provider-avatar-wrap:not(.tc-avatar-wrap) {
    width: 64px;
    height: 64px;
  }
  .index-provider-avatar-fallback:not(.tc-avatar-fallback) {
    width: 64px;
    height: 64px;
    font-size: 1.7rem;
  }
  .index-provider-link {
    width: 100%;
    padding: 0.7rem 1rem;
    min-height: 48px;
    font-size: 0.95rem;
  }
  .index-providers-grid {
    padding-bottom: calc(5rem + env(safe-area-inset-bottom));
  }
}

/* صفحة الخدمات - services.php */
.services-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #0e8e83 100%);
  color: white;
  padding: 2.5rem 0;
  text-align: center;
}

.services-hero-title {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
}

.services-hero-desc {
  margin: 0;
  opacity: 0.95;
  font-size: 1.05rem;
}

.services-page {
  padding: 2rem 0 3rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.service-category-card-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.service-category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--card);
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.25s, border-color 0.2s;
}

.service-category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(13, 148, 136, 0.15);
  border-color: rgba(13, 148, 136, 0.35);
}

.service-category-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  background: rgba(13, 148, 136, 0.1);
  border-radius: 16px;
  margin-bottom: 1rem;
}

.service-category-card:hover .service-category-icon {
  background: rgba(13, 148, 136, 0.18);
}

.service-category-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.5rem;
}

.service-category-count {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.service-category-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  transition: color 0.2s;
}

.service-category-card:hover .service-category-link {
  color: var(--primary-dark);
}

@media (max-width: 768px) {
  .services-hero {
    padding: 2rem 0;
  }
  .services-hero-title {
    font-size: 1.6rem;
  }
  .services-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
  }
  .service-category-card {
    padding: 1.5rem 1rem;
  }
  .service-category-icon {
    width: 56px;
    height: 56px;
    font-size: 1.9rem;
  }
}

@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* Category chips - نوع الخدمة */
.categories-wrap {
  background: var(--card);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}

.categories-wrap h4 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--text);
  font-weight: 700;
}

.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.category-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.category-chip:hover {
  background: rgba(14, 142, 131, 0.08);
  border-color: #0e8e83;
  color: #0e8e83;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(14, 142, 131, 0.15);
}

.category-chip.active {
  background: #0e8e83;
  color: white;
  border-color: #0e8e83;
  box-shadow: 0 2px 8px rgba(14, 142, 131, 0.25);
}

.category-chip .cat-icon {
  font-size: 1.1rem;
  line-height: 1;
}

@media (max-width: 600px) {
  .categories {
    gap: 0.4rem;
  }
  .category-chip {
    padding: 0.4rem 0.7rem;
    font-size: 0.85rem;
  }
}

/* Provider card - بطاقات الفنيين */
.provider-card {
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.25s, border-color 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
  border: 1px solid var(--border);
  overflow: hidden;
}

.provider-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(14, 142, 131, 0.12);
  border-color: rgba(14, 142, 131, 0.3);
}

.provider-card .provider-card-header {
  background: linear-gradient(135deg, var(--primary) 0%, #0e8e83 100%);
  color: white;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.provider-card .provider-card-header .name {
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0;
  color: white;
}

.provider-card .provider-card-body {
  padding: 1rem 1.25rem;
}

.provider-card .meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.provider-card .stars {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.provider-card .price {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.1rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.provider-card .provider-card-header .badge {
  background: rgba(255,255,255,0.3);
  color: white;
  border: 1px solid rgba(255,255,255,0.5);
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
  border-radius: 6px;
  background: var(--primary);
  color: white;
  font-weight: 500;
}

/* صفحة الفني - provider.php */
.provider-page {
  padding: 1.5rem 0 3rem;
}

.provider-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
  padding: 0.5rem 0;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s, color 0.2s;
}

.provider-back-link:hover {
  opacity: 0.9;
  color: var(--primary-dark);
}

.provider-profile {
  background: var(--card);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}

.provider-profile-header {
  background: linear-gradient(135deg, var(--primary) 0%, #0e8e83 100%);
  padding: 2rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* إطار الصورة الشخصية — مربع بزوايا دائرية وظل أنيق */
.provider-avatar-wrap,
.provider-avatar-fallback-wrap {
  flex-shrink: 0;
  width: 108px;
  height: 108px;
  padding: 4px;
  box-sizing: border-box;
  background: linear-gradient(145deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.15) 100%);
  border-radius: 20px;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.4),
              0 8px 24px rgba(0,0,0,0.2),
              inset 0 1px 0 rgba(255,255,255,0.3);
}

/* دائرة حالة التواجد — بجانب الاسم: أخضر (متواجد خلال 5 ساعات) / أحمر (غير متواجد) */
.provider-status-dot {
  display: inline-block;
  vertical-align: middle;
  border-radius: 50%;
  flex-shrink: 0;
}
.provider-status-dot--inline {
  width: 10px;
  height: 10px;
  margin-inline-start: 6px;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.provider-status-dot--name {
  width: 12px;
  height: 12px;
  margin-inline-start: 8px;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.provider-status-dot--online {
  background: #22c55e;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.35), 0 1px 3px rgba(0,0,0,0.2);
}
.provider-status-dot--offline {
  background: #ef4444;
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.35), 0 1px 3px rgba(0,0,0,0.2);
}

.provider-avatar {
  width: 96px;
  height: 96px;
  border-radius: 18px;
  background: rgba(255,255,255,0.25);
  color: white;
  font-size: 2.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 3px solid rgba(255,255,255,0.6);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15),
              inset 0 1px 0 rgba(255,255,255,0.2);
}

.provider-avatar-wrap .provider-avatar {
  width: 100%;
  height: 100%;
  border: none;
  box-shadow: none;
  padding: 0;
}

.provider-avatar--icon {
  font-size: 2.5rem;
  font-weight: 400;
}

.provider-avatar--img {
  padding: 0;
  overflow: hidden;
  background: transparent;
}
.provider-avatar--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.08);
}

.provider-profile-info {
  flex: 1;
}

.provider-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin: 0 0 0.5rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.provider-badge {
  position: static;
  background: rgba(255,255,255,0.3);
  color: white;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  border-radius: 6px;
  font-weight: 600;
}

.provider-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: rgba(255,255,255,0.95);
  font-size: 0.95rem;
}

.provider-rating {
  color: var(--accent);
}

.provider-meta-row small {
  opacity: 0.9;
}

.provider-location {
  opacity: 0.95;
}

.provider-store-map {
  color: rgba(255,255,255,0.95);
  text-decoration: none;
  font-weight: 500;
  opacity: 0.95;
}
.provider-store-map:hover {
  text-decoration: underline;
}

.provider-bio {
  padding: 1.5rem 1.5rem;
  border-top: 1px solid var(--border);
}

.provider-bio p {
  margin: 0;
  color: var(--text);
  line-height: 1.7;
  font-size: 1rem;
}

.provider-section-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
}

.provider-services-section {
  padding: 1.5rem 0;
}

.provider-services-section-header {
  margin-bottom: 1.5rem;
}

.provider-services-section-header .provider-section-title {
  margin: 0 0 0.35rem;
}

.provider-services-section-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

.provider-services-section .provider-section-title {
  margin-bottom: 1.25rem;
}

.provider-order-under-services {
  margin-top: 2rem;
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  background: rgba(13,148,136,0.04);
  border-radius: 12px;
}

.provider-order-under-services .provider-section-title {
  margin-bottom: 0.5rem;
}

.provider-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.provider-service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}

.provider-page .provider-service-card:hover {
  box-shadow: 0 6px 20px rgba(13,148,136,0.12);
  border-color: rgba(13,148,136,0.35);
  transform: translateY(-2px);
}

.provider-service-category {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--primary);
}
.provider-service-category-icon {
  font-size: 1rem;
  line-height: 1;
}
.provider-service-category-icon--img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  object-position: center;
  display: block;
  flex-shrink: 0;
}

.provider-service-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.5rem;
}

.provider-service-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
}

.provider-service-price span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.provider-service-order-count {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0.25rem 0 0;
}

.provider-service-card .provider-order-trigger {
  width: 100%;
  margin-top: 1rem;
  padding: 0.6rem 1rem;
}

.provider-service-login {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.provider-service-login a {
  color: var(--primary);
  font-weight: 500;
}

.provider-login-prompt {
  margin-top: 2rem;
  padding: 2rem 1.5rem;
  background: linear-gradient(135deg, rgba(13,148,136,0.08) 0%, rgba(14,142,131,0.03) 100%);
  border-radius: 14px;
  border: 2px dashed rgba(13,148,136,0.4);
  text-align: center;
}

.provider-login-prompt-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  opacity: 0.8;
}

.provider-login-prompt p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.provider-order-desc-card-icon {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}
.provider-order-desc-card {
  margin-top: 1.5rem;
  padding: 1.5rem 1.5rem;
  background: var(--bg);
  border-radius: 12px;
  border: 1px solid var(--border);
  text-align: center;
}

.provider-order-desc-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ——— صفحة الفني — متناسق مع هوية الموقع ——— */
.pv-wrap {
  --pv-primary: #0e8379;
  --pv-primary-dark: #0c7269;
  --pv-accent: #e8a020;
  --pv-accent-light: #fdf3e0;
  --pv-bg: #f7f8fa;
  --pv-border: #e5e7eb;
  font-family: 'Tajawal', sans-serif;
  background: var(--pv-bg);
  padding-bottom: 3rem;
}
.pv-wrap .container.pv-container { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }

.pv-hero {
  position: relative;
  background: linear-gradient(135deg, var(--pv-primary) 0%, var(--pv-primary-dark) 100%);
  color: #fff;
  padding: 1rem 0;
  margin: 0 -1rem 1rem;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 4px 16px rgba(14, 131, 121, 0.2);
}
.pv-hero-report-wrap {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  left: auto;
  z-index: 2;
}
.pv-hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.25rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.pv-hero-right { text-align: center; }
.pv-avatar-wrap {
  width: 64px;
  height: 64px;
  margin: 0 auto 0.35rem;
  border-radius: 50%;
  border: 3px solid var(--pv-accent);
  overflow: hidden;
  background: var(--pv-accent-light);
}
.pv-avatar { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; object-fit: cover; }
.pv-avatar-fallback {
  background: linear-gradient(145deg, var(--pv-primary) 0%, var(--pv-primary-dark) 100%);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
}
.pv-status-badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.pv-status-badge--on { background: #d1fae5; color: #065f46; }
.pv-status-badge--off { background: #fee2e2; color: #991b1b; }
.pv-name { font-size: 1.2rem; font-weight: 700; margin: 0 0 0.2rem; color: #fff; }
.pv-stars { margin: 0; color: var(--pv-accent); font-size: 0.95rem; }
.pv-stars-count { color: rgba(255,255,255,0.9); font-size: 0.8rem; font-weight: 500; margin-inline-start: 0.25rem; }

.pv-hero-left { display: flex; justify-content: center; }
.pv-trust-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
.pv-trust-card {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 10px;
  padding: 0.6rem 0.5rem;
  text-align: center;
  min-width: 72px;
  transition: background 0.25s ease, transform 0.2s ease;
}
.pv-trust-card:hover { background: rgba(255,255,255,0.22); transform: translateY(-2px); }
.pv-trust-value { display: block; font-size: 1.1rem; font-weight: 800; color: #fff; margin-bottom: 0.1rem; }
.pv-trust-label { font-size: 0.7rem; color: rgba(255,255,255,0.9); }

.pv-body {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.5rem;
  align-items: start;
}
.pv-main { min-width: 0; }
.pv-card {
  background: #fff;
  border: 1px solid var(--pv-border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  transition: box-shadow 0.25s ease, border-color 0.2s ease;
}
.pv-card:hover { box-shadow: 0 4px 16px rgba(14, 131, 121, 0.1); border-color: rgba(14, 131, 121, 0.2); }
.pv-card-title { font-size: 1.1rem; font-weight: 700; color: var(--pv-primary); margin: 0 0 0.75rem; }
.pv-bio-text { margin: 0; line-height: 1.75; color: #374151; font-size: 0.95rem; }

.pv-section-title { font-size: 1.2rem; font-weight: 700; color: var(--pv-primary); margin: 0 0 1rem; }
.pv-services-section { margin-bottom: 1.5rem; }
.pv-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.pv-service-card {
  background: #fff;
  border: 1px solid var(--pv-border);
  border-radius: 12px;
  padding: 1.25rem;
  transition: box-shadow 0.25s ease, border-color 0.2s ease, transform 0.2s ease;
}
.pv-service-card:hover {
  box-shadow: 0 6px 20px rgba(14, 131, 121, 0.15);
  border-color: rgba(14, 131, 121, 0.25);
  transform: translateY(-2px);
}
.pv-service-cat { display: flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; color: var(--pv-primary); margin: 0 0 0.4rem; }
.pv-service-cat-icon { font-size: 1.1rem; }
.pv-service-cat-icon.img { width: 22px; height: 22px; object-fit: contain; }
.pv-service-name { font-size: 1.05rem; font-weight: 700; color: #1f2937; margin: 0 0 0.5rem; }
.pv-service-price { font-size: 1.2rem; font-weight: 700; color: var(--pv-primary); margin: 0 0 0.75rem; }
.pv-service-btn {
  display: block;
  width: 100%;
  padding: 0.6rem 1rem;
  background: var(--pv-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: 'Tajawal', sans-serif;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
}
.pv-service-btn:hover { background: var(--pv-primary-dark); transform: translateY(-1px); }
.pv-service-login-hint { margin: 0.75rem 0 0; font-size: 0.9rem; color: #6b7280; }
.pv-service-login-hint a { color: var(--pv-primary); font-weight: 600; text-decoration: none; }
.pv-service-login-hint a:hover { text-decoration: underline; }

.pv-services-empty {
  text-align: center;
  padding: 2rem 1.5rem;
  background: #fff;
  border: 2px dashed var(--pv-border);
  border-radius: 12px;
  color: #6b7280;
}
.pv-services-empty-icon { font-size: 2.5rem; display: block; margin-bottom: 0.5rem; }

.pv-sidebar { position: sticky; top: 1rem; }
.pv-login-cta {
  border: 2px solid var(--pv-primary);
  background: rgba(14, 131, 121, 0.06);
  text-align: center;
  padding: 1.5rem 1.25rem;
  border-radius: 16px;
  margin-bottom: 1rem;
}
.pv-login-cta-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.pv-login-cta-text { margin: 0 0 1rem; font-size: 0.95rem; color: #374151; }
.pv-login-cta-btn {
  display: block;
  width: 100%;
  padding: 0.75rem 1.25rem;
  background: var(--pv-primary);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  border-radius: 10px;
  text-decoration: none;
  font-family: 'Tajawal', sans-serif;
  transition: background 0.25s ease, transform 0.2s ease;
  margin-bottom: 0.75rem;
}
.pv-login-cta-btn:hover { background: var(--pv-primary-dark); color: #fff; transform: translateY(-2px); }
.pv-login-cta-link { font-size: 0.875rem; color: var(--pv-primary); text-decoration: none; }
.pv-login-cta-link:hover { text-decoration: underline; }

.pv-quick-title { font-size: 0.95rem; font-weight: 700; color: var(--pv-primary); margin: 0 0 0.75rem; }
.pv-quick-row { margin: 0 0 0.4rem; font-size: 0.9rem; color: #4b5563; }
.pv-quick-row:last-child { margin-bottom: 0; }

.pv-reviews-section { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--pv-border); }
.pv-reviews-section .pv-section-title { margin-bottom: 1rem; }
.pv-reviews-list { display: flex; flex-direction: column; gap: 1rem; }
.pv-review-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--pv-border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  transition: box-shadow 0.2s ease;
}
.pv-review-card:hover { box-shadow: 0 4px 14px rgba(14, 131, 121, 0.1); }
.pv-review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pv-primary) 0%, var(--pv-primary-dark) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.pv-review-body { flex: 1; min-width: 0; }
.pv-review-meta { margin: 0 0 0.35rem; font-size: 0.9rem; font-weight: 600; color: #1f2937; }
.pv-review-meta .pv-review-stars { color: var(--pv-accent); }
.pv-review-comment { margin: 0; font-size: 0.9rem; color: #4b5563; line-height: 1.5; }
.pv-reviews-empty { margin: 0; font-size: 0.9rem; color: #6b7280; }

.pv-alert { margin-bottom: 1rem; border-radius: 10px; }

.pv-modal-section { position: relative; }
.pv-modal-section .provider-order-modal { position: fixed; left: 0; right: 0; top: 0; bottom: 0; z-index: 1000; }

@media (max-width: 992px) {
  .pv-hero-inner { grid-template-columns: 1fr; }
  .pv-hero-left { order: -1; }
  .pv-trust-cards { justify-content: center; }
  .pv-body { grid-template-columns: 1fr; }
  .pv-sidebar { position: static; }
}
@media (max-width: 768px) {
  .pv-hero { padding: 0.875rem 0; margin: 0 -0.5rem 0.875rem; border-radius: 0 0 12px 12px; }
  .pv-hero-inner { padding: 0 1rem; gap: 1rem; }
  .pv-hero-report-wrap { top: 0.5rem; right: 0.75rem; }
  .pv-report-btn { padding: 0.4rem 0.7rem; font-size: 0.78rem; }
  .pv-name { font-size: 1.1rem; }
  .pv-trust-cards { gap: 0.4rem; }
  .pv-trust-card { min-width: 64px; padding: 0.5rem 0.4rem; }
  .pv-trust-value { font-size: 1rem; }
  .pv-trust-label { font-size: 0.65rem; }
  .pv-services-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .pv-avatar-wrap { width: 52px; height: 52px; border-width: 2px; }
  .pv-avatar-fallback { font-size: 1.35rem; }
}

/* صفحة إدارة الخدمات - provider_services.php */
.provider-services-page {
  padding-bottom: 3rem;
}

.provider-services-grid--manage {
  margin: 0;
}

.provider-service-card--manage {
  display: flex;
  flex-direction: column;
  position: relative;
}

.provider-service-actions {
  margin-top: auto;
  padding-top: 1rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.provider-service-card--manage .provider-service-edit {
  color: var(--primary) !important;
  border-color: var(--primary) !important;
}

.provider-service-card--manage .provider-service-edit:hover {
  background: rgba(13,148,136,0.1) !important;
}

.provider-service-card--manage .provider-service-delete {
  color: var(--danger) !important;
  border-color: var(--danger) !important;
}

.provider-service-card--manage .provider-service-delete:hover {
  background: rgba(239,68,68,0.1) !important;
}

.provider-service-form-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.provider-services-empty {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: linear-gradient(135deg, rgba(13,148,136,0.03) 0%, var(--bg) 100%);
  border-radius: 12px;
  border: 2px dashed var(--border);
}

.provider-services-empty-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 0.75rem;
  opacity: 0.6;
}

.provider-services-empty p {
  color: var(--text-muted);
  margin: 0 0 0.35rem;
}

.provider-services-empty-hint {
  font-size: 0.9rem !important;
  opacity: 0.85;
}

.provider-service-add-form .form-group {
  margin-bottom: 1rem;
}

.provider-service-add-form .btn-primary {
  margin-top: 0.5rem;
}

@media (max-width: 600px) {
  .provider-services-grid--manage {
    grid-template-columns: 1fr;
  }
}

/* نافذة طلب الخدمة */
.provider-order-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.provider-order-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.provider-order-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}

.provider-order-modal-content {
  position: relative;
  background: var(--card);
  border-radius: 16px;
  padding: 1.75rem;
  max-width: 420px;
  width: 100%;
  max-height: min(90vh, 600px);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
  border: 1px solid var(--border);
  animation: provider-modal-in 0.3s ease;
  margin: auto;
}

.provider-order-modal-content .provider-order-form {
  padding-bottom: 2rem;
}

.provider-order-modal-content .provider-order-btn {
  margin-top: 0.5rem;
  min-height: 48px;
  width: 100%;
}
@keyframes provider-modal-in {
  from { opacity: 0; transform: scale(0.95) translateY(-10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.provider-order-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.provider-order-modal-header h3 {
  font-size: 1.15rem;
  margin: 0;
  flex: 1;
  padding-left: 0.5rem;
}
.provider-order-service-name {
  color: var(--primary);
  font-weight: 700;
}
.provider-order-modal-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: -0.75rem 0 1.25rem;
}
.provider-order-form .form-group {
  margin-bottom: 1.25rem;
}
.provider-order-form .form-group:last-of-type {
  margin-bottom: 1.5rem;
}
.provider-order-location-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.provider-order-geo-btn {
  flex-shrink: 0;
}
.provider-order-geo-status {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.provider-order-geo-status.success {
  color: var(--primary);
  font-weight: 500;
}
.provider-order-geo-status.error {
  color: var(--danger, #ef4444);
  font-weight: 500;
}
.provider-order-city-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(13,148,136,0.08);
  border: 1px solid rgba(13,148,136,0.25);
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.provider-order-city-notice-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}
.provider-order-geo-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
}
.provider-order-location-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.provider-order-appointment-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.provider-order-appointment-row input {
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
}
@media (max-width: 480px) {
  .provider-order-location-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .provider-order-location-fields,
  .provider-order-appointment-row {
    grid-template-columns: 1fr;
  }
  .provider-order-modal {
    align-items: flex-start;
    padding: 0.5rem;
  }
  .provider-order-modal-content {
    max-height: calc(100vh - 1rem);
    margin: 0.5rem auto 2rem;
  }
}

.provider-order-modal-close {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--bg);
  border-radius: 8px;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
  transition: background 0.2s;
}

.provider-order-modal-close:hover {
  background: var(--border);
}

/* زر رفع بلاغ — الزاوية العليا اليمنى من الهيرو */
.pv-report-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.95);
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.pv-report-btn:hover {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.5);
  color: #fff;
  transform: translateY(-1px);
}
.pv-report-btn-icon { font-size: 1rem; line-height: 1; }
.provider-report-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 1rem;
  padding-top: 0.5rem;
}
.pv-report-modal-icon { margin-inline-end: 0.25rem; }

.provider-order-section {
  background: var(--card);
  border-radius: 16px;
  padding: 1.5rem 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.provider-order-desc {
  color: var(--text-muted);
  margin: -0.5rem 0 1.25rem;
  font-size: 0.95rem;
}

.provider-order-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.provider-order-fields .form-group-full {
  grid-column: 1 / -1;
}

.provider-order-btn {
  width: 100%;
  padding: 0.85rem 1.5rem;
  font-size: 1.05rem;
}

.provider-login-prompt a {
  color: var(--primary);
  font-weight: 600;
}

/* صفحة الفني - الموبايل */
@media (max-width: 768px) {
  .provider-page {
    padding: 1rem 0 2rem;
  }
  .provider-back-link {
    margin-bottom: 1rem;
    font-size: 0.95rem;
  }
  .provider-profile {
    border-radius: 12px;
    margin-bottom: 1.25rem;
  }
  .provider-profile-header {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem 1rem;
    gap: 1rem;
  }
  .provider-avatar-wrap {
    width: 72px;
    height: 72px;
    padding: 4px;
  }
  .provider-avatar {
    width: 64px;
    height: 64px;
    font-size: 1.75rem;
  }
  .provider-name {
    font-size: 1.3rem;
    justify-content: center;
  }
  .provider-meta-row {
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.9rem;
  }
  .provider-bio {
    padding: 1.25rem 1rem;
  }
  .provider-bio .provider-section-title {
    font-size: 1.1rem;
  }
  .provider-services-section {
    padding: 1.25rem 0;
  }
  .provider-services-section .provider-section-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }
  .provider-services-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .provider-service-card {
    padding: 1rem;
  }
  .provider-service-name {
    font-size: 1rem;
  }
  .provider-service-price {
    font-size: 1.15rem;
  }
  .provider-order-under-services {
    margin-top: 1.5rem;
    padding: 1.25rem 1rem;
    border-radius: 10px;
  }
  .provider-order-under-services .provider-section-title {
    font-size: 1.1rem;
  }
  .provider-order-fields {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    margin-bottom: 1rem;
  }
  .provider-order-btn {
    padding: 0.9rem 1rem;
    font-size: 1rem;
  }
  .provider-login-prompt {
    padding: 1.5rem 1rem;
  }
}

@media (max-width: 480px) {
  .container.provider-page {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  .provider-profile-header {
    padding: 1.25rem 0.75rem;
  }
  .provider-avatar-wrap {
    width: 64px;
    height: 64px;
    padding: 2px;
  }
  .provider-avatar {
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
  }
  .provider-name {
    font-size: 1.15rem;
  }
  .provider-bio {
    padding: 1rem 0.75rem;
  }
  .provider-order-under-services {
    padding: 1rem 0.75rem;
  }
}

/* تسجيل أعمال - صندوق أوسع */
.auth-box--register-provider {
  max-width: 540px;
}

/* أقسام الملف الشخصي - نفس تصميم التخصصات */
.profile-section {
  margin: 1.5rem 0;
  padding: 0;
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.profile-section-header {
  background: linear-gradient(135deg, var(--primary) 0%, #0e8e83 100%);
  color: white;
  padding: 1rem 1.25rem;
}

.profile-section-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: white;
}

.profile-section-desc {
  font-size: 0.9rem;
  margin: 0;
  opacity: 0.95;
}

.profile-section-body {
  padding: 1.25rem;
}

/* التخصصات - تسجيل أعمال */
.specialties-section {
  margin: 1.5rem 0;
  padding: 0;
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.specialties-header {
  background: linear-gradient(135deg, var(--primary) 0%, #0e8e83 100%);
  color: white;
  padding: 1rem 1.25rem;
}

.specialties-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: white;
}

.specialties-desc {
  font-size: 0.9rem;
  margin: 0;
  opacity: 0.95;
}

.specialties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  padding: 1.25rem;
}

.specialty-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0.75rem;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.specialty-card input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.specialty-card-icon {
  font-size: 1.75rem;
  line-height: 1;
}
.specialty-card-icon-img {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
  object-position: center;
  display: block;
  margin-inline: auto;
}

.specialty-card-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
}

.specialty-card:hover {
  border-color: var(--primary);
  background: rgba(13,148,136,0.06);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13,148,136,0.15);
}

.specialty-card:hover .specialty-card-name {
  color: var(--primary);
}

.specialty-card:has(input:checked) {
  background: linear-gradient(135deg, var(--primary) 0%, #0e8e83 100%);
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(13,148,136,0.35);
}

.specialty-card:has(input:checked) .specialty-card-name {
  color: white;
}

.specialty-card:has(input:checked) .specialty-card-icon {
  filter: brightness(0) invert(1);
}

.specialty-card:has(input:checked)::after {
  content: '✓';
  position: absolute;
  top: 0.4rem;
  inset-inline-start: 0.4rem;
  width: 1.25rem;
  height: 1.25rem;
  background: rgba(255,255,255,0.95);
  color: var(--primary);
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.25rem;
  text-align: center;
}

.specialties-empty {
  margin: 0;
  padding: 1.25rem;
  text-align: center;
  background: var(--bg);
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 1px dashed var(--border);
}

@media (max-width: 600px) {
  .specialties-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
    padding: 1rem;
  }
  .specialty-card {
    padding: 0.85rem 0.5rem;
  }
  .specialty-card-icon {
    font-size: 1.5rem;
  }
  .specialty-card-name {
    font-size: 0.85rem;
  }
}

/* Auth */
.auth-box {
  max-width: 400px;
  margin: 2rem auto;
}

.auth-tabs {
  display: flex;
  margin-bottom: 1rem;
}

.auth-tabs button,
.auth-tabs a {
  flex: 1;
  padding: 0.75rem;
  border: none;
  background: var(--border);
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  color: inherit;
  font-family: inherit;
  font-weight: 500;
}

.auth-tabs button.active,
.auth-tabs a.active {
  background: var(--primary);
  color: white;
}

/* تسجيل الدخول — خيار طريقة الدخول (الرقم السري / التحقق عبر واتساب) */
.auth-choose-hint {
  margin-bottom: 1.25rem;
  color: var(--text-muted, #6b7280);
  font-size: 0.95rem;
  text-align: center;
}

.auth-method-tabs {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.auth-method-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 0.75rem;
  border: 2px solid var(--border, #e5e7eb);
  border-radius: 12px;
  background: var(--card, #fff);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted, #6b7280);
  transition: all 0.2s ease;
}

.auth-method-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(13, 148, 136, 0.06);
}

.auth-method-tab.active {
  border-color: var(--primary);
  background: rgba(13, 148, 136, 0.12);
  color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

.auth-method-tab .auth-method-icon {
  font-size: 1.35rem;
  line-height: 1;
}

.auth-otp-hint {
  margin-bottom: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(13, 148, 136, 0.08);
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-right: 3px solid var(--primary);
}

[dir="rtl"] .auth-otp-hint {
  border-right: none;
  border-left: 3px solid var(--primary);
}

/* رابط الرجوع في صفحة التحقق من OTP */
.auth-otp-back {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border, #e5e7eb);
  text-align: center;
}

.auth-otp-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted, #6b7280);
  text-decoration: none;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 10px;
  background: var(--card, #fff);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.auth-otp-back-link:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: rgba(13, 148, 136, 0.06);
}

.auth-otp-back-icon {
  font-size: 1.1rem;
  line-height: 1;
  opacity: 0.85;
}

[dir="rtl"] .auth-otp-back-icon {
  transform: scaleX(-1);
}

@media (max-width: 480px) {
  .auth-method-tabs {
    flex-direction: column;
  }
  .auth-method-tab {
    padding: 1rem 1rem;
    justify-content: flex-start;
  }
}

/* Order status */
.status-badge {
  padding: 0.3rem 0.7rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-new { background: #dbeafe; color: #1d4ed8; }
.status-sent { background: #fef3c7; color: #b45309; }
.status-in_contact { background: #d1fae5; color: #047857; }
.status-in_progress { background: #e0e7ff; color: #3730a3; }
.status-completed { background: #d1fae5; color: #065f46; }
.status-cancelled { background: #fee2e2; color: #b91c1c; }

/* الطلبات الواردة - تصميم حديث */
.orders-section {
  margin-top: 2rem;
  padding: 1.5rem 0;
}

.orders-section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.orders-section-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.order-filters {
  display: flex;
  gap: 0.35rem;
  background: var(--bg);
  padding: 0.25rem;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.order-filter-tab {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s;
}

.order-filter-tab:hover {
  color: var(--primary);
  background: rgba(13,148,136,0.08);
}

.order-filter-tab.active {
  background: var(--card);
  color: var(--primary);
  box-shadow: var(--shadow);
}

.orders-empty {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--card);
  border-radius: 12px;
  border: 2px dashed var(--border);
}

.orders-empty-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 0.75rem;
  opacity: 0.6;
}

.orders-empty p {
  color: var(--text-muted);
  margin: 0;
}

.orders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
}

.order-card {
  background: var(--card);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--border);
  border-right: 4px solid var(--primary);
  transition: box-shadow 0.2s;
}

.order-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

.order-card--completed { border-right-color: var(--success); }
.order-card--cancelled { border-right-color: var(--danger); opacity: 0.9; }

.order-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: linear-gradient(180deg, rgba(13,148,136,0.04) 0%, transparent 100%);
  border-bottom: 1px solid var(--border);
}

.order-card-id {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
}

.order-card-body {
  padding: 1.25rem;
}

.order-info-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.15rem 0.75rem;
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
}

.order-info-row:last-of-type { margin-bottom: 0; }

.order-info-icon {
  grid-row: 1 / 3;
  align-self: start;
  font-size: 1rem;
}

.order-info-icon--service {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: rgba(13,148,136,0.08);
  overflow: hidden;
}

.order-service-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  object-position: center;
}

.order-info-label {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.order-info-value {
  grid-column: 2;
  color: var(--text);
}

.order-info-value small { color: var(--text-muted); }

.order-info-row--highlight .order-info-value {
  font-weight: 600;
}

.order-phone-link {
  color: var(--primary);
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  transition: background 0.2s;
}

.order-phone-link:hover {
  background: rgba(13,148,136,0.1);
}

.order-map-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}
.order-map-link:hover {
  text-decoration: underline;
}

.order-completed {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: var(--success);
}

.order-notes {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.order-notes-label {
  font-weight: 600;
  color: var(--text);
  margin-left: 0.35rem;
}

.order-card-actions {
  padding: 1rem 1.25rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.order-action-form { display: inline; }

.order-btn-reject {
  color: var(--danger) !important;
  border-color: var(--danger) !important;
}

.order-btn-reject:hover {
  background: rgba(239,68,68,0.1) !important;
}

.order-rate-form {
  width: 100%;
}

.order-rate-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.order-rate-select {
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.9rem;
}

.order-rate-comment {
  flex: 1;
  min-width: 120px;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: inherit;
}

.order-rated {
  color: var(--success);
  font-size: 0.9rem;
  font-weight: 500;
}

.order-rate-title {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.order-card-actions--rate {
  flex-direction: column;
  align-items: stretch;
}

.order-card-actions--rate .order-rate-inner {
  flex-direction: column;
  align-items: stretch;
}

.order-card-actions--rate .order-rate-comment {
  min-width: 100%;
}

/* صفحة طلباتي - orders.php */
.orders-page {
  padding-bottom: 3rem;
}

.orders-page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, rgba(13,148,136,0.06) 0%, rgba(13,148,136,0.02) 100%);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.orders-page-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0.35rem 0 0;
}

.orders-dashboard-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  font-weight: 500;
}

.orders-dashboard-icon {
  font-size: 1.1rem;
}

.orders-empty-hint {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

@media (max-width: 480px) {
  .orders-grid {
    grid-template-columns: 1fr;
  }
  .order-filters {
    width: 100%;
    justify-content: center;
  }
}

/* Alerts */
.alert {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.alert-error {
  background: #fee2e2;
  color: #b91c1c;
}

.alert-success {
  background: #d1fae5;
  color: #065f46;
}

/* Hidden */
.hidden {
  display: none !important;
}

/* Rating */
.stars {
  color: var(--accent);
}

/* الفوتر */
.footer {
  background: #0e8e83;
  color: white;
  margin-top: 4rem;
  padding: 3rem 0 0;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.6;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.25);
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
}

.footer-col h4 {
  margin-bottom: 1rem;
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-col:first-child h4::before {
  content: '🔧';
  font-size: 1.2rem;
}

.footer-col p {
  opacity: 0.95;
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 100%;
}

.footer-col span {
  opacity: 0.95;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1rem;
}

.footer-contact a,
.footer-contact div {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.95);
  text-decoration: none;
  font-size: 0.95rem;
  transition: opacity 0.2s, transform 0.2s;
}

.footer-contact a:hover {
  opacity: 1;
  transform: translateX(-3px);
}

.footer-contact .contact-icon {
  width: 28px;
  height: 28px;
  background: rgba(255,255,255,0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.footer-col a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.95);
  text-decoration: none;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  transition: opacity 0.2s, padding-inline-start 0.2s;
}

.footer-col a:hover {
  opacity: 1;
  padding-inline-start: 5px;
}

.footer-col-links a::before {
  display: none;
}
.footer-col-links a .bi {
  font-size: 1rem;
  opacity: 0.95;
}

.footer-social {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.footer-social a {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  font-size: 0.85rem;
  transition: background 0.2s, transform 0.2s;
}

.footer-social a img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.footer-social a:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-2px);
}

.footer-social a::before {
  display: none;
}

.footer-bottom {
  padding: 0.75rem 0 1.25rem;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.95;
}

.footer-bottom p {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Responsive - الهيدر للموبايل */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(300px, 85vw);
    height: 100vh;
    background: var(--card);
    box-shadow: -4px 0 20px rgba(0,0,0,.15);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 4rem 1rem 1.5rem;
    gap: 0;
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }

  .nav.is-open {
    transform: translateX(0);
  }

  .nav-main {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    margin-bottom: 1rem;
  }

  .nav-main .nav-link {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    display: block;
  }

  .nav-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    margin-inline-start: 0;
    padding-inline-start: 0;
    border-inline-start: none;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
  }

  .nav-user {
    display: block;
    padding: 0.5rem 0;
    font-size: 0.9rem;
  }

  .nav-actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
  }

  .nav-overlay.is-visible {
    opacity: 1;
    visibility: visible;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .logo-text {
    font-size: 1.2rem;
  }

  .logo-icon {
    width: 38px;
    height: 38px;
    font-size: 1.5rem;
  }

  .logo-img {
    max-height: 46px;
  }

  .header-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
  }

  .nav-user-mobile {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    order: -1;
  }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 1.5rem; }
  .footer-contact { align-items: center; }
  .footer-col-social .footer-social { justify-content: center; }
}

.footer-col-social h4::before {
  content: none;
}

@media (max-width: 600px) {
  .top-bar {
    padding: 0.4rem 0;
    font-size: 0.8rem;
  }
  .top-bar-text {
    text-align: center;
    display: block;
  }
}

@media (max-width: 700px) {
  .contact-grid {
    grid-template-columns: 1fr !important;
  }
}

/* لوحة الإدارة - تخطيط جانبي */
.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.admin-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}
.admin-modal-content {
  position: relative;
  background: var(--card);
  border-radius: 12px;
  padding: 1.5rem;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
  border: 1px solid var(--border);
}
.admin-modal-content h3 {
  margin: 0 0 1rem;
  font-size: 1.2rem;
}

/* أزرار ترتيب الباقات */
.pkg-reorder-btns {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  align-items: center;
}
.pkg-reorder-btn {
  width: 28px;
  height: 22px;
  padding: 0;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  font-size: 0.7rem;
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.pkg-reorder-btn:hover:not(:disabled) {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.pkg-reorder-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* إجراءات الاشتراكات */
.sub-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.sub-action-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.sub-action-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}
.sub-action-form {
  display: inline;
}
.sub-package-select {
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.9rem;
  min-width: 120px;
  background: var(--card);
}
.sub-package-select:focus {
  outline: none;
  border-color: var(--primary);
}
.sub-cancel-btn {
  color: var(--danger, #dc2626) !important;
  border-color: var(--danger, #dc2626) !important;
}
.sub-cancel-btn:hover {
  background: rgba(220, 38, 38, 0.1) !important;
}
.sub-no-actions {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* تنبيه الفني غير المشترك */
.provider-sub-alert {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-bottom: 2px solid #f59e0b;
  padding: 0.75rem 0;
}
.provider-sub-alert .container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.provider-sub-alert-icon {
  font-size: 1.25rem;
}
.provider-sub-alert-text {
  color: #92400e;
  font-weight: 500;
}
.provider-sub-alert-text a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
}
.provider-sub-alert-text a:hover {
  color: var(--primary-dark);
}
.nav-link--highlight {
  color: var(--danger, #dc2626) !important;
  font-weight: 600;
}

/* صفحة باقات الاشتراك للفنيين */
.packages-page {
  padding: 2rem 0 3rem;
}
.packages-hero {
  text-align: center;
  margin-bottom: 2.5rem;
}
.packages-hero-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0 0 0.5rem;
}
.packages-hero-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0 0 1.5rem;
}
.packages-alert-box {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 2px solid #f59e0b;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  text-align: right;
  max-width: 560px;
  margin: 0 auto;
}
.packages-alert-icon {
  font-size: 2rem;
  flex-shrink: 0;
}
.packages-alert-box strong {
  display: block;
  color: #92400e;
  margin-bottom: 0.25rem;
}
.packages-alert-box p {
  margin: 0;
  color: #b45309;
  font-size: 0.95rem;
}
.packages-success-box {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.75rem;
  background: rgba(13, 148, 136, 0.1);
  border: 2px solid rgba(13, 148, 136, 0.3);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  max-width: 480px;
  margin: 0 auto;
}
.packages-success-box > div {
  flex: 1;
  min-width: 0;
}
.packages-success-icon {
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
}
.packages-success-box p {
  margin: 0.25rem 0 0;
  color: var(--primary);
  font-weight: 600;
}
.packages-subscription-info {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.packages-sub-type,
.packages-sub-remaining {
  display: inline-block;
  background: rgba(13, 148, 136, 0.2);
  color: var(--primary);
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
}
.packages-benefits {
  margin-bottom: 2.5rem;
}
.packages-section-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 1.25rem;
  text-align: center;
}
.packages-benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.packages-benefit-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}
.packages-benefit-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.75rem;
}
.packages-benefit-card h3 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}
.packages-benefit-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}
.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
.package-card {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.package-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.package-card--popular {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.15);
}
.package-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
}
.package-header {
  margin-bottom: 1rem;
}
.package-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
}
.package-duration {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.package-price {
  margin-bottom: 1rem;
}
.package-price-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}
.package-price-currency {
  font-size: 1rem;
  color: var(--text-muted);
  margin-right: 0.25rem;
}
.package-benefit {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.packages-cta {
  margin-top: 2rem;
}
.packages-cta-card {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.08) 0%, rgba(14, 142, 131, 0.12) 100%);
  border: 2px solid rgba(13, 148, 136, 0.25);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
}
.packages-cta-card h2 {
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
}
.packages-cta-card p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}
.packages-cta-contacts {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.packages-cta-btn {
  padding: 0.75rem 1.5rem;
}
.packages-cta-note {
  color: var(--text-muted);
  font-size: 0.95rem;
}
.packages-empty {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
}
@media (max-width: 768px) {
  .sub-action-group {
    flex-direction: column;
    align-items: flex-start;
  }
  .sub-package-select {
    min-width: 100%;
  }
}

.admin-layout {
  display: flex;
  gap: 0;
  min-height: calc(100vh - 120px);
  margin: 0 -1rem;
}

/* غلاف السايدبار + زر التفعيل (يُخفى على الديسكتوب) */
.admin-sidebar-wrap { position: relative; }
.admin-sidebar-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, #0d9488 0%, #0e7d73 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(13, 148, 136, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.admin-sidebar-toggle:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(13, 148, 136, 0.4); }
.admin-sidebar-toggle-icon { font-size: 1.35rem; line-height: 1; }
.admin-sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1008;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.admin-sidebar-backdrop.is-open { opacity: 1; }

.admin-sidebar {
  width: 260px;
  min-width: 260px;
  background: linear-gradient(180deg, #0d9488 0%, #0e8e83 100%);
  color: white;
  padding: 0;
  position: sticky;
  top: 60px;
  height: fit-content;
  border-radius: 0 0 0 14px;
  box-shadow: 4px 0 24px rgba(0,0,0,0.1);
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
}

.admin-sidebar-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 1rem 0;
}

.admin-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.admin-sidebar-close {
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.15);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}
.admin-sidebar-close:hover { background: rgba(255,255,255,0.25); }

.admin-sidebar-title {
  font-size: 1.12rem;
  font-weight: 700;
  padding: 0;
  margin: 0;
  border: none;
  letter-spacing: -0.02em;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.5rem 0.75rem 0;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 1rem;
  color: rgba(255,255,255,0.95);
  text-decoration: none;
  border-radius: 10px;
  transition: background 0.2s, color 0.2s;
  font-size: 0.95rem;
}

.admin-nav-item:hover {
  background: rgba(255,255,255,0.18);
  color: white;
}

.admin-nav-item.active {
  background: rgba(255,255,255,0.28);
  color: white;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2);
}

.admin-nav-icon {
  font-size: 1.2rem;
  width: 1.6rem;
  text-align: center;
  flex-shrink: 0;
  opacity: 0.95;
}

.admin-sidebar-footer {
  margin-top: auto;
  padding: 1rem 0.75rem 0;
  border-top: 1px solid rgba(255,255,255,0.2);
}
.admin-sidebar-footer .admin-nav-item { color: rgba(255,255,255,0.85); }
.admin-sidebar-footer .admin-nav-item:hover { color: white; }

.admin-content {
  flex: 1;
  padding: 0 1rem 2rem;
  min-width: 0;
}

/* ========== لوحة تحكم المدير - admin.php ========== */
.admin-dash-page {
  padding-bottom: 2rem;
}
.admin-dash-hero {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.admin-dash-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,148,136,0.12) 0%, rgba(15,118,110,0.06) 50%, rgba(45,212,191,0.08) 100%);
  border: 1px solid rgba(13,148,136,0.15);
}
.admin-dash-hero-content {
  position: relative;
  padding: 1.5rem 1.75rem;
}
.admin-dash-hero-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}
.admin-dash-hero-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
  max-width: 40rem;
  line-height: 1.5;
}

.admin-dash-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  margin-bottom: 1.25rem;
  border: 1px solid transparent;
}
.admin-dash-alert-icon { flex-shrink: 0; font-size: 1.2rem; margin-top: 0.1rem; }
.admin-dash-alert p { margin: 0; font-size: 0.95rem; line-height: 1.5; }
.admin-dash-alert code { padding: 0.15rem 0.4rem; border-radius: 6px; font-size: 0.85em; }
.admin-dash-alert--warn {
  background: linear-gradient(135deg, rgba(245,158,11,0.12) 0%, rgba(245,158,11,0.06) 100%);
  color: #92400e;
  border-color: rgba(245,158,11,0.25);
}
.admin-dash-alert--warn code { background: rgba(245,158,11,0.2); }

.admin-dash-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.admin-stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}
.admin-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}
.admin-stat-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  border-radius: 12px;
  flex-shrink: 0;
}
.admin-stat-content { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.admin-stat-value { font-size: 1.4rem; font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; color: var(--text); }
.admin-stat-label { font-size: 0.78rem; color: var(--text-muted); }
.admin-stat-meta { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.15rem; }
.admin-stat-card--users .admin-stat-icon { background: rgba(99,102,241,0.12); }
.admin-stat-card--users .admin-stat-value { color: #6366f1; }
.admin-stat-card--beneficiaries .admin-stat-icon { background: rgba(34,197,94,0.12); }
.admin-stat-card--beneficiaries .admin-stat-value { color: #16a34a; }
.admin-stat-card--providers .admin-stat-icon { background: rgba(13,148,136,0.12); }
.admin-stat-card--providers .admin-stat-value { color: var(--primary); }
.admin-stat-card--orders .admin-stat-icon { background: rgba(245,158,11,0.12); }
.admin-stat-card--orders .admin-stat-value { color: #d97706; }
.admin-stat-card--today .admin-stat-icon { background: rgba(16,185,129,0.12); }
.admin-stat-card--today .admin-stat-value { color: var(--success); }
.admin-stat-card--today { border-color: rgba(16,185,129,0.25); background: linear-gradient(135deg, rgba(16,185,129,0.06) 0%, var(--card) 100%); }
.admin-stat-card--location .admin-stat-icon { background: rgba(236,72,153,0.1); }
.admin-stat-card--location .admin-stat-value { color: #db2777; font-size: 1.1rem; }

.admin-dash-card {
  border-radius: 14px;
  padding: 0;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  overflow: hidden;
}
.admin-dash-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 2px solid var(--border);
  background: linear-gradient(180deg, rgba(13,148,136,0.04) 0%, var(--card) 100%);
}
.admin-dash-card-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}
.admin-dash-card-icon { font-size: 1.15rem; opacity: 0.9; }
.admin-dash-card-link {
  font-size: 0.9rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
.admin-dash-card-link:hover { color: var(--primary-dark); text-decoration: underline; }

.admin-dash-empty {
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: var(--text-muted);
}
.admin-dash-empty-icon { display: block; font-size: 2.5rem; margin-bottom: 0.5rem; opacity: 0.5; }
.admin-dash-empty p { margin: 0; font-size: 0.95rem; }

.admin-dash-table-wrap { overflow-x: auto; }
.admin-dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.admin-dash-table th,
.admin-dash-table td {
  padding: 0.75rem 1rem;
  text-align: right;
  border-bottom: 1px solid var(--border);
}
.admin-dash-table th {
  background: linear-gradient(180deg, rgba(13,148,136,0.06) 0%, var(--bg) 100%);
  font-weight: 600;
  color: var(--text);
}
.admin-dash-table tbody tr:nth-child(even) { background: rgba(248,250,252,0.6); }
.admin-dash-table tbody tr:hover { background: rgba(13,148,136,0.04); }
.admin-dash-table .admin-dash-ip { font-size: 0.8rem; background: var(--bg); padding: 0.2rem 0.45rem; border-radius: 6px; color: var(--text-muted); }
.admin-dash-badge {
  display: inline-block;
  padding: 0.3rem 0.65rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
}
.admin-dash-badge--active {
  background: linear-gradient(135deg, rgba(16,185,129,0.2) 0%, rgba(16,185,129,0.1) 100%);
  color: #047857;
  border: 1px solid rgba(16,185,129,0.3);
}
.admin-dash-badge--inactive {
  background: linear-gradient(135deg, rgba(100,116,139,0.15) 0%, rgba(100,116,139,0.08) 100%);
  color: #475569;
  border: 1px solid rgba(100,116,139,0.2);
}
.admin-dash-actions-cell { min-width: 140px; }
.admin-dash-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}
.admin-dash-form-inline { display: inline; }
.admin-dash-btn-edit { margin-left: 0.15rem; }
.admin-dash-btn-off { color: var(--danger) !important; border-color: var(--danger) !important; }
.admin-dash-btn-off:hover { background: rgba(239,68,68,0.08) !important; }

@media (max-width: 768px) {
  .admin-dash-hero-content { padding: 1.25rem 1rem; }
  .admin-dash-hero-title { font-size: 1.25rem; }
  .admin-dash-hero-desc { font-size: 0.875rem; }
  .admin-dash-stats { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin-bottom: 1.5rem; }
  .admin-stat-card { padding: 0.85rem 1rem; }
  .admin-stat-icon { width: 40px; height: 40px; font-size: 1.15rem; }
  .admin-stat-value { font-size: 1.15rem; }
  .admin-stat-label { font-size: 0.72rem; }
  .admin-dash-card-head { flex-direction: column; align-items: flex-start; gap: 0.5rem; padding: 1rem 1rem; }
  .admin-dash-card-title { font-size: 1rem; }
  .admin-dash-card-link { align-self: flex-start; }
  .admin-dash-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -0.5rem;
    padding: 0 0.5rem;
    min-width: 0;
    border-radius: 8px;
  }
  .admin-dash-table { min-width: 600px; font-size: 0.8rem; }
  .admin-dash-table th,
  .admin-dash-table td { padding: 0.5rem 0.6rem; font-size: 0.8rem; white-space: nowrap; }
  .admin-dash-actions-cell { min-width: 120px; }
  .admin-dash-actions { flex-direction: row; flex-wrap: wrap; gap: 0.35rem; }
  .admin-dash-actions .btn { padding: 0.4rem 0.65rem; font-size: 0.8rem; min-height: 36px; }
  .admin-dash-alert { padding: 0.85rem 1rem; margin-bottom: 1rem; }
  .admin-dash-alert p, .admin-dash-alert code { font-size: 0.85rem; }
}

@media (max-width: 576px) {
  .admin-dash-hero-content { padding: 1rem 0.85rem; }
  .admin-dash-hero-title { font-size: 1.1rem; }
  .admin-dash-hero-desc { font-size: 0.8rem; }
  .admin-dash-stats { grid-template-columns: 1fr; gap: 0.6rem; }
  .admin-stat-card { padding: 0.75rem 1rem; flex-direction: row; }
  .admin-stat-icon { width: 36px; height: 36px; font-size: 1rem; }
  .admin-stat-value { font-size: 1.25rem; }
  .admin-stat-label { font-size: 0.75rem; }
  .admin-dash-card { margin-bottom: 1.25rem; }
  .admin-dash-card-head { padding: 0.85rem 1rem; }
  .admin-dash-empty { padding: 1.5rem 1rem; }
}

.provider-services-no-specialties {
  padding: 0.75rem 1rem;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  color: var(--danger, #ef4444);
  font-size: 0.95rem;
}
.provider-services-no-specialties a {
  color: var(--primary);
  font-weight: 600;
}
.provider-services-categories-hint {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.admin-send-email-desc {
  color: var(--text-muted);
  margin: -0.5rem 0 1.5rem;
  font-size: 0.95rem;
}
.admin-send-email-card {
  max-width: 600px;
}
.admin-send-email-card .form-group {
  margin-bottom: 1rem;
}
.admin-email-user-select {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.admin-send-email-note {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.admin-send-notification-desc {
  color: var(--text-muted);
  margin: -0.5rem 0 1.5rem;
  font-size: 0.95rem;
}
.admin-send-notification-card {
  max-width: 600px;
}
.admin-send-notification-card .form-group {
  margin-bottom: 1rem;
}
.admin-send-notification-card .form-help {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.admin-notification-target-select {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
}

/* تحليلات الأجهزة - admin_devices_analytics.php */
.devices-analytics-charts {
  margin-top: 1rem;
}
.devices-analytics-bar-row {
  display: grid;
  grid-template-columns: 1fr 2fr 60px;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
}
.devices-analytics-label {
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.devices-analytics-bar-wrap {
  background: var(--border);
  border-radius: 6px;
  height: 22px;
  overflow: hidden;
}
.devices-analytics-bar {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-radius: 6px;
  min-width: 4px;
  transition: width 0.3s ease;
}
.devices-analytics-count {
  text-align: left;
  font-weight: 600;
  color: var(--text-muted);
}
.devices-analytics-phone {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.devices-analytics-table th,
.devices-analytics-table td {
  padding: 0.6rem 0.75rem;
  vertical-align: top;
}
.devices-analytics-table .devices-analytics-phone {
  display: block;
  margin-top: 0.2rem;
}
html[dir="rtl"] .devices-analytics-count {
  text-align: right;
}

/* ========== Device Analytics Dashboard (admin_devices_analytics.php) ========== */
.da-dashboard { padding-bottom: 2rem; }

.da-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.da-header-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(13,148,136,0.15) 0%, rgba(13,148,136,0.06) 100%);
  border: 1px solid rgba(13,148,136,0.2);
  border-radius: 14px;
  color: var(--primary);
  flex-shrink: 0;
}
.da-header-text { min-width: 0; }
.da-title {
  margin: 0 0 0.35rem;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}
.da-description {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 42rem;
}

.da-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  margin-bottom: 1.25rem;
  border: 1px solid transparent;
}
.da-alert-icon { flex-shrink: 0; font-size: 1.15rem; }
.da-alert p { margin: 0; font-size: 0.95rem; line-height: 1.5; }
.da-alert code { padding: 0.15rem 0.4rem; border-radius: 6px; font-size: 0.85em; }
.da-alert--warn {
  background: linear-gradient(135deg, rgba(245,158,11,0.12) 0%, rgba(245,158,11,0.06) 100%);
  color: #92400e;
  border-color: rgba(245,158,11,0.25);
}
.da-alert--warn code { background: rgba(245,158,11,0.2); }
.da-alert--info {
  background: linear-gradient(135deg, rgba(13,148,136,0.08) 0%, rgba(13,148,136,0.04) 100%);
  color: #0f766e;
  border-color: rgba(13,148,136,0.2);
}
.da-alert--info code { background: rgba(13,148,136,0.15); }

.da-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.da-stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}
.da-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}
.da-stat-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  border-radius: 12px;
  flex-shrink: 0;
}
.da-stat-content { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.da-stat-value { font-size: 1.4rem; font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; color: var(--text); }
.da-stat-label { font-size: 0.78rem; color: var(--text-muted); }
.da-stat-card--total .da-stat-icon { background: rgba(13,148,136,0.12); color: var(--primary); }
.da-stat-card--total .da-stat-value { color: var(--primary); }
.da-stat-card--android .da-stat-icon { background: rgba(52,168,83,0.12); }
.da-stat-card--android .da-stat-value { color: #2e7d32; }
.da-stat-card--ios .da-stat-icon { background: rgba(0,0,0,0.06); }
.da-stat-card--ios .da-stat-value { color: #1d1d1f; }
.da-stat-card--web .da-stat-icon { background: rgba(66,133,244,0.12); }
.da-stat-card--web .da-stat-value { color: #1967d2; }
.da-stat-card--desktop .da-stat-icon { background: rgba(102,126,234,0.12); }
.da-stat-card--desktop .da-stat-value { color: #4f46e5; }

.da-charts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}
.da-chart-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.da-chart-card--full { grid-column: 1 / -1; }
.da-chart-title {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.da-chart-wrap { position: relative; min-height: 220px; }

.da-table-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  margin-bottom: 1.5rem;
}
.da-table-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(13,148,136,0.04) 0%, var(--card) 100%);
  flex-wrap: wrap;
}
.da-table-title { margin: 0; font-size: 1.05rem; font-weight: 700; color: var(--text); }
.da-table-toolbar { flex: 1; min-width: 200px; display: flex; justify-content: flex-end; }
.da-search-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.4rem 0.75rem;
  max-width: 280px;
}
.da-search-icon { font-size: 0.9rem; opacity: 0.7; }
.da-search-input {
  border: none;
  background: none;
  flex: 1;
  min-width: 0;
  font-size: 0.9rem;
  color: var(--text);
}
.da-search-input::placeholder { color: var(--text-muted); }
.da-search-input:focus { outline: none; }

.da-table-responsive { overflow-x: auto; }
.da-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.da-table th,
.da-table td {
  padding: 0.75rem 1rem;
  text-align: right;
  border-bottom: 1px solid var(--border);
}
.da-table td { white-space: nowrap; }
.da-table .da-cell-user { white-space: normal; max-width: 180px; }
.da-table th {
  background: rgba(248,250,252,0.8);
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  user-select: none;
}
.da-table th:hover { background: rgba(13,148,136,0.06); }
.da-table th[data-sort]::after { content: ' ⇅'; font-size: 0.75em; opacity: 0.6; }
.da-table tbody tr { transition: background 0.15s; }
.da-table tbody tr:hover { background: rgba(13,148,136,0.05); }
.da-table tbody tr:nth-child(even) { background: rgba(248,250,252,0.4); }
.da-table tbody tr:nth-child(even):hover { background: rgba(13,148,136,0.06); }
.da-table .da-phone { font-size: 0.85rem; color: var(--text-muted); display: block; margin-top: 0.2rem; }

.da-table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  border-top: 1px solid var(--border);
  background: rgba(248,250,252,0.5);
  flex-wrap: wrap;
}
.da-pagination {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.da-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 0.5rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.da-page-btn:hover { background: rgba(13,148,136,0.08); border-color: var(--primary); }
.da-page-btn--current { background: var(--primary); color: #fff; border-color: var(--primary); }
.da-per-page { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: var(--text-muted); }
.da-per-page label { margin: 0; }
.da-select {
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  background: var(--card);
  color: var(--text);
}

.da-loading {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-muted);
}
.da-loading-spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 1rem;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: da-spin 0.8s linear infinite;
}
@keyframes da-spin { to { transform: rotate(360deg); } }
.da-loading p { margin: 0; font-size: 0.95rem; }

.da-empty {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text-muted);
}
.da-empty-icon { display: block; font-size: 2.5rem; margin-bottom: 0.5rem; opacity: 0.5; }
.da-empty p { margin: 0; font-size: 0.95rem; }

@media (max-width: 900px) {
  .da-stats { grid-template-columns: repeat(2, 1fr); }
  .da-charts { grid-template-columns: 1fr; }
  .da-table-card-head { flex-direction: column; align-items: stretch; }
  .da-table-toolbar { justify-content: stretch; }
  .da-search-wrap { max-width: none; }
}

@media (max-width: 900px) {
  .admin-layout {
    flex-direction: column;
    margin: 0;
    min-height: auto;
    gap: 1rem;
  }
  .admin-sidebar-wrap { width: 100%; }
  .admin-sidebar-toggle {
    display: flex;
  }
  .admin-sidebar-backdrop {
    display: block;
  }
  .admin-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    max-width: 320px;
    min-width: 0;
    height: 100vh;
    height: 100dvh;
    z-index: 1009;
    margin: 0;
    padding: 0;
    border-radius: 0;
    border: none;
    box-shadow: -8px 0 32px rgba(0,0,0,0.2);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }
  .admin-sidebar.admin-sidebar--open {
    transform: translateX(0);
  }
  body.admin-drawer-open { overflow: hidden; }
  .admin-sidebar-inner {
    padding: 0;
    min-height: 100%;
    display: flex;
    flex-direction: column;
  }
  .admin-sidebar-header {
    flex-shrink: 0;
    padding: 1rem 1.25rem;
  }
  .admin-sidebar-close {
    display: flex;
  }
  .admin-sidebar-title {
    font-size: 1.1rem;
  }
  .admin-nav {
    flex-direction: column;
    flex: 1;
    gap: 0.2rem;
    padding: 0.75rem 0.85rem 1rem;
    overflow-y: auto;
  }
  .admin-nav-item {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    border-radius: 10px;
    flex: none;
    min-width: 0;
  }
  .admin-nav-icon { font-size: 1.25rem; width: 1.75rem; }
  .admin-sidebar-footer {
    flex-shrink: 0;
    padding: 0.75rem 0.85rem 1rem;
    margin-top: 0;
    border-top: 1px solid rgba(255,255,255,0.2);
  }
  .admin-sidebar-footer .admin-nav-item { padding: 0.7rem 1rem; }
  .admin-content {
    padding: 0.75rem 0.5rem 1.5rem;
    min-width: 0;
    overflow-x: hidden;
  }
}

@media (max-width: 576px) {
  .admin-sidebar {
    width: min(300px, 92vw);
    max-width: 300px;
  }
  .admin-sidebar-toggle { padding: 0.65rem 1rem; font-size: 0.95rem; }
  .admin-nav { padding: 0.6rem 0.75rem 0.85rem; }
  .admin-nav-item { padding: 0.65rem 0.9rem; font-size: 0.9rem; }
  .admin-sidebar-footer { padding: 0.6rem 0.75rem 0.85rem; }
  .admin-content { padding: 0.5rem 0.5rem 1.25rem; }
}

/* ========== التقارير - reports.php (تصميم احترافي) ========== */
.reports-page {
  padding-bottom: 3rem;
}

/* Hero */
.reports-hero {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1.75rem;
}
.reports-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,148,136,0.12) 0%, rgba(15,118,110,0.06) 50%, rgba(45,212,191,0.08) 100%);
  border: 1px solid rgba(13,148,136,0.15);
}
.reports-hero-content {
  position: relative;
  padding: 1.75rem 2rem;
}
.reports-hero-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 0.4rem;
  letter-spacing: -0.02em;
}
.reports-hero-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
  max-width: 42rem;
  line-height: 1.5;
}

/* Toolbar: اختصارات + فلتر + تصدير */
.reports-toolbar {
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.reports-toolbar-presets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 1rem;
}
.reports-toolbar-presets-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-left: 0.25rem;
}
.reports-pill {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}
.reports-pill:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: rgba(13,148,136,0.06);
}
.reports-pill--active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-color: var(--primary);
}
.reports-pill--clear {
  color: #b91c1c;
  border-color: rgba(185,28,28,0.3);
}
.reports-pill--clear:hover {
  background: rgba(185,28,28,0.06);
  border-color: #b91c1c;
  color: #b91c1c;
}
.reports-filter-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}
.reports-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}
.reports-filter-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}
.reports-filter-input {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.9rem;
  background: var(--card);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.reports-filter-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13,148,136,0.15);
}
.reports-filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
}
.reports-export-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  color: var(--primary);
  text-decoration: none;
  border: 1px solid var(--primary);
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-right: auto;
  transition: all 0.2s;
}
.reports-export-link:hover {
  background: rgba(13,148,136,0.08);
  color: var(--primary-dark);
}
.reports-export-icon {
  font-size: 1rem;
  opacity: 0.9;
}

/* مؤشرات سريعة */
.reports-quick-kpi {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.reports-quick-item {
  flex: 1;
  min-width: 140px;
  max-width: 200px;
  background: var(--card);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.reports-quick-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.reports-quick-item--orders {
  border-top: 3px solid var(--primary);
  background: linear-gradient(180deg, rgba(13,148,136,0.04) 0%, var(--card) 100%);
}
.reports-quick-item--period {
  border-top: 3px solid #6366f1;
  background: linear-gradient(180deg, rgba(99,102,241,0.05) 0%, var(--card) 100%);
}
.reports-quick-item--rate {
  border-top: 3px solid var(--success);
  background: linear-gradient(180deg, rgba(16,185,129,0.06) 0%, var(--card) 100%);
}
.reports-quick-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}
.reports-quick-item--orders .reports-quick-value { color: var(--primary); }
.reports-quick-item--period .reports-quick-value { color: #6366f1; }
.reports-quick-item--rate .reports-quick-value { color: var(--success); }
.reports-quick-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  display: block;
}

/* ملخص تحليلي */
.reports-insights {
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.75rem;
  border-radius: 14px;
  border-right: 4px solid var(--primary);
  background: linear-gradient(90deg, rgba(13,148,136,0.05) 0%, var(--card) 100%);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.reports-insights-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.75rem;
}
.reports-insights-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.reports-insights-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.4rem 0;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.5;
}
.reports-insights-icon {
  flex-shrink: 0;
  font-size: 1rem;
  opacity: 0.9;
}

/* أقسام وعناوين */
.reports-section {
  margin-bottom: 2rem;
}
.reports-section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 1.25rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--border);
}
.reports-section-icon {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* شبكة الإحصائيات */
.reports-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: 1rem;
}
.reports-stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.15rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}
.reports-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}
.reports-stat-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border-radius: 12px;
  flex-shrink: 0;
}
.reports-stat-body {
  min-width: 0;
}
.reports-stat-value {
  display: block;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}
.reports-stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}
/* ألوان البطاقات */
.reports-stat-card--users .reports-stat-icon { background: rgba(99,102,241,0.12); }
.reports-stat-card--users .reports-stat-value { color: #6366f1; }
.reports-stat-card--providers .reports-stat-icon { background: rgba(13,148,136,0.12); }
.reports-stat-card--providers .reports-stat-value { color: var(--primary); }
.reports-stat-card--beneficiaries .reports-stat-icon { background: rgba(34,197,94,0.12); }
.reports-stat-card--beneficiaries .reports-stat-value { color: #22c55e; }
.reports-stat-card--orders .reports-stat-icon { background: rgba(245,158,11,0.12); }
.reports-stat-card--orders .reports-stat-value { color: #d97706; }
.reports-stat-card--success .reports-stat-icon { background: rgba(16,185,129,0.12); }
.reports-stat-card--success .reports-stat-value { color: var(--success); }
.reports-stat-card--services .reports-stat-icon { background: rgba(139,92,246,0.12); }
.reports-stat-card--services .reports-stat-value { color: #7c3aed; }
.reports-stat-card--categories .reports-stat-icon { background: rgba(236,72,153,0.1); }
.reports-stat-card--categories .reports-stat-value { color: #db2777; }
.reports-stat-card--subscriptions .reports-stat-icon { background: rgba(13,148,136,0.12); }
.reports-stat-card--subscriptions .reports-stat-value { color: var(--primary); }
.reports-stat-card--reviews .reports-stat-icon { background: rgba(234,179,8,0.15); }
.reports-stat-card--reviews .reports-stat-value { color: #ca8a04; }

/* بطاقات الرسوم */
.reports-charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.reports-chart-card {
  padding: 1.5rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s;
}
.reports-chart-card:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}
.reports-chart-card--wide {
  grid-column: 1 / -1;
}
.reports-chart-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.reports-chart-wrap {
  position: relative;
  max-width: 280px;
  margin: 0 auto 1rem;
  height: 240px;
}
.reports-chart-wrap--bar {
  max-width: 100%;
  height: 300px;
}
.reports-chart-wrap--line {
  max-width: 100%;
  height: 300px;
  margin-bottom: 0.5rem;
}
.reports-chart-empty {
  text-align: center;
  padding: 2.5rem 1.5rem;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.reports-chart-empty .reports-empty-icon {
  display: block;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  opacity: 0.5;
}
.reports-chart-empty p {
  margin: 0;
}

.reports-legend-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.reports-legend-list li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
}
.reports-legend-list li:last-child {
  border-bottom: none;
}
.reports-legend-list--inline {
  margin-top: 0.5rem;
}
.reports-legend-label {
  color: var(--text);
}
.reports-legend-count {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
}

/* الجداول */
.reports-table-wrap {
  margin-top: 1rem;
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.reports-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.reports-table th,
.reports-table td {
  padding: 0.75rem 1rem;
  text-align: right;
  border-bottom: 1px solid var(--border);
}
.reports-table th {
  background: linear-gradient(180deg, rgba(13,148,136,0.06) 0%, var(--bg) 100%);
  font-weight: 600;
  color: var(--text);
}
.reports-table tbody tr:nth-child(even) {
  background: rgba(248,250,252,0.6);
}
.reports-table tbody tr:hover {
  background: rgba(13,148,136,0.04);
}
.reports-table td {
  color: var(--text);
}
.reports-city-table {
  margin-top: 1rem;
  overflow-x: auto;
}
.reports-city-table table {
  width: 100%;
  border-collapse: collapse;
}
.reports-city-table th,
.reports-city-table td {
  padding: 0.6rem 1rem;
  text-align: right;
  border-bottom: 1px solid var(--border);
}
.reports-city-table th {
  background: var(--bg);
  font-weight: 600;
  color: var(--text);
}
.reports-city-table td {
  color: var(--text-muted);
}

/* ========== اشتراكات الفنيين - admin_subscriptions.php ========== */
.subs-page {
  padding-bottom: 2rem;
}
.subs-hero {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.subs-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,148,136,0.1) 0%, rgba(15,118,110,0.05) 50%, rgba(45,212,191,0.08) 100%);
  border: 1px solid rgba(13,148,136,0.12);
}
.subs-hero-content {
  position: relative;
  padding: 1.5rem 1.75rem;
}
.subs-hero-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}
.subs-hero-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
  max-width: 38rem;
  line-height: 1.5;
}

.subs-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  margin-bottom: 1.25rem;
  border: 1px solid transparent;
}
.subs-alert-icon {
  flex-shrink: 0;
  font-size: 1.2rem;
  margin-top: 0.1rem;
}
.subs-alert p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}
.subs-alert code {
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  font-size: 0.85em;
}
.subs-alert--success {
  background: linear-gradient(135deg, rgba(16,185,129,0.12) 0%, rgba(16,185,129,0.06) 100%);
  color: #065f46;
  border-color: rgba(16,185,129,0.25);
}
.subs-alert--success code { background: rgba(16,185,129,0.2); }
.subs-alert--error {
  background: linear-gradient(135deg, rgba(239,68,68,0.08) 0%, rgba(239,68,68,0.04) 100%);
  color: #b91c1c;
  border-color: rgba(239,68,68,0.2);
}
.subs-alert--error code { background: rgba(239,68,68,0.15); }

.subs-form-section {
  margin-bottom: 1.5rem;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.subs-form-card {
  padding: 1.5rem 1.75rem;
}
.subs-form-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 1.25rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--border);
}
.subs-form-icon {
  font-size: 1.15rem;
  opacity: 0.9;
}
.subs-add-form .subs-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem 1.25rem;
  align-items: end;
}
.subs-form-field {
  margin-bottom: 0;
}
.subs-form-field label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}
.subs-form-hint {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.subs-form-submit-wrap {
  display: flex;
  align-items: flex-end;
}
.subs-submit-btn {
  padding: 0.6rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
}

.subs-list-section {
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  overflow: hidden;
}
.subs-list-card {
  padding: 0;
}
.subs-list-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  padding: 1.25rem 1.5rem;
  border-bottom: 2px solid var(--border);
  background: linear-gradient(180deg, rgba(13,148,136,0.04) 0%, var(--card) 100%);
}
.subs-list-icon {
  font-size: 1.15rem;
  opacity: 0.9;
}
.subs-empty {
  text-align: center;
  padding: 2.5rem 1.5rem;
}
.subs-empty-icon {
  display: block;
  font-size: 3rem;
  margin-bottom: 0.75rem;
  opacity: 0.5;
}
.subs-empty-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.35rem;
}
.subs-empty-hint {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

.subs-table-wrap {
  overflow-x: auto;
}
.subs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.subs-table th,
.subs-table td {
  padding: 0.75rem 1rem;
  text-align: right;
  border-bottom: 1px solid var(--border);
}
.subs-table th {
  background: linear-gradient(180deg, rgba(13,148,136,0.06) 0%, var(--bg) 100%);
  font-weight: 600;
  color: var(--text);
}
.subs-table tbody tr:nth-child(even) {
  background: rgba(248,250,252,0.6);
}
.subs-table tbody tr:hover {
  background: rgba(13,148,136,0.03);
}
.subs-table .subs-cell-provider {
  display: block;
  font-weight: 600;
  color: var(--text);
}
.subs-table .subs-cell-phone {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}
.subs-table .subs-cell-actions {
  min-width: 200px;
}

/* تغيير الباقة — أزرار بدل القائمة المنسدلة */
.sub-package-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.sub-package-buttons-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}
.sub-package-form {
  display: block;
}
.sub-package-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.sub-package-chip {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  cursor: default;
  border: 2px solid transparent;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.sub-package-chip--current {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border-color: var(--primary-dark);
}
.sub-package-chip--action {
  background: var(--card);
  color: var(--text);
  border: 2px solid var(--border);
  cursor: pointer;
}
.sub-package-chip--action:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(13,148,136,0.06);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(13,148,136,0.15);
}
.sub-package-chip--action:active {
  transform: translateY(0);
}
.sub-package-chip--action:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(13,148,136,0.25);
}

.subs-badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}
.subs-badge--active {
  background: linear-gradient(135deg, rgba(16,185,129,0.2) 0%, rgba(16,185,129,0.12) 100%);
  color: #047857;
  border: 1px solid rgba(16,185,129,0.3);
}
.subs-badge--expired {
  background: linear-gradient(135deg, rgba(100,116,139,0.15) 0%, rgba(100,116,139,0.08) 100%);
  color: #475569;
  border: 1px solid rgba(100,116,139,0.2);
}
.subs-badge--cancelled {
  background: linear-gradient(135deg, rgba(239,68,68,0.12) 0%, rgba(239,68,68,0.06) 100%);
  color: #b91c1c;
  border: 1px solid rgba(239,68,68,0.2);
}

@media (max-width: 768px) {
  .subs-hero-content {
    padding: 1.25rem 1.25rem;
  }
  .subs-hero-title {
    font-size: 1.3rem;
  }
  .subs-add-form .subs-form-grid {
    grid-template-columns: 1fr;
  }
  .subs-form-submit-wrap {
    justify-content: stretch;
  }
  .subs-submit-btn {
    width: 100%;
  }
  .subs-table-wrap {
    margin: 0 -0.5rem;
    border-radius: 0;
  }
  .subs-table th,
  .subs-table td {
    padding: 0.6rem 0.75rem;
    font-size: 0.85rem;
  }
  .subs-table .subs-cell-actions {
    min-width: 160px;
  }
  .sub-actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .sub-package-chips {
    gap: 0.4rem;
  }
  .sub-package-chip {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
  }
}

/* السجلات - logs.php */
.logs-page-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 0 1.5rem;
}

.logs-tabs {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.logs-tab {
  padding: 0.6rem 1.25rem;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.logs-tab:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: rgba(13,148,136,0.05);
}

.logs-tab.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.logs-panel {
  display: none;
}

.logs-panel.active {
  display: block;
}

.logs-card {
  padding: 1.5rem;
  overflow: hidden;
}

.logs-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: var(--text);
}

.logs-empty {
  color: var(--text-muted);
  text-align: center;
  padding: 2rem;
  margin: 0;
}

.logs-table-wrap {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.logs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.logs-table th,
.logs-table td {
  padding: 0.75rem 1rem;
  text-align: right;
  border-bottom: 1px solid var(--border);
}

.logs-table th {
  background: linear-gradient(180deg, rgba(13,148,136,0.08) 0%, var(--bg) 100%);
  font-weight: 600;
  color: var(--text);
}

.logs-table tbody tr:hover {
  background: rgba(13,148,136,0.03);
}

.logs-table td {
  color: var(--text);
}

.logs-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.logs-link:hover {
  text-decoration: underline;
}

.logs-role {
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
}

.logs-role--admin {
  background: #fef3c7;
  color: #b45309;
}

.logs-role--provider {
  background: #dbeafe;
  color: #1d4ed8;
}

.logs-role--beneficiary {
  background: #d1fae5;
  color: #047857;
}

.logs-ip {
  font-size: 0.8rem;
  background: var(--bg);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  color: var(--text-muted);
}

.reports-city-table {
  margin-top: 1rem;
  overflow-x: auto;
}

.reports-city-table table {
  width: 100%;
  border-collapse: collapse;
}

.reports-city-table th,
.reports-city-table td {
  padding: 0.6rem 1rem;
  text-align: right;
  border-bottom: 1px solid var(--border);
}

.reports-city-table th {
  background: var(--bg);
  font-weight: 600;
  color: var(--text);
}

.reports-city-table td {
  color: var(--text-muted);
}

/* تقارير - responsive */
@media (max-width: 768px) {
  .reports-hero-content {
    padding: 1.25rem 1.25rem;
  }
  .reports-hero-title {
    font-size: 1.35rem;
  }
  .reports-toolbar {
    padding: 1rem 1.25rem;
  }
  .reports-filter-form {
    flex-direction: column;
    align-items: stretch;
  }
  .reports-export-link {
    margin-right: 0;
    justify-content: center;
  }
  .reports-quick-item {
    min-width: 100%;
    max-width: none;
  }
  .reports-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .reports-stat-card {
    padding: 1rem;
  }
  .reports-stat-icon {
    width: 42px;
    height: 42px;
    font-size: 1.25rem;
  }
  .reports-stat-value {
    font-size: 1.25rem;
  }
  .reports-charts-grid {
    grid-template-columns: 1fr;
  }
  .reports-chart-wrap--line {
    height: 260px;
  }
}

/* Bootstrap Icons: align and inherit size/color when inside icon wrappers */
.bi {
  display: inline-block;
  vertical-align: -0.125em;
}
.logo-icon .bi,
.header-search-icon .bi,
.admin-nav-icon .bi,
.home-search-label-icon .bi,
.home-service-chip-icon .bi,
.index-providers-icon .bi,
.tc-avatar-fallback .bi,
.pv-report-btn-icon .bi,
.pv-avatar-fallback .bi,
.pv-trust-value .bi,
.pv-services-empty-icon .bi,
.pv-login-cta-icon .bi,
.pv-quick-row .bi,
.pv-report-modal-icon .bi,
.provider-order-city-notice-icon .bi,
.order-info-icon .bi,
.orders-empty-icon .bi,
.orders-dashboard-icon .bi,
.packages-alert-icon .bi,
.packages-success-icon .bi,
.packages-benefit-icon .bi,
.empty-state-icon .bi,
.search-service-avatar--icon .bi,
.search-service-location .bi,
.subs-alert-icon .bi,
.subs-form-icon .bi,
.subs-list-icon .bi,
.subs-empty-icon .bi,
.admin-dash-card-icon .bi,
.admin-dash-alert-icon .bi,
.admin-stat-icon .bi,
.admin-dash-empty-icon .bi,
.reports-stat-icon .bi,
.reports-section-icon .bi,
.reports-empty-icon .bi,
.reports-insights-icon .bi,
.da-alert-icon .bi,
.da-stat-icon .bi,
.da-search-icon .bi,
.da-empty-icon .bi,
.auth-method-icon .bi,
.auth-otp-back-icon .bi {
  font-size: 1em;
  color: inherit;
}
.provider-sub-alert-icon .bi { color: var(--accent); }
.pv-report-btn-icon .bi,
.pv-report-modal-icon .bi { color: var(--danger); }
.packages-success-icon .bi,
.order-rated .bi { color: var(--success); }
.admin-sidebar-close .bi,
.provider-order-modal-close .bi { font-size: 1.25em; }
.admin-nav-icon .bi { font-size: 1.15em; }
.empty-state-icon .bi { font-size: 3rem; color: var(--text-muted); }
.logo-icon .bi { font-size: 1.5rem; }
.da-header-icon .bi { font-size: 1.5rem; }
.reports-empty-icon .bi,
.reports-insights-icon .bi { font-size: 1.1em; }
