* {
  box-sizing: border-box;
}

:root {

  --q-orange: #D48600;
  --q-orange-dark: #B86F00;

  --q-green: #1E7A3A;
  --q-green-dark: #155E2B;
  --q-green-soft: #EAF6EA;

  --q-brown: #6B2D12;
  --q-brown-deep: #4F210D;

  --q-cream: #F7F1E8;
  --q-cream-2: #FBF7F1;

  --q-gold: #E9D7B8;

  --q-white: #FFFFFF;

  --q-text: #333333;
  --q-muted: #7D6A5F;

  --q-border: #E7D8C2;

  --q-red: #B42318;
  --q-red-soft: #FFF0EF;

  --q-shadow:
    0 14px 40px
    rgba(79,33,13,.08);

  --q-shadow-soft:
    0 7px 22px
    rgba(79,33,13,.06);

}


html {
  min-height: 100%;
}


body {

  margin: 0;

  min-height: 100vh;

  background:
    radial-gradient(
      circle at top right,
      rgba(212,134,0,.08),
      transparent 30%
    ),
    linear-gradient(
      180deg,
      #FBF7F1 0%,
      #F7F1E8 100%
    );

  color:
    var(--q-text);

  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Tahoma,
    Arial,
    sans-serif;

}


body::before {

  content: "";

  position: fixed;

  inset: 0;

  pointer-events: none;

  background:
    radial-gradient(
      circle at 15% 20%,
      rgba(30,122,58,.03),
      transparent 26%
    );

  z-index: -1;

}


button,
input,
select,
textarea {
  font: inherit;
}


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


[hidden] {
  display: none !important;
}


/* =====================================================
   TOPBAR
===================================================== */

.topbar {

  position:
    sticky;

  top:
    0;

  z-index:
    100;

  padding:
    9px 14px;

  background:
    rgba(255,255,255,.95);

  border-bottom:
    1px solid
    rgba(231,216,194,.8);

  backdrop-filter:
    blur(18px);

  box-shadow:
    0 3px 18px
    rgba(79,33,13,.04);

}


.topbar-main {

  max-width:
    720px;

  margin:
    auto;

  min-height:
    52px;

  display:
    flex;

  justify-content:
    space-between;

  align-items:
    center;

}


.brand {

  display:
    flex;

  align-items:
    center;

  gap:
    9px;

}


.logo-image {

  width:
    94px;

  height:
    38px;

  object-fit:
    contain;

}


.brand-text {

  display:
    flex;

  flex-direction:
    column;

}


.brand-text strong {

  color:
    var(--q-brown);

  font-size:
    15px;

  font-weight:
    900;

}


.brand-text span {

  margin-top:
    2px;

  color:
    var(--q-muted);

  font-size:
    9px;

}


.notification-action {

  position:
    relative;

  width:
    42px;

  height:
    42px;

  display:
    grid;

  place-items:
    center;

  border:
    1px solid
    var(--q-border);

  border-radius:
    14px;

  background:
    white;

  color:
    var(--q-brown);

  font-size:
    18px;

}


.notification-badge {

  position:
    absolute;

  top:
    2px;

  left:
    2px;

  min-width:
    16px;

  height:
    16px;

  padding:
    0 4px;

  border-radius:
    20px;

  display:
    grid;

  place-items:
    center;

  background:
    var(--q-red);

  color:
    white;

  border:
    2px solid
    white;

  font-size:
    8px;

  font-weight:
    900;

}


.user-actions {

  max-width:
    720px;

  margin:
    5px auto 0;

  display:
    flex;

  justify-content:
    space-between;

  align-items:
    center;

}


.courier-user {

  display:
    flex;

  align-items:
    center;

  gap:
    8px;

  color:
    var(--q-brown);

  font-weight:
    800;

}


.user-icon {

  width:
    35px;

  height:
    35px;

  display:
    grid;

  place-items:
    center;

  border-radius:
    12px;

  background:
    var(--q-green-soft);

}


.logout-btn {

  padding:
    8px 11px;

  font-size:
    11px;

}


/* =====================================================
   CONTAINER
===================================================== */

.container {

  width:
    min(
      720px,
      calc(100% - 18px)
    );

  margin:
    auto;

  padding-bottom:
    24px;

}


/* =====================================================
   LOGIN
===================================================== */

.login-screen {

  min-height:
    calc(100vh - 80px);

  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

}


.login-card {

  position:
    relative;

  width:
    100%;

  max-width:
    430px;

  overflow:
    hidden;

  padding:
    30px 22px 24px;

  background:
    rgba(255,255,255,.96);

  border:
    1px solid
    var(--q-border);

  border-radius:
    30px;

  box-shadow:
    var(--q-shadow);

}


.login-glow {

  position:
    absolute;

  width:
    180px;

  height:
    180px;

  top:
    -90px;

  left:
    -80px;

  border-radius:
    50%;

  background:
    rgba(212,134,0,.14);

}


.login-logo {

  display:
    flex;

  justify-content:
    center;

  margin-bottom:
    8px;

}


.login-logo img {

  width:
    135px;

}


