/* Support/Help Section Modern Card */
.support-card {
  background: linear-gradient(120deg, #f8fafd 60%, #ede7f6 100%);
  border-radius: 18px;
  box-shadow: 0 4px 18px #4a148c13;
  padding: 20px 18px 16px 18px;
  margin-top: 24px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border: 1.5px solid #e6e2f7;
}
.support-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.support-icon {
  font-size: 1.5rem;
  color: #7c43bd;
  background: #ede7f6;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px #7c43bd22;
}
.support-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: #4a148c;
  letter-spacing: 0.01em;
}
.support-textarea {
  width: 100%;
  padding: 12px 12px 12px 10px;
  border-radius: 12px;
  border: 1.5px solid #e6eef8;
  margin-bottom: 12px;
  font-size: 1rem;
  background: #fff;
  box-shadow: 0 1px 4px #ede7f633;
  transition: border 0.2s;
  resize: vertical;
}
.support-textarea:focus {
  border-color: #b39ddb;
  outline: none;
}
.support-btn {
  width: 100%;
  font-size: 1.01rem;
  padding: 12px 0;
  border-radius: 10px;
  font-weight: 700;
  box-shadow: 0 2px 8px #7c43bd22;
  margin-top: 2px;
}
/* ===== ORDERS PAGE CUSTOM STYLES ===== */
.orders-title {
  color: #4A148C;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
  text-align: right;
}

