/* =========================
   SERVICES PAGE ONLY
   يعتمد على app-ios-2026.css
========================= */

:root {
  --srv-danger: #d64045;
  --srv-warning: #c28d1c;
  --srv-success: #118a63;
}

/* =========================
   PAGE
========================= */
.services-main {
  padding-bottom: 90px;
}

/* =========================
   HERO
========================= */
.services-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 22px;
  padding: 24px;
  border-radius: 30px;
  background:
    radial-gradient(circle at top left, rgba(25,188,149,.14), transparent 26%),
    linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.84));
  border: 1px solid rgba(255,255,255,.58);
  box-shadow:
    0 14px 36px rgba(2, 52, 58, 0.08),
    inset 0 1px 0 rgba(255,255,255,.55);
}

.services-hero::before {
  content: "";
  position: absolute;
  top: -55px;
  left: -55px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(25,188,149,.14), transparent 70%);
  pointer-events: none;
}

.services-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.services-hero-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 260px;
}

.services-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 24px rgba(2,52,58,.18);
  flex-shrink: 0;
}

.services-icon-wrap .material-symbols-rounded {
  font-size: 34px;
}

.services-hero-text h1 {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 30px;
  font-weight: 900;
  line-height: 1.3;
}

.services-hero-text p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.services-stat-box {
  min-width: 145px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 20px;
  padding: 16px 18px;
  text-align: center;
  box-shadow: 0 8px 18px rgba(2,52,58,.05);
}

.services-stat-box span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

.services-stat-box strong {
  font-size: 26px;
  color: var(--primary);
  font-weight: 900;
}

/* =========================
   LAYOUT
========================= */
.services-layout {
  width: 100%;
}

.services-card {
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 30px;
  box-shadow:
    0 14px 36px rgba(2, 52, 58, 0.08),
    inset 0 1px 0 rgba(255,255,255,.55);
  padding: 28px;
  overflow: hidden;
}

.services-card-head {
  margin-bottom: 22px;
}

.services-card-head h2 {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 24px;
  font-weight: 900;
}

.services-card-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.services-group + .services-group {
  margin-top: 4px;
}

.services-group-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
  padding-right: 2px;
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.services-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #dfe8ea, transparent);
  margin: 22px 0;
}

/* =========================
   SERVICE ITEM
========================= */
.service-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: rgba(255,255,255,.90);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 15px 16px;
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
}

.service-item:hover {
  transform: translateY(-2px);
  border-color: rgba(2,52,58,.10);
  background: #ffffff;
  box-shadow: var(--shadow-md);
}

.service-item-right {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
}

.service-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 16px;
  background: rgba(232,242,239,.92);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(2,52,58,.05);
}

.service-icon .material-symbols-rounded {
  font-size: 26px;
}

.service-content {
  min-width: 0;
  flex: 1;
}

.service-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}

.service-desc {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.service-arrow {
  color: var(--primary);
  font-size: 24px;
  opacity: .8;
  transition: .2s ease;
}

.service-item:hover .service-arrow {
  transform: translateX(-3px);
  opacity: 1;
}

/* =========================
   VARIANTS
========================= */
.service-item-notify .service-icon {
  background: #eef7f2;
  color: var(--srv-success);
}

.service-item-language .service-icon {
  background: #fff7e8;
  color: var(--srv-warning);
}

.service-item-logout {
  background: #fff8f8;
  border-color: #f3e1e1;
}

.service-item-logout .service-icon {
  background: #ffeaea;
  color: var(--srv-danger);
}

.service-item-logout .service-arrow {
  color: var(--srv-danger);
}

/* =========================
   DYNAMIC CONTENT
========================= */
#dynamic-content {
  display: none;
}


/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
  .services-main {
    padding-bottom: 84px;
  }

  .services-hero {
    padding: 18px;
    border-radius: 24px;
    margin-bottom: 16px;
  }

  .services-hero-text h1 {
    font-size: 24px;
  }

  .services-hero-text p {
    font-size: 14px;
  }

  .services-stat-box {
    min-width: 120px;
    width: 100%;
  }

  .services-card {
    padding: 18px;
    border-radius: 24px;
  }

  .services-card-head h2 {
    font-size: 21px;
  }

  .service-item {
    padding: 14px;
    border-radius: 16px;
  }

  .service-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 14px;
  }

  .service-icon .material-symbols-rounded {
    font-size: 23px;
  }

  .service-title {
    font-size: 15px;
  }

  .service-desc {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .services-icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 18px;
  }

  .services-icon-wrap .material-symbols-rounded {
    font-size: 28px;
  }

  .services-hero-text h1 {
    font-size: 22px;
  }

  .services-hero-right {
    align-items: flex-start;
  }

  .services-card {
    padding: 15px;
  }

  .service-item {
    align-items: flex-start;
  }

  .service-item-right {
    align-items: flex-start;
  }

  .service-arrow {
    font-size: 22px;
    margin-top: 4px;
  }
}