.login-kicker {

  display:
    block;

  text-align:
    center;

  color:
    var(--q-green);

  font-size:
    11px;

  font-weight:
    900;

  letter-spacing:
    .8px;

}


.login-card h1 {

  margin:
    8px 0 5px;

  text-align:
    center;

  color:
    var(--q-brown);

  font-size:
    31px;

}


.login-card > p {

  margin:
    0 0 20px;

  color:
    var(--q-muted);

  text-align:
    center;

  font-size:
    13px;

  line-height:
    1.7;

}


label {

  display:
    block;

  margin-top:
    15px;

  color:
    var(--q-brown-deep);

  font-size:
    12px;

  font-weight:
    800;

}


input,
textarea,
select {

  width:
    100%;

  margin-top:
    7px;

  padding:
    14px;

  border:
    1px solid
    var(--q-border);

  border-radius:
    15px;

  outline:
    none;

  background:
    white;

  color:
    var(--q-text);

}


.primary,
.secondary {

  min-height:
    46px;

  padding:
    12px 15px;

  border-radius:
    14px;

  font-weight:
    900;

  border:
    1px solid transparent;

}


.primary {

  background:
    linear-gradient(
      135deg,
      #1E7A3A,
      #26934B
    );

  color:
    white;

  box-shadow:
    0 8px 20px
    rgba(30,122,58,.17);

}


.secondary {

  background:
    white;

  color:
    var(--q-brown);

  border-color:
    var(--q-border);

}


.login-submit {

  width:
    100%;

  margin-top:
    20px;

  display:
    flex;

  justify-content:
    center;

  align-items:
    center;

  gap:
    12px;

}


.message {

  min-height:
    22px;

  margin-top:
    11px;

  color:
    var(--q-red);

  text-align:
    center;

  font-size:
    12px;

}


/* =====================================================
   WELCOME
===================================================== */

.dashboard-welcome {

  width: 100%;

  margin: 0;

  padding: 4px 0 3px !important;

  display: flex;

  justify-content: center;

  align-items: center;

  text-align: center;

  direction: rtl;

  background: transparent !important;

  border: none !important;

  box-shadow: none !important;

  min-height: 0 !important;
}

/* =====================================================
   FAITH MESSAGE
===================================================== */

.welcome-faith {

  width: 100%;

  display: flex;

  flex-direction: row;

  align-items: center;

  justify-content: center;

  gap: 8px;

  direction: rtl;

  white-space: nowrap;

  overflow: hidden;
}


.welcome-bismillah {

  font-family:
    "Amiri Quran",
    "Amiri",
    "Noto Naskh Arabic",
    "Traditional Arabic",
    serif;

  color:
    var(--q-brown-deep);

  font-size: 17px;

  font-weight: 400;

  line-height: 1.4;

  white-space: nowrap;
}


.welcome-ayah {

  margin: 0;

  font-family:
    "Amiri Quran",
    "Amiri",
    "Noto Naskh Arabic",
    "Traditional Arabic",
    serif;

  color:
    var(--q-orange-dark);

  font-size: 15px;

  font-weight: 400;

  line-height: 1.4;

  white-space: nowrap;
}

.dashboard-welcome h1 {

  margin:
    4px 0;

  color:
    var(--q-brown);

  font-size:
    26px;

  line-height:
    1.25;

}


.dashboard-welcome p {

  margin:
    4px 0 0;

  color:
    var(--q-muted);

  font-size:
    11px;

}


.welcome-avatar {

  width:
    57px;

  height:
    57px;

  display:
    grid;

  place-items:
    center;

  border-radius:
    19px;

  background:
    linear-gradient(
      145deg,
      #FFF8E8,
      #EAF6EA
    );

  border:
    1px solid
    var(--q-border);

  font-size:
    26px;

}


/* =====================================================
   GENERAL
===================================================== */

.section-kicker {

  display:
    block;

  color:
    var(--q-orange);

  font-size:
    10px;

  font-weight:
    900;

}


/* =====================================================
   STATUS
===================================================== */

.status-card {
  position: relative;
  overflow: hidden;

  padding: 13px 15px;

  border: 1px solid rgba(30,122,58,.14);
  border-radius: 20px;

  background:
    linear-gradient(
      135deg,
      #EAF6EA 0%,
      #FFF8E8 100%
    );

  box-shadow: var(--q-shadow-soft);
}


.status-decoration {

  position:
    absolute;

  width:
    170px;

  height:
    170px;

  left:
    -80px;

  bottom:
    -90px;

  border-radius:
    50%;

  background:
    rgba(30,122,58,.07);

}


.status-topline {

  display:
    flex;

  align-items:
    center;

  gap:
    7px;

}


.status-live-dot {

  width:
    7px;

  height:
    7px;

  border-radius:
    50%;

  background:
    var(--q-green);

}


.status-card h2 {
  margin: 4px 0 2px;

  color: var(--q-green-dark);

  font-size: 19px;
}


.status-card p {
  margin: 0;

  color: var(--q-muted);

  font-size: 10px;
}


.status-actions {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 7px;

  margin-top: 11px;
}


