/* مُولَّد آليًا من new-pages.css — لا تحرّره يدويًا.
   أعد التوليد بـ:  py -3.12 scripts/build_css_shared_subset.py
   يحوي فقط القواعد التي يمكن أن تنطبق على الصفحات التي لا تحمّل
   الحزمة الكاملة، بترتيبها الأصلي وفي نفس موضع التتالي. */



.page-shell { max-width: 800px; margin: 0 auto; padding: var(--space-lg); }
.detail-card { background: #fff; border-radius: 16px; padding: 20px; margin-bottom: 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.loading-center { display: flex; justify-content: center; align-items: center; min-height: 200px; }
.text-muted { color: var(--color-text-secondary, #999); font-size: 13px; }

body.mobile-web-parity #top-navbar.nw-global-topbar {
  display: block !important;
}


.btn-back { background: none; border: none; cursor: pointer; padding: 8px; color: var(--color-text, #333); }
.btn-back:hover { color: var(--color-primary, #663D90); }
.page-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.page-header h1 { flex: 1; font-size: 20px; font-weight: 700; margin: 0; }


.form-label { display: block; font-size: 14px; font-weight: 600; color: var(--color-primary, #663D90); margin-bottom: 8px; }
.form-row { display: flex; gap: 12px; }
.form-row .half, .form-group.half { flex: 1; }
.form-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }


.badge { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; }


.success-card { background: #fff; border-radius: 16px; padding: 40px 20px; text-align: center; box-shadow: 0 2px 12px rgba(0,0,0,0.08); }
.success-icon { width: 64px; height: 64px; border-radius: 50%; background: #4CAF50; color: #fff; font-size: 32px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.success-card h2 { margin: 0 0 12px; font-size: 22px; color: #333; }
.success-card p { color: #666; line-height: 1.6; margin-bottom: 20px; }


.btn-sm { padding: 6px 14px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; display: block; }
.btn-danger { background: #F44336; color: #fff; border: none; }
.btn-danger:hover { background: #D32F2F; }
.btn-danger-outline { background: transparent; color: #F44336; border: 1.5px solid #F44336; }
.btn-danger-outline:hover { background: #FFEBEE; }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

@media (max-width: 640px) {
  .page-shell {
    padding: 14px 12px;
  }

  .page-header {
    flex-wrap: wrap;
    align-items: flex-start;
    margin-bottom: 16px;
  }

  .form-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .form-row .half,
  .form-group.half {
    min-width: 0;
  }

  .modal-overlay {
    padding: 12px 0 0;
    align-items: flex-end;
  }

  .modal-sheet {
    width: min(100%, calc(100vw - 12px));
    max-height: min(88dvh, calc(100vh - 12px));
    border-radius: 20px 20px 0 0;
  }

  .modal-header,
  .modal-body {
    padding-inline: 16px;
  }

  .modal-header {
    flex-wrap: wrap;
  }
}

@media (max-width: 360px) {
  .page-shell {
    padding: 12px 10px;
  }

  .detail-card,
  .success-card {
    padding: 16px 14px;
    border-radius: 14px;
  }
}


.pd-cover { position: relative; height: 180px; border-radius: 16px; overflow: hidden; background: linear-gradient(135deg, #663D90, #9C27B0); margin-bottom: 60px; }
.pd-cover img { width: 100%; height: 100%; object-fit: cover; }
.pd-avatar { position: absolute; bottom: -50px; right: 20px; width: 100px; height: 100px; border-radius: 50%; border: 4px solid #fff; overflow: hidden; background: #f0f0f0; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.pd-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pd-name-row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.pd-name-row h2 { margin: 0; font-size: 20px; }
.pd-verified { color: #2196F3; }

.pd-stats { display: flex; justify-content: space-around; background: #fff; border-radius: 16px; padding: 16px; margin-bottom: 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.pd-stat { text-align: center; }
.pd-stat strong { display: block; font-size: 20px; color: var(--color-primary, #663D90); }
.pd-stat span { font-size: 12px; color: #999; }

.subscription-card { background: linear-gradient(135deg, #663D90, #9C27B0); color: #fff; border-radius: 16px; padding: 20px; margin-bottom: 16px; }
.subscription-card h3 { margin: 0 0 8px; font-size: 18px; }

.completion-card { background: #fff; border-radius: 16px; padding: 20px; margin-bottom: 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.completion-bar { height: 8px; background: #eee; border-radius: 4px; overflow: hidden; margin: 8px 0; }


.orders-search { margin-bottom: 16px; }
.orders-search input { width: 100%; }
.status-tabs { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 16px; padding-bottom: 4px; }
.status-tabs::-webkit-scrollbar { display: none; }
.order-card { background: #fff; border-radius: 14px; padding: 16px; margin-bottom: 12px; box-shadow: 0 2px 6px rgba(0,0,0,0.05); cursor: pointer; transition: transform 0.15s; }
.order-card:hover { transform: translateY(-1px); }
.order-card h4 { margin: 0; font-size: 15px; }
.order-card p { margin: 6px 0; font-size: 13px; color: #666; }

@keyframes po-card-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pod-fade-up {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ps-btn-spin {
  to { transform: rotate(360deg); }
}

@keyframes providerRegPanelIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.star { font-size: 20px; }
.star.full, .star.half { color: #FFC107; }
.star.empty { color: #ddd; }


.tab-panel { display: none; }
.tab-panel.active { display: block; }
.tab {
  padding: 10px 16px;
  border: none;
  background: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: #999;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.tab.active {
  color: var(--color-primary, #663D90);
  border-bottom-color: var(--color-primary, #663D90);
}

@keyframes pe-location-spin {
  to { transform: rotate(360deg); }
}

@keyframes asCardHighlightPulse {
  0% {
    transform: translateY(0);
    box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.18), 0 3px 12px rgba(15, 23, 42, 0.04);
  }
  50% {
    transform: translateY(-2px);
    box-shadow: 0 0 0 8px rgba(20, 184, 166, 0.08), 0 20px 36px rgba(15, 118, 110, 0.2);
  }
  100% {
    transform: translateY(0);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.14), 0 16px 34px rgba(15, 118, 110, 0.16);
  }
}

@keyframes asLoadingSweep {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(120%);
  }
}

@keyframes asOrbPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(103, 232, 249, 0.26);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 0 14px rgba(103, 232, 249, 0.12);
  }
}

@keyframes asSkeletonFlow {
  0% {
    background-position: 180% 0;
  }
  100% {
    background-position: -20% 0;
  }
}

@keyframes asFadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


@media (max-width: 480px) {
  .page-shell { padding: var(--space-md, 12px); }
  .nav-grid { grid-template-columns: 1fr; }
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .pd-stats { flex-wrap: wrap; gap: 8px; }
  .rv-bar-row span:first-child { width: 80px; font-size: 11px; }
  .plan-card { padding: 18px; }
}

@keyframes verify-card-enter {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes verify-button-spin {
  to { transform: rotate(360deg); }
}

@media (min-width: 1024px) {
  body.mobile-web-parity .page-shell {
    max-width: min(1220px, calc(100vw - 72px));
    padding: 18px 24px var(--space-2xl);
  }

  body.mobile-web-parity .detail-card {
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  }

  body.mobile-web-parity .page-header h1 {
    font-size: clamp(24px, 2vw, 32px);
  }
}
html[data-theme="dark"] body.page-add-service :is(
  .cat-item, .cat-icon, .add-service-top-link, .add-service-hero-kicker,
  .add-service-hero-art, .add-service-cats-message, .sac-badge,
  [class*="-card"], [class*="-panel"], [class*="-overview"]
):not([class*="hero-btn"]) {
  background: linear-gradient(165deg, rgba(28, 38, 56, 0.96), rgba(22, 31, 46, 0.95)) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #eef5ff !important;
}
html[data-theme="dark"] body.page-additional-services-premium :is(
  .as-provider-strip, .as-hero-badge, .as-main-card, .as-loading-screen,
  .as-loading-skeleton span, [class*="-card"], [class*="-panel"], [class*="-strip"]
) {
  background: linear-gradient(165deg, rgba(28, 38, 56, 0.96), rgba(22, 31, 46, 0.95)) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #eef5ff !important;
}
html[data-theme="dark"] body.page-additional-services-premium .as-notes-field textarea,
html[data-theme="dark"] body.page-add-service :is(input, select, textarea) {
  background: rgba(15, 23, 42, 0.82) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  color: #eef5ff !important;
}

html[data-theme="dark"] body.page-provider-reviews :is(
  .rv-report-select, .rv-report-textarea, .rv-reply-input,
  .form-select, select, textarea, input
) {
  background: rgba(15, 23, 42, 0.82) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  color: #eef5ff !important;
}