.orders-filters-bar {
  background: #f7f2fa;
  border-radius: 14px;
  box-shadow: 0 2px 10px #4A148C11;
  padding: 14px 10px 10px 10px;
  margin-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.orders-filters-btns {
  display: flex;
  gap: 7px;
}
.orders-filter-btn {
  background: #fff;
  color: #4A148C;
  border: 1.5px solid #e1d0f3;
  border-radius: 22px;
  padding: 7px 18px;
  font-weight: 700;
  font-size: 0.93rem;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border 0.18s;
}
.orders-filter-btn.active,
.orders-filter-btn:focus {
  background: linear-gradient(90deg,#4A148C 60%,#7c43bd 100%);
  color: #fff;
  border: 1.5px solid #4A148C;
}
.orders-view-switch {
  display: flex;
  gap: 6px;
}
.orders-view-btn {
  background: #ede7f6;
  color: #4A148C;
  border: none;
  border-radius: 18px;
  padding: 6px 14px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.orders-view-btn.active,
.orders-view-btn:focus {
  background: #4A148C;
  color: #fff;
}
.orders-chats-panel {
  margin-bottom: 12px;
}
.orders-summary {
  min-height: 200px;
  display: grid;
  gap: 14px;
}
.order-card {
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: 0 6px 20px rgba(74, 20, 140, 0.1);
  padding: 12px 12px;
  border: 1px solid rgba(74, 20, 140, 0.14);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.order-card:hover {
  box-shadow: 0 12px 32px rgba(74, 20, 140, 0.18);
  transform: translateY(-1px);
}
.order-card:focus-within {
  box-shadow: 0 0 0 3px rgba(74, 20, 140, 0.25);
}
.order-card .order-status {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  background: var(--primary-purple);
  border-radius: 999px;
  padding: 5px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  box-shadow: 0 2px 10px rgba(74, 20, 140, 0.15);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.order-card .order-status.status-new { background: var(--warning); }
.order-card .order-status.status-accepted { background: #1e88e5; }
.order-card .order-status.status-completed { background: var(--positive); }
.order-card .order-status.status-rejected { background: var(--danger); }
.order-card .order-status.status-reopened { background: #7b1fa2; }
.order-card .order-status.status-awaiting_customer_completion { background: var(--warning); }
.order-card .order-title {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--primary-purple);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.order-card-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.order-card-meta {
  min-width: 0;
}
.order-id {
  font-size: 0.82rem;
  color: #58607d;
  margin-bottom: 4px;
}
.order-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #3b1d63;
  margin-bottom: 6px;
}
.order-location,
.order-date {
  font-size: 0.82rem;
  color: #6a6f85;
  margin-top: 3px;
}
.order-worker {
  font-size: 0.85rem;
  color: #4a148c;
  margin-bottom: 6px;
  font-weight: 600;
}
.order-payment {
  font-size: 0.82rem;
  color: #6a6f85;
  margin-top: 6px;
}
.order-payment.paid {
  color: var(--positive);
  font-weight: 600;
}
.order-payment.pending {
  color: var(--warning);
  font-weight: 600;
}
.order-card-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.order-local-hint {
  margin-top: 6px;
  font-size: 0.78rem;
  color: #555;
  text-align: left;
}
.order-card .order-action-btn {
  background: linear-gradient(90deg,#ede7f6 60%,#e3f2fd 100%);
  color: var(--primary-purple);
  border: 1.5px solid var(--primary-purple);
  border-radius: 14px;
  padding: 10px 12px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(74, 20, 140, 0.12);
  transition: box-shadow 0.18s, background 0.18s, color 0.18s, border 0.18s;
  font-family: var(--font);
  letter-spacing: 0.01em;
  min-width: 120px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.order-card .order-action-btn:hover {
  background: linear-gradient(90deg,#7c43bd 60%,#4A148C 100%);
  color: #fff;
  border-color: #7c43bd;
  box-shadow: 0 6px 18px rgba(74, 20, 140, 0.22);
}

/* ===== PROFILE CARD CUSTOM ===== */
.profile-card-main {
  background: #fff;
  border-radius: 20px;
  color: #222;
  text-align: center;
  box-shadow: 0 4px 24px #4A148C18, 0 1.5px 8px #24A1DE11;
  padding: 24px 12px 18px 12px;
  margin-bottom: 22px;
  position: relative;
  overflow: visible;
  border: 1.5px solid #ede7f6;
  transition: box-shadow 0.18s, border 0.18s;
  font-family: 'Cairo', 'Inter', system-ui, sans-serif;
  letter-spacing: 0.01em;
  background-image: linear-gradient(120deg, #f7f2fa 0%, #e3f2fd 100%);
  min-height: 220px;
}
.profile-card-main .profile-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ede7f6 60%, #b3e5fc 100%);
  margin: -48px auto 12px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.7rem;
  border: 3.5px solid #fff;
  box-shadow: 0 4px 18px #24A1DE22;
  transition: box-shadow 0.18s, border 0.18s;
  position: relative;
  z-index: 2;
}
.profile-card-main .profile-avatar:hover {
  box-shadow: 0 8px 32px #24A1DE44;
  border-color: #24A1DE;
}
.profile-card-main .profile-name {
  font-size: 1.18rem;
  font-weight: 800;
  margin: 0 0 2px 0;
  letter-spacing: 0.01em;
  color: #4A148C;
  text-shadow: none;
  font-family: 'Cairo', 'Inter', system-ui, sans-serif;
}
.profile-card-main .profile-email {
  font-size: .93rem;
  opacity: .85;
  margin-bottom: 8px;
  color: #555;
}
.profile-card-main .profile-wallet {
  margin-top: 14px;
  padding: 10px 0 8px 0;
  background: #f7f2fa;
  border-radius: 12px;
  border: 1.5px solid #ede7f6;
  cursor: pointer;
  transition: background 0.18s, border 0.18s;
  color: #4A148C;
  font-weight: 700;
  font-size: 1.01rem;
}
.profile-card-main .profile-wallet:hover {
  background: #ede7f6;
  border-color: #24A1DE;
}

/* ===== CSS RESET & VARIABLES ===== */
:root {
  --primary-purple: #4A148C;
  --primary-blue: #24A1DE;
  --positive: #4caf50;
  --warning: #ff9800;
  --danger: #d32f2f;
  --bg: #ffffff;
  --card: #ffffff;
  --text: #111;
  --muted: #666;
  --border: #e6eef8;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 28px rgba(0,0,0,0.12);
  --font: 'Inter', 'Cairo', system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans Arabic', 'Noto Sans', Helvetica, Arial, sans-serif;
  --nav-height: 60px;
}

/* Dark mode */
:root.dark {
  --bg: #0b0f14;
  --card: #0f1720;
  --text: #e0e0e0;
  --muted: #9aa4b2;
  --border: #1e2c3d;
  --shadow: 0 4px 16px rgba(0,0,0,0.3);
  --shadow-hover: 0 8px 28px rgba(0,0,0,0.4);
}

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

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-weight: 700; line-height: 1.3; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; }
a { text-decoration: none; color: inherit; }

/* ===== CONTAINER ===== */
.container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 12px;
  padding-bottom: calc(var(--nav-height) + 20px);
}

/* ===== HEADER ===== */
header {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}

header h1 {
  font-size: clamp(1.1rem, 4vw, 1.6rem);
  font-weight: 700;
  color: var(--primary-purple);
  white-space: nowrap;
}

.tag {
  color: var(--muted);
  font-size: clamp(0.75rem, 2.5vw, 0.9rem);
  margin: 4px 0;
}

/* ===== SEARCH BAR ===== */
.search-bar {
  display: -webkit-flex;
  display: flex;
  margin: 12px 0;
  gap: 8px;
}

.search-bar input {
  -webkit-flex: 1;
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border-radius: 24px;
  border: 1px solid var(--border);
  font-size: 14px;
  background: var(--card);
  color: var(--text);
  -webkit-appearance: none;
  appearance: none;
}

.search-bar button {
  padding: 10px 14px;
  border: none;
  border-radius: 24px;
  background: var(--primary-blue);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

/* ===== CARDS ===== */
.card {
  background: var(--card);
  padding: 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 12px 0;
  -webkit-transition: transform 0.18s ease, box-shadow 0.18s ease;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

@media (hover: hover) and (pointer: fine) {
  .card:hover {
    -webkit-transform: translateY(-4px);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
  }
}

/* ===== FORM ELEMENTS ===== */
input, select, textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  -webkit-transition: border-color 0.2s ease, box-shadow 0.2s ease;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

select {
  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='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 12px center;
  padding-left: 32px;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--primary-blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(36, 161, 222, 0.15);
}

label {
  display: block;
  font-size: 0.9rem;
  margin: 8px 0 4px;
  font-weight: 600;
}

textarea {
  resize: vertical;
  min-height: 60px;
}

/* ===== BUTTONS ===== */
.primary {
  background: var(--primary-purple);
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  -webkit-tap-highlight-color: transparent;
  -webkit-transition: background 0.2s ease, transform 0.1s ease;
  transition: background 0.2s ease, transform 0.1s ease;
  touch-action: manipulation;
}

.primary:hover { background: #390f6b; }
.primary:active { -webkit-transform: scale(0.97); transform: scale(0.97); }
.primary:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-outline {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--primary-purple);
  color: var(--primary-purple);
  border-radius: 24px;
  background: transparent;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  -webkit-tap-highlight-color: transparent;
  -webkit-transition: background 0.2s ease, color 0.2s ease;
  transition: background 0.2s ease, color 0.2s ease;
  touch-action: manipulation;
}

.btn-outline:hover { background: var(--primary-purple); color: #fff; }
.btn-outline.small {
  padding: 8px 0;
  font-size: 0.97rem;
  border-radius: 14px;
  min-height: 36px;
  box-shadow: 0 2px 8px #4A148C11;
  font-family: 'Cairo', 'Inter', system-ui, sans-serif;
  letter-spacing: 0.01em;
  transition: box-shadow 0.18s, background 0.18s;
}
.primary.small {
  padding: 8px 0;
  font-size: 0.97rem;
  border-radius: 14px;
  min-height: 36px;
  box-shadow: 0 2px 8px #4A148C18;
  font-family: 'Cairo', 'Inter', system-ui, sans-serif;
  letter-spacing: 0.01em;
  transition: box-shadow 0.18s, background 0.18s;
}

/* ===== ICON BEAUTY SYSTEM ===== */
.ui-iconized {
  position: relative;
}

.ui-icon-badge {
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(74,20,140,0.14), rgba(36,161,222,0.18));
  box-shadow: 0 4px 10px rgba(36,161,222,0.15);
  border: 1px solid rgba(74,20,140,0.12);
  font-size: 1rem;
  line-height: 1;
  margin-inline-end: 8px;
  vertical-align: middle;
}

h1 .ui-icon-badge,
h2 .ui-icon-badge,
h3 .ui-icon-badge {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 11px;
}

.feature-card .ui-icon-badge,
.status-tab .ui-icon-badge,
.tab-btn .ui-icon-badge {
  width: 32px;
  height: 32px;
  min-width: 32px;
}

.revenue-icon,
.pm-icon,
.service-icon {
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(74,20,140,0.1), rgba(36,161,222,0.15));
  border: 1px solid rgba(74,20,140,0.12);
  box-shadow: 0 4px 10px rgba(36,161,222,0.12);
}

.bottom-nav a::before {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(74,20,140,0.1), rgba(36,161,222,0.12));
  margin-bottom: 2px;
}

.bottom-nav a.active::before {
  background: rgba(255,255,255,0.2);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.3);
}

/* ===== GLOBAL ANIMATIONS ===== */
@-webkit-keyframes pageIn {
  from { opacity: 0; -webkit-transform: translateY(10px) scale(0.995); }
  to { opacity: 1; -webkit-transform: translateY(0) scale(1); }
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(10px) scale(0.995); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@-webkit-keyframes riseIn {
  from { opacity: 0; -webkit-transform: translateY(12px); }
  to { opacity: 1; -webkit-transform: translateY(0); }
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@-webkit-keyframes navGlow {
  from { box-shadow: 0 0 0 rgba(36, 161, 222, 0); }
  to { box-shadow: 0 4px 16px rgba(36, 161, 222, 0.22); }
}
@keyframes navGlow {
  from { box-shadow: 0 0 0 rgba(36, 161, 222, 0); }
  to { box-shadow: 0 4px 16px rgba(36, 161, 222, 0.22); }
}

body {
  -webkit-animation: pageIn 0.45s ease both;
  animation: pageIn 0.45s ease both;
}

.anim-enter {
  -webkit-animation: riseIn 0.42s cubic-bezier(.2,.7,.1,1) both;
  animation: riseIn 0.42s cubic-bezier(.2,.7,.1,1) both;
}

.card,
.worker-card-pro,
.service-card,
.feature-card,
.list li,
.tab-content {
  -webkit-animation: riseIn 0.35s ease both;
  animation: riseIn 0.35s ease both;
  -webkit-animation-delay: calc(var(--stagger-index, 0) * 40ms);
  animation-delay: calc(var(--stagger-index, 0) * 40ms);
}

.bottom-nav a {
  -webkit-transition: background 0.3s, color 0.3s, -webkit-transform 0.2s ease;
  transition: background 0.3s, color 0.3s, transform 0.2s ease;
}

.bottom-nav a:active {
  -webkit-transform: translateY(-1px) scale(0.98);
  transform: translateY(-1px) scale(0.98);
}

.bottom-nav a.active {
  -webkit-animation: navGlow 0.35s ease both;
  animation: navGlow 0.35s ease both;
}

button,
.btn-outline,
.primary,
.service-card,
.feature-card,
.worker-card-pro {
  -webkit-transition: transform 0.18s ease, box-shadow 0.22s ease, filter 0.2s ease;
  transition: transform 0.18s ease, box-shadow 0.22s ease, filter 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  button:hover,
  .btn-outline:hover,
  .primary:hover {
    -webkit-transform: translateY(-1px);
    transform: translateY(-1px);
  }
}

/* ===== SERVICES GRID ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.service-card {
  background: var(--card);
  border-radius: 14px;
  padding: 12px 8px;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  cursor: pointer;
  border: 2px solid transparent;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  min-height: 80px;
}

.service-card:hover { -webkit-transform: translateY(-4px); transform: translateY(-4px); }
.service-card.active {
  border-color: var(--primary-purple);
  box-shadow: 0 6px 20px rgba(74,20,140,0.12);
}

.service-icon {
  font-size: 28px;
  margin-bottom: 6px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
}

.service-name {
  font-weight: 600;
  font-size: 0.8rem;
  text-align: center;
  word-break: break-word;
}

/* ===== CUSTOMER HOME REFRESH ===== */
.home-hero {
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 12px;
  color: #10243f;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.15) 35%, transparent 58%),
    linear-gradient(130deg, #bde8ff 0%, #e7fff3 52%, #fff1d9 100%);
  border: 1px solid #d6ebfb;
}

.home-hero h2 {
  font-size: clamp(1rem, 3.5vw, 1.35rem);
  margin-bottom: 6px;
}

.home-hero p {
  color: #34536f;
  font-size: .88rem;
}

.smart-finder {
  border: 1px solid #d9e9ff;
  border-radius: 16px;
  background: linear-gradient(145deg, #ffffff 0%, #f4f9ff 100%);
  padding: 14px;
  margin-bottom: 14px;
  box-shadow: 0 8px 18px rgba(40, 91, 152, 0.08);
}

.smart-finder-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.smart-finder-head h3 {
  margin: 0;
  font-size: .98rem;
}

.smart-finder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 8px;
}

.smart-field {
  margin: 0;
  font-size: .8rem;
  color: #27405b;
  position: relative;
}

.smart-field input,
.smart-field select {
  margin-top: 5px;
}

.service-input-wrap {
  margin-top: 5px;
  display: grid;
  grid-template-columns: 1fr 42px;
  gap: 6px;
  align-items: stretch;
}

.service-input-wrap input {
  margin-top: 0;
}

.service-input-toggle {
  border: 1px solid #d5e4fb;
  border-radius: 10px;
  background: #f4f8ff;
  color: #2d4b75;
  font-weight: 700;
  cursor: pointer;
  font-size: .9rem;
}

.service-input-toggle:hover {
  background: #eaf2ff;
}

.service-suggestions {
  position: absolute;
  right: 0;
  left: 0;
  top: calc(100% + 4px);
  z-index: 35;
  background: #fff;
  border: 1px solid #d8e6fb;
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(36, 67, 101, 0.16);
  max-height: 240px;
  overflow-y: auto;
  padding: 6px;
}

.service-suggestion-item {
  width: 100%;
  border: none;
  background: #fff;
  border-radius: 10px;
  text-align: right;
  padding: 9px 10px;
  color: #24405d;
  cursor: pointer;
  font-size: .84rem;
}

.service-suggestion-item:hover {
  background: #eef5ff;
}

.smart-finder-actions {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.smart-finder-actions .primary {
  min-width: 180px;
}

.smart-finder-summary {
  font-size: .82rem;
  color: #4e6379;
  background: #eef5ff;
  border: 1px solid #dbe8fb;
  border-radius: 10px;
  padding: 7px 10px;
  flex: 1;
}

.smart-gps-status {
  margin-top: 8px;
  font-size: .8rem;
  color: #5f7286;
}

.order-selection-recap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  background: #eef5ff;
  border: 1px solid #d5e5fb;
  border-radius: 10px;
  padding: 9px 10px;
  margin-bottom: 8px;
  font-size: .84rem;
  color: #24415c;
}

.services-grid .service-card {
  min-height: 72px;
}

.services-pricing-list {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.service-price-row {
  border: 1px solid #d9e7fb;
  border-radius: 12px;
  background: #f8fbff;
  padding: 9px 10px;
}

.service-price-row strong {
  color: #1f3f64;
  display: block;
  font-size: .88rem;
  margin-bottom: 3px;
}

.service-price-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: .78rem;
  color: #4e6782;
}

.quick-services-block {
  border: 1px dashed #d4e3f9;
  border-radius: 14px;
  padding: 10px;
  background: #fbfdff;
}

#workersNextStep {
  -webkit-animation: riseIn 0.25s ease both;
  animation: riseIn 0.25s ease both;
}

#orderFormSection {
  -webkit-animation: riseIn 0.28s ease both;
  animation: riseIn 0.28s ease both;
}

@media (max-width: 720px) {
  .smart-finder-grid {
    grid-template-columns: 1fr;
  }

  .smart-finder-actions .primary {
    width: 100%;
  }
}

/* ===== WORKER LIST & AVATAR ===== */
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #eef2fb;
  color: var(--primary-purple);
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  font-weight: 700;
  margin-right: 8px;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
}

.worker-row {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  gap: 8px;
}

.worker-info {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  min-width: 0;
}

/* ===== WORKER CARD PRO ===== */

.worker-card-pro {
  padding: 12px 10px;
  background: #fff;
  border: 1.5px solid #4A148C22;
  border-radius: 16px;
  box-shadow: 0 2px 12px #4A148C11;
  transition: box-shadow 0.22s, border-color 0.22s, transform 0.18s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.worker-card-pro .order-btn, .worker-card-pro button.order-btn {
  display: block;
  width: 100%;
  margin: 12px 0 0 0;
  padding: 10px 0;
  background: linear-gradient(90deg,#4A148C 60%,#7c43bd 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px #4A148C22;
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s, transform 0.15s;
}
.worker-card-pro .order-btn:hover, .worker-card-pro button.order-btn:hover {
  background: linear-gradient(90deg,#7c43bd 0%,#4A148C 100%);
  box-shadow: 0 4px 16px #4A148C33;
  transform: translateY(-2px) scale(1.03);
}

@media (hover: hover) and (pointer: fine) {
  .worker-card-pro:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    -webkit-transform: translateY(-2px);
    transform: translateY(-2px);
  }
}

/* ===== BOTTOM NAVIGATION BAR ===== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--card);
  display: -webkit-flex;
  display: flex;
  border-top: 1px solid var(--border);
  z-index: 999;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.bottom-nav a {
  -webkit-flex: 1;
  flex: 1;
  text-align: center;
  padding: 6px 2px;
  color: var(--muted);
  font-size: 0.7rem;
  text-decoration: none;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  gap: 4px;
  -webkit-transition: background 0.3s, color 0.3s;
  transition: background 0.3s, color 0.3s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  border-top: 3px solid transparent;
  min-width: 0;
}

.bottom-nav .nav-icon {
  width: 28px;
  height: 28px;
  display: -webkit-inline-flex;
  display: inline-flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  font-size: 1.1rem;
  -webkit-transition: -webkit-transform 0.2s ease;
  transition: transform 0.2s ease;
}

.bottom-nav .nav-label {
  font-size: 0.7rem;
  line-height: 1.2;
}

.bottom-nav a.active .nav-icon {
  -webkit-transform: scale(1.05);
  transform: scale(1.05);
}

.bottom-nav a.active {
  color: #fff;
  font-weight: 600;
  background: linear-gradient(135deg, #7c43bd 0%, #4A148C 100%);
  border-radius: 12px;
  box-shadow: 0 2px 12px #7c43bd22;
  margin: 4px 3px;
  padding: 4px 2px;
  border-top-color: transparent;
}

/* ===== MODALS ===== */
.modal {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: flex-end;
  align-items: flex-end;
  -webkit-justify-content: center;
  justify-content: center;
  z-index: 2000;
  -webkit-animation: fadeIn 0.2s ease;
  animation: fadeIn 0.2s ease;
}

.modal-content {
  background: var(--card);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 16px;
  width: 100%;
  max-width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  -webkit-animation: slideUp 0.3s ease;
  animation: slideUp 0.3s ease;
}

@-webkit-keyframes slideUp {
  from { -webkit-transform: translateY(100%); opacity: 0; }
  to { -webkit-transform: translateY(0); opacity: 1; }
}
@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@-webkit-keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===== SOS BUTTON ===== */
.sos {
  background: var(--danger);
  color: #fff;
  border: none;
  padding: 12px 18px;
  border-radius: 24px;
  min-width: 70px;
  position: fixed;
  right: 16px;
  bottom: calc(var(--nav-height) + 16px);
  z-index: 998;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  -webkit-animation: pulse 1.6s infinite;
  animation: pulse 1.6s infinite;
  -webkit-tap-highlight-color: transparent;
}

@-webkit-keyframes pulse {
  0% { -webkit-transform: scale(1); box-shadow: 0 0 0 0 rgba(211,47,47,0.6); }
  70% { -webkit-transform: scale(1.03); box-shadow: 0 0 0 12px rgba(211,47,47,0); }
  100% { -webkit-transform: scale(1); box-shadow: 0 0 0 0 rgba(211,47,47,0); }
}
@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(211,47,47,0.6); }
  70% { transform: scale(1.03); box-shadow: 0 0 0 12px rgba(211,47,47,0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(211,47,47,0); }
}

/* ===== DARK/SHARE TOGGLE ===== */
#darkToggleBtn {
  position: fixed;
  left: 14px;
  bottom: calc(var(--nav-height) + 16px);
  background: var(--card);
  padding: 10px;
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  cursor: pointer;
  z-index: 998;
  -webkit-tap-highlight-color: transparent;
}

#shareBtn {
  position: fixed;
  left: 14px;
  bottom: calc(var(--nav-height) + 60px);
  background: var(--primary-purple);
  color: #fff;
  padding: 10px;
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(74,20,140,0.2);
  cursor: pointer;
  z-index: 998;
  -webkit-tap-highlight-color: transparent;
}

/* ===== MAP ===== */
#map { border-radius: 12px; }

.map-modal {
  position: fixed;
  top: 5%;
  left: 3%;
  width: 94%;
  height: 90%;
  background: #fff;
  z-index: 1001;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  border-radius: var(--radius);
}

.map-modal button.close-modal {
  -webkit-align-self: flex-end;
  align-self: flex-end;
  margin: 8px;
  padding: 8px 14px;
  border: none;
  background: #eee;
  border-radius: 12px;
  cursor: pointer;
}

/* ===== CHAT MESSAGES ===== */
#chatMessages div {
  background: #f1f3f5;
  padding: 8px 12px;
  border-radius: 16px;
  margin: 6px 0;
  max-width: 85%;
  word-break: break-word;
}

#chatMessages div.self {
  background: var(--primary-blue);
  color: #fff;
  margin-left: auto;
}

/* ===== LISTS ===== */
.msg { margin-top: 8px; color: green; font-weight: 600; }

.list { list-style: none; padding: 0; margin: 0; }
.list li {
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin: 8px 0;
  display: -webkit-flex;
  display: flex;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  -webkit-align-items: center;
  align-items: center;
}

.urgent {
  background: linear-gradient(90deg, #ffecec, #fff);
  border-color: var(--danger);
}

/* ===== PROFILE ===== */
.profile-header {
  display: -webkit-flex;
  display: flex;
  gap: 16px;
  -webkit-align-items: flex-start;
  align-items: flex-start;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
}

.profile-avatar {
  width: 90px;
  height: 90px;
  border-radius: 18px;
  -o-object-fit: cover;
  object-fit: cover;
  background: #f4f6f8;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
}

.profile-right h2 { margin: 0; }
.profile-stats {
  display: -webkit-flex;
  display: flex;
  gap: 16px;
  margin-top: 8px;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
}
.profile-stats div { min-width: 56px; text-align: center; }
.muted { color: var(--muted); font-size: 0.9rem; }

/* ===== WORK IMAGES GRID ===== */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.work-item {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.work-item img {
  display: block;
  width: 100%;
  height: 80px;
  -o-object-fit: cover;
  object-fit: cover;
}

/* ===== WORKER TAB CONTENT ===== */
.tab-content { display: none; padding: 16px 0; }

/* ===== REVENUE TABLE ===== */
#revenueDetails { border: 1px solid #ccc; margin-top: 8px; width: 100%; border-collapse: collapse; }
#revenueDetails th, #revenueDetails td { border: 1px solid #ccc; padding: 6px 8px; font-size: 0.85rem; text-align: right; }
#revenueDetails th { background: #f4f6f8; }
#grossRevenue { font-weight: 600; }
#fees { color: var(--danger); font-weight: 600; }
#netRevenue { color: var(--positive); font-weight: 700; font-size: 1.1rem; }

/* ===== SECTION TITLE ===== */
.section-title {
  font-weight: 700;
  font-size: 1rem;
  margin: 16px 0 8px;
  color: var(--text);
  border-right: 4px solid var(--primary-purple);
  padding-right: 10px;
}

/* ===== ESTIMATE / PRICE ===== */
.estimate { margin-top: 8px; font-weight: 600; }
.actions {
  display: -webkit-flex;
  display: flex;
  gap: 8px;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  margin-top: 12px;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
}

/* ====================================================
   RESPONSIVE BREAKPOINTS
   ==================================================== */

/* Small phones (< 360px) */
@media screen and (max-width: 359px) {
  :root { --nav-height: 52px; }
  .container { padding: 8px; }

  .services-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .service-card { padding: 8px 4px; }
  .service-icon { font-size: 22px; width: 36px; height: 36px; }
  .service-name { font-size: 0.7rem; }

  .bottom-nav a { font-size: 0.6rem; }
  .bottom-nav a::before { font-size: 16px; }

  header h1 { font-size: 1rem; }
  .card { padding: 12px; border-radius: 12px; }
  input, select, textarea { padding: 9px 10px; font-size: 13px; }
}

/* Normal phones (360px - 480px) */
@media screen and (min-width: 360px) and (max-width: 480px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .service-icon { font-size: 26px; }
}

/* Large phones / Small tablets (481px - 768px) */
@media screen and (min-width: 481px) and (max-width: 768px) {
  .container { max-width: 600px; padding: 16px; }
  .services-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .work-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Tablets (769px+) */
@media screen and (min-width: 769px) {
  :root { --nav-height: 64px; }
  .container { max-width: 700px; padding: 24px; }
  .services-grid { grid-template-columns: repeat(5, 1fr); gap: 12px; }
  .work-grid { grid-template-columns: repeat(4, 1fr); }
  .work-item img { height: 120px; }
  .profile-avatar { width: 110px; height: 110px; }

  .modal-content {
    max-width: 600px;
    border-radius: var(--radius);
  }

  .bottom-nav a { font-size: 0.8rem; }
  .bottom-nav a::before { font-size: 22px; }
}

/* Desktop (1025px+) */
@media screen and (min-width: 1025px) {
  .container { max-width: 800px; padding: 28px; }
  .services-grid { grid-template-columns: repeat(6, 1fr); }
  .card { padding: 22px; }

  .bottom-nav {
    max-width: 800px;
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    border-radius: 16px 16px 0 0;
  }
}

/* Landscape phones */
@media screen and (max-height: 500px) and (orientation: landscape) {
  :root { --nav-height: 48px; }
  .bottom-nav a::before { font-size: 16px; }
  .bottom-nav a { font-size: 0.65rem; padding: 4px 2px; }
  .sos { bottom: calc(var(--nav-height) + 8px); padding: 8px 14px; }
  #darkToggleBtn { bottom: calc(var(--nav-height) + 8px); }
  .card { padding: 10px; margin: 6px 0; }
}

/* Print styles */
@media print {
  .bottom-nav, .sos, #darkToggleBtn, #shareBtn { display: none !important; }
  .container { max-width: 100%; padding: 0; }
  .card { box-shadow: none; border: 1px solid #ccc; }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    -webkit-animation-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    -webkit-transition-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

:focus-visible {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

* {
  -webkit-tap-highlight-color: transparent;
}

/* Fix iOS input zoom */
@supports (-webkit-touch-callout: none) {
  input, select, textarea {
    font-size: 16px !important;
  }
}
/* ===== OFFLINE MODE INDICATOR ===== */
html[data-sync-offline="true"]::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ff6b6b 0%, #ff8787 100%);
  z-index: 10000;
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Offline indicator label */
html[data-sync-offline="true"]::after {
  content: '📴 وضع غير متصل - التغييرات ستُزامَن عند العودة';
  position: fixed;
  top: 8px;
  right: 12px;
  padding: 8px 14px;
  background: #ff6b6b;
  color: white;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  z-index: 9999;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Adjust page top margin when offline indicator is visible */
html[data-sync-offline="true"] body {
  margin-top: 50px;
}

html[data-sync-offline="true"] .navbar {
  margin-top: 50px;
}

html[data-sync-offline="true"] nav {
  margin-top: 50px;
}

/* Reduce visibility of non-essentials during offline */
html[data-sync-offline="true"] .sync-indicator {
  display: inline-block;
  margin-right: 8px;
  padding: 4px 8px;
  background: #fff3cd;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #856404;
}

/* Desktop view for offline indicator */
@media (min-width: 768px) {
  html[data-sync-offline="true"]::after {
    top: 12px;
    right: 20px;
    padding: 10px 16px;
    font-size: 13px;
  }
  
  html[data-sync-offline="true"] body {
    margin-top: 40px;
  }
}

/* Mobile view for offline indicator */
@media (max-width: 467px) {
  html[data-sync-offline="true"]::after {
    content: '📴 وضع غير متصل';
    top: 6px;
    right: 8px;
    padding: 6px 10px;
    font-size: 11px;
  }
  
  html[data-sync-offline="true"] body {
    margin-top: 60px;
  }
}

/* ═══════════════════════════════════════
   Khidmati Lottie Animation Styles
   ═══════════════════════════════════════ */

/* Generic lottie icon container */
.kh-lottie-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  pointer-events: none;
  line-height: 1;
}
.kh-lottie-icon svg {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* Confirmation overlay animation */
.kh-confirmation-overlay {
  animation: khConfFadeIn 0.25s ease forwards;
}
@keyframes khConfFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Refresh overlay animation */
.kh-refresh-overlay {
  animation: khRefreshSlide 0.3s ease forwards;
}
@keyframes khRefreshSlide {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Ensure Lottie icons inside buttons don't break layout */
button .kh-lottie-icon,
a .kh-lottie-icon {
  pointer-events: none;
  vertical-align: middle;
}

/* Bottom nav icon with lottie should size correctly */
.bottom-nav .nav-icon .kh-lottie-icon {
  width: 24px;
  height: 24px;
}

/* Feature nav lottie icons */
.feature-icon .kh-lottie-icon {
  width: 36px;
  height: 36px;
}

/* Verified badge should pulse gently */
#kh-verified-wpBadge,
#kh-verified-profSection {
  pointer-events: auto;
  cursor: default;
  filter: drop-shadow(0 0 3px rgba(33, 150, 243, 0.35));
}