.status-btn {
  min-height: 40px;

  display: flex;

  justify-content: center;
  align-items: center;

  gap: 5px;

  border: 1px solid rgba(107,45,18,.07);

  border-radius: 13px;

  background: white;

  font-size: 10px;
  font-weight: 900;
}


.status-btn.available {

  color:
    var(--q-green);

  box-shadow:
    0 7px 18px
    rgba(30,122,58,.10);

}


.status-btn.offline {

  color:
    var(--q-muted);

}


/* =====================================================
   ORDERS
===================================================== */

.orders-section {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
.orders-list {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.section-head {

  display:
    flex;

  justify-content:
    space-between;

  align-items:
    flex-end;

  gap:
    10px;

  margin-bottom:
    11px;

}


.section-head h2 {

  margin:
    3px 0;

  color:
    var(--q-brown);

  font-size:
    21px;

}


.section-head p {

  margin:
    0;

  color:
    var(--q-muted);

  font-size:
    10px;

}


.refresh-btn {

  width:
    42px;

  height:
    42px;

  display:
    grid;

  place-items:
    center;

  border:
    1px solid
    var(--q-border);

  border-radius:
    14px;

  background:
    white;

  color:
    var(--q-orange);

  font-size:
    23px;

}


.orders-list {

  display:
    grid;

  gap:
    12px;

}


.order-card {

  position:
    relative;

  overflow:
    hidden;

  padding:
    15px;

  border:
    1px solid
    var(--q-border);

  border-radius:
    21px;

  background:
    white;

  box-shadow:
    var(--q-shadow-soft);

  animation:
    orderAppear
    .42s
    ease
    both;

}


@keyframes orderAppear {

  from {
    opacity: 0;
    transform:
      translateY(14px)
      scale(.98);
  }

  to {
    opacity: 1;
    transform:
      translateY(0)
      scale(1);
  }

}


/* =====================================================
   NEW OFFER — CONTINUOUS
===================================================== */

.order-card-offer {

  border:
    2px solid
    rgba(212,134,0,.38);

  background:
    linear-gradient(
      145deg,
      #FFF8E8,
      #FFFFFF
    );

  animation:
    newOfferPulse
    1.35s
    ease-in-out
    infinite;

}


.order-card-offer::before {
  content: "طلب جديد";

  top: 55px !important;
  left: auto !important;
  right: 20px !important;

  padding: 8px 16px !important;
  border-radius: 30px !important;

  background: var(--q-orange) !important;
  color: #fff !important;

  font-size: 15px !important;
  font-weight: 900 !important;

  box-shadow: 0 4px 10px rgba(212,134,0,.16);

  animation: offerBadgePulse 1s ease-in-out infinite;

  z-index: 20 !important;
}


@keyframes newOfferPulse {

  0%,
  100% {

    transform:
      scale(1);

    box-shadow:
      0 8px 25px
      rgba(212,134,0,.10);

  }

  50% {

    transform:
      scale(1.012);

    box-shadow:
      0 12px 32px
      rgba(212,134,0,.22);

  }

}


@keyframes offerBadgePulse {

  0%,
  100% {

    transform:
      scale(1);

  }

  50% {

    transform:
      scale(1.08);

  }

}


.order-card-offer .offer {

  animation:
    offerGlow
    1.5s
    ease-in-out
    infinite;

}


@keyframes offerGlow {

  0%,
  100% {

    box-shadow:
      0 0 0
      rgba(212,134,0,0);

  }

  50% {

    box-shadow:
      0 0 22px
      rgba(212,134,0,.12);

  }

}


/* =====================================================
   ORDER CONTENT
===================================================== */

.order-head {

  display:
    flex;

  justify-content:
    space-between;

  gap:
    10px;

  padding-bottom:
    11px;

  border-bottom:
    1px solid
    var(--q-border);

}


.order-head b {

  display:
    block;

  color:
    var(--q-brown);

  font-size:
    14px;

}


.order-head small {

  display:
    block;

  margin-top:
    4px;

  color:
    var(--q-muted);

  font-size:
    9px;

}


.badge {

  align-self:
    flex-start;

  padding:
    6px 9px;

  border:
    1px solid
    var(--q-border);

  border-radius:
    30px;

  background:
    var(--q-cream-2);

  color:
    var(--q-brown);

  font-size:
    9px;

  font-weight:
    900;

  white-space:
    nowrap;

}


.offer {

  margin:
    12px 0;

  padding:
    13px;

  border:
    1px solid
    rgba(212,134,0,.24);

  border-radius:
    16px;

  background:
    #FFF8E8;

}


.offer h3 {

  margin:
    0 0 7px;

  color:
    var(--q-brown);

  font-size:
    14px;

}


.offer p {

  margin:
    5px 0;

  color:
    var(--q-muted);

  font-size:
    10px;

  line-height:
    1.7;

}


.order-grid {

  display:
    grid;

  grid-template-columns:
    1fr 1fr;

  gap:
    8px;

  margin-top:
    12px;

}


.info {

  padding:
    10px;

  border:
    1px solid
    rgba(231,216,194,.65);

  border-radius:
    13px;

  background:
    var(--q-cream-2);

}


.info small {

  display:
    block;

  margin-bottom:
    4px;

  color:
    var(--q-muted);

  font-size:
    9px;

}


.info b {

  display:
    block;

  color:
    var(--q-brown);

  font-size:
    11px;

  line-height:
    1.5;

  word-break:
    break-word;

}


.actions {

  display:
    grid;

  grid-template-columns:
    1fr 1fr;

  gap:
    8px;

  margin-top:
    12px;

}


.actions button,
.actions a {

  min-width:
    0;

  display:
    flex;

  justify-content:
    center;

  align-items:
    center;

  text-align:
    center;

  text-decoration:
    none;

  font-size:
    10px;

}


/* =====================================================
   STATS
===================================================== */

.stats-grid {

  direction:
    ltr;

  display:
    grid;

  grid-template-columns:
    1fr 1fr;

  gap:
  6px;

margin-top:
  15px;

}


.stat-card {

  min-height: 72px;

  display:
    flex;

  direction:
    rtl;

  align-items:
    center;

  gap: 5px;

  padding: 7px;

  border:
    1px solid
    var(--q-border);

  border-radius:
    19px;

  background:
    white;

  box-shadow:
    var(--q-shadow-soft);

}


.stat-completed {

  grid-column:
    2;

  grid-row:
    1;

  background:
    linear-gradient(
      145deg,
      #EAF6EA,
      #FFFFFF
    );

}


.stat-rejected {

  grid-column:
    2;

  grid-row:
    2;

  background:
    linear-gradient(
      145deg,
      #FFF0EF,
      #FFFFFF
    );

}


.stat-today {

  grid-column:
    1;

  grid-row:
    1;

  background:
    linear-gradient(
      145deg,
      #FFF8E8,
      #FFFFFF
    );

}


.stat-total {

  grid-column:
    1;

  grid-row:
    2;

  background:
    linear-gradient(
      145deg,
      #F6EBDD,
      #FFFFFF
    );

}


.stat-icon {
  width: 27px;
  height: 27px;
  flex: 0 0 27px;

  display: grid;
  place-items: center;

  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}


.stat-completed .stat-icon {

  background:
    #D9EFD9;

  color:
    var(--q-green);

}


.stat-rejected .stat-icon {

  background:
    #F9D8D4;

  color:
    var(--q-red);

}


.stat-today .stat-icon {

  background:
    #F9E4B5;

  color:
    var(--q-orange-dark);

}


.stat-total .stat-icon {

  background:
    var(--q-gold);

  color:
    var(--q-brown);

}


.stat-card small {
  display: block;
  color: var(--q-muted);
  font-size: 9px !important;
  line-height: 1.3;
}


.stat-card strong {
  display: block;
  margin-top: 4px;
  color: var(--q-brown);
  font-size: 14px !important;
  font-weight: 900;
  line-height: 1.2;
}


/* =====================================================
   COMPLETED
===================================================== */

.completed-section {

  margin-top:
    28px;

}


.completed-section .order-card {

  animation:
    completedAppear
    .42s
    ease
    both;

}


@keyframes completedAppear {

  from {

    opacity:
      0;

    transform:
      translateY(10px);

  }

  to {

    opacity:
      1;

    transform:
      translateY(0);

  }

}


/* =====================================================
   PROFILE / RATING
===================================================== */

.profile-card {

  display:
    flex;

  align-items:
    center;

  gap:
    13px;

  margin-top:
    26px;

  padding:
    18px;

  border:
    1px solid
    var(--q-border);

  border-radius:
    22px;

  background:
    white;

  box-shadow:
    var(--q-shadow-soft);

}


.profile-avatar {

  width:
    58px;

  height:
    58px;

  flex:
    0 0 58px;

  display:
    grid;

  place-items:
    center;

  border-radius:
    18px;

  background:
    linear-gradient(
      145deg,
      #FFF8E8,
      #EAF6EA
    );

  font-size:
    26px;

}


.profile-info h2 {

  margin:
    4px 0;

  color:
    var(--q-brown);

  font-size:
    18px;

}


.profile-info p {

  margin:
    0;

  color:
    var(--q-muted);

  font-size:
    11px;

}


.profile-phone {

  display:
    block;

  margin-top:
    5px;

  color:
    var(--q-muted);

  font-size:
    9px;

}


.rating {

  display:
    flex;

  align-items:
    center;

  gap:
    5px;

  margin-top:
    7px;

}


.rating span {
  color: #D4AF37;
}


.rating strong {

  color:
    var(--q-brown);

}


.rating small {

  color:
    var(--q-muted);

  font-size:
    9px;

}


/* =====================================================
   LOCATION — LAST
===================================================== */

.premium-location-card {

  margin-top:
    28px;

}


.location-card {

  display:
    grid;

  grid-template-columns:
    48px 1fr 30px;

  gap:
    11px;

  align-items:
    center;

  padding:
    15px;

  border:
    1px solid
    var(--q-border);

  border-radius:
    21px;

  background:
    white;

  box-shadow:
    var(--q-shadow-soft);

}


.location-icon {

  width:
    48px;

  height:
    48px;

  display:
    grid;

  place-items:
    center;

  border-radius:
    15px;

  background:
    #FFF3D8;

  font-size:
    22px;

}


.location-title-row {

  display:
    flex;

  justify-content:
    space-between;

  align-items:
    flex-start;

  gap:
    8px;

}


.location-card h3 {

  margin:
    3px 0;

  color:
    var(--q-brown);

  font-size:
    16px;

}


.location-card p {

  margin:
    3px 0;

  color:
    var(--q-muted);

  font-size:
    10px;

  line-height:
    1.5;

}


.location-card small {

  color:
    var(--q-muted);

  font-size:
    9px;

}


.location-live {

  padding:
    4px 7px;

  border-radius:
    20px;

  background:
    var(--q-green-soft);

  color:
    var(--q-green);

  font-size:
    8px;

  font-weight:
    900;

}


.location-pulse-btn {

  width:
    28px;

  height:
    28px;

  display:
    grid;

  place-items:
    center;

  border-radius:
    50%;

  background:
    #EEF7EE;

  color:
    var(--q-green);

  animation:
    livePulse
    1.6s
    ease-in-out
    infinite;

}


@keyframes livePulse {

  0%,
  100% {

    box-shadow:
      0 0 0
      rgba(30,122,58,.0);

  }

  50% {

    box-shadow:
      0 0 0 7px
      rgba(30,122,58,.08);

  }

}


/* =====================================================
   PERMISSION
===================================================== */

.permission-card {

  margin-top:
    10px;

  padding:
    15px;

  display:
    grid;

  grid-template-columns:
    1fr auto;

  gap:
    10px;

  align-items:
    center;

  border:
    1px solid
    var(--q-gold);

  border-radius:
    18px;

  background:
    #FFF8E8;

}


.permission-card strong {

  color:
    var(--q-brown);

  font-size:
    12px;

}


.permission-card p {

  margin:
    4px 0 0;

  color:
    var(--q-muted);

  font-size:
    10px;

  line-height:
    1.5;

}


.permission-card .primary {

  min-width:
    104px;

  min-height:
    42px;

  font-size:
    10px;

}


/* =====================================================
   EMPTY / LOADING
===================================================== */

.empty,
.loading,
.error {

  padding:
    24px 14px;

  border:
    1px dashed
    var(--q-border);

  border-radius:
    18px;

  background:
    rgba(255,255,255,.72);

  text-align:
    center;

  color:
    var(--q-muted);

  font-size:
    11px;

}


.error {

  color:
    var(--q-red);

  background:
    var(--q-red-soft);

}


/* =====================================================
   MODAL
===================================================== */

.modal {

  position:
    fixed;

  inset:
    0;

  z-index:
    500;

  display:
    flex;

  justify-content:
    center;

  align-items:
    center;

  padding:
    12px;

  background:
    rgba(49,27,15,.58);

  backdrop-filter:
    blur(7px);

}


.modal-box {

  position:
    relative;

  width:
    min(
      680px,
      100%
    );

  max-height:
    90vh;

  overflow:
    auto;

  padding:
    24px 18px;

  border:
    1px solid
    var(--q-border);

  border-radius:
    24px;

  background:
    white;

  box-shadow:
    0 25px 70px
    rgba(0,0,0,.22);

}


.modal-brand {

  display:
    flex;

  justify-content:
    center;

}


.modal-brand img {

  width:
    90px;

}


.modal-kicker {

  display:
    block;

  margin-top:
    5px;

  color:
    var(--q-green);

  text-align:
    center;

  font-size:
    9px;

  font-weight:
    900;

  letter-spacing:
    .8px;

}


.modal-box h2 {

  margin:
    7px 0 15px;

  color:
    var(--q-brown);

  text-align:
    center;

  font-size:
    21px;

}


.close {

  position:
    absolute;

  top:
    12px;

  left:
    12px;

  width:
    38px;

  height:
    38px;

  display:
    grid;

  place-items:
    center;

  border:
    1px solid
    var(--q-border);

  border-radius:
    50%;

  background:
    white;

  color:
    var(--q-brown);

  font-size:
    22px;

}


@media (min-width: 768px) {

  .container {

    width:
      min(
        900px,
        calc(100% - 40px)
      );

  }

  .stats-grid {

    max-width:
      560px;

  }

  .orders-list {

    grid-template-columns:
      repeat(
        2,
        minmax(0,1fr)
      );

  }

}


@media (max-width: 520px) {

  .order-grid {

    grid-template-columns:
      1fr;

  }

  .actions {

    grid-template-columns:
      1fr;

  }

  .permission-card {

    grid-template-columns:
      1fr;

  }

  .permission-card .primary {

    width:
      100%;

  }

}

.courier-header-stars,
.courier-header-stars .star,
.rating span,
.rating .stars,
.rating .star {
  color: #FFD700 !important;
  -webkit-text-fill-color: #FFD700 !important;

  text-shadow:
    0 1px 1px rgba(120, 80, 0, 0.35),
    0 0 3px rgba(255, 215, 0, 0.45);
}

.courier-header-stars .empty-star {
  color: #d6d6d6 !important;
  -webkit-text-fill-color: #d6d6d6 !important;
  text-shadow: none !important;
}


/* =====================================================
   QURA DELIVERY — PROFESSIONAL ORDER CARD
===================================================== */

.order-card {
  position: relative !important;
  overflow: hidden !important;

  padding: 11px !important;

  border: 1px solid rgba(107,45,18,.12) !important;
  border-radius: 20px !important;

  background:
    linear-gradient(
      145deg,
      #FFFFFF 0%,
      #FFFDF9 100%
    ) !important;

  box-shadow:
    0 7px 24px rgba(107,45,18,.08) !important;

  animation:
    quraOrderAppear
    .38s
    cubic-bezier(.22,.61,.36,1)
    both !important;
}


/* =====================================================
   دخول الكارت
===================================================== */

@keyframes quraOrderAppear {

  from {
    opacity: 0;
    transform:
      translateY(10px)
      scale(.985);
  }

  to {
    opacity: 1;
    transform:
      translateY(0)
      scale(1);
  }
}


/* =====================================================
   عرض طلب جديد
===================================================== */

.order-card-offer {

  border:
    1.5px solid
    rgba(212,134,0,.34) !important;

  background:
    linear-gradient(
      145deg,
      #FFF8E8 0%,
      #FFFFFF 72%
    ) !important;

  animation:
    quraNewOffer
    2.4s
    ease-in-out
    infinite !important;
}


@keyframes quraNewOffer {

  0%,
  100% {
    box-shadow:
      0 7px 24px
      rgba(212,134,0,.08);
  }

  50% {
    box-shadow:
      0 9px 28px
      rgba(212,134,0,.18);
  }
}


/* =====================================================
   شارة طلب جديد
===================================================== */

.order-card-offer::before {

  top: 8px !important;
  left: 8px !important;

  padding:
    4px 8px !important;

  border-radius:
    20px !important;

  background:
    var(--q-orange) !important;

  font-size:
    8px !important;

  box-shadow:
    0 4px 10px
    rgba(212,134,0,.16);
}


/* =====================================================
   رأس الطلب
===================================================== */

.order-head {

  padding-bottom:
    8px !important;

  gap:
    8px !important;
}


.order-head b {

  font-size:
    14px !important;

  line-height:
    1.4 !important;
}


.order-head small {

  margin-top:
    2px !important;

  font-size:
    8px !important;
}


.badge {

  padding:
    5px 8px !important;

  border-radius:
    20px !important;

  font-size:
    8px !important;
}


/* =====================================================
   الطلب المجدول
===================================================== */

.scheduled-badge {

  margin-top:
    9px !important;

  padding:
    9px 10px !important;

  border-radius:
    13px !important;

  background:
    linear-gradient(
      135deg,
      #F7F1FF,
      #FCF9FF
    ) !important;

  border:
    1px solid
    #E1D6F2 !important;

  color:
    var(--q-brown) !important;

  font-size:
    13px !important;
}


.scheduled-badge span {

  display:
    inline-block;

  margin-top:
    2px;

  font-size:
    11px !important;
}


/* =====================================================
   عرض الطلب الجديد
===================================================== */

.order-card .offer {

  margin:
    9px 0 !important;

  padding:
    10px !important;

  border:
    1px solid
    rgba(212,134,0,.20) !important;

  border-radius:
    15px !important;

  background:
    linear-gradient(
      145deg,
      #FFF8E8,
      #FFFFFF
    ) !important;
}


.order-card .offer > div:first-child {

  font-size:
    24px !important;

  margin-bottom:
    2px !important;
}


.order-card .offer h3 {

  margin:
    0 0 4px !important;

  font-size:
    13px !important;
}


.order-card .offer p {

  margin:
    3px 0 7px !important;

  font-size:
    9px !important;
}


.order-card .offer > div:nth-of-type(2) {

  font-size:
    16px !important;

  margin-bottom:
    4px !important;
}


/* =====================================================
   أزرار القبول والرفض
===================================================== */

.order-card .actions {

  gap:
    6px !important;

  margin-top:
    8px !important;
}


.order-card .actions button {

  min-height:
    40px !important;

  border-radius:
    12px !important;

  font-size:
    10px !important;

  font-weight:
    900 !important;

  transition:
    transform .18s ease,
    box-shadow .18s ease;
}


.order-card .actions button:active {

  transform:
    scale(.97);
}


/* =====================================================
   صندوق الموقع
===================================================== */

.order-location-card {

  margin-top:
    9px !important;

  padding:
    11px !important;

  border-radius:
    16px !important;

  background:
    #F8F9FA !important;

  border:
    1px solid
    #E4E7EA !important;

  box-shadow:
    0 3px 12px
    rgba(80,60,40,.035);
}


/* عنوان الموقع */

.order-location-card > div:first-child {

  margin-bottom:
    7px !important;
}


.order-location-card small {

  font-size:
    9px !important;

  margin-bottom:
    2px !important;

  color:
    var(--q-muted) !important;
}


.order-location-card b {

  font-size:
    12px !important;

  color:
    var(--q-brown);
}


/* الأيقونة */

.order-location-card span {

  font-size:
    18px !important;
}


/* زر الخريطة */

.order-location-card a {

  min-height:
    40px !important;

  border-radius:
    11px !important;

  font-size:
    10px !important;

  font-weight:
    900 !important;

  background:
    #FFFFFF !important;

  border:
    1px solid
    #DCDDE0 !important;

  transition:
    transform .18s ease,
    box-shadow .18s ease;
}


.order-location-card a:active {

  transform:
    scale(.98);

}


/* المسافة */

.order-location-card > div:last-child {

  margin-top:
    6px !important;

  font-size:
    10px !important;

  color:
    #6F6B67 !important;
}


/* =====================================================
   شريط المسافة بين المندوب والمتجر
===================================================== */

.route-distance {

  margin-top:
    8px !important;

  padding:
    8px !important;

  border-radius:
    12px !important;

  background:
    #F7F8F8 !important;

  color:
    #6F6B67 !important;

  font-size:
    10px !important;
}


/* =====================================================
   حالة الطلب المقبول
===================================================== */

.accepted-banner {

  margin-top:
    9px !important;

  padding:
    9px 12px !important;

  border-radius:
    14px !important;

  background:
    linear-gradient(
      135deg,
      #EDF8F0,
      #F7FBF8
    ) !important;

  border:
    1px solid
    #CFE5D5 !important;
}


.accepted-banner div:first-child {

  font-size:
    14px !important;
}


.accepted-banner div:last-child {

  margin-top:
    3px !important;

  font-size:
    10px !important;
}


/* =====================================================
   بيانات العميل
===================================================== */

.customer-info {

  margin-top:
    9px !important;

  padding:
    11px !important;

  border-radius:
    16px !important;

  background:
    #FFFFFF !important;

  border:
    1px solid
    #E6E3DF !important;
}


.customer-info small {

  font-size:
    9px !important;
}


.customer-info b {

  font-size:
    14px !important;

  margin-bottom:
    7px !important;
}


.customer-info a {

  min-height:
    39px !important;

  border-radius:
    11px !important;

  font-size:
    10px !important;

  font-weight:
    900 !important;
}


/* =====================================================
   ملاحظات العميل
===================================================== */

.customer-note {

  margin-top:
    9px !important;

  padding:
    10px 12px !important;

  border-radius:
    14px !important;

  background:
    linear-gradient(
      135deg,
      #FFF9EF,
      #FFFCF7
    ) !important;

  border:
    1px solid
    #E8D9C6 !important;
}


.customer-note small {

  margin-bottom:
    3px !important;

  font-size:
    9px !important;

  color:
    var(--q-brown);
}


.customer-note div {

  line-height:
    1.55 !important;

  font-size:
    10px !important;

  font-weight:
    700 !important;
}


/* =====================================================
   زر مراحل الرحلة
===================================================== */

.order-card button {

  transition:
    transform .18s ease,
    box-shadow .18s ease,
    opacity .18s ease;
}


.order-card button:active {

  transform:
    scale(.975);
}


/* =====================================================
   مكتمل
===================================================== */

.completed-banner {

  margin-top:
    10px !important;

  padding:
    10px !important;

  border-radius:
    14px !important;

  background:
    linear-gradient(
      135deg,
      #EDF8F0,
      #F7FBF8
    ) !important;

  border:
    1px solid
    #CFE5D5 !important;

  font-size:
    11px !important;
}


/* =====================================================
   موبايل صغير
===================================================== */

@media (max-width: 420px) {

  .order-card {

    padding:
      9px !important;

    border-radius:
      18px !important;
  }

  .order-head b {

    font-size:
      13px !important;
  }

  .order-location-card {

    padding:
      10px !important;
  }

  .order-card .offer {

    padding:
      9px !important;
  }

  .order-card .actions button {

    min-height:
      38px !important;

    font-size:
      9px !important;
  }

}

/* رسالة التوكل داخل كارت حالة العمل */
.status-welcome {
  position: absolute;
  top: 14px;
  left: 18px;
  z-index: 5;
  direction: rtl;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}

.status-welcome .welcome-bismillah {
  font-family:
    "Amiri Quran",
    "Amiri",
    "Noto Naskh Arabic",
    "Traditional Arabic",
    serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--q-brown-deep);
}

.status-welcome .welcome-ayah {
  margin-top: 1px;
  font-family:
    "Amiri Quran",
    "Amiri",
    "Noto Naskh Arabic",
    "Traditional Arabic",
    serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--q-orange-dark);
}

/* =====================================================
   QURA — ربط كارت الطلب بكارت حالة العمل
===================================================== */

.status-card + .orders-section {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.status-card + .orders-section .orders-list {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.status-card + .orders-section .order-card:first-child {
  margin-top: 0 !important;
}

/* =====================================================
   QURA — NEW ORDER ATTENTION ANIMATION
   الحركة تستمر طالما الطلب عرض جديد
===================================================== */

/* حركة كارت الطلب الجديد */
.order-card-offer {
  position: relative !important;
  overflow: hidden !important;
  transform-origin: center;

  animation:
    quraOfferCardAttention 2.8s ease-in-out infinite !important;
}

/* لمعان متحرك داخل الكارت */
.order-card-offer::after {
  content: "";
  position: absolute;

  top: 0;
  left: -120%;

  width: 55%;
  height: 100%;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255,255,255,.55),
      transparent
    );

  transform: skewX(-18deg);
  pointer-events: none;

  animation:
    quraOfferShine 2.4s ease-in-out infinite;

  z-index: 1;
}

/* محتوى الكارت فوق اللمعة */
.order-card-offer > * {
  position: relative;
  z-index: 2;
}


/* =====================================================
   زر قبول الطلب
===================================================== */

.order-card-offer .offer-accept-btn {
  position: relative;
  transform-origin: center;

  animation:
    quraAcceptAttention 1.8s ease-in-out infinite !important;

  box-shadow:
    0 8px 20px rgba(25,114,58,.22);
}

/* لمعان متحرك على زر القبول */
.order-card-offer .offer-accept-btn::after {
  content: "";
  position: absolute;

  top: 0;
  left: -80%;

  width: 45%;
  height: 100%;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255,255,255,.45),
      transparent
    );

  transform: skewX(-18deg);
  pointer-events: none;

  animation:
    quraAcceptShine 2s ease-in-out infinite;
}


/* =====================================================
   حركة الكارت
===================================================== */

@keyframes quraOfferCardAttention {

  0%,
  100% {
    transform:
      translateY(0)
      scale(1);

    box-shadow:
      0 7px 24px
      rgba(212,134,0,.10);
  }

  50% {
    transform:
      translateY(-3px)
      scale(1.012);

    box-shadow:
      0 12px 34px
      rgba(212,134,0,.28);
  }

}


/* =====================================================
   لمعان الكارت
===================================================== */

@keyframes quraOfferShine {

  0% {
    left: -120%;
  }

  45%,
  100% {
    left: 140%;
  }

}


/* =====================================================
   حركة زر القبول
   بدون اهتزاز
===================================================== */

@keyframes quraAcceptAttention {

  0%,
  100% {
    transform: scale(1);
  }

  20% {
    transform: scale(1.04);
  }

  40% {
    transform: scale(1);
  }

  55% {
    transform: scale(1.06);
  }

  70% {
    transform: scale(1);
  }

}


/* =====================================================
   لمعان زر القبول
===================================================== */

@keyframes quraAcceptShine {

  0% {
    left: -80%;
  }

  45%,
  100% {
    left: 130%;
  }

}

/* =====================================================
   QURA — BALANCE CARD FINAL
   ===================================================== */

.courier-balance-card {
  position: relative !important;

  min-height: 145px !important;

  padding: 16px 18px 52px !important;

  display: flex !important;
  flex-direction: row !important;
  direction: rtl !important;

  align-items: flex-start !important;

  gap: 7px !important;

  overflow: hidden !important;
}


/* أيقونة الرصيد */
.courier-balance-card > .stat-icon {
  width: 27px !important;
  height: 27px !important;
  min-width: 27px !important;
  max-width: 27px !important;

  flex: 0 0 27px !important;

  padding: 0 !important;
  margin: 1px 0 0 !important;

  border-radius: 8px !important;

  background: var(--q-gold) !important;
color: var(--q-brown) !important;

  font-size: 11px !important;

  box-shadow: none !important;

  display: grid !important;
  place-items: center !important;
}


/* محتوى الرصيد */
.courier-balance-card > div {
  flex: 1 1 auto !important;

  min-width: 0 !important;

  margin: 0 !important;
  padding: 0 !important;

  text-align: right !important;
}


/* رصيدك */
.courier-balance-card > div > small {
  display: block !important;

  margin: 0 !important;

  color: var(--q-muted) !important;

  font-size: 17px !important;
  font-weight: 800 !important;

  line-height: 1.15 !important;
}


/* قيمة الرصيد */
#courierFinancialBalance {
  display: block !important;

  margin: 3px 0 0 !important;

  color: var(--q-brown) !important;

  font-size: 21px !important;
  font-weight: 900 !important;

  line-height: 1.1 !important;
}


/* السهم */
.courier-balance-card .balance-arrow {
  position: absolute !important;

  left: 20px !important;
  top: 50% !important;

  transform: translateY(-50%) !important;

  font-size: 18px !important;

  color: var(--q-orange-dark) !important;
}


/* التحذير الأحمر — سطر واحد داخل الكارت */
#courierCashEligibilityMessage {
  position: absolute !important;

  left: 20px !important;
  right: 20px !important;
  bottom: 11px !important;

  width: auto !important;

  margin: 0 !important;

  padding: 7px 10px !important;

  box-sizing: border-box !important;

  border-radius: 10px !important;

  background: #FFF0EF !important;

  border: 1px solid #F3C8C4 !important;

  color: var(--q-red) !important;

  font-size: 8px !important;
  font-weight: 800 !important;

  line-height: 1.25 !important;

  text-align: center !important;

  white-space: nowrap !important;

  overflow: hidden !important;

  text-overflow: clip !important;
}


/* منع أي صندوق أو إطار داخل الرسالة */
#courierCashEligibilityMessage > div {
  width: auto !important;

  margin: 0 !important;
  padding: 0 !important;

  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;

  font-size: inherit !important;
  line-height: inherit !important;

  white-space: nowrap !important;
}

